用户 授权问题

szh_zidingyibiaoti
张同海 2 years ago
parent 72099b6031
commit 2ec734a873

@ -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)

Loading…
Cancel
Save