openatc-components 0.4.27 → 0.4.29

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.4.27",
3
+ "version": "0.4.29",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -838,7 +838,10 @@ export default {
838
838
  }
839
839
  }
840
840
  msg = msg + ' - ' + commomMsg
841
- this.isShowMessage && this.$message.error(msg)
841
+ // this.isShowMessage && this.$message.error(msg)
842
+ if (this.isShowMessage) {
843
+ console.log(msg)
844
+ }
842
845
  return
843
846
  }
844
847
  this.isLoaded = true
@@ -1169,10 +1172,16 @@ export default {
1169
1172
  let res = data.data
1170
1173
  if (!res.success) {
1171
1174
  if (res.code === '4003') {
1172
- this.isShowMessage && this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
1175
+ // this.isShowMessage && this.$message.error(this.$t('openatccomponents.errorTip.devicenotonline'))
1176
+ if (this.isShowMessage) {
1177
+ console.log(this.$t('openatccomponents.errorTip.devicenotonline'))
1178
+ }
1173
1179
  return
1174
1180
  }
1175
- this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
1181
+ // this.isShowMessage && this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
1182
+ if (this.isShowMessage) {
1183
+ console.log(getMessageByCode(data.data.code, this.$i18n.locale))
1184
+ }
1176
1185
  return
1177
1186
  }
1178
1187
  let channelList = res.data.data.channelList.filter(ele => ele.type !== undefined)
@@ -26,7 +26,7 @@
26
26
  <el-input v-model="optimizecycle" clearable :placeholder="$t('openatccomponents.common.enter')"></el-input>
27
27
  <el-button v-if="isTentative" 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: '0' }" :data="tableRing" :max-height="tableHeight" highlight-current-row>
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>
@@ -64,6 +64,7 @@
64
64
  :currModel="currModel"
65
65
  :ip="ip"
66
66
  :platform="platform"
67
+ :firm="firm"
67
68
  :responseTime="responseTime"
68
69
  :curFaultList="curFaultList"
69
70
  :confirmedFault="confirmedFault"
@@ -198,6 +199,9 @@ export default {
198
199
  platform: {
199
200
  type: String
200
201
  },
202
+ firm: {
203
+ type: String
204
+ },
201
205
  realtimeStatusModalvisible: {
202
206
  type: Boolean,
203
207
  default: true
@@ -635,7 +639,8 @@ export default {
635
639
  GetRoleByName(`td--${this.platform}`).then(res => {
636
640
  if (!res.data.success) {
637
641
  let msg = getMessageByCode(res.data.code, this.$i18n.locale)
638
- this.$message.error(msg)
642
+ // this.$message.error(msg)
643
+ console.log(msg)
639
644
  return
640
645
  }
641
646
  this.funcSort = 'thirdPartyFunc'
@@ -973,7 +978,8 @@ export default {
973
978
  }
974
979
  GetAllFaultRange(param).then(res => {
975
980
  if (res.data.success !== true) {
976
- this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
981
+ // this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
982
+ console.log(getMessageByCode(res.data.code, this.$i18n.locale))
977
983
  return
978
984
  }
979
985
  this.curFaultList = res.data.data.content
@@ -213,7 +213,8 @@ export default {
213
213
  let iframdevid = getIframdevid()
214
214
  getAllDerection(iframdevid).then((res) => {
215
215
  if (res.data.success !== true) {
216
- this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
216
+ // this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
217
+ console.log(getMessageByCode(res.data.code, this.$i18n.locale))
217
218
  return
218
219
  }
219
220
  this.allDirection = res.data.data.map(item => {
@@ -47,7 +47,9 @@
47
47
  </div>
48
48
  <div class="cross-content" v-if="platform">
49
49
  <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.platform')}}:</div>
50
- <div style="margin-left: 85px;" class="cross-value">{{platform}}</div>
50
+ <div style="margin-left: 85px;" class="cross-value">
51
+ {{firm !== undefined && firm !== '' ? firm : platform}}
52
+ </div>
51
53
  </div>
52
54
  <div class="cross-content" v-if="controlData.current_stagecd !== undefined">
53
55
  <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.stagecountdown')}}:</div>
@@ -223,6 +225,9 @@ export default {
223
225
  platform: {
224
226
  type: String
225
227
  },
228
+ firm: {
229
+ type: String
230
+ },
226
231
  curFaultList: {
227
232
  type: Array
228
233
  },
@@ -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 :cell-style="{ padding: '0' }" class="tb-edit" :data="tableRing" element-loading-text="Loading" :max-height="tableHeight" fit highlight-current-row id="footerBtn">
29
+ <el-table :cell-style="{ padding: '0' }" :data="tableRing" :max-height="tableHeight" highlight-current-row>
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>