组织管理调整

This commit is contained in:
fan 2021-04-02 09:58:45 +08:00
parent baf424cfad
commit fc861b1c70
2 changed files with 17 additions and 3 deletions

View File

@ -2,10 +2,10 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud';
// BASE_API = 'https://test.joylink.club/jlcloud';
BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.8.129:9000'; // 旭强
BASE_API = 'http://192.168.8.119:9000'; // 张赛
// BASE_API = 'http://192.168.8.119:9000'; // 张赛
// BASE_API = 'http://192.168.8.140:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康

View File

@ -23,7 +23,10 @@
@node-collapse="nodeCollapse"
>
<span slot-scope="{ node, data }" class="custom-tree-node">
<span>{{ node.data.name }}</span>
<span>
<span>{{ node.data.name }}</span>
<span style="font-size: 14px;margin-left: 10px;color: #B0B0B5;">{{ getRoleName(node.data.orgRole) }}</span>
</span>
<span v-if="node.data.type === 'USER'">
<el-button
type="text"
@ -94,6 +97,17 @@ export default {
this.$message.error('获取组织结构失败:' + error.message);
});
},
getRoleName(role) {
if (role === 'Teacher') {
return '-- 教师';
} else if (role === 'Admin') {
return '-- 管理员';
} else if (role === 'Student') {
return '-- 学生';
} else {
return '';
}
},
filterNode(value, data, node) {
if (!value) return true;
return data.name.indexOf(value) !== -1 || this.checkParent(value, node);