|
@@ -88,7 +88,7 @@
|
|
:label="item.realName"
|
|
:label="item.realName"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select> -->
|
|
</el-select> -->
|
|
- <remote-search
|
|
|
|
|
|
+ <remote-search
|
|
:commit="'setTeachers'"
|
|
:commit="'setTeachers'"
|
|
v-model="searchForm.teacherId"
|
|
v-model="searchForm.teacherId"
|
|
/>
|
|
/>
|
|
@@ -203,7 +203,10 @@
|
|
label="活动方案"
|
|
label="活动方案"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <overflow-text :text="scope.row.vipGroupActivityName" width="100%" />
|
|
|
|
|
|
+ <overflow-text
|
|
|
|
+ :text="scope.row.vipGroupActivityName"
|
|
|
|
+ width="100%"
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" label="当前课次">
|
|
<el-table-column align="center" label="当前课次">
|
|
@@ -286,7 +289,7 @@
|
|
type="text"
|
|
type="text"
|
|
v-if="permission('/vipDetail')"
|
|
v-if="permission('/vipDetail')"
|
|
@click="gotoVipDetail(scope.row)"
|
|
@click="gotoVipDetail(scope.row)"
|
|
- >查看</el-button
|
|
|
|
|
|
+ >详情</el-button
|
|
>
|
|
>
|
|
<!--
|
|
<!--
|
|
<el-button type="text">启动</el-button>-->
|
|
<el-button type="text">启动</el-button>-->
|
|
@@ -333,7 +336,7 @@
|
|
"
|
|
"
|
|
>删除</el-button
|
|
>删除</el-button
|
|
>
|
|
>
|
|
- <el-button
|
|
|
|
|
|
+ <!-- <el-button
|
|
type="text"
|
|
type="text"
|
|
v-if="
|
|
v-if="
|
|
scope.row.status > 1 &&
|
|
scope.row.status > 1 &&
|
|
@@ -342,10 +345,17 @@
|
|
"
|
|
"
|
|
@click="resetVip(scope.row)"
|
|
@click="resetVip(scope.row)"
|
|
>修改</el-button
|
|
>修改</el-button
|
|
|
|
+ > -->
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ v-if="
|
|
|
|
+ scope.row.vipGroupCategoryName == '乐理课' &&
|
|
|
|
+ permission('vipGroupManage/update') &&
|
|
|
|
+ scope.row.status == 1
|
|
|
|
+ "
|
|
|
|
+ @click="isStartCourse(scope.row)"
|
|
|
|
+ >确认成课</el-button
|
|
>
|
|
>
|
|
- <el-button type='text' v-if="
|
|
|
|
- scope.row.vipGroupCategoryName =='乐理课' &&
|
|
|
|
- permission('vipGroupManage/update')&&scope.row.status==1" @click="isStartCourse(scope.row)">确认成课</el-button>
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -415,13 +425,11 @@ export default {
|
|
stopReason: null, // 停止原因
|
|
stopReason: null, // 停止原因
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
|
|
+ created() {},
|
|
mounted() {
|
|
mounted() {
|
|
- const { query } = this.$route;
|
|
|
|
- if(query.search){
|
|
|
|
- this.searchForm.search = query.search
|
|
|
|
|
|
+ const { query } = this.$route;
|
|
|
|
+ if (query.search) {
|
|
|
|
+ this.searchForm.search = query.search;
|
|
}
|
|
}
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
@@ -484,13 +492,24 @@ export default {
|
|
},
|
|
},
|
|
// 跳转到vip详情
|
|
// 跳转到vip详情
|
|
gotoVipDetail(row) {
|
|
gotoVipDetail(row) {
|
|
|
|
+ let id = row.id;
|
|
|
|
+ let organId = row.organId;
|
|
|
|
+ let educationalTeacherId = row.educationalTeacherId;
|
|
|
|
+ let userId = row.userId; // 课程组上指导老师
|
|
let rules = JSON.stringify(this.rules);
|
|
let rules = JSON.stringify(this.rules);
|
|
let searchForm = JSON.stringify(this.searchForm);
|
|
let searchForm = JSON.stringify(this.searchForm);
|
|
- let id = row.id;
|
|
|
|
let name = row.name;
|
|
let name = row.name;
|
|
|
|
+ let endTimeStr = row.coursesExpireDate;
|
|
|
|
+ let startTimeStr = row.courseStartDate;
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/business/vipDetail",
|
|
path: "/business/vipDetail",
|
|
- query: { id, name },
|
|
|
|
|
|
+ query: { id,
|
|
|
|
+ educationalTeacherId,
|
|
|
|
+ organId,
|
|
|
|
+ userId,
|
|
|
|
+ name,
|
|
|
|
+ endTimeStr,
|
|
|
|
+ startTimeStr,},
|
|
});
|
|
});
|
|
},
|
|
},
|
|
closeVip(scope) {
|
|
closeVip(scope) {
|
|
@@ -556,7 +575,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
let objectUrl = URL.createObjectURL(blob);
|
|
let objectUrl = URL.createObjectURL(blob);
|
|
let link = document.createElement("a");
|
|
let link = document.createElement("a");
|
|
- let fname = "VIP列表" + new Date().getTime() + '.xls'; //下载文件的名字
|
|
|
|
|
|
+ let fname = "VIP列表" + new Date().getTime() + ".xls"; //下载文件的名字
|
|
link.href = objectUrl;
|
|
link.href = objectUrl;
|
|
link.setAttribute("download", fname);
|
|
link.setAttribute("download", fname);
|
|
document.body.appendChild(link);
|
|
document.body.appendChild(link);
|
|
@@ -610,8 +629,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
let objectUrl = URL.createObjectURL(blob);
|
|
let objectUrl = URL.createObjectURL(blob);
|
|
let link = document.createElement("a");
|
|
let link = document.createElement("a");
|
|
- let fname =
|
|
|
|
- "VIP课程续费提醒" + new Date().getTime() + ".xls"; //下载文件的名字
|
|
|
|
|
|
+ let fname = "VIP课程续费提醒" + new Date().getTime() + ".xls"; //下载文件的名字
|
|
link.href = objectUrl;
|
|
link.href = objectUrl;
|
|
link.setAttribute("download", fname);
|
|
link.setAttribute("download", fname);
|
|
document.body.appendChild(link);
|
|
document.body.appendChild(link);
|
|
@@ -671,25 +689,25 @@ export default {
|
|
permission(str) {
|
|
permission(str) {
|
|
return permission(str);
|
|
return permission(str);
|
|
},
|
|
},
|
|
- isStartCourse(row){
|
|
|
|
|
|
+ isStartCourse(row) {
|
|
// row.id
|
|
// row.id
|
|
- this.$confirm("确定开启乐理课", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "warning"
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- vipGroupManageUpdate({id:row.id,status:'PROGRESS'}).then(res=>{
|
|
|
|
- if(res.code == 200){
|
|
|
|
- this.$message.success('提交成功')
|
|
|
|
- this.getList()
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.$confirm("确定开启乐理课", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
})
|
|
})
|
|
- .catch(() => { });
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+ .then(() => {
|
|
|
|
+ vipGroupManageUpdate({ id: row.id, status: "PROGRESS" }).then(
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message.success("提交成功");
|
|
|
|
+ this.getList();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
|
|
+ },
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
formatterTime(val) {
|
|
formatterTime(val) {
|