自制件状态查询
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user