石超 2025-06-05 17:03:15 +08:00
commit bc533cfdc1
3 changed files with 17 additions and 3 deletions

View File

@ -95,7 +95,7 @@
:footer="null" :footer="null"
@cancel="uploadOpen = false" @cancel="uploadOpen = false"
> >
<UploadModal /> <UploadModal :allTableData="allTableData" />
</a-modal> </a-modal>
</PageWrapper> </PageWrapper>
</template> </template>
@ -145,6 +145,7 @@
nowStatus: undefined, nowStatus: undefined,
}); });
const tableData = ref([]); const tableData = ref([]);
const allTableData = ref([]);
const tablePaginationRight = ref({ const tablePaginationRight = ref({
current: 1, current: 1,
pageSize: 10, pageSize: 10,
@ -293,8 +294,16 @@
tablePaginationRight.value.current = 1; tablePaginationRight.value.current = 1;
getTableData(searchParams.value); getTableData(searchParams.value);
} }
async function getAllTableData() {
await LoadCaseInfoCxjgTuBanList({}).then((res) => {
allTableData.value = res.items;
});
}
onMounted(() => { onMounted(() => {
getTableData(searchParams.value); getTableData(searchParams.value);
getAllTableData();
}); });
watch( watch(
() => showInfoId.value, () => showInfoId.value,

View File

@ -310,7 +310,7 @@ export const uploadColumns: BasicColumn[] = [
align: 'center', align: 'center',
}, },
{ {
title: '路径/失败原因', title: '路径/上传图片失败原因',
dataIndex: 'url', dataIndex: 'url',
width: 280, width: 280,
}, },

View File

@ -97,6 +97,7 @@
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
const { VITE_GLOB_INFO_IMAGE_URL } = getAppEnvConfig(); const { VITE_GLOB_INFO_IMAGE_URL } = getAppEnvConfig();
const props = defineProps(['allTableData']);
// //
const fileList: any = ref(); const fileList: any = ref();
@ -214,7 +215,11 @@
status: 'updateError', status: 'updateError',
}; };
}); });
message.error(`当前图斑【${value.caseid}】有未审核的图片,不允许继续上传,请先审核!`); if (props.allTableData.findIndex((item) => item.caseno == value.caseid)) {
message.error(`图斑【${value.caseid}】不存在!`);
} else {
message.error(`图斑【${value.caseid}】有未审核的图片,不允许继续上传,请先审核!`);
}
} }
}); });
} catch (error) { } catch (error) {