From ed94b40c3684c7b2cded269ae2f70a13c1a0ff1c Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Mon, 15 Apr 2024 21:07:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=B4=E9=83=A8=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home/main.ts | 46 ++++++------ src/components/DataHeader/index.vue | 105 ++++++++++++++++------------ 2 files changed, 86 insertions(+), 65 deletions(-) diff --git a/src/api/home/main.ts b/src/api/home/main.ts index 2b8bfc3..65a7b7b 100644 --- a/src/api/home/main.ts +++ b/src/api/home/main.ts @@ -5,6 +5,17 @@ import { http } from '@/utils/http/axios' import { pickBy } from 'lodash-es' import type { CheckParam, PageParam, QueryPictureParam, UploadParam } from '/#/api' +/** + * 头部信息 + * @returns + */ +export async function gettaskToolsCount(): Promise { + return await http.request({ + url: `/ocr/aitools/toolsTaskApprovalCount`, + method: 'get', + }) +} + /** * 获取查重列表 * @param params @@ -79,7 +90,6 @@ export async function getToolsCount() { }) } - /** * 一键查重 * @param note @@ -108,7 +118,7 @@ export async function oneClickCheck(params: Partial = { search_histo * @param note * @returns */ - export async function oneClickCheckTaskPackage(params: Partial = { search_history: '0' }) { +export async function oneClickCheckTaskPackage(params: Partial = { search_history: '0' }) { const notEmptyParams = pickBy(params, notEmpty) Object.keys(notEmptyParams).forEach((key) => { @@ -131,8 +141,7 @@ export async function oneClickCheck(params: Partial = { search_histo * @param note * @returns */ - export async function getLastCheckNo() { - +export async function getLastCheckNo() { return http.request({ url: `/ocr/checkDuplicate/getLastCheckNo`, method: 'get', @@ -144,8 +153,7 @@ export async function oneClickCheck(params: Partial = { search_histo * @param note * @returns */ - export async function getCheckDuplicateStatus(checkDuplicateNo) { - +export async function getCheckDuplicateStatus(checkDuplicateNo) { return http.request({ url: `/ocr/checkDuplicate/getCheckDuplicateStatus`, method: 'get', @@ -158,8 +166,7 @@ export async function oneClickCheck(params: Partial = { search_histo * @param note * @returns */ - export async function removeCheckDuplicate(checkDuplicateNo) { - +export async function removeCheckDuplicate(checkDuplicateNo) { return http.request({ url: `/ocr/checkDuplicate/removeCheckDuplicate`, method: 'get', @@ -169,33 +176,31 @@ export async function oneClickCheck(params: Partial = { search_histo } /** * 创建任务包 - * @param + * @param * @returns */ - export async function createPackage(params) { - +export async function createPackage(params) { return http.request({ url: `/ocr/ocrTaskPackage/createPackage`, method: 'post', - params + params, }) } /** * 解散任务包 - * @param + * @param * @returns */ - export async function deletePackage(params) { - +export async function deletePackage(params) { return http.request({ url: `/ocr/ocrTaskPackage/deletePackage`, method: 'get', - params + params, }) } /** * 任务完成——创建任务包前——获取图片列表 - * @param + * @param * @returns */ export async function queryPageListByCheckNo(params: any): Promise { @@ -266,14 +271,13 @@ export async function getPictureList(params: any): Promise { /** * 获取需要过滤的搜索条件框列表 - * @param + * @param * @returns */ export async function getFilterList(params) { - return http.request({ url: `/ocr/ocrUsersearch/querySearchCondition`, method: 'get', - params + params, }) -} \ No newline at end of file +} diff --git a/src/components/DataHeader/index.vue b/src/components/DataHeader/index.vue index e0b9d3e..5c58b41 100644 --- a/src/components/DataHeader/index.vue +++ b/src/components/DataHeader/index.vue @@ -1,5 +1,6 @@