mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 20:36:45 +08:00
fix:面授课列表字段更新,无数据加横线
This commit is contained in:
@@ -297,7 +297,7 @@ export default {
|
|||||||
console.log(text.record.status);
|
console.log(text.record.status);
|
||||||
return (
|
return (
|
||||||
<div class="racona">
|
<div class="racona">
|
||||||
<span> {text.record.status==0?"未开始":text.record.status==10?"未通过":"已通过"}</span>
|
<span> {text.record.status==0||text.record.status==null?"未开始":text.record.status==10?"未通过":"已通过"}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -316,7 +316,7 @@
|
|||||||
console.log(text.record.status);
|
console.log(text.record.status);
|
||||||
return (
|
return (
|
||||||
<div class="racona">
|
<div class="racona">
|
||||||
<span> {text.record.status==0?"未开始":text.record.status==10?"未通过":"已通过"}</span>
|
<span> {text.record.status==0||text.record.status==null?"未开始":text.record.status==10?"未通过":"已通过"}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2538,6 +2538,13 @@ const columns2 = [
|
|||||||
key: "studentName",
|
key: "studentName",
|
||||||
width: "12%",
|
width: "12%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span> {text.record.studentName?text.record.studentName:"-"}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "工号",
|
title: "工号",
|
||||||
@@ -2545,13 +2552,27 @@ const columns2 = [
|
|||||||
key: "studentUserNo",
|
key: "studentUserNo",
|
||||||
width: "12%",
|
width: "12%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span> {text.record.studentUserNo?text.record.studentUserNo:"-"}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "开课名称",
|
title: "开课名称",
|
||||||
dataIndex: "courseName",
|
dataIndex: "name",
|
||||||
key: "courseName",
|
key: "name",
|
||||||
width: "12%",
|
width: "12%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span> {text.record.name?text.record.name:"-"}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "地点",
|
title: "地点",
|
||||||
@@ -2559,6 +2580,13 @@ const columns2 = [
|
|||||||
key: "address",
|
key: "address",
|
||||||
width: "12%",
|
width: "12%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span> {text.record.address?text.record.address:"-"}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "数据来源",
|
title: "数据来源",
|
||||||
@@ -2566,13 +2594,27 @@ const columns2 = [
|
|||||||
key: "courseSource",
|
key: "courseSource",
|
||||||
width: "12%",
|
width: "12%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span> {text.record.courseSource?text.record.courseSource:"-"}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "学习时间",
|
title: "学习时间",
|
||||||
dataIndex: "beginTime",
|
dataIndex: "lastStudyTime",
|
||||||
key: "beginTime",
|
key: "lastStudyTime",
|
||||||
width: "12%",
|
width: "12%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span> {text.record.lastStudyTime?text.record.lastStudyTime:"-"}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "签到时间",
|
title: "签到时间",
|
||||||
@@ -2580,6 +2622,13 @@ const columns2 = [
|
|||||||
key: "signTime",
|
key: "signTime",
|
||||||
width: "12%",
|
width: "12%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span> {text.record.signTime?text.record.signTime:"-"}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "状态",
|
title: "状态",
|
||||||
@@ -2587,6 +2636,13 @@ const columns2 = [
|
|||||||
key: "status",
|
key: "status",
|
||||||
width: "12%",
|
width: "12%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<span> {text.record.finishStatus==0 || text.record.finishStatus == null ?"未开始":"已完成"}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: "操作",
|
// title: "操作",
|
||||||
|
|||||||
Reference in New Issue
Block a user