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