浏览代码

自定义查询bug修改2

gongyb 4 年之前
父节点
当前提交
60bf0e47d0

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

@@ -312,7 +312,7 @@
           </div>
         </el-col>
       </el-row>
-    </el-dialog>--> 
+    </el-dialog>-->
 
     <!-- 自定义查询 -->
     <samplesearchdialog @close="closeDialog"
@@ -863,7 +863,8 @@
             size: 200,
             template: command,
             isDelete: 0,
-            type: 'Sample'
+            type: 'Sample',
+            status: 'archived'
           }
           console.log(params)
           service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'SampleSearchByTemplate', params).then(res => {

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

@@ -49,7 +49,7 @@
         </el-form>
       </div>
 
-      <el-table ref="multipleTable" :data="donorsList" bordertooltip-effect="dark" border height="calc(100vh - 230px)" style="width: 100%;"
+      <el-table ref="multipleTable" :data="list" bordertooltip-effect="dark" border height="calc(100vh - 230px)" style="width: 100%;"
         @selection-change="handleSelectionChange" @header-dragend="header_dragend">
         <el-table-column type="selection" width="55"></el-table-column>
         <el-table-column label="操作" width="110" align="center" fixed>
@@ -655,7 +655,7 @@
         }
         store.set('samplestoredseach', params)
         _this.getAllSearchTab()
-        this.$axios.get('/sampleinput/animallist', {
+        this.$axios.get('/samplepreinput/animallist', {
           params
         })
           .then(res => {
@@ -946,11 +946,12 @@
             size: 200,
             template: command,
             isDelete: 0,
-            type: 'Sample'
+            type: 'Sample',
+            status: 'prerecorded'
           }
           console.log(params)
           service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'SampleSearchByTemplate', params).then(res => {
-            this.donorsList = res.data.list
+            this.list = res.data.list
             this.currentItemCount = res.data.total
           })
           this.currentSearchTemplate = command

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

@@ -1160,7 +1160,8 @@
             size: 200,
             template: command,
             isDelete: 0,
-            type: 'Sample'
+            type: 'Sample',
+            status: 'stored'
           }
           console.log(params)
           service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'SampleSearchByTemplate', params).then(res => {

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

@@ -40,7 +40,7 @@
         </el-form>
       </div>
 
-      <el-table ref="multipleTable" :data="donorsList" bordertooltip-effect="dark" border height="calc(100vh - 230px)" style="width: 100%;"
+       <el-table ref="multipleTable" :data="List" bordertooltip-effect="dark" border height="calc(100vh - 230px)" style="width: 100%;"
         @selection-change="handleSelectionChange" @header-dragend="header_dragend">
         <el-table-column type="selection" width="55"></el-table-column>
         <el-table-column label="操作" width="80" align="center" fixed>
@@ -611,7 +611,7 @@
         }
         store.set('samplestoredseach', params)
         _this.getAllSearchTab()
-        this.$axios.get('/sampleinput/animallist', {
+        this.$axios.get('/samplesunsave/animallist', {
           params
         })
           .then(res => {
@@ -760,11 +760,12 @@
             size: 200,
             template: command,
             isDelete: 0,
-            type: 'Sample'
+            type: 'Sample',
+            status: 'waitingstore'
           }
           console.log(params)
           service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'SampleSearchByTemplate', params).then(res => {
-            this.donorsList = res.data.list
+            this.List = res.data.list
             this.currentItemCount = res.data.total
           })
           this.currentSearchTemplate = command