缓存线

This commit is contained in:
2023-03-30 15:04:14 +08:00
parent 145349d379
commit e00011f968
4 changed files with 47 additions and 37 deletions

View File

@@ -29,7 +29,7 @@
<tbody>
<tr v-for="e in dataList" :key="e.material_uuid" @click="toRadio(e)">
<td>
<view class="iconfont icon-check" :class="{'icon-checked': pkId === e.material_id}"></view>
<view class="iconfont icon-check" :class="{'icon-checked': pkId === e.material_uuid}"></view>
</td>
<td>{{e.material_code}}</td>
<td>{{e.material_name}}</td>
@@ -68,8 +68,8 @@
this.dataList = [...res]
},
toRadio (e) {
this.pkId = this.pkId === e.material_id ? '' : e.material_id
this.pkObj = this.pkId === e.material_id ? e : {}
this.pkId = this.pkId === e.material_uuid ? '' : e.material_uuid
this.pkObj = this.pkId === e.material_uuid ? e : {}
},
toSure () {
if (!this.pkId) {