分切下轴
This commit is contained in:
@@ -47,14 +47,12 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="60%">{{$t('grid.sub-roll-number')}}</th>
|
||||
<th width="20%">{{$t('grid.axisposition')}}</th>
|
||||
<th width="20%">{{$t('grid.operate')}}</th>
|
||||
<th width="50%">{{$t('grid.axisposition')}}</th>
|
||||
<th width="50%">{{$t('grid.operate')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td>{{e.container_name}}</td>
|
||||
<td>{{ options1 | findByValue(e.site)}}</td>
|
||||
<td><button class="mini-btn" size="mini" type="primary" @tap="handleDelete(i)">{{$t('button.delete')}}</button></td>
|
||||
</tr>
|
||||
@@ -91,7 +89,6 @@
|
||||
options1: [{value: '1', text: this.$t('select.uppershaft')}, {value: '2', text: this.$t('select.lowershaft')}],
|
||||
index1: '1',
|
||||
current: 0,
|
||||
val1: '',
|
||||
dataList: [],
|
||||
disabled: false
|
||||
};
|
||||
@@ -127,15 +124,7 @@
|
||||
this.index1 = e.detail.value
|
||||
},
|
||||
handleAdd () {
|
||||
if (!this.val1.trim()) {
|
||||
return
|
||||
}
|
||||
const index = this.dataList.findIndex(item => item === this.val1)
|
||||
if (index !== -1) {
|
||||
this.dataList.splice(index, 1)
|
||||
}
|
||||
this.dataList.push({container_name: this.val1, site: this.index1})
|
||||
this.val1 = ''
|
||||
this.dataList.push({site: this.index1})
|
||||
},
|
||||
handleDelete (index) {
|
||||
this.dataList.splice(index, 1)
|
||||
@@ -164,7 +153,6 @@
|
||||
this.index = ''
|
||||
this.index2 = ''
|
||||
this.options = []
|
||||
this.val1 = ''
|
||||
this.dataList = []
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user