Browse Source

提示信息优化

dev
nizongfeng 3 years ago
parent
commit
f57c0f44ad
5 changed files with 20 additions and 85 deletions
  1. +2
    -9
      application/admin/view/cf_hotel_info/index.html
  2. +2
    -9
      application/admin/view/cf_item/index.html
  3. +2
    -9
      application/admin/view/cf_room_plan/index.html
  4. +7
    -29
      application/admin/view/payment_order/index.html
  5. +7
    -29
      application/admin/view/receipt_order/index.html

+ 2
- 9
application/admin/view/cf_hotel_info/index.html View File

@@ -356,10 +356,7 @@
let data = response.data;
console.log(this.tableData);
if (data.flag) {
this.$message({
message: '保存成功!',
type: 'success'
});
this.$message.success("保存成功");
this.editShow = false;
this.getData(1);
} else {
@@ -391,11 +388,7 @@
console.log(error);
});
}).catch(() => {

this.$message({
type: 'info',
message: '已取消'
});
this.$message.info("已取消");
this.getData(this.search.pageNum)
})
}


+ 2
- 9
application/admin/view/cf_item/index.html View File

@@ -453,10 +453,7 @@
let data = response.data;
console.log(this.tableData);
if (data.flag) {
this.$message({
message: '保存成功!',
type: 'success'
});
this.$message.success("保存成功");
this.editShow = false;
this.getData(1);
} else {
@@ -488,11 +485,7 @@
console.log(error);
});
}).catch(() => {

this.$message({
type: 'info',
message: '已取消'
});
this.$message.info("已取消");
this.getData(this.search.pageNum)
})
}


+ 2
- 9
application/admin/view/cf_room_plan/index.html View File

@@ -384,10 +384,7 @@
let data = response.data;
console.log(this.tableData);
if (data.flag) {
this.$message({
message: '保存成功!',
type: 'success'
});
this.$message.success("保存成功");
this.editShow = false;
this.getData(1);
} else {
@@ -419,11 +416,7 @@
console.log(error);
});
}).catch(() => {

this.$message({
type: 'info',
message: '已取消'
});
this.$message.info("已取消");
this.getData(this.search.pageNum)
})
}


+ 7
- 29
application/admin/view/payment_order/index.html View File

@@ -541,10 +541,7 @@
let data = response.data;
console.log(this.tableData);
if (data.flag) {
this.$message({
message: '保存成功!',
type: 'success'
});
this.$message.success("保存成功");
this.editShow = false;
this.getData(1);
} else {
@@ -564,10 +561,7 @@
axios.post("/hotel.php/payment_order/setStatus", info).then( (response)=> {
let data = response.data;
if (data.flag) {
this.$message({
message: '设置成功!',
type: 'success'
});
this.$message.success("设置成功");
} else {
this.$message.error(data.msg);
this.getData(this.search.pageNum)
@@ -578,11 +572,7 @@
this.getData(this.search.pageNum)
});
}).catch(() => {

this.$message({
type: 'info',
message: '已取消'
});
this.$message.success("已取消");
this.getData(this.search.pageNum)
})

@@ -628,10 +618,7 @@
axios.post("/hotel.php/payment_order/addOrderMain", param).then((response) => {
let data = response.data;
if (data.flag) {
this.$message({
message: '添加成功!',
type: 'success'
});
this.$message.success("添加成功");
this.getOrderMainData(this.orderMainListSearch.pageNum)
this.getData(this.search.pageNum)
} else {
@@ -671,10 +658,7 @@
axios.post("/hotel.php/payment_order/removeOrderMain", param).then((response) => {
let data = response.data;
if (data.flag) {
this.$message({
message: '移除成功!',
type: 'success'
});
this.$message.success("移除成功");
this.getOrderMainData(this.orderMainListSearch.pageNum)
this.getData(this.search.pageNum)
} else {
@@ -696,10 +680,7 @@
axios.post("/hotel.php/payment_order/delAll", param).then((response) => {
let data = response.data;
if (data.flag) {
this.$message({
message: '移除成功!',
type: 'success'
});
this.$message.success("移除成功");
this.getData(this.search.pageNum)
} else {
this.$message.error(data.msg);
@@ -708,10 +689,7 @@
console.log(error);
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
this.$message.success("已取消");
});
}



+ 7
- 29
application/admin/view/receipt_order/index.html View File

@@ -455,10 +455,7 @@
let data = response.data;
console.log(this.tableData);
if (data.flag) {
this.$message({
message: '保存成功!',
type: 'success'
});
this.$message.success("保存成功");
this.editShow = false;
this.getData(1);
} else {
@@ -478,10 +475,7 @@
axios.post("/hotel.php/receipt_order/setStatus", info).then( (response)=> {
let data = response.data;
if (data.flag) {
this.$message({
message: '设置成功!',
type: 'success'
});
this.$message.success("保存成功");
} else {
this.$message.error(data.msg);
this.getData(this.search.pageNum)
@@ -493,11 +487,7 @@
this.getData(this.search.pageNum)
});
}).catch(() => {

this.$message({
type: 'info',
message: '已取消'
});
this.$message.success("已取消");
this.getData(this.search.pageNum)
})

@@ -534,10 +524,7 @@
axios.post("/hotel.php/receipt_order/addOrderMain", param).then((response) => {
let data = response.data;
if (data.flag) {
this.$message({
message: '添加成功!',
type: 'success'
});
this.$message.success("保存成功");
this.getOrderMainData(this.orderMainListSearch.pageNum)
this.getData(this.search.pageNum)
} else {
@@ -567,10 +554,7 @@
axios.post("/hotel.php/receipt_order/removeOrderMain", param).then((response) => {
let data = response.data;
if (data.flag) {
this.$message({
message: '移除成功!',
type: 'success'
});
this.$message.success("移除成功");
this.getOrderMainData(this.orderMainListSearch.pageNum)
this.getData(this.search.pageNum)
} else {
@@ -592,10 +576,7 @@
axios.post("/hotel.php/receipt_order/delAll", param).then((response) => {
let data = response.data;
if (data.flag) {
this.$message({
message: '移除成功!',
type: 'success'
});
this.$message.success("移除成功");
this.getData(this.search.pageNum)
} else {
this.$message.error(data.msg);
@@ -604,10 +585,7 @@
console.log(error);
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
this.$message.info("保存成功");
});
}



Loading…
Cancel
Save