-
类型:
+
课程:{{ newCourseName }}
+
类型:
{{ faceType }}
内容分类:
{{ faceClassification }}
@@ -2536,110 +2536,63 @@ const columns2 = [
title: "姓名",
dataIndex: "studentName",
key: "studentName",
- width: "12%",
+ width: "6%",
align: "center",
- customRender: (text) => {
- return (
-
-
- {" "}
- {text.record.studentName ? text.record.studentName : "-"}
-
-
- );
- },
+ customRender: ({record: {studentName}}) => (studentName || "-")
},
{
title: "工号",
dataIndex: "studentUserNo",
key: "studentUserNo",
width: "12%",
+ ellipsis: true,
align: "center",
- customRender: (text) => {
- return (
-
-
- {" "}
- {text.record.studentUserNo ? text.record.studentUserNo : "-"}
-
-
- );
- },
+ customRender: ({record: {studentUserNo}}) => (studentUserNo || "-")
},
{
title: "开课名称",
dataIndex: "name",
key: "name",
width: "12%",
+ ellipsis: true,
align: "center",
- customRender: (text) => {
- return (
-
- {text.record.name ? text.record.name : "-"}
-
- );
- },
+ customRender: ({record: {name}}) => (name || "-")
},
{
title: "地点",
dataIndex: "address",
key: "address",
width: "12%",
+ ellipsis: true,
align: "center",
- customRender: (text) => {
- return (
-
- {text.record.address ? text.record.address : "-"}
-
- );
- },
+ customRender: ({record: {address}}) => (address || "-")
},
{
title: "数据来源",
dataIndex: "courseSource",
key: "courseSource",
+ ellipsis: true,
width: "12%",
align: "center",
- customRender: ({record:{courseName,routerName}}) => {
- return (
-
-
- {courseName || routerName || "开课"}
-
-
- );
- },
+ customRender: ({record:{courseName,routerName}}) => (courseName || routerName || "开课"),
},
{
title: "学习时间",
dataIndex: "lastStudyTime",
key: "lastStudyTime",
- width: "12%",
+ width: "10%",
align: "center",
- customRender: (text) => {
- return (
-
-
- {" "}
- {text.record.lastStudyTime ? text.record.lastStudyTime : "-"}
-
-
- );
- },
+ ellipsis: true,
+ customRender: ({record:{lastStudyTime}}) => (lastStudyTime || "-")
},
{
title: "签到时间",
dataIndex: "signTime",
key: "signTime",
- width: "12%",
+ width: "10%",
align: "center",
- customRender: (text) => {
- return (
-
- {text.record.signTime ? text.record.signTime : "-"}
-
- );
- },
+ ellipsis: true,
+ customRender: ({record:{signTime}}) => (signTime || "-")
},
{
title: "状态",