Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xiaojie
fns_backend
Commits
024f7b7c
Commit
024f7b7c
authored
Sep 26, 2021
by
Zhang Xiaojie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab.33.cn:CassiniatSaturn/fns_backend into dev
parents
e55acad8
7c6d7959
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
30 deletions
+73
-30
topBar.vue
src/components/UserManage/topBar.vue
+24
-8
userTable.vue
src/components/UserManage/userTable.vue
+1
-0
userColumns.ts
src/const/columns/userColumns.ts
+5
-5
index.ts
src/service/StaffService/index.ts
+3
-2
index.ts
src/store/platformUserManagement/index.ts
+2
-1
client.vue
src/views/Root/User/client.vue
+13
-5
index.vue
src/views/Root/User/index.vue
+25
-9
No files found.
src/components/UserManage/topBar.vue
View file @
024f7b7c
...
@@ -55,6 +55,7 @@ import addNormalManagerModal from './addNormalManagerModal.vue'
...
@@ -55,6 +55,7 @@ import addNormalManagerModal from './addNormalManagerModal.vue'
import
addSuperManagerModal
from
'./addSuperManagerModal.vue'
import
addSuperManagerModal
from
'./addSuperManagerModal.vue'
import
timerange
from
'@/components/TimePicker/index.vue'
import
timerange
from
'@/components/TimePicker/index.vue'
import
{
eLevel
}
from
'@/types/level'
import
{
eLevel
}
from
'@/types/level'
import
{
eNewRoleRelatedToBackEnd
}
from
"@/types/role"
import
{
addUser
}
from
'./const'
import
{
addUser
}
from
'./const'
import
{
mapActions
,
mapMutations
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapMutations
,
mapState
}
from
'vuex'
import
{
nextTick
}
from
'vue/types/umd'
import
{
nextTick
}
from
'vue/types/umd'
...
@@ -87,14 +88,22 @@ export default Vue.extend({
...
@@ -87,14 +88,22 @@ export default Vue.extend({
searchPageReqParams
:
{
searchPageReqParams
:
{
deep
:
true
,
deep
:
true
,
handler
(
newV
)
{
handler
(
newV
)
{
if
(
this
.
type
===
addUser
.
superManager
)
{
console
.
log
(
2
)
// if (this.type === addUser.superManager) {
this
.
platformSave
({
this
.
platformSave
({
start
:
newV
.
startTime
,
start
:
newV
.
startTime
,
end
:
newV
.
endTime
,
end
:
newV
.
endTime
,
userName
:
newV
.
queryName
,
userName
:
newV
.
queryName
,
phone
:
newV
.
queryTel
,
phone
:
newV
.
queryTel
,
})
})
}
// } else {
// this.platformSave({
// start: newV.startTime,
// end: newV.endTime,
// userName: newV.queryName,
// phone: newV.queryTel,
// })
// }
},
},
},
},
},
},
...
@@ -112,6 +121,7 @@ export default Vue.extend({
...
@@ -112,6 +121,7 @@ export default Vue.extend({
}),
}),
...
mapActions
(
'platformUserManagement'
,
{
...
mapActions
(
'platformUserManagement'
,
{
platformQuery
:
'query'
,
platformQuery
:
'query'
,
platform
:
'queryUser'
,
}),
}),
getNewTime
(
startTime
:
number
,
endTime
:
number
)
{
getNewTime
(
startTime
:
number
,
endTime
:
number
)
{
this
.
searchPageReqParams
.
startTime
=
startTime
this
.
searchPageReqParams
.
startTime
=
startTime
...
@@ -119,10 +129,16 @@ export default Vue.extend({
...
@@ -119,10 +129,16 @@ export default Vue.extend({
},
},
query
()
{
query
()
{
if
(
this
.
type
===
addUser
.
superManager
)
{
if
(
this
.
type
===
addUser
.
superManager
)
{
this
.
platformSave
({
this
.
platformSave
({
page
:
1
,
page
:
1
,
})
})
this
.
platformQuery
()}
this
.
platformQuery
()
}
else
{
this
.
platformSave
({
page
:
1
,
})
this
.
platform
()
}
},
},
reset
()
{
reset
()
{
this
.
searchPageReqParams
.
queryName
=
''
this
.
searchPageReqParams
.
queryName
=
''
...
@@ -140,10 +156,10 @@ export default Vue.extend({
...
@@ -140,10 +156,10 @@ export default Vue.extend({
},
},
showModal
()
{
showModal
()
{
const
rankVal
=
(
JSON
.
parse
(
this
.
$route
.
query
.
rankVal
as
string
))
as
{
name
:
string
,
value
:
number
}[];
const
rankVal
=
(
JSON
.
parse
(
this
.
$route
.
query
.
rankVal
as
string
))
as
{
name
:
string
,
value
:
number
}[];
const
role
=
this
.
$route
.
query
.
role
===
eNewRoleRelatedToBackEnd
.
ACM
?
eTypeOfOperatedObject
.
clientManager
:
eTypeOfOperatedObject
.
manager
this
.
$store
.
commit
(
'UserManagement/save'
,
{
this
.
$store
.
commit
(
'UserManagement/save'
,
{
modalMode
:
eAddManagerModalMode
.
create
,
// create表示新增
modalMode
:
eAddManagerModalMode
.
create
,
// create表示新增
typeOfOperatedObject
:
eTypeOfOperatedObject
.
manager
,
// !!!!要改 表示管理员还是客服经理
typeOfOperatedObject
:
role
,
// !!!!要改 表示管理员还是客服经理
searchLevel
:
this
.
level
,
// 当前搜索的层级 如果展示一级分行页面 则是 eLevel.firstLevel_branch
searchLevel
:
this
.
level
,
// 当前搜索的层级 如果展示一级分行页面 则是 eLevel.firstLevel_branch
branchDetailMsg
:
{
// 分支行下拉栏的值
branchDetailMsg
:
{
// 分支行下拉栏的值
fb
:
rankVal
[
0
].
name
,
fb
:
rankVal
[
0
].
name
,
...
...
src/components/UserManage/userTable.vue
View file @
024f7b7c
...
@@ -167,6 +167,7 @@ export default Vue.extend({
...
@@ -167,6 +167,7 @@ export default Vue.extend({
uuid
,
uuid
,
role
role
}
}
console
.
log
(
this
.
params
)
}
else
{
}
else
{
this
.
params
=
{
this
.
params
=
{
location
:
this
.
$route
.
query
.
address
location
:
this
.
$route
.
query
.
address
...
...
src/const/columns/userColumns.ts
View file @
024f7b7c
...
@@ -4,27 +4,27 @@ const columns:Array<column> =
...
@@ -4,27 +4,27 @@ const columns:Array<column> =
{
{
title
:
'注册时间'
,
title
:
'注册时间'
,
align
:
'center'
,
align
:
'center'
,
dataIndex
:
'
time
'
,
dataIndex
:
'
created_at
'
,
},
},
{
{
title
:
'uid'
,
title
:
'uid'
,
align
:
'center'
,
align
:
'center'
,
dataIndex
:
'
key
'
dataIndex
:
'
uuid
'
},
},
{
{
title
:
'姓名'
,
title
:
'姓名'
,
align
:
'center'
,
align
:
'center'
,
dataIndex
:
'name'
dataIndex
:
'
user_
name'
},
},
{
{
title
:
'手机号'
,
title
:
'手机号'
,
align
:
'center'
,
align
:
'center'
,
dataIndex
:
'
account
'
,
dataIndex
:
'
phone
'
,
},
},
{
{
title
:
'所属网点'
,
title
:
'所属网点'
,
align
:
'center'
,
align
:
'center'
,
dataIndex
:
'
bank
'
,
dataIndex
:
'
location
'
,
},
},
{
{
title
:
'备注'
,
title
:
'备注'
,
...
...
src/service/StaffService/index.ts
View file @
024f7b7c
...
@@ -123,7 +123,8 @@ export default class StaffService {
...
@@ -123,7 +123,8 @@ export default class StaffService {
second_branch
?:
number
,
second_branch
?:
number
,
second_sub_branch
?:
number
,
second_sub_branch
?:
number
,
start
?:
number
,
start
?:
number
,
user_name
?:
string
user_name
?:
string
,
role
?:
string
})
{
})
{
return
baseAxios
({
return
baseAxios
({
url
:
'/staff/query'
,
url
:
'/staff/query'
,
...
@@ -159,7 +160,7 @@ export default class StaffService {
...
@@ -159,7 +160,7 @@ export default class StaffService {
role
:
string
role
:
string
})
{
})
{
return
baseAxios
({
return
baseAxios
({
url
:
'/staff/
next_level
'
,
url
:
'/staff/
view
'
,
method
:
'get'
,
method
:
'get'
,
params
:
data
params
:
data
})
})
...
...
src/store/platformUserManagement/index.ts
View file @
024f7b7c
...
@@ -64,7 +64,8 @@ export default <Module<iPlatformModuleState, {}>>{
...
@@ -64,7 +64,8 @@ export default <Module<iPlatformModuleState, {}>>{
second_sub_branch
:
state
.
secondSubBranch
,
second_sub_branch
:
state
.
secondSubBranch
,
start
:
state
.
start
,
start
:
state
.
start
,
user_name
:
state
.
userName
,
user_name
:
state
.
userName
,
level
:
state
.
level
level
:
state
.
level
,
role
:
state
.
role
+
''
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
commit
(
'save'
,
{
commit
(
'save'
,
{
...
...
src/views/Root/User/client.vue
View file @
024f7b7c
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
Vue
from
"vue"
import
Vue
from
"vue"
import
{
FormModel
}
from
'ant-design-vue'
import
{
FormModel
,
message
}
from
'ant-design-vue'
import
{
userList
}
from
'@/mock/index'
import
{
userList
}
from
'@/mock/index'
import
{
user
}
from
'@/types/user'
import
{
user
}
from
'@/types/user'
import
{
columns
}
from
'@/const/columns/userColumns'
import
{
columns
}
from
'@/const/columns/userColumns'
...
@@ -105,7 +105,8 @@ export default Vue.extend({
...
@@ -105,7 +105,8 @@ export default Vue.extend({
current
:
1
,
current
:
1
,
defaultPageSize
:
10
,
defaultPageSize
:
10
,
total
:
0
total
:
0
}
},
uuid
:
''
}
}
},
},
created
()
{
created
()
{
...
@@ -157,18 +158,25 @@ export default Vue.extend({
...
@@ -157,18 +158,25 @@ export default Vue.extend({
this
.
queryParam
.
user_name
=
''
this
.
queryParam
.
user_name
=
''
this
.
queryParam
.
phone
=
''
this
.
queryParam
.
phone
=
''
},
},
check
(
text
:
user
){
check
(
text
:
any
){
this
.
visible
=
true
this
.
visible
=
true
this
.
note
=
text
this
.
note
=
text
},
},
edit
(
text
:
user
){
edit
(
text
:
any
){
this
.
note
=
text
this
.
note
=
text
this
.
uuid
=
text
.
uuid
this
.
show
=
true
this
.
show
=
true
},
},
onSubmit
(){
onSubmit
(){
(
this
.
$refs
.
ruleForm
as
FormModel
).
validate
(
valid
=>
{
(
this
.
$refs
.
ruleForm
as
FormModel
).
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
// staff.
staff
.
remarkStaff
({
uuid
:
this
.
uuid
,
remark
:
this
.
form
.
notes
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
message
.
success
(
'编辑成功'
)
this
.
reset
()
this
.
getList
()
}
})
this
.
show
=
false
this
.
show
=
false
}
else
{
}
else
{
console
.
log
(
'error submit!!'
);
console
.
log
(
'error submit!!'
);
...
...
src/views/Root/User/index.vue
View file @
024f7b7c
...
@@ -18,12 +18,17 @@
...
@@ -18,12 +18,17 @@
:role=
"role"
:role=
"role"
/>
/>
<!-- 搜索框 -->
<!-- 搜索框 -->
<a-input
<
!--
<
a-input
:disabled=
"value.length == 0 ? false : true"
:disabled=
"value.length == 0 ? false : true"
placeholder=
"通过输入详细地址搜索"
placeholder=
"通过输入详细地址搜索"
v-model=
"search"
v-model=
"search"
style=
"width: 20%; margin-right: 15px"
style=
"width: 20%; margin-right: 15px"
/>
/>
-->
<a-select
style=
"width: 120px"
v-model=
"search"
>
<a-select-option
v-for=
"item in option"
:key=
"item.value"
:value=
"item.value"
>
{{
item
.
label
}}
</a-select-option>
</a-select>
<!-- 操作 -->
<!-- 操作 -->
<a-button
type=
"primary"
style=
"margin-right: 10px"
@
click=
"query"
<a-button
type=
"primary"
style=
"margin-right: 10px"
@
click=
"query"
>
查询
</a-button
>
查询
</a-button
...
@@ -46,6 +51,7 @@ import { eLevel } from '@/types/level';
...
@@ -46,6 +51,7 @@ import { eLevel } from '@/types/level';
import
{
fooList
}
from
"@/views/Root/OutletManagement/components/HeaderSelect/const"
;
import
{
fooList
}
from
"@/views/Root/OutletManagement/components/HeaderSelect/const"
;
import
{
PAGE_SIZE
}
from
"@/const/config/page"
import
{
PAGE_SIZE
}
from
"@/const/config/page"
import
HeaderSelect
from
"@/views/Root/OutletManagement/components/HeaderSelect/index.vue"
;
import
HeaderSelect
from
"@/views/Root/OutletManagement/components/HeaderSelect/index.vue"
;
import
{
eNewRoleRelatedToBackEnd
}
from
"@/types/role"
import
{
mapActions
,
mapMutations
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapMutations
,
mapState
}
from
'vuex'
Vue
.
use
(
Cascader
)
Vue
.
use
(
Cascader
)
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
...
@@ -68,9 +74,19 @@ export default Vue.extend({
...
@@ -68,9 +74,19 @@ export default Vue.extend({
},
},
data
(){
data
(){
return
{
return
{
search
:
''
,
search
:
eNewRoleRelatedToBackEnd
.
Management
,
value
:[],
value
:[],
fooList
fooList
,
option
:
[
{
label
:
eNewRoleRelatedToBackEnd
.
Management
,
value
:
eNewRoleRelatedToBackEnd
.
Management
},
{
label
:
eNewRoleRelatedToBackEnd
.
ACM
,
value
:
eNewRoleRelatedToBackEnd
.
ACM
}
]
}
}
},
},
mounted
(){
mounted
(){
...
@@ -138,22 +154,22 @@ export default Vue.extend({
...
@@ -138,22 +154,22 @@ export default Vue.extend({
const
count
=
arr
.
length
const
count
=
arr
.
length
switch
(
count
)
{
switch
(
count
)
{
case
1
:
case
1
:
this
.
$router
.
push
({
path
:
'/backend/user/firstLevel'
,
query
:
{
rankVal
:
JSON
.
stringify
(
arr
)
}})
this
.
$router
.
push
({
path
:
'/backend/user/firstLevel'
,
query
:
{
rankVal
:
JSON
.
stringify
(
arr
)
,
role
:
this
.
search
}})
break
break
case
2
:
case
2
:
this
.
$router
.
push
({
path
:
'/backend/user/secondary'
,
query
:
{
rankVal
:
JSON
.
stringify
(
arr
)
}})
this
.
$router
.
push
({
path
:
'/backend/user/secondary'
,
query
:
{
rankVal
:
JSON
.
stringify
(
arr
)
,
role
:
this
.
search
}})
break
break
case
3
:
case
3
:
this
.
$router
.
push
({
path
:
'/backend/user/firstSub'
,
query
:
{
rankVal
:
JSON
.
stringify
(
arr
)
}})
this
.
$router
.
push
({
path
:
'/backend/user/firstSub'
,
query
:
{
rankVal
:
JSON
.
stringify
(
arr
)
,
role
:
this
.
search
}})
break
break
case
4
:
case
4
:
this
.
$router
.
push
({
path
:
'/backend/user/secondarySub'
,
query
:
{
rankVal
:
JSON
.
stringify
(
arr
)
}})
this
.
$router
.
push
({
path
:
'/backend/user/secondarySub'
,
query
:
{
rankVal
:
JSON
.
stringify
(
arr
)
,
role
:
this
.
search
}})
}
}
}
}
},
},
reset
(){
reset
(){
(
this
.
$refs
.
headerSelect
as
any
).
init
();
(
this
.
$refs
.
headerSelect
as
any
).
init
();
this
.
search
=
''
this
.
search
=
eNewRoleRelatedToBackEnd
.
Management
},
},
}
}
})
})
...
...
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