Merge branch 'main' of http://123.132.248.154:10000/HC_YFZX/CaiYuanYiTiHua
commit
bc533cfdc1
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,7 @@ export const uploadColumns: BasicColumn[] = [
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '路径/失败原因',
|
title: '路径/上传图片失败原因',
|
||||||
dataIndex: 'url',
|
dataIndex: 'url',
|
||||||
width: 280,
|
width: 280,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue