Browse Source

提交巡检记录

Shannon_mu 2 years ago
parent
commit
d8f0331ad1

+ 3 - 1
operationSupport/src/views/newWorkBench/template/styleFour.vue

@@ -66,7 +66,9 @@ export default {
         this.pageLoction =
             typeof this.$parent.oldValue.positionInfo == 'object'
                 ? this.$parent.oldValue.positionInfo
-                : JSON.parse(this.$parent.oldValue.positionInfo).pageLoction || {};
+                : JSON.parse(this.$parent.oldValue.positionInfo).model == 4
+                ? JSON.parse(this.$parent.oldValue.positionInfo).pageLoction
+                : {};
     },
     mounted() {},
     computed: {},

+ 3 - 1
operationSupport/src/views/newWorkBench/template/styleThree.vue

@@ -59,7 +59,9 @@ export default {
         this.pageLoction =
             typeof this.$parent.oldValue.positionInfo == 'object'
                 ? this.$parent.oldValue.positionInfo
-                : JSON.parse(this.$parent.oldValue.positionInfo).pageLoction || {};
+                : JSON.parse(this.$parent.oldValue.positionInfo).model == 3
+                ? JSON.parse(this.$parent.oldValue.positionInfo).pageLoction
+                : {};
     },
     mounted() {},
     computed: {},

+ 17 - 2
operationSupport/src/views/patrolManagement/popups/patrolDetails.vue

@@ -35,12 +35,12 @@
                 </div>
             </div>
             <div class="rightList">
-                <template v-for="(item, index) in thisItem">
+                <template v-for="(item, index) in leftItem">
                     <div class="steps" :key="index">
                         <div class="steps-left">
                             <img v-if="!!item.id" src="@assets/img/point_yiwancheng@2x.png" alt />
                             <img v-else src="@assets/img/point_weiwancheng@2x.png" alt />
-                            <div class="steps-left-line" v-if="index !== thisItem.length - 1"></div>
+                            <div class="steps-left-line" v-if="index !== leftItem.length - 1"></div>
                         </div>
                         <div class="steps-right">
                             <div class="steps-right-title">
@@ -81,6 +81,7 @@ export default {
     data() {
         return {
             thisItem: [],
+            leftItem: [],
             targetData: []
         };
     },
@@ -114,6 +115,20 @@ export default {
         getDetail(id) {
             this.$http.get('/sc-community/patrolRecord/findRecordDtail', { id: id }).then(({ data, status, msg }) => {
                 this.thisItem = data;
+                this.leftItem = [
+                    [
+                        {
+                            checkTime: null,
+                            id: null,
+                            picturePath: null,
+                            pointId: null,
+                            pointStatus: null,
+                            recordId: null,
+                            result: null
+                        }
+                    ],
+                    ...data
+                ];
             });
         },
         getTrack(id) {