From 188f2214a0d4329c8808775afcc0e5e4dd2a1f6d Mon Sep 17 00:00:00 2001 From: Vce Date: Thu, 20 Jun 2024 14:07:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=8E=B0=E5=9C=BA=E5=A4=A7=E5=B1=8F=E6=97=B6=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E9=9B=84=E6=9C=AC=E5=9C=B0=E3=80=81=E9=9E=8D?= =?UTF-8?q?=E9=92=A2=E6=B5=8B=E8=AF=95=E5=92=8C=E9=9E=8D=E9=92=A2=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectFront/projectSummary/extendInfo.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/views/projectFront/projectSummary/extendInfo.vue b/src/views/projectFront/projectSummary/extendInfo.vue index d608ae0e..d94586ca 100644 --- a/src/views/projectFront/projectSummary/extendInfo.vue +++ b/src/views/projectFront/projectSummary/extendInfo.vue @@ -397,6 +397,7 @@ import { configWeekVideoListApi, configWeekVideoSaveApi } from "@/assets/js/api/baseInfo.js"; +import axios from "axios"; export default { name: "extendInfo", data() { @@ -444,15 +445,18 @@ export default { }, created() { this.projectSn = this.$store.state.projectSn; + console.log(axios.defaults.baseURL,"777777777777777") this.getProjectExtendInfo(); this.getEducationListFn(); }, methods: { async configWeekVideoListFn(){ - await configWeekVideoListApi({ - // projectSn: this.$store.state.projectSn, - projectSn: "BD3137498CB84BF0969979E0342CDBCA", // yh001 - }).then(res =>{ + let data = { + projectSn: '' + } + if(axios.defaults.baseURL == 'http://182.90.224.237:51234/' || axios.defaults.baseURL == 'http://192.168.34.221:9111/') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA' + if(axios.defaults.baseURL == 'http://42.180.188.17:9809/' || axios.defaults.baseURL == 'http://42.180.188.17:11211/') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB' + await configWeekVideoListApi(data).then(res =>{ if (res.result) { this.videoConfigData = res.result; } @@ -462,9 +466,11 @@ export default { console.log(url); let requestData = { // projectSn: this.$store.state.projectSn, - projectSn: "BD3137498CB84BF0969979E0342CDBCA", // yh001 + projectSn: "", type: 3 }; + if(axios.defaults.baseURL == 'http://182.90.224.237:51234/' || axios.defaults.baseURL == 'http://192.168.34.221:9111/') requestData.projectSn = 'BD3137498CB84BF0969979E0342CDBCA' + if(axios.defaults.baseURL == 'http://42.180.188.17:9809/' || axios.defaults.baseURL == 'http://42.180.188.17:11211/') requestData.projectSn = '471568F45EB247A3912A0D10EA1BFCEB' // 星期参数 console.log("=============================") console.log(weekIndex,"weekIndex")