openatc-components 0.3.46 → 0.3.47

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.3.46",
3
+ "version": "0.3.47",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -228,13 +228,21 @@ export default {
228
228
  }
229
229
  },
230
230
  mounted () {
231
- // this.getAllPlan()
232
- const clientHeight = this.$el.parentElement.clientHeight
233
- const extHeight = this.isShowSingle ? 0 : 94
234
- this.maxTableHeight = clientHeight - extHeight - 1
231
+ this.calcMaxTableHeight()
235
232
  },
236
233
  methods: {
234
+ calcMaxTableHeight () {
235
+ const clientHeight = this.$el.parentElement.clientHeight
236
+ const extHeight = this.isShowSingle ? 0 : 94
237
+ this.maxTableHeight = clientHeight - extHeight - 1
238
+ if (this.maxTableHeight < 20) {
239
+ console.log('calcMaxTableHeight err', this.maxTableHeight)
240
+ console.log('parentElement', this.$el.parentElement)
241
+ this.maxTableHeight = 200
242
+ }
243
+ },
237
244
  async handeAgentidsChange () {
245
+ this.calcMaxTableHeight()
238
246
  let devs = []
239
247
  for (let agentid of this.agentids) {
240
248
  let item = {
@@ -304,7 +312,6 @@ export default {
304
312
  }
305
313
  }
306
314
  }
307
- debugger
308
315
  if (resetFlag) {
309
316
  res = await this.getFullOptList(optPatternList)
310
317
  }
@@ -31,12 +31,12 @@ export default {
31
31
  return {
32
32
  tableColums: ['agentid', 'period', 'offset', 'cycle', 'pattern'], // greenWave, period
33
33
  // tableColums: ['no', 'id', 'period', 'name', 'isUsed', 'patternId', 'offset', 'cycle', 'pattern'], // greenWave, period
34
- isShowSingle: false,
34
+ isShowSingle: true,
35
35
  isOnlyOneTab: false,
36
36
  isSingleCrossMode: true,
37
37
  isShowTableHeader: true,
38
38
  // isAllowedExpand: false,
39
- isAllowedExpand: true,
39
+ isAllowedExpand: false,
40
40
  // agentids: ['gjnlgjxl'],
41
41
  agentids4: [
42
42
  'tjblxyl',
@@ -379,7 +379,7 @@ export default {
379
379
  /* height: 600px; */
380
380
  width: 1020px;
381
381
  // height: 620px;
382
- height: 370px;
382
+ height: 170px;
383
383
  border: 1PX solid yellow;
384
384
  position: relative;
385
385
  }