From 034d8675792fee6af5af592df0b69acd3ad8a215 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期二, 07 三月 2023 10:50:21 +0800
Subject: [PATCH] 调整群组交流样式
---
src/views/common/Audit.vue | 25 ++++++++++++++++++++-----
1 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/src/views/common/Audit.vue b/src/views/common/Audit.vue
index 3eed36e..290c99f 100644
--- a/src/views/common/Audit.vue
+++ b/src/views/common/Audit.vue
@@ -165,7 +165,7 @@
<!--瀹℃牳寮圭獥-->
<el-dialog title="瀹℃牳" :visible.sync="checkVisible" width="50%" :before-close="infoAduitClose">
<el-row :gutter="15">
- <el-form ref="infoAduitForm" :model="auditInfo" size="medium" label-width="100px">
+ <el-form ref="infoAduitForm" :rules="rules2" :model="auditInfo" size="medium" label-width="100px">
<el-col :span="12">
<el-form-item label="澶村儚" prop="pic" required>
<el-upload ref="pic" action="/api/minio/upload" :show-file-list="false" :on-success="handleAvatarSuccess"
@@ -347,6 +347,7 @@
tmpTime: '',
},
auditInfo: {},
+
picShow: "",
reportData: [],
optionsGroup: [
@@ -433,6 +434,11 @@
trigger: 'change'
}],
},
+ rules2:{
+ causeId: [
+ { required: true, message: '璇烽�夋嫨娲诲姩鍖哄煙', trigger: 'change' }
+ ]
+ }
}
},
created() {
@@ -470,11 +476,19 @@
checkAdd() {
let form = null;
form = this.auditInfo;
- checkPass(form).then(res => {
- this.$message.success('鎻愪氦鎴愬姛')
- this.getList()
- this.checkVisible = false;
+ this.$refs.infoAduitForm.validate((valid)=>{
+ if(valid){
+ checkPass(form).then(res => {
+ this.$message.success('鎻愪氦鎴愬姛')
+ this.getList()
+ this.checkVisible = false;
+ })
+ }else{
+ return false;
+ }
+
})
+
},
//瀹℃牳
check(val) {
@@ -493,6 +507,7 @@
if (item === '' || item === null) {
// this.reportData.push('./logo.jpg');
} else {
+ this.reportData=[];
getImgUrl(item).then(res => {
this.reportData.push(res);
})
--
Gitblit v1.8.0