|
@@ -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) => {
|