Ver código fonte

乐理课成课

1
mo 4 anos atrás
pai
commit
5ba6d1811c
1 arquivos alterados com 14 adições e 1 exclusões
  1. 14 1
      src/views/vipClass/vipList.vue

+ 14 - 1
src/views/vipClass/vipList.vue

@@ -339,6 +339,9 @@
                   @click="resetVip(scope.row)"
                   >修改</el-button
                 >
+                <el-button type='text'  v-if="
+                    scope.row.vipGroupActivityId > 0 &&
+                    permission('vipGroupManage/update')&&scope.row.status==0" @click="isStartCourse(scope.row)">确认成课</el-button>
               </div>
             </template>
           </el-table-column>
@@ -362,7 +365,7 @@ import {
   getVipList,
   vipGroupActivity,
   closeVip,
-  getVipGroupDetail,
+  vipGroupManageUpdate,
   deleteVipGroup,
 } from "@/api/vipSeting";
 import { getTeacher, getEmployeeOrgan } from "@/api/buildTeam";
@@ -671,6 +674,16 @@ export default {
     permission(str) {
       return permission(str);
     },
+    isStartCourse(row){
+      // row.id
+      vipGroupManageUpdate({id:row.id,status:'PROGRESS'}).then(res=>{
+        if(res.code == 200){
+          this.$message.success('提交成功')
+          this.getList()
+        }
+      })
+
+    }
   },
   filters: {
     formatterTime(val) {