fix:判断现场大屏雄本地与鞍钢正式和测试环境的项目Sn判断
This commit is contained in:
parent
7b933c75f8
commit
cb98b23f45
@ -49,6 +49,7 @@ import {
|
|||||||
selectWorkerTeamAndDepartmentStatisticsApi,
|
selectWorkerTeamAndDepartmentStatisticsApi,
|
||||||
} from "@/api/modules/agjtLiveApi";
|
} from "@/api/modules/agjtLiveApi";
|
||||||
const store = GlobalStore();
|
const store = GlobalStore();
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL
|
||||||
|
|
||||||
//获取劳务实名制信息
|
//获取劳务实名制信息
|
||||||
const lwInfo1 = ref({} as any)
|
const lwInfo1 = ref({} as any)
|
||||||
@ -56,12 +57,14 @@ const lwInfo2 = ref({} as any)
|
|||||||
async function getLwInfo() {
|
async function getLwInfo() {
|
||||||
//获取企业Id
|
//获取企业Id
|
||||||
await getEnterpriseIdApi().then(res => {
|
await getEnterpriseIdApi().then(res => {
|
||||||
// console.log("获取企业id",res.result.id)
|
let data = {
|
||||||
|
projectSn: '',
|
||||||
|
}
|
||||||
|
if(BASEURL == 'http://182.90.224.237:51234' || BASEURL == 'http://192.168.34.221:9111') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA'
|
||||||
|
if(BASEURL == 'http://42.180.188.17:9809' || BASEURL == 'http://42.180.188.17:11211') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB'
|
||||||
selectPersonTypeAndEduStatisticsApi({
|
selectPersonTypeAndEduStatisticsApi({
|
||||||
enterpriseId: res.result.id,
|
enterpriseId: res.result.id,
|
||||||
// projectSn: store.sn,
|
projectSn: data.projectSn,
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
|
||||||
}).then(res1 => {
|
}).then(res1 => {
|
||||||
if(res1.success){
|
if(res1.success){
|
||||||
if(res1.result){
|
if(res1.result){
|
||||||
@ -70,9 +73,7 @@ async function getLwInfo() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
selectWorkerTeamAndDepartmentStatisticsApi({
|
selectWorkerTeamAndDepartmentStatisticsApi({
|
||||||
// projectSn: store.sn,
|
projectSn: data.projectSn,
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
|
||||||
}).then(res2 => {
|
}).then(res2 => {
|
||||||
if(res2.success){
|
if(res2.success){
|
||||||
if(res2.result){
|
if(res2.result){
|
||||||
|
|||||||
@ -40,27 +40,22 @@ import {
|
|||||||
qualityPageApi,
|
qualityPageApi,
|
||||||
} from "@/api/modules/agjtLiveApi";
|
} from "@/api/modules/agjtLiveApi";
|
||||||
const store = GlobalStore();
|
const store = GlobalStore();
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL
|
||||||
|
|
||||||
//获取质量待办信息
|
//获取质量待办信息
|
||||||
const qualityData = ref([] as any)
|
const qualityData = ref([] as any)
|
||||||
async function getQualityData() {
|
async function getQualityData() {
|
||||||
|
let data = {
|
||||||
//获取企业Id
|
|
||||||
await getEnterpriseIdApi().then(res => {
|
|
||||||
if(res.success){
|
|
||||||
qualityPageApi({
|
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
status: 60,
|
status: 60,
|
||||||
// enterpriseId: res.result.id,
|
projectSn: '',
|
||||||
// projectSn: store.sn,
|
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
|
||||||
}).then(res2 => {
|
|
||||||
if(res2.success){
|
|
||||||
qualityData.value = res2.result.page.records
|
|
||||||
}
|
}
|
||||||
});
|
if(BASEURL == 'http://182.90.224.237:51234' || BASEURL == 'http://192.168.34.221:9111') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA'
|
||||||
|
if(BASEURL == 'http://42.180.188.17:9809' || BASEURL == 'http://42.180.188.17:11211') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB'
|
||||||
|
qualityPageApi(data).then(res => {
|
||||||
|
if(res.success){
|
||||||
|
qualityData.value = res.result.page.records
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -39,6 +39,7 @@ import setVideoDialog from "@/components/setVideoDialog.vue";
|
|||||||
import { configWeekVideoListApi } from "@/api/modules/agjtLiveApi";
|
import { configWeekVideoListApi } from "@/api/modules/agjtLiveApi";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
const store = GlobalStore();
|
const store = GlobalStore();
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL
|
||||||
const videoList = ref([] as any);
|
const videoList = ref([] as any);
|
||||||
// ts
|
// ts
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -67,7 +68,7 @@ watch(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const BASEURL = import.meta.env.VITE_API_URL;
|
// const BASEURL = import.meta.env.VITE_API_URL;
|
||||||
// 显示视频
|
// 显示视频
|
||||||
// const showVideo = ref(1 as any);
|
// const showVideo = ref(1 as any);
|
||||||
const showVideo = ref(2 as any);
|
const showVideo = ref(2 as any);
|
||||||
@ -79,15 +80,13 @@ const updateConfig = () => {
|
|||||||
};
|
};
|
||||||
// 获取一周的配置视频数据
|
// 获取一周的配置视频数据
|
||||||
const configWeekVideoListFn = async (showLoading: boolean) => {
|
const configWeekVideoListFn = async (showLoading: boolean) => {
|
||||||
const res: any = await configWeekVideoListApi(
|
let data = {
|
||||||
{
|
projectSn: '',
|
||||||
// projectSn: store.sn,
|
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
|
||||||
type: 3
|
type: 3
|
||||||
},
|
}
|
||||||
showLoading
|
if(BASEURL == 'http://182.90.224.237:51234' || BASEURL == 'http://192.168.34.221:9111') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA'
|
||||||
);
|
if(BASEURL == 'http://42.180.188.17:9809' || BASEURL == 'http://42.180.188.17:11211') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB'
|
||||||
|
const res: any = await configWeekVideoListApi(data, showLoading);
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
// 星期参数
|
// 星期参数
|
||||||
const today = moment().format("d");
|
const today = moment().format("d");
|
||||||
|
|||||||
@ -43,6 +43,7 @@ import {
|
|||||||
countTaskProgressApi,
|
countTaskProgressApi,
|
||||||
} from "@/api/modules/agjtLiveApi";
|
} from "@/api/modules/agjtLiveApi";
|
||||||
const store = GlobalStore();
|
const store = GlobalStore();
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL
|
||||||
const statisticsCount = ref(null as any);
|
const statisticsCount = ref(null as any);
|
||||||
|
|
||||||
const projectData = ref(null as any);
|
const projectData = ref(null as any);
|
||||||
@ -58,13 +59,13 @@ async function countTaskProgress() {
|
|||||||
//获取企业Id
|
//获取企业Id
|
||||||
await getEnterpriseIdApi().then(res => {
|
await getEnterpriseIdApi().then(res => {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
// console.log("获取企业id",res.result.id)
|
let data = {
|
||||||
countTaskProgressApi({
|
|
||||||
enterpriseId: res.result.id,
|
enterpriseId: res.result.id,
|
||||||
// projectSn: store.sn,
|
projectSn: '',
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
}
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
if(BASEURL == 'http://182.90.224.237:51234' || BASEURL == 'http://192.168.34.221:9111') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA'
|
||||||
}).then(res2 => {
|
if(BASEURL == 'http://42.180.188.17:9809' || BASEURL == 'http://42.180.188.17:11211') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB'
|
||||||
|
countTaskProgressApi(data).then(res2 => {
|
||||||
remainDays.value = res2.result.projectSurplusDayNum.toString()
|
remainDays.value = res2.result.projectSurplusDayNum.toString()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,6 +24,7 @@ import {
|
|||||||
getStatBySpecialApi,
|
getStatBySpecialApi,
|
||||||
} from "@/api/modules/agjtLiveApi";
|
} from "@/api/modules/agjtLiveApi";
|
||||||
const store = GlobalStore();
|
const store = GlobalStore();
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL
|
||||||
|
|
||||||
const isShow = ref(false as any)
|
const isShow = ref(false as any)
|
||||||
|
|
||||||
@ -38,11 +39,12 @@ const outPie = ref([
|
|||||||
|
|
||||||
//获取特殊作业情况信息
|
//获取特殊作业情况信息
|
||||||
async function getSpecialInfo() {
|
async function getSpecialInfo() {
|
||||||
await getStatBySpecialApi({
|
let data = {
|
||||||
// projectSn: store.sn,
|
projectSn: '',
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
}
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
if(BASEURL == 'http://182.90.224.237:51234' || BASEURL == 'http://192.168.34.221:9111') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA'
|
||||||
}).then(res => {
|
if(BASEURL == 'http://42.180.188.17:9809' || BASEURL == 'http://42.180.188.17:11211') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB'
|
||||||
|
await getStatBySpecialApi(data).then(res => {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
if(res.result){
|
if(res.result){
|
||||||
//内饼图
|
//内饼图
|
||||||
|
|||||||
@ -29,6 +29,7 @@ import {
|
|||||||
selectAIPageListApi,
|
selectAIPageListApi,
|
||||||
} from "@/api/modules/agjtLiveApi";
|
} from "@/api/modules/agjtLiveApi";
|
||||||
const store = GlobalStore();
|
const store = GlobalStore();
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL
|
||||||
|
|
||||||
//是否有数据
|
//是否有数据
|
||||||
const isData = ref(false as any)
|
const isData = ref(false as any)
|
||||||
@ -39,16 +40,16 @@ async function getAlarmInfo() {
|
|||||||
//获取企业Id
|
//获取企业Id
|
||||||
await getEnterpriseIdApi().then(res => {
|
await getEnterpriseIdApi().then(res => {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
// console.log("获取企业id",res.result.id)
|
let data = {
|
||||||
selectAIPageListApi({
|
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 1,
|
pageSize: 1,
|
||||||
enterpriseId: res.result.id,
|
enterpriseId: res.result.id,
|
||||||
isPushed: 1,
|
isPushed: 1,
|
||||||
// projectSn: store.sn,
|
projectSn: '',
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
}
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
if(BASEURL == 'http://182.90.224.237:51234' || BASEURL == 'http://192.168.34.221:9111') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA'
|
||||||
}).then(res2 => {
|
if(BASEURL == 'http://42.180.188.17:9809' || BASEURL == 'http://42.180.188.17:11211') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB'
|
||||||
|
selectAIPageListApi(data).then(res2 => {
|
||||||
if(res2.success){
|
if(res2.success){
|
||||||
if(res2.result.records && res2.result.records.length !== 0){
|
if(res2.result.records && res2.result.records.length !== 0){
|
||||||
alarmInfo.value = res2.result.records[0]
|
alarmInfo.value = res2.result.records[0]
|
||||||
|
|||||||
@ -47,19 +47,21 @@ import {
|
|||||||
getEnterpriseInfoByIdApi,
|
getEnterpriseInfoByIdApi,
|
||||||
} from "@/api/modules/agjtLiveApi";
|
} from "@/api/modules/agjtLiveApi";
|
||||||
const store = GlobalStore();
|
const store = GlobalStore();
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL
|
||||||
|
|
||||||
const cbsProjectInfo = ref({} as any)
|
const cbsProjectInfo = ref({} as any)
|
||||||
async function getCbsProjectInfo() {
|
async function getCbsProjectInfo() {
|
||||||
|
console.log("BASEURL===>",BASEURL)
|
||||||
//获取企业Id
|
//获取企业Id
|
||||||
await getEnterpriseIdApi().then(res => {
|
await getEnterpriseIdApi().then(res => {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
// console.log("获取企业id",res.result.id)
|
let data = {
|
||||||
getEnterpriseInfoByIdApi({
|
|
||||||
enterpriseId: res.result.id,
|
enterpriseId: res.result.id,
|
||||||
// projectSn: store.sn,
|
projectSn: '',
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
}
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
if(BASEURL == 'http://182.90.224.237:51234' || BASEURL == 'http://192.168.34.221:9111') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA'
|
||||||
}).then(res2 => {
|
if(BASEURL == 'http://42.180.188.17:9809' || BASEURL == 'http://42.180.188.17:11211') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB'
|
||||||
|
getEnterpriseInfoByIdApi(data).then(res2 => {
|
||||||
cbsProjectInfo.value = res2.result.projectEnterprise
|
cbsProjectInfo.value = res2.result.projectEnterprise
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,18 +51,20 @@ import {
|
|||||||
securityPageApi,
|
securityPageApi,
|
||||||
} from "@/api/modules/agjtLiveApi";
|
} from "@/api/modules/agjtLiveApi";
|
||||||
const store = GlobalStore();
|
const store = GlobalStore();
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL
|
||||||
|
|
||||||
//获取安全待办信息
|
//获取安全待办信息
|
||||||
const securityData = ref([] as any)
|
const securityData = ref([] as any)
|
||||||
async function getSecurityData() {
|
async function getSecurityData() {
|
||||||
await securityPageApi({
|
let data = {
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
status: 60,
|
status: 60,
|
||||||
// projectSn: store.sn,
|
projectSn: '',
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
}
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
if(BASEURL == 'http://182.90.224.237:51234' || BASEURL == 'http://192.168.34.221:9111') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA'
|
||||||
}).then(res => {
|
if(BASEURL == 'http://42.180.188.17:9809' || BASEURL == 'http://42.180.188.17:11211') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB'
|
||||||
|
await securityPageApi(data).then(res => {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
securityData.value = res.result.page.records
|
securityData.value = res.result.page.records
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,17 +51,21 @@ import {
|
|||||||
emergencyPageApi
|
emergencyPageApi
|
||||||
} from "@/api/modules/agjtLiveApi";
|
} from "@/api/modules/agjtLiveApi";
|
||||||
const store = GlobalStore();
|
const store = GlobalStore();
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL
|
||||||
|
|
||||||
//获取应急记录信息
|
//获取应急记录信息
|
||||||
const emergencyData = ref([] as any)
|
const emergencyData = ref([] as any)
|
||||||
async function getEmergencyDataData() {
|
async function getEmergencyDataData() {
|
||||||
await emergencyPageApi({
|
let data = {
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
// inDispositionStatus: '', // 数据类型:字符串,1:待救援、2:救援中、3:已救援
|
// inDispositionStatus: '', // 数据类型:字符串,1:待救援、2:救援中、3:已救援
|
||||||
// projectSn: store.sn,
|
projectSn: '',
|
||||||
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
|
}
|
||||||
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt正式环境&&agjt测试环境---共用的
|
if(BASEURL == 'http://182.90.224.237:51234' || BASEURL == 'http://192.168.34.221:9111') data.projectSn = 'BD3137498CB84BF0969979E0342CDBCA'
|
||||||
|
if(BASEURL == 'http://42.180.188.17:9809' || BASEURL == 'http://42.180.188.17:11211') data.projectSn = '471568F45EB247A3912A0D10EA1BFCEB'
|
||||||
|
await emergencyPageApi({
|
||||||
|
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
emergencyData.value = res.result.records
|
emergencyData.value = res.result.records
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user