fix:添加配置现场大屏时可以切换雄本地、鞍钢测试和鞍钢生产环境
This commit is contained in:
parent
f060f0e3fb
commit
188f2214a0
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user