违法用地-持续监管-上传增加图斑编号_CX字段的特别处理
parent
dfa9b6e765
commit
22ca2171e9
|
|
@ -71,7 +71,7 @@
|
|||
<a-tag color="success" v-if="record.status == 'done'">上传成功</a-tag>
|
||||
<a-tag color="error" v-if="record.status == 'error'">上传失败</a-tag>
|
||||
<a-tag color="green" v-if="record.status == 'updateSuccess'">插入成功</a-tag>
|
||||
<a-tag color="red" v-if="record.status == 'updateError'">审核失败</a-tag>
|
||||
<a-tag color="red" v-if="record.status == 'updateError'">插入失败</a-tag>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'url' || column.dataIndex === 'message'">
|
||||
{{ record.url || record.message }}
|
||||
|
|
@ -171,9 +171,16 @@
|
|||
// 持续监管-图片插入
|
||||
async function UpdateUploadCXJGData(value) {
|
||||
let caseid = value.name.split('.').slice(0, -1).join('.');
|
||||
let flag = false;
|
||||
if (caseid.includes('_CX')) {
|
||||
flag = true;
|
||||
}
|
||||
if (caseid.includes('_')) {
|
||||
caseid = caseid.split('_').slice(0, 1).join('_');
|
||||
}
|
||||
if (flag) {
|
||||
caseid = caseid + '_CX';
|
||||
}
|
||||
const index = fileList.value.findIndex((item) => item.uid === value.uid);
|
||||
if (index === -1) return false; // 如果找不到对应文件项,直接返回
|
||||
let querys = {
|
||||
|
|
@ -224,9 +231,16 @@
|
|||
if (item.status === 'updateError') {
|
||||
// 等待上传完成并返回 true 后,再继续下一个循环
|
||||
let caseid = item.name.split('.').slice(0, -1).join('.');
|
||||
let flag = false;
|
||||
if (caseid.includes('_CX')) {
|
||||
flag = true;
|
||||
}
|
||||
if (caseid.includes('_')) {
|
||||
caseid = caseid.split('_').slice(0, 1).join('_');
|
||||
}
|
||||
if (flag) {
|
||||
caseid = caseid + '_CX';
|
||||
}
|
||||
await CheckCxjgPic({ id: caseid });
|
||||
const index = fileList.value.findIndex((item) => item.uid === item.uid);
|
||||
fileList.value[index] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue