feat: 对齐后端-工作流委派的参数

(cherry picked from commit 0fba0d9a6a)
pull/256/head
youkehai 2023-09-25 11:31:13 +08:00 committed by shizhong
parent 2c74888712
commit 1b30ca07ed
1 changed files with 5 additions and 5 deletions

View File

@ -7,8 +7,8 @@
:rules="formRules"
label-width="110px"
>
<el-form-item label="接收人" prop="receiveId">
<el-select v-model="formData.receiveId" clearable style="width: 100%">
<el-form-item label="接收人" prop="delegateUserId">
<el-select v-model="formData.delegateUserId" clearable style="width: 100%">
<el-option
v-for="item in userList"
:key="item.id"
@ -37,10 +37,10 @@ const dialogVisible = ref(false) // 弹窗的是否展示
const formLoading = ref(false) //
const formData = ref({
id: '',
receiveId: undefined
delegateUserId: undefined
})
const formRules = ref({
receiveId: [{ required: true, message: '接收人不能为空', trigger: 'change' }]
delegateUserId: [{ required: true, message: '接收人不能为空', trigger: 'change' }]
})
const formRef = ref() // Ref
@ -79,7 +79,7 @@ const submitForm = async () => {
const resetForm = () => {
formData.value = {
id: '',
receiveId: undefined
delegateUserId: undefined
}
formRef.value?.resetFields()
}