Merge branch 'main' of http://123.132.248.154:10000/HC_YFZX/CaiYuanYiTiHua
commit
f27e1cd3c1
|
|
@ -71,7 +71,7 @@
|
||||||
<a-tag color="success" v-if="record.status == 'done'">上传成功</a-tag>
|
<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="error" v-if="record.status == 'error'">上传失败</a-tag>
|
||||||
<a-tag color="green" v-if="record.status == 'updateSuccess'">插入成功</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>
|
||||||
<template v-if="column.dataIndex === 'url' || column.dataIndex === 'message'">
|
<template v-if="column.dataIndex === 'url' || column.dataIndex === 'message'">
|
||||||
{{ record.url || record.message }}
|
{{ record.url || record.message }}
|
||||||
|
|
@ -171,9 +171,16 @@
|
||||||
// 持续监管-图片插入
|
// 持续监管-图片插入
|
||||||
async function UpdateUploadCXJGData(value) {
|
async function UpdateUploadCXJGData(value) {
|
||||||
let caseid = value.name.split('.').slice(0, -1).join('.');
|
let caseid = value.name.split('.').slice(0, -1).join('.');
|
||||||
|
let flag = false;
|
||||||
|
if (caseid.includes('_CX')) {
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
if (caseid.includes('_')) {
|
if (caseid.includes('_')) {
|
||||||
caseid = caseid.split('_').slice(0, 1).join('_');
|
caseid = caseid.split('_').slice(0, 1).join('_');
|
||||||
}
|
}
|
||||||
|
if (flag) {
|
||||||
|
caseid = caseid + '_CX';
|
||||||
|
}
|
||||||
const index = fileList.value.findIndex((item) => item.uid === value.uid);
|
const index = fileList.value.findIndex((item) => item.uid === value.uid);
|
||||||
if (index === -1) return false; // 如果找不到对应文件项,直接返回
|
if (index === -1) return false; // 如果找不到对应文件项,直接返回
|
||||||
let querys = {
|
let querys = {
|
||||||
|
|
@ -224,9 +231,16 @@
|
||||||
if (item.status === 'updateError') {
|
if (item.status === 'updateError') {
|
||||||
// 等待上传完成并返回 true 后,再继续下一个循环
|
// 等待上传完成并返回 true 后,再继续下一个循环
|
||||||
let caseid = item.name.split('.').slice(0, -1).join('.');
|
let caseid = item.name.split('.').slice(0, -1).join('.');
|
||||||
|
let flag = false;
|
||||||
|
if (caseid.includes('_CX')) {
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
if (caseid.includes('_')) {
|
if (caseid.includes('_')) {
|
||||||
caseid = caseid.split('_').slice(0, 1).join('_');
|
caseid = caseid.split('_').slice(0, 1).join('_');
|
||||||
}
|
}
|
||||||
|
if (flag) {
|
||||||
|
caseid = caseid + '_CX';
|
||||||
|
}
|
||||||
await CheckCxjgPic({ id: caseid });
|
await CheckCxjgPic({ id: caseid });
|
||||||
const index = fileList.value.findIndex((item) => item.uid === item.uid);
|
const index = fileList.value.findIndex((item) => item.uid === item.uid);
|
||||||
fileList.value[index] = {
|
fileList.value[index] = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue