Browse Source

样本管理 已存储样本 自定义查询功能修改

gongyb 4 years ago
parent
commit
c4ad84cb2a
1 changed files with 13 additions and 6 deletions
  1. 13 6
      src/dashoo.cn/frontend_animal/src/pages/samples/stored/index.vue

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

@@ -48,7 +48,7 @@
                 <el-dropdown-item style="color:black;"
                                   v-for="item in searchTemplates"
                                   :key="item.name"
-                                  :command="item.name">{{item.name}}</el-dropdown-item>
+                                  :command="item.template">{{item.name}}</el-dropdown-item>
 
                 <el-dropdown-item divided style="color:black;" command="编辑">自定义</el-dropdown-item>
               </el-dropdown-menu>
@@ -1366,12 +1366,19 @@
           this.$refs.samplesearchdialog.creatpage()
           this.$refs.samplesearchdialog.samplesearchdialogVisable = true
         } else {
-          this.currentSearchTemplate = command
-          let searchmodel = {
-            searchWithTemplate: command
+          let params = {
+            currentPage: 1,
+            size: 200,
+            template: command,
+            isDelete: 0,
+            type: 'Sample'
           }
-          store.set('samplestoredseach', searchmodel)
-          this.searchWithTemplate(command)
+          console.log(params)
+          service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'SearchByTemplate', params).then(res => {
+            this.donorsList = res.data.list
+            this.currentItemCount = res.data.total
+          })
+          this.currentSearchTemplate = command
         }
       },