部门树优化
This commit is contained in:
1 parent
3499ec6dbb
commit
b3c83e1bdf
2 files changed
+11
-2
No files matched your search
@@ -50,7 +50,16 @@
|
||||
show-checkbox
|
||||
@node-click="handleNodeClick"
|
||||
@check="handleCheck"
|
||||
/>
|
||||
>
|
||||
<template #default="{ node, data }">
|
||||
<el-tooltip v-if="data.isLock" effect="dark" :content="$t('sysuser.noDataScopeTip')" placement="right">
|
||||
<span>
|
||||
{{ node.label }}
|
||||
<SvgIcon name="ele-Lock" />
|
||||
</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-tree>
|
||||
</div>
|
||||
|
||||
<!-- 底部区域 -->
|
||||
@@ -115,6 +124,7 @@ const props = withDefaults(
|
||||
label: "name",
|
||||
children: "children",
|
||||
value: "id",
|
||||
disabled: "isLock",
|
||||
}
|
||||
},
|
||||
nodeClickable: true,
|
||||
|
||||
@@ -187,7 +187,6 @@
|
||||
<script lang="ts" name="systemUser" setup>
|
||||
import { delObj, pageList, putObj } from "/@/api/admin/user"
|
||||
import { putGlobalFace } from "/@/api/admin/userFace"
|
||||
import { deptTree } from "/@/api/admin/dept"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
import { useI18n } from "vue-i18n"
|
||||
|
||||
Reference in new issue
Block a user