From e4c7bca105e64c047fbcd6bbb53ff5d32b0c5fd6 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 10 Jun 2025 14:19:29 +0800
Subject: [PATCH] feat:日历去掉今日
---
src/views/wel/components/backlog.vue | 30 +++++++++++++++++++++---------
1 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/src/views/wel/components/backlog.vue b/src/views/wel/components/backlog.vue
index de4b254..a6c143b 100644
--- a/src/views/wel/components/backlog.vue
+++ b/src/views/wel/components/backlog.vue
@@ -28,9 +28,8 @@
@click="jumporder(item)"
>
<div
- class="status-indicator"
- :style="{ backgroundImage: getStatusBackground(item.status) }"
- ></div>
+ class="status-indicator"
+ ><img :src="getStatus(item.status)" alt=""></div>
<div class="content-wrapper">
<div class="main-content">
@@ -119,13 +118,22 @@
3: { color: '#FF472F', backgroundImage: db2, borderLeftColor: '#FF472F' },
};
// 根据状态获取图标
-const getStatusBackground = statusIndex => {
+// const getStatusBackground = statusIndex => {
+// if (checked.value === '智飞工单') {
+// const style = zfstatusMapColor[statusIndex];
+// return style ? `url(${style.backgroundImage})` : 'none';
+// } else {
+// const style = statusMapColor[statusIndex];
+// return style ? `url(${style.backgroundImage})` : 'none';
+// }
+// };
+const getStatus = statusIndex => {
if (checked.value === '智飞工单') {
const style = zfstatusMapColor[statusIndex];
- return style ? `url(${style.backgroundImage})` : 'none';
+ return style ? style.backgroundImage : '';
} else {
const style = statusMapColor[statusIndex];
- return style ? `url(${style.backgroundImage})` : 'none';
+ return style ? style.backgroundImage : '';
}
};
const getStatusStyle = statusIndex => {
@@ -305,9 +313,13 @@
margin-left: 3px;
width: 1.6rem;
height: 1.6rem;
- background-position: center;
- background-repeat: no-repeat;
- background-size: contain;
+ img{
+ width: 100%;
+ height: 100%;
+ }
+ // background-position: center;
+ // background-repeat: no-repeat;
+ // background-size: contain;
}
.content-wrapper {
--
Gitblit v1.9.3