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