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

更改手机号添加权限

parent 39449bd3
...@@ -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, "是什么");
......
...@@ -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", null); localStorage.setItem("btnUrl", item.url);
} }
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,
......
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