openatc-components 0.0.64 → 0.0.67

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 (24) hide show
  1. package/package/kisscomps/components/BoardCard/BoardCard.vue +1 -1
  2. package/package/kisscomps/components/OverLap/OverLap.vue +1 -1
  3. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +8 -7
  4. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +2 -1
  5. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +4 -2
  6. package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +971 -970
  7. package/package/kisscomps/components/StageBord/StageBord.vue +10 -11
  8. package/package/kisscomps/components/StageStatus/StageStatus.vue +2 -2
  9. package/package/kisscomps/components/overView/index.vue +6 -5
  10. package/package/kisscomps/components/patternList/patternList.vue +1 -1
  11. package/package/kissui.min.js +1 -1
  12. package/package.json +1 -1
  13. package/src/kisscomps/components/BoardCard/BoardCard.vue +1 -1
  14. package/src/kisscomps/components/OverLap/OverLap.vue +1 -1
  15. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +8 -7
  16. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +2 -1
  17. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +4 -2
  18. package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +971 -970
  19. package/src/kisscomps/components/StageBord/StageBord.vue +10 -11
  20. package/src/kisscomps/components/StageStatus/StageStatus.vue +2 -2
  21. package/src/kisscomps/components/overView/index.vue +6 -5
  22. package/src/kisscomps/components/patternList/patternList.vue +1 -1
  23. package/src/utils/auth.js +1 -1
  24. package/static/styles/schemeconfig.scss +9 -6
@@ -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
@@ -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':tentative?'100%':'852px','margin':this.controlData ? '20px 0 0 0' :tentative ? '0' : '0 40 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
  })
@@ -27,7 +27,7 @@
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,10 +174,12 @@ export default {
174
174
  },
175
175
  methods: {
176
176
  changeStage (value) {
177
+ this.manualsStage = {}
177
178
  this.manuals = true
178
179
  let stages = []
180
+ let secletIds = isNaN(parseInt(value)) ? Number(value.replace(/[^0-9]/ig, '')) : value
179
181
  stages = this.patternAll.filter(item => {
180
- return item.id === value
182
+ return item.id === secletIds
181
183
  })[0].stages
182
184
  this.manualsStage.stages = stages
183
185
  },