This commit is contained in:
2025-07-01 14:47:32 +08:00
parent f50619c104
commit bdd392402f
8 changed files with 83 additions and 37 deletions

View File

@@ -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