openatc-components 0.0.6 → 0.0.12
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/CommonKanban/CommonKanban.vue +2 -5
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +7 -11
- package/package/kisscomps/components/IntersectionMap/crossDirection/utils.js +3 -3
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -6
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +1 -6
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +4 -15
- package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +0 -6
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +0 -4
- package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +13 -8
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -4
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +6 -10
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/CommonKanban/CommonKanban.vue +2 -5
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +7 -11
- package/src/kisscomps/components/IntersectionMap/crossDirection/utils.js +3 -3
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -6
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +1 -6
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +4 -15
- package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +0 -6
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +0 -4
- package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +13 -8
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -4
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +6 -10
- package/src/store/getters.js +1 -14
- package/src/store/index.js +1 -11
- package/src/store/modules/globalParam.js +5 -174
- package/src/views/intersection.vue +1 -2
- package/src/views/schemeconfig.vue +6 -2
- package/src/EdgeMgr/controller/globalParamsMgr.js +0 -75
- package/src/store/modules/app.js +0 -54
- package/src/store/modules/globalParamModel.js +0 -34
- package/src/store/modules/permissionRoutes.js +0 -50
- package/src/store/modules/saveAgent.js +0 -35
- package/src/store/modules/user.js +0 -133
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<el-tooltip class="item" effect="dark" placement="left">
|
|
28
28
|
<div slot="content">{{element.name}}</div>
|
|
29
29
|
<div class="common-phase-description">
|
|
30
|
-
<xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"
|
|
30
|
+
<xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
|
|
31
31
|
</div>
|
|
32
32
|
</el-tooltip>
|
|
33
33
|
</div>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div v-for="(side, index) in sidewalkPhaseData" :key="side.key + '-' + index">
|
|
47
47
|
<PatternWalkSvg v-if="element.peddirection.includes(side.id)" :Data="side" Width="38" Height="40" />
|
|
48
48
|
</div>
|
|
49
|
-
<xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"
|
|
49
|
+
<xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
|
|
50
50
|
</div>
|
|
51
51
|
</el-tooltip>
|
|
52
52
|
</div>
|
|
@@ -94,9 +94,6 @@ export default {
|
|
|
94
94
|
},
|
|
95
95
|
sidewalkPhaseData: {
|
|
96
96
|
type: Array
|
|
97
|
-
},
|
|
98
|
-
roadDirection: {
|
|
99
|
-
type: String
|
|
100
97
|
}
|
|
101
98
|
},
|
|
102
99
|
methods: {
|
|
@@ -136,7 +136,7 @@ import RampSouthRoadsSvg from './baseImg/RampSouthSvg'
|
|
|
136
136
|
import RampPhaseIconSvg from './phaseIcon/rampPhaseIconSvg'
|
|
137
137
|
import PedSectionEWSvg from './baseImg/PedSectionEWSvg'
|
|
138
138
|
import PedSectionSNSvg from './baseImg/PedSectionSNSvg'
|
|
139
|
-
|
|
139
|
+
import { mapState } from 'vuex'
|
|
140
140
|
import LCrossRoadsSvg from './baseImg/leftroad/LCrossRoadsSvg'
|
|
141
141
|
import LTShapeEastRoadsSvg from './baseImg/leftroad/LTShapeEastRoadsSvg'
|
|
142
142
|
import LTShapeWestRoadsSvg from './baseImg/leftroad/LTShapeWestRoadsSvg.vue'
|
|
@@ -186,17 +186,13 @@ export default {
|
|
|
186
186
|
isShowInterval: {
|
|
187
187
|
type: Boolean,
|
|
188
188
|
devault: true
|
|
189
|
-
},
|
|
190
|
-
roadDirection: {
|
|
191
|
-
type: String,
|
|
192
|
-
default: 'right'
|
|
193
189
|
}
|
|
194
190
|
},
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
191
|
+
computed: {
|
|
192
|
+
...mapState({
|
|
193
|
+
roadDirection: state => state.globalParam.roadDirection
|
|
194
|
+
})
|
|
195
|
+
},
|
|
200
196
|
watch: {
|
|
201
197
|
tempType: {
|
|
202
198
|
handler: function (val) {
|
|
@@ -300,7 +296,7 @@ export default {
|
|
|
300
296
|
init () {
|
|
301
297
|
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
302
298
|
this.getRoadDirection()
|
|
303
|
-
this.PhaseDataModel = new PhaseDataModel(
|
|
299
|
+
this.PhaseDataModel = new PhaseDataModel()
|
|
304
300
|
this.getIntersectionInfo() // 获取路口信息
|
|
305
301
|
},
|
|
306
302
|
comparePhaseStatus () {
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
11
11
|
* See the Mulan PSL v2 for more details.
|
|
12
12
|
**/
|
|
13
|
+
import store from '../../../../store'
|
|
13
14
|
export default class PhaseDataModel {
|
|
14
|
-
constructor (
|
|
15
|
-
this.roadDirection = roadDirection
|
|
15
|
+
constructor () {
|
|
16
16
|
this.PhasePosMap = new Map()
|
|
17
17
|
this.SidePosMap = new Map()
|
|
18
18
|
this.RampMainPosMap = new Map() // 匝道主路坐标
|
|
@@ -27,7 +27,7 @@ export default class PhaseDataModel {
|
|
|
27
27
|
let rampJson = require('./posJson/rampPos.json')
|
|
28
28
|
let busMapJson = require('./posJson/busPos.json').busMap
|
|
29
29
|
let busPhaseJson = require('./posJson/busPos.json').busphases
|
|
30
|
-
if (
|
|
30
|
+
if (store.getters.roadDirection === 'left') {
|
|
31
31
|
phaseJson = require('./posJson/phasePos.left.json').phaseList
|
|
32
32
|
busMapJson = require('./posJson/busPos.left.json').busMap
|
|
33
33
|
busPhaseJson = require('./posJson/busPos.left.json').busphases
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
:crossStatusData="crossStatusData"
|
|
28
28
|
:agentId="agentId"
|
|
29
29
|
:isShowInterval="isShowInterval"
|
|
30
|
-
:devStatus="devStatus"
|
|
31
|
-
:roadDirection="roadDirection" />
|
|
30
|
+
:devStatus="devStatus" />
|
|
32
31
|
</div>
|
|
33
32
|
</div>
|
|
34
33
|
</template>
|
|
@@ -76,10 +75,6 @@ export default {
|
|
|
76
75
|
handler: function (val) {
|
|
77
76
|
this.setPropsToken(val)
|
|
78
77
|
}
|
|
79
|
-
},
|
|
80
|
-
roadDirection: {
|
|
81
|
-
type: String,
|
|
82
|
-
default: 'right'
|
|
83
78
|
}
|
|
84
79
|
},
|
|
85
80
|
watch: {
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
:crossStatusData="crossStatusData"
|
|
18
18
|
:devStatus="devStatus"
|
|
19
19
|
:agentId="agentId"
|
|
20
|
-
:graphicMode="true"
|
|
21
|
-
:roadDirection="roadDirection" />
|
|
20
|
+
:graphicMode="true" />
|
|
22
21
|
</div>
|
|
23
22
|
</template>
|
|
24
23
|
<script>
|
|
@@ -52,10 +51,6 @@ export default {
|
|
|
52
51
|
Token: {
|
|
53
52
|
type: String,
|
|
54
53
|
default: ''
|
|
55
|
-
},
|
|
56
|
-
roadDirection: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: 'right'
|
|
59
54
|
}
|
|
60
55
|
},
|
|
61
56
|
watch: {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
:currentStage="currentStage"
|
|
28
28
|
:preselectStages="preselectStages"
|
|
29
29
|
:realtimeStatusModalvisible="realtimeStatusModalvisible"
|
|
30
|
-
:
|
|
30
|
+
:funcSort="funcSort"
|
|
31
31
|
@closeManualModal="closeManualModal"
|
|
32
32
|
@selectModel="selectModel"
|
|
33
33
|
@selectStages="selectStages"
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
:closePhaseRings="phaseRings"
|
|
46
46
|
:sidewalkPhaseData="sidewalkPhaseData"
|
|
47
47
|
:realtimeStatusModalvisible="realtimeStatusModalvisible"
|
|
48
|
-
:roadDirection="roadDirection"
|
|
49
48
|
@closePhaseBack="closePhaseBack"
|
|
50
49
|
@closePhaseControl= "closePhaseControl" />
|
|
51
50
|
<LockingPhaseControlModal
|
|
@@ -54,7 +53,6 @@
|
|
|
54
53
|
:closePhaseRings="phaseRings"
|
|
55
54
|
:sidewalkPhaseData="sidewalkPhaseData"
|
|
56
55
|
:realtimeStatusModalvisible="realtimeStatusModalvisible"
|
|
57
|
-
:roadDirection="roadDirection"
|
|
58
56
|
@closePhaseBack="closePhaseBack"
|
|
59
57
|
@closePhaseControl= "closePhaseControl" />
|
|
60
58
|
</div>
|
|
@@ -81,7 +79,6 @@
|
|
|
81
79
|
:agentId="agentId"
|
|
82
80
|
:stagesList="stagesList"
|
|
83
81
|
:sidewalkPhaseData="sidewalkPhaseData"
|
|
84
|
-
:roadDirection="roadDirection"
|
|
85
82
|
@changeStatus="changeStatus"
|
|
86
83
|
@showFaultDetail="showFaultDetail"/>
|
|
87
84
|
</div>
|
|
@@ -146,9 +143,8 @@ export default {
|
|
|
146
143
|
type: String,
|
|
147
144
|
default: ''
|
|
148
145
|
},
|
|
149
|
-
|
|
150
|
-
type: String
|
|
151
|
-
default: 'right'
|
|
146
|
+
funcSort: {
|
|
147
|
+
type: String
|
|
152
148
|
}
|
|
153
149
|
},
|
|
154
150
|
data () {
|
|
@@ -280,17 +276,10 @@ export default {
|
|
|
280
276
|
handler: function (val) {
|
|
281
277
|
this.setPropsToken(val)
|
|
282
278
|
}
|
|
283
|
-
},
|
|
284
|
-
roadDirection: {
|
|
285
|
-
handler: function (val) {
|
|
286
|
-
if (val === 'left' || val === 'right') {
|
|
287
|
-
this.PhaseDataModel = new PhaseDataModel(val)
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
279
|
}
|
|
291
280
|
},
|
|
292
281
|
created () {
|
|
293
|
-
this.PhaseDataModel = new PhaseDataModel(
|
|
282
|
+
this.PhaseDataModel = new PhaseDataModel()
|
|
294
283
|
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
295
284
|
if (this.realtimeStatusModalvisible === false) {
|
|
296
285
|
this.changeStatus()
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
:header-text="$t('openatccomponents.pattern.ring') + ring.num"
|
|
43
43
|
:Draggable="false"
|
|
44
44
|
:sidewalkPhaseData="sidewalkPhaseData"
|
|
45
|
-
:roadDirection="roadDirection"
|
|
46
45
|
@handleSort="handleSort">
|
|
47
46
|
<template v-slot:kanbantitle>
|
|
48
47
|
<div class="col-title" v-text="$t('openatccomponents.overview.closemode')"></div>
|
|
@@ -111,13 +110,8 @@ export default {
|
|
|
111
110
|
},
|
|
112
111
|
sidewalkPhaseData: {
|
|
113
112
|
type: Array
|
|
114
|
-
},
|
|
115
|
-
roadDirection: {
|
|
116
|
-
type: String
|
|
117
113
|
}
|
|
118
114
|
},
|
|
119
|
-
computed: {
|
|
120
|
-
},
|
|
121
115
|
data () {
|
|
122
116
|
return {
|
|
123
117
|
visible: this.Visible,
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
:header-text="$t('openatccomponents.pattern.ring') + ring.num"
|
|
59
59
|
:Draggable="false"
|
|
60
60
|
:sidewalkPhaseData="sidewalkPhaseData"
|
|
61
|
-
:roadDirection="roadDirection"
|
|
62
61
|
@handleSort="handleSort">
|
|
63
62
|
<template v-slot:kanbantitle>
|
|
64
63
|
<div class="col-title" v-text="$t('openatccomponents.overview.closemode')"></div>
|
|
@@ -127,9 +126,6 @@ export default {
|
|
|
127
126
|
},
|
|
128
127
|
sidewalkPhaseData: {
|
|
129
128
|
type: Array
|
|
130
|
-
},
|
|
131
|
-
roadDirection: {
|
|
132
|
-
type: String
|
|
133
129
|
}
|
|
134
130
|
},
|
|
135
131
|
data () {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<div style="width: 100%; height: auto;overflow: hidden;">
|
|
55
55
|
<div class="control-model" v-for="(item, index) in stagesList" :key="index">
|
|
56
56
|
<div class="single-model" @click="selectStages(index + 1)" :class="preselectStages == index + 1 ? 'single-model-select' : ''">
|
|
57
|
-
<xdrdirselector Width="40px" Height="40px" :showlist="item"
|
|
57
|
+
<xdrdirselector Width="40px" Height="40px" :showlist="item"></xdrdirselector>
|
|
58
58
|
<div style="display:flex;flex-direction:row;justify-content:center;align-items:center;">
|
|
59
59
|
<div class="current-stage-num" style="width:20%;">{{index + 1}}</div>
|
|
60
60
|
<div style="width:70%;">
|
|
@@ -89,7 +89,6 @@
|
|
|
89
89
|
|
|
90
90
|
<script>
|
|
91
91
|
import xdrdirselector from '../../XRDDirSelector/XRDDirSelector'
|
|
92
|
-
import { mapState } from 'vuex'
|
|
93
92
|
export default {
|
|
94
93
|
name: 'manualControl',
|
|
95
94
|
components: {
|
|
@@ -127,14 +126,16 @@ export default {
|
|
|
127
126
|
type: Boolean,
|
|
128
127
|
default: true
|
|
129
128
|
},
|
|
130
|
-
|
|
129
|
+
funcSort: {
|
|
131
130
|
type: String
|
|
132
131
|
}
|
|
133
132
|
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
watch: {
|
|
134
|
+
funcSort: {
|
|
135
|
+
handler: function (val) {
|
|
136
|
+
this.FuncSort = val
|
|
137
|
+
}
|
|
138
|
+
}
|
|
138
139
|
},
|
|
139
140
|
data () {
|
|
140
141
|
return {
|
|
@@ -144,7 +145,8 @@ export default {
|
|
|
144
145
|
tempPatternid: 0, // 控制方式手动操作的情况下的控制编号的临时值。
|
|
145
146
|
tempDelay: 0, // 控制方式手动操作的情况下的延迟时间的临时值。
|
|
146
147
|
tempDuration: 300 // 控制方式手动操作的情况下的持续时间的临时值。
|
|
147
|
-
}
|
|
148
|
+
},
|
|
149
|
+
FuncSort: 'allFunc'
|
|
148
150
|
}
|
|
149
151
|
},
|
|
150
152
|
methods: {
|
|
@@ -174,6 +176,9 @@ export default {
|
|
|
174
176
|
if (this.controlData.tempDuration) {
|
|
175
177
|
this.manualInfo.tempDuration = this.controlData.duration
|
|
176
178
|
}
|
|
179
|
+
if (this.funcSort) {
|
|
180
|
+
this.FuncSort = this.funcSort
|
|
181
|
+
}
|
|
177
182
|
}
|
|
178
183
|
}
|
|
179
184
|
</script>
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
:Width="'44'"
|
|
162
162
|
:Height="'44'"
|
|
163
163
|
/>
|
|
164
|
-
<xdrdirselector Width="40PX" Height="40PX" :showlist="item"
|
|
164
|
+
<xdrdirselector Width="40PX" Height="40PX" :showlist="item"></xdrdirselector>
|
|
165
165
|
<div
|
|
166
166
|
style="display:flex;flex-direction:row;justify-content:center;align-items:center;"
|
|
167
167
|
>
|
|
@@ -274,9 +274,6 @@ export default {
|
|
|
274
274
|
},
|
|
275
275
|
untreatedFault: {
|
|
276
276
|
type: Array
|
|
277
|
-
},
|
|
278
|
-
roadDirection: {
|
|
279
|
-
type: String
|
|
280
277
|
}
|
|
281
278
|
},
|
|
282
279
|
data () {
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
</svg>
|
|
307
307
|
</template>
|
|
308
308
|
<script>
|
|
309
|
-
|
|
309
|
+
import { mapState } from 'vuex'
|
|
310
310
|
export default {
|
|
311
311
|
name: 'xdr-dir-selector',
|
|
312
312
|
props: {
|
|
@@ -344,17 +344,13 @@ export default {
|
|
|
344
344
|
MaskColor: {
|
|
345
345
|
type: String,
|
|
346
346
|
default: '#0096ba'
|
|
347
|
-
},
|
|
348
|
-
roadDirection: {
|
|
349
|
-
type: String,
|
|
350
|
-
default: 'right'
|
|
351
347
|
}
|
|
352
348
|
},
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
349
|
+
computed: {
|
|
350
|
+
...mapState({
|
|
351
|
+
roadDirection: state => state.globalParam.roadDirection
|
|
352
|
+
})
|
|
353
|
+
},
|
|
358
354
|
data () {
|
|
359
355
|
return {
|
|
360
356
|
maskmark: false,
|
package/src/store/getters.js
CHANGED
|
@@ -10,20 +10,7 @@
|
|
|
10
10
|
* See the Mulan PSL v2 for more details.
|
|
11
11
|
**/
|
|
12
12
|
const getters = {
|
|
13
|
-
sidebar: state => state.app.sidebar,
|
|
14
|
-
device: state => state.app.device,
|
|
15
|
-
token: state => state.user.token,
|
|
16
|
-
avatar: state => state.user.avatar,
|
|
17
|
-
name: state => state.user.name,
|
|
18
|
-
roles: state => state.user.roles,
|
|
19
|
-
Agent: state => state.Agent.agentid,
|
|
20
|
-
controlmode: state => state.Agent.controlmode,
|
|
21
13
|
globalParam: state => state.globalParam,
|
|
22
|
-
|
|
23
|
-
curPath: state => state.globalParam.curPath,
|
|
24
|
-
globalParamModel: state => state.globalParamModel.GlobalParamModeObject,
|
|
25
|
-
devParams: state => state.globalParamModel.devParams,
|
|
26
|
-
permissionRoutes: state => state.permissionRoutes.routers
|
|
27
|
-
// roadDirection: state => state.globalParam.roadDirection
|
|
14
|
+
roadDirection: state => state.globalParam.roadDirection
|
|
28
15
|
}
|
|
29
16
|
export default getters
|
package/src/store/index.js
CHANGED
|
@@ -11,24 +11,14 @@
|
|
|
11
11
|
**/
|
|
12
12
|
import Vue from 'vue'
|
|
13
13
|
import Vuex from 'vuex'
|
|
14
|
-
import app from './modules/app'
|
|
15
|
-
import user from './modules/user'
|
|
16
14
|
import getters from './getters'
|
|
17
|
-
import agent from './modules/saveAgent'
|
|
18
15
|
import globalParam from './modules/globalParam'
|
|
19
|
-
import globalParamModel from './modules/globalParamModel'
|
|
20
|
-
import permissionRoutes from './modules/permissionRoutes'
|
|
21
16
|
|
|
22
17
|
Vue.use(Vuex)
|
|
23
18
|
|
|
24
19
|
const store = new Vuex.Store({
|
|
25
20
|
modules: {
|
|
26
|
-
|
|
27
|
-
user,
|
|
28
|
-
agent,
|
|
29
|
-
globalParam,
|
|
30
|
-
globalParamModel,
|
|
31
|
-
permissionRoutes
|
|
21
|
+
globalParam
|
|
32
22
|
},
|
|
33
23
|
getters
|
|
34
24
|
})
|
|
@@ -9,187 +9,18 @@
|
|
|
9
9
|
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
10
10
|
* See the Mulan PSL v2 for more details.
|
|
11
11
|
**/
|
|
12
|
-
const tscParam = {
|
|
13
|
-
phaseList: [],
|
|
14
|
-
patternList: [],
|
|
15
|
-
planList: [],
|
|
16
|
-
dateList: [],
|
|
17
|
-
overlaplList: [],
|
|
18
|
-
channelList: [],
|
|
19
|
-
detectorList: [],
|
|
20
|
-
pedestrainDetectorList: [],
|
|
21
|
-
channellock: [],
|
|
22
|
-
// customInfo: {
|
|
23
|
-
// areaid: Number,
|
|
24
|
-
// intersectionid: Number,
|
|
25
|
-
// siteid: '',
|
|
26
|
-
// selflearning: 0,
|
|
27
|
-
// fixintersectioninfo: '',
|
|
28
|
-
// commuport: 0,
|
|
29
|
-
// commutype: '',
|
|
30
|
-
// steptype: ''
|
|
31
|
-
// },
|
|
32
|
-
manualpanel: {
|
|
33
|
-
mingreen: 15
|
|
34
|
-
},
|
|
35
|
-
singleoptim: [
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
let defaultCopiedTscParam = null
|
|
39
|
-
try {
|
|
40
|
-
if (sessionStorage.tscParam) {
|
|
41
|
-
defaultCopiedTscParam = JSON.parse(sessionStorage.tscParam)
|
|
42
|
-
}
|
|
43
|
-
} catch (e) {
|
|
44
|
-
console.log(e)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// function getPerRouterMap (routerArr, noper, parent) {
|
|
48
|
-
// for (let per of routerArr) {
|
|
49
|
-
// if (per.name && per.name === noper) {
|
|
50
|
-
// parent.hidden = true
|
|
51
|
-
// break
|
|
52
|
-
// } else if (per.children && per.children.length) {
|
|
53
|
-
// getPerRouterMap(per.children, noper, per)
|
|
54
|
-
// }
|
|
55
|
-
// }
|
|
56
|
-
// }
|
|
57
|
-
|
|
58
12
|
const Global = {
|
|
59
13
|
state: {
|
|
60
|
-
|
|
61
|
-
curPath: '/overview/index',
|
|
62
|
-
copiedTscParam: defaultCopiedTscParam,
|
|
63
|
-
routers: [],
|
|
64
|
-
curBodyWidth: 1920,
|
|
65
|
-
curBodyHeight: 1080,
|
|
66
|
-
FuncSort: 'allFunc',
|
|
67
|
-
hideMenu: false,
|
|
68
|
-
graphicMode: false, // 为true时,切换到图形界面模式,只显示路口图部分
|
|
69
|
-
// roadDirection: 'right', // 当前路口行车方向:默认右行
|
|
70
|
-
channelDescMap: new Map(), // 管理实时通道描述数据
|
|
71
|
-
isShowGui: true, // 总览当前是否是图形界面
|
|
72
|
-
isRefreshTankuang: 'norefresh' // 刷新某个页面的相位弹框组件
|
|
14
|
+
roadDirection: 'right' // 当前路口行车方向:默认右行
|
|
73
15
|
},
|
|
74
16
|
mutations: {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// data.customInfo = {
|
|
78
|
-
// ...tscParam.customInfo,
|
|
79
|
-
// ...customInfo
|
|
80
|
-
// }
|
|
81
|
-
state.tscParam = JSON.parse(JSON.stringify(data))
|
|
82
|
-
},
|
|
83
|
-
SAVE_SINGLE_PARAM: (state, param) => {
|
|
84
|
-
state.tscParam[param.type] = param.data
|
|
85
|
-
},
|
|
86
|
-
RESET_PARAM: (state) => {
|
|
87
|
-
state.tscParam = JSON.parse(JSON.stringify(tscParam))
|
|
88
|
-
},
|
|
89
|
-
SAVE_CUR_PATH: (state, path) => {
|
|
90
|
-
state.curPath = path
|
|
91
|
-
},
|
|
92
|
-
SET_COPY: (state, param) => {
|
|
93
|
-
state.copiedTscParam = param
|
|
94
|
-
sessionStorage.tscParam = JSON.stringify(param)
|
|
95
|
-
},
|
|
96
|
-
CLEAR_COPY: (state) => {
|
|
97
|
-
state.copiedTscParam = null
|
|
98
|
-
sessionStorage.removeItem('tscParam')
|
|
99
|
-
},
|
|
100
|
-
// ,
|
|
101
|
-
// SET_ROUTERS: (state, routers) => {
|
|
102
|
-
// state.routers = JSON.parse(JSON.stringify(routers))
|
|
103
|
-
// }
|
|
104
|
-
SAVE_BODY_DOM_SIZE: (state, size) => {
|
|
105
|
-
state.curBodyWidth = size.width
|
|
106
|
-
state.curBodyHeight = size.height
|
|
107
|
-
},
|
|
108
|
-
SAVE_FUNNCTION_LEVEL: (state, FUNC) => {
|
|
109
|
-
state.FuncSort = FUNC
|
|
110
|
-
},
|
|
111
|
-
SET_MENU_VISIBLE: (state, isHideMenu) => {
|
|
112
|
-
state.hideMenu = isHideMenu
|
|
113
|
-
},
|
|
114
|
-
SET_GRAPHIC_MODE: (state, isSwitchGraphicMode) => {
|
|
115
|
-
state.graphicMode = isSwitchGraphicMode
|
|
116
|
-
},
|
|
117
|
-
// SET_ROAD_RIRECTION: (state, DIR) => {
|
|
118
|
-
// state.roadDirection = DIR
|
|
119
|
-
// },
|
|
120
|
-
SET_CHANNEL_DESC: (state, descmap) => {
|
|
121
|
-
state.channelDescMap = descmap
|
|
122
|
-
},
|
|
123
|
-
CLEAR_MANUAL_PANEL: (state) => {
|
|
124
|
-
state.tscParam.manualpanel = tscParam.manualpanel
|
|
125
|
-
},
|
|
126
|
-
SET_SHOW_GUI: (state, isShowGui) => {
|
|
127
|
-
state.isShowGui = isShowGui
|
|
128
|
-
},
|
|
129
|
-
SET_ISREFRESHTANKUANG: (state, isRefreshTankuang) => {
|
|
130
|
-
state.isRefreshTankuang = isRefreshTankuang
|
|
17
|
+
SET_ROAD_RIRECTION: (state, DIR) => {
|
|
18
|
+
state.roadDirection = DIR
|
|
131
19
|
}
|
|
132
20
|
},
|
|
133
21
|
actions: {
|
|
134
|
-
|
|
135
|
-
commit('
|
|
136
|
-
},
|
|
137
|
-
SaveSingleParam ({ commit }, param) {
|
|
138
|
-
commit('SAVE_SINGLE_PARAM', param)
|
|
139
|
-
},
|
|
140
|
-
ResetTscParam ({ commit }) {
|
|
141
|
-
commit('RESET_PARAM')
|
|
142
|
-
},
|
|
143
|
-
SaveCurPath ({ commit }, path) {
|
|
144
|
-
commit('SAVE_CUR_PATH', path)
|
|
145
|
-
},
|
|
146
|
-
SetCopy ({ commit }, data) {
|
|
147
|
-
commit('SET_COPY', data)
|
|
148
|
-
},
|
|
149
|
-
ClearCopy ({ commit }) {
|
|
150
|
-
commit('CLEAR_COPY')
|
|
151
|
-
},
|
|
152
|
-
// GenerateRoutes ({
|
|
153
|
-
// commit
|
|
154
|
-
// }, {curRoutes, noPermission}) {
|
|
155
|
-
// // 生成路由(仅支持sidebar一级菜单的隐藏)
|
|
156
|
-
// // noPermission: Array 需要隐藏的路由name属性组成的数组
|
|
157
|
-
// if (noPermission && noPermission.length) {
|
|
158
|
-
// let perRouter = JSON.parse(JSON.stringify(curRoutes))
|
|
159
|
-
// noPermission.forEach(noper => {
|
|
160
|
-
// getPerRouterMap(perRouter, noper)
|
|
161
|
-
// })
|
|
162
|
-
// commit('SET_ROUTERS', perRouter)
|
|
163
|
-
// } else {
|
|
164
|
-
// commit('SET_ROUTERS', curRoutes)
|
|
165
|
-
// }
|
|
166
|
-
// }
|
|
167
|
-
SaveBodyDomSize ({ commit }, size) {
|
|
168
|
-
commit('SAVE_BODY_DOM_SIZE', size)
|
|
169
|
-
},
|
|
170
|
-
SaveFunctionLevel ({ commit }, FUNC) {
|
|
171
|
-
commit('SAVE_FUNNCTION_LEVEL', FUNC)
|
|
172
|
-
},
|
|
173
|
-
SetMenuVisible ({ commit }, isHideMenu) {
|
|
174
|
-
commit('SET_MENU_VISIBLE', isHideMenu)
|
|
175
|
-
},
|
|
176
|
-
SetGraphicMode ({ commit }, isSwitchGraphicMode) {
|
|
177
|
-
commit('SET_GRAPHIC_MODE', isSwitchGraphicMode)
|
|
178
|
-
},
|
|
179
|
-
// SetRoadDirection ({ commit }, DIR) {
|
|
180
|
-
// commit('SET_ROAD_RIRECTION', DIR)
|
|
181
|
-
// },
|
|
182
|
-
SetChannelDesc ({ commit }, descmap) {
|
|
183
|
-
commit('SET_CHANNEL_DESC', descmap)
|
|
184
|
-
},
|
|
185
|
-
ClearManualPanel ({ commit }) {
|
|
186
|
-
commit('CLEAR_MANUAL_PANEL')
|
|
187
|
-
},
|
|
188
|
-
SetShowGui ({ commit }, isShowGui) {
|
|
189
|
-
commit('SET_SHOW_GUI', isShowGui)
|
|
190
|
-
},
|
|
191
|
-
SetRefreshTankuang ({ commit }, isRefreshTankuang) {
|
|
192
|
-
commit('SET_ISREFRESHTANKUANG', isRefreshTankuang)
|
|
22
|
+
SetRoadDirection ({ commit }, DIR) {
|
|
23
|
+
commit('SET_ROAD_RIRECTION', DIR)
|
|
193
24
|
}
|
|
194
25
|
}
|
|
195
26
|
}
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
<intersection-with-interface
|
|
13
13
|
ref="intersectionWithInterface"
|
|
14
14
|
:AgentId="agentId"
|
|
15
|
-
|
|
16
|
-
Token="eyJraWQiOiIxNjQ4ODAyNTk2Nzc4IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTIwMjU5NiwiaWF0IjoxNjQ4ODAyNTk2fQ.TMA7MaKDDwGxOrzyRIFbfrsH-_UyPGFz2Uqnnwsc8nk"
|
|
15
|
+
Token="eyJraWQiOiIxNjQ4ODYzOTI2NjA4IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTI2MzkyNiwiaWF0IjoxNjQ4ODYzOTI2fQ.IQZ7m9_lNOVQ4H2icGKKWc84KKSWYUF9OUEJvYgjIgw"
|
|
17
16
|
></intersection-with-interface>
|
|
18
17
|
</el-dialog>
|
|
19
18
|
</div>
|
|
@@ -20,12 +20,16 @@
|
|
|
20
20
|
:close-on-click-modal="false"
|
|
21
21
|
@close="oncancle"
|
|
22
22
|
append-to-body>
|
|
23
|
+
<!-- <scheme-config
|
|
24
|
+
ref="rightpanel"
|
|
25
|
+
agentId="10001-928"
|
|
26
|
+
:statusData="crossStatusData"
|
|
27
|
+
:realtimeStatusModalvisible="false" /> -->
|
|
23
28
|
<scheme-config
|
|
24
29
|
ref="rightpanel"
|
|
25
30
|
agentId="10001-928"
|
|
26
|
-
roadDirection="right"
|
|
27
31
|
:statusData="crossStatusData"
|
|
28
|
-
|
|
32
|
+
funcSort="basicFunc" />
|
|
29
33
|
</el-dialog>
|
|
30
34
|
</div>
|
|
31
35
|
</template>
|