refactor: 重构权限管理

1.更新字段管理
This commit is contained in:
猿小天
2023-11-21 21:21:58 +08:00
parent 6045312f7e
commit fb8b0a5ac6
4 changed files with 11 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
<el-input v-model="deptFormData.key" />
</el-form-item>
<el-form-item label="负责人">
<el-input v-model="deptFormData.owner" />
<el-input v-model="deptFormData.owner" placeholder="请输入" />
</el-form-item>
<el-form-item label="备注">
<el-input v-model="deptFormData.description" maxlength="200" show-word-limit type="textarea" />

View File

@@ -266,7 +266,6 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
url: '/api/system/role/',
value: 'id',
label: 'name',
isTree: true,
getData: async ({ url }: { url: string }) => {
return request({
url: url,

View File

@@ -251,10 +251,10 @@ const handleResetPwdSubmit = async () => {
};
onMounted(() => {
crudExpose.doRefresh();
deptCountChart = init(deptCountBar.value as HTMLElement);
deptSexChart = init(deptSexPie.value as HTMLElement);
getDeptInfo();
crudExpose.doRefresh();
});
defineExpose({

View File

@@ -47,6 +47,15 @@ export const createCrudOptions = function ({ crudExpose, tabActivted }: { crudEx
editRequest,
delRequest,
},
actionbar:{
buttons:{
add:{
show:computed(() =>{
return tabActivted.value !== 'receive'
})
},
}
},
rowHandle: {
fixed:'right',
width:150,