fix: 客户人员-编辑-多选组件失去焦点关闭

This commit is contained in:
wangzhuo
2025-09-01 13:56:20 +08:00
parent d37b721c28
commit a6a98eb2b6

View File

@@ -22,7 +22,7 @@
<!-- 正文内容 -->
<view class="white-bg">
<view class="form-con">
<view class="form-con" @click="handleBlur">
<uni-forms ref="formRef" :model="formData" :rules="rules" label-width="40%">
<!-- 选择客户 -->
<uni-forms-item label="客户名称" name="cusName" required class="f-c-right">
@@ -582,6 +582,11 @@ let handleWorkingStatusChange = e => {
formData.value.workingStatus = workingStatusList[value].name;
}
const hobbySelectRef = ref(null);
// 多选组件失去焦点关闭
let handleBlur = () => {
if (hobbySelectRef.value) hobbySelectRef.value.handleBlur();
}
let submitForm = async () => {
let hobbyTags = hobbies.value.map(it => {
let {name} = it;