Selaa lähdekoodia

乐理课成课

1
mo 4 vuotta sitten
vanhempi
commit
a14c5de7be
1 muutettua tiedostoa jossa 11 lisäystä ja 2 poistoa
  1. 11 2
      src/views/vipClass/vipList.vue

+ 11 - 2
src/views/vipClass/vipList.vue

@@ -341,7 +341,7 @@
                 >
                 <el-button type='text'  v-if="
                     scope.row.vipGroupActivityId > 0 &&
-                    permission('vipGroupManage/update')&&scope.row.status==0" @click="isStartCourse(scope.row)">确认成课</el-button>
+                    permission('vipGroupManage/update')&&scope.row.status==1" @click="isStartCourse(scope.row)">确认成课</el-button>
               </div>
             </template>
           </el-table-column>
@@ -676,12 +676,21 @@ export default {
     },
     isStartCourse(row){
       // row.id
-      vipGroupManageUpdate({id:row.id,status:'PROGRESS'}).then(res=>{
+        this.$confirm("确定开启乐理课", "提示", {
+      confirmButtonText: "确定",
+      cancelButtonText: "取消",
+      type: "warning"
+    })
+      .then(() => {
+            vipGroupManageUpdate({id:row.id,status:'PROGRESS'}).then(res=>{
         if(res.code == 200){
           this.$message.success('提交成功')
           this.getList()
         }
       })
+      })
+      .catch(() => { });
+
 
     }
   },