Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform-ui
Commits
20d8d168
Commit
20d8d168
authored
Sep 30, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'base-modify' of
http://113.105.137.151:22280/youjj/cloud-platform-ui
into base-modify
parents
3f1ee16f
c34ca821
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
32 deletions
+53
-32
index.js
src/router/index.js
+18
-18
index.vue
src/views/admin/user/index.vue
+35
-14
No files found.
src/router/index.js
View file @
20d8d168
...
@@ -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'
}
//
}
]
]
},
},
{
{
...
...
src/views/admin/user/index.vue
View file @
20d8d168
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment