mo 5 年之前
父节点
当前提交
b226f61d95
共有 2 个文件被更改,包括 13 次插入2 次删除
  1. 1 1
      src/views/teamBuild/components/teamBaseInfo.vue
  2. 12 1
      src/views/teamDetail/components/resetClass.vue

+ 1 - 1
src/views/teamBuild/components/teamBaseInfo.vue

@@ -441,7 +441,7 @@ export default {
         head: "",
         isClass: false, //是否为课堂课
         startTime: "",
-        feeType: "ONLINE",
+        feeType: null,
         ownershipType: "OWN", // 合作机构类型
         repairUserId: null, // 维修技师
 

+ 12 - 1
src/views/teamDetail/components/resetClass.vue

@@ -28,6 +28,7 @@
            style>
         <el-table :data="activeSingleList"
                   style
+                  ref='multipleTable'
                   :header-cell-style="{background:'#EDEEF0',color:'#444'}"
                   tooltip-effect="dark"
                   @selection-change="handleSelectionChange">
@@ -1516,11 +1517,21 @@ export default {
         }).then(res => {
           if (res.code == 200) {
             this.$message.success('开启成功')
+            this.toggleSelection()
           }
         })
       }).catch(() => { })
 
-    }
+    },
+    toggleSelection (rows) {
+      if (rows) {
+        rows.forEach(row => {
+          this.$refs.multipleTable.toggleRowSelection(row);
+        });
+      } else {
+        this.$refs.multipleTable.clearSelection();
+      }
+    },
   },
   watch: {
     infoVisible (val) {