fix : 修复项目立项校验

This commit is contained in:
2024-07-18 11:45:30 +08:00
parent 0c3580768b
commit 60d9b958bc
5 changed files with 66 additions and 25 deletions

View File

@@ -383,6 +383,17 @@ const getAttachment = (val) => {
singleList.value.push(compositeParam(val))
nextTick(() => {
showSingleTable.value = true
if (attachment.value.singleFile == null) {
attachment.value.validate()
ElNotification({
title: '提示',
message: '请上传附件',
type: 'error'
})
return;
} else {
attachment.value.clearValidate()
}
})
}
const getOtherFile = (val) => {

View File

@@ -123,6 +123,17 @@ const getAttachment = (val) => {
singleList.value.push( compositeParam(val))
nextTick(() => {
showSingleTable.value = true
if (attachment.value.singleFile == null) {
attachment.value.validate()
ElNotification({
title: '提示',
message: '请上传附件',
type: 'error'
})
return;
} else {
attachment.value.clearValidate()
}
})
}
watch(() => singleList.value, (newVal) => {

View File

@@ -3,7 +3,7 @@
<el-form :model="localFormData" ref="formRef" label-width="auto" :rules="rules" v-if="step!=='50'">
<el-row>
<el-col :span="24">
<el-form-item label="前置流程" :required="preProcessRequired" prop="requestName">
<el-form-item label="前置流程" prop="requestName">
<div v-for="item in localFormData.preProcess" :key="item.requestId">
<a :href="item.baseUrl" target="_blank"
style="color: #2a99ff;margin-right: 10px;cursor: pointer">{{ item.requestName }}</a>
@@ -270,6 +270,17 @@ const compositeParam = (item) => {
const getAttachment = (val) => {
// console.log('上传文件getAttachment', val)
localFormData.value.singleFile = compositeParam(val)
if (attachment.value.singleFile == null) {
attachment.value.validate()
ElNotification({
title: '提示',
message: '请上传附件',
type: 'error'
})
return;
} else {
attachment.value.clearValidate()
}
}
const getOtherFile = (val) => {
// console.log('上传文件getOtherFile', val)