This commit is contained in:
2025-09-08 20:00:59 +08:00
parent 8eac9bce6c
commit cf2b805770
16 changed files with 292 additions and 424 deletions

View File

@ -154,15 +154,24 @@
</el-row>
<!-- 添加或修改用户配置对话框 -->
<el-dialog draggable ref="formDialogRef" style="background: rgb(249,250,251);" v-model="dialog.visible" :title="dialog.title" width="1300px" append-to-body @close="closeDialog">
<el-dialog
draggable
ref="formDialogRef"
style="background: rgb(249, 250, 251)"
v-model="dialog.visible"
:title="dialog.title"
width="1300px"
append-to-body
@close="closeDialog"
>
<div class="boxDetial">
<div class="tab_info">
<div class="tab_item" @click="onTab(1)" :class="{ active: type == 1 }">
<Avatar style="width: 1em; height: 1em; margin-right: 8px" :style="{color: type == 1 ? '#1890ff' : '#000'}" />
<Avatar style="width: 1em; height: 1em; margin-right: 8px" :style="{ color: type == 1 ? '#1890ff' : '#000' }" />
<span>基本资料</span>
</div>
<div class="tab_item" @click="onTab(2)" :class="{ active: type == 2 }">
<Key style="width: 1em; height: 1em; margin-right: 8px" :style="{color: type == 2 ? '#1890ff' : '#000'}" />
<Key style="width: 1em; height: 1em; margin-right: 8px" :style="{ color: type == 2 ? '#1890ff' : '#000' }" />
<span>角色信息</span>
</div>
</div>
@ -698,13 +707,20 @@ const uploadCert = async () => {
proxy?.$modal.msgSuccess('上传证书目录成功');
};
const onTab = (val: number) => {
type.value = val;
if (val == 2) {
let obj = editInfoRef.value?.getInfoForm();
form.value = obj;
nextTick(() => {
roleInfoRef.value?.open(form.value, deptIdRole.value);
// 查看基本信息
editInfoRef.value?.submitForm((res) => {
type.value = val;
let obj = editInfoRef.value?.getInfoForm();
form.value = obj;
console.log(obj);
nextTick(() => {
roleInfoRef.value?.open(form.value, deptIdRole.value);
});
});
} else {
type.value = val;
}
};
</script>