This commit is contained in:
weiwei committed 2025-03-13 20:49:14 +08:00
1 parent 7fca37e2a6
commit 72e734d02f
3 files changed
+16 -6

No files matched your search

+9 -1
View File
@@ -46,13 +46,21 @@
<el-form-item :label="$t('sysuser.dept')" prop="deptId">
<el-tree-select
:data="deptData"
:props="{ value: 'id', label: 'name', children: 'children' }"
:props="{ value: 'id', label: 'name', children: 'children', disabled: 'isLock' }"
check-strictly
class="w100"
clearable
placeholder="请选择所属部门"
v-model="dataForm.deptId"
>
<template #default="{ node, data }">
<el-tooltip v-if="data.isLock" effect="dark" content="无数据权限" placement="right">
<span>
{{ node.label }}
<SvgIcon name="ele-Lock" />
</span>
</el-tooltip>
</template>
</el-tree-select>
</el-form-item>
</el-col>