openatc-components 0.3.87 → 0.3.89

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.
@@ -12,7 +12,7 @@
12
12
  <template>
13
13
  <div class="app-container" ref="pattern-container">
14
14
  <el-table :data="newPatternList" :max-height="tableHeight" id="footerBtn" :show-header="isShowTableHeader">
15
- <el-table-column type="expand" v-if="isAllowedExpand">
15
+ <el-table-column :type="isAllowedExpand ? 'expand' : ''" v-if="isAllowedExpand">
16
16
  <template slot-scope="scope">
17
17
  <div v-if="isAllowedExpand && isSingleCrossMode" class="optimizetype">
18
18
  <span>{{$t('openatccomponents.pattern.optimizetype')}}</span>
@@ -51,14 +51,14 @@
51
51
  <span>{{scope.row.agentid}}</span>
52
52
  </template>
53
53
  </el-table-column>
54
- <el-table-column align="center" :label="$t('openatccomponents.greenwaveoptimize.period')" width="100" minWidth="40" v-if="isShowColumn('period')">
54
+ <el-table-column align="center" :label="$t('openatccomponents.overview.crossname')" width="120" minWidth="40" v-if="isShowColumn('name')">
55
55
  <template slot-scope="scope">
56
- <span>{{getPeriod(scope.row)}}</span>
56
+ <span>{{getDevName(scope.row)}}</span>
57
57
  </template>
58
58
  </el-table-column>
59
- <el-table-column align="center" :label="$t('openatccomponents.overview.crossname')" width="120" minWidth="40" v-if="isShowColumn('name')">
59
+ <el-table-column align="center" :label="$t('openatccomponents.greenwaveoptimize.period')" width="100" minWidth="40" v-if="isShowColumn('period')">
60
60
  <template slot-scope="scope">
61
- <span>{{getDevName(scope.row)}}</span>
61
+ <span>{{getPeriod(scope.row)}}</span>
62
62
  </template>
63
63
  </el-table-column>
64
64
  <el-table-column property="isValid" :label="$t('openatccomponents.token.isValid')" align="center" width="80" prop="isused" v-if="isShowColumn('isused')">
@@ -200,7 +200,9 @@ export default {
200
200
  },
201
201
  watch: {
202
202
  maxTableHeight: function () {
203
- this.tableHeight = this.maxTableHeight
203
+ this.$nextTick(() => {
204
+ this.tableHeight = this.maxTableHeight // 动态更新高度
205
+ })
204
206
  },
205
207
  optList: {
206
208
  handler: function (val) {
@@ -221,11 +223,6 @@ export default {
221
223
  }
222
224
  },
223
225
  mounted: function () {
224
- // var _this = this
225
- // _this.$nextTick(function () {
226
- // _this.tableHeight = _this.maxTableHeight
227
- // })
228
- // _this.tableHeight = _this.maxTableHeight
229
226
  },
230
227
  methods: {
231
228
  onOptimizeClick (row, index) {