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.
@@ -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
  }