|
|
@@ -767,16 +767,16 @@
|
|
|
},
|
|
|
// ----------------------------------------------------------------
|
|
|
// 自定义查询
|
|
|
- handleSearchCommand (command) {
|
|
|
+ /* handleSearchCommand (command) {
|
|
|
if (command == 'search') {
|
|
|
this.dialogVisible = true
|
|
|
} else if (command == 'clear') {
|
|
|
this.clearSearch()
|
|
|
} else if (command == '编辑') {
|
|
|
- /* this.searchDialogVisible = true
|
|
|
+ /!* this.searchDialogVisible = true
|
|
|
this.searchcolumn = this.showcolumn.filter(function (e) {
|
|
|
return e.filed != "Location"
|
|
|
- }) */
|
|
|
+ }) *!/
|
|
|
this.$refs.samplesearchdialog.creatpage()
|
|
|
this.$refs.samplesearchdialog.samplesearchdialogVisable = true
|
|
|
} else {
|
|
|
@@ -787,6 +787,41 @@
|
|
|
store.set('samplearchivedseach', searchmodel)
|
|
|
this.searchWithTemplate(command)
|
|
|
}
|
|
|
+ }, */
|
|
|
+ handleSearchCommand (command) {
|
|
|
+ if (command == 'search') {
|
|
|
+ this.dialogVisible = true
|
|
|
+ } else if (command == 'clear') {
|
|
|
+ this.clearSearch()
|
|
|
+ } else if (command == '编辑') {
|
|
|
+ // this.$refs.customsearchdialog.creatpage()
|
|
|
+ // this.$refs.customsearchdialog.customsearchdialogVisable = true
|
|
|
+ // this.searchcolumn = this.showcolumn.filter(function (e) {
|
|
|
+ // return e.filed !== 'PositionInfo'
|
|
|
+ // })
|
|
|
+
|
|
|
+ /* this.searchDialogVisible = true
|
|
|
+ this.searchcolumn = this.showcolumn.filter(function (e) {
|
|
|
+ return e.filed != "Location"
|
|
|
+ }) */
|
|
|
+
|
|
|
+ this.$refs.samplesearchdialog.creatpage()
|
|
|
+ this.$refs.samplesearchdialog.samplesearchdialogVisable = true
|
|
|
+ } else {
|
|
|
+ let params = {
|
|
|
+ currentPage: 1,
|
|
|
+ size: 200,
|
|
|
+ template: command,
|
|
|
+ isDelete: 0,
|
|
|
+ type: 'Sample'
|
|
|
+ }
|
|
|
+ console.log(params)
|
|
|
+ service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'SampleSearchByTemplate', params).then(res => {
|
|
|
+ this.donorsList = res.data.list
|
|
|
+ this.currentItemCount = res.data.total
|
|
|
+ })
|
|
|
+ this.currentSearchTemplate = command
|
|
|
+ }
|
|
|
},
|
|
|
// 添加自定义搜索
|
|
|
addSearchTab (name) {
|