openatc-components 0.0.6 → 0.0.13
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 +2 -2
- package/package/kisscomps/components/CommonKanban/CommonKanban.vue +12 -2
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +1 -2
- package/package/kisscomps/components/IntersectionMap/crossDirection/utils.js +2 -1
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +2 -2
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +7 -2
- package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +0 -2
- package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +7 -9
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -0
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +1 -0
- package/package/kisscomps/index.js +10 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/CommonKanban/CommonKanban.vue +12 -2
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +1 -2
- package/src/kisscomps/components/IntersectionMap/crossDirection/utils.js +2 -1
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +2 -2
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +7 -2
- package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +0 -2
- package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +7 -9
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -0
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +1 -0
- package/src/kisscomps/index.js +10 -0
- package/src/store/getters.js +1 -14
- package/src/store/index.js +2 -12
- package/src/store/modules/globalParam.js +13 -182
- package/src/views/intersection.vue +1 -1
- package/src/views/schemeconfig.vue +7 -2
- package/src/EdgeMgr/controller/globalParamsMgr.js +0 -75
- package/src/store/modules/app.js +0 -54
- package/src/store/modules/globalParamModel.js +0 -34
- package/src/store/modules/permissionRoutes.js +0 -50
- package/src/store/modules/saveAgent.js +0 -35
- package/src/store/modules/user.js +0 -133
package/config/index.js
CHANGED
|
@@ -15,8 +15,8 @@ module.exports = {
|
|
|
15
15
|
// target: 'http://192.168.13.103:8012/openatc',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
|
|
16
16
|
// target: 'http://192.168.14.2:8012/openatc',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
|
|
17
17
|
// target: 'https://dolphin-test.kedacom.com/openatc',
|
|
18
|
-
target: 'http://192.168.13.105:11003',
|
|
19
|
-
// target: 'http://192.168.13.103:10003',
|
|
18
|
+
target: 'http://192.168.13.105:11003/openatc',
|
|
19
|
+
// target: 'http://192.168.13.103:10003/openatc',
|
|
20
20
|
// target: 'http://192.168.13.103:9999',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
|
|
21
21
|
// target: 'http://192.168.13.103:9999/kissapi',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
|
|
22
22
|
changeOrigin: true, //跨域
|
|
@@ -27,7 +27,12 @@
|
|
|
27
27
|
<el-tooltip class="item" effect="dark" placement="left">
|
|
28
28
|
<div slot="content">{{element.name}}</div>
|
|
29
29
|
<div class="common-phase-description">
|
|
30
|
-
<xdrdirselector Width="40px"
|
|
30
|
+
<xdrdirselector Width="40px"
|
|
31
|
+
Height="40px"
|
|
32
|
+
:showlist="element.desc"
|
|
33
|
+
:ISActiveMask="ISActiveMask"
|
|
34
|
+
:MaskColor="MaskColor"
|
|
35
|
+
:roadDirection="roadDirection"></xdrdirselector>
|
|
31
36
|
</div>
|
|
32
37
|
</el-tooltip>
|
|
33
38
|
</div>
|
|
@@ -46,7 +51,12 @@
|
|
|
46
51
|
<div v-for="(side, index) in sidewalkPhaseData" :key="side.key + '-' + index">
|
|
47
52
|
<PatternWalkSvg v-if="element.peddirection.includes(side.id)" :Data="side" Width="38" Height="40" />
|
|
48
53
|
</div>
|
|
49
|
-
<xdrdirselector Width="40px"
|
|
54
|
+
<xdrdirselector Width="40px"
|
|
55
|
+
Height="40px"
|
|
56
|
+
:showlist="element.desc"
|
|
57
|
+
:ISActiveMask="ISActiveMask"
|
|
58
|
+
:MaskColor="MaskColor"
|
|
59
|
+
:roadDirection="roadDirection"></xdrdirselector>
|
|
50
60
|
</div>
|
|
51
61
|
</el-tooltip>
|
|
52
62
|
</div>
|
|
@@ -10,15 +10,16 @@
|
|
|
10
10
|
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
11
11
|
* See the Mulan PSL v2 for more details.
|
|
12
12
|
**/
|
|
13
|
+
// import store from '../../../../store'
|
|
13
14
|
export default class PhaseDataModel {
|
|
14
15
|
constructor (roadDirection = 'right') {
|
|
15
|
-
this.roadDirection = roadDirection
|
|
16
16
|
this.PhasePosMap = new Map()
|
|
17
17
|
this.SidePosMap = new Map()
|
|
18
18
|
this.RampMainPosMap = new Map() // 匝道主路坐标
|
|
19
19
|
this.RampSidePosMap = new Map() // 匝道支路坐标
|
|
20
20
|
this.BusMapMap = new Map() // 公交相位底图坐标
|
|
21
21
|
this.BusPhaseMap = new Map() // 公交相位坐标
|
|
22
|
+
this.roadDirection = roadDirection
|
|
22
23
|
this.Init()
|
|
23
24
|
}
|
|
24
25
|
Init () {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
**/
|
|
12
12
|
<template>
|
|
13
13
|
<div class="intersection-map">
|
|
14
|
-
<div class="crossDirection-display" :class="{
|
|
14
|
+
<div class="crossDirection-display openatc-intersection-base-map" :class="{
|
|
15
15
|
'superlargeCrossImg': bodyDomWidth <= 1680 && bodyDomWidth > 1440,
|
|
16
16
|
'largeCrossImg': bodyDomWidth <= 1440 && bodyDomWidth > 1280,
|
|
17
17
|
'middleCrossImg': bodyDomWidth <= 1280 && bodyDomWidth > 960,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
import CrossDiagram from './crossDirection/crossDiagram'
|
|
38
38
|
import { setToken } from '../../../utils/auth.js'
|
|
39
39
|
export default {
|
|
40
|
-
name: 'intersection-map',
|
|
40
|
+
name: 'intersection-base-map',
|
|
41
41
|
components: {
|
|
42
42
|
CrossDiagram
|
|
43
43
|
},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* See the Mulan PSL v2 for more details.
|
|
11
11
|
**/
|
|
12
12
|
<template>
|
|
13
|
-
<div class="scheme-config" style="height: 100%;">
|
|
13
|
+
<div class="scheme-config openatc-scheme-config" style="height: 100%;">
|
|
14
14
|
<fault-detail-modal ref="faultDetail" :agentId="agentId" @refreshFault="getFaultById"></fault-detail-modal>
|
|
15
15
|
<div style="height: 100%;">
|
|
16
16
|
<transition name="fade-right" mode="out-in"
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
:currentStage="currentStage"
|
|
28
28
|
:preselectStages="preselectStages"
|
|
29
29
|
:realtimeStatusModalvisible="realtimeStatusModalvisible"
|
|
30
|
+
:funcSort="funcSort"
|
|
30
31
|
:roadDirection="roadDirection"
|
|
31
32
|
@closeManualModal="closeManualModal"
|
|
32
33
|
@selectModel="selectModel"
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
|
|
93
94
|
<script>
|
|
94
95
|
import { putTscControl } from '../../../api/control.js'
|
|
95
|
-
import { uploadSingleTscParam } from '../../../api/param'
|
|
96
|
+
import { uploadSingleTscParam } from '../../../api/param.js'
|
|
96
97
|
import RealtimeStatusModal from './realtimeStatusModal'
|
|
97
98
|
import ManualControlModal from './manualControlModal'
|
|
98
99
|
import ClosePhaseControlModal from './closePhaselControlModal'
|
|
@@ -146,6 +147,10 @@ export default {
|
|
|
146
147
|
type: String,
|
|
147
148
|
default: ''
|
|
148
149
|
},
|
|
150
|
+
funcSort: {
|
|
151
|
+
type: String,
|
|
152
|
+
default: 'allFunc'
|
|
153
|
+
},
|
|
149
154
|
roadDirection: {
|
|
150
155
|
type: String,
|
|
151
156
|
default: 'right'
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<div class="single-model"
|
|
45
45
|
@click="selectModel(item.id)"
|
|
46
46
|
:class="(preselectModel == item.id && preselectStages == -1)? 'single-model-select' : ''"
|
|
47
|
-
v-if="
|
|
47
|
+
v-if="funcSort === 'allFunc' || (funcSort === 'basicFunc'&& basicFuncControlId.indexOf(item.id) !== -1)">
|
|
48
48
|
<svg-icon :icon-class="item.iconClass" className="model-icon"></svg-icon>
|
|
49
49
|
<div class="single-model-name">{{$t('openatccomponents.overview.modelList' + item.id)}}</div>
|
|
50
50
|
</div>
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
</div>
|
|
68
68
|
</div>
|
|
69
69
|
</div>
|
|
70
|
-
<div class="stage-label" v-if="
|
|
71
|
-
<div style="width: 100%; height: auto;overflow: hidden;" v-if="
|
|
70
|
+
<div class="stage-label" v-if="funcSort === 'allFunc'">{{$t('openatccomponents.overview.specialcontrol')}}:</div>
|
|
71
|
+
<div style="width: 100%; height: auto;overflow: hidden;" v-if="funcSort === 'allFunc'">
|
|
72
72
|
<div class="control-model" v-for="(item, index) in specialcontrolList" :key="index">
|
|
73
73
|
<div class="single-model" @click="selectSpecialStages(item.id)">
|
|
74
74
|
<svg-icon :icon-class="item.iconClass" className="closephase-icon"></svg-icon>
|
|
@@ -89,7 +89,6 @@
|
|
|
89
89
|
|
|
90
90
|
<script>
|
|
91
91
|
import xdrdirselector from '../../XRDDirSelector/XRDDirSelector'
|
|
92
|
-
import { mapState } from 'vuex'
|
|
93
92
|
export default {
|
|
94
93
|
name: 'manualControl',
|
|
95
94
|
components: {
|
|
@@ -127,15 +126,14 @@ export default {
|
|
|
127
126
|
type: Boolean,
|
|
128
127
|
default: true
|
|
129
128
|
},
|
|
129
|
+
funcSort: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: 'allFunc'
|
|
132
|
+
},
|
|
130
133
|
roadDirection: {
|
|
131
134
|
type: String
|
|
132
135
|
}
|
|
133
136
|
},
|
|
134
|
-
computed: {
|
|
135
|
-
...mapState({
|
|
136
|
-
FuncSort: state => state.globalParam.FuncSort
|
|
137
|
-
})
|
|
138
|
-
},
|
|
139
137
|
data () {
|
|
140
138
|
return {
|
|
141
139
|
basicFuncControlId: [0, 1, 4, 5], // 基础功能包含的控制方式: 自主控制(手动下)、黄闪、步进、定周期
|
|
@@ -25,6 +25,7 @@ const language = {
|
|
|
25
25
|
zh
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
const requireAll = requireContext => requireContext.keys().map(requireContext)
|
|
28
29
|
const install = function (Vue) {
|
|
29
30
|
if (install.installed) return
|
|
30
31
|
Vue.use(VTooltip)
|
|
@@ -32,6 +33,15 @@ const install = function (Vue) {
|
|
|
32
33
|
Object.keys(components).forEach(key => {
|
|
33
34
|
Vue.component(components[key].name, components[key])
|
|
34
35
|
})
|
|
36
|
+
|
|
37
|
+
const req = require.context('../icons/svg', false, /\.svg$/)
|
|
38
|
+
requireAll(req)
|
|
39
|
+
|
|
40
|
+
const urlMgr = require('../lib/publicjs/HttpurlMgr')
|
|
41
|
+
if (urlMgr.HttpUrlMgr.urlMap === undefined) {
|
|
42
|
+
let data = require('../../static/apiconfig.json')
|
|
43
|
+
urlMgr.HttpUrlMgr.init(data)
|
|
44
|
+
}
|
|
35
45
|
}
|
|
36
46
|
|
|
37
47
|
if (typeof window !== 'undefined' && window.Vue) {
|