fix: 修复报告传值错误问题

This commit is contained in:
@changcode
2022-04-22 11:18:14 +08:00
parent 4e48c5c652
commit bccea4cf5c
3 changed files with 4 additions and 7 deletions

View File

@@ -69,9 +69,6 @@ export default {
tableId: {
type: String
},
builtinId: {
type: Number
},
tableTitle: {
type: Array
},
@@ -99,8 +96,7 @@ export default {
},
onsearch () {
const params = {
q: this.keyWord,
id: this.builtinId
q: this.keyWord
}
this.$emit('search', params)
}

View File

@@ -76,6 +76,8 @@ export default {
getTableData (params) {
if (params) {
this.searchLabel = { ...this.searchLabel, ...params }
} else {
this.searchLabel = {}
}
this.searchLabel = { ...this.searchLabel, ...this.pageObj }
this.tools.loading = true

View File

@@ -17,7 +17,6 @@
:tableId="tableId"
v-model:custom-table-title="tools.customTableTitle"
:api="url"
:builtinId="builtinId"
:from="fromRoute.builtinReport"
:layout="['search']"
@search="search"