Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
develop-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cdd7d962
authored
Nov 15, 2020
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
64a30b05
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
12 deletions
src/router/routes.js
src/views/system/login/index.vue
src/views/systemConfig/personalInfo.vue
src/router/routes.js
View file @
cdd7d96
...
@@ -60,7 +60,7 @@ export const resources = {
...
@@ -60,7 +60,7 @@ export const resources = {
'903'
:
{
'903'
:
{
path
:
'/goods'
,
path
:
'/goods'
,
name
:
'goods'
,
name
:
'goods'
,
icon
:
'
document
'
,
icon
:
'
s-goods
'
,
meta
:
{
meta
:
{
title
:
'商品库'
,
title
:
'商品库'
,
authId
:
'903'
,
authId
:
'903'
,
...
@@ -167,7 +167,7 @@ export const resources = {
...
@@ -167,7 +167,7 @@ export const resources = {
'906'
:
{
'906'
:
{
path
:
'/systemConfig'
,
path
:
'/systemConfig'
,
name
:
'systemConfig'
,
name
:
'systemConfig'
,
icon
:
'
document
'
,
icon
:
'
s-tools
'
,
meta
:
{
meta
:
{
title
:
'系统设置'
,
title
:
'系统设置'
,
authId
:
'906'
,
authId
:
'906'
,
...
@@ -178,7 +178,7 @@ export const resources = {
...
@@ -178,7 +178,7 @@ export const resources = {
'90601'
:
{
'90601'
:
{
path
:
'/personalInfo'
,
path
:
'/personalInfo'
,
name
:
'personalInfo'
,
name
:
'personalInfo'
,
icon
:
'
document
'
,
icon
:
'
user-solid
'
,
meta
:
{
meta
:
{
title
:
'个人信息'
,
title
:
'个人信息'
,
authId
:
'90601'
,
authId
:
'90601'
,
...
@@ -190,7 +190,7 @@ export const resources = {
...
@@ -190,7 +190,7 @@ export const resources = {
'90602'
:
{
'90602'
:
{
path
:
'/serviceStore'
,
path
:
'/serviceStore'
,
name
:
'serviceStore'
,
name
:
'serviceStore'
,
icon
:
'
document
'
,
icon
:
'
office-building
'
,
meta
:
{
meta
:
{
title
:
'服务4s店'
,
title
:
'服务4s店'
,
authId
:
'90602'
,
authId
:
'90602'
,
...
...
src/views/system/login/index.vue
View file @
cdd7d96
...
@@ -124,9 +124,11 @@ export default {
...
@@ -124,9 +124,11 @@ export default {
time
:
dayjs
().
format
(
'HH:mm:ss'
),
time
:
dayjs
().
format
(
'HH:mm:ss'
),
// 表单
// 表单
formLogin
:
{
formLogin
:
{
userName
:
'dongdao'
,
//
userName: 'dongdao',
// userName: 'houlai',
// userName: 'houlai',
password
:
'123456'
// password: '123456'
userName
:
''
,
password
:
''
},
},
// 表单校验
// 表单校验
rules
:
Object
.
freeze
({
rules
:
Object
.
freeze
({
...
...
src/views/systemConfig/personalInfo.vue
View file @
cdd7d96
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<p
class=
"title"
>
个人信息
</p>
<p
class=
"title"
>
个人信息
</p>
<el-form>
<el-form>
<el-form-item
<el-form-item
v-for=
"(item, index) in
formList
"
v-for=
"(item, index) in
(formData.userType === 1 ? userformList : formList)
"
:key=
"index"
:key=
"index"
:label=
"item.label"
:label=
"item.label"
label-width=
"100px"
label-width=
"100px"
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<span
v-else-if=
"item.parentName"
>
{{formData[item.parentName][item.name]}}
</span>
<span
v-else-if=
"item.parentName"
>
{{formData[item.parentName][item.name]}}
</span>
<span
v-else
>
{{formData[item.name]}}
</span>
<span
v-else
>
{{formData[item.name]}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
"
>
<el-form-item
v-if=
"formData.userType !== 1
"
>
修改个人信息请到嘀加平台修改,点击快速修改
<a
修改个人信息请到嘀加平台修改,点击快速修改
<a
class=
"info-link"
class=
"info-link"
href=
"http://dj.glsx.com.cn/web-dj-site/#/system/personallnfo"
href=
"http://dj.glsx.com.cn/web-dj-site/#/system/personallnfo"
...
@@ -89,6 +89,41 @@ export default {
...
@@ -89,6 +89,41 @@ export default {
parentName
:
'role'
,
parentName
:
'role'
,
name
:
'name'
,
name
:
'name'
,
label
:
'角色权限'
label
:
'角色权限'
}],
userformList
:
[{
name
:
'accountName'
,
label
:
'登录账户'
},
{
name
:
'loginPhone'
,
label
:
'登陆手机号'
},
{
name
:
'name'
,
label
:
'姓名/名称'
},
{
name
:
'merchantName'
,
label
:
'所属商户'
},
{
name
:
'shortName'
,
label
:
'角色权限'
},
{
name
:
'userTypeName'
,
label
:
'名片'
},
{
name
:
'duty'
,
label
:
'职务'
},
{
name
:
'photoHead'
,
label
:
'头像'
,
type
:
'photo'
},
{
name
:
'phone'
,
label
:
'电话'
},
{
name
:
'wechatNum'
,
label
:
'微信'
},
{
name
:
'userLabelListArr'
,
label
:
'标签'
}]
}]
}
}
},
},
...
@@ -96,10 +131,16 @@ export default {
...
@@ -96,10 +131,16 @@ export default {
mounted
()
{
mounted
()
{
getUserInfo
({}).
then
(
res
=>
{
getUserInfo
({}).
then
(
res
=>
{
this
.
formData
=
res
.
detail
this
.
formData
=
res
.
detail
this
.
formData
.
addr
=
(
this
.
formData
.
provinceName
||
''
)
+
(
this
.
formData
.
cityName
||
''
)
+
(
this
.
formData
.
areaName
||
''
)
+
(
this
.
formData
.
address
||
''
)
this
.
formData
.
userType
=
res
.
userType
this
.
formData
.
carBrandListNoRepeat
=
[...
new
Set
(
this
.
formData
.
carBrandList
.
map
(
item
=>
item
.
brandName
))]
if
(
this
.
formData
.
userType
!==
1
)
{
var
typeList
=
this
.
formData
.
channelId
===
2
?
ghUserType
:
userType
this
.
formData
.
addr
=
(
this
.
formData
.
provinceName
||
''
)
+
(
this
.
formData
.
cityName
||
''
)
+
(
this
.
formData
.
areaName
||
''
)
+
(
this
.
formData
.
address
||
''
)
this
.
formData
.
userTypeName
=
typeList
[
this
.
formData
.
userType
]
this
.
formData
.
carBrandListNoRepeat
=
[...
new
Set
(
this
.
formData
.
carBrandList
.
map
(
item
=>
item
.
brandName
))]
var
typeList
=
this
.
formData
.
channelId
===
2
?
ghUserType
:
userType
this
.
formData
.
userTypeName
=
typeList
[
this
.
formData
.
userType
]
}
else
{
this
.
formData
.
photoHead
=
[{
mediaUrl
:
this
.
formData
.
photo
}]
this
.
formData
.
userLabelListArr
=
this
.
formData
.
userLabelList
.
map
(
item
=>
item
.
labelName
)
}
})
})
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment