openatc-components 0.3.92 → 0.3.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -222,6 +222,10 @@ export default {
222
222
  type: Boolean,
223
223
  devault: true
224
224
  },
225
+ isShowMessage: {
226
+ type: Boolean,
227
+ default: true
228
+ },
225
229
  roadDirection: {
226
230
  type: String
227
231
  },
@@ -718,7 +722,7 @@ export default {
718
722
  }
719
723
  }
720
724
  msg = msg + ' - ' + commomMsg
721
- this.$message.error(msg)
725
+ this.isShowMessage && this.$message.error(msg)
722
726
  return
723
727
  }
724
728
  this.isLoaded = true
@@ -1040,10 +1044,10 @@ export default {
1040
1044
  let res = data.data
1041
1045
  if (!res.success) {
1042
1046
  if (res.code === '4003') {
1043
- this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
1047
+ this.isShowMessage && this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
1044
1048
  return
1045
1049
  }
1046
- this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
1050
+ this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
1047
1051
  return
1048
1052
  }
1049
1053
  let channelList = res.data.data.channelList.filter(ele => ele.type !== undefined)
@@ -41,13 +41,14 @@
41
41
  :clickMode="clickMode"
42
42
  :isThirdSignal="isThirdSignal"
43
43
  :channelType="channelType"
44
+ :isShowMessage ="isShowMessage"
44
45
  @handleClickCrossIcon="handleClickCrossIcon" />
45
46
  </div>
46
47
  </div>
47
48
  </template>
48
49
 
49
50
  <script>
50
- import CrossDiagram from './crossDirection/crossDiagram'
51
+ import CrossDiagram from './crossDirection/crossDiagram.vue'
51
52
  import { setToken } from '../../../utils/auth.js'
52
53
  export default {
53
54
  name: 'intersection-base-map',
@@ -84,6 +85,10 @@ export default {
84
85
  type: Boolean,
85
86
  default: true
86
87
  },
88
+ isShowMessage: {
89
+ type: Boolean,
90
+ default: true
91
+ },
87
92
  roadDirection: {
88
93
  type: String,
89
94
  default: 'right'
@@ -23,6 +23,7 @@
23
23
  :stateName="stateName"
24
24
  :isShowMode="isShowMode"
25
25
  :isShowState="isShowState"
26
+ :isShowMessage ="isShowMessage"
26
27
  :isShowInterval="isShowInterval"
27
28
  @onSelectStages="onSelectStages"/>
28
29
  </div>
@@ -73,6 +74,10 @@ export default {
73
74
  type: Boolean,
74
75
  default: true
75
76
  },
77
+ isShowMessage: {
78
+ type: Boolean,
79
+ default: true
80
+ },
76
81
  isShowState: {
77
82
  type: Boolean,
78
83
  devault: false
@@ -140,7 +145,7 @@ export default {
140
145
  }
141
146
  }
142
147
  msg = msg + ' - ' + commomMsg
143
- this.$message.error(msg)
148
+ this.isShowMessage && this.$message.error(msg)
144
149
  if (this.isResend) {
145
150
  this.reSend()
146
151
  }
@@ -192,7 +197,7 @@ export default {
192
197
  // this.devStatus = 2
193
198
  this.clearPatternInterval() // 清除其他定时器
194
199
  this.clearVolumeInterval()
195
- this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale) + ' - ' + commomMsg)
200
+ this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale) + ' - ' + commomMsg)
196
201
  if (this.isResend) {
197
202
  this.reSend()
198
203
  }
@@ -208,7 +213,7 @@ export default {
208
213
  }
209
214
  }
210
215
  msg = msg + ' - ' + commomMsg
211
- this.$message.error(msg)
216
+ this.isShowMessage && this.$message.error(msg)
212
217
  this.clearPatternInterval() // 清除其他定时器
213
218
  if (this.isResend) {
214
219
  this.reSend()
@@ -222,7 +227,7 @@ export default {
222
227
  this.controlData = this.controlFormat.handleGetData(param)
223
228
  this.$emit('getTscControl', data)
224
229
  }).catch(error => {
225
- this.$message.error(error)
230
+ this.isShowMessage && this.$message.error(error)
226
231
  console.log(error)
227
232
  })
228
233
  },
@@ -235,7 +240,7 @@ export default {
235
240
  if (!res.data.success) {
236
241
  let commomMsg = this.$t('openatccomponents.overview.signalID') + ': ' + this.AgentId
237
242
  let msg = getMessageByCode(res.data.code, this.$i18n.locale) + ', ' + commomMsg
238
- this.$message.error(msg)
243
+ this.isShowMessage && this.$message.error(msg)
239
244
  return
240
245
  }
241
246
  let devParams = res.data.data.jsonparam
@@ -295,7 +300,7 @@ export default {
295
300
  let success = data.data.data.content.success
296
301
  if (success !== 0) {
297
302
  let errormsg = 'openatccomponents.overview.putTscControlError' + success
298
- this.$message.error(this.$t(errormsg))
303
+ this.isShowMessage && this.$message.error(this.$t(errormsg))
299
304
  return
300
305
  }
301
306
  }
@@ -330,7 +335,7 @@ export default {
330
335
  }
331
336
  if (!data.data.success) {
332
337
  if (data.data.code === '4003') {
333
- this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
338
+ this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
334
339
  return
335
340
  }
336
341
  let parrenterror = getMessageByCode(data.data.code, this.$i18n.locale)
@@ -339,10 +344,10 @@ export default {
339
344
  let childErrorCode = data.data.data.errorCode
340
345
  if (childErrorCode) {
341
346
  let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
342
- this.$message.error(parrenterror + ',' + childerror)
347
+ this.isShowMessage && this.$message.error(parrenterror + ',' + childerror)
343
348
  }
344
349
  } else {
345
- this.$message.error(parrenterror)
350
+ this.isShowMessage && this.$message.error(parrenterror)
346
351
  }
347
352
  return
348
353
  }
@@ -359,7 +364,7 @@ export default {
359
364
  controlData: controlData
360
365
  }
361
366
  }).catch(error => {
362
- this.$message.error(error)
367
+ this.isShowMessage && this.$message.error(error)
363
368
  console.log(error)
364
369
  })
365
370
  },
@@ -368,10 +373,10 @@ export default {
368
373
  let res = data.data
369
374
  if (!res.success) {
370
375
  if (res.code === '4003') {
371
- this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
376
+ this.isShowMessage && this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
372
377
  return
373
378
  }
374
- this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
379
+ this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
375
380
  return
376
381
  }
377
382
  this.phaseList = res.data.data.phaseList
@@ -20,6 +20,8 @@
20
20
  :stateName="stateName"
21
21
  :crossStatusData="crossStatusData"
22
22
  :agentId="agentId"
23
+ :isShowMessage ="isShowMessage"
24
+ :isShowInterval="isShowInterval"
23
25
  :roadDirection="roadDirection" />
24
26
  <channelization
25
27
  v-if="curHomePage === 'Channelization'"
@@ -132,6 +134,14 @@ export default {
132
134
  type: String,
133
135
  default: 'right'
134
136
  },
137
+ isShowInterval: {
138
+ type: Boolean,
139
+ default: true
140
+ },
141
+ isShowMessage: {
142
+ type: Boolean,
143
+ default: true
144
+ },
135
145
  isfromatc: {
136
146
  type: Boolean,
137
147
  default: true
@@ -318,10 +328,10 @@ export default {
318
328
  // let childErrorCode = data.data.data.errorCode
319
329
  // if (childErrorCode) {
320
330
  // let childerror = getMessageByCode(data.data.data.errorCode, _this.$i18n.locale)
321
- // _this.$message.error(parrenterror + ',' + childerror)
331
+ // _this.isShowMessage && _this.$message.error(parrenterror + ',' + childerror)
322
332
  // }
323
333
  // } else {
324
- // _this.$message.error(parrenterror)
334
+ // _this.isShowMessage && _this.$message.error(parrenterror)
325
335
  // }
326
336
  _this.curHomePage = 'Graphical'
327
337
  return
@@ -361,7 +371,7 @@ export default {
361
371
  let success = data.data.data.content.success
362
372
  if (success !== 0) {
363
373
  let errormsg = 'openatccomponents.overview.putTscControlError' + success
364
- this.$message.error(this.$t(errormsg))
374
+ this.isShowMessage && this.$message.error(this.$t(errormsg))
365
375
  return
366
376
  }
367
377
  }
@@ -371,10 +381,10 @@ export default {
371
381
  let childErrorCode = data.data.data.errorCode
372
382
  if (childErrorCode) {
373
383
  let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
374
- this.$message.error(parrenterror + ',' + childerror)
384
+ this.isShowMessage && this.$message.error(parrenterror + ',' + childerror)
375
385
  }
376
386
  } else {
377
- this.$message.error(parrenterror)
387
+ this.isShowMessage && this.$message.error(parrenterror)
378
388
  }
379
389
  if (this.isResend) {
380
390
  this.reSend()
@@ -436,7 +446,7 @@ export default {
436
446
  let success = data.data.data.content.success
437
447
  if (success !== 0) {
438
448
  let errormsg = 'openatccomponents.overview.putTscControlError' + success
439
- this.$message.error(this.$t(errormsg))
449
+ this.isShowMessage && this.$message.error(this.$t(errormsg))
440
450
  return
441
451
  }
442
452
  }
@@ -444,7 +454,7 @@ export default {
444
454
  // this.devStatus = 2
445
455
  this.clearPatternInterval() // 清除其他定时器
446
456
  this.clearVolumeInterval()
447
- this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
457
+ this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
448
458
  if (this.isResend) {
449
459
  this.reSend()
450
460
  }
@@ -456,10 +466,10 @@ export default {
456
466
  let childErrorCode = data.data.data.errorCode
457
467
  if (childErrorCode) {
458
468
  let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
459
- this.$message.error(parrenterror + ',' + childerror)
469
+ this.isShowMessage && this.$message.error(parrenterror + ',' + childerror)
460
470
  }
461
471
  } else {
462
- this.$message.error(parrenterror)
472
+ this.isShowMessage && this.$message.error(parrenterror)
463
473
  }
464
474
  this.clearPatternInterval() // 清除其他定时器
465
475
  this.clearVolumeInterval()
@@ -479,7 +489,7 @@ export default {
479
489
  console.log('this.controlData', this.controlData)
480
490
  this.checkStage(this.controlData)
481
491
  }).catch(error => {
482
- // this.$message.error(error)
492
+ // this.isShowMessage && this.$message.error(error)
483
493
  console.log(error)
484
494
  })
485
495
  },
@@ -702,7 +712,7 @@ export default {
702
712
  queryDevParams () {
703
713
  queryDevice(this.AgentId).then(res => {
704
714
  if (!res.data.success) {
705
- this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
715
+ this.isShowMessage && this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
706
716
  return
707
717
  }
708
718
  let devParams = res.data.data.jsonparam
@@ -734,7 +744,7 @@ export default {
734
744
  let success = data.data.data.content.success
735
745
  if (success !== 0) {
736
746
  let errormsg = 'openatccomponents.overview.putTscControlError' + success
737
- this.$message.error(this.$t(errormsg))
747
+ this.isShowMessage && this.$message.error(this.$t(errormsg))
738
748
  return
739
749
  }
740
750
  }
@@ -744,10 +754,10 @@ export default {
744
754
  let childErrorCode = data.data.data.errorCode
745
755
  if (childErrorCode) {
746
756
  let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
747
- this.$message.error(parrenterror + ',' + childerror)
757
+ this.isShowMessage && this.$message.error(parrenterror + ',' + childerror)
748
758
  }
749
759
  } else {
750
- this.$message.error(parrenterror)
760
+ this.isShowMessage && this.$message.error(parrenterror)
751
761
  }
752
762
  return
753
763
  }
@@ -759,7 +769,7 @@ export default {
759
769
  getPlatform () {
760
770
  queryDevice(this.AgentId).then(res => {
761
771
  if (!res.data.success) {
762
- this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
772
+ this.isShowMessage && this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
763
773
  return
764
774
  }
765
775
  let devParams = res.data.data.jsonparam