|
|
@ -19,8 +19,11 @@ import {
|
|
|
|
SAVE_JUDGE_RESULT,
|
|
|
|
SAVE_JUDGE_RESULT,
|
|
|
|
SAVE_ADMIN_JUDGE_STDS,
|
|
|
|
SAVE_ADMIN_JUDGE_STDS,
|
|
|
|
GET_DASHBOARD,
|
|
|
|
GET_DASHBOARD,
|
|
|
|
GET_PARKING_IMAGE,
|
|
|
|
SAVE_PARKING_JUDGE_RESULT,
|
|
|
|
SAVE_PARKING_JUDGE_RESULT
|
|
|
|
GET_PARKING_IMAGE2,
|
|
|
|
|
|
|
|
GET_PARKING_FRECAD_IMAGE,
|
|
|
|
|
|
|
|
GET_PARKING_CONTAD_IMAGE,
|
|
|
|
|
|
|
|
GET_PARKING_PICAD_IMAGE
|
|
|
|
} from 'commons/ApiUrl';
|
|
|
|
} from 'commons/ApiUrl';
|
|
|
|
import { setRowId } from './common';
|
|
|
|
import { setRowId } from './common';
|
|
|
|
import FileSaver from 'file-saver';
|
|
|
|
import FileSaver from 'file-saver';
|
|
|
@ -224,9 +227,9 @@ export async function findJudgeImages(row) {
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
arrFrecadImg: frecadImgs,
|
|
|
|
arrFrecadImg: frecadImgs.data,
|
|
|
|
arrContadImg: contadImgs,
|
|
|
|
arrContadImg: contadImgs.data,
|
|
|
|
arrPicadImg: picadImgs
|
|
|
|
arrPicadImg: picadImgs.data
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
@ -237,7 +240,7 @@ export async function saveJudgeResult(params) {
|
|
|
|
return await axios.post(SAVE_JUDGE_RESULT, params);
|
|
|
|
return await axios.post(SAVE_JUDGE_RESULT, params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export async function findParkingImages(row) {
|
|
|
|
export async function findParkingImages2(row) {
|
|
|
|
const dataGb = row?.msDatagb;
|
|
|
|
const dataGb = row?.msDatagb;
|
|
|
|
const scCode = row?.msMaincode;
|
|
|
|
const scCode = row?.msMaincode;
|
|
|
|
|
|
|
|
|
|
|
@ -258,7 +261,7 @@ export async function findParkingImages(row) {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// return res;
|
|
|
|
// return res;
|
|
|
|
|
|
|
|
|
|
|
|
const res = await axios.get(GET_PARKING_IMAGE + row?.rcMaincode);
|
|
|
|
const res = await axios.get(GET_PARKING_IMAGE2 + row?.rcMaincode);
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
arrFrecadImg: [],
|
|
|
|
arrFrecadImg: [],
|
|
|
@ -267,6 +270,40 @@ export async function findParkingImages(row) {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export async function findParkingImages(row) {
|
|
|
|
|
|
|
|
const dataGb = row?.msDatagb;
|
|
|
|
|
|
|
|
const scCode = row?.msMaincode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const res = await findJudge(scCode);
|
|
|
|
|
|
|
|
// if (res.success) {
|
|
|
|
|
|
|
|
// const [frecadImgs, contadImgs, picadImgs] = await Promise.all([
|
|
|
|
|
|
|
|
// judgeImgList(res, scCode, 5, 'scFrecad', dataGb, 'getScFrecad'),
|
|
|
|
|
|
|
|
// judgeImgList(res, scCode, 9, 'scContad', dataGb, 'getScContad'),
|
|
|
|
|
|
|
|
// judgeImgList(res, scCode, 5, 'scPicad', dataGb, 'getScPicad')
|
|
|
|
|
|
|
|
// ]);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// return {
|
|
|
|
|
|
|
|
// arrFrecadImg: frecadImgs,
|
|
|
|
|
|
|
|
// arrContadImg: contadImgs,
|
|
|
|
|
|
|
|
// arrPicadImg: picadImgs
|
|
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// return res;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const [frecadImgs, contadImgs, picadImgs] = await Promise.all([
|
|
|
|
|
|
|
|
await axios.get(GET_PARKING_FRECAD_IMAGE + row?.rcMaincode),
|
|
|
|
|
|
|
|
await axios.get(GET_PARKING_CONTAD_IMAGE + row?.rcMaincode),
|
|
|
|
|
|
|
|
await axios.get(GET_PARKING_PICAD_IMAGE + row?.rcMaincode)
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
arrFrecadImg: frecadImgs?.data ?? [],
|
|
|
|
|
|
|
|
arrContadImg: contadImgs?.data ?? [],
|
|
|
|
|
|
|
|
arrPicadImg: picadImgs?.data ?? []
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export async function saveParkingJudgeResult(params) {
|
|
|
|
export async function saveParkingJudgeResult(params) {
|
|
|
|
// eslint-disable-next-line no-return-await
|
|
|
|
// eslint-disable-next-line no-return-await
|
|
|
|
return await axios.post(SAVE_PARKING_JUDGE_RESULT, params);
|
|
|
|
return await axios.post(SAVE_PARKING_JUDGE_RESULT, params);
|
|
|
|