From df62a4ff7e8a595c69c691f7360a397a4898853f Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Thu, 27 Feb 2025 01:19:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/growthpath/GrowthAddPath.vue | 19 +++++++++++++------ src/views/growthpath/GrowthPath.vue | 23 +++++++++++++++-------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/src/views/growthpath/GrowthAddPath.vue b/src/views/growthpath/GrowthAddPath.vue index 2cc05549..294d639a 100644 --- a/src/views/growthpath/GrowthAddPath.vue +++ b/src/views/growthpath/GrowthAddPath.vue @@ -103,7 +103,6 @@ > --> { return `${record.comLearnNum}/${record.learnNum}`; }, @@ -590,7 +597,7 @@ export default { title: "必修丨选修", align: "center", ellipsis: true, - width:110, + width: 110, customRender: ({ record }) => { return `${record.requiredTaskNum}丨${record.elePublishedNum}`; }, @@ -600,7 +607,7 @@ export default { dataIndex: "ratio", key: "ratio", align: "center", - width:100, + width: 100, ellipsis: true, customRender: ({ record }) => { return `${record.ratio * 100}%`; @@ -611,7 +618,7 @@ export default { dataIndex: "isPublished", key: "isPublished", align: "center", - width:100, + width: 100, ellipsis: true, customRender: ({ record }) => { return record.isPublished ? "已发布" : "未发布"; diff --git a/src/views/growthpath/GrowthPath.vue b/src/views/growthpath/GrowthPath.vue index 370a1bbc..9cc9cbae 100644 --- a/src/views/growthpath/GrowthPath.vue +++ b/src/views/growthpath/GrowthPath.vue @@ -91,7 +91,6 @@ > --> { return `${record.comLearnNum}/${record.learnNum}`; }, }, { - title: "必修|选修", + title: "必修丨选修", align: "center", - width: 110, ellipsis: true, + width: 110, customRender: ({ record }) => { - return `${record.requiredTaskNum}|${record.elePublishedNum}`; + return `${record.requiredTaskNum}丨${record.elePublishedNum}`; }, }, { title: "完成比例", dataIndex: "ratio", key: "ratio", - width:100, align: "center", + width: 100, ellipsis: true, customRender: ({ record }) => { return `${record.ratio * 100}%`; @@ -599,7 +606,7 @@ export default { dataIndex: "isPublished", key: "isPublished", align: "center", - width:100, + width: 100, ellipsis: true, customRender: ({ record }) => { return record.isPublished ? "已发布" : "未发布"; @@ -610,8 +617,8 @@ export default { dataIndex: "updateTime", key: "updateTime", align: "center", - width: 200, ellipsis: true, + width: 200, }, { title: "操作",