openatc-components 0.0.66 → 0.0.70
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/BoardCard/BoardCard.vue +1 -1
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +14 -0
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +5 -0
- package/package/kisscomps/components/OverLap/OverLap.vue +1 -1
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +11 -8
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +2 -1
- package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +15 -9
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +967 -966
- package/package/kisscomps/components/StageBord/StageBord.vue +10 -11
- package/package/kisscomps/components/StageStatus/StageStatus.vue +2 -2
- package/package/kisscomps/components/overView/index.vue +26 -5
- package/package/kisscomps/components/patternList/patternList.vue +1 -1
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/BoardCard/BoardCard.vue +1 -1
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +14 -0
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +5 -0
- package/src/kisscomps/components/OverLap/OverLap.vue +1 -1
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +11 -8
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +2 -1
- package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +15 -9
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +967 -966
- package/src/kisscomps/components/StageBord/StageBord.vue +10 -11
- package/src/kisscomps/components/StageStatus/StageStatus.vue +2 -2
- package/src/kisscomps/components/overView/index.vue +26 -5
- package/src/kisscomps/components/patternList/patternList.vue +1 -1
- package/src/utils/auth.js +1 -1
- package/src/views/overView.vue +8 -0
- package/static/styles/intersection.scss +9 -0
- package/static/styles/schemeconfig.scss +9 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="common-board-column">
|
|
4
4
|
<div class="common-board-column-header" style="position:relative">
|
|
5
5
|
<span>{{$t('openatccomponents.pattern.stage')+(subIndex+1)}}</span>
|
|
6
|
-
<span v-if="contrloType" style="position: absolute;right: 0;">
|
|
6
|
+
<span v-if="this.contrloType === 'stage'" style="position: absolute;right: 0;">
|
|
7
7
|
<el-button type="primary" @click="deleteStage(subIndex)" icon="el-icon-close"></el-button>
|
|
8
8
|
</span>
|
|
9
9
|
</div>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</el-col>
|
|
18
18
|
<el-col :span="12">
|
|
19
19
|
<el-input-number
|
|
20
|
-
v-if="contrloType"
|
|
20
|
+
v-if="this.contrloType === 'stage'"
|
|
21
21
|
:controls="false"
|
|
22
22
|
size="small"
|
|
23
23
|
:disabled="true"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
v-model.number="stage.stageSplit">
|
|
26
26
|
</el-input-number>
|
|
27
27
|
<el-input-number
|
|
28
|
-
v-if="!contrloType"
|
|
28
|
+
v-if="this.contrloType === 'ring' || !this.contrloType"
|
|
29
29
|
:controls="false"
|
|
30
30
|
size="small"
|
|
31
31
|
v-model.number="stage.split"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
{{this.$t('openatccomponents.pattern.phase')}}
|
|
41
41
|
</el-col>
|
|
42
42
|
<el-col :span="12">
|
|
43
|
-
<el-select v-if="contrloType" v-model="stage.
|
|
43
|
+
<el-select v-if="this.contrloType === 'stage'" v-model="stage.stages" multiple :placeholder="$t('openatccomponents.common.select')">
|
|
44
44
|
<el-option
|
|
45
45
|
v-for="item in coordphaseOption"
|
|
46
46
|
:key="item.value"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</el-option>
|
|
50
50
|
</el-select>
|
|
51
51
|
<el-input
|
|
52
|
-
v-if="!contrloType"
|
|
52
|
+
v-if="this.contrloType === 'ring' || !this.contrloType"
|
|
53
53
|
size="small"
|
|
54
54
|
:value="stage.stages.join(',')"
|
|
55
55
|
ref="type"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
</el-input>
|
|
58
58
|
</el-col>
|
|
59
59
|
</el-row>
|
|
60
|
-
<el-row :gutter="0" v-if="contrloType">
|
|
60
|
+
<el-row :gutter="0" v-if="this.contrloType === 'stage'">
|
|
61
61
|
<el-col :span="12">
|
|
62
62
|
{{this.$t('openatccomponents.pattern.green')}}
|
|
63
63
|
</el-col>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</el-input-number>
|
|
71
71
|
</el-col>
|
|
72
72
|
</el-row>
|
|
73
|
-
<el-row :gutter="0" v-if="contrloType">
|
|
73
|
+
<el-row :gutter="0" v-if="this.contrloType === 'stage'">
|
|
74
74
|
<el-col :span="12">
|
|
75
75
|
{{this.$t('openatccomponents.pattern.yellow')}}
|
|
76
76
|
</el-col>
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
</el-input-number>
|
|
84
84
|
</el-col>
|
|
85
85
|
</el-row>
|
|
86
|
-
<el-row :gutter="0" v-if="contrloType">
|
|
86
|
+
<el-row :gutter="0" v-if="this.contrloType === 'stage'">
|
|
87
87
|
<el-col :span="12">
|
|
88
88
|
{{this.$t('openatccomponents.pattern.red')}}
|
|
89
89
|
</el-col>
|
|
@@ -128,8 +128,7 @@ export default {
|
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
contrloType: {
|
|
131
|
-
type:
|
|
132
|
-
default: false
|
|
131
|
+
type: String
|
|
133
132
|
},
|
|
134
133
|
options: {
|
|
135
134
|
type: Object,
|
|
@@ -184,7 +183,7 @@ export default {
|
|
|
184
183
|
getMaxCycle (pattern) {
|
|
185
184
|
let rings = pattern.stagesList
|
|
186
185
|
let stageCycleList = rings.map(item => {
|
|
187
|
-
return item.stageSplit
|
|
186
|
+
return item.stageSplit ? item.stageSplit : item.split
|
|
188
187
|
})
|
|
189
188
|
let maxCycle = stageCycleList.reduce((a, b) => {
|
|
190
189
|
return a + b
|
|
@@ -41,7 +41,7 @@ export default {
|
|
|
41
41
|
type: Array
|
|
42
42
|
},
|
|
43
43
|
contrloType: {
|
|
44
|
-
type:
|
|
44
|
+
type: String
|
|
45
45
|
},
|
|
46
46
|
localPatternList: {
|
|
47
47
|
type: Array
|
|
@@ -54,7 +54,7 @@ export default {
|
|
|
54
54
|
controlData: {
|
|
55
55
|
handler: function (val, oldVal) {
|
|
56
56
|
// this.handleStages() // 计算屏障高度
|
|
57
|
-
if (this.contrloType) {
|
|
57
|
+
if (this.contrloType === 'stage') {
|
|
58
58
|
this.getStageLine()
|
|
59
59
|
} else {
|
|
60
60
|
this.getPhaseId(this.controlData)
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
<div class="tuxing-left" :class="{'changeWidth': graphicMode}" ref="tuxingLeft">
|
|
27
27
|
<intersection-base-map
|
|
28
28
|
ref="intersectionMap"
|
|
29
|
+
:modeName="modeName"
|
|
30
|
+
:controlName="controlName"
|
|
31
|
+
:isShowState="isShowState"
|
|
32
|
+
:isShowMode="isShowMode"
|
|
29
33
|
:crossStatusData="crossStatusData"
|
|
30
34
|
:devStatus="devStatus"
|
|
31
35
|
:agentId="agentId"
|
|
@@ -51,7 +55,7 @@
|
|
|
51
55
|
>
|
|
52
56
|
</pattern-list>
|
|
53
57
|
<over-lap
|
|
54
|
-
v-if="
|
|
58
|
+
v-if="this.contrloType === 'ring'"
|
|
55
59
|
:checked="checked"
|
|
56
60
|
:overlap="overlap"
|
|
57
61
|
:stageList="stagesListOver"
|
|
@@ -112,6 +116,22 @@ export default {
|
|
|
112
116
|
type: String,
|
|
113
117
|
default: ''
|
|
114
118
|
},
|
|
119
|
+
isShowState: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
devault: false
|
|
122
|
+
},
|
|
123
|
+
isShowMode: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false
|
|
126
|
+
},
|
|
127
|
+
modeName: {
|
|
128
|
+
type: String,
|
|
129
|
+
default: ''
|
|
130
|
+
},
|
|
131
|
+
controlName: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: ''
|
|
134
|
+
},
|
|
115
135
|
roadDirection: {
|
|
116
136
|
type: String,
|
|
117
137
|
default: 'right'
|
|
@@ -125,7 +145,7 @@ export default {
|
|
|
125
145
|
controlData: {},
|
|
126
146
|
checked: false,
|
|
127
147
|
overlap: [],
|
|
128
|
-
contrloType:
|
|
148
|
+
contrloType: '',
|
|
129
149
|
narr: [],
|
|
130
150
|
patternList: [],
|
|
131
151
|
allPatternList: [],
|
|
@@ -213,10 +233,10 @@ export default {
|
|
|
213
233
|
this.setHost(this.reqUrl)
|
|
214
234
|
this.PhaseDataModel = new PhaseDataModel()
|
|
215
235
|
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
216
|
-
if (getStageTypes('
|
|
217
|
-
this.contrloType =
|
|
236
|
+
if (getStageTypes('isRing') === 'true') {
|
|
237
|
+
this.contrloType = 'stage'
|
|
218
238
|
} else {
|
|
219
|
-
this.contrloType =
|
|
239
|
+
this.contrloType = 'ring'
|
|
220
240
|
}
|
|
221
241
|
this.globalParamModel = this.$store.getters.globalParamModel
|
|
222
242
|
if (this.$route.query !== undefined && Object.keys(this.$route.query).length) {
|
|
@@ -264,6 +284,7 @@ export default {
|
|
|
264
284
|
// this.globalParamModel.setGlobalParams(res.data.data.param)
|
|
265
285
|
this.allPatternList = res.data.data.param.patternList
|
|
266
286
|
this.overlap = res.data.data.param.overlaplList
|
|
287
|
+
this.contrloType = this.allPatternList[0].contrloType
|
|
267
288
|
this.phaseList = res.data.data.param.phaseList
|
|
268
289
|
this.patternList = res.data.data.param.patternList.filter(item => {
|
|
269
290
|
return item.id === id
|
package/src/utils/auth.js
CHANGED
package/src/views/overView.vue
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
<overview
|
|
4
4
|
:AgentId="agentId"
|
|
5
5
|
:reqUrl="reqUrl"
|
|
6
|
+
:modeName="modeName"
|
|
7
|
+
:controlName="controlName"
|
|
8
|
+
:isShowState="isShowState"
|
|
9
|
+
:isShowMode="isShowMode"
|
|
6
10
|
:Token="Token"></overview>
|
|
7
11
|
</div>
|
|
8
12
|
</template>
|
|
@@ -11,6 +15,10 @@
|
|
|
11
15
|
export default {
|
|
12
16
|
data () {
|
|
13
17
|
return {
|
|
18
|
+
isShowState: true,
|
|
19
|
+
isShowMode: true,
|
|
20
|
+
modeName: '交警遥控',
|
|
21
|
+
controlName: '步进',
|
|
14
22
|
agentId: '10002-994',
|
|
15
23
|
Token: 'eyJraWQiOiIxNjUwNzMxMTY2NTQ2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNzEzMTE2NiwiaWF0IjoxNjUwNzMxMTY2fQ.qjp7-LyJdSLr29Jm0T8KAQIoPA8ldkpTg83vVvorg_s',
|
|
16
24
|
reqUrl: 'http://192.168.13.105:11003/openatc'
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
.col-inner{
|
|
219
|
-
width: 100% !important;
|
|
219
|
+
// width: 100% !important;
|
|
220
220
|
}
|
|
221
221
|
.model-label {
|
|
222
222
|
margin-top: 14px;
|
|
@@ -243,13 +243,16 @@
|
|
|
243
243
|
padding: 19px 30px;
|
|
244
244
|
}
|
|
245
245
|
.el-select {
|
|
246
|
-
width: 75px;
|
|
246
|
+
// width: 75px;
|
|
247
247
|
}
|
|
248
248
|
.el-input {
|
|
249
|
-
width: 50%;
|
|
249
|
+
// width: 50%;
|
|
250
|
+
}
|
|
251
|
+
.el-input-number--mini {
|
|
252
|
+
width: 44%;
|
|
250
253
|
}
|
|
251
254
|
.el-input-number {
|
|
252
|
-
width: 100%;
|
|
255
|
+
// width: 100%;
|
|
253
256
|
.el-input__inner {
|
|
254
257
|
text-align: left;
|
|
255
258
|
}
|
|
@@ -297,7 +300,7 @@
|
|
|
297
300
|
margin-top: 30px;
|
|
298
301
|
}
|
|
299
302
|
.el-input--mini{
|
|
300
|
-
width:
|
|
303
|
+
width: 90%;
|
|
301
304
|
}
|
|
302
305
|
.footer {
|
|
303
306
|
float: right;
|
|
@@ -318,7 +321,7 @@
|
|
|
318
321
|
padding: 19px 30px;
|
|
319
322
|
}
|
|
320
323
|
.el-select {
|
|
321
|
-
width:
|
|
324
|
+
width: 90%;
|
|
322
325
|
}
|
|
323
326
|
.el-input-number {
|
|
324
327
|
width: 100%;
|