浏览代码

照片路径加一层节点类型

qinhouyu 1 年之前
父节点
当前提交
52d3cb51a8
共有 2 个文件被更改,包括 23 次插入2 次删除
  1. 6 0
      src/api/zdsz/enginee.js
  2. 17 2
      src/views/zdsz/engineeringIndustry/index.vue

+ 6 - 0
src/api/zdsz/enginee.js

@@ -173,6 +173,12 @@ export function downloadZip(type,name) {
       method: 'get',
     })
 }
+export function downloadZipForSZ(type,name) {
+    return request({
+      url: `/zdsz/engineeringIndustry/downloadZip/${type}/${name}`,
+      method: 'get',
+    })
+}
 
 // 查看顶管工程历史
 export function detailEngineeringPipeJacking({id ,type}) {

+ 17 - 2
src/views/zdsz/engineeringIndustry/index.vue

@@ -365,7 +365,13 @@ import {getDicts} from "@/api/system/dict/data";
 import EngineePipe from '@/components/EngineePipe'
 import {validPhoneMobile} from '@/api/rules'
 import ConstructionDetails from '@/components/ConstructionDetails/index.vue'
-import {getEnginMaterialQualityList, insertReview, engineeringCivilReview, downloadZip} from '@/api/zdsz/enginee'
+import {
+  getEnginMaterialQualityList,
+  insertReview,
+  engineeringCivilReview,
+  downloadZip,
+  downloadZipForSZ
+} from '@/api/zdsz/enginee'
 import {getEnginSpecificationsList} from '@/api/zdsz/enginSpecifications'
 
 export default {
@@ -534,7 +540,15 @@ export default {
   },
   methods: {
     download(name){
-      downloadZip(this.form.type=='1'?'工业工程':'市政工程',name)
+      // console.log(this.dictArr)
+      // console.log(this.dictArr)
+      // let str = '';
+      // if (this.form.type=='2'){
+      //   str = this.dictArr.find(o=>o.dictValue==this.$refs.ConstructionDetails.activeNames).dictLabel;
+      // }else if (this.form.type=='1'){
+      //   str = '工业数据';
+      // }
+      downloadZipForSZ(this.form.type=='1'?'工业工程':'市政工程',name)
     },
     changName(val) {
       if (this.form.type == '1')
@@ -578,6 +592,7 @@ export default {
             listImg =forInImg(item.backfilling,listImg)
           }
           item.zEngiineeringPhotoBoList=listImg;
+          item.nodeName = this.dictArr.find(o=>o.dictValue==this.$refs.ConstructionDetails.activeNames).dictLabel;
         });
       }
       let params = checkingInfo