mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
修改展示字段顺序
This commit is contained in:
@@ -151,6 +151,26 @@
|
|||||||
</draggable>
|
</draggable>
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ record, column }">
|
<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'">
|
<template v-if="column.key === 'offCourseCompletedNum'">
|
||||||
<div
|
<div
|
||||||
style="color: #02a7f0; cursor: pointer"
|
style="color: #02a7f0; cursor: pointer"
|
||||||
@@ -181,26 +201,6 @@
|
|||||||
{{ !record.examCompletedNum ? "0" : record.examCompletedNum }}
|
{{ !record.examCompletedNum ? "0" : record.examCompletedNum }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</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'">
|
<template v-if="column.key === 'caseViewsNum'">
|
||||||
<div
|
<div
|
||||||
style="color: #02a7f0; cursor: pointer"
|
style="color: #02a7f0; cursor: pointer"
|
||||||
@@ -515,40 +515,6 @@ export default {
|
|||||||
visible: true,
|
visible: true,
|
||||||
customRender: (text) => {return !text.value?'0':text.value;}
|
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: "面授完成数",
|
title: "面授完成数",
|
||||||
dataIndex: "offCourseCompletedNum",
|
dataIndex: "offCourseCompletedNum",
|
||||||
@@ -556,7 +522,7 @@ export default {
|
|||||||
key: "offCourseCompletedNum",
|
key: "offCourseCompletedNum",
|
||||||
width: 120,
|
width: 120,
|
||||||
align: "center",
|
align: "center",
|
||||||
colSortNo: 10,
|
colSortNo: 7,
|
||||||
visible: true,
|
visible: true,
|
||||||
customRender: (text) => {return !text.value?'0':text.value;}
|
customRender: (text) => {return !text.value?'0':text.value;}
|
||||||
},
|
},
|
||||||
@@ -567,7 +533,7 @@ export default {
|
|||||||
key: "offCourseCompletedRate",
|
key: "offCourseCompletedRate",
|
||||||
width: 120,
|
width: 120,
|
||||||
align: "center",
|
align: "center",
|
||||||
colSortNo: 11,
|
colSortNo: 8,
|
||||||
visible: true,
|
visible: true,
|
||||||
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";}
|
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";}
|
||||||
},
|
},
|
||||||
@@ -578,7 +544,7 @@ export default {
|
|||||||
key: "onlineCompletedNum",
|
key: "onlineCompletedNum",
|
||||||
width: 130,
|
width: 130,
|
||||||
align: "center",
|
align: "center",
|
||||||
colSortNo: 12,
|
colSortNo: 9,
|
||||||
visible: true,
|
visible: true,
|
||||||
customRender: (text) => {return !text.value?'0':text.value;}
|
customRender: (text) => {return !text.value?'0':text.value;}
|
||||||
},
|
},
|
||||||
@@ -589,7 +555,7 @@ export default {
|
|||||||
key: "onlineCompletedDuration",
|
key: "onlineCompletedDuration",
|
||||||
width: 160,
|
width: 160,
|
||||||
align: "center",
|
align: "center",
|
||||||
colSortNo: 13,
|
colSortNo: 10,
|
||||||
visible: true,
|
visible: true,
|
||||||
customRender: (text) => {return !text.value?'0':text.value;}
|
customRender: (text) => {return !text.value?'0':text.value;}
|
||||||
},
|
},
|
||||||
@@ -601,7 +567,7 @@ export default {
|
|||||||
key: "examCompletedNum",
|
key: "examCompletedNum",
|
||||||
width: 120,
|
width: 120,
|
||||||
align: "center",
|
align: "center",
|
||||||
colSortNo: 14,
|
colSortNo: 15,
|
||||||
visible: true,
|
visible: true,
|
||||||
customRender: (text) => {return !text.value?'0':text.value;}
|
customRender: (text) => {return !text.value?'0':text.value;}
|
||||||
},
|
},
|
||||||
@@ -612,11 +578,10 @@ export default {
|
|||||||
key: "examPassNum",
|
key: "examPassNum",
|
||||||
width: 120,
|
width: 120,
|
||||||
align: "center",
|
align: "center",
|
||||||
colSortNo: 15,
|
colSortNo: 16,
|
||||||
visible: true,
|
visible: true,
|
||||||
customRender: (text) => {return !text.value?'0':text.value;}
|
customRender: (text) => {return !text.value?'0':text.value;}
|
||||||
},
|
},
|
||||||
*/
|
|
||||||
{
|
{
|
||||||
title: "考试及格率",
|
title: "考试及格率",
|
||||||
dataIndex: "examPassRate",
|
dataIndex: "examPassRate",
|
||||||
@@ -624,7 +589,42 @@ export default {
|
|||||||
key: "examPassRate",
|
key: "examPassRate",
|
||||||
width: 120,
|
width: 120,
|
||||||
align: "center",
|
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,
|
visible: true,
|
||||||
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";}
|
customRender: (text) => {return !text.value && text.value != 0?'0%':text.value + "%";}
|
||||||
},
|
},
|
||||||
@@ -635,7 +635,7 @@ export default {
|
|||||||
key: "caseNum",
|
key: "caseNum",
|
||||||
width: 120,
|
width: 120,
|
||||||
align: "center",
|
align: "center",
|
||||||
colSortNo: 17,
|
colSortNo: 14,
|
||||||
visible: true,
|
visible: true,
|
||||||
customRender: (text) => {return !text.value?'0':text.value;}
|
customRender: (text) => {return !text.value?'0':text.value;}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user