|
@@ -212,16 +212,18 @@ export default {
|
|
|
handler: function (val, oldVal) {
|
|
handler: function (val, oldVal) {
|
|
|
this.dialogVisible = this.visible
|
|
this.dialogVisible = this.visible
|
|
|
this.isPrivateLocal = this.isPrivate
|
|
this.isPrivateLocal = this.isPrivate
|
|
|
- this.type.authorityObject = JSON.parse(this.parentData.authorityName)
|
|
|
|
|
|
|
+ if (this.categoryKey === 'FILE_TYPE') {
|
|
|
|
|
+ this.type.authorityObject = JSON.parse(this.parentData.authorityName)
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
immediate: true
|
|
immediate: true
|
|
|
},
|
|
},
|
|
|
parentData: {
|
|
parentData: {
|
|
|
handler: function (val, oldVal) {
|
|
handler: function (val, oldVal) {
|
|
|
- this.getRadioOptions()
|
|
|
|
|
- this.type.authorityObject = JSON.parse(val.authorityName)
|
|
|
|
|
- console.log('this.type.authorityObject', this.type.authorityObject)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (this.categoryKey === 'FILE_TYPE') {
|
|
|
|
|
+ this.getRadioOptions()
|
|
|
|
|
+ this.type.authorityObject = JSON.parse(val.authorityName)
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
immediate: true
|
|
immediate: true
|
|
|
},
|
|
},
|
|
@@ -344,9 +346,11 @@ export default {
|
|
|
curdPost('sql', sql).then(res => {
|
|
curdPost('sql', sql).then(res => {
|
|
|
let datas = res.variables.data
|
|
let datas = res.variables.data
|
|
|
let treeDatas = this.buildTree(datas, 'ID_', 'PARENT_ID_')
|
|
let treeDatas = this.buildTree(datas, 'ID_', 'PARENT_ID_')
|
|
|
|
|
+ let tree = []
|
|
|
for (let i in treeDatas) {
|
|
for (let i in treeDatas) {
|
|
|
- this.cascaderOptions.push(treeDatas[i])
|
|
|
|
|
|
|
+ tree.push(treeDatas[i])
|
|
|
}
|
|
}
|
|
|
|
|
+ this.cascaderOptions = tree
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
radioChangeHandle(h) {
|
|
radioChangeHandle(h) {
|