Commit 2a583832 authored by hubaoshan's avatar hubaoshan

wcp

parent 8a1e9dfc
...@@ -333,9 +333,16 @@ export default { ...@@ -333,9 +333,16 @@ export default {
} }
queryParams.pallet = this.buttonValue(this.selectedButton) queryParams.pallet = this.buttonValue(this.selectedButton)
getDelList(queryParams).then(response => { getDelList(queryParams).then(response => {
if (response.data.total === 0) {
this.$message({
message: '当前无记录',
type: 'error'
})
} else {
this.queryPdDel.PdDelList = response.data.records this.queryPdDel.PdDelList = response.data.records
this.totalPd[queryParams.pallet] = response.data.total this.totalPd[queryParams.pallet] = response.data.total
this.total = response.data.total this.total = response.data.total
}
}) })
}, },
getList() { getList() {
...@@ -403,7 +410,10 @@ export default { ...@@ -403,7 +410,10 @@ export default {
type: 'warning' type: 'warning'
}).then(function() { }).then(function() {
return delPd(queryParams) return delPd(queryParams)
}).then(() => { }).then((res) => {
if (res.code === 500) {
return
} else {
this.$message({ this.$message({
message: '删除成功', message: '删除成功',
type: 'success' type: 'success'
...@@ -413,6 +423,7 @@ export default { ...@@ -413,6 +423,7 @@ export default {
this.getList() this.getList()
this.totalPd = [] this.totalPd = []
this.move() this.move()
}
}) })
}, },
rowClassName({ row }) { rowClassName({ row }) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment