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 @@