|
@@ -14,6 +14,7 @@ const departTreeKeys = {
|
|
|
}
|
|
|
const departOpts = ref([])
|
|
|
const departActive = defineModel('departActive')//当前选中的分类
|
|
|
+const departLevel=defineModel('departLevel')
|
|
|
async function getDepartList() {
|
|
|
const res = await apiSystemDepart.departList()
|
|
|
if (res.Ret !== 200) return
|
|
@@ -31,6 +32,7 @@ function initDepart() {
|
|
|
|
|
|
function handleDepartActiveChange(data, node) {
|
|
|
departActive.value = data.SysDepartmentId
|
|
|
+ departLevel.value=data.Level
|
|
|
emits('change')
|
|
|
}
|
|
|
// 控制分类操作按钮显示
|
|
@@ -253,7 +255,7 @@ function getFormTitle(e) {
|
|
|
:allow-drag="()=>false"
|
|
|
@node-drop="handleDropOver"
|
|
|
>
|
|
|
- <template #default="{ node, data }">
|
|
|
+ <template #default="{ node }">
|
|
|
<div class="depart-item-box">
|
|
|
<div class="label">{{ node.label }}</div>
|
|
|
<!-- <div class="opt-box" v-show="showClassifyOpt(node, data)">
|