Преглед изворни кода

导出全部样本时的参数修改

jianglw пре 4 година
родитељ
комит
6c3a95296a
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      src/dashoo.cn/frontend_animal/src/pages/samples/stored/index.vue

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

@@ -357,7 +357,7 @@
         Id: 0, // ID
         BarCode: '', // 样本条码
         SampleCode: '', // 样本编码
-        SampleType: '', // 样本类型
+        SampleType: 0, // 样本类型
         SamplingSite: '', // 取材部位
         Stnotevalue: '', // 特有扩展检索值
         STNoteField: [], // 特有扩展名称
@@ -933,6 +933,7 @@
             cancelButtonText: '取消',
             type: 'info'
           }).then(() => {
+            this.exportType = 'exportall'
             _this.exportsamples()
           }).catch(() => {})
         }
@@ -989,8 +990,8 @@
           }
         }
         let params = {
-          currentPage: this.currentPage,
-          size: this.size,
+          currentPage: this.exportType == 'exportall' ? 0 : this.currentPage,
+          size: this.exportType == 'exportall' ? 0 : this.size,
           BarCode: this.BarCode,
           SampleCode: this.SampleCode,
           SampleType: this.SampleType,