openatc-components 0.0.96-hotfix → 0.0.97
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/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +1 -2
- package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +17 -119
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +16 -0
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +190 -0
- package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -0
- package/package/kisscomps/index.js +2 -0
- package/package/kissui.min.js +1 -1
- package/package.json +13 -12
- package/src/i18n/language/en.js +31 -3
- package/src/i18n/language/zh.js +30 -2
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +1 -2
- package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +17 -119
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +16 -0
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +190 -0
- package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -0
- package/src/kisscomps/index.js +2 -0
- package/src/router/index.js +2 -2
- package/static/styles/channelizatioon.scss +3 -12
- package/static/styles/schemeconfig.scss +52 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openatc-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.97",
|
|
4
4
|
"description": "A Vue.js project",
|
|
5
5
|
"author": "openatc developer",
|
|
6
6
|
"private": false,
|
|
@@ -21,24 +21,25 @@
|
|
|
21
21
|
"npm2yuanqu": "npm config set registry http://nexus.ctsp.kedacom.com/content/groups/npm-host-yuanqu/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@minogin/vue-drag-resize-rotate": "^1.0.5",
|
|
25
|
+
"@openatc/edgebase-front": "^2.4.0",
|
|
26
|
+
"animate.css": "^3.7.2",
|
|
27
|
+
"axios": "0.21.1",
|
|
28
|
+
"echarts": "^4.9.0",
|
|
29
|
+
"element-ui": "^2.7.2",
|
|
24
30
|
"flatpickr": "^4.5.1",
|
|
25
31
|
"jquery": "^3.3.1",
|
|
32
|
+
"js-cookie": "2.2.0",
|
|
33
|
+
"localStorage": "^1.0.4",
|
|
34
|
+
"moment": "^2.24.0",
|
|
26
35
|
"pend": "^1.2.0",
|
|
36
|
+
"scss-loader": "0.0.1",
|
|
27
37
|
"v-tooltip": "^2.0.0-rc.33",
|
|
28
38
|
"vue": "^2.5.2",
|
|
29
|
-
"vue-router": "^3.0.1",
|
|
30
|
-
"element-ui": "^2.7.2",
|
|
31
|
-
"moment": "^2.24.0",
|
|
32
|
-
"axios": "0.21.1",
|
|
33
|
-
"js-cookie": "2.2.0",
|
|
34
|
-
"localStorage": "^1.0.4",
|
|
35
39
|
"vue-i18n": "^8.7.0",
|
|
36
|
-
"
|
|
37
|
-
"scss-loader": "0.0.1",
|
|
40
|
+
"vue-router": "^3.0.1",
|
|
38
41
|
"vuedraggable": "^2.16.0",
|
|
39
|
-
"
|
|
40
|
-
"echarts": "^4.9.0",
|
|
41
|
-
"@minogin/vue-drag-resize-rotate": "^1.0.5"
|
|
42
|
+
"vuex": "3.0.1"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"autoprefixer": "^7.1.2",
|
package/src/i18n/language/en.js
CHANGED
|
@@ -129,6 +129,7 @@ const en = {
|
|
|
129
129
|
'phaseclose': 'Close Phase',
|
|
130
130
|
'phaselocking': 'Priority Control',
|
|
131
131
|
'tentativeplan': 'Tentative Plan',
|
|
132
|
+
'prioritycontrol': 'Priority Control',
|
|
132
133
|
'implement': 'Execute',
|
|
133
134
|
'comfirm': 'Comfirm',
|
|
134
135
|
'ipaddress': 'IP',
|
|
@@ -206,7 +207,34 @@ const en = {
|
|
|
206
207
|
'modelList22': 'Priority Control',
|
|
207
208
|
'modelList23': 'Close Phase',
|
|
208
209
|
'modelList100': 'Tentative Plan',
|
|
209
|
-
'modelList24': '
|
|
210
|
+
'modelList24': 'Priority Control',
|
|
211
|
+
'priorityType': 'Priority Type',
|
|
212
|
+
'priorityPhase': 'Priority Phase',
|
|
213
|
+
'typeOption0': 'Regular Priority',
|
|
214
|
+
'typeOption1': 'Urgent Priority',
|
|
215
|
+
'es': 'East-Straight',
|
|
216
|
+
'el': 'East-Left',
|
|
217
|
+
'er': 'East-Right',
|
|
218
|
+
'eb': 'East-Back',
|
|
219
|
+
'ws': 'West-Straight',
|
|
220
|
+
'wl': 'West-Left',
|
|
221
|
+
'wr': 'West-Right',
|
|
222
|
+
'wb': 'West-Back',
|
|
223
|
+
'ns': 'North-Straight',
|
|
224
|
+
'nl': 'North-Left',
|
|
225
|
+
'nr': 'North-Right',
|
|
226
|
+
'nb': 'North-Back',
|
|
227
|
+
'ss': 'South-Straight',
|
|
228
|
+
'sl': 'South-Left',
|
|
229
|
+
'sr': 'South-Right',
|
|
230
|
+
'sb': 'South-Back',
|
|
231
|
+
'level': 'Level',
|
|
232
|
+
'levelOption': 'LevelOption',
|
|
233
|
+
'levelOption1': '1',
|
|
234
|
+
'levelOption2': '2',
|
|
235
|
+
'levelOption3': '3',
|
|
236
|
+
'levelOption4': '4',
|
|
237
|
+
'levelOption5': '5',
|
|
210
238
|
'modelList99': 'Device Mantenance',
|
|
211
239
|
'tips': 'Tips',
|
|
212
240
|
'exitmanul': 'It is necessary to restore self-control before exiting. Do you want to exit?',
|
|
@@ -1169,8 +1197,8 @@ const en = {
|
|
|
1169
1197
|
'pedestriandetector': 'Pedestrian Detector',
|
|
1170
1198
|
'detectorassociated': 'Detector Associated',
|
|
1171
1199
|
'detectorthreshold': 'Detector Threshold',
|
|
1172
|
-
'occupancythreshold': '
|
|
1173
|
-
'saturationthreshold': 'Flow Saturation
|
|
1200
|
+
'occupancythreshold': 'Occupancy threshold',
|
|
1201
|
+
'saturationthreshold': 'Flow Saturation threshold',
|
|
1174
1202
|
'checkthreshold': 'The threshold value cannot be blank. Please fill in a positive integer within the range of 0-100!',
|
|
1175
1203
|
'pedestriancrossing': 'Pedestrian crossing',
|
|
1176
1204
|
'pedestriansecondarycrossing': 'Pedestrian secondary crossing',
|
package/src/i18n/language/zh.js
CHANGED
|
@@ -129,6 +129,34 @@ const zh = {
|
|
|
129
129
|
'phaseclose': '相位关断',
|
|
130
130
|
'phaselocking': '相位锁定',
|
|
131
131
|
'tentativeplan': '临时方案',
|
|
132
|
+
'prioritycontrol': '优先控制',
|
|
133
|
+
'priorityType': '优先类型',
|
|
134
|
+
'priorityPhase': '优先相位',
|
|
135
|
+
'typeOption0': '常规优先',
|
|
136
|
+
'typeOption1': '紧急优先',
|
|
137
|
+
'es': '东直行',
|
|
138
|
+
'el': '东左转',
|
|
139
|
+
'er': '东右转',
|
|
140
|
+
'eb': '东掉头',
|
|
141
|
+
'ws': '西直行',
|
|
142
|
+
'wl': '西左转',
|
|
143
|
+
'wr': '西右转',
|
|
144
|
+
'wb': '西掉头',
|
|
145
|
+
'ns': '北直行',
|
|
146
|
+
'nl': '北左转',
|
|
147
|
+
'nr': '北右转',
|
|
148
|
+
'nb': '北掉头',
|
|
149
|
+
'ss': '南直行',
|
|
150
|
+
'sl': '南左转',
|
|
151
|
+
'sr': '南右转',
|
|
152
|
+
'sb': '南掉头',
|
|
153
|
+
'level': '优先级',
|
|
154
|
+
'levelOption': 'levelOption',
|
|
155
|
+
'levelOption1': '1',
|
|
156
|
+
'levelOption2': '2',
|
|
157
|
+
'levelOption3': '3',
|
|
158
|
+
'levelOption4': '4',
|
|
159
|
+
'levelOption5': '5',
|
|
132
160
|
'implement': '执行',
|
|
133
161
|
'comfirm': '确定',
|
|
134
162
|
'ipaddress': 'IP地址',
|
|
@@ -206,7 +234,7 @@ const zh = {
|
|
|
206
234
|
'modelList22': '相位锁定',
|
|
207
235
|
'modelList23': '相位关断',
|
|
208
236
|
'modelList100': '临时方案',
|
|
209
|
-
'modelList24': '
|
|
237
|
+
'modelList24': '优先控制',
|
|
210
238
|
'modelList99': '设备维护',
|
|
211
239
|
'tips': '提示',
|
|
212
240
|
'exitmanul': '退出前需要先恢复自主控制, 是否退出?',
|
|
@@ -1168,7 +1196,7 @@ const zh = {
|
|
|
1168
1196
|
'pedestriandetector': '行人检测器',
|
|
1169
1197
|
'detectorassociated': '检测器关联',
|
|
1170
1198
|
'detectorthreshold': '检测器阈值',
|
|
1171
|
-
'occupancythreshold': '
|
|
1199
|
+
'occupancythreshold': '占有率阈值',
|
|
1172
1200
|
'saturationthreshold': '流量饱和度阈值',
|
|
1173
1201
|
'checkthreshold': '阈值不可为空,请填0-100范围内的正整数!',
|
|
1174
1202
|
'pedestriancrossing': '行人过街',
|
|
@@ -541,8 +541,7 @@ export default {
|
|
|
541
541
|
detectortype: 1, // 检测器类型: 1 车辆检测器 2 行人检测器
|
|
542
542
|
detectorid: undefined,
|
|
543
543
|
occupancythreshold: 80,
|
|
544
|
-
|
|
545
|
-
maxflowsaturationthreshold: 70,
|
|
544
|
+
flowsaturationthreshold: 20,
|
|
546
545
|
...defaultDetectorParam
|
|
547
546
|
}
|
|
548
547
|
this.curChooseIconIndex = detectoritem.index
|
|
@@ -160,45 +160,18 @@
|
|
|
160
160
|
<el-form-item
|
|
161
161
|
:label="$t('openatccomponents.channelizationmap.occupancythreshold') + ':'"
|
|
162
162
|
prop="intersection">
|
|
163
|
-
|
|
163
|
+
<el-input-number :min="0" :max="100" :precision="0" :step="1" :controls="false"
|
|
164
164
|
:value="occupancythreshold" size="mini"
|
|
165
165
|
@change="handleChangeOccuthreshold" />
|
|
166
|
-
<span class="detector-threshold-formtext">%</span>
|
|
167
|
-
<el-select :value="occupancythreshold" @change="handleChangeOccuthreshold">
|
|
168
|
-
<el-option
|
|
169
|
-
v-for="item in occupResholdOptions"
|
|
170
|
-
:key="item.value"
|
|
171
|
-
:label="item.label"
|
|
172
|
-
:value="item.value">
|
|
173
|
-
</el-option>
|
|
174
|
-
</el-select>
|
|
166
|
+
<span class="detector-threshold-formtext">%</span>
|
|
175
167
|
</el-form-item>
|
|
176
168
|
<el-form-item
|
|
177
169
|
:label="$t('openatccomponents.channelizationmap.saturationthreshold') + ':'"
|
|
178
170
|
prop="count">
|
|
179
|
-
|
|
171
|
+
<el-input-number :min="0" :max="100" :precision="0" :step="1" :controls="false"
|
|
180
172
|
:value="flowsaturationthreshold" size="mini"
|
|
181
173
|
@change="handleChangeFlowthreshold" />
|
|
182
|
-
<span class="detector-threshold-formtext">%</span>
|
|
183
|
-
<el-select :value="minflowsaturationthreshold" @change="handleChangeMinFlowthreshold">
|
|
184
|
-
<el-option
|
|
185
|
-
v-for="item in minflowResholdOptions"
|
|
186
|
-
:key="item.value"
|
|
187
|
-
:label="item.label"
|
|
188
|
-
:value="item.value"
|
|
189
|
-
:disabled="item.disabled">
|
|
190
|
-
</el-option>
|
|
191
|
-
</el-select>
|
|
192
|
-
<span class="flow-separator">——</span>
|
|
193
|
-
<el-select :value="maxflowsaturationthreshold" @change="handleChangeMaxFlowthreshold">
|
|
194
|
-
<el-option
|
|
195
|
-
v-for="item in maxflowResholdOptions"
|
|
196
|
-
:key="item.value"
|
|
197
|
-
:label="item.label"
|
|
198
|
-
:value="item.value"
|
|
199
|
-
:disabled="item.disabled">
|
|
200
|
-
</el-option>
|
|
201
|
-
</el-select>
|
|
174
|
+
<span class="detector-threshold-formtext">%</span>
|
|
202
175
|
</el-form-item>
|
|
203
176
|
</el-form>
|
|
204
177
|
</div>
|
|
@@ -400,12 +373,8 @@ export default {
|
|
|
400
373
|
iconclass: 'custom-peddetector',
|
|
401
374
|
name: this.$t('openatccomponents.channelizationmap.pedestriandetector')
|
|
402
375
|
}],
|
|
403
|
-
occupResholdOptions: [],
|
|
404
|
-
minflowResholdOptions: [],
|
|
405
|
-
maxflowResholdOptions: [],
|
|
406
376
|
occupancythreshold: 80,
|
|
407
|
-
|
|
408
|
-
maxflowsaturationthreshold: 70
|
|
377
|
+
flowsaturationthreshold: 20
|
|
409
378
|
}
|
|
410
379
|
},
|
|
411
380
|
watch: {
|
|
@@ -425,11 +394,8 @@ export default {
|
|
|
425
394
|
if (data.occupancythreshold !== undefined) {
|
|
426
395
|
this.occupancythreshold = data.occupancythreshold
|
|
427
396
|
}
|
|
428
|
-
if (data.
|
|
429
|
-
this.
|
|
430
|
-
}
|
|
431
|
-
if (data.maxflowsaturationthreshold !== undefined) {
|
|
432
|
-
this.maxflowsaturationthreshold = data.maxflowsaturationthreshold
|
|
397
|
+
if (data.flowsaturationthreshold !== undefined) {
|
|
398
|
+
this.flowsaturationthreshold = data.flowsaturationthreshold
|
|
433
399
|
}
|
|
434
400
|
if (data.flip !== undefined) {
|
|
435
401
|
this.flip = data.flip
|
|
@@ -481,9 +447,8 @@ export default {
|
|
|
481
447
|
if (value === 2) {
|
|
482
448
|
// 行人检测器没有阈值设置
|
|
483
449
|
this.iconObj.occupancythreshold = undefined
|
|
484
|
-
this.iconObj.
|
|
485
|
-
this.iconObj
|
|
486
|
-
this.$emit('changeIconDataByType', this.iconObj, ['occupancythreshold', 'minflowsaturationthreshold', 'maxflowsaturationthreshold'])
|
|
450
|
+
this.iconObj.flowsaturationthreshold = undefined
|
|
451
|
+
this.$emit('changeIconDataByType', this.iconObj, ['occupancythreshold', 'flowsaturationthreshold'])
|
|
487
452
|
}
|
|
488
453
|
},
|
|
489
454
|
selectPedPos (value) {
|
|
@@ -541,53 +506,15 @@ export default {
|
|
|
541
506
|
this.iconObj.occupancythreshold = occupancythreshold
|
|
542
507
|
this.$emit('changeIconDataByType', this.iconObj, ['occupancythreshold'])
|
|
543
508
|
},
|
|
544
|
-
|
|
545
|
-
if (
|
|
546
|
-
this.$message.error(this.$t('openatccomponents.channelizationmap.checkthreshold'))
|
|
547
|
-
this.minflowsaturationthreshold = 30
|
|
548
|
-
return
|
|
549
|
-
}
|
|
550
|
-
this.minflowsaturationthreshold = minflowsaturationthreshold
|
|
551
|
-
this.iconObj.minflowsaturationthreshold = minflowsaturationthreshold
|
|
552
|
-
this.$emit('changeIconDataByType', this.iconObj, ['minflowsaturationthreshold'])
|
|
553
|
-
this.handleDisabledMaxflowOption()
|
|
554
|
-
},
|
|
555
|
-
handleDisabledMinflowOption () {
|
|
556
|
-
// 此处需要排他,恢复上次置灰到默认值
|
|
557
|
-
this.minflowResholdOptions = this.minflowResholdOptions.map(option => ({
|
|
558
|
-
label: option.label,
|
|
559
|
-
value: option.value
|
|
560
|
-
}))
|
|
561
|
-
// 控制流量饱和度最小阈值的禁用范围
|
|
562
|
-
for (let i = 0; i < this.minflowResholdOptions.length; i++) {
|
|
563
|
-
if (this.minflowResholdOptions[i].value >= this.maxflowsaturationthreshold) {
|
|
564
|
-
this.minflowResholdOptions[i].disabled = true
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
handleChangeMaxFlowthreshold (maxflowsaturationthreshold) {
|
|
569
|
-
if (maxflowsaturationthreshold === undefined) {
|
|
509
|
+
handleChangeFlowthreshold (flowsaturationthreshold) {
|
|
510
|
+
if (flowsaturationthreshold === undefined) {
|
|
570
511
|
this.$message.error(this.$t('openatccomponents.channelizationmap.checkthreshold'))
|
|
571
|
-
this.
|
|
512
|
+
this.flowsaturationthreshold = 20
|
|
572
513
|
return
|
|
573
514
|
}
|
|
574
|
-
this.
|
|
575
|
-
this.iconObj.
|
|
576
|
-
this.$emit('changeIconDataByType', this.iconObj, ['
|
|
577
|
-
this.handleDisabledMinflowOption()
|
|
578
|
-
},
|
|
579
|
-
handleDisabledMaxflowOption () {
|
|
580
|
-
// 此处需要排他,恢复上次置灰到默认值
|
|
581
|
-
this.maxflowResholdOptions = this.maxflowResholdOptions.map(option => ({
|
|
582
|
-
label: option.label,
|
|
583
|
-
value: option.value
|
|
584
|
-
}))
|
|
585
|
-
// 控制流量饱和度最大阈值的禁用范围
|
|
586
|
-
for (let i = 0; i < this.maxflowResholdOptions.length; i++) {
|
|
587
|
-
if (this.maxflowResholdOptions[i].value <= this.minflowsaturationthreshold) {
|
|
588
|
-
this.maxflowResholdOptions[i].disabled = true
|
|
589
|
-
}
|
|
590
|
-
}
|
|
515
|
+
this.flowsaturationthreshold = flowsaturationthreshold
|
|
516
|
+
this.iconObj.flowsaturationthreshold = flowsaturationthreshold
|
|
517
|
+
this.$emit('changeIconDataByType', this.iconObj, ['flowsaturationthreshold'])
|
|
591
518
|
},
|
|
592
519
|
getCurPedPosList (iconpedtypeid) {
|
|
593
520
|
// 方位根据行人类型显示
|
|
@@ -605,34 +532,8 @@ export default {
|
|
|
605
532
|
handleChangeFilp (value) {
|
|
606
533
|
this.iconObj.flip = value
|
|
607
534
|
this.$emit('changeIconDataByType', this.iconObj, ['flip'])
|
|
608
|
-
},
|
|
609
|
-
createResholdSelectOptions () {
|
|
610
|
-
for (let i = 5; i < 100; i = i + 5) {
|
|
611
|
-
let option = {
|
|
612
|
-
label: i + '%',
|
|
613
|
-
value: i
|
|
614
|
-
}
|
|
615
|
-
this.occupResholdOptions.push(option)
|
|
616
|
-
if (i <= this.minflowsaturationthreshold) {
|
|
617
|
-
option.disabled = true
|
|
618
|
-
}
|
|
619
|
-
this.maxflowResholdOptions.push(option)
|
|
620
|
-
}
|
|
621
|
-
for (let i = 5; i < 100; i = i + 5) {
|
|
622
|
-
let option = {
|
|
623
|
-
label: i + '%',
|
|
624
|
-
value: i
|
|
625
|
-
}
|
|
626
|
-
if (i >= this.maxflowsaturationthreshold) {
|
|
627
|
-
option.disabled = true
|
|
628
|
-
}
|
|
629
|
-
this.minflowResholdOptions.push(option)
|
|
630
|
-
}
|
|
631
535
|
}
|
|
632
536
|
},
|
|
633
|
-
created () {
|
|
634
|
-
this.createResholdSelectOptions()
|
|
635
|
-
},
|
|
636
537
|
mounted () {
|
|
637
538
|
if (JSON.stringify(this.Data) === '{}') return
|
|
638
539
|
this.iconObj = JSON.parse(JSON.stringify(this.Data))
|
|
@@ -648,11 +549,8 @@ export default {
|
|
|
648
549
|
if (this.Data.occupancythreshold !== undefined) {
|
|
649
550
|
this.occupancythreshold = this.Data.occupancythreshold
|
|
650
551
|
}
|
|
651
|
-
if (this.Data.
|
|
652
|
-
this.
|
|
653
|
-
}
|
|
654
|
-
if (this.Data.maxflowsaturationthreshold !== undefined) {
|
|
655
|
-
this.maxflowsaturationthreshold = this.Data.maxflowsaturationthreshold
|
|
552
|
+
if (this.Data.flowsaturationthreshold !== undefined) {
|
|
553
|
+
this.flowsaturationthreshold = this.Data.flowsaturationthreshold
|
|
656
554
|
}
|
|
657
555
|
if (this.Data.flip !== undefined) {
|
|
658
556
|
this.flip = this.Data.flip
|
|
@@ -69,6 +69,12 @@
|
|
|
69
69
|
@closePhaseBack="closePhaseBack"
|
|
70
70
|
@closePhaseControl="closePhaseControl"
|
|
71
71
|
/>
|
|
72
|
+
<priorityControl
|
|
73
|
+
v-if="specialPage === 'prioritycontrol'"
|
|
74
|
+
:phaseList="phaseList"
|
|
75
|
+
@closePhaseBack="closePhaseBack"
|
|
76
|
+
@closePhaseControl="closePhaseControl"
|
|
77
|
+
/>
|
|
72
78
|
</div>
|
|
73
79
|
</transition>
|
|
74
80
|
|
|
@@ -110,6 +116,7 @@ import ManualControlModal from './manualControlModal'
|
|
|
110
116
|
import ClosePhaseControlModal from './closePhaselControlModal'
|
|
111
117
|
import LockingPhaseControlModal from './lockingPhaselControlModal'
|
|
112
118
|
import TentativePlanControlModal from './tentativeplancontrolmodal'
|
|
119
|
+
import priorityControl from './priorityControl'
|
|
113
120
|
// import { getFaultMesZh, getFaultMesEn } from '../../utils/faultcode.js'
|
|
114
121
|
import { getMessageByCode } from '../../../utils/responseMessage'
|
|
115
122
|
import { GetAllFaultRange } from '../../../api/fault'
|
|
@@ -125,6 +132,7 @@ export default {
|
|
|
125
132
|
ManualControlModal,
|
|
126
133
|
ClosePhaseControlModal,
|
|
127
134
|
LockingPhaseControlModal,
|
|
135
|
+
priorityControl,
|
|
128
136
|
TentativePlanControlModal
|
|
129
137
|
},
|
|
130
138
|
props: {
|
|
@@ -292,6 +300,9 @@ export default {
|
|
|
292
300
|
}, {
|
|
293
301
|
id: 100,
|
|
294
302
|
iconClass: 'tentativeplan'
|
|
303
|
+
}, {
|
|
304
|
+
id: 24,
|
|
305
|
+
iconClass: 'tentativeplan'
|
|
295
306
|
}],
|
|
296
307
|
phaseRings: [],
|
|
297
308
|
curFaultList: [],
|
|
@@ -620,6 +631,11 @@ export default {
|
|
|
620
631
|
this.isClosePhase = true
|
|
621
632
|
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
622
633
|
this.specialPage = 'tentativeplan'
|
|
634
|
+
} else if (id === 24) {
|
|
635
|
+
this.toPage = 3
|
|
636
|
+
this.isClosePhase = true
|
|
637
|
+
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
638
|
+
this.specialPage = 'prioritycontrol'
|
|
623
639
|
} else {
|
|
624
640
|
this.isClosePhase = false
|
|
625
641
|
this.specialPage = ''
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="priority-control">
|
|
3
|
+
<div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.prioritycontrol')}}</div>
|
|
4
|
+
<el-row>
|
|
5
|
+
<el-col :span="12">
|
|
6
|
+
<el-form
|
|
7
|
+
ref="manual"
|
|
8
|
+
label-position="left"
|
|
9
|
+
:model="manualInfo"
|
|
10
|
+
label-width="100px">
|
|
11
|
+
<el-form-item
|
|
12
|
+
:label="$t('openatccomponents.overview.delay') + ':'"
|
|
13
|
+
prop="intersection">
|
|
14
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.delay" size="mini"></el-input-number>
|
|
15
|
+
<!-- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
16
|
+
</el-form-item>
|
|
17
|
+
<el-form-item
|
|
18
|
+
:label="$t('openatccomponents.overview.priorityType') + ':'"
|
|
19
|
+
prop="count">
|
|
20
|
+
<el-select v-model="manualInfo.type" class="col-inner" size="small" clearable :placeholder="$t('openatccomponents.common.select')">
|
|
21
|
+
<el-option
|
|
22
|
+
v-for="item in typeSelect"
|
|
23
|
+
:key="item.value"
|
|
24
|
+
:label="item.label"
|
|
25
|
+
:value="item.value">
|
|
26
|
+
</el-option>
|
|
27
|
+
</el-select>
|
|
28
|
+
<!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
29
|
+
</el-form-item>
|
|
30
|
+
</el-form>
|
|
31
|
+
</el-col>
|
|
32
|
+
<el-col :span="12">
|
|
33
|
+
<el-form
|
|
34
|
+
ref="manual"
|
|
35
|
+
label-position="left"
|
|
36
|
+
:model="manualInfo"
|
|
37
|
+
label-width="100px">
|
|
38
|
+
<el-form-item
|
|
39
|
+
:label="$t('openatccomponents.overview.duration') + ':'"
|
|
40
|
+
prop="intersection">
|
|
41
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="mini"></el-input-number>
|
|
42
|
+
<!-- <el-input v-model="manualInfo.duration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
43
|
+
</el-form-item>
|
|
44
|
+
<el-form-item
|
|
45
|
+
:label="$t('openatccomponents.overview.priorityPhase') + ':'"
|
|
46
|
+
prop="count">
|
|
47
|
+
<el-select v-model="manualInfo.phase" class="col-inner" size="small" clearable :placeholder="$t('openatccomponents.common.select')">
|
|
48
|
+
<el-option
|
|
49
|
+
v-for="(item, index) in phaseSelect"
|
|
50
|
+
:key="index"
|
|
51
|
+
:label="item.label"
|
|
52
|
+
:value="item.value">
|
|
53
|
+
<div class="single-model">
|
|
54
|
+
<xdrdirselector Width="40px" Height="40px" :showlist="item.item"></xdrdirselector>
|
|
55
|
+
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.label }}</span>
|
|
56
|
+
</div>
|
|
57
|
+
</el-option>
|
|
58
|
+
</el-select>
|
|
59
|
+
<!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
60
|
+
</el-form-item>
|
|
61
|
+
</el-form>
|
|
62
|
+
</el-col>
|
|
63
|
+
</el-row>
|
|
64
|
+
<el-row>
|
|
65
|
+
<el-col :span="12">
|
|
66
|
+
<el-form
|
|
67
|
+
ref="manual"
|
|
68
|
+
label-position="left"
|
|
69
|
+
:model="manualInfo"
|
|
70
|
+
label-width="100px">
|
|
71
|
+
<el-form-item
|
|
72
|
+
:label="$t('openatccomponents.overview.level') + ':'"
|
|
73
|
+
prop="count">
|
|
74
|
+
<el-select v-model="manualInfo.level" class="col-inner" size="small" clearable :placeholder="$t('openatccomponents.common.select')">
|
|
75
|
+
<el-option
|
|
76
|
+
v-for="item in levelOption"
|
|
77
|
+
:key="item.value"
|
|
78
|
+
:label="$t('openatccomponents.overview.levelOption' + item.value)"
|
|
79
|
+
:value="item.value">
|
|
80
|
+
</el-option>
|
|
81
|
+
</el-select>
|
|
82
|
+
<!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
83
|
+
</el-form-item>
|
|
84
|
+
</el-form>
|
|
85
|
+
</el-col>
|
|
86
|
+
</el-row>
|
|
87
|
+
<div class="footer">
|
|
88
|
+
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
89
|
+
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.implement')}}</el-button>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<script>
|
|
95
|
+
import xdrdirselector from '../../XRDDirSelector/XRDDirSelector'
|
|
96
|
+
import { getTheme } from '../../../../utils/auth'
|
|
97
|
+
import { getDirName } from './utils'
|
|
98
|
+
export default {
|
|
99
|
+
name: 'prioritycontrol',
|
|
100
|
+
components: {
|
|
101
|
+
xdrdirselector
|
|
102
|
+
},
|
|
103
|
+
props: {
|
|
104
|
+
phaseList: {
|
|
105
|
+
type: Array
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
data () {
|
|
109
|
+
return {
|
|
110
|
+
levelOption: [{
|
|
111
|
+
value: 1,
|
|
112
|
+
label: 1
|
|
113
|
+
}, {
|
|
114
|
+
value: 2,
|
|
115
|
+
label: 2
|
|
116
|
+
}, {
|
|
117
|
+
value: 3,
|
|
118
|
+
label: 3
|
|
119
|
+
}, {
|
|
120
|
+
value: 4,
|
|
121
|
+
label: 4
|
|
122
|
+
}, {
|
|
123
|
+
value: 5,
|
|
124
|
+
label: 5
|
|
125
|
+
}],
|
|
126
|
+
typeSelect: [{
|
|
127
|
+
value: 0,
|
|
128
|
+
label: this.$t('openatccomponents.overview.typeOption0')
|
|
129
|
+
}, {
|
|
130
|
+
value: 1,
|
|
131
|
+
label: this.$t('openatccomponents.overview.typeOption1')
|
|
132
|
+
}],
|
|
133
|
+
phaseSelect: [],
|
|
134
|
+
manualInfo: {
|
|
135
|
+
level: 1,
|
|
136
|
+
phase: 1,
|
|
137
|
+
type: 0,
|
|
138
|
+
duration: 300,
|
|
139
|
+
delay: 0
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
created () {
|
|
144
|
+
this.getSelect(this.phaseList)
|
|
145
|
+
},
|
|
146
|
+
methods: {
|
|
147
|
+
getSelect (list) {
|
|
148
|
+
let color = getTheme() === 'light' ? '#1E1E1E' : '#F1F3F4'
|
|
149
|
+
this.phaseSelect = list.map((item, index) => {
|
|
150
|
+
let dirArr = []
|
|
151
|
+
for (let rec of item.direction) {
|
|
152
|
+
let recd = {
|
|
153
|
+
id: rec,
|
|
154
|
+
color: color
|
|
155
|
+
}
|
|
156
|
+
dirArr.push(recd)
|
|
157
|
+
}
|
|
158
|
+
let nameArr = getDirName(dirArr)
|
|
159
|
+
let name = ''
|
|
160
|
+
nameArr = nameArr.map(record => this.$t(record))
|
|
161
|
+
name = nameArr.join(',')
|
|
162
|
+
return {
|
|
163
|
+
label: name,
|
|
164
|
+
item: dirArr,
|
|
165
|
+
value: item.id
|
|
166
|
+
}
|
|
167
|
+
})
|
|
168
|
+
},
|
|
169
|
+
handleClose () {
|
|
170
|
+
this.$emit('closePhaseBack')
|
|
171
|
+
},
|
|
172
|
+
handleManualControl () {
|
|
173
|
+
let submitdata = {
|
|
174
|
+
control: 24,
|
|
175
|
+
delay: this.manualInfo.delay,
|
|
176
|
+
duration: this.manualInfo.duration,
|
|
177
|
+
type: this.manualInfo.type,
|
|
178
|
+
phase: this.manualInfo.phase,
|
|
179
|
+
level: this.manualInfo.level
|
|
180
|
+
}
|
|
181
|
+
console.log(submitdata, 'submitdata')
|
|
182
|
+
this.$emit('closePhaseControl', submitdata)
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
</script>
|
|
187
|
+
|
|
188
|
+
<style>
|
|
189
|
+
|
|
190
|
+
</style>
|