修改
This commit is contained in:
@@ -19,14 +19,14 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>物料名称</th>
|
||||
<th>物料规格</th>
|
||||
<th><view style="width: 300rpx;">物料规格</view></th>
|
||||
<th>物料编码</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.material_id === pkId}" @tap="toCheck(e)">
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.material_spec}}</td>
|
||||
<td class="wrap">{{e.material_spec}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -83,10 +83,9 @@
|
||||
},
|
||||
async _getMaterialList () {
|
||||
let res = await getMaterialList( this.val1, this.pageNum + '', this.pageSize + '')
|
||||
// this.dataList = res.data
|
||||
this.totalCount = res.totalElements
|
||||
if (res.totalElements > 0) {
|
||||
const dataMap = res.data
|
||||
const dataMap = res.content
|
||||
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
|
||||
this.reload = false
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user