openatc-components 0.1.130 → 0.1.132

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.
@@ -727,7 +727,7 @@ export default {
727
727
  return
728
728
  }
729
729
  }
730
- this.$alert(this.$t('openatccomponents.common.download'), { type: 'success' })
730
+ this.$message.success(this.$t('openatccomponents.common.download'))
731
731
  }).catch(error => {
732
732
  this.unlockScreen()
733
733
  console.log(error)
@@ -62,6 +62,8 @@
62
62
  <div style="width: 100%; height: auto;overflow: hidden;" v-if="isHasPermission('configer:manual:dwell')">
63
63
  <Stages :crossStatusData="manuals?manualsStage:realtimeStage"
64
64
  :phaseList="phaseList"
65
+ :preselectStages="preselectStages"
66
+ :preselectModel="preselectModel"
65
67
  :isShowCurrentStage="false"
66
68
  @onSelectStages="selectStages"></Stages>
67
69
  </div>
@@ -80,6 +80,14 @@ export default {
80
80
  type: Number,
81
81
  default: -1
82
82
  },
83
+ preselectStages:{
84
+ type: Number,
85
+ default: -1
86
+ },
87
+ preselectModel:{
88
+ type: Number,
89
+ default: -1
90
+ },
83
91
  presetPhaseId: {
84
92
  type: Number,
85
93
  default: -1
@@ -140,6 +148,24 @@ export default {
140
148
  }
141
149
  },
142
150
  watch: {
151
+ preselectStages: {
152
+ handler: function (val, oldVal) {
153
+ if(this.preselectStages === -1 && this.preselectModel !== -1) {
154
+ this.currentStage = -1
155
+ }
156
+ },
157
+ // 深度观察监听
158
+ deep: true
159
+ },
160
+ preselectModel: {
161
+ handler: function (val, oldVal) {
162
+ if(this.preselectStages === -1 && this.preselectModel !== -1) {
163
+ this.currentStage = -1
164
+ }
165
+ },
166
+ // 深度观察监听
167
+ deep: true
168
+ },
143
169
  stagesList: {
144
170
  handler: function (val, oldVal) {
145
171
  if (this.presetPhaseId > -1) {