Selaa lähdekoodia

教师管理数据汇总,表头跳转修改

11wqe1 8 kuukautta sitten
vanhempi
commit
7aa0fe2be2
1 muutettua tiedostoa jossa 16 lisäystä ja 32 poistoa
  1. 16 32
      src/components/pages/test/aggregate/index.vue

+ 16 - 32
src/components/pages/test/aggregate/index.vue

@@ -5,7 +5,6 @@
       border
       max-height="750px"
       v-loading="tabLoading"
-      @header-click="handleHeaderClick"
     >
       <el-table-column
         fixed
@@ -58,7 +57,9 @@
                   :content="e.title"
                   placement="top"
                 >
-                  <div class="tooltipTit">{{ e.title }}</div>
+                  <div class="tooltipTit" @click="goFrom2(column)">
+                    {{ e.title }}
+                  </div>
                 </el-tooltip>
               </template>
               <template slot-scope="scope">
@@ -232,36 +233,19 @@ export default {
     handleClose2(done) {
       done();
     },
-    // 点击表头跳转
-    handleHeaderClick(column, event) {
-      console.log("表头被点击", column, event);
-
-      let titData = this.titList.map(e => {
-        return e.name;
-      });
-
-      if (
-        column.label == "教研室" ||
-        column.label == "教师姓名" ||
-        column.label == "序号" ||
-        titData.includes(column.label)
-      ) {
-      } else {
-        this.$router.push(
-          "/checkToTest?cid=" +
-            column.property +
-            "&oid=" +
-            this.oid +
-            "&org=" +
-            this.org +
-            "&type=" +
-            2 +
-            "&role=" +
-            this.role
-        );
-      }
-
-      // 在这里处理点击事件
+    goFrom2(column) {
+      this.$router.push(
+        "/checkToTest?cid=" +
+          column.property +
+          "&oid=" +
+          this.oid +
+          "&org=" +
+          this.org +
+          "&type=" +
+          2 +
+          "&role=" +
+          this.role
+      );
     }
   }
 };