|
@@ -205,12 +205,12 @@
|
|
|
v-if="scope.row.status < 3 && scope.row.enableDelete != 1 && permission('vipGroupManage/stopVipGroup')"
|
|
|
:ref="scope.$index">
|
|
|
<p style="margin-bottom:10px;">确定停止该vip课?</p>
|
|
|
- <el-input v-model.trim="scope.row.stopReason"
|
|
|
+ <el-input v-model.trim="stopReason"
|
|
|
placeholder="请输入关闭原因"></el-input>
|
|
|
<div style="text-align: right; margin-top: 20px">
|
|
|
<el-button size="mini"
|
|
|
type="text"
|
|
|
- @click="scope._self.$refs[scope.$index].doClose()">取消</el-button>
|
|
|
+ @click="onCancelVip(scope)">取消</el-button>
|
|
|
<el-button type="primary"
|
|
|
size="mini"
|
|
|
@click="closeVip(scope)">确定</el-button>
|
|
@@ -284,7 +284,8 @@ export default {
|
|
|
{ lable: "已结束", value: "4" },
|
|
|
{ lable: "取消", value: "3" },
|
|
|
{ lable: "暂停", value: "6" }
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ stopReason: null, // 停止原因
|
|
|
};
|
|
|
},
|
|
|
created () {
|
|
@@ -372,7 +373,7 @@ export default {
|
|
|
},
|
|
|
closeVip (scope) {
|
|
|
let id = scope.row.id;
|
|
|
- closeVip({ vipGroupId: id, stopReason: scope.row.stopReason }).then(
|
|
|
+ closeVip({ vipGroupId: id, stopReason: this.stopReason }).then(
|
|
|
res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("停止课程成功");
|
|
@@ -382,6 +383,10 @@ export default {
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
+ onCancelVip(scope) {
|
|
|
+ this.stopReason = null
|
|
|
+ scope._self.$refs[scope.$index].doClose()
|
|
|
+ },
|
|
|
gotoBuildVip () {
|
|
|
let rules = JSON.stringify(this.rules);
|
|
|
let searchForm = JSON.stringify(this.searchForm);
|