From 97df392315c526d1555f16585ea81417642ce562 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Thu, 1 Aug 2024 08:12:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.ts | 2 +- src/views/taskmanage/index.vue | 23 ++++++++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/utils/request.ts b/src/utils/request.ts index 0c8ed8f0..748a0696 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -130,7 +130,7 @@ export const request = async ( const res = await service.request(config) successMsg && $message.success(successMsg) errorMsg && $message.error(errorMsg) - if(res && res.data instanceof Blob){ + if(res && res.data.type=='application/octet-stream'){ return res as any } else { return isGetDataDirectly ? res?.data : res diff --git a/src/views/taskmanage/index.vue b/src/views/taskmanage/index.vue index f43ec211..84e96d81 100644 --- a/src/views/taskmanage/index.vue +++ b/src/views/taskmanage/index.vue @@ -31,9 +31,10 @@
+ :class="{ active: item.active,redColor:item.key=='CAUTION_NOTICE' }" class="box-item">
- + + {{item.name}}
{{ item.total }}
@@ -1178,7 +1179,9 @@ function handleClickTree(row, index) { display: flex; justify-content: space-between; align-items: center; - + .iconfont{ + font-size: 14px + } &:hover { .box-text { @@ -1198,6 +1201,20 @@ function handleClickTree(row, index) { color: rgba(37, 122, 250, 1); } } + + &.active.redColor { + .box-number { + background: rgba(237, 88, 88, 1); + color: white; + } + } + + &.redColor{ + + .box-text { + color: rgba(237, 88, 88, 1); + } + } } .box-number {