Merge remote-tracking branch 'origin/pet' into dev

liujun-07-22-风向模块迁移
water_xu 2024-07-16 17:11:21 +08:00
commit 07e9c52500
2 changed files with 25 additions and 2 deletions

View File

@ -86,7 +86,15 @@ export default {
NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }], NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
VALIDITYTIME: [{ required: true, message: '证书有效期不能为空', trigger: 'blur' }], VALIDITYTIME: [{ required: true, message: '证书有效期不能为空', trigger: 'blur' }],
NUMBER: [{ required: true, message: '证书编号不能为空', trigger: 'blur' }], NUMBER: [{ required: true, message: '证书编号不能为空', trigger: 'blur' }],
FILE: [{ required: true, message: '图片不能为空', trigger: 'blur' }] FILE: [
{ validator: (rule, value, callback) => {
if (this.certificate_files.length > 0) {
callback()
} else {
callback(new Error('图片不能为空'))
}
}, trigger: 'blur' }
]
} }
} }
}, },
@ -191,6 +199,8 @@ export default {
if (!isImage) { if (!isImage) {
this.$message.error('上传图片只能是 JPG、JPEG、PNG 格式!') this.$message.error('上传图片只能是 JPG、JPEG、PNG 格式!')
fileList.pop() fileList.pop()
} else {
this.beforeFileUpload(file)
} }
}, },
handlePictureCardPreview(file) { handlePictureCardPreview(file) {

View File

@ -101,6 +101,14 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col v-if="hiddenVueType !='ignore'" :span="4">
<el-form-item label="是否相关方">
<el-select v-model="condform.isrelevant" placeholder="请选择" style="width: 100%;">
<el-option v-for="item in isrelevantList" :key="item.ID" :label="item.NAME" :value="item.ID" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label-width="10px"> <el-form-item label-width="10px">
<el-button v-waves type="primary" icon="el-icon-search" @click="getQuery"> <el-button v-waves type="primary" icon="el-icon-search" @click="getQuery">
@ -271,7 +279,8 @@ export default {
state: '', // state: '', //
hiddenpart: '', // hiddenpart: '', //
hiddenType: '', // hiddenType: '', //
creatorUserDept: ''// creatorUserDept: '', //
isrelevant: '' //
}, },
/** 条件中的字段,没有放在form表单中,是因为怕动态加载中出现问题 **/ /** 条件中的字段,没有放在form表单中,是因为怕动态加载中出现问题 **/
sourceList: [ sourceList: [
@ -281,6 +290,10 @@ export default {
{ ID: '5', NAME: '安全环保检查(企业端)' }, { ID: '5', NAME: '安全环保检查(企业端)' },
{ ID: '6', NAME: '消防检查' } { ID: '6', NAME: '消防检查' }
], ],
isrelevantList: [
{ ID: '1', NAME: '是' },
{ ID: '2', NAME: '否' }
],
statusList: [ statusList: [
{ ID: '1', NAME: '未整改' }, { ID: '1', NAME: '未整改' },
{ ID: '2', NAME: '已整改' }, { ID: '2', NAME: '已整改' },