|
@@ -85,7 +85,7 @@ export default {
|
|
|
handleChange (v) {
|
|
handleChange (v) {
|
|
|
const nodesInfo = this.$refs['cascader'].getCheckedNodes()[0]
|
|
const nodesInfo = this.$refs['cascader'].getCheckedNodes()[0]
|
|
|
const xilei = []
|
|
const xilei = []
|
|
|
- const authorityBuMen = []
|
|
|
|
|
|
|
+ let authorityBuMen = []
|
|
|
const authority = JSON.parse(nodesInfo.data.AUTHORITY_NAME)
|
|
const authority = JSON.parse(nodesInfo.data.AUTHORITY_NAME)
|
|
|
const wenJianXiLeiArrs = nodesInfo.pathNodes.map((item) => item.label)
|
|
const wenJianXiLeiArrs = nodesInfo.pathNodes.map((item) => item.label)
|
|
|
// 组件本身字段的回填值
|
|
// 组件本身字段的回填值
|
|
@@ -104,7 +104,8 @@ export default {
|
|
|
// eslint-disable-next-line no-redeclare
|
|
// eslint-disable-next-line no-redeclare
|
|
|
for (var i of authority.buMen) {
|
|
for (var i of authority.buMen) {
|
|
|
if (i[0] === this.levelInfos || i[1] === this.levelInfos) {
|
|
if (i[0] === this.levelInfos || i[1] === this.levelInfos) {
|
|
|
- authorityBuMen.push(i[i.length - 1])
|
|
|
|
|
|
|
+ authorityBuMen = [...authorityBuMen, ...i]
|
|
|
|
|
+ // authorityBuMen.push(i[i.length - 1])
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
this.$emit(
|
|
this.$emit(
|