|
@@ -129,7 +129,6 @@ export default {
|
|
|
.then(res => {
|
|
|
// 入待宰栏列表
|
|
|
this.getWaitList();
|
|
|
- // this.$message.success("添加成功!");
|
|
|
if (res.errCode) {
|
|
|
this.$message.error(res.errMsg);
|
|
|
} else {
|
|
@@ -145,7 +144,6 @@ export default {
|
|
|
.then(res => {
|
|
|
// 入待宰栏列表
|
|
|
this.getWaitList();
|
|
|
- // this.$message.success("编辑成功!");
|
|
|
if (res.errCode) {
|
|
|
this.$message.error(res.errMsg);
|
|
|
} else {
|
|
@@ -162,7 +160,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- // 入待宰栏列表
|
|
|
+ // 入待宰栏列表
|
|
|
getWaitList() {
|
|
|
reqWaitList({
|
|
|
searchStr: this.search,
|
|
@@ -171,7 +169,7 @@ export default {
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.tableData = res.content;
|
|
|
- console.log(res.totalPages)
|
|
|
+ console.log(res.totalPages);
|
|
|
this.totalPages = res.totalPages;
|
|
|
})
|
|
|
.catch(err => {
|
|
@@ -180,12 +178,12 @@ export default {
|
|
|
},
|
|
|
add() {
|
|
|
this.isShow = true;
|
|
|
- this.isAdd = true
|
|
|
+ this.isAdd = true;
|
|
|
},
|
|
|
edit(row) {
|
|
|
this.formData = row;
|
|
|
this.isShow = true;
|
|
|
- this.isAdd = false
|
|
|
+ this.isAdd = false;
|
|
|
},
|
|
|
del(row) {
|
|
|
reqDelWait(row.id)
|
|
@@ -193,7 +191,11 @@ export default {
|
|
|
console.log(res);
|
|
|
// 入待宰栏列表
|
|
|
this.getWaitList();
|
|
|
- this.$message.success("删除成功!");
|
|
|
+ if (res.errCode) {
|
|
|
+ this.$message.error(res.errMsg);
|
|
|
+ } else {
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ }
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.log(err);
|