From 257ebca62b439007035c196d7cbb3ea280b34173 Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Fri, 12 Apr 2024 22:28:02 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=9E=E6=BB=9A=E6=A0=B7=E5=BC=8F?=
=?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4=E5=AD=97=E6=AE=B5=E5=8F=96=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../home/content/modal/LoginSuccessModal.vue | 2 +-
src/views/task/content/Content.vue | 184 ++++--------------
src/views/worksheet/content/Content.vue | 8 +-
3 files changed, 38 insertions(+), 156 deletions(-)
diff --git a/src/views/home/content/modal/LoginSuccessModal.vue b/src/views/home/content/modal/LoginSuccessModal.vue
index a9629aa..9155a61 100644
--- a/src/views/home/content/modal/LoginSuccessModal.vue
+++ b/src/views/home/content/modal/LoginSuccessModal.vue
@@ -71,7 +71,7 @@ defineExpose({
-
{{ 83 }}
+
{{ toolsData?.repeat }}
重复图片
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index 15f6c00..d171b13 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -148,16 +148,12 @@ function handleKeydown(event) {
// 清除已经设置的定时器(如果有的话)
clearTimeout(keyPressTimer);
const item = taskDetailInfo.value;
- if (
- item?.userapprove?.statshis === 2 ||
- item?.userapprove?.statshis == 3
- ) {
+ if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) {
overTask.value = null;
return;
}
- if (validate([item]) == null && batch.value === false)
- overTask.value = item;
+ if (validate([item]) == null && batch.value === false) overTask.value = item;
// 执行想要的操作
approvalHandler();
@@ -183,16 +179,12 @@ function handleKeydown(event) {
// 清除已经设置的定时器(如果有的话)
clearTimeout(keyPressTimer);
const item = taskDetailInfo.value;
- if (
- item?.userapprove?.statshis === 2 ||
- item?.userapprove?.statshis == 3
- ) {
+ if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) {
overTask.value = null;
return;
}
- if (validate([item]) == null && batch.value === false)
- overTask.value = item;
+ if (validate([item]) == null && batch.value === false) overTask.value = item;
// 执行想要的操作
const modal = unref(notPassModalRef)! as any;
modal.showModal([taskDetailInfo.value]);
@@ -265,8 +257,7 @@ function approvalHandler(items?: any) {
processItems = [cloneItem];
}
- if (items !== undefined && !(items instanceof PointerEvent))
- processItems = items;
+ if (items !== undefined && !(items instanceof PointerEvent)) processItems = items;
const msg = validate(processItems);
@@ -520,9 +511,7 @@ function notPassSuccess(param) {
function reloadList(param, text) {
// 修改左侧状态
const id = currentTaskId();
- const hasCurrentId = param.flowTaskInfoList.find(
- (item) => item.formId === id
- );
+ const hasCurrentId = param.flowTaskInfoList.find((item) => item.formId === id);
finalStore.setListKey();
if (hasCurrentId) emit("setAsideItemName", text);
@@ -556,8 +545,7 @@ function overTaskHandelr(item: any) {
return;
}
- if (validate([item]) == null && batchtwo.value === false)
- overTasktwo.value = item;
+ if (validate([item]) == null && batchtwo.value === false) overTasktwo.value = item;
}
function closePassno() {
console.log(notPassModalRef.value);
@@ -591,8 +579,7 @@ function checkBottom() {
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
// 获取视口的内部高度
- const clientHeight =
- window.innerHeight || document.documentElement.clientHeight;
+ const clientHeight = window.innerHeight || document.documentElement.clientHeight;
// 获取整个文档的高度
const scrollHeight = document.documentElement.scrollHeight;
@@ -661,18 +648,8 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
任务ID:{{ taskDetailInfo.fromtaskname }}
-
-
+
+
@@ -768,9 +745,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
v-show="!imgbigshow"
:style="{
position: 'fixed',
- height: '100vh',
zIndex: 169,
- height: '100vh',
background: 'rgb(80, 122, 253)',
right: '16px',
marginTop: '5px',
@@ -864,18 +839,10 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
/>
-
+
-
+
@@ -885,11 +852,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
-
+
@@ -908,39 +871,23 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
- {{ totalCount }}张
-
+ {{ totalCount }}张
相似匹配
-
+
- {{
- taskDetailInfo?.ocrPicture?.photoDateTimestamp ?? "-"
- }}
+ {{ taskDetailInfo?.ocrPicture?.photoDateTimestamp ?? "-" }}
-
+
{{
taskDetailInfo?.ocrPicture?.submitDateTimestamp
- ? formatToDateHMS(
- Number(taskDetailInfo.ocrPicture.submitDateTimestamp)
- )
+ ? formatToDateHMS(Number(taskDetailInfo.ocrPicture.submitDateTimestamp))
: "-"
}}
@@ -1038,12 +985,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
/>
-
+
{{
item.photoDateTimestamp
? formatToDateHMS(Number(item.photoDateTimestamp))
@@ -1051,12 +993,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
}}
-
+
{{
item.submitDateTimestamp
? formatToDateHMS(Number(item.submitDateTimestamp))
@@ -1138,16 +1075,10 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
{{ item[0].value }}
-
+
{{ item[0].label }}
-
+
{{ item[0].value }}
时间排序
-
-
+
+
相似度排序
-
-
+
+
@@ -1312,12 +1219,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
/>
-
+
{{
item.photoDateTimestamp
? formatToDateHMS(Number(item.photoDateTimestamp))
@@ -1325,12 +1227,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
}}
-
+
{{
item.submitDateTimestamp
? formatToDateHMS(Number(item.submitDateTimestamp))
@@ -1338,10 +1235,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
}}
-
+
{{ item.similarityScore }}%
@@ -1428,16 +1322,8 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
-->
-
-
+
+
@@ -2146,11 +2032,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
.small-mark {
width: 100%;
height: 53px;
- background: linear-gradient(
- 180deg,
- rgba(0, 0, 0, 0.01),
- rgba(0, 0, 0, 0.44) 88%
- );
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.44) 88%);
border-radius: 0px 8px 8px 8px;
position: absolute;
left: 0;
diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue
index 0d531b2..e47ae9e 100644
--- a/src/views/worksheet/content/Content.vue
+++ b/src/views/worksheet/content/Content.vue
@@ -905,14 +905,14 @@ defineExpose({
.left {
flex: 0.6;
- background-size: auto 346px;
-
+ // background-size: auto 346px;
+ background-size: cover;
background-position: center;
background-repeat: no-repeat;
border-radius: 8px;
position: relative;
- width: 632px;
- height: 346px;
+ // width: 632px;
+ // height: 346px;
.preview {
position: absolute;