feat: 对齐后端-工作流委派的参数
This commit is contained in:
parent
2aeba127b6
commit
0fba0d9a6a
@ -7,8 +7,8 @@
|
|||||||
:rules="formRules"
|
:rules="formRules"
|
||||||
label-width="110px"
|
label-width="110px"
|
||||||
>
|
>
|
||||||
<el-form-item label="接收人" prop="receiveId">
|
<el-form-item label="接收人" prop="delegateUserId">
|
||||||
<el-select v-model="formData.receiveId" clearable style="width: 100%">
|
<el-select v-model="formData.delegateUserId" clearable style="width: 100%">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in userList"
|
v-for="item in userList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@ -37,10 +37,10 @@ const dialogVisible = ref(false) // 弹窗的是否展示
|
|||||||
const formLoading = ref(false) // 表单的加载中
|
const formLoading = ref(false) // 表单的加载中
|
||||||
const formData = ref({
|
const formData = ref({
|
||||||
id: '',
|
id: '',
|
||||||
receiveId: undefined
|
delegateUserId: undefined
|
||||||
})
|
})
|
||||||
const formRules = ref({
|
const formRules = ref({
|
||||||
receiveId: [{ required: true, message: '接收人不能为空', trigger: 'change' }]
|
delegateUserId: [{ required: true, message: '接收人不能为空', trigger: 'change' }]
|
||||||
})
|
})
|
||||||
|
|
||||||
const formRef = ref() // 表单 Ref
|
const formRef = ref() // 表单 Ref
|
||||||
@ -79,7 +79,7 @@ const submitForm = async () => {
|
|||||||
const resetForm = () => {
|
const resetForm = () => {
|
||||||
formData.value = {
|
formData.value = {
|
||||||
id: '',
|
id: '',
|
||||||
receiveId: undefined
|
delegateUserId: undefined
|
||||||
}
|
}
|
||||||
formRef.value?.resetFields()
|
formRef.value?.resetFields()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user