diff --git a/components.d.ts b/components.d.ts index 615d417..3b65693 100644 --- a/components.d.ts +++ b/components.d.ts @@ -17,18 +17,14 @@ declare module 'vue' { NCollapse: typeof import('naive-ui')['NCollapse'] NCollapseItem: typeof import('naive-ui')['NCollapseItem'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] - NDataTable: typeof import('naive-ui')['NDataTable'] NDatePicker: typeof import('naive-ui')['NDatePicker'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDivider: typeof import('naive-ui')['NDivider'] NDropdown: typeof import('naive-ui')['NDropdown'] - NEmpty: typeof import('naive-ui')['NEmpty'] NForm: typeof import('naive-ui')['NForm'] NFormItem: typeof import('naive-ui')['NFormItem'] - NGi: typeof import('naive-ui')['NGi'] NGrid: typeof import('naive-ui')['NGrid'] NGridItem: typeof import('naive-ui')['NGridItem'] - NIcon: typeof import('naive-ui')['NIcon'] NImage: typeof import('naive-ui')['NImage'] NInput: typeof import('naive-ui')['NInput'] NMessageProvider: typeof import('naive-ui')['NMessageProvider'] @@ -43,11 +39,7 @@ declare module 'vue' { NSpace: typeof import('naive-ui')['NSpace'] NSpin: typeof import('naive-ui')['NSpin'] NSwitch: typeof import('naive-ui')['NSwitch'] - NTabPane: typeof import('naive-ui')['NTabPane'] - NTabs: typeof import('naive-ui')['NTabs'] NTag: typeof import('naive-ui')['NTag'] - NTimeline: typeof import('naive-ui')['NTimeline'] - NTimelineItem: typeof import('naive-ui')['NTimelineItem'] NTooltip: typeof import('naive-ui')['NTooltip'] NUpload: typeof import('naive-ui')['NUpload'] NUploadDragger: typeof import('naive-ui')['NUploadDragger'] diff --git a/src/api/home/main.ts b/src/api/home/main.ts index ea24139..8072c2c 100644 --- a/src/api/home/main.ts +++ b/src/api/home/main.ts @@ -1,9 +1,9 @@ -import { pickBy } from 'lodash-es' -import { http } from '@/utils/http/axios' -import type { CheckParam, PageParam, QueryPictureParam, UploadParam } from '/#/api' import { ContentTypeEnum } from '@/enums/httpEnum' import { notEmpty } from '@/utils' import { formatToDate2 } from '@/utils/dateUtil' +import { http } from '@/utils/http/axios' +import { pickBy } from 'lodash-es' +import type { CheckParam, PageParam, QueryPictureParam, UploadParam } from '/#/api' /** * 获取查重列表 @@ -103,6 +103,104 @@ export async function oneClickCheck(params: Partial = { search_histo }) } +/** + * 增加生成任务包逻辑—一键查重 + * @param note + * @returns + */ + export async function oneClickCheckTaskPackage(params: Partial = { search_history: '0' }) { + const notEmptyParams = pickBy(params, notEmpty) + + Object.keys(notEmptyParams).forEach((key) => { + const val = notEmptyParams[key] + + if (Array.isArray(val)) + notEmptyParams[key] = val.join(',') + }) + + return http.request({ + url: `/ocr/checkDuplicate/openCheckDuplicate`, + method: 'get', + params: notEmptyParams, + headers: { 'Content-Type': ContentTypeEnum.FORM_DATA }, + }) +} + +/** + * 获取任务编号 + * @param note + * @returns + */ + export async function getLastCheckNo() { + + return http.request({ + url: `/ocr/checkDuplicate/getLastCheckNo`, + method: 'get', + headers: { 'Content-Type': ContentTypeEnum.FORM_DATA }, + }) +} +/** + * 获取查重任务状态 + * @param note + * @returns + */ + export async function getCheckDuplicateStatus(checkDuplicateNo) { + + return http.request({ + url: `/ocr/checkDuplicate/getCheckDuplicateStatus`, + method: 'get', + params: { checkDuplicateNo }, + headers: { 'Content-Type': ContentTypeEnum.FORM_DATA }, + }) +} +/** + * 创建任务包 + * @param + * @returns + */ + export async function createPackage(params) { + + return http.request({ + url: `/ocr/ocrTaskPackage/createPackage`, + method: 'post', + params + }) +} +/** + * 任务完成——创建任务包前——获取图片列表 + * @param + * @returns + */ +export async function queryPageListByCheckNo(params: any): Promise { + const notEmptyParams = pickBy(params, notEmpty) + + Object.keys(notEmptyParams).forEach((key) => { + const val = notEmptyParams[key] + + if (key === 'izyear') { + const start = formatToDate2(val[0]) + const end = formatToDate2(val[1]) + notEmptyParams[key] = `${start}-${end}` + } + + if (Array.isArray(notEmptyParams[key])) + notEmptyParams[key] = val.join(',') + }) + + const res = await http.request({ + url: `/ocr/checkDuplicate/queryPageListByCheckNo`, + method: 'get', + params: notEmptyParams, + headers: { 'Content-Type': ContentTypeEnum.FORM_DATA }, + }) + + const { data: { records, pages, total } } = res + return { + pageCount: pages, + data: records, + total, + } +} /** * 获取图片列表 * @param params diff --git a/src/views/home/aside/comp/modals/CustomFilterModal.vue b/src/views/home/aside/comp/modals/CustomFilterModal.vue index ce3c89e..0d74258 100644 --- a/src/views/home/aside/comp/modals/CustomFilterModal.vue +++ b/src/views/home/aside/comp/modals/CustomFilterModal.vue @@ -304,7 +304,7 @@ onMounted(() => { :title="allCount" class="dragcardStyle" :segmented="{ content: true, footer: true }" size="small" :bordered="false" > -
+
- - - 登录 - - + + + 登录 + +
-
+
记住账号 @@ -474,7 +506,7 @@ function forget() { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index bc6f938..fbfb86e 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -293,4 +293,9 @@ function close() { margin-left: -30.3125rem; } } +::v-deep(.n-form-item .n-form-item-feedback-wrapper .n-form-item-feedback.n-form-item-feedback--error){ + color: #FF4E4F !important; + font-size: .75rem !important; +} + diff --git a/src/views/message/content/List.vue b/src/views/message/content/List.vue index 3f4e740..565d9fc 100644 --- a/src/views/message/content/List.vue +++ b/src/views/message/content/List.vue @@ -103,7 +103,7 @@ function getMore() {