|
@@ -3,8 +3,10 @@
|
|
<!-- <h2>
|
|
<!-- <h2>
|
|
<div class="squrt"></div>网管课列表
|
|
<div class="squrt"></div>网管课列表
|
|
</h2>-->
|
|
</h2>-->
|
|
- <div class="topWrap">
|
|
|
|
- <!-- <div
|
|
|
|
|
|
+
|
|
|
|
+ <div class="m-core">
|
|
|
|
+ <div class="topWrap">
|
|
|
|
+ <!-- <div
|
|
class="newBand"
|
|
class="newBand"
|
|
v-permission="'/newPractice'"
|
|
v-permission="'/newPractice'"
|
|
@click="newPractice"
|
|
@click="newPractice"
|
|
@@ -28,32 +30,31 @@
|
|
>
|
|
>
|
|
网管课导出
|
|
网管课导出
|
|
</div> -->
|
|
</div> -->
|
|
- <el-button
|
|
|
|
- v-permission="'/newPractice'"
|
|
|
|
- @click="newPractice"
|
|
|
|
- type="primary"
|
|
|
|
- style="margin-bottom:20px"
|
|
|
|
- >
|
|
|
|
- 新建网管课
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- v-permission="'export/practiceGroup'"
|
|
|
|
- @click="onStudentExport"
|
|
|
|
- type="primary"
|
|
|
|
- style="margin-bottom:20px"
|
|
|
|
- >
|
|
|
|
- 续费提醒导出
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- v-permission="'export/practiceGroupList'"
|
|
|
|
- @click="onPracticeExport"
|
|
|
|
- type="primary"
|
|
|
|
- style="margin-bottom:20px"
|
|
|
|
- >
|
|
|
|
- 网管课导出
|
|
|
|
- </el-button>
|
|
|
|
- </div>
|
|
|
|
- <div class="m-core">
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ v-permission="'/newPractice'"
|
|
|
|
+ @click="newPractice"
|
|
|
|
+ type="primary"
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
+ >
|
|
|
|
+ 新建网管课
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ v-permission="'export/practiceGroup'"
|
|
|
|
+ @click="onStudentExport"
|
|
|
|
+ type="primary"
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
+ >
|
|
|
|
+ 续费提醒导出
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ v-permission="'export/practiceGroupList'"
|
|
|
|
+ @click="onPracticeExport"
|
|
|
|
+ type="primary"
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
+ >
|
|
|
|
+ 网管课导出
|
|
|
|
+ </el-button>
|
|
|
|
+ </div>
|
|
<save-form
|
|
<save-form
|
|
:inline="true"
|
|
:inline="true"
|
|
class="searchForm"
|
|
class="searchForm"
|
|
@@ -179,19 +180,19 @@
|
|
<copy-text>{{ scope.row.name }}</copy-text>
|
|
<copy-text>{{ scope.row.name }}</copy-text>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- prop="type"
|
|
|
|
- label="课程组类型"
|
|
|
|
-
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column align="center" prop="type" label="课程组类型">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<p>{{ scope.row.type | comType }}</p>
|
|
<p>{{ scope.row.type | comType }}</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" prop="organName" label="所属分部" width="100px">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="organName"
|
|
|
|
+ label="所属分部"
|
|
|
|
+ width="100px"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<copy-text>{{ scope.row.organName }}</copy-text>
|
|
<copy-text>{{ scope.row.organName }}</copy-text>
|
|
</template>
|
|
</template>
|
|
@@ -202,7 +203,12 @@
|
|
prop="educationalTeacherName"
|
|
prop="educationalTeacherName"
|
|
label="乐团主管"
|
|
label="乐团主管"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column align="center" prop="teacherName" label="指导老师" width="120px">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="teacherName"
|
|
|
|
+ label="指导老师"
|
|
|
|
+ width="120px"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<copy-text>{{ scope.row.teacherName }}</copy-text>
|
|
<copy-text>{{ scope.row.teacherName }}</copy-text>
|
|
</template>
|
|
</template>
|
|
@@ -365,7 +371,9 @@
|
|
v-model.trim="closeForm.money"
|
|
v-model.trim="closeForm.money"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <p style="color:red" v-if="closeForm.isBack">退费金额暂不进入账户余额</p>
|
|
|
|
|
|
+ <p style="color: red" v-if="closeForm.isBack">
|
|
|
|
+ 退费金额暂不进入账户余额
|
|
|
|
+ </p>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="closeVisible = false">取 消</el-button>
|
|
<el-button @click="closeVisible = false">取 消</el-button>
|
|
@@ -492,7 +500,7 @@ export default {
|
|
method: "get",
|
|
method: "get",
|
|
headers: {
|
|
headers: {
|
|
Authorization: getToken(),
|
|
Authorization: getToken(),
|
|
- tenantId: getTenantId()
|
|
|
|
|
|
+ tenantId: getTenantId(),
|
|
},
|
|
},
|
|
params: data,
|
|
params: data,
|
|
url,
|
|
url,
|
|
@@ -518,14 +526,14 @@ export default {
|
|
// 判断是否报错
|
|
// 判断是否报错
|
|
if (res.indexOf("code") != -1) {
|
|
if (res.indexOf("code") != -1) {
|
|
let json = JSON.parse(res);
|
|
let json = JSON.parse(res);
|
|
- if(json.code == 403) {
|
|
|
|
- this.$message.error(`登录过期,请重新登录!`)
|
|
|
|
|
|
+ if (json.code == 403) {
|
|
|
|
+ this.$message.error(`登录过期,请重新登录!`);
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- this.$store.dispatch('user/resetToken').then(() => {
|
|
|
|
- location.reload()
|
|
|
|
- })
|
|
|
|
|
|
+ this.$store.dispatch("user/resetToken").then(() => {
|
|
|
|
+ location.reload();
|
|
|
|
+ });
|
|
}, 1000);
|
|
}, 1000);
|
|
- return
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
this.$message.error(json.msg);
|
|
this.$message.error(json.msg);
|
|
} else {
|
|
} else {
|
|
@@ -564,7 +572,7 @@ export default {
|
|
method: "get",
|
|
method: "get",
|
|
headers: {
|
|
headers: {
|
|
Authorization: getToken(),
|
|
Authorization: getToken(),
|
|
- tenantId: getTenantId()
|
|
|
|
|
|
+ tenantId: getTenantId(),
|
|
},
|
|
},
|
|
params: cleanDeep(obj),
|
|
params: cleanDeep(obj),
|
|
url,
|
|
url,
|
|
@@ -588,16 +596,16 @@ export default {
|
|
let text = new Response(blob).text();
|
|
let text = new Response(blob).text();
|
|
text.then((res) => {
|
|
text.then((res) => {
|
|
// 判断是否报错
|
|
// 判断是否报错
|
|
- if(res.indexOf("code") != -1) {
|
|
|
|
|
|
+ if (res.indexOf("code") != -1) {
|
|
let json = JSON.parse(res);
|
|
let json = JSON.parse(res);
|
|
- if(json.code == 403) {
|
|
|
|
- this.$message.error(`登录过期,请重新登录!`)
|
|
|
|
|
|
+ if (json.code == 403) {
|
|
|
|
+ this.$message.error(`登录过期,请重新登录!`);
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- this.$store.dispatch('user/resetToken').then(() => {
|
|
|
|
- location.reload()
|
|
|
|
- })
|
|
|
|
|
|
+ this.$store.dispatch("user/resetToken").then(() => {
|
|
|
|
+ location.reload();
|
|
|
|
+ });
|
|
}, 1000);
|
|
}, 1000);
|
|
- return
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
this.$message.error(json.msg);
|
|
this.$message.error(json.msg);
|
|
} else {
|
|
} else {
|
|
@@ -723,25 +731,25 @@ export default {
|
|
this.getList();
|
|
this.getList();
|
|
this.closeVisible = false;
|
|
this.closeVisible = false;
|
|
}
|
|
}
|
|
- if (res.code == 206) {
|
|
|
|
- this.$confirm(res.msg, "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- }).then(() => {
|
|
|
|
- cancelGroup({
|
|
|
|
- groupId: this.activeRow.id,
|
|
|
|
- groupType: "PRACTICE",
|
|
|
|
- refundAmount: this.closeForm.money,
|
|
|
|
- confirmReturnActivityGive: true,
|
|
|
|
- }).then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- this.$message.success("关闭成功");
|
|
|
|
- this.getList();
|
|
|
|
- this.closeVisible = false;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ if (res.code == 206) {
|
|
|
|
+ this.$confirm(res.msg, "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ }).then(() => {
|
|
|
|
+ cancelGroup({
|
|
|
|
+ groupId: this.activeRow.id,
|
|
|
|
+ groupType: "PRACTICE",
|
|
|
|
+ refundAmount: this.closeForm.money,
|
|
|
|
+ confirmReturnActivityGive: true,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message.success("关闭成功");
|
|
|
|
+ this.getList();
|
|
|
|
+ this.closeVisible = false;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
resetMemo(row) {
|
|
resetMemo(row) {
|