fix : 修复阶段变更中抄送人员回显

This commit is contained in:
2024-06-14 23:26:38 +08:00
parent 532ef440ce
commit 73313a1532
4 changed files with 11 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
<template>
<el-button color="#DED0B2" >
{{ modelValue || '请选择抄送人员' }}
<div>{{modelValue}}</div>
<el-button color="#DED0B2" style="margin-left: 10px" @click="click">
{{ modelValue?'更改':'请选择抄送人员' }}
</el-button>
</template>
@@ -11,13 +12,8 @@ const props = defineProps({
default: ''
}
})
// const emit = defineEmits('update: modelValue')
const localText = ref('')
const emit = defineEmits('clickCopyUser')
const click=()=>{
emit("clickCopyUser")
}
</script>
<style lang="scss" scoped>
</style>

View File

@@ -4,7 +4,7 @@
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
<el-form :model="formData" label-width="auto">
<el-form-item label="抄送人员">
<Ttsup :modelValue="chooseUserInfo()" @click="chooseUser"/>
<Ttsup :modelValue="chooseUserInfo()" @clickCopyUser="chooseUser"/>
</el-form-item>
</el-form>
<user-picker :multiple="true" ref="userPicker" title="请选择抄送人员" v-model:value="userList" @ok="selected"/>
@@ -130,7 +130,7 @@ const chooseUserInfo = () => {
return item.name
}).join('')
} else {
return "请选择抄送人员"
return null
}
}
const selected = (select) => {