Browse Source

02/22 16:41 关闭tag不清除缓存

1
mo 4 years ago
parent
commit
9b4569f804

+ 6 - 2
src/layout/components/TagsView.vue

@@ -145,6 +145,8 @@ export default {
       });
     },
     closeSelectedTag(view) {
+        activeKey = '1'
+
       const searchs = new Searchs();
       searchs.remove(this.$route.path);
       this.$store.dispatch("delVisitedViews", {...view, dontNeedSave: true}).then((views) => {
@@ -175,16 +177,18 @@ export default {
       this.top = e.clientY + 15;
     },
     closeMenu() {
-
       this.visible = false;
     },
     changeTag(tag) {
+      console.log(tag)
       activeKey = this.getSearchsByRealPath(tag)
-      console.log(activeKey)
+
     },
     getSearchsByRealPath(tag) {
       const searchs = new Searchs()
       let keyName = ''
+
+      console.log( searchs.searchs)
       for (const key in searchs.searchs) {
         if (Object.hasOwnProperty.call(searchs.searchs, key)) {
           const item = searchs.searchs[key];

+ 1 - 1
src/views/attendanceManager/attendanceList/index.vue

@@ -147,7 +147,7 @@
           :page-sizes="rules.page_size"
           @pagination="getList"
         />
-        <el-dialog title="作业详情" :visible.sync="classVisible" width="1000px">
+        <el-dialog title="作业详情" :visible.sync="classVisible" width="1000px" v-if="classVisible">
           <studentWork
             v-if="activeRow"
             :courseScheduleId="activeRow.courseScheduleId"

+ 1 - 1
src/views/workBenchManager/payAppeal.vue

@@ -12,7 +12,7 @@
             v-model.trim="searchForm.search"
             clearable
             @keyup.enter.native="search"
-            placeholder="老师名称"
+            placeholder="老师名称、课程编号"
           ></el-input>
         </el-form-item>
         <el-form-item>