yunxing 4 anni fa
parent
commit
f704f74281

+ 1 - 1
.gitignore

@@ -2,7 +2,7 @@
 node_modules
 /wandaBmGuideH5
 /dist
-
+wandaBmGuideH5.zip
 
 # local env files
 .env.local

+ 6 - 1
public/index.html

@@ -4,9 +4,14 @@
         <meta charset="utf-8" />
         <meta http-equiv="X-UA-Compatible" content="IE=edge" />
         <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,viewport-fit=cover" />
+        <!-- 清除缓存标签 -->
+        <meta http-equiv="Expires" content="0" />
+        <meta http-equiv="Pragma" content="no-cache" />
+        <meta http-equiv="Cache-control" content="no-cache" />
+        <meta http-equiv="Cache" content="no-cache" />
         <!-- <meta name="viewport" content="target-densitydpi=device-dpi,width=750,user-scalable=0" /> -->
         <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
-        <link rel="stylesheet" href="//at.alicdn.com/t/font_2072883_7onlk4odzkb.css">
+        <link rel="stylesheet" href="//at.alicdn.com/t/font_2072883_7onlk4odzkb.css" />
         <title><%= htmlWebpackPlugin.options.title %></title>
     </head>
     <body>

+ 1 - 1
src/components/ImagePreview.vue

@@ -122,7 +122,7 @@ export default {
         // background-color: #fff;
         text-align: center;
         color: #fff;
-        font-size: 24px;
+        font-size: 40px;
     }
 }
 // 竖屏

+ 2 - 1
src/main.ts

@@ -16,7 +16,8 @@ Vue.config.productionTip = false
 import VConsole from 'vconsole'
 // 开发环境引入 vConsole调试工具
 if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_RealEnv !== 'production') {
-    new VConsole()
+    // TODO: vConsole
+    // new VConsole()
 }
 new Vue({
     router,

+ 1 - 1
src/router/index.ts

@@ -124,7 +124,7 @@ const routes: Array<RouteConfig> = [
         name: 'UpdateRecord',
         component: () => import(/* webpackChunkName: "updateRecord" */ '../views/overview/UpdateRecord.vue'),
         meta: {
-            keepAlive: false,
+            keepAlive: true,
             showTabbar: false,
             hideNarBar: true,
         },

+ 1 - 1
src/views/equipmentFacilities/index.vue

@@ -2,7 +2,7 @@
     <div class='equipment-facilities'>
         <!-- 左侧菜单 -->
         <SystemMenu class='left' @chooseSystem='changeSystem' />
-        <div class='right'>
+        <div class='right' v-show='false'>
             <div class='top'>
                 <!-- <van-cell :title='`消防电系统原理示意图`' :border='false' is-link :value='`19条`' @click='handleClick' />
                 <van-cell :title='`消防喷淋系统示意图`' :border='false' is-link value='无' @click='handleClick' />

+ 1 - 1
src/views/otherMatter/ComprehensiveMatter.vue

@@ -16,7 +16,7 @@
                     </div>
                     <!-- 其他部门 -->
                     <div class='other-department' v-else>
-                        <van-cell title='其他' :arrow-direction='arrowDirection' is-link @click='changeOtherShowStatus(item)' />
+                        <van-cell title='其他' :arrow-direction='item.arrowDirection ||"up"' is-link @click='changeOtherShowStatus(item)' />
                         <div class='other-container' v-if='item.showOther'>
                             <van-cell
                                 :title='detail.otherdescription'

+ 13 - 8
src/views/overview/UpdateRecordDetail.vue

@@ -106,7 +106,7 @@
             <!-- <div>暂无数据</div> -->
         </div>
         <!-- 现场照片预览 -->
-        <ImagePreview class='update-img-preview' :visible.sync='showImgPreview' :imgList='imgList' />
+        <ImagePreview class='update-img-preview' :key='imgKey' :visible.sync='showImgPreview' :imgList='imgList' />
 
         <!-- 任务信息 -->
         <div class='task-info-container' v-show='showTask'>
@@ -166,6 +166,7 @@ export default {
             showTask: false, //是否展示工单/任务信息 页面
             showImgPreview: false, //是否展示图片预览
             imgList: [], //图片数组
+            imgKey: `img${new Date().getTime()}`,
             data: {}, //页面显示数据
             taskText: '', //    工单,任务信息 页面title
             taskData: {
@@ -328,8 +329,8 @@ export default {
                     description: data.description || '--', //描述
                     reporter: data.reportedby || '--', //填报人
                     phone: data.phone || '--', //联系电话    // TODO: 联系电话
-                    reportDate: data.reportdate? moment(data.reportdate).format('YYYY-MM-DD') : '--', //填报时间
-                    acceptanceDate: data.sjjssj? moment(data.sjjssj).format('YYYY-MM-DD') : '--', //验收时间
+                    reportDate: data.reportdate ? moment(data.reportdate).format('YYYY-MM-DD') : '--', //填报时间
+                    acceptanceDate: data.sjjssj ? moment(data.sjjssj).format('YYYY-MM-DD') : '--', //验收时间
                 }
             } else if (this.type === 4) {
                 this.taskText = '工单'
@@ -340,8 +341,8 @@ export default {
                     description: data.description || '--', //描述
                     reporter: data.reportedby || '--', //填报人
                     phone: data.phone || '--', //联系电话    // TODO: 联系电话
-                     reportDate: data.reportdate? moment(data.reportdate).format('YYYY-MM-DD') : '--', //填报时间
-                    acceptanceDate: data.sjjssj? moment(data.sjjssj).format('YYYY-MM-DD') : '--', //验收时间
+                    reportDate: data.reportdate ? moment(data.reportdate).format('YYYY-MM-DD') : '--', //填报时间
+                    acceptanceDate: data.sjjssj ? moment(data.sjjssj).format('YYYY-MM-DD') : '--', //验收时间
                 }
             }
             if (this.data.wb_gzglid || this.data.wonum) {
@@ -350,9 +351,13 @@ export default {
         },
         // 显示图片预览弹窗
         showPhoto() {
-            if (this.imgList?.length) {
-                this.showImgPreview = true
-            }
+            this.imgKey = `img${new Date().getTime()}`
+            console.log(1111)
+            this.$nextTick(() => {
+                if (this.imgList?.length) {
+                    this.showImgPreview = true
+                }
+            })
         },
     },
 }