|
|
@@ -52,6 +52,7 @@
|
|
|
:load-data="loadChildrenTreeData"
|
|
|
:checkedKeys="checkedKeys"
|
|
|
v-model:expandedKeys="expandedKeys"
|
|
|
+ class="h-600px overflow-auto"
|
|
|
@check="onCheck"
|
|
|
@select="onSelect"
|
|
|
>
|
|
|
@@ -70,7 +71,7 @@
|
|
|
</Popconfirm>
|
|
|
|
|
|
<template #overlay>
|
|
|
- <a-menu @click="">
|
|
|
+ <a-menu>
|
|
|
<a-menu-item key="1" @click="onAddChildDepart(dataRef)">添加子级</a-menu-item>
|
|
|
<a-menu-item key="2" @click="visibleTreeKey = treeKey">
|
|
|
<span style="color: red">删除</span>
|
|
|
@@ -88,7 +89,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
- import { inject, nextTick, ref, unref } from 'vue';
|
|
|
+ import { nextTick, ref, unref } from 'vue';
|
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import { useMethods } from '/@/hooks/system/useMethods';
|
|
|
@@ -97,7 +98,7 @@
|
|
|
import DepartFormModal from '/@/views/system/depart/components/DepartFormModal.vue';
|
|
|
import { Popconfirm } from 'ant-design-vue';
|
|
|
|
|
|
- const prefixCls = inject('prefixCls');
|
|
|
+ // const prefixCls = inject('prefixCls');
|
|
|
const emit = defineEmits(['select', 'rootTreeData']);
|
|
|
const { createMessage } = useMessage();
|
|
|
const { handleImportXls, handleExportXls } = useMethods();
|