|
|
|
@ -299,6 +299,7 @@ export default {
|
|
|
|
|
if (['edit', 'view'].includes(type)) { |
|
|
|
|
getDetail(this.form.id).then(res => { |
|
|
|
|
this.form = res.data.data; |
|
|
|
|
this.form.type=String(this.form.type) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
done(); |
|
|
|
@ -330,17 +331,14 @@ export default {
|
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}, |
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
console.log(this.query,';this.query'); |
|
|
|
|
|
|
|
|
|
this.loading = false; |
|
|
|
|
const { name, type } = this.query; |
|
|
|
|
let values = { |
|
|
|
|
name_like: name, |
|
|
|
|
type: type, |
|
|
|
|
}; |
|
|
|
|
if (!!this.treeId) { |
|
|
|
|
values.pid = this.treeId; |
|
|
|
|
} else { |
|
|
|
|
values.type = 1; |
|
|
|
|
} |
|
|
|
|
console.log('查询条件', values); |
|
|
|
|
getList(page.currentPage, page.pageSize, values).then(res => { |
|
|
|
|
const data = res.data.data; |
|
|
|
|