From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化

---
 src/views/publicSecurity/components/hotelReporting.vue |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/src/views/publicSecurity/components/hotelReporting.vue b/src/views/publicSecurity/components/hotelReporting.vue
index e4722ff..11519c4 100644
--- a/src/views/publicSecurity/components/hotelReporting.vue
+++ b/src/views/publicSecurity/components/hotelReporting.vue
@@ -18,6 +18,7 @@
     getDetail,
     update
   } from "@/api/task/hotelReporting"
+  import website from '@/config/website'
   export default {
     data() {
       return {
@@ -69,6 +70,7 @@
               span: 8,
               labelWidth: 120,
             }, {
+              width: 110,
               label: '灭火器图片',
               prop: 'fireImageUrls',
               fileType: 'img',
@@ -85,6 +87,7 @@
               span: 8,
               labelWidth: 120,
             }, {
+              width: 110,
               label: '安全通道图片',
               prop: 'scImageUrls',
               fileType: 'img',
@@ -241,7 +244,7 @@
             type: "success",
             message: "操作成功!",
           })
-          this.$emit('colseDetail');
+          this.$emit('colseDetail')
         })
       },
       init(data, applyType) {
@@ -254,6 +257,19 @@
           taskId: taskId
         }).then((res) => {
           this.form = res.data.data
+          if (this.form.uanImageUrls) {
+            this.form.uanImageUrls = website.minioUrl + this.form.uanImageUrls
+          }
+          if (this.form.pfImageUrls) {
+            this.form.pfImageUrls = website.minioUrl + this.form.pfImageUrls
+          }
+          if (this.form.scImageUrls) {
+            this.form.scImageUrls = website.minioUrl + this.form.scImageUrls
+          }
+          if (this.form.fireImageUrls) {
+            this.form.fireImageUrls = website.minioUrl + this.form.fireImageUrls
+          }
+
         })
       }
 
@@ -263,11 +279,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;

--
Gitblit v1.9.3