From 6416b40cf242340eaa163c498bd49d8103e73610 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Mon, 29 Jul 2024 17:01:52 +0800
Subject: [PATCH] 代码优化

---
 src/views/publicSecurity/keynotePlaceManage.vue |   27 ++-------------------------
 1 files changed, 2 insertions(+), 25 deletions(-)

diff --git a/src/views/publicSecurity/keynotePlaceManage.vue b/src/views/publicSecurity/keynotePlaceManage.vue
index a6ada47..a0cdeea 100644
--- a/src/views/publicSecurity/keynotePlaceManage.vue
+++ b/src/views/publicSecurity/keynotePlaceManage.vue
@@ -48,6 +48,7 @@
       custom-class="flow-design-dialog" :before-close="handleClose">
       <audit-base @handleSubmit="submitAudit"></audit-base>
     </el-dialog>
+
     <el-drawer title="消防自查详情" :visible.sync="isDetail" :append-to-body="true" size="40%" direction="rtl">
       <div class="title">
         <div class="icon">{{ refreshNum }}</div>
@@ -58,10 +59,6 @@
           <div class="info-name">场所名称</div>
           <div class="info-value">{{ rowDetail.placeName }}</div>
         </div>
-        <!-- <div class="info-item">
-          <div class="info-name">场所类别</div>
-          <div class="info-value">{{ rowDetail.nineTypeName }}</div>
-        </div> -->
         <div class="info-item">
           <div class="info-name">检查人</div>
           <div class="info-value">{{ rowDetail.name }}</div>
@@ -532,7 +529,6 @@
                 item.imageUrlsList = item.imageUrls.split(',').map(ele => {
                   return website.minioUrl + ele
                 })
-
               }
               if (item.rectificationImageUrls) {
                 item.rectificationImageUrlsList = item.rectificationImageUrls.split(',').map(ele => {
@@ -821,26 +817,7 @@
       },
 
       beforeOpen(done, type) {
-        if (["edit", "view"].includes(type)) {
-          // getPlace(this.form.id).then((res) => {
-          //   this.form = res.data.data
-          //   if (this.form.imageUrls.length) {
-          //     this.form.imageUrls = this.form.imageUrls.split(",").filter(item => item != '').map(item => website
-          //       .minioUrl + item).join(',')
-          //   }
-          //   if (this.form.placePoiLabelVOList.length) {
-          //     let lebelTwo = this.form.placePoiLabelVOList.find(item => {
-          //       return item.type == 2
-          //     })
-          //     if (lebelTwo) this.form.label = String(lebelTwo.poiCode)
-          //     let lebelThree = this.form.placePoiLabelVOList.find(item => {
-          //       return item.type == 3
-          //     })
-          //     if (lebelThree) this.form.smallLabel = String(lebelThree.poiCode)
-          //   }
-          //   done()
-          // })
-        } else {
+        if (["edit", "view"].includes(type)) {} else {
           done()
         }
       },

--
Gitblit v1.9.3