修改展示字段顺序

This commit is contained in:
Caojr
2025-11-24 15:02:17 +08:00
parent 80727675b0
commit 77a8af4918

View File

@@ -151,6 +151,26 @@
</draggable>
</template>
<template #bodyCell="{ record, column }">
<template v-if="column.key === 'projectCompletedNum'">
<div
style="color: #02a7f0; cursor: pointer"
@click="openModal(record.studentId, 1)"
>
{{
!record.projectCompletedNum ? "0" : record.projectCompletedNum
}}
</div>
</template>
<template v-if="column.key === 'routerCompletedNum'">
<div
style="color: #02a7f0; cursor: pointer"
@click="openModal(record.studentId, 2)"
>
{{
!record.routerCompletedNum ? "0" : record.routerCompletedNum
}}
</div>
</template>
<template v-if="column.key === 'offCourseCompletedNum'">
<div
style="color: #02a7f0; cursor: pointer"
@@ -181,26 +201,6 @@
{{ !record.examCompletedNum ? "0" : record.examCompletedNum }}
</div>
</template>
<template v-if="column.key === 'projectCompletedNum'">
<div
style="color: #02a7f0; cursor: pointer"
@click="openModal(record.studentId, 1)"
>
{{
!record.projectCompletedNum ? "0" : record.projectCompletedNum
}}
</div>
</template>
<template v-if="column.key === 'routerCompletedNum'">
<div
style="color: #02a7f0; cursor: pointer"
@click="openModal(record.studentId, 2)"
>
{{
!record.routerCompletedNum ? "0" : record.routerCompletedNum
}}
</div>
</template>
<template v-if="column.key === 'caseViewsNum'">
<div
style="color: #02a7f0; cursor: pointer"
@@ -515,40 +515,6 @@ export default {
visible: true,
customRender: (text) => {return !text.value?'0':text.value;}
},
{
title: "项目完成率",
dataIndex: "projectCompletedRate",
ellipsis: true,
key: "projectCompletedRate",
width: 120,
align: "center",
sorter: true,
colSortNo: 7,
visible: true,
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";},
},
{
title: "学习路径完成关卡数",
dataIndex: "routerCompletedNum",
ellipsis: true,
key: "routerCompletedNum",
width: 180,
align: "center",
colSortNo: 8,
visible: true,
customRender: (text) => {return !text.value?'0':text.value;}
},
{
title: "学习路径完成率",
dataIndex: "routerCompletedRate",
ellipsis: true,
key: "routerCompletedRate",
width: 160,
align: "center",
colSortNo: 9,
visible: true,
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";}
},
{
title: "面授完成数",
dataIndex: "offCourseCompletedNum",
@@ -556,7 +522,7 @@ export default {
key: "offCourseCompletedNum",
width: 120,
align: "center",
colSortNo: 10,
colSortNo: 7,
visible: true,
customRender: (text) => {return !text.value?'0':text.value;}
},
@@ -567,7 +533,7 @@ export default {
key: "offCourseCompletedRate",
width: 120,
align: "center",
colSortNo: 11,
colSortNo: 8,
visible: true,
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";}
},
@@ -578,7 +544,7 @@ export default {
key: "onlineCompletedNum",
width: 130,
align: "center",
colSortNo: 12,
colSortNo: 9,
visible: true,
customRender: (text) => {return !text.value?'0':text.value;}
},
@@ -589,7 +555,7 @@ export default {
key: "onlineCompletedDuration",
width: 160,
align: "center",
colSortNo: 13,
colSortNo: 10,
visible: true,
customRender: (text) => {return !text.value?'0':text.value;}
},
@@ -601,7 +567,7 @@ export default {
key: "examCompletedNum",
width: 120,
align: "center",
colSortNo: 14,
colSortNo: 15,
visible: true,
customRender: (text) => {return !text.value?'0':text.value;}
},
@@ -612,11 +578,10 @@ export default {
key: "examPassNum",
width: 120,
align: "center",
colSortNo: 15,
colSortNo: 16,
visible: true,
customRender: (text) => {return !text.value?'0':text.value;}
},
*/
{
title: "考试及格率",
dataIndex: "examPassRate",
@@ -624,7 +589,42 @@ export default {
key: "examPassRate",
width: 120,
align: "center",
colSortNo: 16,
colSortNo: 17,
visible: true,
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";}
},
*/
{
title: "项目完成率",
dataIndex: "projectCompletedRate",
ellipsis: true,
key: "projectCompletedRate",
width: 120,
align: "center",
sorter: true,
colSortNo: 11,
visible: true,
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";},
},
{
title: "学习路径完成关卡数",
dataIndex: "routerCompletedNum",
ellipsis: true,
key: "routerCompletedNum",
width: 180,
align: "center",
colSortNo: 12,
visible: true,
customRender: (text) => {return !text.value?'0':text.value;}
},
{
title: "学习路径完成率",
dataIndex: "routerCompletedRate",
ellipsis: true,
key: "routerCompletedRate",
width: 160,
align: "center",
colSortNo: 13,
visible: true,
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";}
},
@@ -635,7 +635,7 @@ export default {
key: "caseNum",
width: 120,
align: "center",
colSortNo: 17,
colSortNo: 14,
visible: true,
customRender: (text) => {return !text.value?'0':text.value;}
},