fangyuan
2022-12-28 283866cc40a7379e00cd48ba77238194ac06ff08
增加校验
1个文件已修改
52 ■■■■■ 已修改文件
src/views/common/Audit.vue 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/common/Audit.vue
@@ -88,7 +88,7 @@
          <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"
                         list-type="picture-card" accept="image/*">
                list-type="picture-card" accept="image/*">
                <img v-if="picShow" :src="picShow" style="width: 145px;height: 145px">
                <i v-else class="el-icon-plus"></i>
              </el-upload>
@@ -220,7 +220,7 @@
          <el-col :span="24">
            <el-form-item label="材料">
              <div class="metalL">
                <el-image v-for="(img,index) in reportData" :src="img" style="height: 200px;width: 200px;"></el-image>
                <el-image v-for="(img, index) in reportData" :src="img" style="height: 200px;width: 200px;"></el-image>
              </div>
            </el-form-item>
          </el-col>
@@ -298,7 +298,7 @@
          <el-col :span="24">
            <el-form-item label="材料">
              <div class="metalL">
                <el-image v-for="(img,index) in reportData" :src="img" style="height: 200px;width: 200px;"></el-image>
                <el-image v-for="(img, index) in reportData" :src="img" style="height: 200px;width: 200px;"></el-image>
              </div>
            </el-form-item>
          </el-col>
@@ -487,30 +487,33 @@
            this.picShow = res
          })
        }
        var addressList = res.reportMaterials.split(",")
        for (let item of addressList) {
          if (item === '' || item === null) {
            // this.reportData.push('./logo.jpg');
          } else {
            getImgUrl(item).then(res => {
              this.reportData.push(res);
            })
        if (res.reportMaterials) {
          var addressList = res.reportMaterials.split(",")
          for (let item of addressList) {
            if (item === '' || item === null) {
              // this.reportData.push('./logo.jpg');
            } else {
              getImgUrl(item).then(res => {
                this.reportData.push(res);
              })
            }
          }
        }
        this.checkVisible = true
      })
    },
    infoAduitClose() {
      this.checkVisible = false
      this.$refs.infoAduitForm.resetFields()
      this.reportData=[]
      this.picShow=""
      this.reportData = []
      this.picShow = ""
    },
    detailsClose() {
      this.infoAduitDialogVisible = false
      this.$refs.infoAduitForm.resetFields()
      this.reportData=[]
      this.picShow=""
      this.reportData = []
      this.picShow = ""
    },
    addAduit() {
      this.$refs.addAduitForm.validate(async (vaild) => {
@@ -594,16 +597,19 @@
            this.picShow = res
          })
        }
        var addressList = res.reportMaterials.split(",")
        for (let item of addressList) {
          if (item === '' || item === null) {
            // this.reportData.push('./logo.jpg');
          } else {
            getImgUrl(item).then(res => {
              this.reportData.push(res);
            })
        if (res.reportMaterials) {
          var addressList = res.reportMaterials.split(",")
          for (let item of addressList) {
            if (item === '' || item === null) {
              // this.reportData.push('./logo.jpg');
            } else {
              getImgUrl(item).then(res => {
                this.reportData.push(res);
              })
            }
          }
        }
        this.infoAduitDialogVisible = true
      })
    },