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