Kaynağa Gözat

将页面中this.global.baseUrl改为process.env.BASE_URL

lihongxiao 3 yıl önce
ebeveyn
işleme
2f95dcfb3f

+ 2 - 2
src/views/FinancialManagement/ReconciliationSystem/PayableList/Paid.vue

@@ -579,9 +579,9 @@ export default {
       var win = window.open();
       win.document.write(
         '<body style="margin:0px;"><object data="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
       );
     },

+ 2 - 2
src/views/FinancialManagement/ReconciliationSystem/PayableList/Unpaid.vue

@@ -578,9 +578,9 @@ export default {
       var win = window.open();
       win.document.write(
         '<body style="margin:0px;"><object data="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
       );
     },

+ 2 - 2
src/views/FinancialManagement/ReconciliationSystem/PayableList/Whole.vue

@@ -614,9 +614,9 @@ export default {
       var win = window.open();
       win.document.write(
         '<body style="margin:0px;"><object data="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
       );
     },

+ 2 - 2
src/views/FinancialManagement/ReconciliationSystem/ReceivableList/Received.vue

@@ -611,9 +611,9 @@ export default {
       var win = window.open();
       win.document.write(
         '<body style="margin:0px;"><object data="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
       );
     },

+ 2 - 2
src/views/FinancialManagement/ReconciliationSystem/ReceivableList/Uncollected.vue

@@ -573,9 +573,9 @@ export default {
       var win = window.open();
       win.document.write(
         '<body style="margin:0px;"><object data="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
       );
     },

+ 2 - 2
src/views/FinancialManagement/ReconciliationSystem/ReceivableList/Whole.vue

@@ -726,9 +726,9 @@ export default {
       var win = window.open();
       win.document.write(
         '<body style="margin:0px;"><object data="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel_query.xlsx" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
       );
     },

+ 2 - 2
src/views/FinancialManagement/ReconciliationSystem/UploadReconciliationList.vue

@@ -440,9 +440,9 @@ export default {
       var win = window.open();
       win.document.write(
         '<body style="margin:0px;"><object data="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel.xlsx" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/app/importExcel.xlsx" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
       );
     },

+ 4 - 4
src/views/Salary/SalaryExamine.vue

@@ -245,18 +245,18 @@ export default {
         var win = window.open();
         win.document.write(
           '<body style="margin:0px;"><object data="' +
-            this.global.baseUrl +
+            process.env.BASE_URL  +
             '/upload/wage_model_A.xls" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-            this.global.baseUrl +
+            process.env.BASE_URL  +
             '/upload/wage_model_A.xls" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
         );
       } else if (this.formInline.userProp == "B") {
         var win = window.open();
         win.document.write(
           '<body style="margin:0px;"><object data="' +
-            this.global.baseUrl +
+            process.env.BASE_URL  +
             '/upload/wage_model_B.xls" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-            this.global.baseUrl +
+            process.env.BASE_URL  +
             '/upload/wage_model_B.xls" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
         );
       } else {

+ 4 - 4
src/views/Salary/SalaryQuery.vue

@@ -261,18 +261,18 @@ export default {
         var win = window.open();
         win.document.write(
           '<body style="margin:0px;"><object data="' +
-            this.global.baseUrl +
+            process.env.BASE_URL  +
             '/upload/wage_model_A.xls" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-            this.global.baseUrl +
+            process.env.BASE_URL  +
             '/upload/wage_model_A.xls" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
         );
       } else if (this.formInline.userProp == "B") {
         var win = window.open();
         win.document.write(
           '<body style="margin:0px;"><object data="' +
-            this.global.baseUrl +
+            process.env.BASE_URL  +
             '/upload/wage_model_B.xls" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-            this.global.baseUrl +
+            process.env.BASE_URL  +
             '/upload/wage_model_B.xls" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
         );
       } else {

+ 2 - 2
src/views/Salary/SocinsuQuery.vue

@@ -290,9 +290,9 @@ export default {
       var win = window.open();
       win.document.write(
         '<body style="margin:0px;"><object data="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/upload/social_model.xls" type="application/xlsx" width="100%" height="100%"><iframe src="' +
-          this.global.baseUrl +
+          process.env.BASE_URL  +
           '/upload/social_model.xls" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
       );
     },

+ 1 - 1
src/views/Sys/Appversion.vue

@@ -319,7 +319,7 @@ export default {
       params.append("type", 'app')
       this.$api.letter.uploadFile(params).then(res => {
         if (res.code == "200") {
-          this.appformLabelAlign.path = this.global.baseUrl + res.data.url;
+          this.appformLabelAlign.path = process.env.BASE_URL  + res.data.url;
         }
       })
     },