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/package.json
CHANGED
|
@@ -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], // 基础功能包含的控制方式: 自主控制(手动下)、黄闪、步进、定周期
|
package/src/kisscomps/index.js
CHANGED
|
@@ -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) {
|
package/src/store/getters.js
CHANGED
|
@@ -10,20 +10,7 @@
|
|
|
10
10
|
* See the Mulan PSL v2 for more details.
|
|
11
11
|
**/
|
|
12
12
|
const getters = {
|
|
13
|
-
|
|
14
|
-
device: state => state.app.device,
|
|
15
|
-
token: state => state.user.token,
|
|
16
|
-
avatar: state => state.user.avatar,
|
|
17
|
-
name: state => state.user.name,
|
|
18
|
-
roles: state => state.user.roles,
|
|
19
|
-
Agent: state => state.Agent.agentid,
|
|
20
|
-
controlmode: state => state.Agent.controlmode,
|
|
21
|
-
globalParam: state => state.globalParam,
|
|
22
|
-
tscParam: state => state.globalParam.tscParam,
|
|
23
|
-
curPath: state => state.globalParam.curPath,
|
|
24
|
-
globalParamModel: state => state.globalParamModel.GlobalParamModeObject,
|
|
25
|
-
devParams: state => state.globalParamModel.devParams,
|
|
26
|
-
permissionRoutes: state => state.permissionRoutes.routers
|
|
13
|
+
// globalParam: state => state.globalParam,
|
|
27
14
|
// roadDirection: state => state.globalParam.roadDirection
|
|
28
15
|
}
|
|
29
16
|
export default getters
|
package/src/store/index.js
CHANGED
|
@@ -11,24 +11,14 @@
|
|
|
11
11
|
**/
|
|
12
12
|
import Vue from 'vue'
|
|
13
13
|
import Vuex from 'vuex'
|
|
14
|
-
import app from './modules/app'
|
|
15
|
-
import user from './modules/user'
|
|
16
14
|
import getters from './getters'
|
|
17
|
-
import
|
|
18
|
-
import globalParam from './modules/globalParam'
|
|
19
|
-
import globalParamModel from './modules/globalParamModel'
|
|
20
|
-
import permissionRoutes from './modules/permissionRoutes'
|
|
15
|
+
// import globalParam from './modules/globalParam'
|
|
21
16
|
|
|
22
17
|
Vue.use(Vuex)
|
|
23
18
|
|
|
24
19
|
const store = new Vuex.Store({
|
|
25
20
|
modules: {
|
|
26
|
-
|
|
27
|
-
user,
|
|
28
|
-
agent,
|
|
29
|
-
globalParam,
|
|
30
|
-
globalParamModel,
|
|
31
|
-
permissionRoutes
|
|
21
|
+
// globalParam
|
|
32
22
|
},
|
|
33
23
|
getters
|
|
34
24
|
})
|
|
@@ -9,188 +9,19 @@
|
|
|
9
9
|
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
10
10
|
* See the Mulan PSL v2 for more details.
|
|
11
11
|
**/
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// intersectionid: Number,
|
|
25
|
-
// siteid: '',
|
|
26
|
-
// selflearning: 0,
|
|
27
|
-
// fixintersectioninfo: '',
|
|
28
|
-
// commuport: 0,
|
|
29
|
-
// commutype: '',
|
|
30
|
-
// steptype: ''
|
|
31
|
-
// },
|
|
32
|
-
manualpanel: {
|
|
33
|
-
mingreen: 15
|
|
34
|
-
},
|
|
35
|
-
singleoptim: [
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
let defaultCopiedTscParam = null
|
|
39
|
-
try {
|
|
40
|
-
if (sessionStorage.tscParam) {
|
|
41
|
-
defaultCopiedTscParam = JSON.parse(sessionStorage.tscParam)
|
|
42
|
-
}
|
|
43
|
-
} catch (e) {
|
|
44
|
-
console.log(e)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// function getPerRouterMap (routerArr, noper, parent) {
|
|
48
|
-
// for (let per of routerArr) {
|
|
49
|
-
// if (per.name && per.name === noper) {
|
|
50
|
-
// parent.hidden = true
|
|
51
|
-
// break
|
|
52
|
-
// } else if (per.children && per.children.length) {
|
|
53
|
-
// getPerRouterMap(per.children, noper, per)
|
|
12
|
+
// const Global = {
|
|
13
|
+
// state: {
|
|
14
|
+
// roadDirection: 'right' // 当前路口行车方向:默认右行
|
|
15
|
+
// },
|
|
16
|
+
// mutations: {
|
|
17
|
+
// SET_ROAD_RIRECTION: (state, DIR) => {
|
|
18
|
+
// state.roadDirection = DIR
|
|
19
|
+
// }
|
|
20
|
+
// },
|
|
21
|
+
// actions: {
|
|
22
|
+
// SetRoadDirection ({ commit }, DIR) {
|
|
23
|
+
// commit('SET_ROAD_RIRECTION', DIR)
|
|
54
24
|
// }
|
|
55
25
|
// }
|
|
56
26
|
// }
|
|
57
|
-
|
|
58
|
-
const Global = {
|
|
59
|
-
state: {
|
|
60
|
-
tscParam: JSON.parse(JSON.stringify(tscParam)),
|
|
61
|
-
curPath: '/overview/index',
|
|
62
|
-
copiedTscParam: defaultCopiedTscParam,
|
|
63
|
-
routers: [],
|
|
64
|
-
curBodyWidth: 1920,
|
|
65
|
-
curBodyHeight: 1080,
|
|
66
|
-
FuncSort: 'allFunc',
|
|
67
|
-
hideMenu: false,
|
|
68
|
-
graphicMode: false, // 为true时,切换到图形界面模式,只显示路口图部分
|
|
69
|
-
// roadDirection: 'right', // 当前路口行车方向:默认右行
|
|
70
|
-
channelDescMap: new Map(), // 管理实时通道描述数据
|
|
71
|
-
isShowGui: true, // 总览当前是否是图形界面
|
|
72
|
-
isRefreshTankuang: 'norefresh' // 刷新某个页面的相位弹框组件
|
|
73
|
-
},
|
|
74
|
-
mutations: {
|
|
75
|
-
SAVE_PARAM: (state, data) => {
|
|
76
|
-
// let customInfo = data.customInfo
|
|
77
|
-
// data.customInfo = {
|
|
78
|
-
// ...tscParam.customInfo,
|
|
79
|
-
// ...customInfo
|
|
80
|
-
// }
|
|
81
|
-
state.tscParam = JSON.parse(JSON.stringify(data))
|
|
82
|
-
},
|
|
83
|
-
SAVE_SINGLE_PARAM: (state, param) => {
|
|
84
|
-
state.tscParam[param.type] = param.data
|
|
85
|
-
},
|
|
86
|
-
RESET_PARAM: (state) => {
|
|
87
|
-
state.tscParam = JSON.parse(JSON.stringify(tscParam))
|
|
88
|
-
},
|
|
89
|
-
SAVE_CUR_PATH: (state, path) => {
|
|
90
|
-
state.curPath = path
|
|
91
|
-
},
|
|
92
|
-
SET_COPY: (state, param) => {
|
|
93
|
-
state.copiedTscParam = param
|
|
94
|
-
sessionStorage.tscParam = JSON.stringify(param)
|
|
95
|
-
},
|
|
96
|
-
CLEAR_COPY: (state) => {
|
|
97
|
-
state.copiedTscParam = null
|
|
98
|
-
sessionStorage.removeItem('tscParam')
|
|
99
|
-
},
|
|
100
|
-
// ,
|
|
101
|
-
// SET_ROUTERS: (state, routers) => {
|
|
102
|
-
// state.routers = JSON.parse(JSON.stringify(routers))
|
|
103
|
-
// }
|
|
104
|
-
SAVE_BODY_DOM_SIZE: (state, size) => {
|
|
105
|
-
state.curBodyWidth = size.width
|
|
106
|
-
state.curBodyHeight = size.height
|
|
107
|
-
},
|
|
108
|
-
SAVE_FUNNCTION_LEVEL: (state, FUNC) => {
|
|
109
|
-
state.FuncSort = FUNC
|
|
110
|
-
},
|
|
111
|
-
SET_MENU_VISIBLE: (state, isHideMenu) => {
|
|
112
|
-
state.hideMenu = isHideMenu
|
|
113
|
-
},
|
|
114
|
-
SET_GRAPHIC_MODE: (state, isSwitchGraphicMode) => {
|
|
115
|
-
state.graphicMode = isSwitchGraphicMode
|
|
116
|
-
},
|
|
117
|
-
// SET_ROAD_RIRECTION: (state, DIR) => {
|
|
118
|
-
// state.roadDirection = DIR
|
|
119
|
-
// },
|
|
120
|
-
SET_CHANNEL_DESC: (state, descmap) => {
|
|
121
|
-
state.channelDescMap = descmap
|
|
122
|
-
},
|
|
123
|
-
CLEAR_MANUAL_PANEL: (state) => {
|
|
124
|
-
state.tscParam.manualpanel = tscParam.manualpanel
|
|
125
|
-
},
|
|
126
|
-
SET_SHOW_GUI: (state, isShowGui) => {
|
|
127
|
-
state.isShowGui = isShowGui
|
|
128
|
-
},
|
|
129
|
-
SET_ISREFRESHTANKUANG: (state, isRefreshTankuang) => {
|
|
130
|
-
state.isRefreshTankuang = isRefreshTankuang
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
actions: {
|
|
134
|
-
SaveTscParam ({ commit }, data) {
|
|
135
|
-
commit('SAVE_PARAM', data)
|
|
136
|
-
},
|
|
137
|
-
SaveSingleParam ({ commit }, param) {
|
|
138
|
-
commit('SAVE_SINGLE_PARAM', param)
|
|
139
|
-
},
|
|
140
|
-
ResetTscParam ({ commit }) {
|
|
141
|
-
commit('RESET_PARAM')
|
|
142
|
-
},
|
|
143
|
-
SaveCurPath ({ commit }, path) {
|
|
144
|
-
commit('SAVE_CUR_PATH', path)
|
|
145
|
-
},
|
|
146
|
-
SetCopy ({ commit }, data) {
|
|
147
|
-
commit('SET_COPY', data)
|
|
148
|
-
},
|
|
149
|
-
ClearCopy ({ commit }) {
|
|
150
|
-
commit('CLEAR_COPY')
|
|
151
|
-
},
|
|
152
|
-
// GenerateRoutes ({
|
|
153
|
-
// commit
|
|
154
|
-
// }, {curRoutes, noPermission}) {
|
|
155
|
-
// // 生成路由(仅支持sidebar一级菜单的隐藏)
|
|
156
|
-
// // noPermission: Array 需要隐藏的路由name属性组成的数组
|
|
157
|
-
// if (noPermission && noPermission.length) {
|
|
158
|
-
// let perRouter = JSON.parse(JSON.stringify(curRoutes))
|
|
159
|
-
// noPermission.forEach(noper => {
|
|
160
|
-
// getPerRouterMap(perRouter, noper)
|
|
161
|
-
// })
|
|
162
|
-
// commit('SET_ROUTERS', perRouter)
|
|
163
|
-
// } else {
|
|
164
|
-
// commit('SET_ROUTERS', curRoutes)
|
|
165
|
-
// }
|
|
166
|
-
// }
|
|
167
|
-
SaveBodyDomSize ({ commit }, size) {
|
|
168
|
-
commit('SAVE_BODY_DOM_SIZE', size)
|
|
169
|
-
},
|
|
170
|
-
SaveFunctionLevel ({ commit }, FUNC) {
|
|
171
|
-
commit('SAVE_FUNNCTION_LEVEL', FUNC)
|
|
172
|
-
},
|
|
173
|
-
SetMenuVisible ({ commit }, isHideMenu) {
|
|
174
|
-
commit('SET_MENU_VISIBLE', isHideMenu)
|
|
175
|
-
},
|
|
176
|
-
SetGraphicMode ({ commit }, isSwitchGraphicMode) {
|
|
177
|
-
commit('SET_GRAPHIC_MODE', isSwitchGraphicMode)
|
|
178
|
-
},
|
|
179
|
-
// SetRoadDirection ({ commit }, DIR) {
|
|
180
|
-
// commit('SET_ROAD_RIRECTION', DIR)
|
|
181
|
-
// },
|
|
182
|
-
SetChannelDesc ({ commit }, descmap) {
|
|
183
|
-
commit('SET_CHANNEL_DESC', descmap)
|
|
184
|
-
},
|
|
185
|
-
ClearManualPanel ({ commit }) {
|
|
186
|
-
commit('CLEAR_MANUAL_PANEL')
|
|
187
|
-
},
|
|
188
|
-
SetShowGui ({ commit }, isShowGui) {
|
|
189
|
-
commit('SET_SHOW_GUI', isShowGui)
|
|
190
|
-
},
|
|
191
|
-
SetRefreshTankuang ({ commit }, isRefreshTankuang) {
|
|
192
|
-
commit('SET_ISREFRESHTANKUANG', isRefreshTankuang)
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
export default Global
|
|
27
|
+
// export default Global
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
ref="intersectionWithInterface"
|
|
14
14
|
:AgentId="agentId"
|
|
15
15
|
roadDirection="left"
|
|
16
|
-
Token="
|
|
16
|
+
Token="eyJraWQiOiIxNjQ4ODYzOTI2NjA4IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTI2MzkyNiwiaWF0IjoxNjQ4ODYzOTI2fQ.IQZ7m9_lNOVQ4H2icGKKWc84KKSWYUF9OUEJvYgjIgw"
|
|
17
17
|
></intersection-with-interface>
|
|
18
18
|
</el-dialog>
|
|
19
19
|
</div>
|
|
@@ -20,12 +20,17 @@
|
|
|
20
20
|
:close-on-click-modal="false"
|
|
21
21
|
@close="oncancle"
|
|
22
22
|
append-to-body>
|
|
23
|
+
<!-- <scheme-config
|
|
24
|
+
ref="rightpanel"
|
|
25
|
+
agentId="10001-928"
|
|
26
|
+
:statusData="crossStatusData"
|
|
27
|
+
:realtimeStatusModalvisible="false" /> -->
|
|
23
28
|
<scheme-config
|
|
24
29
|
ref="rightpanel"
|
|
25
30
|
agentId="10001-928"
|
|
26
|
-
roadDirection="right"
|
|
27
31
|
:statusData="crossStatusData"
|
|
28
|
-
|
|
32
|
+
roadDirection="left"
|
|
33
|
+
funcSort="basicFunc" />
|
|
29
34
|
</el-dialog>
|
|
30
35
|
</div>
|
|
31
36
|
</template>
|
|
@@ -1,75 +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
|
-
// 该类是对全局对象tscParam操作的管理
|
|
13
|
-
import EdgeModelBase from '../../EdgeMgr/EdgeModelBase'
|
|
14
|
-
import store from '../../store/index'
|
|
15
|
-
|
|
16
|
-
export default class GlobalParamsMgr extends EdgeModelBase {
|
|
17
|
-
constructor () {
|
|
18
|
-
super('GlobalParamsMgr')
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
Init () {
|
|
22
|
-
store.dispatch('InitGlobalParamModel', this)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
setGlobalParams (globalData) {
|
|
26
|
-
// 设置全局变量,操作store
|
|
27
|
-
store.dispatch('SaveTscParam', globalData)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
setSingleParam (param) {
|
|
31
|
-
store.dispatch('SaveSingleParam', param)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
getGlobalParams () {
|
|
35
|
-
return store.getters.tscParam
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
getParamsByType (key) {
|
|
39
|
-
// 获取全局对象的某个字段的数据
|
|
40
|
-
return store.getters.tscParam[key]
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
getParamLength (key) {
|
|
44
|
-
// 获取全局对象的某个字段数据的长度
|
|
45
|
-
return store.getters.tscParam[key].length
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
addParamsByType (key, payload) {
|
|
49
|
-
store.getters.tscParam[key].push(payload)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
deleteParamsByType (key, index, num) {
|
|
53
|
-
store.getters.tscParam[key].splice(index, num)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
reset () {
|
|
57
|
-
store.dispatch('ResetTscParam')
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
deleteChildrenParamsById (key, id, fieldchild) {
|
|
61
|
-
store.getters.tscParam[key].forEach(ele => {
|
|
62
|
-
ele[fieldchild].forEach((child, index) => {
|
|
63
|
-
if (child.channelid === id) {
|
|
64
|
-
ele[fieldchild].splice(index, 1)
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
deleteAllChildrenParams (key, fieldchild) {
|
|
71
|
-
store.getters.tscParam[key].forEach(ele => {
|
|
72
|
-
ele[fieldchild] = []
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
}
|
package/src/store/modules/app.js
DELETED
|
@@ -1,54 +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 Cookies from 'js-cookie'
|
|
13
|
-
|
|
14
|
-
const app = {
|
|
15
|
-
state: {
|
|
16
|
-
sidebar: {
|
|
17
|
-
opened: !+Cookies.get('sidebarStatus'),
|
|
18
|
-
withoutAnimation: false
|
|
19
|
-
},
|
|
20
|
-
device: 'desktop'
|
|
21
|
-
},
|
|
22
|
-
mutations: {
|
|
23
|
-
TOGGLE_SIDEBAR: state => {
|
|
24
|
-
if (state.sidebar.opened) {
|
|
25
|
-
Cookies.set('sidebarStatus', 1)
|
|
26
|
-
} else {
|
|
27
|
-
Cookies.set('sidebarStatus', 0)
|
|
28
|
-
}
|
|
29
|
-
state.sidebar.opened = !state.sidebar.opened
|
|
30
|
-
state.sidebar.withoutAnimation = false
|
|
31
|
-
},
|
|
32
|
-
CLOSE_SIDEBAR: (state, withoutAnimation) => {
|
|
33
|
-
Cookies.set('sidebarStatus', 1)
|
|
34
|
-
state.sidebar.opened = false
|
|
35
|
-
state.sidebar.withoutAnimation = withoutAnimation
|
|
36
|
-
},
|
|
37
|
-
TOGGLE_DEVICE: (state, device) => {
|
|
38
|
-
state.device = device
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
actions: {
|
|
42
|
-
ToggleSideBar: ({ commit }) => {
|
|
43
|
-
commit('TOGGLE_SIDEBAR')
|
|
44
|
-
},
|
|
45
|
-
CloseSideBar ({ commit }, { withoutAnimation }) {
|
|
46
|
-
commit('CLOSE_SIDEBAR', withoutAnimation)
|
|
47
|
-
},
|
|
48
|
-
ToggleDevice ({ commit }, device) {
|
|
49
|
-
commit('TOGGLE_DEVICE', device)
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export default app
|
|
@@ -1,34 +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
|
-
const GlobalParamModel = {
|
|
13
|
-
state: {
|
|
14
|
-
GlobalParamModeObject: Object,
|
|
15
|
-
devParams: Object
|
|
16
|
-
},
|
|
17
|
-
mutations: {
|
|
18
|
-
SET_GLOBAL_PARAM_MODEL: (state, obj) => {
|
|
19
|
-
state.GlobalParamModeObject = obj
|
|
20
|
-
},
|
|
21
|
-
SAVE_DEVPARAMS: (state, info) => {
|
|
22
|
-
state.devParams = info
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
actions: {
|
|
26
|
-
InitGlobalParamModel ({ commit }, obj) {
|
|
27
|
-
commit('SET_GLOBAL_PARAM_MODEL', obj)
|
|
28
|
-
},
|
|
29
|
-
SaveDevParams ({ commit }, info) {
|
|
30
|
-
commit('SAVE_DEVPARAMS', info)
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export default GlobalParamModel
|