Browse Source

save form add bind

wolyshaw 4 years ago
parent
commit
cbed81efce

+ 3 - 0
src/components/save-form/index.vue

@@ -30,6 +30,9 @@ export default {
         this.model[key] = item
       }
     }
+    if (this.saveKey) {
+      this.searchs.update(this.$route.path, undefined, 'bind')
+    }
   },
   methods: {
     submit(evt) {

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

@@ -82,9 +82,10 @@ export default {
     syncTagViewAndSaveForm() {
       const keys = this.$store.state.tagsView.visitedViews.map(item => item.path)
       const searchs = new Searchs()
-      const sks = Object.keys(searchs.getSearchs())
+      const allSearch = searchs.getSearchs()
+      const sks = Object.keys(allSearch)
       for (const item of sks) {
-        if (!keys.includes(item)) {
+        if (!(keys.includes(item) || keys.includes(allSearch[item].bind))) {
           searchs.removeByKey(item)
         }
       }

+ 1 - 1
src/router/notKeepAliveList.js

@@ -14,7 +14,7 @@ export default [
   '/vipClassSet/vipNewActive', // VIP活动方案修改
   '/main/main', // 首页
   '/journal/journal', // 系统日志
-  '/business/accompany',
+  '/business/accompany', // 网管课管理
   '/journal/classFeesIsOk', // 课酬列表
   '/journal/requestProcessing', // 课酬申述
   '/journal/payAppeal', // 考勤申诉