fix:项目/路径图/面授课学员部门全路径展示

This commit is contained in:
wyx
2023-01-19 10:19:48 +08:00
parent 5173e01cf3
commit 1767faa85c

View File

@@ -457,6 +457,8 @@ const tablecolumns = ref([
align: "center",
className: "h",
ellipsis: true,
customRender: ({ record: { studentOrgName, studentDepartName } }) =>
(allDepartShow(studentOrgName, studentDepartName)),
},
{
title: "加入方式",
@@ -478,6 +480,14 @@ const tablecolumns = ref([
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({
studentName: "", //学员名称
groupName: "", //学员小组