Commit 95ae4d86 authored by 刘雅文's avatar 刘雅文

更改手机号添加权限

parent 39449bd3
......@@ -11,7 +11,7 @@
<td>手机号:</td>
<td>
{{ 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>
</tr>
<tr>
......@@ -209,6 +209,7 @@ export default {
},
data() {
return {
mobilePermission:'',
tellUpdate:{
newTell:"",
oldTell:""
......@@ -246,6 +247,12 @@ export default {
},
},
async created() {
const updateMobile=localStorage.getItem('updateMobile');
if(updateMobile){
this.mobilePermission=updateMobile
}else{
this.mobilePermission=null
}
if (this.params) {
const params = this.params;
console.log(params, "是什么");
......
......@@ -132,7 +132,6 @@ export default {
localStorage.setItem("userCell", res.data.result.userCell);
localStorage.setItem("userCellFour", res.data.result.userCellFour);
// console.log(res.data.result.userCell,'返回的手机号');
let userRolePermission = this.userRolelistToStringUtils(
res.data.result.userRole
);
......@@ -142,11 +141,15 @@ export default {
res.data.result.buttonList
);
localStorage.setItem("btnPermission", btnPermission);
if (res.data.result.buttonList != []) {
localStorage.setItem("btnUrl", res.data.result.buttonList);
} else {
localStorage.setItem("btnUrl", null);
const buttonList = res.data.result.buttonList;
buttonList.forEach((item) => {
if (item && item.name == "生成结清证明") {
localStorage.setItem("btnUrl", item.url);
}
if (item && item.name == "修改客户手机号") {
localStorage.setItem("updateMobile", item.url);
}
});
localStorage.setItem(
"authaaaa",
JSON.stringify(res.data.result.menuList)
......@@ -178,7 +181,8 @@ export default {
watermark_txt:
res.data.result.loginName +
res.data.result.userCellFour +
nowMonth+nowDay,
nowMonth +
nowDay,
watermark_color: "#aaa",
watermark_angle: 30,
watermark_width: 400,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment