修改
This commit is contained in:
@@ -47,9 +47,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-col-4">
|
||||
<!-- <view class="zd-col-4">
|
||||
<button class="mini-btn" size="mini" style="display: block;" type="primary" @tap="handleAdd">{{$t('button.add')}}</button>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-19">
|
||||
@@ -162,17 +162,17 @@
|
||||
radioChange02 (e) {
|
||||
this.index02 = 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 = ''
|
||||
},
|
||||
// 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 = ''
|
||||
// },
|
||||
handleAdd02 () {
|
||||
if (!this.val1.trim()) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user