openatc-components 0.0.91 → 0.0.92

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.0.91",
3
+ "version": "0.0.92",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -9,6 +9,7 @@
9
9
  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
+ <!--静态渠化路口,需要传入路口状态数据和检测器状态数据-->
12
13
  <template>
13
14
  <div class="show-channelization" :class="{
14
15
  'superlargeCrossImg': bodyDomWidth <= 1680 && bodyDomWidth > 1440,
@@ -9,7 +9,7 @@
9
9
  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
- <!--动态路口图,只需要设备AgentId,此组件会处理方案状态接口轮询-->
12
+ <!--动态渠化路口图,只需要设备AgentId,此组件会处理方案状态接口轮询-->
13
13
  <template>
14
14
  <div class="channelization-with-interface">
15
15
  <Channelization
@@ -24,7 +24,7 @@ import Channelization from '../Channelization/Channelization'
24
24
  import { getMessageByCode } from '../../../utils/responseMessage'
25
25
  import { getTscControl, queryDevice, putTscControl } from '../../../api/control.js'
26
26
  import { registerMessage, uploadSingleTscParam } from '../../../api/param'
27
- import { getIframdevid, setIframdevid, setToken, setHost } from '../../../utils/auth.js'
27
+ import { setIframdevid, setToken, setHost } from '../../../utils/auth.js'
28
28
  import ControlFormat from '../../../utils/ControlFormat.js'
29
29
  import { getDetectorStatus } from '../../../api/cross'
30
30
  export default {
@@ -56,31 +56,27 @@ export default {
56
56
  Token: {
57
57
  type: String,
58
58
  default: ''
59
- },
60
- roadDirection: {
61
- type: String,
62
- default: 'right'
63
- },
64
- isShowInterval: {
65
- type: Boolean,
66
- default: true
67
- },
68
- isShowState: {
69
- type: Boolean,
70
- devault: false
71
- },
72
- isShowMode: {
73
- type: Boolean,
74
- default: false
75
- },
76
- modeName: {
77
- type: String,
78
- default: ''
79
- },
80
- controlName: {
81
- type: String,
82
- default: ''
83
59
  }
60
+ // isShowInterval: {
61
+ // type: Boolean,
62
+ // default: true
63
+ // },
64
+ // isShowState: {
65
+ // type: Boolean,
66
+ // devault: false
67
+ // },
68
+ // isShowMode: {
69
+ // type: Boolean,
70
+ // default: false
71
+ // },
72
+ // modeName: {
73
+ // type: String,
74
+ // default: ''
75
+ // },
76
+ // controlName: {
77
+ // type: String,
78
+ // default: ''
79
+ // }
84
80
  },
85
81
  watch: {
86
82
  AgentId: {
@@ -154,8 +150,8 @@ export default {
154
150
  },
155
151
  initData () {
156
152
  this.intervalFlag = false
157
- let iframdevid = getIframdevid()
158
- console.log(iframdevid)
153
+ // let iframdevid = getIframdevid()
154
+ // console.log(iframdevid)
159
155
  let startTime = new Date().getTime()
160
156
  getTscControl(this.AgentId).then((data) => {
161
157
  let endTime = new Date().getTime()
@@ -9,6 +9,7 @@
9
9
  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
+ <!--渠化绘制功能-->
12
13
  <template>
13
14
  <div class="custom-cross" v-if="visible">
14
15
  <ImportDialog ref="importDialog" @loadSvgString="loadSvgString"/>
@@ -9,6 +9,7 @@
9
9
  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
+ <!--完整渠化编辑功能,包含导入-->
12
13
  <template>
13
14
  <div class="custom-cross-part">
14
15
  <FirstImportCrossmap v-if="pageindex === 1"
@@ -67,7 +67,12 @@
67
67
  :Token="Token"/> -->
68
68
 
69
69
  <channelization-with-interface
70
- :AgentId="agentId" />
70
+ ref="channelization"
71
+ :AgentId="agentId"
72
+ :reqUrl="reqUrl"
73
+ :Token="Token"
74
+ @getTscControl="getTscControl"
75
+ @onPhaseChange="onPhaseChange"/>
71
76
  <!-- <ChannelizationWithInterface
72
77
  :AgentId="agentId" /> -->
73
78
  </div>
@@ -178,11 +183,10 @@ export default {
178
183
  console.log('onPhaseChange:')
179
184
  console.log(res, index)
180
185
  this.stagesList = res
181
- // this.currentStage = index;
186
+ // this.currentStage = index
182
187
  },
183
188
  getTscControl (res) {
184
- console.log('getTscControl:')
185
- console.log(res)
189
+ console.log('getTscControl:', res)
186
190
  // let control = res.data.data.control
187
191
  // let mode = res.data.data.mode
188
192
  // console.log("control,mode:",control,mode)
@@ -190,12 +194,10 @@ export default {
190
194
  // this.modeName = mode
191
195
  },
192
196
  registerMessage (res) {
193
- console.log('registerMessage')
194
- console.log(res)
197
+ console.log('registerMessage:', res)
195
198
  },
196
199
  queryDevice (res) {
197
- console.log('queryDevice')
198
- console.log(res)
200
+ console.log('queryDevice:', res)
199
201
  },
200
202
  clearInterVals () {
201
203
  this.$refs.intersection.clearInterVals()