fix:判断现场大屏雄本地与鞍钢正式和测试环境的项目Sn判断

This commit is contained in:
Vce 2024-06-20 10:06:08 +08:00
parent 7b933c75f8
commit cb98b23f45
9 changed files with 74 additions and 67 deletions

View File

@ -49,6 +49,7 @@ import {
selectWorkerTeamAndDepartmentStatisticsApi,
} from "@/api/modules/agjtLiveApi";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL
//
const lwInfo1 = ref({} as any)
@ -56,12 +57,14 @@ const lwInfo2 = ref({} as any)
async function getLwInfo() {
//Id
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({
enterpriseId: res.result.id,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
projectSn: data.projectSn,
}).then(res1 => {
if(res1.success){
if(res1.result){
@ -70,9 +73,7 @@ async function getLwInfo() {
}
})
selectWorkerTeamAndDepartmentStatisticsApi({
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
projectSn: data.projectSn,
}).then(res2 => {
if(res2.success){
if(res2.result){

View File

@ -40,27 +40,22 @@ import {
qualityPageApi,
} from "@/api/modules/agjtLiveApi";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL
//
const qualityData = ref([] as any)
async function getQualityData() {
//Id
await getEnterpriseIdApi().then(res => {
let data = {
page: 1,
pageSize: 9999,
status: 60,
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'
qualityPageApi(data).then(res => {
if(res.success){
qualityPageApi({
page: 1,
pageSize: 9999,
status: 60,
// enterpriseId: res.result.id,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res2 => {
if(res2.success){
qualityData.value = res2.result.page.records
}
});
qualityData.value = res.result.page.records
}
});
};

View File

@ -39,6 +39,7 @@ import setVideoDialog from "@/components/setVideoDialog.vue";
import { configWeekVideoListApi } from "@/api/modules/agjtLiveApi";
import moment from "moment";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL
const videoList = ref([] as any);
// ts
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(2 as any);
@ -79,15 +80,13 @@ const updateConfig = () => {
};
//
const configWeekVideoListFn = async (showLoading: boolean) => {
const res: any = await configWeekVideoListApi(
{
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
type: 3
},
showLoading
);
let data = {
projectSn: '',
type: 3
}
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) {
//
const today = moment().format("d");

View File

@ -43,6 +43,7 @@ import {
countTaskProgressApi,
} from "@/api/modules/agjtLiveApi";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL
const statisticsCount = ref(null as any);
const projectData = ref(null as any);
@ -58,13 +59,13 @@ async function countTaskProgress() {
//Id
await getEnterpriseIdApi().then(res => {
if(res.success){
// console.log("id",res.result.id)
countTaskProgressApi({
enterpriseId: res.result.id,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res2 => {
let data = {
enterpriseId: res.result.id,
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'
countTaskProgressApi(data).then(res2 => {
remainDays.value = res2.result.projectSurplusDayNum.toString()
})
}

View File

@ -24,6 +24,7 @@ import {
getStatBySpecialApi,
} from "@/api/modules/agjtLiveApi";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL
const isShow = ref(false as any)
@ -38,11 +39,12 @@ const outPie = ref([
//
async function getSpecialInfo() {
await getStatBySpecialApi({
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res => {
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'
await getStatBySpecialApi(data).then(res => {
if(res.success){
if(res.result){
//

View File

@ -29,6 +29,7 @@ import {
selectAIPageListApi,
} from "@/api/modules/agjtLiveApi";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL
//
const isData = ref(false as any)
@ -39,16 +40,16 @@ async function getAlarmInfo() {
//Id
await getEnterpriseIdApi().then(res => {
if(res.success){
// console.log("id",res.result.id)
selectAIPageListApi({
let data = {
pageNo: 1,
pageSize: 1,
enterpriseId: res.result.id,
isPushed: 1,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res2 => {
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'
selectAIPageListApi(data).then(res2 => {
if(res2.success){
if(res2.result.records && res2.result.records.length !== 0){
alarmInfo.value = res2.result.records[0]

View File

@ -47,19 +47,21 @@ import {
getEnterpriseInfoByIdApi,
} from "@/api/modules/agjtLiveApi";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL
const cbsProjectInfo = ref({} as any)
async function getCbsProjectInfo() {
console.log("BASEURL===>",BASEURL)
//Id
await getEnterpriseIdApi().then(res => {
if(res.success){
// console.log("id",res.result.id)
getEnterpriseInfoByIdApi({
enterpriseId: res.result.id,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res2 => {
let data = {
enterpriseId: res.result.id,
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'
getEnterpriseInfoByIdApi(data).then(res2 => {
cbsProjectInfo.value = res2.result.projectEnterprise
})
}

View File

@ -51,18 +51,20 @@ import {
securityPageApi,
} from "@/api/modules/agjtLiveApi";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL
//
const securityData = ref([] as any)
async function getSecurityData() {
await securityPageApi({
let data = {
page: 1,
pageSize: 9999,
status: 60,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res => {
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'
await securityPageApi(data).then(res => {
if(res.success){
securityData.value = res.result.page.records
}

View File

@ -51,17 +51,21 @@ import {
emergencyPageApi
} from "@/api/modules/agjtLiveApi";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL
//
const emergencyData = ref([] as any)
async function getEmergencyDataData() {
await emergencyPageApi({
let data = {
page: 1,
pageSize: 9999,
// inDispositionStatus: '', // 123
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
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'
await emergencyPageApi({
}).then(res => {
if(res.success){
emergencyData.value = res.result.records