tangning 3 hafta önce
ebeveyn
işleme
b29175e94b

+ 1 - 0
src/app/criminal/view/example/edit.vue

@@ -40,6 +40,7 @@ defineExpose<QuiskExpose>({
     await (bindExample.value.caseId
       ? setExample(bindExample.value)
       : addExample(bindExample.value));
+    return true;
   },
 });
 

+ 1 - 0
src/app/ga/view/example/edit.vue

@@ -41,6 +41,7 @@ defineExpose<QuiskExpose>({
     await (bindExample.value.caseId
       ? setExample(bindExample.value)
       : addExample(bindExample.value));
+    return true;
   },
 });
 const searchAMapAddress = async () => {

+ 1 - 1
src/view/newFireCase/newFireDetails/components/scene.vue

@@ -273,7 +273,7 @@ const onDelete = async (scene: Scene) => {
     }
   }
   if (await confirm('确定要移除当前场景吗?')) {
-    const newList = scenes.value.filter(s => getSceneKey(s) !== getSceneKey(scene));
+    const newList = scenes.value.filter(s => s.sceneNumId !== scene.sceneNumId);
     scenes.value = newList;
     // 删除后默认回到第一个
     activeId.value = newList.length ? String(newList[0]?.sceneNumId) : '';

+ 4 - 6
src/view/newFireCase/newFireDetails/components/siteInspection.vue

@@ -310,7 +310,7 @@
               </div>
               <div v-else class="records-nopreview">
                 <div class="title">暂不支持预览</div>
-                <el-button  @click="downloadSelected(inquestData)">下载</el-button>
+                <el-button  @click="downloadSelected(extractionData)">下载</el-button>
               </div>
               <el-image-viewer
                 v-if="showViewer"
@@ -768,10 +768,8 @@ const selectInspection = async (file: any) => {
       // 拉取详情失败不影响基本切换
       console.error('按 inquestId 获取勘验笔录详情失败:', e);
     }
-  } else{
-    inquestData.value = file;
-    console.log(inquestData.value, 'inquestData.value')
   }
+  inquestData.value = file;
 };
 // 勘验笔录:拉取并生成预览文本
 const loadInspection = async (filesId?: number) => {
@@ -921,9 +919,8 @@ const selectExtraction = async (file: any) => {
       // 拉取详情失败不影响基本切换
       console.error('获取提取清单详情失败:', e);
     }
-  } else{
-    extractionData.value = file;
   }
+  extractionData.value = file;
 };
 
 // 切换多个提取清单项时,同步当前原始数据用于编辑预填
@@ -981,6 +978,7 @@ const loadAlbum = async () => {
 
 // 统一下载:按当前 tab 类型以 blob 方式下载
 const downloadSelected = async (item: any) => {
+  console.log('下载:', item, inquestData.value);
   try {
     if (activeTab.value === 'inspection') {
       if (!caseId.value) return;

+ 1 - 0
src/view/newFireCase/newdispatch/editCrimical.vue

@@ -43,6 +43,7 @@ defineExpose<QuiskExpose>({
     await (bindExample.value.caseId
       ? setExample(bindExample.value)
       : addExample(bindExample.value));
+    return true;
   },
 });
 

+ 1 - 0
src/view/newFireCase/newdispatch/editFire.vue

@@ -397,6 +397,7 @@ defineExpose<QuiskExpose>({
         field9: "",
         field10: "",
         sceneNumParam,
+        fusionIdList: sceneNumParam.find(ele => ele.type == 3)?.numList || []
       };
 
       await addFire(payload as any);