|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="5"> |
|
|
|
<!-- <el-col :span="5"> |
|
|
|
<div class="box" v-if="qw"> |
|
|
|
<div class="box" v-if="qw"> |
|
|
|
<el-scrollbar> |
|
|
|
<el-scrollbar> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
@ -9,8 +9,8 @@ |
|
|
|
</basic-container> |
|
|
|
</basic-container> |
|
|
|
</el-scrollbar> |
|
|
|
</el-scrollbar> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-col> --> |
|
|
|
<el-col :span="19"> |
|
|
|
<el-col > |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
<avue-crud |
|
|
|
<avue-crud |
|
|
|
:option="option" |
|
|
|
:option="option" |
|
|
@ -299,6 +299,7 @@ export default { |
|
|
|
if (['edit', 'view'].includes(type)) { |
|
|
|
if (['edit', 'view'].includes(type)) { |
|
|
|
getDetail(this.form.id).then(res => { |
|
|
|
getDetail(this.form.id).then(res => { |
|
|
|
this.form = res.data.data; |
|
|
|
this.form = res.data.data; |
|
|
|
|
|
|
|
this.form.type=String(this.form.type) |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
done(); |
|
|
|
done(); |
|
|
@ -330,17 +331,14 @@ export default { |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(page, params = {}) { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
|
|
|
console.log(this.query,';this.query'); |
|
|
|
|
|
|
|
|
|
|
|
this.loading = false; |
|
|
|
this.loading = false; |
|
|
|
const { name, type } = this.query; |
|
|
|
const { name, type } = this.query; |
|
|
|
let values = { |
|
|
|
let values = { |
|
|
|
name_like: name, |
|
|
|
name_like: name, |
|
|
|
type: type, |
|
|
|
type: type, |
|
|
|
}; |
|
|
|
}; |
|
|
|
if (!!this.treeId) { |
|
|
|
|
|
|
|
values.pid = this.treeId; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
values.type = 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
console.log('查询条件', values); |
|
|
|
console.log('查询条件', values); |
|
|
|
getList(page.currentPage, page.pageSize, values).then(res => { |
|
|
|
getList(page.currentPage, page.pageSize, values).then(res => { |
|
|
|
const data = res.data.data; |
|
|
|
const data = res.data.data; |
|
|
|