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
7aa45621
Commit
7aa45621
authored
Sep 25, 2019
by
denghr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
员工录入,后台用户管理
parent
adb36292
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
586 additions
and
22 deletions
+586
-22
dev.env.js
config/dev.env.js
+1
-1
package-lock.json
package-lock.json
+54
-19
index.js
src/api/admin/UserMember/index.js
+8
-0
index.js
src/api/admin/userManagement/index.js
+37
-1
index.js
src/router/index.js
+7
-1
index.vue
src/views/admin/user/index.vue
+2
-0
employeesInput.vue
src/views/userManagement/employeesInput.vue
+477
-0
No files found.
config/dev.env.js
View file @
7aa45621
module
.
exports
=
{
module
.
exports
=
{
NODE_ENV
:
'"development"'
,
NODE_ENV
:
'"development"'
,
BASE_API
:
'"http
://10.1.37.246:8765
"'
,
//'"https://xxfcmgmt.upyuns.com"(正)',//http://10.1.37.192:9527(何), //https://xxtest.upyuns.com(测),10.1.37.246:9527(韩), 10.1.37.244(李斌)10.1.37.248:8765(小威)
BASE_API
:
'"http
s://xxtest.upyuns.com
"'
,
//'"https://xxfcmgmt.upyuns.com"(正)',//http://10.1.37.192:9527(何), //https://xxtest.upyuns.com(测),10.1.37.246:9527(韩), 10.1.37.244(李斌)10.1.37.248:8765(小威)
APP_ORIGIN
:
'"https://wallstreetcn.com"'
APP_ORIGIN
:
'"https://wallstreetcn.com"'
}
}
package-lock.json
View file @
7aa45621
This diff is collapsed.
Click to expand it.
src/api/admin/UserMember/index.js
View file @
7aa45621
...
@@ -16,3 +16,11 @@ export function saveNewMemberObject(obj) {
...
@@ -16,3 +16,11 @@ export function saveNewMemberObject(obj) {
});
});
}
}
export
function
staffImport
(
form
)
{
return
fetch
({
url
:
'/api/admin/postion/admin/excel/import'
,
method
:
'post'
,
data
:
form
});
}
src/api/admin/userManagement/index.js
View file @
7aa45621
...
@@ -80,3 +80,39 @@ export function userPosition(obj) {
...
@@ -80,3 +80,39 @@ export function userPosition(obj) {
method
:
'put'
,
method
:
'put'
,
});
});
}
}
// 用户身份录入列表
export
function
staffList
(
obj
)
{
return
fetch
({
url
:
'/api/admin/postion/admin/page'
,
method
:
'post'
,
data
:
obj
});
}
// 身份列表
export
function
postions
(
obj
)
{
return
fetch
({
url
:
'/api/admin/postion/admin/postions'
,
method
:
'get'
,
data
:
obj
});
}
// 添加员工
export
function
addEditor
(
obj
)
{
return
fetch
({
url
:
'/api/admin/postion/admin/add'
,
method
:
'post'
,
data
:
obj
});
}
//删除员工
export
function
deleteStaffs
(
id
)
{
return
fetch
({
url
:
'/api/admin/postion/admin/'
+
id
,
method
:
'delete'
});
}
src/router/index.js
View file @
7aa45621
...
@@ -465,7 +465,7 @@ export const asyncRouterMap = [{
...
@@ -465,7 +465,7 @@ export const asyncRouterMap = [{
{
{
path
:
'memberManagement'
,
path
:
'memberManagement'
,
component
:
_import
(
'userManagement/memberManagement/index'
),
component
:
_import
(
'userManagement/memberManagement/index'
),
name
:
'会员管理'
,
name
:
'会员管理
1
'
,
authority
:
'memberManagement'
authority
:
'memberManagement'
},
},
{
{
...
@@ -473,6 +473,12 @@ export const asyncRouterMap = [{
...
@@ -473,6 +473,12 @@ export const asyncRouterMap = [{
component
:
_import
(
'userManagement/memberEnter'
),
component
:
_import
(
'userManagement/memberEnter'
),
name
:
'会员录入'
,
name
:
'会员录入'
,
authority
:
'memberEnter'
authority
:
'memberEnter'
},
{
path
:
'employeesInput'
,
component
:
_import
(
'userManagement/employeesInput'
),
name
:
'员工录入'
,
authority
:
'employeesInput'
}
}
]
]
},
},
...
...
src/views/admin/user/index.vue
View file @
7aa45621
...
@@ -546,6 +546,7 @@
...
@@ -546,6 +546,7 @@
}
}
},
},
resetTemp
()
{
resetTemp
()
{
this
.
membersName
=
undefined
;
this
.
editCompanyId
=
undefined
;
this
.
editCompanyId
=
undefined
;
this
.
form
=
{
this
.
form
=
{
username
:
undefined
,
username
:
undefined
,
...
@@ -563,6 +564,7 @@
...
@@ -563,6 +564,7 @@
dataLimit
:
undefined
,
//数据权限
dataLimit
:
undefined
,
//数据权限
members
:
[],
members
:
[],
};
};
// this.form = {
// this.form = {
// username: undefined,
// username: undefined,
// name: undefined,
// name: undefined,
...
...
src/views/userManagement/employeesInput.vue
0 → 100644
View file @
7aa45621
This diff is collapsed.
Click to expand it.
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