From 8e96cf016963c3eed7aed645df3fc6f46c3e0f7f Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Wed, 26 Feb 2025 00:00:57 +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/assets/image/growth/listJiaoBiao.png | Bin 0 -> 423 bytes src/views/growth/components/gowthPath2.vue | 53 ++++++++++-- src/views/growth/growthDetails.vue | 90 +++++++++++++++++---- src/views/growth/growthPath.vue | 82 +++++++++++++++++-- vite.config.js | 3 +- 5 files changed, 198 insertions(+), 30 deletions(-) create mode 100644 src/assets/image/growth/listJiaoBiao.png diff --git a/src/assets/image/growth/listJiaoBiao.png b/src/assets/image/growth/listJiaoBiao.png new file mode 100644 index 0000000000000000000000000000000000000000..7eef55a665bca0c3f88da70b78af51e194784337 GIT binary patch literal 423 zcmV;Y0a*TtP)Px$VM#362HRh(}cL89-ys z+utz8IdgqMUoV-Rf*SiznQ+iQID7;k@iXHKMueIW*wj<`gKi}c literal 0 HcmV?d00001 diff --git a/src/views/growth/components/gowthPath2.vue b/src/views/growth/components/gowthPath2.vue index 617205d..d90e8b7 100644 --- a/src/views/growth/components/gowthPath2.vue +++ b/src/views/growth/components/gowthPath2.vue @@ -3,7 +3,7 @@
-
+
-
{{ item.taskName }}
+
+
+ {{ stageProcessList.length - index }} +
+
{{ item.taskName }}
+
@@ -78,6 +102,7 @@ const point = [ { top: 51, right: 167, + align: "end", }, { top: 144, @@ -86,6 +111,7 @@ const point = [ { top: 234, right: 146, + align: "end", }, { top: 339, @@ -94,6 +120,7 @@ const point = [ { top: 414, right: 121, + align: "end", }, { top: 535, @@ -102,6 +129,7 @@ const point = [ { top: 635, right: 53, + align: "end", }, { top: 723, @@ -110,17 +138,18 @@ const point = [ { top: 804, right: 53, + align: "end", }, ]; // 基础配置项 const widthConfig = [ "0px", - "0px", + "20px", "64px", "40px", "80px", - "20px", + "40px", "64px", "80px", "45px", @@ -143,6 +172,8 @@ const position = (index) => { return { top: `${multiple * (853 + 25) + point[num2].top}px`, right: `${point[num2].right}px`, + topNum: multiple * (853 + 25) + point[num2].top, + align: point[num2].align, }; }; // 基础配置项 @@ -176,6 +207,13 @@ const stateData = computed(() => { bgColor: "rgba(242, 144, 61, 0.2)", progressColor: "#F2903D", }; + } else if (item.completionStatus === "3") { + return { + text: "已结束", + color: "#666666", + bgColor: "rgba(102, 102, 102, 0.2)", + progressColor: "#AEB3B8", + }; } }; }); @@ -197,6 +235,9 @@ const toFinish = (item) => { background-image: url(@/assets/image/growth/path2.png); background-size: 100%; + :deep(.el-progress-bar__outer){ + background-color: #AEB3B8; + } .path-item { position: absolute; display: flex; @@ -244,7 +285,7 @@ const toFinish = (item) => { border-radius: 4px; font-size: 12px; color: #ffffff; - padding: 8px 5px 9px 10px; + padding: 8px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; diff --git a/src/views/growth/growthDetails.vue b/src/views/growth/growthDetails.vue index a95ce3a..da02fcf 100644 --- a/src/views/growth/growthDetails.vue +++ b/src/views/growth/growthDetails.vue @@ -45,6 +45,9 @@