修改搜索查询
This commit is contained in:
@@ -73,13 +73,11 @@
|
||||
checkboxList: [],
|
||||
tableAll: false,
|
||||
indeterminate: false,
|
||||
searchParmes: {}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
eventBUs.$on('searchQuery', target => {
|
||||
this.searchParmes = target
|
||||
this.getTableList()
|
||||
eventBUs.$on('searchQuery', search => {
|
||||
this.getTableList(search)
|
||||
})
|
||||
eventBUs.$on('searchReset', target => {
|
||||
this.getTableList()
|
||||
@@ -118,9 +116,9 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
getTableList() {
|
||||
getTableList(search) {
|
||||
let params = {
|
||||
...searchParmes,
|
||||
...search,
|
||||
}
|
||||
getAction(this.url.tableList, params).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<a-card :bordered="false">
|
||||
<div class="table-page-search-wrapper">
|
||||
<search :flag="'1'" :url="url" :searchList="searchList"/>
|
||||
<search :flag="'1'" :url="url"/>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<a-button @click="handleExport()" type="primary">数据导出</a-button>
|
||||
@@ -24,7 +24,7 @@
|
||||
/>
|
||||
</div>
|
||||
<addForm
|
||||
ref="addFormClick1"
|
||||
ref="addFormRef"
|
||||
:url="url"
|
||||
:flag="'1'"
|
||||
/>
|
||||
@@ -46,10 +46,6 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
searchList: [
|
||||
{ name: '名称', placeholder: '请输入姓名', attrModel: 'name', enName: 'title' },
|
||||
{ name: '标题', placeholder: '请输入标题', attrModel: 'title', enName: 'title' }
|
||||
],
|
||||
OperationList: [
|
||||
{
|
||||
text: '收藏',
|
||||
@@ -92,7 +88,7 @@
|
||||
|
||||
},
|
||||
handleAdd(){
|
||||
this.$refs.addFormClick1.add()
|
||||
this.$refs.addFormRef.add()
|
||||
},
|
||||
handleModule(){
|
||||
|
||||
@@ -101,14 +97,14 @@
|
||||
|
||||
},
|
||||
handleCompare() {
|
||||
// this.$refs.addFormClick1.add()
|
||||
// this.$refs.addFormRef.add()
|
||||
},
|
||||
handleFileImport(){
|
||||
|
||||
},
|
||||
//编辑按钮
|
||||
editTable(val) {
|
||||
this.$refs.addFormClick1.add()
|
||||
this.$refs.addFormRef.edit()
|
||||
console.log(val)
|
||||
},
|
||||
//删除按钮
|
||||
|
||||
Reference in New Issue
Block a user