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

+ 17 - 17
src/view/material/index.vue

@@ -169,6 +169,22 @@ const { size, fileList, upload, removeFile, previewFile, file, accept } =
 const handleClick = (tab) => {
   console.log(tab);
 };
+const getcaseByCaseIdList = () =>{
+  getcaseByCaseId(caseId.value).then(res => {
+    let pmt = []
+    let fwt = []
+    res.map(ele => {
+      if(ele.type == 1) {
+        pmt.push(ele)
+      }else{
+        fwt.push(ele)
+      }
+    })
+    list.value.pmt = pmt
+    list.value.fwt = fwt
+    console.log('getcaseByCaseId', res)
+  })
+}
 const gotoDraw = async (type: BoardType, id: number) => {
   if(BoardType.scene == type) {
     window.open(`/draw/#/overview?caseId=${caseId.value}`);
@@ -206,23 +222,7 @@ function getList() {
     fmtId.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)
-  })
-  getcaseByCaseIdList()
-}
-const getcaseByCaseIdList = () =>{
-  getcaseByCaseId(caseId.value).then(res => {
-    let pmt = []
-    let fwt = []
-    res.map(ele => {
-      if(ele.type == 1) {
-        pmt.push(ele)
-      }else{
-        fwt.push(ele)
-      }
-    })
-    list.value.pmt = pmt
-    list.value.fwt = fwt
-    console.log('getcaseByCaseId', res)
+    getcaseByCaseIdList()
   })
 }
 const submitForm = async (formEl) => {