Przeglądaj źródła

修复页面跳转清空查询数据的问题

jianglw 4 lat temu
rodzic
commit
f0b5dc346f

+ 4 - 3
src/dashoo.cn/frontend_animal/src/pages/samples/archived/index.vue

@@ -549,7 +549,7 @@ export default {
         }
         }
         params = Object.assign(params, params3)
         params = Object.assign(params, params3)
       }
       }
-      store.set('samplestoredseach', params)
+      store.set('samplearchivedseach', params)
       _this.getAllSearchTab()
       _this.getAllSearchTab()
       this.$axios.get('/samplesfiles/animallist', {
       this.$axios.get('/samplesfiles/animallist', {
         params
         params
@@ -613,8 +613,6 @@ export default {
         _currentPage: -1
         _currentPage: -1
       })
       })
         .then(res => {
         .then(res => {
-          this.getSampleTypeList(this.multipleSelection)
-          this.exportType = 'exportchosen'
           // _this.exportsamples('exportchosen')
           // _this.exportsamples('exportchosen')
           if (store.get('samplearchivedseach').searchWithTemplate && store.get('samplearchivedseach').searchWithTemplate !==
           if (store.get('samplearchivedseach').searchWithTemplate && store.get('samplearchivedseach').searchWithTemplate !==
             '') { // 自定义查询
             '') { // 自定义查询
@@ -1074,7 +1072,10 @@ export default {
           })
           })
           return
           return
         }
         }
+        _this.getSampleTypeList(this.multipleSelection)
+        _this.exportType = 'exportchosen'
         _this.exportsamples('exportchosen')
         _this.exportsamples('exportchosen')
+        this.sampleExportVisible = true
       } else if (command == 'exportpage') { // 导出当前页数据
       } else if (command == 'exportpage') { // 导出当前页数据
         if (_this.list.length < 1) {
         if (_this.list.length < 1) {
           _this.$message({
           _this.$message({

+ 1 - 1
src/dashoo.cn/frontend_animal/src/pages/samples/prerecorded/index.vue

@@ -576,7 +576,7 @@
           }
           }
           params = Object.assign(params, params3)
           params = Object.assign(params, params3)
         }
         }
-        store.set('samplestoredseach', params)
+        store.set('sampleprerecordedseach', params)
         _this.getAllSearchTab()
         _this.getAllSearchTab()
         this.$axios.get('/samplepreinput/animallist', {
         this.$axios.get('/samplepreinput/animallist', {
           params
           params

+ 1 - 1
src/dashoo.cn/frontend_animal/src/pages/samples/waitingstore/index.vue

@@ -542,7 +542,7 @@
           }
           }
           params = Object.assign(params, params3)
           params = Object.assign(params, params3)
         }
         }
-        store.set('samplestoredseach', params)
+        store.set('samplewaitstoreseach', params)
         _this.getAllSearchTab()
         _this.getAllSearchTab()
         this.$axios.get('/samplesunsave/animallist', {
         this.$axios.get('/samplesunsave/animallist', {
           params
           params