zxr 3 жил өмнө
parent
commit
a83aa70fce

+ 1 - 3
src/views/PrintsManage/manage/index.vue

@@ -927,9 +927,7 @@ export default {
           this.dyopen = false;
           this.getList();
           // var open=window.open();
-          // let url='http://192.168.5.188:8080/profile/print/';
-          let url = "http://localhost:8089/profile/print/";
-          location.href = url + res.printFileName;
+          location.href = process.env.VUE_APP_BASE_API+'/profile/print/' + res.printFileName;
         }
       });
       // open.location.href="http://192.168.5.188:8080/priofile/print/202203211244.docx";

+ 2 - 1
src/views/pt.vue

@@ -537,7 +537,7 @@
           </el-col>
           <el-col :span="12" v-if="!ggflg">
             <el-form-item label="附件" label-width="0px" prop="filename">
-                <a :href="'http://192.168.2.250:8089'+form.filename" target="_blank" download style="display:inline-block;width:90px;height:30px;background-color:#409EFF;border:none;border-radus:3px;color:#fff;line-height:30px;text-align: center;">下载附件</a>
+                <a :href="url+form.filename" target="_blank" download style="display:inline-block;width:90px;height:30px;background-color:#409EFF;border:none;border-radus:3px;color:#fff;line-height:30px;text-align: center;">下载附件</a>
               <!-- <fileUpload v-model="form.filename" class="m-l-20" /> -->
             </el-form-item>
           </el-col>
@@ -601,6 +601,7 @@ export default {
       title2: "",
       title3: "",
       title4: "",
+      url:process.env.VUE_APP_BASE_API,
       rules: {
         noticeTitle: [
           { required: true, message: "公告标题不能为空", trigger: "blur" },

+ 3 - 3
src/views/workingArrangements/planTask/index.vue

@@ -1082,7 +1082,7 @@ export default {
           this.singleTable.planProgress.schedule;
         console.log(this.singleTable);
         this.singleTable.peopleName=res.data.peopleName.split(",").map(Number);
-        this.singleTable.file='http://192.168.2.250:8089'+this.singleTable.file;
+        this.singleTable.file=process.env.VUE_APP_BASE_API+this.singleTable.file;
         this.getZhuChi(res.data.unitId);
         // this.singleTable.jindu=singleTable.planProgress.schedule
         // console.log(this.singleTable)
@@ -1101,9 +1101,9 @@ export default {
         this.comstatus = 0;
         this.moreTable = res.data;
         this.moreTable.planProgresses.map(item=>{
-            item.file='http://192.168.2.250:8089'+item.file;
+            item.file=process.env.VUE_APP_BASE_API+item.file;
         })
-        this.moreTable.file='http://192.168.2.250:8089'+this.moreTable.file;
+        this.moreTable.file=process.env.VUE_APP_BASE_API+this.moreTable.file;
         this.moreTable.planProgresses.forEach((item) => {
           this.comstatus +=
             item.schedule / this.moreTable.planProgresses.length;

+ 4 - 3
src/views/workingArrangements/workTask/index.vue

@@ -896,6 +896,7 @@ export default {
       loading: true,
       // 导出遮罩层
       exportLoading: false,
+      url:process.env.VUE_APP_BASE_API,
       // 选中数组
       ids: [],
       // 非单个禁用
@@ -1086,7 +1087,7 @@ export default {
         this.Progress.id = this.singleTable.workProgress.id;
 
         this.singleTable.file =
-          "http://192.168.2.250:8089" + this.singleTable.file;
+          process.env.VUE_APP_BASE_API + this.singleTable.file;
         console.log(this.singleTable.file, 1);
         this.singleTable.fileName = this.singleTable.workProgress.fileName;
         this.singleTable.peopleName = res.data.peopleName
@@ -1111,9 +1112,9 @@ export default {
         this.comstatus = 0;
         this.moreTable = res.data;
         console.log(this.moreTable);
-        this.moreTable.file = "http://192.168.2.250:8089" + this.moreTable.file;
+        this.moreTable.file = process.env.VUE_APP_BASE_API + this.moreTable.file;
         this.moreTable.workProgresses.map((item) => {
-          item.file = "http://192.168.2.250:8089" + item.file;
+          item.file = process.env.VUE_APP_BASE_API + item.file;
         });
         this.moreTable.workProgresses.forEach((item) => {
           this.comstatus +=