Browse Source

第二阶段自主增减列表页部门经理无法评分

master^2
周江龙 2 years ago
parent
commit
434cc1fcf0
2 changed files with 6 additions and 1 deletions
  1. +1
    -1
      src/config/setting.js
  2. +5
    -0
      src/views/second/taskSummary/basicTable.vue

+ 1
- 1
src/config/setting.js View File

@@ -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;
},

+ 5
- 0
src/views/second/taskSummary/basicTable.vue View File

@@ -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"]) {

Loading…
Cancel
Save