Merge pull request 'fix/updatesyspic' (#311) from fix/updatesyspic into test

Reviewed-on: #311
pull/312/head
yaoshuli 1 year ago
commit 882e3d148d

@ -1,10 +1,14 @@
import { pickBy } from 'lodash-es'
import axios from 'axios'
import { ContentTypeEnum } from '@/enums/httpEnum' import { ContentTypeEnum } from '@/enums/httpEnum'
import { notEmpty } from '@/utils' import { notEmpty } from '@/utils'
import { formatToDate2 } from '@/utils/dateUtil' import { formatToDate2 } from '@/utils/dateUtil'
import { http } from '@/utils/http/axios' import { http } from '@/utils/http/axios'
import { pickBy } from 'lodash-es'
import type { CheckParam, PageParam, QueryPictureParam, UploadParam } from '/#/api' import type { CheckParam, PageParam, QueryPictureParam, UploadParam } from '/#/api'
const CancelToken = axios.CancelToken
window.cancle = {}
/** /**
* *
* @returns * @returns
@ -224,6 +228,9 @@ export async function queryPageListByCheckNo(params: any): Promise<any> {
method: 'get', method: 'get',
params: notEmptyParams, params: notEmptyParams,
headers: { 'Content-Type': ContentTypeEnum.FORM_DATA }, headers: { 'Content-Type': ContentTypeEnum.FORM_DATA },
cancelToken: new CancelToken((c) => {
window.cancle.queryPageListByCheckNo = c
}),
}) })
const { data: { records, pages, total, current } } = res const { data: { records, pages, total, current } } = res
@ -260,6 +267,9 @@ export async function getPictureList(params: any): Promise<any> {
method: 'get', method: 'get',
params: notEmptyParams, params: notEmptyParams,
headers: { 'Content-Type': ContentTypeEnum.FORM_DATA }, headers: { 'Content-Type': ContentTypeEnum.FORM_DATA },
cancelToken: new CancelToken((c) => {
window.cancle.getPictureList = c
}),
}) })
const { data: { records, pages, total, current } } = res const { data: { records, pages, total, current } } = res

@ -299,8 +299,12 @@ async function featchList(userSearchId?: string) {
params.izsimilarity = params.izsimilarity.join('-') params.izsimilarity = params.izsimilarity.join('-')
// rao end // rao end
console.log('window.cancle.queryPageListByCheckNo', window.cancle.queryPageListByCheckNo)
console.log('window.cancle.getPictureList', window.cancle.getPictureList)
if (checkTaskStatus.value === 2 && isRefresh) { if (checkTaskStatus.value === 2 && isRefresh) {
//
window.cancle.queryPageListByCheckNo && window.cancle.queryPageListByCheckNo()
window.cancle.getPictureList && window.cancle.getPictureList()
result = await queryPageListByCheckNo({ result = await queryPageListByCheckNo({
...pagination, ...pagination,
...contentParams, ...contentParams,
@ -311,6 +315,9 @@ async function featchList(userSearchId?: string) {
}) })
} }
else { else {
//
window.cancle.queryPageListByCheckNo && window.cancle.queryPageListByCheckNo()
window.cancle.getPictureList && window.cancle.getPictureList()
result = await getPictureList({ result = await getPictureList({
...pagination, ...pagination,
...contentParams, ...contentParams,

Loading…
Cancel
Save