This commit is contained in:
2025-08-28 15:09:54 +08:00
3 changed files with 8 additions and 49 deletions

View File

@@ -57,10 +57,6 @@ async function externalLoginOnLoad() {
if (!response.ok) { if (!response.ok) {
throw new Error(`Request failed: ${response.status}`); throw new Error(`Request failed: ${response.status}`);
} }
const result2 = await response.json();
console.log(result2);
// }
} }
} catch (error) { } catch (error) {
console.error('External login error:', error); console.error('External login error:', error);
@@ -94,12 +90,8 @@ const gridOptions: VxeGridProps = {
proxyConfig: { proxyConfig: {
ajax: { ajax: {
query: async ({ page }, formValues = {}) => { query: async ({ page }, formValues = {}) => {
// 修改添加对token的使用如果token存在则请求外部接口否则使用原接口
console.log(1243);
sessionStorage.removeItem('token'); sessionStorage.removeItem('token');
await externalLoginOnLoad(); await externalLoginOnLoad();
console.log(23423310248);
if (token.value) { if (token.value) {
try { try {
const response = await fetch( const response = await fetch(
@@ -113,17 +105,6 @@ const gridOptions: VxeGridProps = {
Accept: 'application/json, text/plain, */*', Accept: 'application/json, text/plain, */*',
}, },
body: JSON.stringify({ body: JSON.stringify({
// pageReq: {
// pageNum: page.currentPage,
// pageSize: page.pageSize,
// },
// parkStates: parkStates.value,
// parkOrderTypes: [100, 200, 201, 300, 500],
// plNos: ['PFN000000022', 'PFN000000012', 'PFN000000025'],
// terminalSource: 50,
// orderStates: [],
// orgId: 10012,
// ...formValues,
pageReq: { pageReq: {
pageNum: page.currentPage, pageNum: page.currentPage,
pageSize: page.pageSize, pageSize: page.pageSize,
@@ -135,19 +116,12 @@ const gridOptions: VxeGridProps = {
orderStates: [], orderStates: [],
parkOrderTypes: [100, 200, 201, 300, 500], parkOrderTypes: [100, 200, 201, 300, 500],
terminalSource: 50, terminalSource: 50,
// plNos、carNumber、orgId、orderStates、parkOrderTypes、terminalSource为接口参数固定需求
// parkStates10-在场、20-离场
}), }),
}, },
); );
// if (!response.ok) {
// throw new Error(
// `External API request failed: ${response.status}`,
// );
// }
const result = await response.json(); const result = await response.json();
console.log(result);
// 根据返回数据结构调整 // 根据返回数据结构调整
return { return {
rows: result.data.dataList || [], rows: result.data.dataList || [],

View File

@@ -76,7 +76,6 @@ const [BasicModal, modalApi] = useVbenModal({
for (const item of result.data) { for (const item of result.data) {
if (item.fileName.includes('进场图片')) { if (item.fileName.includes('进场图片')) {
data.parkInImgPath = item.filePath; data.parkInImgPath = item.filePath;
console.log('图片路径:', data.parkInImgPath);
} else { } else {
data.parkOutImgPath = item.filePath; data.parkOutImgPath = item.filePath;
} }

View File

@@ -25,22 +25,10 @@ const [BasicModal, modalApi] = useVbenModal({
if (!isOpen) { if (!isOpen) {
return null; return null;
} }
modalApi.modalLoading(true);
const {data} = modalApi.getData() as { data:any }; const {data} = modalApi.getData() as { data:any };
picture1.value = data.voucherUrl; picture1.value = data.voucherUrl;
picture2.value = data.pictureUrl picture2.value = data.pictureUrl
// detail.value = await meetInfo(id);
// if (detail.value?.picture) {
// const res = await ossInfo([conferenceSettingsDetail.value?.picture]);
// if (res) {
// let imgArr = [] as string[];
// res.forEach(item => {
// imgArr.push(item.url)
// })
// conferenceSettingsDetail.value.pictureArr = imgArr;
// }
// }
modalApi.modalLoading(true);
modalApi.modalLoading(false); modalApi.modalLoading(false);
}, },
}); });
@@ -56,7 +44,9 @@ async function handleConfirm() {
modalApi.lock(false); modalApi.lock(false);
} }
} }
async function handleClosed() {} async function handleClosed() {
}
</script> </script>
<template> <template>
@@ -96,10 +86,6 @@ async function handleClosed() {}
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
padding: 16px;
} }
.detail-thumb { .detail-thumb {