Commit 20d8d168 authored by guoyou's avatar guoyou

Merge branch 'base-modify' of http://113.105.137.151:22280/youjj/cloud-platform-ui into base-modify

parents 3f1ee16f c34ca821
...@@ -337,12 +337,12 @@ export const asyncRouterMap = [{ ...@@ -337,12 +337,12 @@ export const asyncRouterMap = [{
name: '车辆排班管理', name: '车辆排班管理',
authority: 'bookRecord' authority: 'bookRecord'
}, },
// { {
// path: 'bookingManagement', path: 'bookingManagement',
// component: _import('vehicle/smallProgram/bookingManagement'), component: _import('vehicle/smallProgram/bookingManagement'),
// name: '小程序车辆申请管理', name: '小程序车辆申请管理',
// authority: 'bookingManagement' authority: 'bookingManagement'
// }, },
{ {
path: 'vehicleWarningMsg', path: 'vehicleWarningMsg',
component: _import('vehicle/vehicleWarningMsg/index'), component: _import('vehicle/vehicleWarningMsg/index'),
...@@ -427,12 +427,12 @@ export const asyncRouterMap = [{ ...@@ -427,12 +427,12 @@ export const asyncRouterMap = [{
name: '会员订单管理', name: '会员订单管理',
authority: 'memberOrderInfo' authority: 'memberOrderInfo'
}, },
{ // {
path: 'orderStatistics', // path: 'orderStatistics',
component: _import('order/orderStatistics/index'), // component: _import('order/orderStatistics/index'),
name: '会员订单统计', // name: '会员订单统计',
authority: 'orderStatistics' // authority: 'orderStatistics'
}, // },
{ {
path: 'createOrder', path: 'createOrder',
component: _import('order/createOrder/index'), component: _import('order/createOrder/index'),
...@@ -537,12 +537,12 @@ export const asyncRouterMap = [{ ...@@ -537,12 +537,12 @@ export const asyncRouterMap = [{
name: '首页精选活动', name: '首页精选活动',
authority: 'selectedActivities' authority: 'selectedActivities'
}, },
{ // {
path: 'pushManagement', // path: 'pushManagement',
component: _import('appManagement/pushManagement/index'), // component: _import('appManagement/pushManagement/index'),
name: '消息推送', // name: '消息推送',
authority: 'pushManagement' // authority: 'pushManagement'
} // }
] ]
}, },
{ {
......
...@@ -464,15 +464,27 @@ ...@@ -464,15 +464,27 @@
set[formName].validate(valid => { set[formName].validate(valid => {
if (valid) { if (valid) {
addObj(this.form) addObj(this.form)
.then(() => { .then(response => {
console.log(response)
if(response.status == 200) {
this.$notify({
title: '成功',
message: "添加成功",
type: 'success',
duration: 2000
});
} else {
this.$notify({
title: '失败',
message: response.message,
type: 'error',
duration: 2000
});
}
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.getList(); this.getList();
this.$notify({
title: '成功',
message: '创建成功',
type: 'success',
duration: 2000
});
}) })
} else { } else {
return false; return false;
...@@ -510,16 +522,25 @@ ...@@ -510,16 +522,25 @@
} else { } else {
this.form.password = undefined; this.form.password = undefined;
} }
putObj(this.form.id, this.form).then(() => { putObj(this.form.id, this.form).then(response => {
if(response.status == 200) {
this.$notify({
title: '成功',
message: '编辑成功',
type: 'success',
duration: 2000
});
} else {
this.$notify({
title: '失败',
message: response.message,
type: 'error',
duration: 2000
});
}
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.getList(); this.getList();
this.form.password = undefined; this.form.password = undefined;
this.$notify({
title: '成功',
message: '编辑成功',
type: 'success',
duration: 2000
});
}); });
} else { } else {
return false; return false;
......
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