Browse Source

修改停止逻辑显示问题

lex-xin 4 years ago
parent
commit
2bb30c6e73

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


+ 1 - 1
dist/static/css/chunk-261cfc1e.4bd2b0f8.css → dist/static/css/chunk-ccebe70a.be2dded3.css

@@ -1 +1 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.m-container[data-v-3a0846a8]{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff}.newBand[data-v-3a0846a8]{display:inline-block}
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.m-container[data-v-22860b13]{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff}.newBand[data-v-22860b13]{display:inline-block}

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.9b6accb1.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-261cfc1e.aac734c0.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-ccebe70a.ee5c647a.js


+ 9 - 4
src/views/vipClass/vipList.vue

@@ -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);

+ 2 - 2
vue.config.js

@@ -21,8 +21,8 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // let target = 'http://192.168.3.139:8000' // 箭河
 // let target = 'http://192.168.3.28:8000' //邹璇
 // let target = 'http://192.168.3.8:8000' //勇哥
-// let target = 'http://dev.dayaedu.com' // 测试服
-let target = 'http://192.168.3.196:80' // 乔
+let target = 'http://dev.dayaedu.com' // 测试服
+// let target = 'http://192.168.3.196:80' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {
   /**

Some files were not shown because too many files changed in this diff