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/campusReporting.vue | 26 ++++++++++++++++++++------
1 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/src/views/publicSecurity/components/campusReporting.vue b/src/views/publicSecurity/components/campusReporting.vue
index b53a234..7f67d13 100644
--- a/src/views/publicSecurity/components/campusReporting.vue
+++ b/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;
--
Gitblit v1.9.3