openatc-components 0.3.79 → 0.3.80
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/DirectionListConfiguration/DirectionListConfiguration.vue +7 -5
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +145 -46
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +5 -6
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -9
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +3 -3
- package/package/kisscomps/components/OptimizeKanban/index.js +2 -0
- package/package/kisscomps/components/OptimizeKanban/index.vue +369 -0
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +4 -28
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +11 -9
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -21
- package/package/kisscomps/index.js +1 -3
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +0 -7
- package/src/i18n/language/zh.js +0 -7
- package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +7 -5
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +145 -46
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +5 -6
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -9
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +3 -3
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +4 -28
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +11 -9
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -21
- package/src/kisscomps/index.js +1 -3
- package/src/node_modules/.package_versions.json +1 -0
- package/src/utils/conflct.js +33 -24
- package/src/views/intersection.vue +5 -6
- package/src/views/intersection2.vue +2 -2
- package/src/views/overView.vue +4 -17
- package/static/styles/common.scss +3 -3
- package/static/styles/dark/theme/element-dark.scss +1 -1
- package/static/styles/intersection.scss +15 -5
- package/static/styles/light/theme/element-light.scss +1 -1
- package/static/styles/schemeconfig.scss +3 -6
- package/package/kisscomps/components/OverviewComponent/index.js +0 -2
- package/package/kisscomps/components/OverviewComponent/index.vue +0 -794
- package/src/kisscomps/components/OverviewComponent/index.js +0 -2
- package/src/kisscomps/components/OverviewComponent/index.vue +0 -794
|
@@ -212,8 +212,8 @@ export default {
|
|
|
212
212
|
Detector: [], // 管理所有检测器
|
|
213
213
|
DetectorChart: [], // 管理所有检测器统计图
|
|
214
214
|
motorwayicon: '',
|
|
215
|
-
IconLengh:
|
|
216
|
-
IconWdith:
|
|
215
|
+
IconLengh: 60,
|
|
216
|
+
IconWdith: 134,
|
|
217
217
|
textareaW: 200,
|
|
218
218
|
textareaH: 100,
|
|
219
219
|
pedW: 206,
|
|
@@ -389,8 +389,8 @@ export default {
|
|
|
389
389
|
h: this.IconWdith,
|
|
390
390
|
angle: 0
|
|
391
391
|
}
|
|
392
|
-
this.IconLengh =
|
|
393
|
-
this.IconWdith =
|
|
392
|
+
this.IconLengh = 60
|
|
393
|
+
this.IconWdith = 134
|
|
394
394
|
let Motorwaysitem = {
|
|
395
395
|
index: this.index,
|
|
396
396
|
id: this.motorid,
|
|
@@ -315,11 +315,10 @@ export default {
|
|
|
315
315
|
},
|
|
316
316
|
agentId: {
|
|
317
317
|
handler: function (val1, val2) {
|
|
318
|
-
if (val1 !== val2
|
|
318
|
+
if (val1 !== val2) {
|
|
319
319
|
this.init()
|
|
320
320
|
}
|
|
321
|
-
}
|
|
322
|
-
immediate: true
|
|
321
|
+
}
|
|
323
322
|
}
|
|
324
323
|
},
|
|
325
324
|
data () {
|
|
@@ -703,7 +702,7 @@ export default {
|
|
|
703
702
|
},
|
|
704
703
|
getIntersectionInfo () {
|
|
705
704
|
// 获取路口信息
|
|
706
|
-
const agentid = this.agentId
|
|
705
|
+
const agentid = this.agentId || '0'
|
|
707
706
|
getIntersectionInfo(agentid).then(res => {
|
|
708
707
|
if (!res.data.success) {
|
|
709
708
|
this.isLoaded = false
|
|
@@ -1054,8 +1053,8 @@ export default {
|
|
|
1054
1053
|
},
|
|
1055
1054
|
handleRepeatRealdir (channelList) {
|
|
1056
1055
|
// 按realdir去掉重复方向的数据
|
|
1057
|
-
let dirChannelList = channelList.filter(ele => ele.type === 0 || ele.type === 1 || ele.type === 3)
|
|
1058
|
-
let pedDirChannelList = channelList.filter(ele => ele.type === 2)
|
|
1056
|
+
let dirChannelList = channelList.filter(ele => ele.realdir !== undefined && (ele.type === 0 || ele.type === 1 || ele.type === 3))
|
|
1057
|
+
let pedDirChannelList = channelList.filter(ele => ele.realdir !== undefined && ele.type === 2)
|
|
1059
1058
|
let map = new Map()
|
|
1060
1059
|
let map2 = new Map()
|
|
1061
1060
|
dirChannelList.forEach(ele => {
|
|
@@ -74,7 +74,8 @@ export default {
|
|
|
74
74
|
// default: 0
|
|
75
75
|
// },
|
|
76
76
|
agentId: {
|
|
77
|
-
type: String
|
|
77
|
+
type: String,
|
|
78
|
+
default: '0'
|
|
78
79
|
},
|
|
79
80
|
graphicMode: {
|
|
80
81
|
type: Boolean,
|
|
@@ -154,13 +155,6 @@ export default {
|
|
|
154
155
|
this.reset = true
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
|
-
},
|
|
158
|
-
agentId: {
|
|
159
|
-
handler: function (val1, val2) {
|
|
160
|
-
if (val1 !== val2 && val1 !== undefined) {
|
|
161
|
-
this.resetCrossDiagram()
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
158
|
}
|
|
165
159
|
},
|
|
166
160
|
created () {
|
|
@@ -170,7 +164,9 @@ export default {
|
|
|
170
164
|
},
|
|
171
165
|
mounted () {
|
|
172
166
|
this.getParentSize()
|
|
173
|
-
this.
|
|
167
|
+
if (this.isVipRoute || this.channelType) {
|
|
168
|
+
this.reset = true
|
|
169
|
+
}
|
|
174
170
|
},
|
|
175
171
|
updated () {
|
|
176
172
|
},
|
|
@@ -59,7 +59,8 @@ export default {
|
|
|
59
59
|
default: ''
|
|
60
60
|
},
|
|
61
61
|
AgentId: {
|
|
62
|
-
type: String
|
|
62
|
+
type: String,
|
|
63
|
+
default: '0'
|
|
63
64
|
},
|
|
64
65
|
Token: {
|
|
65
66
|
type: String,
|
|
@@ -92,7 +93,7 @@ export default {
|
|
|
92
93
|
},
|
|
93
94
|
watch: {
|
|
94
95
|
AgentId: {
|
|
95
|
-
handler: function (val) {
|
|
96
|
+
handler: function (val, oldVal) {
|
|
96
97
|
this.agentId = val
|
|
97
98
|
},
|
|
98
99
|
// 深度观察监听
|
|
@@ -242,7 +243,6 @@ export default {
|
|
|
242
243
|
_this.port = String(devParams.port)
|
|
243
244
|
_this.protocol = res.data.data.protocol
|
|
244
245
|
_this.agentId = res.data.data.agentid
|
|
245
|
-
console.log('%%%%%%', res.data.data)
|
|
246
246
|
if (res.data.data.name) {
|
|
247
247
|
_this.agentName = res.data.data.name
|
|
248
248
|
}
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
:leave-active-class="toPage === 1 ? 'animated fadeOutRight' : 'animated fadeOutLeft' ">
|
|
20
20
|
<div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
|
|
21
21
|
<ManualControlModalNew
|
|
22
|
-
v-if="resetcomponent"
|
|
23
22
|
ref="ManualControlModalNew"
|
|
24
23
|
:residentControlList="residentControlList"
|
|
25
24
|
:specialControlList="specialControlList"
|
|
@@ -82,7 +81,6 @@
|
|
|
82
81
|
<div v-else style="height: 100%;">
|
|
83
82
|
<div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
|
|
84
83
|
<ManualControlModalNew
|
|
85
|
-
v-if="resetcomponent"
|
|
86
84
|
ref="ManualControlModalNew"
|
|
87
85
|
:residentControlList="residentControlList"
|
|
88
86
|
:specialControlList="specialControlList"
|
|
@@ -462,17 +460,13 @@ export default {
|
|
|
462
460
|
patternAll: [],
|
|
463
461
|
patternSelect: [], // 所有方案id
|
|
464
462
|
specialPage: '', // 哪一个特殊控制页面
|
|
465
|
-
nextcycleefficcontrol: [5, 6, 9, 10, 12, 19]
|
|
466
|
-
resetcomponent: false
|
|
463
|
+
nextcycleefficcontrol: [5, 6, 9, 10, 12, 19] // 下周期生效的控制方式
|
|
467
464
|
}
|
|
468
465
|
},
|
|
469
466
|
watch: {
|
|
470
467
|
agentId: {
|
|
471
|
-
handler: function (
|
|
472
|
-
|
|
473
|
-
this.resetComponent()
|
|
474
|
-
}
|
|
475
|
-
this.getIntersectionInfo(val1)
|
|
468
|
+
handler: function (val) {
|
|
469
|
+
this.getIntersectionInfo(val)
|
|
476
470
|
},
|
|
477
471
|
// 深度观察监听
|
|
478
472
|
deep: true
|
|
@@ -509,10 +503,9 @@ export default {
|
|
|
509
503
|
this.setHost(this.reqUrl)
|
|
510
504
|
this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
|
|
511
505
|
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
506
|
+
this.getIntersectionInfo(this.agentId)
|
|
512
507
|
},
|
|
513
508
|
async mounted () {
|
|
514
|
-
this.resetcomponent = true
|
|
515
|
-
this.init()
|
|
516
509
|
if (this.realtimeStatusModalvisible === false) {
|
|
517
510
|
this.changeStatus()
|
|
518
511
|
}
|
|
@@ -523,23 +516,6 @@ export default {
|
|
|
523
516
|
this.initData()
|
|
524
517
|
},
|
|
525
518
|
methods: {
|
|
526
|
-
resetComponent () {
|
|
527
|
-
this.resetcomponent = false
|
|
528
|
-
this.$nextTick(() => {
|
|
529
|
-
this.resetcomponent = true
|
|
530
|
-
this.init()
|
|
531
|
-
})
|
|
532
|
-
},
|
|
533
|
-
init () {
|
|
534
|
-
this.getIntersectionInfo(this.agentId)
|
|
535
|
-
if (this.realtimeStatusModalvisible === false) {
|
|
536
|
-
this.changeStatus()
|
|
537
|
-
}
|
|
538
|
-
this.setPropsToken(this.Token)
|
|
539
|
-
// await this.getPhase()
|
|
540
|
-
this.getFault()
|
|
541
|
-
this.initData()
|
|
542
|
-
},
|
|
543
519
|
setHost (host) {
|
|
544
520
|
// 获取组件外传入的token,便于独立组件调用接口
|
|
545
521
|
if (host && host !== '') {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
:model="manualInfo"
|
|
21
21
|
label-width="90px">
|
|
22
22
|
<el-form-item
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
:label="$t('openatccomponents.overview.greenclear')"
|
|
24
|
+
prop="intersection">
|
|
25
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="small"></el-input-number>
|
|
26
|
+
</el-form-item>
|
|
27
27
|
|
|
28
28
|
<el-form-item
|
|
29
29
|
:label="$t('openatccomponents.overview.yellowflash')"
|
|
@@ -44,11 +44,13 @@
|
|
|
44
44
|
label-position="left"
|
|
45
45
|
:model="manualInfo"
|
|
46
46
|
label-width="90px">
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
|
|
48
|
+
<el-form-item
|
|
49
|
+
:label="$t('openatccomponents.overview.duration')"
|
|
50
|
+
prop="count">
|
|
51
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="small"></el-input-number>
|
|
52
|
+
</el-form-item>
|
|
53
|
+
|
|
52
54
|
<el-form-item
|
|
53
55
|
:label="$t('openatccomponents.overview.allred')"
|
|
54
56
|
prop="intersection">
|
|
@@ -160,8 +160,7 @@
|
|
|
160
160
|
<div class="cross-content">
|
|
161
161
|
<div class="cross-name">{{$t('openatccomponents.overview.currentstage')}}:</div>
|
|
162
162
|
<div>
|
|
163
|
-
<Stages
|
|
164
|
-
:crossStatusData="crossStatusData"
|
|
163
|
+
<Stages :crossStatusData="crossStatusData"
|
|
165
164
|
:phaseList="phaseList"
|
|
166
165
|
@onSelectStages="onSelectStages"></Stages>
|
|
167
166
|
</div>
|
|
@@ -261,27 +260,8 @@ export default {
|
|
|
261
260
|
}
|
|
262
261
|
|
|
263
262
|
},
|
|
264
|
-
watch: {
|
|
265
|
-
agentId: {
|
|
266
|
-
handler: function (val1, val2) {
|
|
267
|
-
this.$nextTick(() => {
|
|
268
|
-
setTimeout(() => {
|
|
269
|
-
if (val1 !== val2) {
|
|
270
|
-
this.resetcomponent = false
|
|
271
|
-
this.$nextTick(() => {
|
|
272
|
-
this.resetcomponent = true
|
|
273
|
-
})
|
|
274
|
-
}
|
|
275
|
-
}, 100)
|
|
276
|
-
})
|
|
277
|
-
},
|
|
278
|
-
// 深度观察监听
|
|
279
|
-
deep: true
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
263
|
data () {
|
|
283
264
|
return {
|
|
284
|
-
resetcomponent: true
|
|
285
265
|
}
|
|
286
266
|
},
|
|
287
267
|
methods: {
|
package/src/kisscomps/index.js
CHANGED
|
@@ -32,7 +32,6 @@ import XiaoKanBan from './components/XiaoKanBan/index.vue'
|
|
|
32
32
|
import DirectionListConfiguration from './components/DirectionListConfiguration/index.js'
|
|
33
33
|
import IntersectionDirectionSelection from './components/IntersectionDirectionSelection/index.js'
|
|
34
34
|
import PhaseLegend from './components/PhaseLegend/index.js'
|
|
35
|
-
import OverviewComponent from './components/OverviewComponent/index.js'
|
|
36
35
|
import { setToken, setHost, setIsCheckPermission, setUserRoles, setPermissions } from '../utils/auth.js'
|
|
37
36
|
import componentsGlobalParam from '../store/modules/globalParam'
|
|
38
37
|
|
|
@@ -74,8 +73,7 @@ const components = {
|
|
|
74
73
|
PhaseDirectionSelect,
|
|
75
74
|
DirectionListConfiguration,
|
|
76
75
|
IntersectionDirectionSelection,
|
|
77
|
-
PhaseLegend
|
|
78
|
-
OverviewComponent
|
|
76
|
+
PhaseLegend
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
const language = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/src/utils/conflct.js
CHANGED
|
@@ -21,29 +21,34 @@ export async function computedRelation (id) {
|
|
|
21
21
|
(uploadData.channelGreenConflictInfo.length > 0 ? uploadData.channelGreenConflictInfo : colorArray).forEach(itemB => {
|
|
22
22
|
if (itemA.id === itemB.channelid) {
|
|
23
23
|
// 处理peddirection
|
|
24
|
-
itemA.peddirection
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
if (itemA.peddirection !== undefined) {
|
|
25
|
+
itemA.peddirection.forEach(pedDir => {
|
|
26
|
+
if (pedDir > 0) {
|
|
27
|
+
results.push({
|
|
28
|
+
direction: pedDir,
|
|
29
|
+
type: 'pedphase',
|
|
30
|
+
laneConflictList: [],
|
|
31
|
+
conflictchannel: itemB.greenconflict,
|
|
32
|
+
pedConflictList: []
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
|
|
35
38
|
// 处理phasedirection
|
|
36
|
-
itemA.phasedirection
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
if (itemA.phasedirection !== undefined) {
|
|
40
|
+
itemA.phasedirection.forEach(phaseDir => {
|
|
41
|
+
if (phaseDir > 0) {
|
|
42
|
+
results.push({
|
|
43
|
+
direction: phaseDir,
|
|
44
|
+
type: 'phase',
|
|
45
|
+
conflictchannel: itemB.greenconflict,
|
|
46
|
+
laneConflictList: [],
|
|
47
|
+
pedConflictList: []
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
}
|
|
47
52
|
}
|
|
48
53
|
})
|
|
49
54
|
})
|
|
@@ -52,9 +57,13 @@ export async function computedRelation (id) {
|
|
|
52
57
|
channel.forEach(cha => {
|
|
53
58
|
if (cha.id === aaaValue) {
|
|
54
59
|
if (cha.realtype === 'direction') {
|
|
55
|
-
|
|
60
|
+
if (cha.realdir) {
|
|
61
|
+
item.laneConflictList.push(...cha.realdir)
|
|
62
|
+
}
|
|
56
63
|
} else if (cha.realtype === 'peddirection') {
|
|
57
|
-
|
|
64
|
+
if (cha.realdir) {
|
|
65
|
+
item.pedConflictList.push(...cha.realdir)
|
|
66
|
+
}
|
|
58
67
|
}
|
|
59
68
|
}
|
|
60
69
|
})
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<intersection-with-interface AgentId="32050101041121000001" />
|
|
4
3
|
<h2 class="text">实时通道路口图</h2>
|
|
5
|
-
|
|
4
|
+
<channel-realtime-intersection
|
|
6
5
|
:agentId="this.agentId"
|
|
7
6
|
:roadDirection="roadDirection"
|
|
8
7
|
:channelRealtimeStatusData="channelRealtimeStatusData"
|
|
9
|
-
/>
|
|
8
|
+
/>
|
|
10
9
|
|
|
11
10
|
<!-- 按通道获取相位的方向选择列表,特殊路口显示列表,普通路口显示模版路口图 -->
|
|
12
11
|
<h2 class="text">非第三方配置路口图(按通道显示相位方向)</h2>
|
|
13
|
-
|
|
12
|
+
<intersection-direction-selection
|
|
14
13
|
:agentId="this.agentId"
|
|
15
14
|
:choosedDirection="[14,6,13,8]"
|
|
16
15
|
:choosedPedDirection="[1]"
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
:choosedPedDirection="[1,2]"
|
|
27
26
|
:roadDirection="roadDirection"
|
|
28
27
|
@handleClickCrossIcon="handleClickCrossIcon" />
|
|
29
|
-
</div>
|
|
28
|
+
</div>
|
|
30
29
|
|
|
31
30
|
<!-- 显示按通道获取相位的模版路口图 -->
|
|
32
31
|
<h2 class="text">显示配置的相位路口图</h2>
|
|
@@ -167,7 +166,7 @@ export default {
|
|
|
167
166
|
// agentId: '12007_390',
|
|
168
167
|
// agentId: '12014',
|
|
169
168
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
170
|
-
Token: '
|
|
169
|
+
Token: 'eyJraWQiOiIxNzIxOTc3OTkzMTY4IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcyMTk4MTU5MywiaWF0IjoxNzIxOTc0MzkzfQ.vjgAFMJlM4FEHxT9K9lJQ_VsUx1fDubr4tYgMaVffS0',
|
|
171
170
|
// agentId: '30003-352',
|
|
172
171
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
173
172
|
// 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: 'cllzpl',
|
|
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: 'eyJraWQiOiIxNzEwNzU4MTU3Njk0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiIxMjM0NTYiLCJleHAiOjE3MTM4ODgwMDAsImlhdCI6MTcxMDY5MTIwMH0.vicLABPjoZEWmHr12-5FXMbjYmEKv-WSTVRROR1eOME',
|
|
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,15 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="test1">
|
|
3
|
-
|
|
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>
|
|
11
|
-
<el-button @click="handleChangeOverview">切换overview组件</el-button>
|
|
12
|
-
<overview-component :AgentId="agentId" />
|
|
10
|
+
:Token="Token"></overview>
|
|
13
11
|
</div>
|
|
14
12
|
</template>
|
|
15
13
|
|
|
@@ -21,23 +19,12 @@ export default {
|
|
|
21
19
|
isShowMode: true,
|
|
22
20
|
modeName: '交警遥控',
|
|
23
21
|
controlName: '步进',
|
|
24
|
-
agentId: '
|
|
25
|
-
|
|
26
|
-
agentid2: '13013',
|
|
27
|
-
sum: 0,
|
|
28
|
-
Token: 'eyJraWQiOiIxNzI5ODIxNjcyNTQ3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcyOTgyNTI3MiwiaWF0IjoxNzI5ODE4MDcyfQ._C-0Cf3CQYx3tpGPAF-973Km8ekzJhAm4XwpNKFgSfk',
|
|
22
|
+
agentId: 'jmlxhl',
|
|
23
|
+
Token: 'eyJraWQiOiIxNzA4OTA5NDk2ODcxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcwODk1MjY5NiwiaWF0IjoxNzA4OTA5NDk2fQ.FI0gzBQFLyQsj95LG56lVZxb6WYlr2-datNsyv6fF-I',
|
|
29
24
|
reqUrl: 'http://192.168.13.103:10003/openatc'
|
|
30
25
|
}
|
|
31
26
|
},
|
|
32
27
|
methods: {
|
|
33
|
-
handleChangeOverview () {
|
|
34
|
-
if (this.sum % 2 === 0) {
|
|
35
|
-
this.agentId = this.agentid1
|
|
36
|
-
} else {
|
|
37
|
-
this.agentId = this.agentid2
|
|
38
|
-
}
|
|
39
|
-
this.sum++
|
|
40
|
-
}
|
|
41
28
|
},
|
|
42
29
|
watch: {
|
|
43
30
|
},
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
// 全局滚动条样式
|
|
13
13
|
::-webkit-scrollbar {
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
14
|
+
width: 12PX;
|
|
15
|
+
height: 12PX;
|
|
16
16
|
}
|
|
17
17
|
::-webkit-scrollbar-thumb {
|
|
18
18
|
// 滚动条的滑块
|
|
19
|
-
border-radius:
|
|
19
|
+
border-radius: 4px;
|
|
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: $--color-text-placeholder;
|
|
38
38
|
$--tooltip-color: $--color-white;
|
|
39
39
|
$--checkbox-font-color: $--color-text-secondary;
|
|
40
40
|
|
|
@@ -38,6 +38,9 @@
|
|
|
38
38
|
zoom: 0.9;
|
|
39
39
|
|
|
40
40
|
}
|
|
41
|
+
.centerText .text {
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
}
|
|
41
44
|
}
|
|
42
45
|
/*当屏幕小于等于1440px的屏幕样式*/
|
|
43
46
|
@media only screen and (max-width: 1440px){
|
|
@@ -46,6 +49,9 @@
|
|
|
46
49
|
zoom: 0.8;
|
|
47
50
|
|
|
48
51
|
}
|
|
52
|
+
.centerText .text {
|
|
53
|
+
font-size: 18px;
|
|
54
|
+
}
|
|
49
55
|
}
|
|
50
56
|
/*当屏幕小于等于1280px的屏幕样式*/
|
|
51
57
|
@media only screen and (max-width: 1280px){
|
|
@@ -53,6 +59,9 @@
|
|
|
53
59
|
// transform: scale(0.65);
|
|
54
60
|
zoom: 0.65;
|
|
55
61
|
}
|
|
62
|
+
.centerText .text {
|
|
63
|
+
font-size: 20px;
|
|
64
|
+
}
|
|
56
65
|
}
|
|
57
66
|
/*当屏幕小于等于960px的屏幕样式*/
|
|
58
67
|
@media only screen and (max-width: 960px){
|
|
@@ -60,6 +69,9 @@
|
|
|
60
69
|
// transform: scale(0.5);
|
|
61
70
|
zoom: 0.5;
|
|
62
71
|
}
|
|
72
|
+
.centerText .text {
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
}
|
|
63
75
|
}
|
|
64
76
|
/*当屏幕小于等于720px的屏幕样式*/
|
|
65
77
|
@media only screen and (max-width: 720px){
|
|
@@ -67,6 +79,9 @@
|
|
|
67
79
|
// transform: scale(0.45);
|
|
68
80
|
zoom: 0.45;
|
|
69
81
|
}
|
|
82
|
+
.centerText .text {
|
|
83
|
+
font-size: 14px;
|
|
84
|
+
}
|
|
70
85
|
}
|
|
71
86
|
// 小屏幕打开首页适配样式
|
|
72
87
|
.minifont {
|
|
@@ -173,9 +188,4 @@
|
|
|
173
188
|
color: $--color-text-primary;
|
|
174
189
|
font-size:30PX;
|
|
175
190
|
}
|
|
176
|
-
.centerText {
|
|
177
|
-
.text {
|
|
178
|
-
font-size: 18PX;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
191
|
}
|
|
@@ -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
|
-
$--tag-info-color:
|
|
37
|
+
// $--tag-info-color: $--color-text-placeholder;
|
|
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: 8PX;
|
|
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: center;
|
|
502
502
|
}
|
|
503
503
|
.el-input-number {
|
|
504
504
|
width: 100%;
|
|
505
505
|
.el-input__inner {
|
|
506
|
-
text-align:
|
|
506
|
+
text-align: center;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
.el-select {
|
|
@@ -540,9 +540,6 @@
|
|
|
540
540
|
}
|
|
541
541
|
.el-input-number {
|
|
542
542
|
width: 100%;
|
|
543
|
-
.el-input__inner {
|
|
544
|
-
text-align: left;
|
|
545
|
-
}
|
|
546
543
|
}
|
|
547
544
|
.el-input-number--mini{
|
|
548
545
|
width: 100%;
|