测试问题修复

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; total: any;
user: any; user: any;
pics: any; pics: any;
video_list?: any;
pic_info_list?: any;
remove_video_list?: any;
} }
export interface OrgItemList { export interface OrgItemList {

View File

@ -50,7 +50,7 @@
<source :src="item" type="video/mp4" /> <source :src="item" type="video/mp4" />
您的浏览器不支持Video标签 您的浏览器不支持Video标签
</video> </video>
<a-empty v-show="videoList.length <= 0"> <a-empty v-if="videoList.length <= 0">
<template #description> <template #description>
<span>暂无视频</span> <span>暂无视频</span>
</template> </template>
@ -294,7 +294,29 @@
</template> </template>
</a-empty> </a-empty>
</a-form-item> </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-form-item label="办理人: ">
<a-input v-model:value="caseHandlingData.transactor_name" /> <a-input v-model:value="caseHandlingData.transactor_name" />
</a-form-item> </a-form-item>
@ -533,11 +555,16 @@
if (res.boundary_pic_list.length > 0) { if (res.boundary_pic_list.length > 0) {
boundaryImageList.value = handleImageArray(res.boundary_pic_list); boundaryImageList.value = handleImageArray(res.boundary_pic_list);
} }
console.log('rrrr', res); if (res.video_list.length > 0) {
if (res.video_list) {
res.video_list.forEach((item) => { res.video_list.forEach((item) => {
videoList.value.push('http://60.213.14.14:6070/' + 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', field: 'identification_user',
label: '上报人:', label: '判读人:',
component: 'Input', component: 'Input',
dynamicDisabled: true, dynamicDisabled: true,
}, },
{ {
field: 'identification_time', field: 'identification_time',
label: '上报时间:', label: '判读时间:',
component: 'Input', component: 'Input',
dynamicDisabled: true, dynamicDisabled: true,
}, },
{
field: 'remark',
label: '备注',
component: 'InputTextArea',
dynamicDisabled: true,
},
]; ];

View File

@ -212,7 +212,7 @@
delCaseCollection, delCaseCollection,
getCollectionCaseList, getCollectionCaseList,
getUserInfoData, getUserInfoData,
getCaseDataDetail, getCaseDealDetail,
getCaseList, getCaseList,
caseAudiSteps, caseAudiSteps,
caseBackSteps, caseBackSteps,
@ -376,23 +376,28 @@
setFieldsValue(formData); setFieldsValue(formData);
}, 100); }, 100);
const param = { const param = {
id: record.id, caseid: record.id,
}; };
getCaseDataDetail(param).then((res) => { getCaseDealDetail(param).then((res) => {
fileList.value = []; fileList.value = [];
videoList.value = []; videoList.value = [];
if (res.pics) { if (res.pic_info_list.length > 0) {
res.pics.forEach((item) => { res.pic_info_list.forEach((item) => {
fileList.value.push({ fileList.value.push({
url: 'http://60.213.14.14:6070/' + item.path, url: 'http://60.213.14.14:6070/' + item.filePath,
id: item.id,
}); });
}); });
} }
if (res.video_list) { if (res.video_list.length > 0) {
res.video_list.forEach((item) => { res.video_list.forEach((item) => {
videoList.value.push('http://60.213.14.14:6070/' + 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 // GeoJSON
async function loadCaseGeoJson() { async function loadCaseGeoJson() {
const data = await getDroneGeoJson({ id: props.ruleForm.id }); const data = await getDroneGeoJson({ id: props.ruleForm.id });
console.log(data);
geojson.value = data; geojson.value = data;
if (geojson.value.features.length == 0) { if (geojson.value.features.length == 0) {
detailMap.value.addLayer({ detailMap.value.addLayer({