This commit is contained in:
孟帅
2023-04-10 15:31:08 +08:00
parent 075a12ce7e
commit 9ac036a542
35 changed files with 506 additions and 143 deletions

View File

@@ -37,12 +37,12 @@ export const columns = [
}
);
},
width: 150,
width: 200,
},
{
title: '角色编码',
key: 'key',
width: 150,
// width: 150,
},
// {
// title: '上级角色',
@@ -62,22 +62,22 @@ export const columns = [
}
);
},
width: 80,
// width: 80,
},
{
title: '排序',
key: 'sort',
width: 100,
// width: 100,
},
{
title: '备注',
key: 'remark',
width: 300,
// width: 300,
},
{
title: '状态',
key: 'status',
width: 80,
// width: 80,
render(row) {
return h(
NTag,

View File

@@ -131,8 +131,9 @@
<n-form-item label="自定义权限" path="customDept" v-if="dataForm.dataScope === 4">
<n-tree-select
multiple
key-field="id"
:options="deptList"
:default-value="dataForm.customDept"
v-model:value="dataForm.customDept"
:default-expand-all="true"
@update:value="handleUpdateDeptValue"
/>
@@ -221,7 +222,7 @@
width: 320,
title: '操作',
key: 'action',
// fixed: 'right',
fixed: 'right',
render(record) {
return h(TableAction, {
style: 'primary',
@@ -439,7 +440,8 @@
}
async function loadDeptList() {
deptList.value = await getDeptList({});
const tmp = await getDeptList({});
deptList.value = tmp?.list;
if (deptList.value === undefined || deptList.value === null) {
deptList.value = [];
}