必填加*号

main
zhaoyu 2023-12-27 14:23:12 +08:00
parent b616481ccb
commit 7da0125aad
4 changed files with 12 additions and 8 deletions

View File

@ -72,7 +72,7 @@
<el-form-item label="文件名" prop="NAME"> <el-form-item label="文件名" prop="NAME">
<el-input v-model="form.NAME" placeholder="这里输入名称..." /> <el-input v-model="form.NAME" placeholder="这里输入名称..." />
</el-form-item> </el-form-item>
<el-form-item label="附件"> <el-form-item label="附件" prop="FILE">
<el-upload <el-upload
ref="upload" ref="upload"
:on-preview="handlePictureCardPreview" :on-preview="handlePictureCardPreview"
@ -131,7 +131,8 @@ export default {
FFILE: [] FFILE: []
}, },
rules: { rules: {
NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }] NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
FILE: [{ required: true, message: '附件不能为空', trigger: 'blur' }]
} }
} }
}, },

View File

@ -72,7 +72,7 @@
<el-form-item label="文件名" prop="NAME"> <el-form-item label="文件名" prop="NAME">
<el-input v-model="form.NAME" placeholder="这里输入名称..." /> <el-input v-model="form.NAME" placeholder="这里输入名称..." />
</el-form-item> </el-form-item>
<el-form-item label="附件"> <el-form-item label="附件" prop="FILE">
<el-upload <el-upload
ref="upload" ref="upload"
:on-preview="handlePictureCardPreview" :on-preview="handlePictureCardPreview"
@ -131,7 +131,8 @@ export default {
FFILE: [] FFILE: []
}, },
rules: { rules: {
NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }] NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
FILE: [{ required: true, message: '附件不能为空', trigger: 'blur' }]
} }
} }
}, },

View File

@ -72,7 +72,7 @@
<el-form-item label="文件名" prop="NAME"> <el-form-item label="文件名" prop="NAME">
<el-input v-model="form.NAME" placeholder="这里输入名称..." /> <el-input v-model="form.NAME" placeholder="这里输入名称..." />
</el-form-item> </el-form-item>
<el-form-item label="附件"> <el-form-item label="附件" prop="FILE">
<el-upload <el-upload
ref="upload" ref="upload"
:on-preview="handlePictureCardPreview" :on-preview="handlePictureCardPreview"
@ -131,7 +131,8 @@ export default {
FFILE: [] FFILE: []
}, },
rules: { rules: {
NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }] NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
FILE: [{ required: true, message: '附件不能为空', trigger: 'blur' }]
} }
} }
}, },

View File

@ -72,7 +72,7 @@
<el-form-item label="文件名" prop="NAME"> <el-form-item label="文件名" prop="NAME">
<el-input v-model="form.NAME" placeholder="这里输入名称..." /> <el-input v-model="form.NAME" placeholder="这里输入名称..." />
</el-form-item> </el-form-item>
<el-form-item label="附件"> <el-form-item label="附件" prop="FILE">
<el-upload <el-upload
ref="upload" ref="upload"
:on-preview="handlePictureCardPreview" :on-preview="handlePictureCardPreview"
@ -131,7 +131,8 @@ export default {
FFILE: [] FFILE: []
}, },
rules: { rules: {
NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }] NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
FILE: [{ required: true, message: '附件不能为空', trigger: 'blur' }]
} }
} }
}, },