|
|
@@ -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
|
|
|
}
|
|
|
},
|
|
|
|