openatc-components 0.4.8 → 0.4.11
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/kisscomps/components/PatternOptimize/PatternOptimize.vue +55 -12
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +9 -3
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +55 -12
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +9 -3
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
**/
|
|
12
12
|
<template>
|
|
13
13
|
<div>
|
|
14
|
-
<div
|
|
14
|
+
<div class="optimizetype">
|
|
15
15
|
<span>{{$t('openatccomponents.pattern.optimizetype')}}</span>
|
|
16
16
|
<el-select v-model="value" clearable :placeholder="$t('openatccomponents.common.select')">
|
|
17
17
|
<el-option
|
|
@@ -24,9 +24,31 @@
|
|
|
24
24
|
</el-select>
|
|
25
25
|
<span class="optimiNum">{{$t('openatccomponents.pattern.optimizecycle')}}</span>
|
|
26
26
|
<el-input v-model="optimizecycle" clearable :placeholder="$t('openatccomponents.common.enter')"></el-input>
|
|
27
|
-
<el-button type="primary" @click="optimize()">{{$t('openatccomponents.pattern.inoptimize')}}</el-button>
|
|
27
|
+
<!-- <el-button type="primary" @click="optimize()">{{$t('openatccomponents.pattern.inoptimize')}}</el-button> -->
|
|
28
28
|
</div>
|
|
29
|
-
|
|
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">
|
|
30
|
+
<el-table-column prop="id" sortable align="center" :label="$t('openatccomponents.overview.id')">
|
|
31
|
+
<template slot-scope="scope">
|
|
32
|
+
<span>{{scope.row.id}}</span>
|
|
33
|
+
</template>
|
|
34
|
+
</el-table-column>
|
|
35
|
+
<el-table-column class="table-column" :label="$t('openatccomponents.overview.phase')" align="center">
|
|
36
|
+
<template slot-scope="scope">
|
|
37
|
+
<xdrdirselector Width="70px" Height="70px" Widths="58px" Heights="58px" :Datas="styles" :Data="showStyle" :showlist="scope.row.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
|
|
38
|
+
</template>
|
|
39
|
+
</el-table-column>
|
|
40
|
+
<el-table-column class="table-column" :label="$t('openatccomponents.overview.flow')" align="center">
|
|
41
|
+
<template slot-scope="scope">
|
|
42
|
+
<el-input-number :controls="false" class="col-content" size="small" :step="1" v-model.number="scope.row.flowperhour" ref="type"></el-input-number>
|
|
43
|
+
</template>
|
|
44
|
+
</el-table-column>
|
|
45
|
+
<el-table-column align="center" :label="$t('openatccomponents.overview.saturationflow')">
|
|
46
|
+
<template slot-scope="scope">
|
|
47
|
+
<el-input-number :controls="false" class="col-content" size="small" :step="1" v-model.number="scope.row.saturation" ref="types"></el-input-number>
|
|
48
|
+
</template>
|
|
49
|
+
</el-table-column>
|
|
50
|
+
</el-table>
|
|
51
|
+
<!-- <div class="common-board-column" :style="{marginTop:this.nowNumber === 1 ? 0 : '50px'}">
|
|
30
52
|
<div class="common-board-column-header">
|
|
31
53
|
{{headerText}}
|
|
32
54
|
</div>
|
|
@@ -68,7 +90,7 @@
|
|
|
68
90
|
</el-row>
|
|
69
91
|
</div>
|
|
70
92
|
</draggable>
|
|
71
|
-
</div>
|
|
93
|
+
</div> -->
|
|
72
94
|
</div>
|
|
73
95
|
</template>
|
|
74
96
|
<script>
|
|
@@ -84,14 +106,15 @@ export default {
|
|
|
84
106
|
},
|
|
85
107
|
data () {
|
|
86
108
|
return {
|
|
87
|
-
showStyle: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
styles: {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
},
|
|
109
|
+
// showStyle: {
|
|
110
|
+
// left: '2px',
|
|
111
|
+
// top: '0px'
|
|
112
|
+
// },
|
|
113
|
+
// styles: {
|
|
114
|
+
// left: '1px',
|
|
115
|
+
// top: '0px'
|
|
116
|
+
// },
|
|
117
|
+
tableHeight: 300,
|
|
95
118
|
typeOptions: [{
|
|
96
119
|
value: 'flow-split-opt'
|
|
97
120
|
}, {
|
|
@@ -106,6 +129,18 @@ export default {
|
|
|
106
129
|
type: String,
|
|
107
130
|
default: 'Header'
|
|
108
131
|
},
|
|
132
|
+
isOptimize: {
|
|
133
|
+
type: Boolean
|
|
134
|
+
},
|
|
135
|
+
tableRing: {
|
|
136
|
+
type: Array
|
|
137
|
+
},
|
|
138
|
+
showStyle: {
|
|
139
|
+
type: Object
|
|
140
|
+
},
|
|
141
|
+
styles: {
|
|
142
|
+
type: Object
|
|
143
|
+
},
|
|
109
144
|
id: {
|
|
110
145
|
type: Number
|
|
111
146
|
},
|
|
@@ -148,6 +183,14 @@ export default {
|
|
|
148
183
|
this.addMin()
|
|
149
184
|
},
|
|
150
185
|
watch: {
|
|
186
|
+
isOptimize: {
|
|
187
|
+
handler: function (val) {
|
|
188
|
+
if (val) {
|
|
189
|
+
this.optimize()
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
deep: true
|
|
193
|
+
},
|
|
151
194
|
list: {
|
|
152
195
|
handler: function () {
|
|
153
196
|
this.addMin()
|
|
@@ -24,19 +24,20 @@
|
|
|
24
24
|
<!-- <patternwalksvg :showWalk="item.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg> -->
|
|
25
25
|
<xdrdirselector Width="60px" Height="60px" Widths="50px" Heights="50px" :showlist="item.direction"></xdrdirselector>
|
|
26
26
|
</div>
|
|
27
|
-
<div v-if="isShowTip" class="box" style="position: absolute; left:40px; width:40px; top: -1px;">
|
|
28
|
-
<div class="ring-nums">{{$t('openatccomponents.phase.phase')}}{{item.id}}</div>
|
|
27
|
+
<div v-if="isShowTip" class="box" style="position: absolute; left:40px; width:40px; top: -1px;z-index:999">
|
|
28
|
+
<div @click="focusInput(item.id)" class="ring-nums">{{$t('openatccomponents.phase.phase')}}{{item.id}}</div>
|
|
29
29
|
<div v-if="isMove" class="ring-nums">{{item.split}}</div>
|
|
30
30
|
<el-input-number
|
|
31
31
|
v-if="!isMove"
|
|
32
32
|
class="ring-nums"
|
|
33
|
+
:ref="'inputNumbers' + item.id"
|
|
33
34
|
size="small"
|
|
34
35
|
:controls="false"
|
|
35
36
|
:min="0"
|
|
36
37
|
:step="1"
|
|
37
38
|
v-model.number="item.split"
|
|
38
39
|
@change="handleEdit(item)"
|
|
39
|
-
style="width:
|
|
40
|
+
style="width: 42px"
|
|
40
41
|
></el-input-number>
|
|
41
42
|
</div>
|
|
42
43
|
</div>
|
|
@@ -424,6 +425,11 @@ export default {
|
|
|
424
425
|
}
|
|
425
426
|
})
|
|
426
427
|
},
|
|
428
|
+
focusInput (id) {
|
|
429
|
+
if (!this.isMove) {
|
|
430
|
+
this.$refs['inputNumbers' + id][0].focus()
|
|
431
|
+
}
|
|
432
|
+
},
|
|
427
433
|
handleEdit (val) {
|
|
428
434
|
this.patternStatusList.map(d => {
|
|
429
435
|
d.map(r => {
|