tangning 2 月之前
父节点
当前提交
8999003e6b
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/view/material/index.vue

+ 4 - 2
src/view/material/index.vue

@@ -188,6 +188,7 @@ const gotoDraw = async (type: BoardType, id: number) => {
       width,
       width,
       mapUrl
       mapUrl
     })
     })
+    getcaseByCaseIdList()
     window.open(`/draw/#/overview?caseId=${caseId.value}&overviewId=${res.id}`);
     window.open(`/draw/#/overview?caseId=${caseId.value}&overviewId=${res.id}`);
   }
   }
   // router.push({
   // router.push({
@@ -206,6 +207,9 @@ function getList() {
     pmtId.value = list.value.xct.find(ele => ele.filesTypeName == '方位图').filesTypeId
     pmtId.value = list.value.xct.find(ele => ele.filesTypeName == '方位图').filesTypeId
     console.log('list.value', list.value)
     console.log('list.value', list.value)
   })
   })
+  getcaseByCaseIdList()
+}
+const getcaseByCaseIdList = () =>{
   getcaseByCaseId(caseId.value).then(res => {
   getcaseByCaseId(caseId.value).then(res => {
     let pmt = []
     let pmt = []
     let fwt = []
     let fwt = []
@@ -219,9 +223,7 @@ function getList() {
     list.value.pmt = pmt
     list.value.pmt = pmt
     list.value.fwt = fwt
     list.value.fwt = fwt
     console.log('getcaseByCaseId', res)
     console.log('getcaseByCaseId', res)
-    // fileLists.value = res?.caseFilesList || []
   })
   })
-
 }
 }
 const submitForm = async (formEl) => {
 const submitForm = async (formEl) => {
   if (!formEl) return;
   if (!formEl) return;