ソースを参照

更改导出按钮默认为导出所有样本

gongyb 4 年 前
コミット
1277894cf8

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

@@ -28,7 +28,8 @@
           </el-form-item>
         </el-form>
           <el-dropdown split-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
-            @command="handleExportsamplesCommand">
+                       @click="handleExportsamplesCommand('exportall')"
+                       @command="handleExportsamplesCommand">
             导出
             <el-dropdown-menu slot="dropdown">
               <el-dropdown-item style="color:black;" command="exportchosen">导出所选样本</el-dropdown-item>

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

@@ -29,7 +29,9 @@
           <router-link :to="'/samples/prerecorded/new/unhumanpre'">
             <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="acc !='ssqOy' && acc != 'saB4v'">分装预录入</el-button>
           </router-link>
-          <el-dropdown split-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @command="handleExportsamplesCommand">
+          <el-dropdown split-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
+                       @click="handleExportsamplesCommand('exportall')"
+                       @command="handleExportsamplesCommand">
             导出
             <el-dropdown-menu slot="dropdown">
               <el-dropdown-item style="color:black;" command="exportchosen">导出所选样本</el-dropdown-item>

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

@@ -32,7 +32,8 @@
           </el-form-item>
         </el-form>
           <el-dropdown split-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
-            @command="handleExportsamplesCommand">
+                       @click="handleExportsamplesCommand('exportall')"
+                       @command="handleExportsamplesCommand">
             导出
             <el-dropdown-menu slot="dropdown">
               <el-dropdown-item style="color:black;" command="exportchosen">导出所选样本</el-dropdown-item>
@@ -1059,8 +1060,7 @@
         const name = dateInfo + '样本来源.xlsx'
         console.log('filename', name)
         // 样本来源相关导出
-        service.downloadExcel('dashoo.biobank.bee-0.1', 'SampleRelated', 'ExportExcel'
-          , params)
+        service.downloadExcel('dashoo.biobank.bee-0.1', 'SampleRelated', 'ExportExcel', params)
         _this.SampleType = ''
         _this.sampleExportVisible = false
       },

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

@@ -26,7 +26,9 @@
             </el-dropdown>
           </el-form-item>
         </el-form>
-          <el-dropdown split-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @command="handleExportsamplesCommand">
+          <el-dropdown split-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
+                       @click="handleExportsamplesCommand('exportall')"
+                       @command="handleExportsamplesCommand">
             导出
             <el-dropdown-menu slot="dropdown">
               <el-dropdown-item style="color:black;" command="exportchosen">导出所选样本</el-dropdown-item>