From 4d35cc54167abbaffe090a309ef4c9aaf171e579 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期一, 25 七月 2022 14:00:56 +0800
Subject: [PATCH] 添加和修改
---
src/views/common/Audit.vue | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/src/views/common/Audit.vue b/src/views/common/Audit.vue
index dbac5e6..9a6b812 100644
--- a/src/views/common/Audit.vue
+++ b/src/views/common/Audit.vue
@@ -160,7 +160,11 @@
<el-form ref="infoAduitForm" :model="auditInfo" size="medium" label-width="100px">
<el-col :span="12">
<el-form-item label="澶村儚" prop="pic" required>
- <el-image style="width: 145px; height: 145px" :src="picShow" :preview-src-list="new Array(picShow)"></el-image>
+ <el-upload ref="pic" action="/api/minio/upload" :show-file-list="false" :on-success="handleAvatarSuccess"
+ list-type="picture-card" accept="image/*" disabled>
+ <el-image style="width: 145px; height: 145px" :src="picShow"
+ :preview-src-list="new Array(picShow)"></el-image>
+ </el-upload>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -207,11 +211,8 @@
</el-form-item>
</el-col>
<el-col :span="24">
- <el-form-item label="涓婁紶" required>
- <el-upload ref="reportMaterials" :file-list="auditInfo.fileList"
- action="/api/minio/upload" list-type="picture" :on-success="handleMaterialSuccess">
- <el-button size="small" type="primary" icon="el-icon-upload">鐐瑰嚮涓婁紶</el-button>
- </el-upload>
+ <el-form-item label="鏉愭枡">
+ <div class="metalL"></div>
</el-form-item>
</el-col>
<el-col :span="24">
@@ -418,9 +419,13 @@
details(id) {
getReportById(id).then(res => {
this.auditInfo = res
- getImgUrl(res.pic).then(res => {
- this.picShow = res
- })
+ if (res.pic === '' || res.pic === null) {
+ this.picShow = './logo.png';
+ } else {
+ getImgUrl(res.pic).then(res => {
+ this.picShow = res
+ })
+ }
this.infoAduitDialogVisible = true
})
},
--
Gitblit v1.8.0