|
|
|
@ -214,6 +214,7 @@ export default {
|
|
|
|
|
sysDictTypeDropDown() {
|
|
|
|
|
// 数据范围
|
|
|
|
|
sysDictTypeDropDown({ code: 'data_scope_type' }).then(res => {
|
|
|
|
|
console.log(res.data, '数据范围')
|
|
|
|
|
this.dataScopeTypeData = res.data
|
|
|
|
|
this.formLoading = false
|
|
|
|
|
})
|
|
|
|
@ -313,6 +314,11 @@ export default {
|
|
|
|
|
this.MeuncheckedKeys.forEach(item => {
|
|
|
|
|
this.GrantData.forEach(item2 => {
|
|
|
|
|
if (item == item2.sysMenuId) {
|
|
|
|
|
console.log(item2)
|
|
|
|
|
if (!item2.dataScopeType) {
|
|
|
|
|
item2.dataScopeType = this.dataScopeTypeData[0].code
|
|
|
|
|
console.log('这条没有', item2)
|
|
|
|
|
}
|
|
|
|
|
childrens.push({ ...item2, menuId: item2.sysMenuId })
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -330,7 +336,8 @@ export default {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('授权成功')
|
|
|
|
|
this.confirmLoading = false
|
|
|
|
|
this.$emit('ok', values)
|
|
|
|
|
this.$emit('ok')
|
|
|
|
|
// this.$emit('ok', values)
|
|
|
|
|
this.handleCancel()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error('授权失败:' + res.message)
|
|
|
|
|