-
+
+
+ {{
+ }}
+
{
this.$message.success("复制成功")
@@ -233,7 +257,12 @@ export default {
handleSearch(form) {
this.cacheForm = Object.assign(this.cacheForm, form)
this.listLoading = true
- const params = Object.assign({}, this.cacheForm)
+ const params = Object.assign(
+ {
+ dbId: this.dbId,
+ },
+ this.cacheForm
+ )
for (let key in params) {
if (params[key] === "") {
delete params[key]
@@ -250,9 +279,19 @@ export default {
}
})
},
+
+ getDbList() {
+ getDbList().then((res) => {
+ this.dbList = res.data
+ if (this.dbList[0]) {
+ this.dbId = this.dbList[0].id
+ }
+ this.handleFormSearch()
+ })
+ },
},
created() {
- this.handleFormSearch()
+ this.getDbList()
},
}