|
@ -10,8 +10,9 @@ |
|
|
<div> |
|
|
<div> |
|
|
<el-form-item label="所属组织" |
|
|
<el-form-item label="所属组织" |
|
|
:label-width="labelWidth"> |
|
|
:label-width="labelWidth"> |
|
|
<el-cascader v-model="tableParams.agencyId" |
|
|
<el-cascader v-model="agencyIdArray" |
|
|
style="width:480px" |
|
|
style="width:480px" |
|
|
|
|
|
:key="iscascaderShow" |
|
|
:options="options" |
|
|
:options="options" |
|
|
:props="optionProps" |
|
|
:props="optionProps" |
|
|
clearable></el-cascader> |
|
|
clearable></el-cascader> |
|
@ -103,6 +104,8 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
options: [], |
|
|
options: [], |
|
|
|
|
|
agencyIdArray: [], |
|
|
|
|
|
iscascaderShow: 0, |
|
|
categoryList: [], |
|
|
categoryList: [], |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -210,8 +213,10 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
loadData () { |
|
|
loadData () { |
|
|
if (this.tableParams.agencyId.length > 0) { |
|
|
if (this.agencyIdArray.length > 0) { |
|
|
this.tableParams.agencyId = this.tableParams.agencyId[this.tableParams.agencyId.length - 1] |
|
|
this.tableParams.agencyId = this.agencyIdArray[this.agencyIdArray.length - 1] |
|
|
|
|
|
} else { |
|
|
|
|
|
this.tableParams.agencyId = '' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.$refs.table.loadData() |
|
|
this.$refs.table.loadData() |
|
@ -273,7 +278,10 @@ export default { |
|
|
const params = {} |
|
|
const params = {} |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
|
|
|
++this.iscascaderShow |
|
|
this.options = [] |
|
|
this.options = [] |
|
|
|
|
|
this.agencyIdArray.length = [] |
|
|
|
|
|
|
|
|
this.options.push(data) |
|
|
this.options.push(data) |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|