Tang 3 年 前
コミット
12c83eab82

+ 10 - 0
src/components/tableList.vue

@@ -217,6 +217,10 @@
               ")"
             }}
           </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>
           <span
             v-else-if="
               item.scope === 'treeWatch' &&
@@ -1769,6 +1773,12 @@ export default {
   },
   mounted() {},
   methods: {
+    /**
+     * 学习账号标记跳转班级
+     */
+    backClassView(row){
+      this.$emit("classView",row)
+    },
     blurBackData(row) {
       this.$emit("sortFunc", row);
     },

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

@@ -210,6 +210,7 @@ export default {
     };
   },
   mounted() {
+    console.log(this.$route.params)
     this.search();
   },
   activated() {

+ 36 - 2
src/views/education/classManageMent/learningAccoutTags/index.vue

@@ -5,6 +5,7 @@
       :tableData="tableData"
       :navText="navText"
       :loading="loading"
+      @classView="classView"
     >
       <template slot="customize">
         <el-select
@@ -82,16 +83,22 @@ export default {
           label: "未配置班级",
           prop: "notConfiguredNum",
           hidden: true,
+          type: 1,
+          scope: "configSetClass",
         },
         {
           label: "有接口班级",
           prop: "interfaceNum",
           hidden: true,
+          type: 2,
+          scope: "configSetClass",
         },
         {
           label: "无接口班级",
           prop: "noInterfaceNum",
           hidden: true,
+          type: 3,
+          scope: "configSetClass",
         },
         {
           label: "所有班级人数",
@@ -154,6 +161,33 @@ export default {
     }
   },
   methods: {
+    classView(row) {
+      console.log(row);
+      const jump = () => {
+        this.$router.push({
+          name: "ClassList",
+          params: {
+            businessId: row.businessId,
+          },
+        });
+      };
+      const statusPage = this.$store.state.tagsView.visitedViews.some(
+        (item) => {
+          return item.name == "ClassList";
+        }
+      );
+      if (statusPage) {
+        this.$store
+          .dispatch("tagsView/delCachedView", {
+            name: "ClassList",
+          })
+          .then((res) => {
+            jump();
+          });
+      } else {
+        jump();
+      }
+    },
     search(int) {
       this.loading = true;
       if (int === 1) {
@@ -219,7 +253,7 @@ export default {
       if (int === 2) {
         const jump = () => {
           this.$router.push({
-            path: "NoInterface",
+            path: "noInterface",
             query: {
               businessId: v.businessId,
             },
@@ -227,7 +261,7 @@ export default {
         };
         const statusPage = this.$store.state.tagsView.visitedViews.some(
           (item) => {
-            return item.name == "noInterface";
+            return item.name == "NoInterface";
           }
         );
         if (statusPage) {

+ 1 - 1
src/views/education/classManageMent/learningAccoutTags/noInterface.vue

@@ -301,7 +301,7 @@ export default {
   mounted() {
     this.$api.obtainbusiness(this.$route.query.businessId).then((res) => {
       if (res.data) {
-        this.navText.title = `接口数据标记(${res.data.projectName} - ${res.data.businessName})`;
+        this.navText.title = `接口数据标记(${res.data.projectName} - ${res.data.businessName})`;
       }
     });
     this.$api

+ 2 - 2
src/views/education/classManageMent/listOfhoursToBeReviewed/index.vue

@@ -12,7 +12,7 @@
           :style="
             reviewListNums >= 200
               ? 'color:red;'
-              : reviewListNums < 200 && reviewListNums > 99
+              : reviewListNums < 200 && reviewListNums >= 100
               ? 'color:green'
               : reviewListNums < 100
               ? 'color:block;'
@@ -30,7 +30,7 @@
           :style="
             underReiviewNums >= 200
               ? 'color:red;'
-              : underReiviewNums < 200 && underReiviewNums > 99
+              : underReiviewNums < 200 && underReiviewNums >= 100
               ? 'color:green'
               : underReiviewNums < 100
               ? 'color:block;'