优化
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.material_code === pkId}" @tap="toCheck(e)">
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.struct_code === pkId}" @tap="toCheck(e)">
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.struct_code}}</td>
|
||||
@@ -124,8 +124,8 @@
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.material_code ? '' : e.material_code
|
||||
this.pkObj = this.pkId === e.material_code ? e : {}
|
||||
this.pkId = this.pkId === e.struct_code ? '' : e.struct_code
|
||||
this.pkObj = this.pkId === e.struct_code ? e : {}
|
||||
},
|
||||
toEmpty () {
|
||||
this.val1 = ''
|
||||
|
||||
Reference in New Issue
Block a user