@@ -500,6 +520,16 @@ function switchBatch() {
position: relative;
}
+.title{
+ font-size: 18px;
+ font-family: PingFang SC, PingFang SC-Medium;
+ font-weight: 500;
+ text-align: left;
+ color: #333333;
+ margin-top: 14px;
+ margin-bottom: 24px;
+}
+
.small-mark{
width: 100%;
height: 36px;
@@ -544,6 +574,29 @@ function switchBatch() {
}
}
+.status-tag{
+ display: inline-block;
+ padding: 0 12px;
+ height: 22px;
+ background: #ffc671;
+ border-radius: 12px;
+ align-items: center;
+ justify-content: center;
+ font-size: 13px;
+ font-family: PingFang SC, PingFang SC-Medium;
+ font-weight: 500;
+ text-align: left;
+ color: #ffffff;
+}
+
+.status-tag-green{
+ background: #53c21d;
+}
+
+.status-tag-red{
+ background: #e45656;
+}
+
.close {
position: absolute;
right: -90px;
@@ -610,11 +663,16 @@ function switchBatch() {
text-align: center;
font-weight: bold;
text-align: left;
+ font-size: 14px;
+ font-family: PingFang SC, PingFang SC-Medium;
+ font-weight: 500;
+ text-align: left;
+ color: #333333;
}
}
&-m32 {
- margin-left: 32px;
+ margin-left: 19px;
}
&-content {
From fec125d72ce4ec33540d42b2b15bdaaa9994ba7a Mon Sep 17 00:00:00 2001
From: Dragon <>
Date: Tue, 2 Apr 2024 00:27:19 +0800
Subject: [PATCH 2/2] bug
---
src/api/final/index.ts | 6 +++---
src/views/final/content/Content.vue | 2 +-
src/views/task/content/Content.vue | 2 ++
src/views/task/modal/BatchModal.vue | 12 ++++++++----
4 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/src/api/final/index.ts b/src/api/final/index.ts
index 857eeb2..d5eae04 100644
--- a/src/api/final/index.ts
+++ b/src/api/final/index.ts
@@ -74,10 +74,10 @@ export async function getRepeatList(params: FinalParam) {
params,
})
- const { data: { records, totalPage, totalCount } } = res
+ const { data: { records, total, pages } } = res
return {
- pageCount: 3,
+ pageCount: pages,
data: records,
- totalCount: 20,
+ totalCount: total,
}
}
diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue
index bc8a4c5..dd1793a 100644
--- a/src/views/final/content/Content.vue
+++ b/src/views/final/content/Content.vue
@@ -441,7 +441,7 @@ async function query(page: number, pageSize: number, filterId?: any) {
tableData.value = data
total.value = totalCount
pagination.page = page
- pagination.pageCount = pageCount
+ pagination.pageCount = Math.ceil(totalCount / pageSize)
loading.value = false
}
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index 23d9c49..5c7b2c4 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -165,6 +165,8 @@ function approvalHandler(items?: any) {
return
}
+ console.log(processItems)
+
const list: any = []
processItems.forEach((item) => {
list.push({
diff --git a/src/views/task/modal/BatchModal.vue b/src/views/task/modal/BatchModal.vue
index 32c16c8..e21576f 100644
--- a/src/views/task/modal/BatchModal.vue
+++ b/src/views/task/modal/BatchModal.vue
@@ -310,6 +310,10 @@ function reset() {
layout()
}
+function onChange() {
+ reload()
+}
+
async function refreshHandler() {
reset()
if (!taskId.value)
@@ -397,11 +401,11 @@ defineExpose({
- {{ TASK_STATUS_OBJ[taskDetailInfo?.states] }}
+ {{ TASK_STATUS_OBJ[taskDetailInfo?.userapprove?.statshis] }}
{{ taskDetailInfo?.ocrPicture?.createTime }} |
@@ -418,7 +422,7 @@ defineExpose({
-
+
{{ timeLabel || '时间模式' }}