@@ -13,7 +13,7 @@ export default { | |||
parseMenuItem: null, // 自定义解析接口菜单每一个数据格式 | |||
userUrl: '/index/getUserInfo', // 用户信息接口 | |||
parseUser: (res) => { // 自定义解析接口用户信息 | |||
res.data.roles = res.data.roles.map(d => d.roleCode); | |||
res.data.roles = res.data.roles.map(d => d.code); | |||
res.data.authorities = res.data.authorities.map(d => d.authority); | |||
return res; | |||
}, |
@@ -154,6 +154,7 @@ | |||
@click="showPointsDialog(row)" | |||
type="warning" | |||
icon="el-icon-edit-outline" | |||
v-if="!getRole(row)" | |||
>评分</el-link | |||
> | |||
</template> | |||
@@ -515,6 +516,10 @@ export default { | |||
}, | |||
}, | |||
methods: { | |||
getRole(){ | |||
let roles=this.user.user.roles; | |||
return roles.every((item)=>item=="roleA") | |||
}, | |||
formatFirstList(data, type) { | |||
let arr = []; | |||
for (let key in data[type + "DeptList"]) { |