openatc-components 0.1.138 → 0.1.141

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 (29) hide show
  1. package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +1 -1
  2. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +1 -1
  3. package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +54 -13
  4. package/package/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +8 -8
  5. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +2 -0
  6. package/package/kisscomps/components/Stages/index.vue +32 -2
  7. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +7 -4
  8. package/package/kisscomps/components/XiaoKanban/index.vue +2 -1
  9. package/package/kisscomps/components/patternConfig/index.vue +35 -45
  10. package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +10 -52
  11. package/package/kissui.min.js +1 -1
  12. package/package.json +1 -1
  13. package/src/api/control.js +4 -0
  14. package/src/i18n/language/en.js +25 -1
  15. package/src/i18n/language/zh.js +9 -1
  16. package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +1 -1
  17. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +1 -1
  18. package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +54 -13
  19. package/src/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +8 -8
  20. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +2 -0
  21. package/src/kisscomps/components/Stages/index.vue +32 -2
  22. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +7 -4
  23. package/src/kisscomps/components/XiaoKanban/index.vue +2 -1
  24. package/src/kisscomps/components/patternConfig/index.vue +35 -45
  25. package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +10 -52
  26. package/src/utils/auth.js +13 -5
  27. package/src/views/patternConfig.vue +10 -3
  28. package/static/apiconfig.json +5 -0
  29. package/src/kisscomps/components/patternConfig/components/planExecute.vue +0 -972
@@ -50,7 +50,7 @@
50
50
  <el-tooltip class="item" effect="dark" placement="left">
51
51
  <div slot="content">{{element.name}}</div>
52
52
  <div class="common-phase-description">
53
- <xdrdirselector Width="60px" Height="60px" Widths="50px" Heights="50px" :Data="showStyle" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
53
+ <xdrdirselector Width="60px" Height="60px" Widths="50px" Heights="50px" :Data="showStyle" :Datas="showStyle" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
54
54
  </div>
55
55
  </el-tooltip>
56
56
  </el-col>
@@ -727,7 +727,7 @@ export default {
727
727
  return
728
728
  }
729
729
  }
730
- this.$alert(this.$t('openatccomponents.common.download'), { type: 'success' })
730
+ this.$message.success(this.$t('openatccomponents.common.download'))
731
731
  }).catch(error => {
732
732
  this.unlockScreen()
733
733
  console.log(error)
@@ -59,7 +59,7 @@
59
59
  <div style="margin-top:20px" class="model-label-title">{{currentName}}{{$t('openatccomponents.overview.currentphase')}}:</div>
60
60
  <div class="control-model" v-for="(item, index) in sidewalkPhaseData" :key="index">
61
61
  <div style="position:relative;" class="single-model">
62
- <xdr-dir-selector Width="50PX" Height="50PX" Widths="50PX" Heights="50PX" :Data="showStyle" :showlist="item"></xdr-dir-selector>
62
+ <xdr-dir-selector Width="75PX" Height="75PX" Widths="65PX" Heights="65PX" :Data="showStyle" :Datas="showStyles" :showlist="item"></xdr-dir-selector>
63
63
  <div style="height:65px;display:flex;flex-direction:row;justify-content:center;align-items:end;">
64
64
  <div class="current-stage-num" style="width:20%;">{{index + 1}}</div>
65
65
  <div style="width:70%;">
@@ -102,7 +102,7 @@
102
102
  <script>
103
103
  import { getPhase } from './utils'
104
104
  import { getIframdevid } from '../../../../utils/auth'
105
- import { getlockPhase, lockPhase } from '../../../../api/control'
105
+ import { getlockPhase, lockPhase, getAllDerection } from '../../../../api/control'
106
106
  import Stages from '../../Stages/index'
107
107
  import RingDataModel from '../../../../utils/RingDataModel.js'
108
108
  import { getMessageByCode } from '../../../../utils/responseMessage'
@@ -142,18 +142,25 @@ export default {
142
142
  obj.name = this.$t(obj.name)
143
143
  arrays.push(obj)
144
144
  })
145
- return arrays
145
+ let arr1Ids = this.allDirection.map(item => item.id)
146
+ const result = arrays.filter(item => arr1Ids.includes(item.id))
147
+ return result
146
148
  }
147
149
  },
148
150
  data () {
149
151
  return {
150
152
  showStyle: {
153
+ top: '7PX',
154
+ left: '13px'
155
+ },
156
+ showStyles: {
151
157
  top: '5PX',
152
- left: '14px'
158
+ left: '12px'
153
159
  },
154
160
  sidewalkPhaseData: [],
155
161
  currentName: '',
156
162
  lockList: [],
163
+ allDirection: [],
157
164
  patternCycleEqual: true,
158
165
  spanIndex: [],
159
166
  directions: [],
@@ -167,25 +174,59 @@ export default {
167
174
  }
168
175
  },
169
176
  created () {
177
+ this.getAllDerection()
170
178
  },
171
179
  methods: {
172
180
  checkId (val) {
173
181
  if (val.id === 1) {
174
- return 2
175
- } else if (val.id === 5) {
176
182
  return 1
183
+ } else if (val.id === 5) {
184
+ return 2
177
185
  } else if (val.id === 13) {
178
- return 4
179
- } else if (val.id === 9) {
180
186
  return 3
187
+ } else if (val.id === 9) {
188
+ return 4
181
189
  } else if (val.id === 17) {
182
- return 8
190
+ return 6
183
191
  } else if (val.id === 21) {
184
- return 5
185
- } else if (val.id === 25) {
186
192
  return 7
193
+ } else if (val.id === 25) {
194
+ return 5
187
195
  } else if (val.id === 29) {
188
- return 6
196
+ return 8
197
+ }
198
+ },
199
+ getAllDerection () {
200
+ let iframdevid = getIframdevid()
201
+ getAllDerection(iframdevid).then((res) => {
202
+ if (res.data.success !== true) {
203
+ this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
204
+ return
205
+ }
206
+ this.allDirection = res.data.data.map(item => {
207
+ return {
208
+ id: this.checkDirection(item.direction)
209
+ }
210
+ })
211
+ })
212
+ },
213
+ checkDirection (id) {
214
+ if (id === 1) {
215
+ return 1
216
+ } else if (id === 2) {
217
+ return 5
218
+ } else if (id === 3) {
219
+ return 13
220
+ } else if (id === 4) {
221
+ return 9
222
+ } else if (id === 5) {
223
+ return 25
224
+ } else if (id === 6) {
225
+ return 17
226
+ } else if (id === 7) {
227
+ return 21
228
+ } else if (id === 8) {
229
+ return 29
189
230
  }
190
231
  },
191
232
  getLockPhase (val) {
@@ -248,7 +289,7 @@ export default {
248
289
  this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
249
290
  return
250
291
  }
251
- this.$alert(this.$t('openatccomponents.common.download'), { type: 'success' })
292
+ this.$message.success(this.$t('openatccomponents.common.download'))
252
293
  // if (res.data.success !== true) {
253
294
  // this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
254
295
  // }
@@ -14,56 +14,56 @@ let images = [
14
14
  {
15
15
  id: 1,
16
16
  // name: 'East-Straight',
17
- name: 'openatccomponents.overview.es',
17
+ name: 'openatccomponents.overview.dong',
18
18
  // img: require('./images/East-Straight.svg'),
19
19
  class: 'iconfont icon-dongzhihang'
20
20
  },
21
21
  {
22
22
  id: 5,
23
23
  // name: 'West-Straight',
24
- name: 'openatccomponents.overview.ws',
24
+ name: 'openatccomponents.overview.xi',
25
25
  // img: require('./images/West-Straight.svg'),
26
26
  class: 'iconfont icon-xizhihang'
27
27
  },
28
28
  {
29
29
  id: 13,
30
30
  // name: 'South-Straight',
31
- name: 'openatccomponents.overview.ss',
31
+ name: 'openatccomponents.overview.nan',
32
32
  // img: require('./images/South-Straight.svg'),
33
33
  class: 'iconfont icon-nanzhihang'
34
34
  },
35
35
  {
36
36
  id: 9,
37
37
  // name: 'North-Straight',
38
- name: 'openatccomponents.overview.ns',
38
+ name: 'openatccomponents.overview.bei',
39
39
  // img: require('./images/North-Straight.svg'),
40
40
  class: 'iconfont icon-beizhihang'
41
41
  },
42
42
  {
43
43
  id: 17,
44
44
  // name: 'South-Back',
45
- name: 'openatccomponents.overview.ses',
45
+ name: 'openatccomponents.overview.dongnan',
46
46
  // img: require('./images/South-Back.svg'),
47
47
  class: 'iconfont icon-dongnanzhihang'
48
48
  },
49
49
  {
50
50
  id: 21,
51
51
  // name: 'South-Back',
52
- name: 'openatccomponents.overview.sws',
52
+ name: 'openatccomponents.overview.xinan',
53
53
  // img: require('./images/South-Back.svg'),
54
54
  class: 'iconfont icon-xinanzhihang'
55
55
  },
56
56
  {
57
57
  id: 25,
58
58
  // name: 'South-Back',
59
- name: 'openatccomponents.overview.nes',
59
+ name: 'openatccomponents.overview.dongbei',
60
60
  // img: require('./images/South-Back.svg'),
61
61
  class: 'iconfont icon-dongbeizhihang'
62
62
  },
63
63
  {
64
64
  id: 29,
65
65
  // name: 'South-Back',
66
- name: 'openatccomponents.overview.nws',
66
+ name: 'openatccomponents.overview.xibei',
67
67
  // img: require('./images/South-Back.svg'),
68
68
  class: 'iconfont icon-xibeizhihang'
69
69
  }
@@ -62,6 +62,8 @@
62
62
  <div style="width: 100%; height: auto;overflow: hidden;" v-if="isHasPermission('configer:manual:dwell')">
63
63
  <Stages :crossStatusData="manuals?manualsStage:realtimeStage"
64
64
  :phaseList="phaseList"
65
+ :preselectStages="preselectStages"
66
+ :preselectModel="preselectModel"
65
67
  :isShowCurrentStage="false"
66
68
  @onSelectStages="selectStages"></Stages>
67
69
  </div>
@@ -28,7 +28,7 @@
28
28
  :showWalk="item[0].peddirection"
29
29
  :Width="'40'"
30
30
  :Height="'40'" /> -->
31
- <xdr-dir-selector Width="50PX" Height="50PX" Widths="50px" Heights="50px" :Data="showStyle" :showlist="item"></xdr-dir-selector>
31
+ <xdr-dir-selector Width="75PX" Height="75PX" Widths="65px" Heights="65px" :Data="showStyle" :Datas="showStyles" :showlist="item"></xdr-dir-selector>
32
32
  <div style="height:65px;display:flex;flex-direction:row;justify-content:center;align-items:end;">
33
33
  <div class="current-stage-num" style="width:20%;">{{index + 1}}</div>
34
34
  <div style="width:70%;">
@@ -80,6 +80,14 @@ export default {
80
80
  type: Number,
81
81
  default: -1
82
82
  },
83
+ preselectStages:{
84
+ type: Number,
85
+ default: -1
86
+ },
87
+ preselectModel:{
88
+ type: Number,
89
+ default: -1
90
+ },
83
91
  presetPhaseId: {
84
92
  type: Number,
85
93
  default: -1
@@ -100,8 +108,12 @@ export default {
100
108
  data () {
101
109
  return {
102
110
  showStyle:{
111
+ top:'7PX',
112
+ left:'13px'
113
+ },
114
+ showStyles:{
103
115
  top:'5PX',
104
- left:'14px'
116
+ left:'12px'
105
117
  },
106
118
  presetStageIndex: -1,
107
119
  side: {key: 'pedphase1653818707546719', phaseid: 1, id: 1, name: '东人行横道'},
@@ -136,6 +148,24 @@ export default {
136
148
  }
137
149
  },
138
150
  watch: {
151
+ preselectStages: {
152
+ handler: function (val, oldVal) {
153
+ if(this.preselectStages === -1 && this.preselectModel !== -1) {
154
+ this.currentStage = -1
155
+ }
156
+ },
157
+ // 深度观察监听
158
+ deep: true
159
+ },
160
+ preselectModel: {
161
+ handler: function (val, oldVal) {
162
+ if(this.preselectStages === -1 && this.preselectModel !== -1) {
163
+ this.currentStage = -1
164
+ }
165
+ },
166
+ // 深度观察监听
167
+ deep: true
168
+ },
139
169
  stagesList: {
140
170
  handler: function (val, oldVal) {
141
171
  if (this.presetPhaseId > -1) {
@@ -256,7 +256,7 @@
256
256
  </g>
257
257
  </svg>
258
258
  </div>
259
- <div :style="{position: 'absolute', left: Data?Data.left:0, top: Data?Data.top:0}">
259
+ <div :style="{position: 'absolute', left: Datas?Datas.left:0, top: Datas?Datas.top:0}">
260
260
  <svg
261
261
  version="1.1"
262
262
  id="图层_1"
@@ -502,7 +502,7 @@ export default {
502
502
  ]
503
503
  }
504
504
  },
505
- Width: {
505
+ Width: {// 车道宽
506
506
  type: String,
507
507
  default: '60px'
508
508
  },
@@ -510,7 +510,7 @@ export default {
510
510
  type: String,
511
511
  default: '60px'
512
512
  },
513
- Widths: {
513
+ Widths: {// 人行横道宽
514
514
  type: String,
515
515
  default: '50px'
516
516
  },
@@ -530,7 +530,10 @@ export default {
530
530
  type: String,
531
531
  default: '#0096ba'
532
532
  },
533
- Data: {
533
+ Datas: {// 人行横道样式
534
+ type: Object
535
+ },
536
+ Data: {// 车道样式
534
537
  type: Object
535
538
  }
536
539
  },
@@ -22,7 +22,7 @@
22
22
  <el-row :gutter="25">
23
23
  <el-col :span="4">
24
24
  <el-tooltip class="item" effect="dark" placement="left">
25
- <div slot="content">{{element.name}}</div>
25
+ <div slot="content">{{$t('openatccomponents.pattern.phase') + ' ' + element.id}}</div>
26
26
  <div class="phase-description">
27
27
  <DirSelector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></DirSelector>
28
28
  </div>
@@ -77,6 +77,7 @@ export default {
77
77
  }
78
78
  },
79
79
  created () {
80
+ console.log('list', this.list)
80
81
  },
81
82
  watch: {
82
83
  list: {
@@ -22,9 +22,9 @@
22
22
  @editStart="editStart"
23
23
  @refresh="refresh"/>
24
24
  </el-aside> -->
25
- <el-main>
26
- <div class="main-container" style="border: 0px solid yellow;height: 90%;">
27
- <el-tabs v-model="editableTabsValue" type="card" @edit="handleTabsEdit" :before-leave="beforeLeave" style="border: 0px solid yellow;height: 100%;">
25
+ <!-- <el-main> -->
26
+ <div class="main-container" style="height: 100%;width: 100%;">
27
+ <el-tabs v-model="editableTabsValue" type="card" @edit="handleTabsEdit" :before-leave="beforeLeave" style="height: 100%;">
28
28
  <el-tab-pane
29
29
  :closable="true"
30
30
  :key="item.tabName"
@@ -32,8 +32,8 @@
32
32
  :label="$t('openatccomponents.greenwaveoptimize.scene') + ' ' + item.tabName"
33
33
  :name="item.tabName"
34
34
  >
35
- <div class="panel-content" style="border: 0px solid yellow;height: 100%;">
36
- <!-- <div style="border: 0px solid red;height: 12%;">
35
+ <div class="panel-content" style="height: 100%;">
36
+ <!-- <div style="height: 12%;">
37
37
  <div class="route-filter-container" style="display:flex;">
38
38
  <div class="filter">
39
39
  <span class="header-span">{{$t('openatccomponents.greenwaveoptimize.patternName')}}:</span>
@@ -192,9 +192,10 @@
192
192
  </div>
193
193
  </div>
194
194
  </div> -->
195
- <div style="height: 100%;border: 0px solid green;" class="table-container">
195
+ <div style="height: 100%;" class="table-container">
196
196
  <PatternTable ref="patterntable"
197
197
  :opt="item.devs"
198
+ :isAllowedExpand="isAllowedExpand"
198
199
  @onNewPatternListChange="onNewPatternListChange"/>
199
200
  </div>
200
201
  </div>
@@ -213,7 +214,7 @@
213
214
  <el-button type="primary" @click="onExecuteClick" plain>{{$t('openatc.dutyroute.executen')}}</el-button>
214
215
  <el-button type="primary" @click="onDownloadClick" plain>{{$t('openatc.button.download')}}</el-button>
215
216
  </div> -->
216
- </el-main>
217
+ <!-- </el-main> -->
217
218
  </el-container>
218
219
  <PlanContent v-show="false"
219
220
  :schemeData="schemeData"
@@ -225,20 +226,20 @@
225
226
  @ErrorOcurrred='onErrorOcurrred'
226
227
  @resetContentComponent="resetContentComponent"/>
227
228
  <!-- <chartDialog ref="chartDialog" ></chartDialog> -->
228
- <PlanExecute ref="planExecute" ></PlanExecute>
229
+ <!-- <PlanExecute ref="planExecute" ></PlanExecute> -->
229
230
  </div>
230
231
  </template>
231
232
 
232
233
  <script>
233
234
  // import PlanMenu from './planMenu'
234
235
  import PlanContent from './planContent'
235
- import { GetAllRoute } from '../../../api/route'
236
+ // import { GetAllRoute } from '../../../api/route'
236
237
  // import chartDialog from './pattern/planChart/chartDialog'
237
238
  import { getMessageByCode } from '../../../utils/responseMessage'
238
239
  import PatternTable from './pattern/patternTable'
239
240
  import dateObj from './utils.js'
240
241
  // import routeChart from './pattern/planChart/index'
241
- import PlanExecute from './components/planExecute'
242
+ // import PlanExecute from './components/planExecute'
242
243
  import { GetDeviceByIds } from '../../../api/device.js'
243
244
  const { monthsModel, daysModelCh, daysModelEn, datesModel, monthsModelEn, datesModelEn } = dateObj
244
245
  export default {
@@ -247,9 +248,9 @@ export default {
247
248
  // routeChart,
248
249
  PatternTable,
249
250
  // PlanMenu,
250
- PlanContent,
251
+ PlanContent
251
252
  // chartDialog,
252
- PlanExecute
253
+ // PlanExecute
253
254
  },
254
255
  props: {
255
256
  agentids: {
@@ -263,6 +264,10 @@ export default {
263
264
  isOnlyOneTab: {
264
265
  type: Boolean,
265
266
  default: true
267
+ },
268
+ isAllowedExpand: {
269
+ type: Boolean,
270
+ default: true
266
271
  }
267
272
  },
268
273
  watch: {
@@ -387,7 +392,7 @@ export default {
387
392
  }
388
393
  },
389
394
  mounted () {
390
- this.getAllPlan()
395
+ // this.getAllPlan()
391
396
  },
392
397
  methods: {
393
398
  handeAgentidsChange () {
@@ -570,26 +575,6 @@ export default {
570
575
  let planContent = this.$refs.planContent
571
576
  planContent.handleDownload(this.route.id, routeData)
572
577
  },
573
- onExecuteClick () {
574
- let routeData = this.editableTabs[this.currentIndex]
575
- let check = this.checkData([routeData])
576
- if (!check) {
577
- return false
578
- }
579
- this.resetDate(routeData)
580
- let planContent = this.$refs.planExecute
581
- planContent.onExecuteClick(this.route.id, routeData)
582
- },
583
- onDownloadClick () {
584
- let routeData = this.editableTabs[this.currentIndex]
585
- let check = this.checkData([routeData])
586
- if (!check) {
587
- return false
588
- }
589
- this.resetDate(routeData)
590
- let planContent = this.$refs.planExecute
591
- planContent.onDownloadClick(this.route.id, routeData)
592
- },
593
578
  async onDeleteClick (targetName) {
594
579
  let routeData = this.editableTabs[this.currentIndex]
595
580
  // check
@@ -840,7 +825,7 @@ export default {
840
825
  }
841
826
  },
842
827
  refresh () {
843
- this.getAllPlan()
828
+ // this.getAllPlan()
844
829
  let planContent = this.$refs.planContent
845
830
  if (planContent) {
846
831
  planContent.closeInterval()
@@ -876,17 +861,17 @@ export default {
876
861
  this.reset = true
877
862
  })
878
863
  },
879
- getAllPlan () {
880
- this.loading = true
881
- GetAllRoute().then(res => {
882
- this.loading = false
883
- if (!res.data.success) {
884
- this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
885
- return
886
- }
887
- this.planData = res.data.data
888
- })
889
- },
864
+ // getAllPlan () {
865
+ // this.loading = true
866
+ // GetAllRoute().then(res => {
867
+ // this.loading = false
868
+ // if (!res.data.success) {
869
+ // this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
870
+ // return
871
+ // }
872
+ // this.planData = res.data.data
873
+ // })
874
+ // },
890
875
  resetTab () {
891
876
  this.editableTabs = [
892
877
  {
@@ -1017,4 +1002,9 @@ export default {
1017
1002
  .el-button--primary.is-plain:hover, .el-button--primary.is-plain:focus{
1018
1003
  color: #fff;
1019
1004
  }
1005
+ >>> .el-tabs__header {
1006
+ padding: 0;
1007
+ position: relative;
1008
+ margin: 0 0 0px;
1009
+ }
1020
1010
  </style>
@@ -12,10 +12,10 @@
12
12
  <template>
13
13
  <div class="app-container" ref="pattern-container">
14
14
  <el-table :data="newPatternList" :max-height="tableHeight" id="footerBtn">
15
- <el-table-column type="expand">
15
+ <el-table-column type="expand" v-if="isAllowedExpand">
16
16
  <template slot-scope="scope">
17
17
  <div class="components-container board">
18
- <XiaoKanBan v-for="n in scope.row.ringCount" :key="n" class="kanban todo" :list="scope.row.rings[n-1]" :header-text="' '+n" :index="scope.$index" @fatherMethod="fatherMethod"/>
18
+ <XiaoKanBan v-for="n in scope.row.ringCount" :key="n" class="kanban todo" :list="scope.row.rings[n-1]" :header-text="$t('openatccomponents.pattern.ring') +' '+n" :index="scope.$index" @fatherMethod="fatherMethod"/>
19
19
  </div>
20
20
  </template>
21
21
  </el-table-column>
@@ -65,8 +65,10 @@
65
65
  </el-table-column> -->
66
66
  <el-table-column align="center" :label="$t('openatccomponents.greenwaveoptimize.offset')" width="120" prop="offset">
67
67
  <template slot-scope="scope">
68
- <!-- <el-input size="small" v-model.number="scope.row.offset"></el-input> -->
69
- <el-input-number :controls="false" :min="0" :step="1" v-model.number="scope.row.offset" size="small" style="width:70%;"></el-input-number>
68
+ <el-input-number v-if="isAllowedExpand" :controls="false" :min="0" :step="1" v-model.number="scope.row.offset" size="small" style="width:70%;"></el-input-number>
69
+ <span v-else>
70
+ {{ scope.row.offset }}
71
+ </span>
70
72
  </template>
71
73
  </el-table-column>
72
74
  <el-table-column align="center" :label="$t('openatccomponents.greenwaveoptimize.cycle')" width="80" prop="cycle">
@@ -100,6 +102,10 @@ export default {
100
102
  props: {
101
103
  optList: {
102
104
  type: Array
105
+ },
106
+ isAllowedExpand: {
107
+ type: Boolean,
108
+ default: true
103
109
  }
104
110
  },
105
111
  data () {
@@ -287,54 +293,6 @@ export default {
287
293
  }
288
294
  return res
289
295
  },
290
- // getDirectionDesc (row, bizType) {
291
- // let res = ''
292
- // let desc = ''
293
- // let phseId = -1
294
- // let directions = []
295
- // if (bizType === 'up') {
296
- // desc = row.forwardphaseDesc
297
- // phseId = row.forwardphaseid
298
- // directions = row.forwardphasedirection
299
- // } else {
300
- // desc = row.backphaseDesc
301
- // phseId = row.backphaseid
302
- // directions = row.backphasedirection
303
- // }
304
- // if (!phseId) {
305
- // return res
306
- // }
307
- // if (!directions) {
308
- // directions = []
309
- // }
310
- // let list = directions.map(id => {
311
- // return {
312
- // id: id
313
- // }
314
- // })
315
- // let dirNames = getDirName(list)
316
- // if (!dirNames) {
317
- // dirNames = []
318
- // }
319
- // let _this = this
320
- // let names = dirNames.map(item => {
321
- // let name = _this.$t(item)
322
- // return name
323
- // })
324
- // desc = names.join(',')
325
- // res = this.$t('openatccomponents.greenwaveoptimize.phase') + phseId + ' ' + desc
326
- // return res
327
- // },
328
- // formatterForwardphaseDesc (row, column) {
329
- // let bizType = 'up'
330
- // let res = this.getDirectionDesc(row, bizType)
331
- // return res
332
- // },
333
- // formatterBackphaseDesc (row, column) {
334
- // let bizType = 'down'
335
- // let res = this.getDirectionDesc(row, bizType)
336
- // return res
337
- // },
338
296
  getCurPattern (agentid) {
339
297
  // 获取当前设备所有可选方案
340
298
  this.loading = true