linwe
2024-08-09 5e2aafeede13d337380f736567caf74f49713be7
src/views/publicSecurity/components/campusReporting.vue
@@ -18,6 +18,7 @@
    getDetail,
    update
  } from "@/api/task/campusReporting"
  import website from '@/config/website'
  export default {
    data() {
      return {
@@ -47,6 +48,7 @@
            prop: 'scStatus',
            disabled: true,
          }, {
            width: 110,
            label: '安全通道图片',
            prop: 'scImageUrls',
            fileType: 'img',
@@ -106,6 +108,7 @@
            disabled: true,
            labelWidth: 120,
          }, {
            width: 110,
            label: '消费器材图片',
            prop: 'fireFacsImageUrls',
            fileType: 'img',
@@ -187,7 +190,7 @@
            type: "success",
            message: "操作成功!",
          })
          this.$emit('colseDetail');
          this.$emit('colseDetail')
        })
      },
      init(data, applyType) {
@@ -200,6 +203,21 @@
          taskId: taskId
        }).then((res) => {
          this.form = res.data.data
          if (this.form.haImageUrls) {
            this.form.haImageUrls = website.minioUrl + this.form.haImageUrls
          }
          if (this.form.scImageUrls) {
            this.form.scImageUrls = website.minioUrl + this.form.scImageUrls
          }
          if (this.form.antiCollisionImageUrls) {
            this.form.antiCollisionImageUrls = website.minioUrl + this.form.antiCollisionImageUrls
          }
          if (this.form.patrolImageUrls) {
            this.form.patrolImageUrls = website.minioUrl + this.form.patrolImageUrls
          }
          if (this.form.fireFacsImageUrls) {
            this.form.fireFacsImageUrls = website.minioUrl + this.form.fireFacsImageUrls
          }
        })
      }
@@ -209,11 +227,7 @@
<style lang="scss" scoped>
  .cur-container-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 50px;
    .content-box {
      margin: 0 4px;