|
@@ -87,6 +87,7 @@ const clickCharacter = (id: number) => {
|
|
if (characterList.value.some((item) => !isValidString(item.name))) {
|
|
if (characterList.value.some((item) => !isValidString(item.name))) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
characterListId.value = id;
|
|
characterListId.value = id;
|
|
getDeviceGroupList();
|
|
getDeviceGroupList();
|
|
getFunctionPermList();
|
|
getFunctionPermList();
|
|
@@ -306,7 +307,6 @@ const transformData = (data: TreeStructure[]): OperationPermissions[] => {
|
|
|
|
|
|
const getFunctionPermList = () => {
|
|
const getFunctionPermList = () => {
|
|
handleRequest(async () => {
|
|
handleRequest(async () => {
|
|
- // const data = await getSubPermList(0);
|
|
|
|
const dataCheck = await getPermissionCheckTree(characterListId.value);
|
|
const dataCheck = await getPermissionCheckTree(characterListId.value);
|
|
checkedKeys.value = [];
|
|
checkedKeys.value = [];
|
|
expandedKeys.value = [];
|
|
expandedKeys.value = [];
|
|
@@ -516,7 +516,12 @@ onMounted(() => {
|
|
</AFlex>
|
|
</AFlex>
|
|
<div class="operation">
|
|
<div class="operation">
|
|
<AFlex align="center" v-for="(item, index) in operationpermissions" :key="index" class="operation-div">
|
|
<AFlex align="center" v-for="(item, index) in operationpermissions" :key="index" class="operation-div">
|
|
- <ACheckboxGroup v-model:value="item.list" :options="item.subPermissions" :disabled="editorChecked" />
|
|
|
|
|
|
+ <ACheckboxGroup
|
|
|
|
+ v-if="item.subPermissions"
|
|
|
|
+ v-model:value="item.list"
|
|
|
|
+ :options="item.subPermissions"
|
|
|
|
+ :disabled="editorChecked"
|
|
|
|
+ />
|
|
</AFlex>
|
|
</AFlex>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|