openatc-components 0.4.9 → 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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -11,7 +11,7 @@
11
11
  **/
12
12
  <template>
13
13
  <div>
14
- <div v-if="this.nowNumber === 1" class="optimizetype">
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
- <div class="common-board-column" :style="{marginTop:this.nowNumber === 1 ? 0 : '50px'}">
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
- left: '2px',
89
- top: '0px'
90
- },
91
- styles: {
92
- left: '1px',
93
- top: '0px'
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,7 +24,7 @@
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;z-index:9999">
27
+ <div v-if="isShowTip" class="box" style="position: absolute; left:40px; width:40px; top: -1px;z-index:999">
28
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