From 7109f27451bb3f3a68b9d82cb86f652c4e62b04c Mon Sep 17 00:00:00 2001 From: xuxiaoming Date: Thu, 30 Dec 2021 11:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=BB=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/request.js | 6 +++--- .../demandPlanning/articleDemand/public.vue | 16 +++++++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/server/request.js b/src/server/request.js index 48e4077..3e1f6c3 100644 --- a/src/server/request.js +++ b/src/server/request.js @@ -1,8 +1,8 @@ import axios from "axios"; import { ElMessage } from "element-plus"; let switchValue = true; -const baseURL = process.env.VUE_APP_BASE_URL || "http://101.201.121.115:9003/"; -// const baseURL = process.env.VUE_APP_BASE_URL || "http://192.168.0.98:9003/"; +// const baseURL = process.env.VUE_APP_BASE_URL || "http://101.201.121.115:9003/"; +const baseURL = process.env.VUE_APP_BASE_URL || "http://192.168.0.98:9003/"; const service = axios.create({ baseURL, timeout: 1000 * 60 * 2, // request timeout @@ -82,4 +82,4 @@ upService.interceptors.response.use( return Promise.reject(error.response); } ); -export {service, upService}; +export {service, upService, baseURL}; diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue index 7f63a44..f77b0ca 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue @@ -34,8 +34,14 @@ type="text" @click="republishHandler(history.planOrderId)" :disabled="history.status!=100"> 再次发布 + 日志 import { publishIdentify, publicData, planOrderQuery, republish } from '@/server/productionPlanning/customerForecastDemandReview' import PublicDetail from "./publicDetail.vue" + import { baseURL } from "@/server/request" export default { emits: ["cancelHandle"], components:{ @@ -119,17 +126,16 @@ this.loading = false }); }, + lookErrorHandler(versionNr,mode = "plan"){ + window.open(baseURL + "admin/common/log/read/"+mode+"/"+versionNr) + }, lookDetailHandler(versionNr) { - console.log('%cpublic.vue line:123 this.showPublicDetail 1', 'color: #007acc;', this.showPublicDetail); this.showPublicDetail = true - console.log('%cpublic.vue line:123 this.showPublicDetail 2', 'color: #007acc;', this.showPublicDetail); this.versionNr = versionNr }, closePublicDetailDialog(){ - console.log('%cpublic.vue line:123 closePublicDetailDialog this.showPublicDetail 1', 'color: #007acc;', this.showPublicDetail); this.showPublicDetail = false - console.log('%cpublic.vue line:123 closePublicDetailDialog this.showPublicDetail 2', 'color: #007acc;', this.showPublicDetail); }, publishIdentify() { this.loading = true