openatc-components 0.0.13 → 0.0.16
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 +85 -0
- package/package/kisscomps/components/BoardCard/index.js +2 -0
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +1 -1
- package/package/kisscomps/components/OverLap/OverLap.vue +193 -0
- package/package/kisscomps/components/OverLap/index.js +2 -0
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +832 -0
- package/package/kisscomps/components/PatternStatus/index.js +2 -0
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +94 -78
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +22 -42
- package/package/kisscomps/components/StageStatus/StageStatus.vue +303 -0
- package/package/kisscomps/components/StageStatus/index.js +2 -0
- package/package/kisscomps/components/patternList/index.js +2 -0
- package/package/kisscomps/components/patternList/patternList.vue +558 -0
- package/package/kisscomps/index.js +12 -0
- package/package/kissui.min.js +1 -1
- package/package.json +3 -3
- package/src/api/control.js +2 -2
- package/src/api/param.js +2 -2
- package/src/kisscomps/components/BoardCard/BoardCard.vue +85 -0
- package/src/kisscomps/components/BoardCard/index.js +2 -0
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +1 -1
- package/src/kisscomps/components/OverLap/OverLap.vue +193 -0
- package/src/kisscomps/components/OverLap/index.js +2 -0
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +832 -0
- package/src/kisscomps/components/PatternStatus/index.js +2 -0
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +94 -78
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +22 -42
- package/src/kisscomps/components/StageStatus/StageStatus.vue +303 -0
- package/src/kisscomps/components/StageStatus/index.js +2 -0
- package/src/kisscomps/components/patternList/index.js +2 -0
- package/src/kisscomps/components/patternList/patternList.vue +558 -0
- package/src/kisscomps/index.js +12 -0
- package/src/utils/RingDataModel.js +98 -0
- package/src/views/intersection.vue +3 -2
- package/src/views/schemeconfig.vue +17 -2
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
:realtimeStatusModalvisible="false" /> -->
|
|
28
28
|
<scheme-config
|
|
29
29
|
ref="rightpanel"
|
|
30
|
-
agentId="
|
|
30
|
+
:agentId="agentId"
|
|
31
|
+
:lockPhaseBtnName="lockPhaseBtnName"
|
|
31
32
|
:statusData="crossStatusData"
|
|
32
33
|
roadDirection="left"
|
|
33
34
|
funcSort="basicFunc" />
|
|
@@ -38,12 +39,16 @@
|
|
|
38
39
|
import { getTscControl } from '../api/control.js'
|
|
39
40
|
import { getMessageByCode } from '../utils/responseMessage.js'
|
|
40
41
|
import {
|
|
41
|
-
getIframdevid
|
|
42
|
+
getIframdevid, setToken
|
|
42
43
|
} from '../utils/auth'
|
|
43
44
|
export default {
|
|
44
45
|
name: 'democonfig',
|
|
45
46
|
data () {
|
|
46
47
|
return {
|
|
48
|
+
lockPhaseBtnName: this.$t('openatccomponents.overview.comfirm'),
|
|
49
|
+
agentId: '10002-994',
|
|
50
|
+
Token: 'eyJraWQiOiIxNjQ5MzM4NzA5MTA0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTczODcwOSwiaWF0IjoxNjQ5MzM4NzA5fQ.JDSkpT1SbB61dEKvorhVdZJHKJzoQZEY5DPKHs1Imo0',
|
|
51
|
+
Token103: 'eyJraWQiOiIxNjQ5MzM4NzA5MTA0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTczODcwOSwiaWF0IjoxNjQ5MzM4NzA5fQ.JDSkpT1SbB61dEKvorhVdZJHKJzoQZEY5DPKHs1Imo0',
|
|
47
52
|
boxVisible: false,
|
|
48
53
|
dialogWidth: '80%',
|
|
49
54
|
crossStatusData: {} // 路口状态数据
|
|
@@ -55,6 +60,9 @@ export default {
|
|
|
55
60
|
},
|
|
56
61
|
handleOpenConfigPanel () {
|
|
57
62
|
this.boxVisible = true
|
|
63
|
+
this.$nextTick(() => {
|
|
64
|
+
// this.$refs.rightpanel.selectSpecialModel(22)
|
|
65
|
+
})
|
|
58
66
|
},
|
|
59
67
|
setDialogWidth () {
|
|
60
68
|
var val = document.body.offsetWidth
|
|
@@ -90,12 +98,19 @@ export default {
|
|
|
90
98
|
}).catch(error => {
|
|
91
99
|
console.log(error)
|
|
92
100
|
})
|
|
101
|
+
},
|
|
102
|
+
setPropsToken (token) {
|
|
103
|
+
// 获取组件外传入的token,便于独立组件调用接口
|
|
104
|
+
if (token && token !== '') {
|
|
105
|
+
setToken(token)
|
|
106
|
+
}
|
|
93
107
|
}
|
|
94
108
|
},
|
|
95
109
|
created () {
|
|
96
110
|
this.setDialogWidth()
|
|
97
111
|
},
|
|
98
112
|
mounted () {
|
|
113
|
+
this.setPropsToken(this.Token)
|
|
99
114
|
this.initData()
|
|
100
115
|
window.onresize = () => {
|
|
101
116
|
return (() => {
|