Browse Source

上传地址 缺补

zhuf 9 months ago
parent
commit
6584e2eabb

+ 1 - 1
src/views/dddx/xnddpd/FileUpload.vue

@@ -90,7 +90,7 @@ export default defineComponent({
       formData.append("urltype", "0");
       btnLoading.value = true;
       request({
-        url: "upload/main/file",
+        url: "/upload/main/file",
         data: formData,
         timeout: 1000 * 60,
       }).then(({ data, code }) => {

+ 7 - 7
src/views/gwglxt/dbfw/sh/index.vue

@@ -287,7 +287,7 @@ export default {
         api: "json",
         urltype: 2,
       },
-      updateUrl: window.globalVariables.api + "upload/main/file",
+      updateUrl: window.globalVariables.api + "/upload/main/file",
       officeFixedUrl: "https://view.officeapps.live.com/op/view.aspx?src=",
       prefixPDFUrl: window.globalVariables.api + "/plugins/pdf.js/web/viewer2.html?file=",
       titlePngUrl: "",
@@ -321,7 +321,7 @@ export default {
       readOnly: false,
 
       checkSwitch: false,
-      
+
       dialogFormVisible_detail: false,
       curFileShowUrl: '',
 
@@ -356,7 +356,7 @@ export default {
                   this.checkSwitch = false;
                 }
               }
-              
+
             }
             //赋值调用本地WPS
             this.singleData = res.data.one_info;
@@ -368,7 +368,7 @@ export default {
 
             //打开pdf
             this.curFileShowUrl = this.filePath.replace(/\.\w+$/, '.pdf');
-            
+
 
           }
         })
@@ -616,7 +616,7 @@ export default {
                 formData.append("token", token);
                 formData.append("urltype", "0");
                 request({
-                  url: "upload/main/file",
+                  url: "/upload/main/file",
                   data: formData,
                   timeout: 1000 * 60,
                 }).then((res) => {
@@ -685,7 +685,7 @@ export default {
         formData.append("token", token);
         formData.append("urltype", "0");
         request({
-          url: "upload/main/file",
+          url: "/upload/main/file",
           data: formData,
           timeout: 1000 * 60,
         }).then((res) => {
@@ -1244,7 +1244,7 @@ export default {
   margin: 0 auto;
   box-sizing: border-box;
   padding: 84px 78px 20px 78px;
-  // box-shadow: 0 0 2px #000; 
+  // box-shadow: 0 0 2px #000;
   overflow: hidden;
 }
 

+ 1 - 1
src/views/gwglxt/fwng/index.vue

@@ -288,7 +288,7 @@ export default {
         urltype: 2,
         fullUrlType:1,
       },
-      updateUrl:window.globalVariables.api+'upload/main/file',
+      updateUrl:window.globalVariables.api+'/upload/main/file',
       dialogFormVisible_fwng: false,
       dialogForm_fwng: {
         lxObj: '',

+ 16 - 16
src/views/gwglxt/wdfw/index.vue

@@ -64,7 +64,7 @@
               <el-button type="text" @click="delData(scope.row)">删除</el-button>
 
             </div>
-            
+
             <div v-if="scope.row.gw_status_option_k=='2'">
               <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
               <el-button type="text" @click="editShow(scope.row,'edit')">编辑</el-button>
@@ -72,27 +72,27 @@
               <el-button type="text" @click="higSpeed(scope.row)">催办</el-button>
               <el-button type="text" @click="delData(scope.row)">删除</el-button>
 
-              
+
             </div>
-          
+
             <div v-if="scope.row.gw_status_option_k=='3'">
               <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
               <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
               <el-button type="text" @click="higSpeed(scope.row)">催办</el-button>
 
             </div>
-            
+
             <div v-if="scope.row.gw_status_option_k=='4'">
               <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
               <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
               <el-button type="text" @click="editShow(scope.row,'reEdit')">重新提交</el-button>
-             
+
             </div>
-            
+
             <div v-if="scope.row.gw_status_option_k=='5'">
               <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
                 <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
-             
+
             </div>
 
           </template>
@@ -134,7 +134,7 @@
               <el-button type="text" @click="delData(scope.row)">删除</el-button>
               <el-button type="text" @click="downloadFj(scope.row)" v-if="scope.row.gw_fj">下载附件</el-button>
             </div>
-            
+
             <div v-if="scope.row.gw_status_option_k=='2'">
               <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
               <el-button type="text" @click="editShow(scope.row,'edit')">编辑</el-button>
@@ -143,14 +143,14 @@
               <el-button type="text" @click="downloadFj(scope.row)" v-if="scope.row.gw_fj">下载附件</el-button>
 
             </div>
-          
+
             <div v-if="scope.row.gw_status_option_k=='3'">
               <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
               <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
               <el-button type="text" @click="higSpeed(scope.row)" :disabled="buttonDisabled_cb">催办</el-button>
               <el-button type="text" @click="downloadFj(scope.row)" v-if="scope.row.gw_fj">下载附件</el-button>
             </div>
-            
+
             <div v-if="scope.row.gw_status_option_k=='4'">
               <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
               <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
@@ -158,7 +158,7 @@
               <el-button type="text" @click="applyCheck(scope.row)">重新提交</el-button>
               <el-button type="text" @click="downloadFj(scope.row)" v-if="scope.row.gw_fj">下载附件</el-button>
             </div>
-            
+
             <div v-if="scope.row.gw_status_option_k=='5'">
               <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
               <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
@@ -168,7 +168,7 @@
           </template>
         </el-table-column>
       </el-table>
-      
+
 
       <footer class="flex-item-none" style="display: flex; justify-content: flex-end; margin-top: 30px">
       <el-pagination background layout="total,prev, pager, next" :page-size="limit" :total="total"
@@ -472,7 +472,7 @@ export default {
         urltype: 2,
         fullUrlType:1,
       },
-      updateUrl:window.globalVariables.api+'upload/main/file',
+      updateUrl:window.globalVariables.api+'/upload/main/file',
       dialogFormVisible_fwng: false,
       dialogForm_fwng: {
         lxObj: '',
@@ -519,7 +519,7 @@ export default {
       gwId:'',
       reEdit: '',
       prefixPDFUrl: window.globalVariables.api + '/plugins/pdf.js/web/viewer2.html?file=',
-      
+
       mbappendixList: [],
       fileName:'',
       filePath:'',
@@ -753,7 +753,7 @@ export default {
             }
             this.dialogFormVisible_detail = true;
           }
-         
+
         }
       })
       .catch(err=>{console.log(err)})
@@ -1045,7 +1045,7 @@ export default {
       }else{
         download3(this.fileFinalArr[0].fileUrl, '', this.fileFinalArr[0].fileName);
       }
-      
+
     },
     //催办
     higSpeed(item) {

+ 3 - 4
src/views/hysydgl/hyjy/components/fileUpload.vue

@@ -11,7 +11,7 @@
         </template>
     </el-upload>
 </template>
-  
+
 <script>
 import { defineComponent, ref, watch } from "@vue/composition-api";
 import { useUserStore } from "@/stores/user";
@@ -94,7 +94,7 @@ export default defineComponent({
             formData.append("filedata", file);
             formData.append("urltype", "0");
             request({
-                url: "upload/main/file",
+                url: "/upload/main/file",
                 data: formData,
                 timeout: 1000 * 60,
             }).then(({ data, code }) => {
@@ -171,5 +171,4 @@ export default defineComponent({
     },
 });
 </script>
-  
-  
+

+ 1 - 1
src/views/wjsj/wtjd/wjxq/index.vue

@@ -40,7 +40,7 @@ export default {
       wwj_id: '',
       fileList: [],
       fj:'',
-      updateUrl:window.globalVariables.api+'upload/main/file',//图片上传地址(测试服)
+      updateUrl:window.globalVariables.api+'/upload/main/file',//图片上传地址(测试服)
       extraParameters: {
         api: 'json',
         urltype: 1

+ 1 - 1
src/views/xmgl/qxfp/components/ZzjgAdd.vue

@@ -108,7 +108,7 @@ export default {
         formData.append("filedata", file.raw);
         formData.append("urltype", "0");
         request({
-          url: "upload/main/file",
+          url: "/upload/main/file",
           data: formData,
           timeout: 1000 * 60,
         }).then(({ data, code }) => {

+ 1 - 1
src/views/xmgl/xmgkt/components/manage.vue

@@ -337,7 +337,7 @@ export default {
       formData.append("filedata", file.raw);
       formData.append("urltype", "1");
       let res = await request({
-        url: "upload/main/file",
+        url: "/upload/main/file",
         data: formData,
         timeout: 1000 * 60,
       }).then(({ data }) => {

+ 7 - 7
src/views/xmlxsb/xmsq/index.vue

@@ -417,7 +417,7 @@ export default {
         api: 'json',
         urltype: 2,
       },
-      updateUrl: window.globalVariables.api + 'upload/main/file',
+      updateUrl: window.globalVariables.api + '/upload/main/file',
       appendixList: [],
       dialogFormVisible: false,
       xmlbLIST: [],
@@ -578,7 +578,7 @@ export default {
         break;
       }
     }
-   
+
   },
   methods: {
     //我申请的初始化
@@ -667,7 +667,7 @@ export default {
           }
         });
       }
-      
+
     },
     //tabPane 的切换
     paneTabSwitch(tab) {
@@ -847,7 +847,7 @@ export default {
                 }];
               }
             }
-            
+
             this.dialogForm = {
               xmmc: singleData.xm_name,
               xmlbObj: { label: singleData.lb_name, value: singleData.lb_id },
@@ -1153,7 +1153,7 @@ export default {
         meetingCont: ''
       };
     },
-  
+
     //获批
     getApplyDataBtn(formName) {
       this.$refs[formName].validate((valid) => {
@@ -1189,7 +1189,7 @@ export default {
           return false;
         }
       });
-      
+
     },
     //待审打开dialog
     waitCheck(item) {
@@ -1254,7 +1254,7 @@ export default {
         };
         this.dialogFormVisible_check = true;
       }
-     
+
     },
     //项目类别
     switchData(val) {