openatc-components 0.3.106 → 0.3.107
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.
- package/config/index.js +0 -1
- package/package/kisscomps/components/BoardCard/BoardCard.vue +11 -0
- package/package/kisscomps/components/Channelization/Channelization.vue +1 -1
- package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +1 -1
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +46 -145
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +1 -1
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +3 -7
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +0 -5
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +12 -17
- package/package/kisscomps/components/OverviewComponent/index.vue +34 -31
- package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +11 -2
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +92 -33
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +13 -30
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +9 -11
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +3 -6
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +11 -18
- package/package/kisscomps/components/overView/index.vue +23 -0
- package/package/kisscomps/components/patternConfig/index.vue +1 -1
- package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +13 -33
- package/package/kisscomps/components/patternConfig/planContent.vue +3 -3
- package/package/kisscomps/components/patternList/patternList.vue +11 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +4 -3
- package/src/i18n/language/zh.js +4 -3
- package/src/kisscomps/components/BoardCard/BoardCard.vue +11 -0
- package/src/kisscomps/components/Channelization/Channelization.vue +1 -1
- package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +1 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +46 -145
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +1 -1
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +3 -7
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +0 -5
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +12 -17
- package/src/kisscomps/components/OverviewComponent/index.vue +34 -31
- package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +11 -2
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +92 -33
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +13 -30
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +9 -11
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +3 -6
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +11 -18
- package/src/kisscomps/components/overView/index.vue +23 -0
- package/src/kisscomps/components/patternConfig/index.vue +1 -1
- package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +13 -33
- package/src/kisscomps/components/patternConfig/planContent.vue +3 -3
- package/src/kisscomps/components/patternList/patternList.vue +11 -0
- package/src/views/intersection.vue +7 -6
- package/src/views/intersection2.vue +2 -2
- package/src/views/overView.vue +23 -5
- package/src/views/patternConfig.vue +8 -38
- package/src/views/schemeconfig.vue +6 -4
- package/static/apiconfig.json +0 -10
- package/static/styles/common.scss +3 -3
- package/static/styles/dark/theme/element-dark.scss +1 -1
- package/static/styles/intersection.scss +5 -15
- package/static/styles/light/theme/element-light.scss +1 -1
- package/static/styles/schemeconfig.scss +6 -3
- package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +0 -95
- package/src/api/permission.js +0 -33
- package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +0 -95
|
@@ -212,8 +212,8 @@ export default {
|
|
|
212
212
|
Detector: [], // 管理所有检测器
|
|
213
213
|
DetectorChart: [], // 管理所有检测器统计图
|
|
214
214
|
motorwayicon: '',
|
|
215
|
-
IconLengh:
|
|
216
|
-
IconWdith:
|
|
215
|
+
IconLengh: 33,
|
|
216
|
+
IconWdith: 109,
|
|
217
217
|
textareaW: 200,
|
|
218
218
|
textareaH: 100,
|
|
219
219
|
pedW: 206,
|
|
@@ -389,8 +389,8 @@ export default {
|
|
|
389
389
|
h: this.IconWdith,
|
|
390
390
|
angle: 0
|
|
391
391
|
}
|
|
392
|
-
this.IconLengh =
|
|
393
|
-
this.IconWdith =
|
|
392
|
+
this.IconLengh = 33
|
|
393
|
+
this.IconWdith = 109
|
|
394
394
|
let Motorwaysitem = {
|
|
395
395
|
index: this.index,
|
|
396
396
|
id: this.motorid,
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
92
92
|
// }
|
|
93
93
|
return
|
|
94
94
|
}
|
|
95
|
-
if (JSON.stringify(data.data.data) === '{}') return
|
|
95
|
+
if (data.data.data === undefined || JSON.stringify(data.data.data) === '{}') return
|
|
96
96
|
_this.pageindex = 2
|
|
97
97
|
_this.loadedChannelizatonData = JSON.parse(JSON.stringify(data.data.data))
|
|
98
98
|
})
|
|
@@ -222,10 +222,6 @@ export default {
|
|
|
222
222
|
type: Boolean,
|
|
223
223
|
devault: true
|
|
224
224
|
},
|
|
225
|
-
isShowMessage: {
|
|
226
|
-
type: Boolean,
|
|
227
|
-
default: true
|
|
228
|
-
},
|
|
229
225
|
roadDirection: {
|
|
230
226
|
type: String
|
|
231
227
|
},
|
|
@@ -722,7 +718,7 @@ export default {
|
|
|
722
718
|
}
|
|
723
719
|
}
|
|
724
720
|
msg = msg + ' - ' + commomMsg
|
|
725
|
-
this
|
|
721
|
+
this.$message.error(msg)
|
|
726
722
|
return
|
|
727
723
|
}
|
|
728
724
|
this.isLoaded = true
|
|
@@ -1044,10 +1040,10 @@ export default {
|
|
|
1044
1040
|
let res = data.data
|
|
1045
1041
|
if (!res.success) {
|
|
1046
1042
|
if (res.code === '4003') {
|
|
1047
|
-
this
|
|
1043
|
+
this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
|
|
1048
1044
|
return
|
|
1049
1045
|
}
|
|
1050
|
-
this
|
|
1046
|
+
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
1051
1047
|
return
|
|
1052
1048
|
}
|
|
1053
1049
|
let channelList = res.data.data.channelList.filter(ele => ele.type !== undefined)
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
:clickMode="clickMode"
|
|
42
42
|
:isThirdSignal="isThirdSignal"
|
|
43
43
|
:channelType="channelType"
|
|
44
|
-
:isShowMessage ="isShowMessage"
|
|
45
44
|
@handleClickCrossIcon="handleClickCrossIcon" />
|
|
46
45
|
</div>
|
|
47
46
|
</div>
|
|
@@ -85,10 +84,6 @@ export default {
|
|
|
85
84
|
type: Boolean,
|
|
86
85
|
default: true
|
|
87
86
|
},
|
|
88
|
-
isShowMessage: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: true
|
|
91
|
-
},
|
|
92
87
|
roadDirection: {
|
|
93
88
|
type: String,
|
|
94
89
|
default: 'right'
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
:stateName="stateName"
|
|
24
24
|
:isShowMode="isShowMode"
|
|
25
25
|
:isShowState="isShowState"
|
|
26
|
-
:isShowMessage ="isShowMessage"
|
|
27
26
|
:isShowInterval="isShowInterval"
|
|
28
27
|
@onSelectStages="onSelectStages"/>
|
|
29
28
|
</div>
|
|
@@ -74,10 +73,6 @@ export default {
|
|
|
74
73
|
type: Boolean,
|
|
75
74
|
default: true
|
|
76
75
|
},
|
|
77
|
-
isShowMessage: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: true
|
|
80
|
-
},
|
|
81
76
|
isShowState: {
|
|
82
77
|
type: Boolean,
|
|
83
78
|
devault: false
|
|
@@ -145,7 +140,7 @@ export default {
|
|
|
145
140
|
}
|
|
146
141
|
}
|
|
147
142
|
msg = msg + ' - ' + commomMsg
|
|
148
|
-
this
|
|
143
|
+
this.$message.error(msg)
|
|
149
144
|
if (this.isResend) {
|
|
150
145
|
this.reSend()
|
|
151
146
|
}
|
|
@@ -197,7 +192,7 @@ export default {
|
|
|
197
192
|
// this.devStatus = 2
|
|
198
193
|
this.clearPatternInterval() // 清除其他定时器
|
|
199
194
|
this.clearVolumeInterval()
|
|
200
|
-
this
|
|
195
|
+
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale) + ' - ' + commomMsg)
|
|
201
196
|
if (this.isResend) {
|
|
202
197
|
this.reSend()
|
|
203
198
|
}
|
|
@@ -213,7 +208,7 @@ export default {
|
|
|
213
208
|
}
|
|
214
209
|
}
|
|
215
210
|
msg = msg + ' - ' + commomMsg
|
|
216
|
-
this
|
|
211
|
+
this.$message.error(msg)
|
|
217
212
|
this.clearPatternInterval() // 清除其他定时器
|
|
218
213
|
if (this.isResend) {
|
|
219
214
|
this.reSend()
|
|
@@ -227,7 +222,7 @@ export default {
|
|
|
227
222
|
this.controlData = this.controlFormat.handleGetData(param)
|
|
228
223
|
this.$emit('getTscControl', data)
|
|
229
224
|
}).catch(error => {
|
|
230
|
-
this
|
|
225
|
+
this.$message.error(error)
|
|
231
226
|
console.log(error)
|
|
232
227
|
})
|
|
233
228
|
},
|
|
@@ -240,7 +235,7 @@ export default {
|
|
|
240
235
|
if (!res.data.success) {
|
|
241
236
|
let commomMsg = this.$t('openatccomponents.overview.signalID') + ': ' + this.AgentId
|
|
242
237
|
let msg = getMessageByCode(res.data.code, this.$i18n.locale) + ', ' + commomMsg
|
|
243
|
-
this
|
|
238
|
+
this.$message.error(msg)
|
|
244
239
|
return
|
|
245
240
|
}
|
|
246
241
|
let devParams = res.data.data.jsonparam
|
|
@@ -300,7 +295,7 @@ export default {
|
|
|
300
295
|
let success = data.data.data.content.success
|
|
301
296
|
if (success !== 0) {
|
|
302
297
|
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
303
|
-
this
|
|
298
|
+
this.$message.error(this.$t(errormsg))
|
|
304
299
|
return
|
|
305
300
|
}
|
|
306
301
|
}
|
|
@@ -335,7 +330,7 @@ export default {
|
|
|
335
330
|
}
|
|
336
331
|
if (!data.data.success) {
|
|
337
332
|
if (data.data.code === '4003') {
|
|
338
|
-
this
|
|
333
|
+
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
339
334
|
return
|
|
340
335
|
}
|
|
341
336
|
let parrenterror = getMessageByCode(data.data.code, this.$i18n.locale)
|
|
@@ -344,10 +339,10 @@ export default {
|
|
|
344
339
|
let childErrorCode = data.data.data.errorCode
|
|
345
340
|
if (childErrorCode) {
|
|
346
341
|
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
347
|
-
this
|
|
342
|
+
this.$message.error(parrenterror + ',' + childerror)
|
|
348
343
|
}
|
|
349
344
|
} else {
|
|
350
|
-
this
|
|
345
|
+
this.$message.error(parrenterror)
|
|
351
346
|
}
|
|
352
347
|
return
|
|
353
348
|
}
|
|
@@ -364,7 +359,7 @@ export default {
|
|
|
364
359
|
controlData: controlData
|
|
365
360
|
}
|
|
366
361
|
}).catch(error => {
|
|
367
|
-
this
|
|
362
|
+
this.$message.error(error)
|
|
368
363
|
console.log(error)
|
|
369
364
|
})
|
|
370
365
|
},
|
|
@@ -373,10 +368,10 @@ export default {
|
|
|
373
368
|
let res = data.data
|
|
374
369
|
if (!res.success) {
|
|
375
370
|
if (res.code === '4003') {
|
|
376
|
-
this
|
|
371
|
+
this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
|
|
377
372
|
return
|
|
378
373
|
}
|
|
379
|
-
this
|
|
374
|
+
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
380
375
|
return
|
|
381
376
|
}
|
|
382
377
|
this.phaseList = res.data.data.phaseList
|
|
@@ -11,17 +11,15 @@
|
|
|
11
11
|
**/
|
|
12
12
|
<template>
|
|
13
13
|
<div class="container-main">
|
|
14
|
-
<div :style="{'transform': `scale(${shrink})`, 'transform-origin': 'left top', 'height': '100%'}">
|
|
14
|
+
<div class="overview-component-content" :style="{'transform': `scale(${shrink})`, 'transform-origin': 'left top', 'height': '100%'}">
|
|
15
15
|
<div class="tuxingjiemian" v-show="curHomePage === 'Graphical' || curHomePage === 'Channelization'" :class="{'minifont': curBodyWidth <= 650}">
|
|
16
|
-
<div
|
|
16
|
+
<div :class="{'changeWidth': graphicMode, 'tuxing-left': !onlyShowIntersectionMap}" ref="tuxingLeft">
|
|
17
17
|
<intersection-base-map
|
|
18
18
|
v-if="curHomePage === 'Graphical'"
|
|
19
19
|
ref="intersectionMap"
|
|
20
20
|
:stateName="stateName"
|
|
21
21
|
:crossStatusData="crossStatusData"
|
|
22
22
|
:agentId="agentId"
|
|
23
|
-
:isShowMessage ="isShowMessage"
|
|
24
|
-
:isShowInterval="isShowInterval"
|
|
25
23
|
:roadDirection="roadDirection" />
|
|
26
24
|
<channelization
|
|
27
25
|
v-if="curHomePage === 'Channelization'"
|
|
@@ -29,7 +27,7 @@
|
|
|
29
27
|
:AgentId="agentId"
|
|
30
28
|
:crossStatusData="crossStatusData"
|
|
31
29
|
:detectorStatusData="detectorStatusData" />
|
|
32
|
-
<div class="pattern-status" v-if="!graphicMode && crossStatusData.control !== 1 && crossStatusData.control !== 2 && crossStatusData.control !== 3">
|
|
30
|
+
<div class="pattern-status" v-if="!graphicMode && !onlyShowIntersectionMap && crossStatusData.control !== 1 && crossStatusData.control !== 2 && crossStatusData.control !== 3">
|
|
33
31
|
<div class="pattern-name cross-mess">{{$t('openatccomponents.overviewcomponent.patternstate')}}</div>
|
|
34
32
|
<div class="pattern-message">({{$t('openatccomponents.overviewcomponent.cycle')}}: {{controlData.cycle}} {{$t('openatccomponents.overviewcomponent.patternoffset')}}: {{controlData.patternoffset}} {{$t('openatccomponents.overviewcomponent.coordinationtime')}}: {{controlData.offset}})</div>
|
|
35
33
|
<span class="pattern-explain"><el-checkbox v-model="checked">{{$t('openatccomponents.overviewcomponent.overLap')}}</el-checkbox></span>
|
|
@@ -93,7 +91,7 @@
|
|
|
93
91
|
</div>
|
|
94
92
|
</div>
|
|
95
93
|
|
|
96
|
-
<div ref="tuxingRight" class="tuxing-right" >
|
|
94
|
+
<div ref="tuxingRight" class="tuxing-right" v-if="!onlyShowIntersectionMap">
|
|
97
95
|
<scheme-config
|
|
98
96
|
ref="rightpanel"
|
|
99
97
|
:statusData="crossStatusData"
|
|
@@ -103,6 +101,7 @@
|
|
|
103
101
|
:agentId="agentId"
|
|
104
102
|
:ip="ip"
|
|
105
103
|
:platform="platform"
|
|
104
|
+
:funcSort="FuncSort"
|
|
106
105
|
:roadDirection="roadDirection"
|
|
107
106
|
:isFromAtc="isfromatc" />
|
|
108
107
|
</div>
|
|
@@ -133,23 +132,18 @@ export default {
|
|
|
133
132
|
type: String,
|
|
134
133
|
default: 'right'
|
|
135
134
|
},
|
|
136
|
-
|
|
137
|
-
type: Boolean,
|
|
138
|
-
default: true
|
|
139
|
-
},
|
|
140
|
-
isShowMessage: {
|
|
135
|
+
isfromatc: {
|
|
141
136
|
type: Boolean,
|
|
142
137
|
default: true
|
|
143
138
|
},
|
|
144
|
-
|
|
139
|
+
onlyShowIntersectionMap: {
|
|
145
140
|
type: Boolean,
|
|
146
|
-
default:
|
|
141
|
+
default: false
|
|
147
142
|
}
|
|
148
143
|
},
|
|
149
144
|
data () {
|
|
150
145
|
return {
|
|
151
146
|
stateName: this.$t('openatccomponents.overview.offline'),
|
|
152
|
-
curBodyWidth: 1920,
|
|
153
147
|
controlData: {},
|
|
154
148
|
checked: false,
|
|
155
149
|
overlap: [],
|
|
@@ -192,7 +186,8 @@ export default {
|
|
|
192
186
|
commonHeight: undefined, // 左右侧面板的高度值
|
|
193
187
|
graphicMode: false,
|
|
194
188
|
resetcomponent: true,
|
|
195
|
-
curHomePage: 'Graphical'
|
|
189
|
+
curHomePage: 'Graphical',
|
|
190
|
+
FuncSort: 'allFunc'
|
|
196
191
|
}
|
|
197
192
|
},
|
|
198
193
|
computed: {
|
|
@@ -326,16 +321,16 @@ export default {
|
|
|
326
321
|
// let childErrorCode = data.data.data.errorCode
|
|
327
322
|
// if (childErrorCode) {
|
|
328
323
|
// let childerror = getMessageByCode(data.data.data.errorCode, _this.$i18n.locale)
|
|
329
|
-
// _this
|
|
324
|
+
// _this.$message.error(parrenterror + ',' + childerror)
|
|
330
325
|
// }
|
|
331
326
|
// } else {
|
|
332
|
-
// _this
|
|
327
|
+
// _this.$message.error(parrenterror)
|
|
333
328
|
// }
|
|
334
329
|
_this.curHomePage = 'Graphical'
|
|
335
330
|
return
|
|
336
331
|
}
|
|
337
332
|
// 路口已设置渠化,则总览默认显示渠化路口,未设置显示模版路口
|
|
338
|
-
if (_this.isfromatc === true && data.data.success === true && JSON.stringify(data.data.data) !== '{}') {
|
|
333
|
+
if (_this.isfromatc === true && data.data.success === true && data.data.data !== undefined && JSON.stringify(data.data.data) !== '{}') {
|
|
339
334
|
_this.curHomePage = 'Channelization'
|
|
340
335
|
} else {
|
|
341
336
|
_this.curHomePage = 'Graphical'
|
|
@@ -369,7 +364,7 @@ export default {
|
|
|
369
364
|
let success = data.data.data.content.success
|
|
370
365
|
if (success !== 0) {
|
|
371
366
|
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
372
|
-
this
|
|
367
|
+
this.$message.error(this.$t(errormsg))
|
|
373
368
|
return
|
|
374
369
|
}
|
|
375
370
|
}
|
|
@@ -379,10 +374,10 @@ export default {
|
|
|
379
374
|
let childErrorCode = data.data.data.errorCode
|
|
380
375
|
if (childErrorCode) {
|
|
381
376
|
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
382
|
-
this
|
|
377
|
+
this.$message.error(parrenterror + ',' + childerror)
|
|
383
378
|
}
|
|
384
379
|
} else {
|
|
385
|
-
this
|
|
380
|
+
this.$message.error(parrenterror)
|
|
386
381
|
}
|
|
387
382
|
if (this.isResend) {
|
|
388
383
|
this.reSend()
|
|
@@ -444,7 +439,7 @@ export default {
|
|
|
444
439
|
let success = data.data.data.content.success
|
|
445
440
|
if (success !== 0) {
|
|
446
441
|
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
447
|
-
this
|
|
442
|
+
this.$message.error(this.$t(errormsg))
|
|
448
443
|
return
|
|
449
444
|
}
|
|
450
445
|
}
|
|
@@ -452,7 +447,7 @@ export default {
|
|
|
452
447
|
// this.devStatus = 2
|
|
453
448
|
this.clearPatternInterval() // 清除其他定时器
|
|
454
449
|
this.clearVolumeInterval()
|
|
455
|
-
this
|
|
450
|
+
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
456
451
|
if (this.isResend) {
|
|
457
452
|
this.reSend()
|
|
458
453
|
}
|
|
@@ -464,10 +459,10 @@ export default {
|
|
|
464
459
|
let childErrorCode = data.data.data.errorCode
|
|
465
460
|
if (childErrorCode) {
|
|
466
461
|
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
467
|
-
this
|
|
462
|
+
this.$message.error(parrenterror + ',' + childerror)
|
|
468
463
|
}
|
|
469
464
|
} else {
|
|
470
|
-
this
|
|
465
|
+
this.$message.error(parrenterror)
|
|
471
466
|
}
|
|
472
467
|
this.clearPatternInterval() // 清除其他定时器
|
|
473
468
|
this.clearVolumeInterval()
|
|
@@ -487,7 +482,7 @@ export default {
|
|
|
487
482
|
console.log('this.controlData', this.controlData)
|
|
488
483
|
this.checkStage(this.controlData)
|
|
489
484
|
}).catch(error => {
|
|
490
|
-
// this
|
|
485
|
+
// this.$message.error(error)
|
|
491
486
|
console.log(error)
|
|
492
487
|
})
|
|
493
488
|
},
|
|
@@ -710,7 +705,7 @@ export default {
|
|
|
710
705
|
queryDevParams () {
|
|
711
706
|
queryDevice(this.AgentId).then(res => {
|
|
712
707
|
if (!res.data.success) {
|
|
713
|
-
this
|
|
708
|
+
this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
714
709
|
return
|
|
715
710
|
}
|
|
716
711
|
let devParams = res.data.data.jsonparam
|
|
@@ -742,7 +737,7 @@ export default {
|
|
|
742
737
|
let success = data.data.data.content.success
|
|
743
738
|
if (success !== 0) {
|
|
744
739
|
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
745
|
-
this
|
|
740
|
+
this.$message.error(this.$t(errormsg))
|
|
746
741
|
return
|
|
747
742
|
}
|
|
748
743
|
}
|
|
@@ -752,10 +747,10 @@ export default {
|
|
|
752
747
|
let childErrorCode = data.data.data.errorCode
|
|
753
748
|
if (childErrorCode) {
|
|
754
749
|
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
755
|
-
this
|
|
750
|
+
this.$message.error(parrenterror + ',' + childerror)
|
|
756
751
|
}
|
|
757
752
|
} else {
|
|
758
|
-
this
|
|
753
|
+
this.$message.error(parrenterror)
|
|
759
754
|
}
|
|
760
755
|
return
|
|
761
756
|
}
|
|
@@ -767,7 +762,7 @@ export default {
|
|
|
767
762
|
getPlatform () {
|
|
768
763
|
queryDevice(this.AgentId).then(res => {
|
|
769
764
|
if (!res.data.success) {
|
|
770
|
-
this
|
|
765
|
+
this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
771
766
|
return
|
|
772
767
|
}
|
|
773
768
|
let devParams = res.data.data.jsonparam
|
|
@@ -779,6 +774,14 @@ export default {
|
|
|
779
774
|
this.agentName = res.data.data.name
|
|
780
775
|
}
|
|
781
776
|
this.platform = res.data.data.platform
|
|
777
|
+
let func = 'allFunc'
|
|
778
|
+
if (this.platform === 'OpenATC') {
|
|
779
|
+
func = 'allFunc'
|
|
780
|
+
}
|
|
781
|
+
if (this.platform === 'SCATS' || this.platform === 'HUATONG') {
|
|
782
|
+
func = 'basicFunc'
|
|
783
|
+
}
|
|
784
|
+
this.FuncSort = func
|
|
782
785
|
})
|
|
783
786
|
}
|
|
784
787
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<el-tooltip class="item" effect="dark" placement="left">
|
|
51
51
|
<div slot="content">{{element.name}}</div>
|
|
52
52
|
<div class="common-phase-description">
|
|
53
|
-
<xdrdirselector Width="70px" Height="70px" Widths="
|
|
53
|
+
<xdrdirselector Width="70px" Height="70px" Widths="58px" Heights="58px" :Datas="styles" :Data="showStyle" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
|
|
54
54
|
</div>
|
|
55
55
|
</el-tooltip>
|
|
56
56
|
</el-col>
|
|
@@ -79,9 +79,13 @@ export default {
|
|
|
79
79
|
},
|
|
80
80
|
data () {
|
|
81
81
|
return {
|
|
82
|
+
showStyle: {
|
|
83
|
+
left: '2px',
|
|
84
|
+
top: '0px'
|
|
85
|
+
},
|
|
82
86
|
styles: {
|
|
83
87
|
left: '1px',
|
|
84
|
-
top: '
|
|
88
|
+
top: '0px'
|
|
85
89
|
},
|
|
86
90
|
typeOptions: [{
|
|
87
91
|
value: 'flow-split-opt'
|
|
@@ -97,6 +101,9 @@ export default {
|
|
|
97
101
|
type: String,
|
|
98
102
|
default: 'Header'
|
|
99
103
|
},
|
|
104
|
+
id: {
|
|
105
|
+
type: Number
|
|
106
|
+
},
|
|
100
107
|
rings: {
|
|
101
108
|
type: Object
|
|
102
109
|
},
|
|
@@ -209,6 +216,7 @@ export default {
|
|
|
209
216
|
}
|
|
210
217
|
}
|
|
211
218
|
}
|
|
219
|
+
this.$emit('optimizesucess', this.id)
|
|
212
220
|
}
|
|
213
221
|
}).catch(error => {
|
|
214
222
|
console.log(error)
|
|
@@ -232,6 +240,7 @@ export default {
|
|
|
232
240
|
}
|
|
233
241
|
}
|
|
234
242
|
}
|
|
243
|
+
this.$emit('optimizesucess', this.id)
|
|
235
244
|
}
|
|
236
245
|
}).catch(error => {
|
|
237
246
|
console.log(error)
|