openatc-components 0.4.23 → 0.4.25

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.
@@ -605,6 +605,9 @@ export default {
605
605
  }
606
606
  return result.map(s => [...s])
607
607
  },
608
+ check (arr1, arr2) {
609
+ return arr1.some(a1 => arr2.some(a2 => a1 === a2))
610
+ },
608
611
  handleCurrentChange (val) { // 两个ring的数据
609
612
  if (val === null || val.length === 0) return
610
613
  // 按环序分组
@@ -26,7 +26,7 @@
26
26
  <el-input v-model="optimizecycle" clearable :placeholder="$t('openatccomponents.common.enter')"></el-input>
27
27
  <!-- <el-button type="primary" @click="optimize()">{{$t('openatccomponents.pattern.inoptimize')}}</el-button> -->
28
28
  </div>
29
- <el-table class="tb-edit" ref="singleTables" row-key="id" :data="tableRing" element-loading-text="Loading" :max-height="tableHeight" fit highlight-current-row id="footerBtn">
29
+ <el-table :cell-style="{ padding: '5px' }" class="tb-edit" :data="tableRing" element-loading-text="Loading" :max-height="tableHeight" fit highlight-current-row id="footerBtn">
30
30
  <el-table-column prop="id" sortable align="center" :label="$t('openatccomponents.overview.id')">
31
31
  <template slot-scope="scope">
32
32
  <span>{{scope.row.id}}</span>