소스 검색

故障回溯bug解决:点回溯后重置里面的方法【思路】

mw_666 3 년 전
부모
커밋
a97ad85217
2개의 변경된 파일11개의 추가작업 그리고 305개의 파일을 삭제
  1. 7 303
      src/views/malfunctionRecall/components/fault-diagnosis.vue
  2. 4 2
      src/views/malfunctionRecall/index.vue

+ 7 - 303
src/views/malfunctionRecall/components/fault-diagnosis.vue

@@ -597,156 +597,6 @@ export default {
                         ["2021/07/01 10:00:00", 296],
                         ["2021/07/01 15:00:00", 87],
                         ["2021/07/01 20:00:00", 273],
-                        ["2021/07/02 00:00:00", 129],
-                        ["2021/07/02 05:00:00", 121],
-                        ["2021/07/02 10:00:00", 65],
-                        ["2021/07/02 15:00:00", 215],
-                        ["2021/07/02 20:00:00", 245],
-                        ["2021/07/03 00:00:00", 288],
-                        ["2021/07/03 05:00:00", 256],
-                        ["2021/07/03 10:00:00", 47],
-                        ["2021/07/03 15:00:00", 207],
-                        ["2021/07/03 20:00:00", 237],
-                        ["2021/07/04 00:00:00", 68],
-                        ["2021/07/04 05:00:00", 186],
-                        ["2021/07/04 10:00:00", 126],
-                        ["2021/07/04 15:00:00", 207],
-                        ["2021/07/04 20:00:00", 59],
-                        ["2021/07/05 00:00:00", 328],
-                        ["2021/07/05 05:00:00", 72],
-                        ["2021/07/05 10:00:00", 54],
-                        ["2021/07/05 15:00:00", 114],
-                        ["2021/07/05 20:00:00", 167],
-                        ["2021/07/06 00:00:00", 164],
-                        ["2021/07/06 05:00:00", 176],
-                        ["2021/07/06 10:00:00", 59],
-                        ["2021/07/06 15:00:00", 196],
-                        ["2021/07/06 20:00:00", 208],
-                        ["2021/07/07 00:00:00", 80],
-                        ["2021/07/07 05:00:00", 119],
-                        ["2021/07/07 10:00:00", 228],
-                        ["2021/07/07 15:00:00", 80],
-                        ["2021/07/07 20:00:00", 182],
-                        ["2021/07/08 00:00:00", 152],
-                        ["2021/07/08 05:00:00", 119],
-                        ["2021/07/08 10:00:00", 236],
-                        ["2021/07/08 15:00:00", 45],
-                        ["2021/07/08 20:00:00", 36],
-                        ["2021/07/09 00:00:00", 34],
-                        ["2021/07/09 05:00:00", 280],
-                        ["2021/07/09 10:00:00", 63],
-                        ["2021/07/09 15:00:00", 53],
-                        ["2021/07/09 20:00:00", 226],
-                        ["2021/07/10 00:00:00", 56],
-                        ["2021/07/10 05:00:00", 234],
-                        ["2021/07/10 10:00:00", 301],
-                        ["2021/07/10 15:00:00", 106],
-                        ["2021/07/10 20:00:00", 80],
-                        ["2021/07/11 00:00:00", 280],
-                        ["2021/07/11 05:00:00", 277],
-                        ["2021/07/11 10:00:00", 104],
-                        ["2021/07/11 15:00:00", 76],
-                        ["2021/07/11 20:00:00", 321],
-                        ["2021/07/12 00:00:00", 93],
-                        ["2021/07/12 05:00:00", 109],
-                        ["2021/07/12 10:00:00", 100],
-                        ["2021/07/12 15:00:00", 128],
-                        ["2021/07/12 20:00:00", 87],
-                        ["2021/07/13 00:00:00", 179],
-                        ["2021/07/13 05:00:00", 189],
-                        ["2021/07/13 10:00:00", 140],
-                        ["2021/07/13 15:00:00", 109],
-                        ["2021/07/13 20:00:00", 156],
-                        ["2021/07/14 00:00:00", 173],
-                        ["2021/07/14 05:00:00", 213],
-                        ["2021/07/14 10:00:00", 331],
-                        ["2021/07/14 15:00:00", 84],
-                        ["2021/07/14 20:00:00", 339],
-                        ["2021/07/15 00:00:00", 157],
-                        ["2021/07/15 05:00:00", 225],
-                        ["2021/07/15 10:00:00", 198],
-                        ["2021/07/15 15:00:00", 46],
-                        ["2021/07/15 20:00:00", 62],
-                        ["2021/07/16 00:00:00", 189],
-                        ["2021/07/16 05:00:00", 159],
-                        ["2021/07/16 10:00:00", 295],
-                        ["2021/07/16 15:00:00", 52],
-                        ["2021/07/16 20:00:00", 238],
-                        ["2021/07/17 00:00:00", 341],
-                        ["2021/07/17 05:00:00", 269],
-                        ["2021/07/17 10:00:00", 126],
-                        ["2021/07/17 15:00:00", 275],
-                        ["2021/07/17 20:00:00", 101],
-                        ["2021/07/18 00:00:00", 348],
-                        ["2021/07/18 05:00:00", 83],
-                        ["2021/07/18 10:00:00", 225],
-                        ["2021/07/18 15:00:00", 42],
-                        ["2021/07/18 20:00:00", 234],
-                        ["2021/07/19 00:00:00", 239],
-                        ["2021/07/19 05:00:00", 265],
-                        ["2021/07/19 10:00:00", 213],
-                        ["2021/07/19 15:00:00", 219],
-                        ["2021/07/19 20:00:00", 52],
-                        ["2021/07/20 00:00:00", 79],
-                        ["2021/07/20 05:00:00", 287],
-                        ["2021/07/20 10:00:00", 340],
-                        ["2021/07/20 15:00:00", 267],
-                        ["2021/07/20 20:00:00", 321],
-                        ["2021/07/21 00:00:00", 176],
-                        ["2021/07/21 05:00:00", 222],
-                        ["2021/07/21 10:00:00", 311],
-                        ["2021/07/21 15:00:00", 82],
-                        ["2021/07/21 20:00:00", 58],
-                        ["2021/07/22 00:00:00", 186],
-                        ["2021/07/22 05:00:00", 186],
-                        ["2021/07/22 10:00:00", 312],
-                        ["2021/07/22 15:00:00", 62],
-                        ["2021/07/22 20:00:00", 40],
-                        ["2021/07/23 00:00:00", 119],
-                        ["2021/07/23 05:00:00", 314],
-                        ["2021/07/23 10:00:00", 45],
-                        ["2021/07/23 15:00:00", 308],
-                        ["2021/07/23 20:00:00", 227],
-                        ["2021/07/24 00:00:00", 54],
-                        ["2021/07/24 05:00:00", 165],
-                        ["2021/07/24 10:00:00", 337],
-                        ["2021/07/24 15:00:00", 278],
-                        ["2021/07/24 20:00:00", 35],
-                        ["2021/07/25 00:00:00", 169],
-                        ["2021/07/25 05:00:00", 344],
-                        ["2021/07/25 10:00:00", 223],
-                        ["2021/07/25 15:00:00", 309],
-                        ["2021/07/25 20:00:00", 227],
-                        ["2021/07/26 00:00:00", 303],
-                        ["2021/07/26 05:00:00", 102],
-                        ["2021/07/26 10:00:00", 238],
-                        ["2021/07/26 15:00:00", 210],
-                        ["2021/07/26 20:00:00", 198],
-                        ["2021/07/27 00:00:00", 180],
-                        ["2021/07/27 05:00:00", 168],
-                        ["2021/07/27 10:00:00", 310],
-                        ["2021/07/27 15:00:00", 210],
-                        ["2021/07/27 20:00:00", 257],
-                        ["2021/07/28 00:00:00", 316],
-                        ["2021/07/28 05:00:00", 52],
-                        ["2021/07/28 10:00:00", 202],
-                        ["2021/07/28 15:00:00", 201],
-                        ["2021/07/28 20:00:00", 150],
-                        ["2021/07/29 00:00:00", 84],
-                        ["2021/07/29 05:00:00", 267],
-                        ["2021/07/29 10:00:00", 199],
-                        ["2021/07/29 15:00:00", 249],
-                        ["2021/07/29 20:00:00", 140],
-                        ["2021/07/30 00:00:00", 56],
-                        ["2021/07/30 05:00:00", 50],
-                        ["2021/07/30 10:00:00", 147],
-                        ["2021/07/30 15:00:00", 158],
-                        ["2021/07/30 20:00:00", 318],
-                        ["2021/07/31 00:00:00", 290],
-                        ["2021/07/31 05:00:00", 338],
-                        ["2021/07/31 10:00:00", 176],
-                        ["2021/07/31 15:00:00", 90],
-                        ["2021/07/31 20:00:00", 136]
                     ],
                 },
                 {
@@ -758,156 +608,6 @@ export default {
                         ["2021/07/01 10:00:00", 313],
                         ["2021/07/01 15:00:00", 230],
                         ["2021/07/01 20:00:00", 264],
-                        ["2021/07/02 00:00:00", 272],
-                        ["2021/07/02 05:00:00", 310],
-                        ["2021/07/02 10:00:00", 176],
-                        ["2021/07/02 15:00:00", 182],
-                        ["2021/07/02 20:00:00", 248],
-                        ["2021/07/03 00:00:00", 241],
-                        ["2021/07/03 05:00:00", 225],
-                        ["2021/07/03 10:00:00", 360],
-                        ["2021/07/03 15:00:00", 222],
-                        ["2021/07/03 20:00:00", 237],
-                        ["2021/07/04 00:00:00", 252],
-                        ["2021/07/04 05:00:00", 164],
-                        ["2021/07/04 10:00:00", 320],
-                        ["2021/07/04 15:00:00", 194],
-                        ["2021/07/04 20:00:00", 319],
-                        ["2021/07/05 00:00:00", 155],
-                        ["2021/07/05 05:00:00", 328],
-                        ["2021/07/05 10:00:00", 104],
-                        ["2021/07/05 15:00:00", 157],
-                        ["2021/07/05 20:00:00", 223],
-                        ["2021/07/06 00:00:00", 156],
-                        ["2021/07/06 05:00:00", 345],
-                        ["2021/07/06 10:00:00", 352],
-                        ["2021/07/06 15:00:00", 108],
-                        ["2021/07/06 20:00:00", 167],
-                        ["2021/07/07 00:00:00", 354],
-                        ["2021/07/07 05:00:00", 338],
-                        ["2021/07/07 10:00:00", 232],
-                        ["2021/07/07 15:00:00", 359],
-                        ["2021/07/07 20:00:00", 304],
-                        ["2021/07/08 00:00:00", 271],
-                        ["2021/07/08 05:00:00", 307],
-                        ["2021/07/08 10:00:00", 315],
-                        ["2021/07/08 15:00:00", 280],
-                        ["2021/07/08 20:00:00", 302],
-                        ["2021/07/09 00:00:00", 356],
-                        ["2021/07/09 05:00:00", 196],
-                        ["2021/07/09 10:00:00", 222],
-                        ["2021/07/09 15:00:00", 317],
-                        ["2021/07/09 20:00:00", 292],
-                        ["2021/07/10 00:00:00", 314],
-                        ["2021/07/10 05:00:00", 311],
-                        ["2021/07/10 10:00:00", 292],
-                        ["2021/07/10 15:00:00", 104],
-                        ["2021/07/10 20:00:00", 297],
-                        ["2021/07/11 00:00:00", 235],
-                        ["2021/07/11 05:00:00", 293],
-                        ["2021/07/11 10:00:00", 224],
-                        ["2021/07/11 15:00:00", 137],
-                        ["2021/07/11 20:00:00", 136],
-                        ["2021/07/12 00:00:00", 144],
-                        ["2021/07/12 05:00:00", 150],
-                        ["2021/07/12 10:00:00", 267],
-                        ["2021/07/12 15:00:00", 156],
-                        ["2021/07/12 20:00:00", 201],
-                        ["2021/07/13 00:00:00", 214],
-                        ["2021/07/13 05:00:00", 324],
-                        ["2021/07/13 10:00:00", 352],
-                        ["2021/07/13 15:00:00", 117],
-                        ["2021/07/13 20:00:00", 157],
-                        ["2021/07/14 00:00:00", 166],
-                        ["2021/07/14 05:00:00", 228],
-                        ["2021/07/14 10:00:00", 344],
-                        ["2021/07/14 15:00:00", 281],
-                        ["2021/07/14 20:00:00", 224],
-                        ["2021/07/15 00:00:00", 358],
-                        ["2021/07/15 05:00:00", 200],
-                        ["2021/07/15 10:00:00", 148],
-                        ["2021/07/15 15:00:00", 352],
-                        ["2021/07/15 20:00:00", 246],
-                        ["2021/07/16 00:00:00", 340],
-                        ["2021/07/16 05:00:00", 126],
-                        ["2021/07/16 10:00:00", 205],
-                        ["2021/07/16 15:00:00", 221],
-                        ["2021/07/16 20:00:00", 280],
-                        ["2021/07/17 00:00:00", 127],
-                        ["2021/07/17 05:00:00", 149],
-                        ["2021/07/17 10:00:00", 162],
-                        ["2021/07/17 15:00:00", 297],
-                        ["2021/07/17 20:00:00", 168],
-                        ["2021/07/18 00:00:00", 292],
-                        ["2021/07/18 05:00:00", 100],
-                        ["2021/07/18 10:00:00", 110],
-                        ["2021/07/18 15:00:00", 265],
-                        ["2021/07/18 20:00:00", 185],
-                        ["2021/07/19 00:00:00", 265],
-                        ["2021/07/19 05:00:00", 354],
-                        ["2021/07/19 10:00:00", 106],
-                        ["2021/07/19 15:00:00", 206],
-                        ["2021/07/19 20:00:00", 113],
-                        ["2021/07/20 00:00:00", 193],
-                        ["2021/07/20 05:00:00", 144],
-                        ["2021/07/20 10:00:00", 359],
-                        ["2021/07/20 15:00:00", 335],
-                        ["2021/07/20 20:00:00", 239],
-                        ["2021/07/21 00:00:00", 230],
-                        ["2021/07/21 05:00:00", 357],
-                        ["2021/07/21 10:00:00", 317],
-                        ["2021/07/21 15:00:00", 264],
-                        ["2021/07/21 20:00:00", 355],
-                        ["2021/07/22 00:00:00", 284],
-                        ["2021/07/22 05:00:00", 326],
-                        ["2021/07/22 10:00:00", 184],
-                        ["2021/07/22 15:00:00", 315],
-                        ["2021/07/22 20:00:00", 102],
-                        ["2021/07/23 00:00:00", 206],
-                        ["2021/07/23 05:00:00", 292],
-                        ["2021/07/23 10:00:00", 273],
-                        ["2021/07/23 15:00:00", 156],
-                        ["2021/07/23 20:00:00", 282],
-                        ["2021/07/24 00:00:00", 146],
-                        ["2021/07/24 05:00:00", 129],
-                        ["2021/07/24 10:00:00", 270],
-                        ["2021/07/24 15:00:00", 330],
-                        ["2021/07/24 20:00:00", 302],
-                        ["2021/07/25 00:00:00", 205],
-                        ["2021/07/25 05:00:00", 132],
-                        ["2021/07/25 10:00:00", 124],
-                        ["2021/07/25 15:00:00", 182],
-                        ["2021/07/25 20:00:00", 147],
-                        ["2021/07/26 00:00:00", 319],
-                        ["2021/07/26 05:00:00", 221],
-                        ["2021/07/26 10:00:00", 126],
-                        ["2021/07/26 15:00:00", 299],
-                        ["2021/07/26 20:00:00", 164],
-                        ["2021/07/27 00:00:00", 293],
-                        ["2021/07/27 05:00:00", 337],
-                        ["2021/07/27 10:00:00", 159],
-                        ["2021/07/27 15:00:00", 256],
-                        ["2021/07/27 20:00:00", 118],
-                        ["2021/07/28 00:00:00", 193],
-                        ["2021/07/28 05:00:00", 138],
-                        ["2021/07/28 10:00:00", 273],
-                        ["2021/07/28 15:00:00", 217],
-                        ["2021/07/28 20:00:00", 274],
-                        ["2021/07/29 00:00:00", 138],
-                        ["2021/07/29 05:00:00", 223],
-                        ["2021/07/29 10:00:00", 338],
-                        ["2021/07/29 15:00:00", 340],
-                        ["2021/07/29 20:00:00", 205],
-                        ["2021/07/30 00:00:00", 293],
-                        ["2021/07/30 05:00:00", 170],
-                        ["2021/07/30 10:00:00", 103],
-                        ["2021/07/30 15:00:00", 147],
-                        ["2021/07/30 20:00:00", 231],
-                        ["2021/07/31 00:00:00", 305],
-                        ["2021/07/31 05:00:00", 359],
-                        ["2021/07/31 10:00:00", 115],
-                        ["2021/07/31 15:00:00", 215],
-                        ["2021/07/31 20:00:00", 224]
                     ],
                 }
             ],
@@ -977,6 +677,7 @@ export default {
             this.requestPoint()
         },
         requestPoint(){
+			console.log(22222)
             let that = this;
             that.API.requestData({
                 method: "POST",
@@ -1018,9 +719,10 @@ export default {
         requestValue(points){
             let that = this;
             that.API.requestData({
+				showLoading: true,
                 method: "POST",
                 subUrl: "/fault/getFaultPlayback",
-                timeout: 8000,
+                timeout: 20000,
                 data: {
                     wtId: that.value1,
                     pointids: points,
@@ -1116,6 +818,7 @@ export default {
         initEchart(){
             this.yAxis = [];
             this.lineData = [];
+			let lineData=[];
             this.checkValue.forEach((item, index) => {
                 let uniformcode = item.substring(0, item.indexOf("$"));
                 let name = item.substring(item.indexOf("$") + 1);
@@ -1142,9 +845,10 @@ export default {
                     value.push(obj)
                 })
                 data.value = value
-
-                this.lineData.push(data);
+				lineData.push(data);
             })
+			this.lineData=lineData;
+			console.log(this.lineData)
         },
     },
     watch: {

+ 4 - 2
src/views/malfunctionRecall/index.vue

@@ -112,7 +112,7 @@
         :close-on-click-modal="false"
         :before-close="onClickDialogClose"
       >
-        <fault-diagnosis :data="rowitem"/>
+        <fault-diagnosis :data="rowitem" ref="rowitemS" :key="componentKey"/>
       </el-dialog>
     </div>
   </div>
@@ -127,6 +127,7 @@ export default {
   data() {
     const that = this;
     return {
+		componentKey:0,
       value1: "",
       value2: "",
       wpId: "",
@@ -321,8 +322,9 @@ export default {
     },
     // 回放按钮
     onClickOption(row) {
-      this.rowitem = row
+      this.rowitem = row;
       this.dialogVisible = true;
+	  this.componentKey += 1;
     },
     // 关闭弹窗
     onClickDialogClose() {