@@ -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 @@
+ 全部
未开始
@@ -78,15 +81,16 @@
style="width: 100%; height: 100%"
:src="getAssetsFile(item.courseType)"
/>
+ {{ key + 1 }}