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 {