自制件状态查询

This commit is contained in:
Vergil
2020-03-16 10:34:38 +08:00
parent 308a88a662
commit 8578d88a60
2 changed files with 8 additions and 9 deletions

View File

@@ -172,15 +172,15 @@ export default {
if (this.partTypeValue) { check5 = 1 } else { check5 = 0 }
this.loading0 = true
searchTable(check1, this.machineToolValue, check2, this.groupNumberValue, check3, this.partNumber, check4, this.partStateValue, check5, this.partTypeValue, this.pageCurrent, this.pageSize).then(response => {
for (let i = 0; i < response.data.rows.length; i++) {
response.data.rows[i].考核状态 = parseInt(response.data.rows[i].考核状态) - 2
if (response.data.rows[i].传递时间 !== undefined || response.data.rows[i].hasOwnProperty('传递时间')) {
response.data.rows[i].传递时间 = response.data.rows[i].传递时间.split(' ', 2)[0]
for (let i = 0; i < response.data.result.length; i++) {
response.data.result[i].考核状态 = parseInt(response.data.result[i].考核状态) - 2
if (response.data.result[i].传递时间 !== undefined || response.data.result[i].hasOwnProperty('传递时间')) {
response.data.result[i].传递时间 = response.data.result[i].传递时间.split(' ', 2)[0]
}
}
this.loading0 = false
this.total = response.data.total
this.tableData = response.data.rows
this.total = parseInt(response.data.output[0].ItemCount)
this.tableData = response.data.result
})
},
handleSizeChange(val) {