安瑾然
2022-07-21 561b46d42e9a1b633f0428911045898b8270dfa2
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
      })
    },