Explorar el Código

getDefaultPosition

tangning hace 21 horas
padre
commit
60d4b7e3e2

+ 1 - 1
src/view/newFireCase/mix3dManager/sceneContent.vue

@@ -28,7 +28,7 @@
       v-slot:default="{ row }: { row: QuoteScene }"
       width="240px"
     >
-      <span class="oper-span" v-if="row.isAuth == 2 || pagging.state.query.searchType == '1'" v-pdpath="['edit']" @click="openFusionEdit(row)">
+      <span class="oper-span" v-if="row.isAuth == 2" v-pdpath="['edit']" @click="openFusionEdit(row)">
         编辑
       </span>
       <span class="oper-span" v-if="pagging.state.query.searchType === '0'" v-pdpath="['del']" @click="openSceneShare(row)">

+ 7 - 1
src/view/newFireCase/newFireDetails/components/basicInfo.vue

@@ -223,7 +223,13 @@ const autoSave = async () => {
   // 写入派生字段
   bindFire.value.accidentDate = dateFormat(accidentDate.value, "yyyy-MM-dd");
   bindFire.value.projectSiteCode = getCode(place, bindFire.value.projectSite);
-
+  if (props.fromRoute === 'criminal' && (!bindFire.value.caseTitle || !bindFire.value.caseTitle.trim())) {
+    ElMessage.error("请输出完整信息");
+    return;
+  } else if (!bindFire.value.projectName || !bindFire.value.projectName.trim()) {
+    ElMessage.error("请输出完整信息");
+    return;
+  }
   try {
     if (bindFire.value.id) {
       console.log('auto-save update', bindFire.value);

+ 2 - 2
src/view/newFireCase/newFireDetails/components/siteInspection.vue

@@ -727,12 +727,12 @@ const deleteSelected = async () => {
     };
     if (selectedOrientationIndex.value !== null) {
       removeFrom(orientationFiles.value as any, selectedOrientationIndex.value);
-      const mapToPic = (item: any): PicItem => ({ url: item.listCover || item.filesUrl || item.cover || item.url, name: item.filesTitle || item.title || '未命名' });
+      const mapToPic = (item: any): PicItem => ({ ...item, url: item.listCover || item.filesUrl || item.cover || item.url, name: item.filesTitle || item.title || '未命名' });
       orientationImages.value = (orientationFiles.value as any).map(mapToPic);
       selectedOrientationIndex.value = orientationImages.value.length ? 0 : null;
     } else if (selectedPlaneIndex.value !== null) {
       removeFrom(planeFiles.value as any, selectedPlaneIndex.value);
-      const mapToPic = (item: any): PicItem => ({ url: item.listCover || item.filesUrl || item.cover || item.url, name: item.filesTitle || item.title || '未命名' });
+      const mapToPic = (item: any): PicItem => ({ ...item,  url: item.listCover || item.filesUrl || item.cover || item.url, name: item.filesTitle || item.title || '未命名' });
       planeImages.value = (planeFiles.value as any).map(mapToPic);
       selectedPlaneIndex.value = planeImages.value.length ? 0 : null;
     }