openatc-components 0.1.109 → 0.1.110

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.
@@ -236,10 +236,22 @@ export default {
236
236
 
237
237
  }
238
238
  lockPhase(submitdata).then(res => {
239
- if (res.data.success !== true) {
239
+ if (!res.data.success) {
240
+ if (res.data.code === '4002' && res.data.data.errorCode === '4209') {
241
+ let success = res.data.data.content.success
242
+ if (success !== 0) {
243
+ let errormsg = 'openatccomponents.overview.putTscControlError' + success
244
+ this.$message.error(this.$t(errormsg))
245
+ return
246
+ }
247
+ }
240
248
  this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
249
+ return
241
250
  }
242
251
  this.$alert(this.$t('openatccomponents.common.download'), { type: 'success' })
252
+ // if (res.data.success !== true) {
253
+ // this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
254
+ // }
243
255
  })
244
256
  }
245
257
  }