This commit is contained in:
Zy
2026-06-01 18:12:58 +08:00
parent 38274ab612
commit ae1f9f6ee2
123 changed files with 2729 additions and 1563 deletions

View File

@@ -2,12 +2,12 @@
<slot v-if="$slots.default" />
<div v-else class="residentBox" @click="choiceResidentFun">
<div class="defaultbox" v-if="multipleSelection.length === 0">
<div class="defaultbox" v-if="multipleSelection.length === 0 || props.username === ''">
<span>请选择</span>
<el-icon><Search /></el-icon>
</div>
<div v-else class="overflow-auto overflow-hidden w-full text-ellipsis text-nowrap">
<span>姓名{{ multipleSelection[0]?.name }}</span>
<span>姓名{{ multipleSelection[0]?.name ?? props.username }}</span>
</div>
</div>
@@ -80,6 +80,10 @@ const props = defineProps({
type: String,
default: ''
},
username: {
type: String,
default: ''
},
returnvalue: {
type: String,
default: 'id'
@@ -160,6 +164,7 @@ const handleUserSelection = () => {
// 打开选择框
function choiceResidentFun() {
dialog.value.dialogVisible = true;
handleUserSelection();
}
// 获取列表