openatc-components 0.3.98 → 0.3.99
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.json
CHANGED
|
@@ -11,24 +11,9 @@
|
|
|
11
11
|
**/
|
|
12
12
|
<template>
|
|
13
13
|
<div class="container-main">
|
|
14
|
-
<div
|
|
15
|
-
<intersection-base-map
|
|
16
|
-
v-if="curHomePage === 'Graphical'"
|
|
17
|
-
ref="intersectionMap"
|
|
18
|
-
:stateName="stateName"
|
|
19
|
-
:crossStatusData="crossStatusData"
|
|
20
|
-
:agentId="agentId"
|
|
21
|
-
:roadDirection="roadDirection" />
|
|
22
|
-
<channelization
|
|
23
|
-
v-if="curHomePage === 'Channelization'"
|
|
24
|
-
ref="channelization"
|
|
25
|
-
:AgentId="agentId"
|
|
26
|
-
:crossStatusData="crossStatusData"
|
|
27
|
-
:detectorStatusData="detectorStatusData" />
|
|
28
|
-
</div>
|
|
29
|
-
<div v-if="!onlyShowIntersectionMap" :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%'}">
|
|
30
15
|
<div class="tuxingjiemian" v-show="curHomePage === 'Graphical' || curHomePage === 'Channelization'" :class="{'minifont': curBodyWidth <= 650}">
|
|
31
|
-
<div
|
|
16
|
+
<div :class="{'changeWidth': graphicMode, 'tuxing-left': !onlyShowIntersectionMap}" ref="tuxingLeft">
|
|
32
17
|
<intersection-base-map
|
|
33
18
|
v-if="curHomePage === 'Graphical'"
|
|
34
19
|
ref="intersectionMap"
|
|
@@ -42,7 +27,7 @@
|
|
|
42
27
|
:AgentId="agentId"
|
|
43
28
|
:crossStatusData="crossStatusData"
|
|
44
29
|
:detectorStatusData="detectorStatusData" />
|
|
45
|
-
<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">
|
|
46
31
|
<div class="pattern-name cross-mess">{{$t('openatccomponents.overviewcomponent.patternstate')}}</div>
|
|
47
32
|
<div class="pattern-message">({{$t('openatccomponents.overviewcomponent.cycle')}}: {{controlData.cycle}} {{$t('openatccomponents.overviewcomponent.patternoffset')}}: {{controlData.patternoffset}} {{$t('openatccomponents.overviewcomponent.coordinationtime')}}: {{controlData.offset}})</div>
|
|
48
33
|
<span class="pattern-explain"><el-checkbox v-model="checked">{{$t('openatccomponents.overviewcomponent.overLap')}}</el-checkbox></span>
|
|
@@ -106,7 +91,7 @@
|
|
|
106
91
|
</div>
|
|
107
92
|
</div>
|
|
108
93
|
|
|
109
|
-
<div ref="tuxingRight" class="tuxing-right">
|
|
94
|
+
<div ref="tuxingRight" class="tuxing-right" v-if="!onlyShowIntersectionMap">
|
|
110
95
|
<scheme-config
|
|
111
96
|
ref="rightpanel"
|
|
112
97
|
:statusData="crossStatusData"
|
|
@@ -167,7 +167,7 @@ export default {
|
|
|
167
167
|
// agentId: '12007_390',
|
|
168
168
|
// agentId: '12014',
|
|
169
169
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
170
|
-
Token: '
|
|
170
|
+
Token: 'eyJraWQiOiIxNzMzODkzOTEyNDQwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczMzg5NzUxMiwiaWF0IjoxNzMzODkwMzEyfQ.OItRhpJG9WM4KRZ04Nhzedyj1WhTKw2r-oKCQN8dA04',
|
|
171
171
|
// agentId: '30003-352',
|
|
172
172
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
173
173
|
// Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
|
package/src/views/overView.vue
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
:isShowMode="isShowMode"
|
|
10
10
|
:Token="Token"></overview> -->
|
|
11
11
|
<el-button @click="handleChangeOverview">切换overview组件</el-button>
|
|
12
|
-
<
|
|
12
|
+
<el-button @click="reverseOverviewBtMap">切换路口图和overview</el-button>
|
|
13
|
+
<overview-component :AgentId="agentId" :onlyShowIntersectionMap="isOnlyMap" />
|
|
13
14
|
</div>
|
|
14
15
|
</template>
|
|
15
16
|
|
|
@@ -25,8 +26,9 @@ export default {
|
|
|
25
26
|
agentid1: 'gjnlahql',
|
|
26
27
|
agentid2: '13013',
|
|
27
28
|
sum: 0,
|
|
28
|
-
Token: '
|
|
29
|
-
reqUrl: 'http://192.168.13.103:10003/openatc'
|
|
29
|
+
Token: 'eyJraWQiOiIxNzMzODg3MDYyMjgwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczMzg5MDY2MiwiaWF0IjoxNzMzODgzNDYyfQ.qUJZ4lKv0WU3s3lWfYwl5ZM77n2rriYeFQ8qOwRFuzk',
|
|
30
|
+
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
31
|
+
isOnlyMap: true
|
|
30
32
|
}
|
|
31
33
|
},
|
|
32
34
|
methods: {
|
|
@@ -37,6 +39,9 @@ export default {
|
|
|
37
39
|
this.agentId = this.agentid2
|
|
38
40
|
}
|
|
39
41
|
this.sum++
|
|
42
|
+
},
|
|
43
|
+
reverseOverviewBtMap () {
|
|
44
|
+
this.isOnlyMap = !this.isOnlyMap
|
|
40
45
|
}
|
|
41
46
|
},
|
|
42
47
|
watch: {
|