openatc-components 0.0.104 → 0.0.107

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.
@@ -342,7 +342,7 @@ export default {
342
342
  this.handleReset()
343
343
  return new Promise((resolve, reject) => {
344
344
  getChannelizatonChart(this.AgentId).then(data => {
345
- this.$emit('getChannelizationSetting', data)
345
+ // this.$emit('getChannelizationSetting', data)
346
346
  if (!data.data.success) {
347
347
  // let parrenterror = getMessageByCode(data.data.code, this.$i18n.locale)
348
348
  // if (data.data.data) {
@@ -471,6 +471,7 @@ export default {
471
471
  this.bodyDomWidth = this.bodyDomSize.width
472
472
  window.addEventListener('resize', () => {
473
473
  // 定义窗口大小变更通知事件
474
+ if (_this.$el.parentElement === null || _this.$el.parentElement === undefined) return
474
475
  _this.bodyDomSize.width = _this.$el.parentElement.clientWidth
475
476
  this.bodyDomWidth = this.bodyDomSize.width
476
477
  console.log('resize this.bodyDomSize.width', _this.bodyDomSize.width)
@@ -241,7 +241,6 @@ export default {
241
241
  this.handleReset()
242
242
  return new Promise((resolve, reject) => {
243
243
  getChannelizatonChart(this.AgentId).then(data => {
244
- this.$emit('getChannelizationSetting', data)
245
244
  if (!data.data.success) {
246
245
  // let parrenterror = getMessageByCode(data.data.code, this.$i18n.locale)
247
246
  // if (data.data.data) {
@@ -275,6 +274,7 @@ export default {
275
274
  this.bodyDomWidth = this.bodyDomSize.width
276
275
  window.addEventListener('resize', () => {
277
276
  // 定义窗口大小变更通知事件
277
+ if (_this.$el.parentElement === null || _this.$el.parentElement === undefined) return
278
278
  _this.bodyDomSize.width = _this.$el.parentElement.clientWidth
279
279
  this.bodyDomWidth = this.bodyDomSize.width
280
280
  console.log('resize this.bodyDomSize.width', _this.bodyDomSize.width)
@@ -958,7 +958,7 @@ export default {
958
958
  _this.dialogVisible = false
959
959
  _this.LoadedChannelizatonData = JSON.parse(this.result)
960
960
  _this.load()
961
- _this.$alert(_this.$t('openatccomponents.common.uploadsuccess'), { type: 'success' })
961
+ _this.$alert(_this.$t('openatccomponents.channelizationmap.importfilesuccess'), { type: 'success' })
962
962
  }, 50)
963
963
  }
964
964
  },
@@ -134,6 +134,7 @@ export default {
134
134
  this.bodyDomWidth = this.bodyDomSize.width
135
135
  window.addEventListener('resize', () => {
136
136
  // 定义窗口大小变更通知事件
137
+ if (_this.$el.parentElement === null || _this.$el.parentElement === undefined) return
137
138
  _this.bodyDomSize.width = _this.$el.parentElement.clientWidth
138
139
  this.bodyDomWidth = this.bodyDomSize.width
139
140
  console.log('resize this.bodyDomSize.width', _this.bodyDomSize.width)