From f57c0f44add125065d2d53d0d7d4cf3dd799b112 Mon Sep 17 00:00:00 2001 From: nizongfeng Date: Sun, 5 Dec 2021 14:19:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/view/cf_hotel_info/index.html | 11 ++------ application/admin/view/cf_item/index.html | 11 ++------ application/admin/view/cf_room_plan/index.html | 11 ++------ application/admin/view/payment_order/index.html | 36 +++++-------------------- application/admin/view/receipt_order/index.html | 36 +++++-------------------- 5 files changed, 20 insertions(+), 85 deletions(-) diff --git a/application/admin/view/cf_hotel_info/index.html b/application/admin/view/cf_hotel_info/index.html index 657032c..00909a4 100755 --- a/application/admin/view/cf_hotel_info/index.html +++ b/application/admin/view/cf_hotel_info/index.html @@ -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) }) } diff --git a/application/admin/view/cf_item/index.html b/application/admin/view/cf_item/index.html index b5a448d..cfbbb63 100755 --- a/application/admin/view/cf_item/index.html +++ b/application/admin/view/cf_item/index.html @@ -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) }) } diff --git a/application/admin/view/cf_room_plan/index.html b/application/admin/view/cf_room_plan/index.html index 46e2499..597278c 100755 --- a/application/admin/view/cf_room_plan/index.html +++ b/application/admin/view/cf_room_plan/index.html @@ -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) }) } diff --git a/application/admin/view/payment_order/index.html b/application/admin/view/payment_order/index.html index 750cc8b..e89df66 100755 --- a/application/admin/view/payment_order/index.html +++ b/application/admin/view/payment_order/index.html @@ -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("已取消"); }); } diff --git a/application/admin/view/receipt_order/index.html b/application/admin/view/receipt_order/index.html index 7412bc1..387009c 100755 --- a/application/admin/view/receipt_order/index.html +++ b/application/admin/view/receipt_order/index.html @@ -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("保存成功"); }); }