mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
fix:项目/路径图/面授课学员部门全路径展示
This commit is contained in:
@@ -457,6 +457,8 @@ const tablecolumns = ref([
|
|||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
customRender: ({ record: { studentOrgName, studentDepartName } }) =>
|
||||||
|
(allDepartShow(studentOrgName, studentDepartName)),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "加入方式",
|
title: "加入方式",
|
||||||
@@ -478,6 +480,14 @@ const tablecolumns = ref([
|
|||||||
slots: { customRender: "action" },
|
slots: { customRender: "action" },
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
function allDepartShow(a,b) {
|
||||||
|
let org = (a=="" || a == null || a == undefined) ? a = "" : a.slice(0,1) =='/' ? a.slice(1,a.length) : a;
|
||||||
|
let depart = (b=="" || b == null || b == undefined) ? b = "" : b;
|
||||||
|
let allname = org == "" && depart == "" ? '-' : org + depart;
|
||||||
|
return allname;
|
||||||
|
}
|
||||||
|
|
||||||
const tableParam = ref({
|
const tableParam = ref({
|
||||||
studentName: "", //学员名称
|
studentName: "", //学员名称
|
||||||
groupName: "", //学员小组
|
groupName: "", //学员小组
|
||||||
|
|||||||
Reference in New Issue
Block a user