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
@@ -3,7 +3,7 @@
3
3
  <div class="common-board-column">
4
4
  <div class="common-board-column-header" style="position:relative">
5
5
  <span>{{$t('openatccomponents.pattern.stage')+(subIndex+1)}}</span>
6
- <span v-if="contrloType" style="position: absolute;right: 0;">
6
+ <span v-if="this.contrloType === 'stage'" style="position: absolute;right: 0;">
7
7
  <el-button type="primary" @click="deleteStage(subIndex)" icon="el-icon-close"></el-button>
8
8
  </span>
9
9
  </div>
@@ -17,7 +17,7 @@
17
17
  </el-col>
18
18
  <el-col :span="12">
19
19
  <el-input-number
20
- v-if="contrloType"
20
+ v-if="this.contrloType === 'stage'"
21
21
  :controls="false"
22
22
  size="small"
23
23
  :disabled="true"
@@ -25,7 +25,7 @@
25
25
  v-model.number="stage.stageSplit">
26
26
  </el-input-number>
27
27
  <el-input-number
28
- v-if="!contrloType"
28
+ v-if="this.contrloType === 'ring' || !this.contrloType"
29
29
  :controls="false"
30
30
  size="small"
31
31
  v-model.number="stage.split"
@@ -40,7 +40,7 @@
40
40
  {{this.$t('openatccomponents.pattern.phase')}}
41
41
  </el-col>
42
42
  <el-col :span="12">
43
- <el-select v-if="contrloType" v-model="stage.phases" multiple :placeholder="$t('openatccomponents.common.select')">
43
+ <el-select v-if="this.contrloType === 'stage'" v-model="stage.stages" multiple :placeholder="$t('openatccomponents.common.select')">
44
44
  <el-option
45
45
  v-for="item in coordphaseOption"
46
46
  :key="item.value"
@@ -49,7 +49,7 @@
49
49
  </el-option>
50
50
  </el-select>
51
51
  <el-input
52
- v-if="!contrloType"
52
+ v-if="this.contrloType === 'ring' || !this.contrloType"
53
53
  size="small"
54
54
  :value="stage.stages.join(',')"
55
55
  ref="type"
@@ -57,7 +57,7 @@
57
57
  </el-input>
58
58
  </el-col>
59
59
  </el-row>
60
- <el-row :gutter="0" v-if="contrloType">
60
+ <el-row :gutter="0" v-if="this.contrloType === 'stage'">
61
61
  <el-col :span="12">
62
62
  {{this.$t('openatccomponents.pattern.green')}}
63
63
  </el-col>
@@ -70,7 +70,7 @@
70
70
  </el-input-number>
71
71
  </el-col>
72
72
  </el-row>
73
- <el-row :gutter="0" v-if="contrloType">
73
+ <el-row :gutter="0" v-if="this.contrloType === 'stage'">
74
74
  <el-col :span="12">
75
75
  {{this.$t('openatccomponents.pattern.yellow')}}
76
76
  </el-col>
@@ -83,7 +83,7 @@
83
83
  </el-input-number>
84
84
  </el-col>
85
85
  </el-row>
86
- <el-row :gutter="0" v-if="contrloType">
86
+ <el-row :gutter="0" v-if="this.contrloType === 'stage'">
87
87
  <el-col :span="12">
88
88
  {{this.$t('openatccomponents.pattern.red')}}
89
89
  </el-col>
@@ -128,8 +128,7 @@ export default {
128
128
  }
129
129
  },
130
130
  contrloType: {
131
- type: Boolean,
132
- default: false
131
+ type: String
133
132
  },
134
133
  options: {
135
134
  type: Object,
@@ -184,7 +183,7 @@ export default {
184
183
  getMaxCycle (pattern) {
185
184
  let rings = pattern.stagesList
186
185
  let stageCycleList = rings.map(item => {
187
- return item.stageSplit
186
+ return item.stageSplit ? item.stageSplit : item.split
188
187
  })
189
188
  let maxCycle = stageCycleList.reduce((a, b) => {
190
189
  return a + b
@@ -41,7 +41,7 @@ export default {
41
41
  type: Array
42
42
  },
43
43
  contrloType: {
44
- type: Boolean
44
+ type: String
45
45
  },
46
46
  localPatternList: {
47
47
  type: Array
@@ -54,7 +54,7 @@ export default {
54
54
  controlData: {
55
55
  handler: function (val, oldVal) {
56
56
  // this.handleStages() // 计算屏障高度
57
- if (this.contrloType) {
57
+ if (this.contrloType === 'stage') {
58
58
  this.getStageLine()
59
59
  } else {
60
60
  this.getPhaseId(this.controlData)
@@ -51,7 +51,7 @@
51
51
  >
52
52
  </pattern-list>
53
53
  <over-lap
54
- v-if="!contrloType"
54
+ v-if="this.contrloType === 'ring'"
55
55
  :checked="checked"
56
56
  :overlap="overlap"
57
57
  :stageList="stagesListOver"
@@ -125,7 +125,7 @@ export default {
125
125
  controlData: {},
126
126
  checked: false,
127
127
  overlap: [],
128
- contrloType: false,
128
+ contrloType: '',
129
129
  narr: [],
130
130
  patternList: [],
131
131
  allPatternList: [],
@@ -213,10 +213,10 @@ export default {
213
213
  this.setHost(this.reqUrl)
214
214
  this.PhaseDataModel = new PhaseDataModel()
215
215
  this.CrossDiagramMgr = new CrossDiagramMgr()
216
- if (getStageTypes('contrloType') === 'true') {
217
- this.contrloType = true
216
+ if (getStageTypes('isRing') === 'true') {
217
+ this.contrloType = 'stage'
218
218
  } else {
219
- this.contrloType = false
219
+ this.contrloType = 'ring'
220
220
  }
221
221
  this.globalParamModel = this.$store.getters.globalParamModel
222
222
  if (this.$route.query !== undefined && Object.keys(this.$route.query).length) {
@@ -264,6 +264,7 @@ export default {
264
264
  // this.globalParamModel.setGlobalParams(res.data.data.param)
265
265
  this.allPatternList = res.data.data.param.patternList
266
266
  this.overlap = res.data.data.param.overlaplList
267
+ this.contrloType = this.allPatternList[0].contrloType
267
268
  this.phaseList = res.data.data.param.phaseList
268
269
  this.patternList = res.data.data.param.patternList.filter(item => {
269
270
  return item.id === id
@@ -493,7 +493,7 @@ export default {
493
493
  },
494
494
  props: {
495
495
  contrloType: {
496
- type: Boolean
496
+ type: String
497
497
  },
498
498
  localPatternList: {
499
499
  type: Array
package/src/utils/auth.js CHANGED
@@ -38,7 +38,7 @@ export function removeToken () {
38
38
  }
39
39
 
40
40
  export function getStageTypes () {
41
- let ret = localStorage.getStorage('contrloType')
41
+ let ret = localStorage.getStorage('isRing')
42
42
  if (ret === undefined || ret === null) {
43
43
  return ''
44
44
  }
@@ -216,7 +216,7 @@
216
216
  }
217
217
  }
218
218
  .col-inner{
219
- width: 100% !important;
219
+ // width: 100% !important;
220
220
  }
221
221
  .model-label {
222
222
  margin-top: 14px;
@@ -243,13 +243,16 @@
243
243
  padding: 19px 30px;
244
244
  }
245
245
  .el-select {
246
- width: 75px;
246
+ // width: 75px;
247
247
  }
248
248
  .el-input {
249
- width: 50%;
249
+ // width: 50%;
250
+ }
251
+ .el-input-number--mini {
252
+ width: 180px;
250
253
  }
251
254
  .el-input-number {
252
- width: 100%;
255
+ // width: 100%;
253
256
  .el-input__inner {
254
257
  text-align: left;
255
258
  }
@@ -297,7 +300,7 @@
297
300
  margin-top: 30px;
298
301
  }
299
302
  .el-input--mini{
300
- width: 85px;
303
+ width: 90%;
301
304
  }
302
305
  .footer {
303
306
  float: right;
@@ -318,7 +321,7 @@
318
321
  padding: 19px 30px;
319
322
  }
320
323
  .el-select {
321
- width: 85px;
324
+ width: 90%;
322
325
  }
323
326
  .el-input-number {
324
327
  width: 100%;