|
|
@@ -298,7 +298,6 @@ export default {
|
|
|
this.isPrivateLocal = this.isPrivate
|
|
|
if (this.categoryKey === 'FILE_TYPE' && this.parentData.authorityName !== undefined) {
|
|
|
this.type.authorityObject = JSON.parse(this.parentData.authorityName)
|
|
|
- console.log(this.type.authorityObject, 'aaaaaaaa')
|
|
|
}
|
|
|
},
|
|
|
immediate: true
|
|
|
@@ -426,8 +425,8 @@ export default {
|
|
|
get({ typeId: this.formId }).then(response => {
|
|
|
this.$refs[this.formName].clearValidate()
|
|
|
const data = response.data
|
|
|
- data.authorityName = response.data.authorityName ? JSON.parse(response.data.authorityName) : '{"chaYue":"","buMen":"","shenCha":"","shenHeZouXiang":"","fenLei":""}'
|
|
|
- data.authorityObject = response.data.authorityObject ? JSON.parse(response.data.authorityObject) : { chaYue: '', buMen: '', shenCha: '', shenHeZouXiang: '', fenLei: '' }
|
|
|
+ data.authorityName = response.data.authorityName || '{"chaYue":"","buMen":"","shenCha":"","shenHeZouXiang":"","fenLei":""}'
|
|
|
+ data.authorityObject = response.data.authorityObject || JSON.parse(data.authorityName)
|
|
|
this.type = data
|
|
|
this.isPrivateLocal = !((this.$utils.isEmpty(this.type.ownerId) || this.type.ownerId === '0'))
|
|
|
}).catch(() => { })
|