fix:现场大屏所有接口暂时写死projectSn,部署时需根据环境来切换相应的projectSn

This commit is contained in:
Vce 2024-06-20 00:36:07 +08:00
parent 52d7a7fdd2
commit c6c84b7f4f
9 changed files with 27 additions and 16 deletions

View File

@ -60,7 +60,8 @@ async function getLwInfo() {
selectPersonTypeAndEduStatisticsApi({
enterpriseId: res.result.id,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA' // yh001---ProjectSn
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res1 => {
if(res1.success){
if(res1.result){
@ -70,7 +71,8 @@ async function getLwInfo() {
})
selectWorkerTeamAndDepartmentStatisticsApi({
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA' // yh001---ProjectSn
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res2 => {
if(res2.success){
if(res2.result){

View File

@ -54,7 +54,8 @@ async function getQualityData() {
status: 60,
// enterpriseId: res.result.id,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001---ProjectSn
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res2 => {
if(res2.success){
qualityData.value = res2.result.page.records

View File

@ -81,7 +81,9 @@ const updateConfig = () => {
const configWeekVideoListFn = async (showLoading: boolean) => {
const res: any = await configWeekVideoListApi(
{
projectSn: store.sn,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
type: 3
},
showLoading

View File

@ -47,10 +47,10 @@ const statisticsCount = ref(null as any);
const projectData = ref(null as any);
//
const getProjectInfo = async (showLoading: boolean) => {
const res = await getProjectDetail({ projectSn: store.sn },showLoading);
projectData.value = res.result;
};
// const getProjectInfo = async (showLoading: boolean) => {
// const res = await getProjectDetail({ projectSn: store.sn },showLoading);
// projectData.value = res.result;
// };
//
const remainDays = ref('0' as any)
@ -61,8 +61,9 @@ async function countTaskProgress() {
// console.log("id",res.result.id)
countTaskProgressApi({
enterpriseId: res.result.id,
// projectSn: store.sn
projectSn: 'BD3137498CB84BF0969979E0342CDBCA' // yh001---ProjectSn
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res2 => {
remainDays.value = res2.result.projectSurplusDayNum.toString()
})

View File

@ -40,7 +40,8 @@ const outPie = ref([
async function getSpecialInfo() {
await getStatBySpecialApi({
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001---ProjectSn
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res => {
if(res.success){
if(res.result){

View File

@ -46,7 +46,8 @@ async function getAlarmInfo() {
enterpriseId: res.result.id,
isPushed: 1,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA' // yh001---ProjectSn
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res2 => {
if(res2.success){
if(res2.result.records && res2.result.records.length !== 0){

View File

@ -56,8 +56,9 @@ async function getCbsProjectInfo() {
// console.log("id",res.result.id)
getEnterpriseInfoByIdApi({
enterpriseId: res.result.id,
// projectSn: store.sn
projectSn: 'BD3137498CB84BF0969979E0342CDBCA' // yh001---ProjectSn
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res2 => {
cbsProjectInfo.value = res2.result.projectEnterprise
})

View File

@ -60,7 +60,8 @@ async function getSecurityData() {
pageSize: 9999,
status: 60,
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001---ProjectSn
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res => {
if(res.success){
securityData.value = res.result.page.records

View File

@ -60,7 +60,8 @@ async function getEmergencyDataData() {
pageSize: 9999,
// inDispositionStatus: '', // 123
// projectSn: store.sn,
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001---ProjectSn
projectSn: 'BD3137498CB84BF0969979E0342CDBCA', // yh001
// projectSn: '471568F45EB247A3912A0D10EA1BFCEB', // agjt&&agjt---
}).then(res => {
if(res.success){
emergencyData.value = res.result.records