Browse Source

页面优化

master
nizongfeng 1 year ago
parent
commit
78f2a3fc0d
1 changed files with 54 additions and 9 deletions
  1. +54
    -9
      application/admin/view/order_main/index.html

+ 54
- 9
application/admin/view/order_main/index.html View File

@@ -475,7 +475,12 @@
this.city = data.data;

} else {
this.$message.error(data.msg);
this.$message({
offset:0,
showClose:true,duration:500,
type: 'error',
message: data.msg
});
}
}).catch(function (error) {
console.log(error);
@@ -496,7 +501,12 @@
if (data.flag) {
this.area = data.data;
} else {
this.$message.error(data.msg);
this.$message({
offset:0,
showClose:true,duration:500,
type: 'error',
message: data.msg
});
}
}).catch(function (error) {
console.log(error);
@@ -603,7 +613,12 @@
if (data.flag) {
this.province = data.data;
} else {
this.$message.error(data.msg);
this.$message({
offset:0,
showClose:true,duration:500,
type: 'error',
message: data.msg
});
}
}).catch(function (error) {
console.log(error);
@@ -626,7 +641,12 @@
this.tableData = data.data.list;
this.total = data.data.total;
} else {
this.$message.error(response.msg);
this.$message({
offset:0,
showClose:true,duration:500,
type: 'error',
message: response.msg
});
}
}).catch(function (error) {
console.log(error);
@@ -640,9 +660,19 @@
axios.post("/hotel.php/order_main/addMemo", this.addMemo).then((response) => {
let data = response.data;
if (data.flag) {
this.$message.success("添加成功");
this.$message({
offset:0,
showClose:true,duration:500,
type: 'success',
message: "添加成功"
});
} else {
this.$message.error(response.msg);
this.$message({
offset:0,
showClose:true,duration:500,
type: 'error',
message: "response.msg"
});
}
}).catch(function (error) {
console.log(error);
@@ -661,7 +691,12 @@

this.memoList = data.data.list;
} else {
this.$message.error(response.msg);
this.$message({
offset:0,
showClose:true,duration:500,
type: 'error',
message: "response.msg"
});
}
}).catch(function (error) {
console.log(error);
@@ -683,9 +718,19 @@
let data = response.data;
if (data.flag) {
this.tableData[index].hot_seq=val
this.$message.success("设置成功");
this.$message({
offset:0,
showClose:true,duration:500,
type: 'success',
message: "设置成功"
});
} else {
this.$message.error(response.msg);
this.$message({
offset:0,
showClose:true,duration:500,
type: 'error',
message: "response.msg"
});
}
}).catch(function (error) {
console.log(error);


Loading…
Cancel
Save