openatc-components 0.0.23 → 0.0.26

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.
Files changed (78) hide show
  1. package/config/index.js +1 -1
  2. package/package/kisscomps/components/BoardCard/BoardCard.vue +4 -0
  3. package/package/kisscomps/components/ExpendConfig/ExpendConfig.vue +93 -0
  4. package/package/kisscomps/components/ExpendConfig/index.js +2 -0
  5. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +22 -0
  6. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +16 -12
  7. package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +244 -4
  8. package/package/kisscomps/components/KanBan/index.js +2 -0
  9. package/package/kisscomps/components/KanBan/kanban.vue +219 -0
  10. package/package/kisscomps/components/OverLap/OverLap.vue +11 -1
  11. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +14 -3
  12. package/package/kisscomps/components/PhaseMarker/index.js +6 -0
  13. package/package/kisscomps/components/PhaseMarker/phasemarker.vue +215 -0
  14. package/package/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -0
  15. package/package/kisscomps/components/PhaseMarker/svg/phase.vue +60 -0
  16. package/package/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -0
  17. package/package/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -0
  18. package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -0
  19. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +30 -3
  20. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +21 -2
  21. package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +5 -47
  22. package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +1304 -0
  23. package/package/kisscomps/components/StageBord/StageBord.vue +242 -0
  24. package/package/kisscomps/components/StageBord/index.js +2 -0
  25. package/package/kisscomps/components/StageStatus/StageStatus.vue +4 -2
  26. package/package/kisscomps/components/Stages/index.vue +86 -0
  27. package/package/kisscomps/components/overView/index.vue +656 -0
  28. package/package/kisscomps/components/patternList/patternList.vue +4 -0
  29. package/package/kisscomps/index.js +15 -1
  30. package/package/kissui.min.js +1 -1
  31. package/package.json +2 -2
  32. package/src/api/authapi.js +1 -1
  33. package/src/i18n/language/en.js +4 -1
  34. package/src/i18n/language/zh.js +4 -1
  35. package/src/icons/svg/tentativeplan.svg +33 -0
  36. package/src/kisscomps/components/BoardCard/BoardCard.vue +4 -0
  37. package/src/kisscomps/components/ExpendConfig/ExpendConfig.vue +93 -0
  38. package/src/kisscomps/components/ExpendConfig/index.js +2 -0
  39. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +22 -0
  40. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +16 -12
  41. package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +244 -4
  42. package/src/kisscomps/components/KanBan/index.js +2 -0
  43. package/src/kisscomps/components/KanBan/kanban.vue +219 -0
  44. package/src/kisscomps/components/OverLap/OverLap.vue +11 -1
  45. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +14 -3
  46. package/src/kisscomps/components/PhaseMarker/index.js +6 -0
  47. package/src/kisscomps/components/PhaseMarker/phasemarker.vue +215 -0
  48. package/src/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -0
  49. package/src/kisscomps/components/PhaseMarker/svg/phase.vue +60 -0
  50. package/src/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -0
  51. package/src/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -0
  52. package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -0
  53. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +30 -3
  54. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +21 -2
  55. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +5 -47
  56. package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +1304 -0
  57. package/src/kisscomps/components/StageBord/StageBord.vue +242 -0
  58. package/src/kisscomps/components/StageBord/index.js +2 -0
  59. package/src/kisscomps/components/StageStatus/StageStatus.vue +4 -2
  60. package/src/kisscomps/components/Stages/index.vue +86 -0
  61. package/src/kisscomps/components/overView/index.vue +656 -0
  62. package/src/kisscomps/components/patternList/patternList.vue +4 -0
  63. package/src/kisscomps/index.js +15 -1
  64. package/src/lib/publicjs/KissApi.js +2 -0
  65. package/src/main.js +2 -0
  66. package/src/router/index.js +15 -8
  67. package/src/utils/ControlFormat.js +68 -0
  68. package/src/utils/RingDataModel.js +1 -1
  69. package/src/utils/auth.js +8 -0
  70. package/src/views/home.vue +16 -1
  71. package/src/views/intersection.vue +188 -6
  72. package/src/views/overView.vue +33 -0
  73. package/src/views/schemeconfig.vue +6 -5
  74. package/static/styles/common.scss +2 -0
  75. package/static/styles/intersection.scss +18 -0
  76. package/static/styles/overview.scss +372 -0
  77. package/static/styles/schemeconfig.scss +99 -1
  78. package/static/styles/stages.scss +65 -0
@@ -11,6 +11,13 @@ import PatternStatus from './components/PatternStatus/index'
11
11
  import BoardCard from './components/BoardCard/index'
12
12
  import StageStatus from './components/StageStatus/index'
13
13
  import OverLap from './components/OverLap/index'
14
+ import Stages from './components/Stages/index'
15
+ import PhaseMarker from './components/PhaseMarker/index'
16
+ import overView from './components/overView/index'
17
+ import KanBan from './components/KanBan/index'
18
+ import StageBord from './components/StageBord/index'
19
+ import ExpendConfig from './components/ExpendConfig/index'
20
+ import tentativeplancontrolmodal from './components/SchemeConfig/tentativeplancontrolmodal/index'
14
21
 
15
22
  import en from '../i18n/language/en'
16
23
  import zh from '../i18n/language/zh'
@@ -29,7 +36,14 @@ const components = {
29
36
  OverLap,
30
37
  StageStatus,
31
38
  patternList,
32
- CommonKanban
39
+ CommonKanban,
40
+ Stages,
41
+ PhaseMarker,
42
+ overView,
43
+ KanBan,
44
+ StageBord,
45
+ ExpendConfig,
46
+ tentativeplancontrolmodal
33
47
  }
34
48
 
35
49
  const language = {
@@ -16,6 +16,7 @@ import axios from 'axios'
16
16
  import * as localStorge from './localStorage'
17
17
  import { removeToken } from '../../utils/auth'
18
18
 
19
+ axios.defaults.withCredentials = true
19
20
  export const getAxios = () => {
20
21
  return axios
21
22
  }
@@ -96,6 +97,7 @@ export class KissApi {
96
97
  }
97
98
  const config = {
98
99
  baseURL: host,
100
+ withCredentials: false,
99
101
  url: apiUrl,
100
102
  method: urlInfo.method,
101
103
  headers: this.headerInfo,
package/src/main.js CHANGED
@@ -12,6 +12,8 @@ import i18n from './i18n'
12
12
  import 'element-ui/lib/theme-chalk/index.css'
13
13
  import './icons' // icon
14
14
 
15
+ window.dev = process.env.NODE_ENV
16
+
15
17
  // 深浅主题按需加载
16
18
  import('../static/styles/dark/index.scss')
17
19
  // import('../static/styles/light/index.scss')
@@ -4,13 +4,13 @@ Vue.use(Router)
4
4
 
5
5
  export default new Router({
6
6
  routes: [
7
- {
8
- path: '/',
9
- name: 'home',
10
- component: (resolve) => {
11
- require(['@/views/home'], resolve)
12
- }
13
- },
7
+ // {
8
+ // path: '/',
9
+ // name: 'home',
10
+ // component: (resolve) => {
11
+ // require(['@/views/home'], resolve)
12
+ // }
13
+ // },
14
14
  {
15
15
  path: '/cross',
16
16
  name: 'cross',
@@ -19,11 +19,18 @@ export default new Router({
19
19
  }
20
20
  },
21
21
  {
22
- path: '/config',
22
+ path: '/',
23
23
  name: 'config',
24
24
  component: (resolve) => {
25
25
  require(['@/views/schemeconfig'], resolve)
26
26
  }
27
+ },
28
+ {
29
+ path: '/overView',
30
+ name: 'config',
31
+ component: (resolve) => {
32
+ require(['@/views/overView'], resolve)
33
+ }
27
34
  }
28
35
  ]
29
36
  })
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Copyright (c) 2020 kedacom
3
+ * OpenATC is licensed under Mulan PSL v2.
4
+ * You can use i18n 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 i18n from '../i18n/index.js'
13
+ export default class ControlFormat {
14
+ constructor (crossStatusData, phaseList) {
15
+ this.ParamsMode = new Map([[0, '自主控制'], [1, '本地手动'], [2, '平台控制'], [3, '配置软件控制'], [4, '遥控器控制'], [5, '黄闪器控制'], [6, '降级控制'], [7, '脚本控制'], [8, '算法控制']])
16
+ this.ParamsModeEn = new Map([[0, 'Autonomous Control'], [1, 'Local Manual'], [2, 'Platform Control'], [3, 'Configuration Software Control'], [4, 'Remote Control'], [5, 'Yellow Flasher Control'], [6, 'Degradation Control'], [7, 'Script Control'], [8, 'Algorithm Control']])
17
+ this.ParamsControl = new Map([[0, '多时段'], [1, '黄闪'], [2, '全红'], [3, '关灯'], [4, '步进'], [5, '定周期控制'], [6, '单点感应控制'], [7, '协调感应控制'], [8, '方案选择控制'], [9, '自适应控制'], [10, '无电缆控制'], [11, '有电缆控制'], [12, '行人过街控制'], [13, '方案恢复过渡'], [14, '相位驻留'], [15, '通道检测'], [16, '方向锁定'], [17, '韦伯斯特单点控制'], [18, '预留18'], [19, '感应式行人过街'], [20, '方案干预'], [100, '方案干预'], [21, '预留21'], [22, '相位锁定'], [23, '相位放行控制'], [24, '紧急控制'], [99, '设备维护']])
18
+ this.ParamsControlEn = new Map([[0, 'Multi Period'], [1, 'Yellow Flash Control'], [2, 'Red Control'], [3, 'Dark Control'], [4, 'Step'], [5, 'Fixed_Cycle Control'], [6, 'Free Control'], [7, 'Coordinated Induction Control'], [8, 'Pattern Selection Control'], [9, 'Adaptive Control'], [10, 'Wireless Control'], [11, 'Cable Control'], [12, 'Pedestrian Crossing Control'], [13, 'Pattern recovery'], [14, 'Phase dwell'], [15, 'Channel Detection'], [16, 'Direction lock'], [17, 'Webster Single Point Coordination'], [18, 'Reserving18'], [19, 'Inductive Pedestrian Crossing Control'], [20, 'Program Intervention'], [100, 'Program Intervention'], [21, 'Reserving21'], [22, 'Priority Control'], [23, 'Close Phase'], [24, 'Emergency Control'], [99, 'Device Mantenance']])
19
+ this.phaseType = new Map([[1, '红'], [2, '黄'], [3, '绿']]) // phaseType表示红,黄,绿
20
+ this.phaseTypeEn = new Map([[1, 'Red'], [2, 'Yellow'], [3, 'Green']]) // phaseType表示红,黄,绿
21
+ }
22
+ handleGetData (data) {
23
+ let that = this
24
+ if (data.name === '') {
25
+ if (i18n.locale === 'en') {
26
+ data.name = 'Pattern' + data.patternid
27
+ } else if (i18n.locale === 'zh') {
28
+ data.name = '方案' + data.patternid
29
+ }
30
+ }
31
+ Object.keys(data).forEach(function (key) {
32
+ if (i18n.locale === 'en') {
33
+ if (key === 'mode') {
34
+ if (data[key] > 0 && data[key] < 6) {
35
+ data[key] = that.ParamsModeEn.get(data[key])
36
+ } else {
37
+ data[key] = that.ParamsModeEn.get(0)
38
+ }
39
+ }
40
+ if (key === 'control') {
41
+ data[key] = that.ParamsControlEn.get(data[key])
42
+ }
43
+ if (key === 'phase') {
44
+ for (let val of data[key]) {
45
+ val.type = that.phaseTypeEn.get(val.type)
46
+ }
47
+ }
48
+ } else if (i18n.locale === 'zh') {
49
+ if (key === 'mode') {
50
+ if (data[key] > 0 && data[key] < 6) {
51
+ data[key] = that.ParamsMode.get(data[key])
52
+ } else {
53
+ data[key] = that.ParamsMode.get(0)
54
+ }
55
+ }
56
+ if (key === 'control') {
57
+ data[key] = that.ParamsControl.get(data[key])
58
+ }
59
+ if (key === 'phase') {
60
+ for (let val of data[key]) {
61
+ val.type = that.phaseType.get(val.type)
62
+ }
63
+ }
64
+ }
65
+ })
66
+ return data
67
+ }
68
+ }
@@ -13,7 +13,7 @@ import i18n from '../i18n/index.js'
13
13
  import PhaseDataModel from '../kisscomps/components/IntersectionMap/crossDirection/utils.js'
14
14
  import CrossDiagramMgr from '../EdgeMgr/controller/crossDiagramMgr.js'
15
15
  export default class RingDataModel {
16
- constructor (crossStatusData, phaseList) {
16
+ constructor (crossStatusData = {}, phaseList) {
17
17
  this.crossStatusData = crossStatusData
18
18
  this.phaseList = phaseList
19
19
  this.PhaseDataModel = new PhaseDataModel()
package/src/utils/auth.js CHANGED
@@ -36,6 +36,14 @@ export function removeToken () {
36
36
  return localStorage.setStorage(LoginKey, '')
37
37
  }
38
38
 
39
+ export function getStageTypes () {
40
+ let ret = localStorage.getStorage('contrloType')
41
+ if (ret === undefined || ret === null) {
42
+ return ''
43
+ }
44
+ return ret
45
+ }
46
+
39
47
  export function getHost () {
40
48
  let ret = localStorage.getStorage(LoginHost)
41
49
  if (ret === undefined || ret === null) {
@@ -1,5 +1,11 @@
1
1
  <template>
2
- <div class="wrap">
2
+ <div id="test1">
3
+ <div>
4
+ <phase-marker :params="params"
5
+ :dirshow="dirshow"
6
+ :showLevel="showLevel"
7
+ ></phase-marker>
8
+ </div>
3
9
  <xdr-dir-selector Width="300px"
4
10
  Height="300px"
5
11
  :showlist="dirshow"></xdr-dir-selector>
@@ -10,6 +16,15 @@
10
16
  export default {
11
17
  data () {
12
18
  return {
19
+ params: {
20
+ countdown: 0,
21
+ split: 0,
22
+ control: 0,
23
+ cycle: 0,
24
+ offset: 0,
25
+ curpattern: 'NO PLAN'
26
+ },
27
+ showLevel: 3,
13
28
  dirshow: [
14
29
  {
15
30
  id: 1,
@@ -1,5 +1,11 @@
1
1
  <template>
2
2
  <div>
3
+ <button @click="lockPhase" >相位锁定</button><br/>
4
+ <button @click="unlockPhase" >解锁相位</button><br/>
5
+ <button @click="changeControlPattern" >改变控制方案</button><br/>
6
+ <button @click="getPhaseInfo" >获取相位参数信息</button><br/>
7
+ <button @click="getControlInfo" >获取当前方案信息</button>
8
+ <button @click="clearInterVals" >清除定时器</button>
3
9
  <!-- <el-button type="primary" @click="handleOpenConfigPanel" style="margin: 20px;">打开路口图面板</el-button>
4
10
  <el-dialog
5
11
  refs="intersectionMapDialog"
@@ -9,26 +15,86 @@
9
15
  :close-on-click-modal="false"
10
16
  @close="oncancle"
11
17
  append-to-body> -->
12
- <intersection-with-interface
13
- ref="intersectionWithInterface"
18
+ <!-- <intersection-with-interface
19
+ ref="intersection"
14
20
  :AgentId="agentId"
15
- roadDirection="left"
21
+ :reqUrl="reqUrl"
16
22
  :Token="Token"
17
- ></intersection-with-interface>
23
+ :roadDirection="roadDirection"
24
+ :modeName="modeName"
25
+ :controlName="controlName"
26
+ :isShowMode="isShowMode"
27
+ :isShowInterval="isShowInterval"
28
+ :isShowMessage ="isShowMessage"
29
+ :isShowPatternStatus="isShowPatternStatus"
30
+ :isShowIntersection="isShowIntersection"
31
+ :isShowStages="isShowStages"
32
+ @getTscControl="getTscControl"
33
+ @registerMessage="registerMessage"
34
+ @queryDevice="queryDevice"
35
+ @onPhaseChange="onPhaseChange"
36
+ @onSelectStages="onSelectStages">
37
+ </intersection-with-interface> -->
18
38
  <!-- </el-dialog> -->
39
+ <div class="layout-container2">
40
+ <intersection-with-interface
41
+ ref="intersection"
42
+ :AgentId="agentId"
43
+ :reqUrl="reqUrl"
44
+ :Token="Token"
45
+ :roadDirection="roadDirection"
46
+ :modeName="modeName"
47
+ :controlName="controlName"
48
+ :isShowMode="isShowMode"
49
+ :isShowInterval="isShowInterval"
50
+ :isShowMessage ="isShowMessage"
51
+ :isShowPatternStatus="isShowPatternStatus"
52
+ :isShowIntersection="isShowIntersection"
53
+ :isShowStages="isShowStages"
54
+ @getTscControl="getTscControl"
55
+ @registerMessage="registerMessage"
56
+ @queryDevice="queryDevice"
57
+ @onPhaseChange="onPhaseChange"
58
+ @onSelectStages="onSelectStages">
59
+ </intersection-with-interface>
60
+ <!-- <Stages :stagesList="stagesList"
61
+ :currentStage="currentStage"
62
+ @onSelectStages="onSelectStages"></Stages> -->
63
+
64
+ <!-- 本地调试,不要删除 -->
65
+ <!-- <IntersectionWithInterface
66
+ :AgentId="agentId"
67
+ :Token="Token"/> -->
68
+
69
+ </div>
19
70
  </div>
20
71
  </template>
21
72
  <script>
73
+ import IntersectionWithInterface from '../kisscomps/components/IntersectionWithInterface'
22
74
  export default {
23
75
  name: 'demo',
24
76
  data () {
25
77
  return {
26
- Token: 'eyJraWQiOiIxNjQ5MzM4NzA5MTA0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTczODcwOSwiaWF0IjoxNjQ5MzM4NzA5fQ.JDSkpT1SbB61dEKvorhVdZJHKJzoQZEY5DPKHs1Imo0',
78
+ roadDirection: 'right',
79
+ // reqUrl: 'http://192.168.13.103:10003/openatc',
80
+ agentId: '10002-994',
81
+ reqUrl: 'http://192.168.13.105:11003/openatc',
82
+ Token: 'eyJraWQiOiIxNjUwNzMxMTY2NTQ2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNzEzMTE2NiwiaWF0IjoxNjUwNzMxMTY2fQ.qjp7-LyJdSLr29Jm0T8KAQIoPA8ldkpTg83vVvorg_s',
27
83
  boxVisible: false,
28
84
  dialogWidth: '80%',
29
- agentId: '10002-994'
85
+ modeName: '交警遥控',
86
+ controlName: '步进',
87
+ isShowMode: true,
88
+ isShowMessage: true,
89
+ isShowPatternStatus: false,
90
+ isShowIntersection: true,
91
+ isShowInterval: true,
92
+ isShowStages: true
30
93
  }
31
94
  },
95
+ components: {
96
+ IntersectionWithInterface
97
+ },
32
98
  methods: {
33
99
  oncancle () {
34
100
  this.boxVisible = false
@@ -44,6 +110,90 @@ export default {
44
110
  } else {
45
111
  this.dialogWidth = def + 'px'
46
112
  }
113
+ },
114
+ async lockPhase (reqData) {
115
+ console.log('lock')
116
+ reqData = {
117
+ 'mode': 0,
118
+ 'control': 4,
119
+ 'terminal': 1,
120
+ 'delay': null,
121
+ 'duration': null,
122
+ 'value': 1
123
+ }
124
+ let res = await this.$refs.intersection.lockPhase(reqData)
125
+ console.log(res)
126
+ console.log(reqData)
127
+ },
128
+ async unlockPhase (reqData) {
129
+ console.log('unlock')
130
+ reqData = {
131
+ 'mode': 0,
132
+ 'control': 0,
133
+ 'terminal': 1,
134
+ 'delay': null,
135
+ 'duration': null,
136
+ 'value': 0
137
+ }
138
+ let res = await this.$refs.intersection.unlockPhase(reqData)
139
+ console.log(res)
140
+ console.log(reqData)
141
+ },
142
+ async changeControlPattern (reqData) {
143
+ console.log('changeControlPattern')
144
+ reqData = {
145
+ 'mode': 0,
146
+ 'control': 1,
147
+ 'terminal': 1,
148
+ 'delay': null,
149
+ 'duration': null,
150
+ 'value': 0
151
+ }
152
+ let res = await this.$refs.intersection.changeControlPattern(reqData)
153
+ console.log(res)
154
+ console.log(reqData)
155
+ },
156
+ async getPhaseInfo () {
157
+ console.log('getPhaseInfo')
158
+ let res = await this.$refs.intersection.getPhaseInfo()
159
+ console.log(res)
160
+ return res
161
+ },
162
+ async getControlInfo () {
163
+ console.log('getControlInfo')
164
+ let res = await this.$refs.intersection.getControlInfo()
165
+ console.log(res)
166
+ return res
167
+ },
168
+ onPhaseChange (res, index) {
169
+ console.log('onPhaseChange:')
170
+ console.log(res, index)
171
+ this.stagesList = res
172
+ // this.currentStage = index;
173
+ },
174
+ getTscControl (res) {
175
+ console.log('getTscControl:')
176
+ console.log(res)
177
+ // let control = res.data.data.control
178
+ // let mode = res.data.data.mode
179
+ // console.log("control,mode:",control,mode)
180
+ // this.controlName = control
181
+ // this.modeName = mode
182
+ },
183
+ registerMessage (res) {
184
+ console.log('registerMessage')
185
+ console.log(res)
186
+ },
187
+ queryDevice (res) {
188
+ console.log('queryDevice')
189
+ console.log(res)
190
+ },
191
+ clearInterVals () {
192
+ this.$refs.intersection.clearInterVals()
193
+ },
194
+ onSelectStages (res) {
195
+ console.log('onSelectStages')
196
+ console.log(res)
47
197
  }
48
198
  },
49
199
  created () {
@@ -84,3 +234,35 @@ export default {
84
234
  }
85
235
  }
86
236
  </style>
237
+
238
+ <style scoped lang='scss'>
239
+ .layout-container {
240
+ width: 800PX;
241
+ // width: 300rem;
242
+ // height: 390PX;
243
+ border: 1PX solid red;
244
+ // color: green;
245
+ }
246
+ .layout-container1 {
247
+ // width: 12.5rem;
248
+ // height: 12.5rem;
249
+ // width: 275px;
250
+ // height: 202px;
251
+ // width: 330.33px;
252
+ // height: 242.67px;
253
+ width: 242PX;
254
+ height: 176PX;
255
+ border: 1PX solid green;
256
+ // background: green;
257
+ }
258
+ .layout-container2 {
259
+ // width: 25.6rem;
260
+ // height: 25.6rem;
261
+ // width: 600px;
262
+ height: 600px;;
263
+ width: 1020px;
264
+ border: 1PX solid yellow;
265
+ position: relative;
266
+ // background: white;
267
+ }
268
+ </style>
@@ -0,0 +1,33 @@
1
+ <template>
2
+ <div id="test1">
3
+ <overview
4
+ :AgentId="agentId"
5
+ :reqUrl="reqUrl"
6
+ :Token="Token"></overview>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ export default {
12
+ data () {
13
+ return {
14
+ agentId: '10002-994',
15
+ Token: 'eyJraWQiOiIxNjUwNzMxMTY2NTQ2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNzEzMTE2NiwiaWF0IjoxNjUwNzMxMTY2fQ.qjp7-LyJdSLr29Jm0T8KAQIoPA8ldkpTg83vVvorg_s',
16
+ reqUrl: 'http://192.168.13.105:11003/openatc'
17
+ }
18
+ },
19
+ methods: {
20
+ },
21
+ watch: {
22
+ },
23
+ mounted () {
24
+ }
25
+ }
26
+ </script>
27
+ <style scoped>
28
+ .wrap {
29
+ /* background: #333333; */
30
+ width: 100%;
31
+ height: 100%;
32
+ }
33
+ </style>
@@ -31,7 +31,8 @@
31
31
  :lockPhaseBtnName="lockPhaseBtnName"
32
32
  :statusData="crossStatusData"
33
33
  roadDirection="left"
34
- funcSort="basicFunc" />
34
+ />
35
+ <!-- funcSort="basicFunc" -->
35
36
  </el-dialog>
36
37
  </div>
37
38
  </template>
@@ -39,7 +40,7 @@
39
40
  import { getTscControl } from '../api/control.js'
40
41
  import { getMessageByCode } from '../utils/responseMessage.js'
41
42
  import {
42
- getIframdevid, setToken
43
+ setToken
43
44
  } from '../utils/auth'
44
45
  export default {
45
46
  name: 'democonfig',
@@ -47,7 +48,7 @@ export default {
47
48
  return {
48
49
  lockPhaseBtnName: this.$t('openatccomponents.overview.comfirm'),
49
50
  agentId: '10002-994',
50
- Token: 'eyJraWQiOiIxNjQ5MzM4NzA5MTA0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTczODcwOSwiaWF0IjoxNjQ5MzM4NzA5fQ.JDSkpT1SbB61dEKvorhVdZJHKJzoQZEY5DPKHs1Imo0',
51
+ Token: 'eyJraWQiOiIxNjUyODM5NzcwNjcyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczOTIzOTc3MCwiaWF0IjoxNjUyODM5NzcwfQ.1A0TkheNaATu5TttB4L2CTflV4DnzO23i8pdDRNm9lg',
51
52
  Token103: 'eyJraWQiOiIxNjQ5MzM4NzA5MTA0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTczODcwOSwiaWF0IjoxNjQ5MzM4NzA5fQ.JDSkpT1SbB61dEKvorhVdZJHKJzoQZEY5DPKHs1Imo0',
52
53
  boxVisible: false,
53
54
  dialogWidth: '80%',
@@ -74,8 +75,8 @@ export default {
74
75
  }
75
76
  },
76
77
  initData () {
77
- let iframdevid = getIframdevid()
78
- getTscControl(iframdevid).then((data) => {
78
+ // let iframdevid = getIframdevid()
79
+ getTscControl(this.agentId).then((data) => {
79
80
  if (!data.data.success) {
80
81
  if (data.data.code === '4003') {
81
82
  this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
@@ -1,6 +1,8 @@
1
1
  @import './intersection.scss';
2
2
  @import './schemeconfig.scss';
3
3
  @import './commonkanban.scss';
4
+ @import './stages.scss';
5
+ @import './overview.scss';
4
6
 
5
7
  // 全局滚动条样式
6
8
  ::-webkit-scrollbar {
@@ -141,4 +141,22 @@
141
141
  padding: 0PX;
142
142
  // zoom: 0.25;
143
143
  }
144
+ .controlText {
145
+ position:absolute;
146
+ top:20%;
147
+ left:7%;
148
+ width:25%;
149
+ height:50px;
150
+ color: $--color-text-primary;
151
+ font-size:30px;
152
+ }
153
+ .modeText {
154
+ position:absolute;
155
+ top:20%;
156
+ left:68%;
157
+ width:25%;
158
+ height:50px;
159
+ color: $--color-text-primary;
160
+ font-size:30px;
161
+ }
144
162
  }