openatc-components 0.4.14 → 0.4.16
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.
|
@@ -129,9 +129,6 @@ export default {
|
|
|
129
129
|
type: String,
|
|
130
130
|
default: 'Header'
|
|
131
131
|
},
|
|
132
|
-
isOptimize: {
|
|
133
|
-
type: Boolean
|
|
134
|
-
},
|
|
135
132
|
tableRing: {
|
|
136
133
|
type: Array
|
|
137
134
|
},
|
|
@@ -183,17 +180,9 @@ export default {
|
|
|
183
180
|
this.addMin()
|
|
184
181
|
},
|
|
185
182
|
watch: {
|
|
186
|
-
isOptimize: {
|
|
187
|
-
handler: function (val) {
|
|
188
|
-
if (val) {
|
|
189
|
-
this.optimize()
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
deep: true
|
|
193
|
-
},
|
|
194
183
|
list: {
|
|
195
184
|
handler: function () {
|
|
196
|
-
this.addMin()
|
|
185
|
+
// this.addMin()
|
|
197
186
|
// let list = this.$refs.type
|
|
198
187
|
// let flow = this.$refs.types
|
|
199
188
|
// console.log(this.list, 'list')
|
|
@@ -215,17 +204,22 @@ export default {
|
|
|
215
204
|
methods: {
|
|
216
205
|
optimize () {
|
|
217
206
|
let _that = this
|
|
218
|
-
let newPha = []
|
|
219
|
-
for (let i = 0; i < _that.rings.rings.length; i++) {
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
id: item.id,
|
|
225
|
-
flowperhour: item.flowperhour,
|
|
226
|
-
saturation: item.saturation
|
|
227
|
-
}
|
|
207
|
+
// let newPha = []
|
|
208
|
+
// for (let i = 0; i < _that.rings.rings.length; i++) {
|
|
209
|
+
// newPha.push(..._that.rings.rings[i])
|
|
210
|
+
// }
|
|
211
|
+
this.tableRing.map(item => {
|
|
212
|
+
delete item.desc
|
|
228
213
|
})
|
|
214
|
+
// const filteredData = newPha.filter(item => item !== undefined)
|
|
215
|
+
// console.log(filteredData, 'filteredData')
|
|
216
|
+
// let phaseData = filteredData.map(item => {
|
|
217
|
+
// return {
|
|
218
|
+
// id: item.id,
|
|
219
|
+
// flowperhour: item.flowperhour,
|
|
220
|
+
// saturation: item.saturation
|
|
221
|
+
// }
|
|
222
|
+
// })
|
|
229
223
|
// let patternList = _that.$store.state.globalParam.tscParam.patternList
|
|
230
224
|
// console.log(patternList, 'patternList')
|
|
231
225
|
let pattern = _that.rings
|
|
@@ -234,12 +228,12 @@ export default {
|
|
|
234
228
|
'optcycle': _that.optimizecycle,
|
|
235
229
|
'phaseList': _that.phaseList,
|
|
236
230
|
'pattern': pattern,
|
|
237
|
-
'phases':
|
|
231
|
+
'phases': this.tableRing
|
|
238
232
|
}
|
|
239
233
|
let isValidata = []
|
|
240
|
-
for (let j = 0; j <
|
|
241
|
-
let comNum = (
|
|
242
|
-
isValidata.push(
|
|
234
|
+
for (let j = 0; j < this.tableRing.length; j++) {
|
|
235
|
+
let comNum = (this.tableRing[j].length / 4) * 1700 * 0.8
|
|
236
|
+
isValidata.push(this.tableRing[j].flowperhour > comNum)
|
|
243
237
|
}
|
|
244
238
|
if (isValidata.includes(true)) {
|
|
245
239
|
this.$confirm(this.$t('openatccomponents.overview.maxFlow'),
|