Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
loan-manager-customer
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
zhanhai
loan-manager-customer
Commits
95ae4d86
Commit
95ae4d86
authored
Jan 31, 2023
by
刘雅文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改手机号添加权限
parent
39449bd3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
BaseInfo.vue
src/components/byh/componments/BaseInfo.vue
+8
-1
Login.vue
src/components/login/Login.vue
+11
-7
No files found.
src/components/byh/componments/BaseInfo.vue
View file @
95ae4d86
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<td>
手机号:
</td>
<td>
手机号:
</td>
<td>
<td>
{{
basicInfo
.
phone
}}
{{
basicInfo
.
phone
}}
<el-button
type=
"primary"
size=
"small"
@
click=
"updateTell(basicInfo.phone)"
>
变更
</el-button>
<el-button
v-if=
"mobilePermission"
type=
"primary"
size=
"small"
@
click=
"updateTell(basicInfo.phone)"
>
变更
</el-button>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -209,6 +209,7 @@ export default {
...
@@ -209,6 +209,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
mobilePermission
:
''
,
tellUpdate
:{
tellUpdate
:{
newTell
:
""
,
newTell
:
""
,
oldTell
:
""
oldTell
:
""
...
@@ -246,6 +247,12 @@ export default {
...
@@ -246,6 +247,12 @@ export default {
},
},
},
},
async
created
()
{
async
created
()
{
const
updateMobile
=
localStorage
.
getItem
(
'updateMobile'
);
if
(
updateMobile
){
this
.
mobilePermission
=
updateMobile
}
else
{
this
.
mobilePermission
=
null
}
if
(
this
.
params
)
{
if
(
this
.
params
)
{
const
params
=
this
.
params
;
const
params
=
this
.
params
;
console
.
log
(
params
,
"是什么"
);
console
.
log
(
params
,
"是什么"
);
...
...
src/components/login/Login.vue
View file @
95ae4d86
...
@@ -132,7 +132,6 @@ export default {
...
@@ -132,7 +132,6 @@ export default {
localStorage
.
setItem
(
"userCell"
,
res
.
data
.
result
.
userCell
);
localStorage
.
setItem
(
"userCell"
,
res
.
data
.
result
.
userCell
);
localStorage
.
setItem
(
"userCellFour"
,
res
.
data
.
result
.
userCellFour
);
localStorage
.
setItem
(
"userCellFour"
,
res
.
data
.
result
.
userCellFour
);
// console.log(res.data.result.userCell,'返回的手机号');
// console.log(res.data.result.userCell,'返回的手机号');
let
userRolePermission
=
this
.
userRolelistToStringUtils
(
let
userRolePermission
=
this
.
userRolelistToStringUtils
(
res
.
data
.
result
.
userRole
res
.
data
.
result
.
userRole
);
);
...
@@ -142,11 +141,15 @@ export default {
...
@@ -142,11 +141,15 @@ export default {
res
.
data
.
result
.
buttonList
res
.
data
.
result
.
buttonList
);
);
localStorage
.
setItem
(
"btnPermission"
,
btnPermission
);
localStorage
.
setItem
(
"btnPermission"
,
btnPermission
);
if
(
res
.
data
.
result
.
buttonList
!=
[])
{
const
buttonList
=
res
.
data
.
result
.
buttonList
;
localStorage
.
setItem
(
"btnUrl"
,
res
.
data
.
result
.
buttonList
);
buttonList
.
forEach
((
item
)
=>
{
}
else
{
if
(
item
&&
item
.
name
==
"生成结清证明"
)
{
localStorage
.
setItem
(
"btnUrl"
,
nul
l
);
localStorage
.
setItem
(
"btnUrl"
,
item
.
ur
l
);
}
}
if
(
item
&&
item
.
name
==
"修改客户手机号"
)
{
localStorage
.
setItem
(
"updateMobile"
,
item
.
url
);
}
});
localStorage
.
setItem
(
localStorage
.
setItem
(
"authaaaa"
,
"authaaaa"
,
JSON
.
stringify
(
res
.
data
.
result
.
menuList
)
JSON
.
stringify
(
res
.
data
.
result
.
menuList
)
...
@@ -178,7 +181,8 @@ export default {
...
@@ -178,7 +181,8 @@ export default {
watermark_txt
:
watermark_txt
:
res
.
data
.
result
.
loginName
+
res
.
data
.
result
.
loginName
+
res
.
data
.
result
.
userCellFour
+
res
.
data
.
result
.
userCellFour
+
nowMonth
+
nowDay
,
nowMonth
+
nowDay
,
watermark_color
:
"#aaa"
,
watermark_color
:
"#aaa"
,
watermark_angle
:
30
,
watermark_angle
:
30
,
watermark_width
:
400
,
watermark_width
:
400
,
...
...
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