mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-10-15 06:39:02 +00:00
fix 基础权限相关分配多次操作未清理缓存导致重复添加
This commit is contained in:
@@ -38,11 +38,7 @@
|
|||||||
</a-tree>
|
</a-tree>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<a-select
|
<a-select style="min-width: 100px" @change="clientSwitch" v-model:value="clientCode">
|
||||||
style="min-width: 100px"
|
|
||||||
@change="clientSwitch"
|
|
||||||
v-model:value="clientCode"
|
|
||||||
>
|
|
||||||
<a-select-option v-for="o in clients" :key="o.code">{{ o.name }}</a-select-option>
|
<a-select-option v-for="o in clients" :key="o.code">{{ o.name }}</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<a-dropdown style="margin-left: 5px" :trigger="['click']" placement="top">
|
<a-dropdown style="margin-left: 5px" :trigger="['click']" placement="top">
|
||||||
@@ -125,6 +121,7 @@
|
|||||||
loading.value = true
|
loading.value = true
|
||||||
searchName.value = ''
|
searchName.value = ''
|
||||||
expandedKeys.value = []
|
expandedKeys.value = []
|
||||||
|
treeList.value = []
|
||||||
// 当前角色的菜单
|
// 当前角色的菜单
|
||||||
await treeByRoleMenu(currentRole.value.id, clientCode).then((res) => {
|
await treeByRoleMenu(currentRole.value.id, clientCode).then((res) => {
|
||||||
treeData.value = treeDataTranslate(res.data, 'id', 'title')
|
treeData.value = treeDataTranslate(res.data, 'id', 'title')
|
||||||
|
@@ -122,6 +122,7 @@
|
|||||||
loading.value = true
|
loading.value = true
|
||||||
searchName.value = ''
|
searchName.value = ''
|
||||||
expandedKeys.value = []
|
expandedKeys.value = []
|
||||||
|
treeList.value = []
|
||||||
// 当前角色的请求路径
|
// 当前角色的请求路径
|
||||||
await treeByRolePath(currentRole.value.id, clientCode).then((res) => {
|
await treeByRolePath(currentRole.value.id, clientCode).then((res) => {
|
||||||
treeData.value = treeDataTranslate(res.data, 'id', 'title')
|
treeData.value = treeDataTranslate(res.data, 'id', 'title')
|
||||||
|
@@ -101,6 +101,9 @@
|
|||||||
modal.visible = true
|
modal.visible = true
|
||||||
modal.batch = batch
|
modal.batch = batch
|
||||||
modal.loading = true
|
modal.loading = true
|
||||||
|
|
||||||
|
modal.treeList = []
|
||||||
|
modal.checkedKeys = []
|
||||||
// 初始化角色树
|
// 初始化角色树
|
||||||
await initRoles()
|
await initRoles()
|
||||||
if (!batch) {
|
if (!batch) {
|
||||||
|
Reference in New Issue
Block a user