测试问题修复

main
zzq 2024-05-11 16:00:08 +08:00
parent 9fd0c03dde
commit ddbad5a92f
5 changed files with 55 additions and 15 deletions

View File

@ -24,6 +24,9 @@ export interface DemoOptionsItem {
total: any;
user: any;
pics: any;
video_list?: any;
pic_info_list?: any;
remove_video_list?: any;
}
export interface OrgItemList {

View File

@ -50,7 +50,7 @@
<source :src="item" type="video/mp4" />
您的浏览器不支持Video标签
</video>
<a-empty v-show="videoList.length <= 0">
<a-empty v-if="videoList.length <= 0">
<template #description>
<span>暂无视频</span>
</template>
@ -294,7 +294,29 @@
</template>
</a-empty>
</a-form-item>
<a-form-item label="恢复后照片: ">
<div
v-for="(item, num) in afterImageList"
:key="num"
style="
position: relative;
width: 125px;
height: 112px;
overflow: hidden;
float: left;
background: #f9f9f9;
margin-left: 6px;
margin-bottom: 6px;
"
>
<a-image :width="125" :height="112" :src="item.s_filePath" />
</div>
<a-empty v-if="afterImageList.length <= 0">
<template #description>
<span>暂无图片</span>
</template>
</a-empty>
</a-form-item>
<a-form-item label="办理人: ">
<a-input v-model:value="caseHandlingData.transactor_name" />
</a-form-item>
@ -533,11 +555,16 @@
if (res.boundary_pic_list.length > 0) {
boundaryImageList.value = handleImageArray(res.boundary_pic_list);
}
console.log('rrrr', res);
if (res.video_list) {
if (res.video_list.length > 0) {
res.video_list.forEach((item) => {
videoList.value.push('http://60.213.14.14:6070/' + item);
});
} else {
if (res.remove_video_list.length > 0) {
res.remove_video_list.forEach((item) => {
videoList.value.push('http://60.213.14.14:6070/' + item);
});
}
}
});
}

View File

@ -107,14 +107,20 @@ export const formSchema: FormSchema[] = [
},
{
field: 'identification_user',
label: '上报人:',
label: '判读人:',
component: 'Input',
dynamicDisabled: true,
},
{
field: 'identification_time',
label: '上报时间:',
label: '判读时间:',
component: 'Input',
dynamicDisabled: true,
},
{
field: 'remark',
label: '备注',
component: 'InputTextArea',
dynamicDisabled: true,
},
];

View File

@ -212,7 +212,7 @@
delCaseCollection,
getCollectionCaseList,
getUserInfoData,
getCaseDataDetail,
getCaseDealDetail,
getCaseList,
caseAudiSteps,
caseBackSteps,
@ -376,23 +376,28 @@
setFieldsValue(formData);
}, 100);
const param = {
id: record.id,
caseid: record.id,
};
getCaseDataDetail(param).then((res) => {
getCaseDealDetail(param).then((res) => {
fileList.value = [];
videoList.value = [];
if (res.pics) {
res.pics.forEach((item) => {
if (res.pic_info_list.length > 0) {
res.pic_info_list.forEach((item) => {
fileList.value.push({
url: 'http://60.213.14.14:6070/' + item.path,
id: item.id,
url: 'http://60.213.14.14:6070/' + item.filePath,
});
});
}
if (res.video_list) {
if (res.video_list.length > 0) {
res.video_list.forEach((item) => {
videoList.value.push('http://60.213.14.14:6070/' + item);
});
} else {
if (res.remove_video_list.length > 0) {
res.remove_video_list.forEach((item) => {
videoList.value.push('http://60.213.14.14:6070/' + item);
});
}
}
});
}

View File

@ -91,7 +91,6 @@
// GeoJSON
async function loadCaseGeoJson() {
const data = await getDroneGeoJson({ id: props.ruleForm.id });
console.log(data);
geojson.value = data;
if (geojson.value.features.length == 0) {
detailMap.value.addLayer({