openatc-components 0.0.65 → 0.0.69

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 (32) hide show
  1. package/package/kisscomps/components/BoardCard/BoardCard.vue +1 -1
  2. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +14 -0
  3. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
  4. package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +5 -0
  5. package/package/kisscomps/components/OverLap/OverLap.vue +1 -1
  6. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +8 -7
  7. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +2 -1
  8. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +15 -9
  9. package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +971 -970
  10. package/package/kisscomps/components/StageBord/StageBord.vue +10 -11
  11. package/package/kisscomps/components/StageStatus/StageStatus.vue +2 -2
  12. package/package/kisscomps/components/overView/index.vue +26 -5
  13. package/package/kisscomps/components/patternList/patternList.vue +1 -1
  14. package/package/kissui.min.js +1 -1
  15. package/package.json +1 -1
  16. package/src/kisscomps/components/BoardCard/BoardCard.vue +1 -1
  17. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +14 -0
  18. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
  19. package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +5 -0
  20. package/src/kisscomps/components/OverLap/OverLap.vue +1 -1
  21. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +8 -7
  22. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +2 -1
  23. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +15 -9
  24. package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +971 -970
  25. package/src/kisscomps/components/StageBord/StageBord.vue +10 -11
  26. package/src/kisscomps/components/StageStatus/StageStatus.vue +2 -2
  27. package/src/kisscomps/components/overView/index.vue +26 -5
  28. package/src/kisscomps/components/patternList/patternList.vue +1 -1
  29. package/src/utils/auth.js +1 -1
  30. package/src/views/overView.vue +8 -0
  31. package/static/styles/intersection.scss +9 -0
  32. package/static/styles/schemeconfig.scss +9 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.0.65",
3
+ "version": "0.0.69",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -41,7 +41,7 @@ export default {
41
41
  },
42
42
  props: {
43
43
  contrloType: {
44
- type: Boolean
44
+ type: String
45
45
  },
46
46
  localPatternList: {
47
47
  type: Array
@@ -11,6 +11,13 @@
11
11
  **/
12
12
  <template>
13
13
  <div class="crossImg">
14
+ <div v-show="isShowState">
15
+ <div class="stateText">
16
+ <div style="border:0px solid red;float:right;">
17
+ {{stateName }}
18
+ </div>
19
+ </div>
20
+ </div>
14
21
  <div v-show="isShowMode">
15
22
  <div class="controlText">
16
23
  <div style="border:0px solid red;float:right;">
@@ -204,6 +211,10 @@ export default {
204
211
  roadDirection: {
205
212
  type: String
206
213
  },
214
+ isShowState: {
215
+ type: Boolean,
216
+ devault: false
217
+ },
207
218
  isShowMode: {
208
219
  type: Boolean,
209
220
  devault: false
@@ -299,6 +310,7 @@ export default {
299
310
  },
300
311
  data () {
301
312
  return {
313
+ stateName: '',
302
314
  roadDir: 'right', // 道路行车方向,默认右行
303
315
  phaseCountdownList: [], // 相位倒计时列表
304
316
  statusData: null, // 信号机状态
@@ -541,6 +553,7 @@ export default {
541
553
  getIntersectionInfo(agentid).then(res => {
542
554
  if (!res.data.success) {
543
555
  this.isLoaded = false
556
+ this.stateName = this.$t('openatccomponents.overview.offline')
544
557
  let parrenterror = getMessageByCode(res.data.code, this.$i18n.locale)
545
558
  if (res.data.data) {
546
559
  // 子类型错误
@@ -554,6 +567,7 @@ export default {
554
567
  }
555
568
  return
556
569
  }
570
+ this.stateName = this.$t('openatccomponents.overview.online')
557
571
  this.isLoaded = true
558
572
  this.crossInfo = res.data.data.param
559
573
  this.tempType = res.data.data.type
@@ -27,6 +27,7 @@
27
27
  :crossStatusData="crossStatusData"
28
28
  :agentId="agentId"
29
29
  :isShowInterval="isShowInterval"
30
+ :isShowState="isShowState"
30
31
  :isShowMode="isShowMode"
31
32
  :modeName="modeName"
32
33
  :controlName="controlName"
@@ -79,6 +80,10 @@ export default {
79
80
  type: String,
80
81
  default: 'right'
81
82
  },
83
+ isShowState: {
84
+ type: Boolean,
85
+ devault: false
86
+ },
82
87
  isShowMode: {
83
88
  type: Boolean,
84
89
  default: false
@@ -22,6 +22,7 @@
22
22
  :modeName="modeName !== '' ? modeName : controlData.mode"
23
23
  :controlName="controlName !== '' ? controlName : controlData.control"
24
24
  :isShowMode="isShowMode"
25
+ :isShowState="isShowState"
25
26
  :isShowInterval="isShowInterval"
26
27
  @onSelectStages="onSelectStages"/>
27
28
  </div>
@@ -72,6 +73,10 @@ export default {
72
73
  type: Boolean,
73
74
  default: true
74
75
  },
76
+ isShowState: {
77
+ type: Boolean,
78
+ devault: false
79
+ },
75
80
  isShowMode: {
76
81
  type: Boolean,
77
82
  default: false
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="overLap" v-if="checked" :style="{'width':tentative?'100%':'852px','margin':this.controlData ? '20px 0 0 0' :tentative ? '0' : '0 0 0 377px'}">
2
+ <div class="overLap" v-if="checked" :style="{'width':'100%','margin':this.controlData ? '20px 0 0 0' :tentative ? '0' : '0 40px 0 327px'}">
3
3
  <div class="ring-first" v-for="(list, index1) in this.overlapDatas" :key="index1">
4
4
  <div v-for="(item,index2) in list.stageLists" :key="index2" >
5
5
  <div class="first-2">
@@ -12,7 +12,7 @@
12
12
  <template>
13
13
  <div class="main-patternstatus">
14
14
  <!-- 环模式true -->
15
- <div v-if="!contrloType">
15
+ <div v-if="this.contrloType === 'ring' || !this.contrloType">
16
16
  <div class="ring-first" v-for="(list, index1) in patternInfo" :key="index1">
17
17
  <div v-for="(item,index2) in list" :key="index2" :class="item.controltype===99?'direction': ''">
18
18
  <div class="first-1" :style="{'width':item.greenWidth,'height':'34px','background':'#7ccc66'}">
@@ -51,7 +51,7 @@
51
51
  <div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
52
52
  </div>
53
53
  </div>
54
- <div v-if="contrloType">
54
+ <div v-if="this.contrloType === 'stage'">
55
55
  <div v-for="(list, index1) in stageLists" :key="index1">
56
56
  <!-- <div> -->
57
57
  <div class="first-1" :style="{'width':list.greenWidth,'height':'34px','background':'#7ccc66'}">
@@ -115,7 +115,7 @@ export default {
115
115
  type: Array
116
116
  },
117
117
  contrloType: {
118
- type: Boolean
118
+ type: String
119
119
  },
120
120
  phaseList: {
121
121
  type: Array
@@ -175,7 +175,7 @@ export default {
175
175
  watch: {
176
176
  controlData: {
177
177
  handler: function (val, oldVal) {
178
- if (this.contrloType) {
178
+ if (this.contrloType === 'stage') {
179
179
  this.getIndexStage()
180
180
  }
181
181
  // this.controlDatas = this.controlData
@@ -217,7 +217,7 @@ export default {
217
217
  },
218
218
  contrloType: {
219
219
  handler: function (val, oldVal) {
220
- if (this.contrloType) {
220
+ if (this.contrloType === 'stage') {
221
221
  this.getStage()
222
222
  }
223
223
  },
@@ -226,7 +226,7 @@ export default {
226
226
  },
227
227
  stagesChange: {
228
228
  handler: function (val, oldVal) {
229
- if (this.contrloType) {
229
+ if (this.contrloType === 'stage') {
230
230
  this.getStage()
231
231
  }
232
232
  },
@@ -261,7 +261,7 @@ export default {
261
261
  this.CrossDiagramMgr = new CrossDiagramMgr()
262
262
  this.getPedPhasePos()
263
263
  this.getBusPos()
264
- if (this.contrloType) {
264
+ if (this.contrloType === 'stage') {
265
265
  this.getStage()
266
266
  }
267
267
  },
@@ -743,6 +743,7 @@ export default {
743
743
  <style lang="scss" scoped>
744
744
  .main-patternstatus {
745
745
  position: relative;
746
+ margin-bottom: 20px;
746
747
  }
747
748
  .main-patternstatus {
748
749
  position: relative;
@@ -357,7 +357,8 @@ export default {
357
357
  this.patternAll = res.data.data.param.patternList
358
358
  this.patternSelect = res.data.data.param.patternList.map(item => {
359
359
  return {
360
- value: item.id
360
+ value: item.id,
361
+ desc: item.desc ? item.desc : '' + item.id ? item.id : ''
361
362
  }
362
363
  })
363
364
  })
@@ -23,11 +23,11 @@
23
23
  :label="$t('openatccomponents.overview.controlnumber') + ':'"
24
24
  prop="shape">
25
25
  <!-- <el-input-number v-model="manualInfo.tempPatternid" :controls="false" size="mini" :max="65535" :min="0" :precision="0" :step="1" :placeholder="$t('openatccomponents.common.input')"></el-input-number> -->
26
- <el-select v-model="manualInfo.tempPatternid" @change="changeStage" class="col-inner" size="small" :placeholder="$t('openatccomponents.common.select')">
26
+ <el-select v-model="manualInfo.tempPatternid" clearable @change="changeStage" class="col-inner" size="small" :placeholder="$t('openatccomponents.common.select')">
27
27
  <el-option
28
28
  v-for="item in patternSelect"
29
29
  :key="item.value"
30
- :value="item.value">
30
+ :value="item.desc">
31
31
  </el-option>
32
32
  </el-select>
33
33
  </el-form-item>
@@ -174,13 +174,19 @@ export default {
174
174
  },
175
175
  methods: {
176
176
  changeStage (value) {
177
- this.manualsStage = {}
178
- this.manuals = true
179
- let stages = []
180
- stages = this.patternAll.filter(item => {
181
- return item.id === value
182
- })[0].stages
183
- this.manualsStage.stages = stages
177
+ if (value) {
178
+ this.manualsStage = {}
179
+ this.manuals = true
180
+ let stages = []
181
+ let secletIds = isNaN(parseInt(value)) ? Number(value.replace(/[^0-9]/ig, '')) : value
182
+ stages = this.patternAll.filter(item => {
183
+ return item.id === secletIds
184
+ })[0].stages
185
+ this.manualsStage.stages = stages
186
+ } else {
187
+ this.manuals = false
188
+ this.realtimeStage = JSON.parse(JSON.stringify(this.crossStatusData))
189
+ }
184
190
  },
185
191
  handleClose () {
186
192
  this.$emit('closeManualModal')