openatc-components 0.3.106 → 0.3.107
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/config/index.js +0 -1
- package/package/kisscomps/components/BoardCard/BoardCard.vue +11 -0
- package/package/kisscomps/components/Channelization/Channelization.vue +1 -1
- package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +1 -1
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +46 -145
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +1 -1
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +3 -7
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +0 -5
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +12 -17
- package/package/kisscomps/components/OverviewComponent/index.vue +34 -31
- package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +11 -2
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +92 -33
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +13 -30
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +9 -11
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +3 -6
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +11 -18
- package/package/kisscomps/components/overView/index.vue +23 -0
- package/package/kisscomps/components/patternConfig/index.vue +1 -1
- package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +13 -33
- package/package/kisscomps/components/patternConfig/planContent.vue +3 -3
- package/package/kisscomps/components/patternList/patternList.vue +11 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +4 -3
- package/src/i18n/language/zh.js +4 -3
- package/src/kisscomps/components/BoardCard/BoardCard.vue +11 -0
- package/src/kisscomps/components/Channelization/Channelization.vue +1 -1
- package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +1 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +46 -145
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +1 -1
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +3 -7
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +0 -5
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +12 -17
- package/src/kisscomps/components/OverviewComponent/index.vue +34 -31
- package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +11 -2
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +92 -33
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +13 -30
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +9 -11
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +3 -6
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +11 -18
- package/src/kisscomps/components/overView/index.vue +23 -0
- package/src/kisscomps/components/patternConfig/index.vue +1 -1
- package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +13 -33
- package/src/kisscomps/components/patternConfig/planContent.vue +3 -3
- package/src/kisscomps/components/patternList/patternList.vue +11 -0
- package/src/views/intersection.vue +7 -6
- package/src/views/intersection2.vue +2 -2
- package/src/views/overView.vue +23 -5
- package/src/views/patternConfig.vue +8 -38
- package/src/views/schemeconfig.vue +6 -4
- package/static/apiconfig.json +0 -10
- package/static/styles/common.scss +3 -3
- package/static/styles/dark/theme/element-dark.scss +1 -1
- package/static/styles/intersection.scss +5 -15
- package/static/styles/light/theme/element-light.scss +1 -1
- package/static/styles/schemeconfig.scss +6 -3
- package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +0 -95
- package/src/api/permission.js +0 -33
- package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +0 -95
|
@@ -115,7 +115,7 @@ export default {
|
|
|
115
115
|
// this.getRouteInfo()
|
|
116
116
|
this.routeData = editableTab
|
|
117
117
|
let patternList = this.getPatternListFromTab(editableTab, this.patternList)
|
|
118
|
-
let phaseList = this.
|
|
118
|
+
let phaseList = this.getPatternListFromTab(editableTab, this.patternList)
|
|
119
119
|
if (patternList && patternList.length > 0 && phaseList && phaseList.length > 0) {
|
|
120
120
|
this.patternList = patternList
|
|
121
121
|
this.phaseList = phaseList
|
|
@@ -153,14 +153,14 @@ export default {
|
|
|
153
153
|
return res
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
let
|
|
156
|
+
let devPatternList = devs.map(item => {
|
|
157
157
|
let pattern = {
|
|
158
158
|
agentid: item.agentid,
|
|
159
159
|
feature: item.feature
|
|
160
160
|
}
|
|
161
161
|
return pattern
|
|
162
162
|
})
|
|
163
|
-
res =
|
|
163
|
+
res = devPatternList
|
|
164
164
|
return res
|
|
165
165
|
},
|
|
166
166
|
closeInterval () {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
:contrloType="contrloType"
|
|
6
6
|
:stagesChange="stagesChange"
|
|
7
7
|
:isShowTip="isShowTip"
|
|
8
|
+
:isMove="isMove"
|
|
8
9
|
:patternStatusList="patternStatusList"
|
|
9
10
|
:cycles="cycles"
|
|
10
11
|
:cycle="cycle"
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
:agentId="agentId"
|
|
20
21
|
:controlData="controlData"
|
|
21
22
|
:syncTime="syncTime"
|
|
23
|
+
@handleSplitMove="handleSplitMove"
|
|
22
24
|
:isPhase="isPhase"
|
|
23
25
|
>
|
|
24
26
|
</BoardCard>
|
|
@@ -502,6 +504,10 @@ export default {
|
|
|
502
504
|
type: Boolean,
|
|
503
505
|
default: true
|
|
504
506
|
},
|
|
507
|
+
isMove: {
|
|
508
|
+
type: Boolean,
|
|
509
|
+
default: true
|
|
510
|
+
},
|
|
505
511
|
contrloType: {
|
|
506
512
|
type: String
|
|
507
513
|
},
|
|
@@ -581,6 +587,11 @@ export default {
|
|
|
581
587
|
// if (this.$route.query !== undefined && Object.keys(this.$route.query).length) {
|
|
582
588
|
// this.resetCrossDiagram()
|
|
583
589
|
// }
|
|
590
|
+
},
|
|
591
|
+
methods: {
|
|
592
|
+
handleSplitMove (data) {
|
|
593
|
+
this.$emit('handleSplitMove', data)
|
|
594
|
+
}
|
|
584
595
|
}
|
|
585
596
|
}
|
|
586
597
|
</script>
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
+
<intersection-with-interface :AgentId="agentId" />
|
|
3
4
|
<h2 class="text">实时通道路口图</h2>
|
|
4
|
-
<channel-realtime-intersection
|
|
5
|
+
<!-- <channel-realtime-intersection
|
|
5
6
|
:agentId="this.agentId"
|
|
6
7
|
:roadDirection="roadDirection"
|
|
7
8
|
:channelRealtimeStatusData="channelRealtimeStatusData"
|
|
8
|
-
/>
|
|
9
|
+
/> -->
|
|
9
10
|
|
|
10
11
|
<!-- 按通道获取相位的方向选择列表,特殊路口显示列表,普通路口显示模版路口图 -->
|
|
11
12
|
<h2 class="text">非第三方配置路口图(按通道显示相位方向)</h2>
|
|
12
|
-
<intersection-direction-selection
|
|
13
|
+
<!-- <intersection-direction-selection
|
|
13
14
|
:agentId="this.agentId"
|
|
14
15
|
:choosedDirection="[14,6,13,8]"
|
|
15
16
|
:choosedPedDirection="[1]"
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
:choosedPedDirection="[1,2]"
|
|
26
27
|
:roadDirection="roadDirection"
|
|
27
28
|
@handleClickCrossIcon="handleClickCrossIcon" />
|
|
28
|
-
</div>
|
|
29
|
+
</div> -->
|
|
29
30
|
|
|
30
31
|
<!-- 显示按通道获取相位的模版路口图 -->
|
|
31
32
|
<h2 class="text">显示配置的相位路口图</h2>
|
|
@@ -161,12 +162,12 @@ export default {
|
|
|
161
162
|
return {
|
|
162
163
|
roadDirection: 'right',
|
|
163
164
|
// reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
164
|
-
agentId: '
|
|
165
|
+
agentId: '32050101041121000001',
|
|
165
166
|
// agentId: '13013',
|
|
166
167
|
// agentId: '12007_390',
|
|
167
168
|
// agentId: '12014',
|
|
168
169
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
169
|
-
Token: '
|
|
170
|
+
Token: 'eyJraWQiOiIxNzMwODU1NTQ1NzA3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczMDg1OTE0NSwiaWF0IjoxNzMwODUxOTQ1fQ.CBl61S3eRifl4qEtTmgVjOZGo2hqNSGQKPxG1bN-utU',
|
|
170
171
|
// agentId: '30003-352',
|
|
171
172
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
172
173
|
// Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
|
|
@@ -102,12 +102,12 @@ export default {
|
|
|
102
102
|
return {
|
|
103
103
|
roadDirection: 'left',
|
|
104
104
|
// reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
105
|
-
agentId: '
|
|
105
|
+
agentId: '32050101041121000001',
|
|
106
106
|
// agentId: '13013',
|
|
107
107
|
// agentId: '12007_390',
|
|
108
108
|
// agentId: '12014',
|
|
109
109
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
110
|
-
Token: '
|
|
110
|
+
Token: 'eyJraWQiOiIxNjkzMjkyMzI0NzUyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6NDA5MjEzNDQwMCwiaWF0IjoxNjkwODE5MjAwfQ.97bSPcUdh4xgAqkbw96Q-NfLVhFbgK0Yo1S8KYkSwz8',
|
|
111
111
|
// agentId: '30003-352',
|
|
112
112
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
113
113
|
// Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
|
package/src/views/overView.vue
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="test1">
|
|
3
|
-
<overview
|
|
3
|
+
<!-- <overview
|
|
4
4
|
:AgentId="agentId"
|
|
5
5
|
:reqUrl="reqUrl"
|
|
6
6
|
:modeName="modeName"
|
|
7
7
|
:controlName="controlName"
|
|
8
8
|
:isShowState="isShowState"
|
|
9
9
|
:isShowMode="isShowMode"
|
|
10
|
-
:Token="Token"></overview>
|
|
10
|
+
:Token="Token"></overview> -->
|
|
11
|
+
<el-button @click="handleChangeOverview">切换overview组件</el-button>
|
|
12
|
+
<el-button @click="reverseOverviewBtMap">切换路口图和overview</el-button>
|
|
13
|
+
<overview-component :AgentId="agentId" :onlyShowIntersectionMap="isOnlyMap" />
|
|
11
14
|
</div>
|
|
12
15
|
</template>
|
|
13
16
|
|
|
@@ -19,12 +22,27 @@ export default {
|
|
|
19
22
|
isShowMode: true,
|
|
20
23
|
modeName: '交警遥控',
|
|
21
24
|
controlName: '步进',
|
|
22
|
-
agentId: '
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
agentId: '13013',
|
|
26
|
+
agentid1: 'gjnlahql',
|
|
27
|
+
agentid2: '13013',
|
|
28
|
+
sum: 0,
|
|
29
|
+
Token: 'eyJraWQiOiIxNzMzODg3MDYyMjgwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczMzg5MDY2MiwiaWF0IjoxNzMzODgzNDYyfQ.qUJZ4lKv0WU3s3lWfYwl5ZM77n2rriYeFQ8qOwRFuzk',
|
|
30
|
+
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
31
|
+
isOnlyMap: true
|
|
25
32
|
}
|
|
26
33
|
},
|
|
27
34
|
methods: {
|
|
35
|
+
handleChangeOverview () {
|
|
36
|
+
if (this.sum % 2 === 0) {
|
|
37
|
+
this.agentId = this.agentid1
|
|
38
|
+
} else {
|
|
39
|
+
this.agentId = this.agentid2
|
|
40
|
+
}
|
|
41
|
+
this.sum++
|
|
42
|
+
},
|
|
43
|
+
reverseOverviewBtMap () {
|
|
44
|
+
this.isOnlyMap = !this.isOnlyMap
|
|
45
|
+
}
|
|
28
46
|
},
|
|
29
47
|
watch: {
|
|
30
48
|
},
|
|
@@ -72,14 +72,14 @@ export default {
|
|
|
72
72
|
// },
|
|
73
73
|
data () {
|
|
74
74
|
return {
|
|
75
|
-
tableColums: ['agentid', '
|
|
75
|
+
tableColums: ['agentid', 'period', 'offset', 'cycle', 'pattern'], // greenWave, period
|
|
76
76
|
// tableColums: ['no', 'id', 'period', 'name', 'isUsed', 'patternId', 'offset', 'cycle', 'pattern'], // greenWave, period
|
|
77
|
-
isShowSingle:
|
|
77
|
+
isShowSingle: true,
|
|
78
78
|
isOnlyOneTab: false,
|
|
79
|
-
isSingleCrossMode:
|
|
79
|
+
isSingleCrossMode: true,
|
|
80
80
|
isShowTableHeader: true,
|
|
81
|
-
isAllowedExpand: false,
|
|
82
|
-
|
|
81
|
+
// isAllowedExpand: false,
|
|
82
|
+
isAllowedExpand: true,
|
|
83
83
|
// agentids: ['gjnlgjxl'],
|
|
84
84
|
agentids4: [
|
|
85
85
|
'tjblxyl',
|
|
@@ -165,7 +165,6 @@ export default {
|
|
|
165
165
|
agentId: '12008_835',
|
|
166
166
|
// agentId: '0351-01',
|
|
167
167
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
168
|
-
Token135: 'eyJraWQiOiIxNzIzMDgzMDcxMzIxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTk4NTQ0MzIwMCwiaWF0IjoxNzIyNDM4MDAwfQ.i-RVHcxmtgvD9boQECpBCz7T1fJ0TAjzO5BWin3VdoY',
|
|
169
168
|
Token: 'eyJraWQiOiIxNzAwMjAwNDQ4MTA0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2NzExMDQwMCwiaWF0IjoxNjk5Mjg2NDAwfQ.AyVJCGmVQVafdWBDQ7TMhVQ5Dvjy13NeuQ8rimTPgtc',
|
|
170
169
|
// reqUrl: 'http://192.168.13.113:10003/openatc',
|
|
171
170
|
// Token: 'eyJraWQiOiIxNjkxMzcxMTc5ODcxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcxNDE0NzIwMCwiaWF0IjoxNjkwODE5MjAwfQ.AhUj9taw4_IpP77AmP5bvCE87dDQ4-ZdsEJzrlWXKF8',
|
|
@@ -198,36 +197,8 @@ export default {
|
|
|
198
197
|
]
|
|
199
198
|
},
|
|
200
199
|
agentids6: ['tjblsxl-ticp6'],
|
|
201
|
-
agentids5: ['
|
|
202
|
-
opt5: {
|
|
203
|
-
'optPatternList': [
|
|
204
|
-
{
|
|
205
|
-
'name': '仿真实例 1',
|
|
206
|
-
'devs': [
|
|
207
|
-
{
|
|
208
|
-
'agentid': 'tjllybj',
|
|
209
|
-
'patternid': 1,
|
|
210
|
-
'isused': true
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
'agentid': 'tjlzsdj',
|
|
214
|
-
'patternid': 1,
|
|
215
|
-
'isused': true
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
'agentid': 'tjlhaj',
|
|
219
|
-
'patternid': 1,
|
|
220
|
-
'isused': true
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
'agentid': 'tjlyhddj',
|
|
224
|
-
'patternid': 1,
|
|
225
|
-
'isused': true
|
|
226
|
-
}
|
|
227
|
-
]
|
|
228
|
-
}
|
|
229
|
-
]
|
|
230
|
-
},
|
|
200
|
+
agentids5: ['cllytl'],
|
|
201
|
+
opt5: {},
|
|
231
202
|
agentids: ['gjnlgjxl'],
|
|
232
203
|
opt: {
|
|
233
204
|
'optPatternList': [
|
|
@@ -14738,8 +14709,7 @@ export default {
|
|
|
14738
14709
|
// // _this.agentId = 'scats1'
|
|
14739
14710
|
// _this.agentids = ['gjnlahql', 'gjnlgjxl']
|
|
14740
14711
|
// }, 5 * 1000)
|
|
14741
|
-
this.setPropsToken(this.
|
|
14742
|
-
// this.setPropsToken(this.Token)
|
|
14712
|
+
this.setPropsToken(this.Token)
|
|
14743
14713
|
window.onresize = () => {
|
|
14744
14714
|
return (() => {
|
|
14745
14715
|
// this.setDialogWidth()
|
|
@@ -61,9 +61,9 @@ export default {
|
|
|
61
61
|
showWalk: [ 1, 2 ],
|
|
62
62
|
sidewalkPhaseData: [{key: 'pedphase1653873194007699', phaseid: 1, id: 1, name: '东人行横道', isshow: false}],
|
|
63
63
|
lockPhaseBtnName: this.$t('openatccomponents.overview.comfirm'),
|
|
64
|
-
agentId: '
|
|
64
|
+
agentId: '1511_207',
|
|
65
65
|
Token: 'eyJraWQiOiIxNzAxODMyOTQ3MTUwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJxeXl0aCIsImV4cCI6MTc2OTc4ODgwMCwiaWF0IjoxNzAxMzYwMDAwfQ.RIQpNEkJibL-RYllirDeNLi8G9-t8PecM_m7KlZNQXg',
|
|
66
|
-
Token103: '
|
|
66
|
+
Token103: 'eyJraWQiOiIxNjcwMzc0ODA4MTcyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njc3NDgwOCwiaWF0IjoxNjcwMzc0ODA4fQ.xsRoye_tk_Xf60w5Mpigm8vrPgQJCLN-W_IW4U7dafA',
|
|
67
67
|
boxVisible: false,
|
|
68
68
|
dialogWidth: '80%',
|
|
69
69
|
crossStatusData: {} // 路口状态数据
|
|
@@ -138,8 +138,11 @@ export default {
|
|
|
138
138
|
}
|
|
139
139
|
return
|
|
140
140
|
}
|
|
141
|
+
console.log(data.data.data)
|
|
141
142
|
this.crossStatusData = JSON.parse(JSON.stringify(data.data.data.data))
|
|
142
|
-
|
|
143
|
+
// debugger
|
|
144
|
+
console.log(this.crossStatusData)
|
|
145
|
+
// debugger
|
|
143
146
|
}).catch(error => {
|
|
144
147
|
console.log(error)
|
|
145
148
|
})
|
|
@@ -148,7 +151,6 @@ export default {
|
|
|
148
151
|
// 获取路口信息
|
|
149
152
|
getIntersectionInfo(agentid).then(res => {
|
|
150
153
|
this.phaseList = res.data.data.param.phaseList
|
|
151
|
-
console.log('this.phaseList:', this.phaseList)
|
|
152
154
|
})
|
|
153
155
|
},
|
|
154
156
|
setPropsToken (token) {
|
package/static/apiconfig.json
CHANGED
|
@@ -447,15 +447,5 @@
|
|
|
447
447
|
"key": "getDetectorStatus",
|
|
448
448
|
"url": "/devs/detectorstatus",
|
|
449
449
|
"method": "get"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"key": "getRoleByName",
|
|
453
|
-
"url": "/auth/role/rolename",
|
|
454
|
-
"method": "get"
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
"key": "getPermission",
|
|
458
|
-
"url": "/auth/role/",
|
|
459
|
-
"method": "get"
|
|
460
450
|
}
|
|
461
451
|
]
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
// 全局滚动条样式
|
|
13
13
|
::-webkit-scrollbar {
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
14
|
+
width: 6PX;
|
|
15
|
+
height: 6PX;
|
|
16
16
|
}
|
|
17
17
|
::-webkit-scrollbar-thumb {
|
|
18
18
|
// 滚动条的滑块
|
|
19
|
-
border-radius:
|
|
19
|
+
border-radius: 3PX;
|
|
20
20
|
background: rgba(144, 147, 153, 0.3);
|
|
21
21
|
}
|
|
22
22
|
::-webkit-scrollbar-corner{
|
|
@@ -34,7 +34,7 @@ $--button-danger-font-color: #FFFFFF;
|
|
|
34
34
|
$--button-success-font-color: #FFFFFF;
|
|
35
35
|
$--radio-button-checked-font-color: #FFFFFF;
|
|
36
36
|
$--radio-font-color: $--color-text-secondary;
|
|
37
|
-
$--tag-info-color:
|
|
37
|
+
$--tag-info-color: #FFFFFF;
|
|
38
38
|
$--tooltip-color: $--color-white;
|
|
39
39
|
$--checkbox-font-color: $--color-text-secondary;
|
|
40
40
|
|
|
@@ -38,9 +38,6 @@
|
|
|
38
38
|
zoom: 0.9;
|
|
39
39
|
|
|
40
40
|
}
|
|
41
|
-
.centerText .text {
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
}
|
|
44
41
|
}
|
|
45
42
|
/*当屏幕小于等于1440px的屏幕样式*/
|
|
46
43
|
@media only screen and (max-width: 1440px){
|
|
@@ -49,9 +46,6 @@
|
|
|
49
46
|
zoom: 0.8;
|
|
50
47
|
|
|
51
48
|
}
|
|
52
|
-
.centerText .text {
|
|
53
|
-
font-size: 18px;
|
|
54
|
-
}
|
|
55
49
|
}
|
|
56
50
|
/*当屏幕小于等于1280px的屏幕样式*/
|
|
57
51
|
@media only screen and (max-width: 1280px){
|
|
@@ -59,9 +53,6 @@
|
|
|
59
53
|
// transform: scale(0.65);
|
|
60
54
|
zoom: 0.65;
|
|
61
55
|
}
|
|
62
|
-
.centerText .text {
|
|
63
|
-
font-size: 20px;
|
|
64
|
-
}
|
|
65
56
|
}
|
|
66
57
|
/*当屏幕小于等于960px的屏幕样式*/
|
|
67
58
|
@media only screen and (max-width: 960px){
|
|
@@ -69,9 +60,6 @@
|
|
|
69
60
|
// transform: scale(0.5);
|
|
70
61
|
zoom: 0.5;
|
|
71
62
|
}
|
|
72
|
-
.centerText .text {
|
|
73
|
-
font-size: 14px;
|
|
74
|
-
}
|
|
75
63
|
}
|
|
76
64
|
/*当屏幕小于等于720px的屏幕样式*/
|
|
77
65
|
@media only screen and (max-width: 720px){
|
|
@@ -79,9 +67,6 @@
|
|
|
79
67
|
// transform: scale(0.45);
|
|
80
68
|
zoom: 0.45;
|
|
81
69
|
}
|
|
82
|
-
.centerText .text {
|
|
83
|
-
font-size: 14px;
|
|
84
|
-
}
|
|
85
70
|
}
|
|
86
71
|
// 小屏幕打开首页适配样式
|
|
87
72
|
.minifont {
|
|
@@ -188,4 +173,9 @@
|
|
|
188
173
|
color: $--color-text-primary;
|
|
189
174
|
font-size:30PX;
|
|
190
175
|
}
|
|
176
|
+
.centerText {
|
|
177
|
+
.text {
|
|
178
|
+
font-size: 18PX;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
191
181
|
}
|
|
@@ -34,7 +34,7 @@ $--card-background-selected: #c1e0ff;
|
|
|
34
34
|
// $--button-success-font-color: #FFFFFF;
|
|
35
35
|
// $--radio-button-checked-font-color: #FFFFFF;
|
|
36
36
|
// $--radio-font-color: $--color-text-secondary;
|
|
37
|
-
|
|
37
|
+
$--tag-info-color: #303133;
|
|
38
38
|
// $--tooltip-color: $--color-white;
|
|
39
39
|
// $--checkbox-font-color: $--color-text-secondary;
|
|
40
40
|
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
overflow-y: auto;
|
|
227
227
|
}
|
|
228
228
|
.manual-common-content::-webkit-scrollbar {
|
|
229
|
-
width:
|
|
229
|
+
width: 6PX;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
// 手动控制弹框
|
|
@@ -498,12 +498,12 @@
|
|
|
498
498
|
width: 85% !important;
|
|
499
499
|
}
|
|
500
500
|
.el-input.is-disabled .el-input__inner {
|
|
501
|
-
text-align:
|
|
501
|
+
text-align: left;
|
|
502
502
|
}
|
|
503
503
|
.el-input-number {
|
|
504
504
|
width: 100%;
|
|
505
505
|
.el-input__inner {
|
|
506
|
-
text-align:
|
|
506
|
+
text-align: left;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
.el-select {
|
|
@@ -540,6 +540,9 @@
|
|
|
540
540
|
}
|
|
541
541
|
.el-input-number {
|
|
542
542
|
width: 100%;
|
|
543
|
+
.el-input__inner {
|
|
544
|
+
text-align: left;
|
|
545
|
+
}
|
|
543
546
|
}
|
|
544
547
|
.el-input-number--mini{
|
|
545
548
|
width: 100%;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
// const permissionMenuMap = new Map([[
|
|
2
|
-
// 'configer:manual:dwell', ['驻留控制']
|
|
3
|
-
// ], [
|
|
4
|
-
// 'configer:manual:senior', ['特殊控制']
|
|
5
|
-
// ], [
|
|
6
|
-
// 'configer:manual:base', ['方案选择']
|
|
7
|
-
// ], [
|
|
8
|
-
// 'configer:manual:optimize', ['其他']
|
|
9
|
-
// ]])
|
|
10
|
-
const permissionControlMap = new Map([[
|
|
11
|
-
'configer:manual:dwell', [4, 22, 25]
|
|
12
|
-
], [
|
|
13
|
-
'configer:manual:senior', [1, 2, 3]
|
|
14
|
-
], [
|
|
15
|
-
'configer:manual:base', [5, 6, 9, 10, 12, 19]
|
|
16
|
-
], [
|
|
17
|
-
'configer:manual:optimize', [23, 100, 24]
|
|
18
|
-
], [
|
|
19
|
-
'configer:manual:dwell:step', [4]
|
|
20
|
-
], [
|
|
21
|
-
'configer:manual:dwell:stage', [4]
|
|
22
|
-
], [
|
|
23
|
-
'configer:manual:dwell:phaselock', [22]
|
|
24
|
-
], [
|
|
25
|
-
'configer:manual:dwell:directionlock', [25]
|
|
26
|
-
], [
|
|
27
|
-
'configer:manual:senior:yellowfalsh', [1]
|
|
28
|
-
], [
|
|
29
|
-
'configer:manual:senior:allred', [2]
|
|
30
|
-
], [
|
|
31
|
-
'configer:manual:senior:close', [3]
|
|
32
|
-
], [
|
|
33
|
-
'configer:manual:base:fix', [5]
|
|
34
|
-
], [
|
|
35
|
-
'configer:manual:base:free', [6]
|
|
36
|
-
], [
|
|
37
|
-
'configer:manual:base:adapter', [9]
|
|
38
|
-
], [
|
|
39
|
-
'configer:manual:base:coordinate', [10]
|
|
40
|
-
], [
|
|
41
|
-
'configer:manual:base:ped', [12]
|
|
42
|
-
], [
|
|
43
|
-
'configer:manual:base:pedfree', [19]
|
|
44
|
-
], [
|
|
45
|
-
'configer:manual:optimize:procedure', [23]
|
|
46
|
-
], [
|
|
47
|
-
'configer:manual:optimize:temp', [100]
|
|
48
|
-
], [
|
|
49
|
-
'configer:manual:optimize:preempt', [24]
|
|
50
|
-
]])
|
|
51
|
-
|
|
52
|
-
export function getPermissionMenu (thirdPartyControl) {
|
|
53
|
-
// 按第三方平台角色的权限处理可显示的手动控制菜单
|
|
54
|
-
// let thirdPartyControlMenu = []
|
|
55
|
-
// for (let i = 0; i < permissionList.length; i++) {
|
|
56
|
-
// let per = permissionList[i].permission_code
|
|
57
|
-
// if (permissionMenuMap.get(per)) {
|
|
58
|
-
// thirdPartyControlMenu = thirdPartyControlMenu.concat(permissionMenuMap.get(per))
|
|
59
|
-
// }
|
|
60
|
-
// }
|
|
61
|
-
// console.log(thirdPartyControlMenu)
|
|
62
|
-
// return thirdPartyControlMenu
|
|
63
|
-
let thirdPartyControlMenu = []
|
|
64
|
-
for (let i = 0; i < thirdPartyControl.length; i++) {
|
|
65
|
-
let control = thirdPartyControl[i]
|
|
66
|
-
if ([4, 22, 25].indexOf(control) !== -1) {
|
|
67
|
-
thirdPartyControlMenu = thirdPartyControlMenu.concat(['residentcontrol'])
|
|
68
|
-
}
|
|
69
|
-
if ([1, 2, 3].indexOf(control) !== -1) {
|
|
70
|
-
thirdPartyControlMenu = thirdPartyControlMenu.concat(['specialcontrol'])
|
|
71
|
-
}
|
|
72
|
-
if ([5, 6, 9, 10, 12, 19].indexOf(control) !== -1) {
|
|
73
|
-
thirdPartyControlMenu = thirdPartyControlMenu.concat(['schemeselection'])
|
|
74
|
-
}
|
|
75
|
-
if ([23, 24, 100].indexOf(control) !== -1) {
|
|
76
|
-
thirdPartyControlMenu = thirdPartyControlMenu.concat(['others'])
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
thirdPartyControlMenu = [...new Set(thirdPartyControlMenu)]
|
|
80
|
-
// console.log(thirdPartyControlMenu)
|
|
81
|
-
return thirdPartyControlMenu
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function getPermissionControl (permissionList) {
|
|
85
|
-
// 按第三方平台角色的权限处理可显示的手动控制按钮
|
|
86
|
-
let thirdPartyControl = []
|
|
87
|
-
for (let i = 0; i < permissionList.length; i++) {
|
|
88
|
-
let per = permissionList[i].permission_code
|
|
89
|
-
if (permissionControlMap.get(per)) {
|
|
90
|
-
thirdPartyControl = thirdPartyControl.concat(permissionControlMap.get(per))
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
// console.log(thirdPartyControl)
|
|
94
|
-
return thirdPartyControl
|
|
95
|
-
}
|
package/src/api/permission.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 kedacom
|
|
3
|
-
* OpenATC is licensed under Mulan PSL v2.
|
|
4
|
-
* You can use this software according to the terms and conditions of the Mulan PSL v2.
|
|
5
|
-
* You may obtain a copy of Mulan PSL v2 at:
|
|
6
|
-
* http://license.coscl.org.cn/MulanPSL2
|
|
7
|
-
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
|
8
|
-
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
|
9
|
-
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
10
|
-
* See the Mulan PSL v2 for more details.
|
|
11
|
-
**/
|
|
12
|
-
import Authapi from './authapi'
|
|
13
|
-
|
|
14
|
-
export const GetPermissionById = (id) => {
|
|
15
|
-
let api = new Authapi('getPermission')
|
|
16
|
-
|
|
17
|
-
let paramList = [id, 'permissions']
|
|
18
|
-
|
|
19
|
-
return api.Send({}, {}, paramList)
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const GetRoleByName = (roleName) => {
|
|
23
|
-
let api = new Authapi('getRoleByName')
|
|
24
|
-
|
|
25
|
-
let argList = [roleName, 'permissions']
|
|
26
|
-
|
|
27
|
-
return api.Send({}, {}, argList)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export default {
|
|
31
|
-
GetPermissionById,
|
|
32
|
-
GetRoleByName
|
|
33
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
// const permissionMenuMap = new Map([[
|
|
2
|
-
// 'configer:manual:dwell', ['驻留控制']
|
|
3
|
-
// ], [
|
|
4
|
-
// 'configer:manual:senior', ['特殊控制']
|
|
5
|
-
// ], [
|
|
6
|
-
// 'configer:manual:base', ['方案选择']
|
|
7
|
-
// ], [
|
|
8
|
-
// 'configer:manual:optimize', ['其他']
|
|
9
|
-
// ]])
|
|
10
|
-
const permissionControlMap = new Map([[
|
|
11
|
-
'configer:manual:dwell', [4, 22, 25]
|
|
12
|
-
], [
|
|
13
|
-
'configer:manual:senior', [1, 2, 3]
|
|
14
|
-
], [
|
|
15
|
-
'configer:manual:base', [5, 6, 9, 10, 12, 19]
|
|
16
|
-
], [
|
|
17
|
-
'configer:manual:optimize', [23, 100, 24]
|
|
18
|
-
], [
|
|
19
|
-
'configer:manual:dwell:step', [4]
|
|
20
|
-
], [
|
|
21
|
-
'configer:manual:dwell:stage', [4]
|
|
22
|
-
], [
|
|
23
|
-
'configer:manual:dwell:phaselock', [22]
|
|
24
|
-
], [
|
|
25
|
-
'configer:manual:dwell:directionlock', [25]
|
|
26
|
-
], [
|
|
27
|
-
'configer:manual:senior:yellowfalsh', [1]
|
|
28
|
-
], [
|
|
29
|
-
'configer:manual:senior:allred', [2]
|
|
30
|
-
], [
|
|
31
|
-
'configer:manual:senior:close', [3]
|
|
32
|
-
], [
|
|
33
|
-
'configer:manual:base:fix', [5]
|
|
34
|
-
], [
|
|
35
|
-
'configer:manual:base:free', [6]
|
|
36
|
-
], [
|
|
37
|
-
'configer:manual:base:adapter', [9]
|
|
38
|
-
], [
|
|
39
|
-
'configer:manual:base:coordinate', [10]
|
|
40
|
-
], [
|
|
41
|
-
'configer:manual:base:ped', [12]
|
|
42
|
-
], [
|
|
43
|
-
'configer:manual:base:pedfree', [19]
|
|
44
|
-
], [
|
|
45
|
-
'configer:manual:optimize:procedure', [23]
|
|
46
|
-
], [
|
|
47
|
-
'configer:manual:optimize:temp', [100]
|
|
48
|
-
], [
|
|
49
|
-
'configer:manual:optimize:preempt', [24]
|
|
50
|
-
]])
|
|
51
|
-
|
|
52
|
-
export function getPermissionMenu (thirdPartyControl) {
|
|
53
|
-
// 按第三方平台角色的权限处理可显示的手动控制菜单
|
|
54
|
-
// let thirdPartyControlMenu = []
|
|
55
|
-
// for (let i = 0; i < permissionList.length; i++) {
|
|
56
|
-
// let per = permissionList[i].permission_code
|
|
57
|
-
// if (permissionMenuMap.get(per)) {
|
|
58
|
-
// thirdPartyControlMenu = thirdPartyControlMenu.concat(permissionMenuMap.get(per))
|
|
59
|
-
// }
|
|
60
|
-
// }
|
|
61
|
-
// console.log(thirdPartyControlMenu)
|
|
62
|
-
// return thirdPartyControlMenu
|
|
63
|
-
let thirdPartyControlMenu = []
|
|
64
|
-
for (let i = 0; i < thirdPartyControl.length; i++) {
|
|
65
|
-
let control = thirdPartyControl[i]
|
|
66
|
-
if ([4, 22, 25].indexOf(control) !== -1) {
|
|
67
|
-
thirdPartyControlMenu = thirdPartyControlMenu.concat(['residentcontrol'])
|
|
68
|
-
}
|
|
69
|
-
if ([1, 2, 3].indexOf(control) !== -1) {
|
|
70
|
-
thirdPartyControlMenu = thirdPartyControlMenu.concat(['specialcontrol'])
|
|
71
|
-
}
|
|
72
|
-
if ([5, 6, 9, 10, 12, 19].indexOf(control) !== -1) {
|
|
73
|
-
thirdPartyControlMenu = thirdPartyControlMenu.concat(['schemeselection'])
|
|
74
|
-
}
|
|
75
|
-
if ([23, 24, 100].indexOf(control) !== -1) {
|
|
76
|
-
thirdPartyControlMenu = thirdPartyControlMenu.concat(['others'])
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
thirdPartyControlMenu = [...new Set(thirdPartyControlMenu)]
|
|
80
|
-
// console.log(thirdPartyControlMenu)
|
|
81
|
-
return thirdPartyControlMenu
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function getPermissionControl (permissionList) {
|
|
85
|
-
// 按第三方平台角色的权限处理可显示的手动控制按钮
|
|
86
|
-
let thirdPartyControl = []
|
|
87
|
-
for (let i = 0; i < permissionList.length; i++) {
|
|
88
|
-
let per = permissionList[i].permission_code
|
|
89
|
-
if (permissionControlMap.get(per)) {
|
|
90
|
-
thirdPartyControl = thirdPartyControl.concat(permissionControlMap.get(per))
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
// console.log(thirdPartyControl)
|
|
94
|
-
return thirdPartyControl
|
|
95
|
-
}
|