tangning 7 months ago
parent
commit
fa50a4fbb0

+ 5 - 5
src/view/case/records/index.vue

@@ -484,7 +484,7 @@ import { CirclePlus, CircleClose } from "@element-plus/icons-vue";
 import { recorderInfoType, ChangeReasonType } from "./formData.ts";
 import { confirm } from "@/helper/message";
 const props = defineProps({ caseId: Number, title: String });
-
+console.log('router.currentRoute', router.currentRoute.value?.params);
 const fileId = computed(() => router.currentRoute.value?.params?.fileId);
 const caseId = computed(() => router.currentRoute.value?.params?.caseId);
 const isDisableExport = ref(false);
@@ -531,7 +531,7 @@ const data = reactive({
   photographNum: 0, //照相数量
   photographyMinNum: 0, //摄影数量
   photographySecNum: 0, //摄影数量
-  recorderInfo: [...recorderInfoType, recorderInfoType[4]],
+  recorderInfo: recorderInfoType,
   signatureInfo: [], //现场勘验人员
   witnessInfo: [],
   remark: "",
@@ -540,8 +540,8 @@ const signatureInfoNum = 4;
 const witnessInfoNum = 2;
 const recorderInfoDialogShow = ref(false);
 const recorderInfoDialogSelect = ref();
-const initInfo = async () => {
-  const res = await getCaseInquestInfoOld(fileId.value);
+const initInfo = async (inquestFileId) => {
+  const res = await getCaseInquestInfoOld(inquestFileId || fileId.value);
   console.log('initInfo',res);
   if (!res.data) {
     isDisableExport.value = true;
@@ -646,7 +646,7 @@ const handleSave = async () => {
   let inquestFileId = fileId.value == -1 ? '' : fileId.value;
   let params = { ...data, caseId: caseId.value, inquestFileId };
   const res = await saveCaseInquestInfo(params);
-  initInfo();
+  initInfo(res.data.inquestFileId);
   console.log("saveCaseInquestInfo", res);
   if(fileId.value == -1){
     router.replace({

+ 4 - 3
src/view/layout/index.vue

@@ -36,6 +36,7 @@
             <!-- @load="setupSDK($event.target)" -->
               <iframe
                 v-if="caseId"
+              :key="qpisceneList.length"
                 :src="sceneURL"
                 frameborder="0"
                 :style="{ width: '100%', height: '100%' }"
@@ -90,7 +91,8 @@ const init = async () => {
 }
 // init()
 const qpisceneList = computed(() => getCaseSceneListData(caseId.value as number));
-// watch(() => qpisceneList.value, () => {
+watch(() => qpisceneList.value, () => {
+  console.log(qpisceneList.value, 'qpisceneList');
 //   if(!qpisceneList.value instanceof Array){
 //     return;
 //   }
@@ -101,8 +103,7 @@ const qpisceneList = computed(() => getCaseSceneListData(caseId.value as number)
 //   console.log('qpisceneList', qpisceneList.value, newqpisceneList);
 //   sceneList.value = qpisceneList.value && [...newqpisceneList] || []
 //   handleCommand()
-// })
-console.log(sceneList, 'sceneList');
+})
 onMounted(() => {
   // setupSDK(document.querySelector('iframe') as HTMLIFrameElement)
 })

+ 1 - 1
src/view/originalPhoto/addCaseFile.vue

@@ -72,7 +72,7 @@
       <el-button  type="primary" class="mtk" @click="handleAdd"
       >从媒体库上传</el-button>
     </el-form-item>
-    <div style="padding-left: 90px">
+    <div style="padding-left: 90px" v-if="caseFile.filesType == 0">
         <viewImg :list="mtkList" edit delete @handleItem="handleItem"/>
       </div>
   </el-form>

+ 1 - 1
src/view/vrmodel/index.vue

@@ -86,7 +86,7 @@ async function submitForm() {
       message: '操作成功',
       type: 'success',
     })
-  geiList();
+  window.location.reload()
   // console.log("handleActive", params);
 }