Tang 3 年之前
父节点
当前提交
c09dd67c6d

+ 10 - 5
src/components/tableList.vue

@@ -217,9 +217,14 @@
               ")"
             }}
           </span>
-          <div v-else-if="item.scope ==='configSetClass'">
-            <el-button type="text" v-if="scope.row[item.prop]" @click="backClassView(scope.row)">{{scope.row[item.prop]}}</el-button>
-            <span v-else>{{scope.row[item.prop]}}</span>
+          <div v-else-if="item.scope === 'configSetClass'">
+            <el-button
+              type="text"
+              v-if="scope.row[item.prop]"
+              @click="backClassView(scope.row, item.type)"
+              >{{ scope.row[item.prop] }}</el-button
+            >
+            <span v-else>{{ scope.row[item.prop] }}</span>
           </div>
           <span
             v-else-if="
@@ -1776,8 +1781,8 @@ export default {
     /**
      * 学习账号标记跳转班级
      */
-    backClassView(row){
-      this.$emit("classView",row)
+    backClassView(row, type) {
+      this.$emit("classView", row,type);
     },
     blurBackData(row) {
       this.$emit("sortFunc", row);

+ 14 - 1
src/views/education/classManageMent/classList/index.vue

@@ -210,7 +210,20 @@ export default {
     };
   },
   mounted() {
-    console.log(this.$route.params)
+    if (this.$route.params) {
+      this.$set(
+        this.formData,
+        "educationTypeId",
+        this.$route.params.educationId
+      );
+      this.$set(this.formData, "businessId", this.$route.params.businessId);
+      this.formData.hasInterface = this.$route.params.hasInterface;
+      this.$refs.searchBox.changeEducationType(
+        this.formData.educationTypeId,
+        true
+      );
+    }
+    console.log(this.$route.params);
     this.search();
   },
   activated() {

+ 7 - 5
src/views/education/classManageMent/learningAccoutTags/index.vue

@@ -83,21 +83,21 @@ export default {
           label: "未配置班级",
           prop: "notConfiguredNum",
           hidden: true,
-          type: 1,
+          type: 0,
           scope: "configSetClass",
         },
         {
           label: "有接口班级",
           prop: "interfaceNum",
           hidden: true,
-          type: 2,
+          type: 1,
           scope: "configSetClass",
         },
         {
           label: "无接口班级",
           prop: "noInterfaceNum",
           hidden: true,
-          type: 3,
+          type: 2,
           scope: "configSetClass",
         },
         {
@@ -161,13 +161,15 @@ export default {
     }
   },
   methods: {
-    classView(row) {
-      console.log(row);
+    classView(row, type) {
+      console.log(row, type);
       const jump = () => {
         this.$router.push({
           name: "ClassList",
           params: {
+            educationId: row.educationTypeId,
             businessId: row.businessId,
+            hasInterface: type,
           },
         });
       };