Ver código fonte

修复样本导出 导出按钮会全部置空的bug

gongyb 4 anos atrás
pai
commit
b59097a6aa

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

@@ -333,10 +333,10 @@ export default {
         name: '并且',
         value: 'and'
       },
-        {
-          name: '或者',
-          value: 'or'
-        }
+      {
+        name: '或者',
+        value: 'or'
+      }
       ],
       searchTableData: [],
       searchcolumn: [], // 搜索列
@@ -565,7 +565,7 @@ export default {
         .then(res => {
           this.EquipmentList = res.data
         })
-      /*this.$refs.multipleTable.doLayout()*/
+      /* this.$refs.multipleTable.doLayout() */
       // 获取样本扩展列表
       service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'CustomizeSearch', {type: 'Sample'})
         .then(res => {
@@ -578,7 +578,7 @@ export default {
         })
     },
     GetEquipmentInfos () {
-      if (this.DItem != ''){
+      if (this.DItem != '') {
         service.postRequest('dashoo.biobank.bee-0.1', 'Equipment', 'GetEquipmentInfos', {DItem: this.DItem})
           .then(res => {
             this.EquipmentInfosList = res.data
@@ -1154,7 +1154,7 @@ export default {
         d_item: this.DItem,
         equipment_ids: (this.EquipmentIds).length == 0 ? '' : this.EquipmentIds.join(','),
         stnote_value: this.Stnotevalue,
-        stnote_field: this.STNoteField,
+        stnote_field: this.STNoteField == '' ? [] : this.STNoteField,
         create_by: this.CreateBy,
         source_name: this.SourceName,
         name: this.Name,
@@ -1215,7 +1215,7 @@ export default {
       console.log('filename', name)
       // 样本来源相关导出
       service.downloadExcel('dashoo.biobank.bee-0.1', 'SampleRelated', 'ExportExcel', name, params)
-      _this.clearSearch()
+      _this.SampleType = ''
       _this.sampleExportVisible = false
     },
     exportSampleTypeInfo () {

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

@@ -776,7 +776,7 @@
           d_item: this.DItem,
           equipment_ids: (this.EquipmentIds).length == 0 ? '' : this.EquipmentIds.join(','),
           stnote_value: this.Stnotevalue,
-          stnote_field: this.STNoteField,
+          stnote_field: this.STNoteField == '' ? [] : this.STNoteField,
           create_by: this.CreateBy,
           source_name: this.SourceName,
           name: this.Name,
@@ -838,7 +838,7 @@
         console.log('filename', name)
         // 样本来源相关导出
         service.downloadExcel('dashoo.biobank.bee-0.1', 'SampleRelated', 'ExportExcel', name, params)
-        _this.clearSearch()
+        _this.SampleType = ''
         _this.sampleExportVisible = false
       },
       exportSampleTypeInfo () {

+ 2 - 2
src/dashoo.cn/frontend_animal/src/pages/samples/stored/index.vue

@@ -1000,7 +1000,7 @@
           d_item: this.DItem,
           equipment_ids: (this.EquipmentIds).length == 0 ? '' : this.EquipmentIds.join(','),
           stnote_value: this.Stnotevalue,
-          stnote_field: this.STNoteField,
+          stnote_field: this.STNoteField == '' ? [] : this.STNoteField,
           create_by: this.CreateBy,
           source_name: this.SourceName,
           name: this.Name,
@@ -1061,7 +1061,7 @@
         // 样本来源相关导出
         service.downloadExcel('dashoo.biobank.bee-0.1', 'SampleRelated', 'ExportExcel'
           , name, params)
-        _this.clearSearch()
+        _this.SampleType = ''
         _this.sampleExportVisible = false
       },
       exportSampleTypeInfo () {

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

@@ -1155,7 +1155,7 @@
           d_item: this.DItem,
           equipment_ids: (this.EquipmentIds).length == 0 ? '' : this.EquipmentIds.join(','),
           stnote_value: this.Stnotevalue,
-          stnote_field: this.STNoteField,
+          stnote_field: this.STNoteField == '' ? [] : this.STNoteField,
           create_by: this.CreateBy,
           source_name: this.SourceName,
           name: this.Name,
@@ -1216,7 +1216,7 @@
         console.log('filename', name)
         // 样本来源相关导出
         service.downloadExcel('dashoo.biobank.bee-0.1', 'SampleRelated', 'ExportExcel', name, params)
-        _this.clearSearch()
+        _this.SampleType = ''
         _this.sampleExportVisible = false
       },
       exportSampleTypeInfo () {