style: 优化操作列图标

This commit is contained in:
xlsea
2025-04-24 18:06:37 +08:00
parent c2818257dc
commit 2bdfb57bbd
3 changed files with 51 additions and 18 deletions

View File

@ -16,6 +16,8 @@ interface Props {
rowData?: Api.System.User | null;
/** the dept tree data */
deptData?: Api.Common.CommonTreeRecord;
/** the dept id */
deptId?: CommonType.IdType | null;
}
const props = defineProps<Props>();
@ -86,6 +88,7 @@ async function getUserInfo() {
function handleUpdateModelWhenEdit() {
if (props.operateType === 'add') {
Object.assign(model, createDefaultModel());
model.deptId = props.deptId;
return;
}