|
@@ -10,7 +10,7 @@ import { updateDepTreeData, generateUniqueId } from '@/utils/tools'
|
|
|
|
|
|
const emit = defineEmits<Emits>();
|
|
|
const props = defineProps({
|
|
|
- modelValue: { type: [String, Number, Array, Object, Boolean], required: true },
|
|
|
+ modelValue: { type: null, required: true },
|
|
|
size: { type: String as () => assemblySize, required: true, default: () => 'small' },
|
|
|
placeholder: { type: String, required: false, default: () => '请选择' },
|
|
|
multiple: { type: Boolean, required: false, default: false },
|
|
@@ -129,7 +129,7 @@ onMounted(() => {
|
|
|
|
|
|
<template>
|
|
|
<div class="departmentSelectionDiv" :style="`width: ${width}`">
|
|
|
- <el-cascader v-model="departmentVal" :ref="'deptRef'" :options="departmantArray" :props="departmentProps"
|
|
|
+ <!-- <el-cascader v-model="departmentVal" :ref="'deptRef'" :options="departmantArray" :props="departmentProps"
|
|
|
:size="size" :clearable="clearable" :placeholder="placeholder" filterable :show-all-levels="false"
|
|
|
:class="`departmentSelection ${!multiple && !visibleFlag ? 'clearColor' : ''}`" :style="`width: ${width}`"
|
|
|
:filter-method="filterMethod" @visible-change="visibleChange" @change="updateValue">
|
|
@@ -139,10 +139,9 @@ onMounted(() => {
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-cascader>
|
|
|
- <!-- 覆盖 -->
|
|
|
<div class="coverDept" v-if="!visibleFlag">
|
|
|
<TextTranslation translationTypes="departmentName" :translationValue="deptLabel"></TextTranslation>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|