소스 검색

工程文件下载提交

wang_xy 1 년 전
부모
커밋
989aa43547
4개의 변경된 파일5개의 추가작업 그리고 19개의 파일을 삭제
  1. 0 7
      src/api/zdsz/enginee.js
  2. 2 2
      src/views/zdsz/engineeringGasOpening/index.vue
  3. 2 9
      src/views/zdsz/engineeringIndustry/index.vue
  4. 1 1
      vue.config.js

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

@@ -1,5 +1,4 @@
 import request from '@/utils/request'
-import data from "@/views/system/dict/data.vue";
 
 // 查询小区集合
 export function getAreaList({district}) {
@@ -173,12 +172,6 @@ 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}) {

+ 2 - 2
src/views/zdsz/engineeringGasOpening/index.vue

@@ -193,7 +193,7 @@
                   v-for="dict in stateArray"
                   :key="dict.value"
                   :label="dict.value"
-                  v-if="dict.value != '0'"
+                  v-if="dict.value != '2'"
                 >{{dict.label}}</el-radio>
               </el-radio-group>
             </el-form-item>
@@ -641,7 +641,7 @@ export default {
       stateArray:[
         {label:'未审核',value:'2'},
         {label:'审核通过',value:'1'},
-        {label:'审核通过',value:'0'},
+        {label:'审核通过',value:'0'},
       ],
 
       communityOptions: [],        // 小区集合

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

@@ -541,15 +541,8 @@ export default {
   },
   methods: {
     download(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)
+      // downloadZipForSZ(this.form.type=='1'?'工业工程':'市政工程',name)
+        this.$download.zip(`/zdsz/engineeringIndustry/downloadZip/${this.form.type=='1'?'工业工程':'市政工程'}/${name}`, name);
     },
     changName(val) {
       if (this.form.type == '1')

+ 1 - 1
vue.config.js

@@ -35,7 +35,7 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:8080`,
+        target: `http://127.0.0.1:8080`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''