网诚需求
This commit is contained in:
parent
71638c10ea
commit
f1449f587d
@ -47,7 +47,7 @@ VITE_API_URL = 'http://192.168.34.155:19111'
|
||||
# 包头化工
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:18000'
|
||||
# 大连金笔
|
||||
VITE_API_URL = 'http://101.43.164.214:11126'
|
||||
# VITE_API_URL = 'http://101.43.164.214:11126'
|
||||
|
||||
# 上传
|
||||
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='
|
||||
|
||||
@ -42,7 +42,7 @@ VITE_API_URL = 'http://192.168.9.249:9820'
|
||||
# 包头化工
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:18000'
|
||||
# 大连金笔
|
||||
VITE_API_URL = 'http://101.43.164.214:11126'
|
||||
# VITE_API_URL = 'http://101.43.164.214:11126'
|
||||
# 打包
|
||||
VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url='
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ export const getCountEntryAndExitNum = (params: {}) => {
|
||||
};
|
||||
//查询今日作业人员趋势
|
||||
export const getQueryTodayAttendanceTrendApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/workerAttendance/queryTodayAttendanceTrend`, params, { headers: { noLoading: true } });
|
||||
return http.get(BASEURL + `/xmgl/workerAttendance/queryYearAttendanceTrend`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
//查询出勤分析
|
||||
|
||||
@ -29,7 +29,7 @@ import rightBottom from "@/views/sevenLargeScreen/comprehensiveManage/projectOve
|
||||
import { GlobalStore } from "@/stores";
|
||||
const store = GlobalStore();
|
||||
import { getWorkerStatisticsCountApi, getProjectDetail } from "@/api/modules/projectOverview";
|
||||
import { ref, onMounted, onBeforeUnmount,nextTick } from "vue";
|
||||
import { ref, onMounted, onBeforeUnmount, nextTick } from "vue";
|
||||
const statisticsCount = ref(null as any);
|
||||
|
||||
const projectData = ref(null as any);
|
||||
@ -59,34 +59,34 @@ const callChildFn = async () => {
|
||||
centerTopRef.value.getDataList(true);
|
||||
centerBottomRef.value.getProgressOption(true);
|
||||
rightTopRef.value.getSafeInfo(true);
|
||||
rightCenterRef.value.qualityInfo()
|
||||
rightBottomRef.value.getList()
|
||||
})
|
||||
}
|
||||
rightCenterRef.value.qualityInfo();
|
||||
rightBottomRef.value.getList();
|
||||
});
|
||||
};
|
||||
//定时器
|
||||
const interval = ref(null as any);
|
||||
//定时调用
|
||||
const startInterval = async () => {
|
||||
interval.value= setInterval(() => {
|
||||
interval.value = setInterval(() => {
|
||||
getPersonDetail();
|
||||
getProjectInfo(true);
|
||||
callChildFn();
|
||||
}, 30 * 1000);
|
||||
}
|
||||
};
|
||||
// 在组件销毁时清除 interval
|
||||
const destroyInterval = () => {
|
||||
if (interval.value) {
|
||||
clearInterval(interval.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
// 在组件销毁时调用 destroyInterval 方法清除 interval
|
||||
onBeforeUnmount(() => {
|
||||
destroyInterval();
|
||||
})
|
||||
window.onbeforeunload = (e) => {
|
||||
});
|
||||
window.onbeforeunload = () => {
|
||||
destroyInterval();
|
||||
}
|
||||
onMounted( async () => {
|
||||
};
|
||||
onMounted(async () => {
|
||||
getPersonDetail();
|
||||
getProjectInfo();
|
||||
startInterval();
|
||||
|
||||
@ -4,8 +4,10 @@
|
||||
<div class="projectInfo">
|
||||
<div><span>项目名称:</span> {{ projectData.projectName || "" }}</div>
|
||||
<div :title="projectLocal"><span>项目地址:</span> {{ projectLocal }}</div>
|
||||
<div><span>项目经理:</span> {{ projectData.projectManage || "" }}</div>
|
||||
<div><span>联系电话:</span> {{ projectData.projectTel || "" }}</div>
|
||||
<!-- <div><span>项目经理:</span> {{ projectData.projectManage || "" }}</div>
|
||||
<div><span>联系电话:</span> {{ projectData.projectTel || "" }}</div> -->
|
||||
<div><span>承建单位:</span> {{ projectData.constructionUnit || "" }}</div>
|
||||
<div><span>监理单位:</span> {{ projectData.supervisorUnit || "" }}</div>
|
||||
<div><span>建筑面积:</span> {{ projectData.projectAcreage || "" }} ㎡</div>
|
||||
<div><span>开工日期:</span> {{ projectData.startWorkDate || "" }}</div>
|
||||
<div><span>项目编号:</span> {{ projectData.projectNumber || "" }}</div>
|
||||
|
||||
@ -42,7 +42,7 @@ const getProjectInfo = async () => {
|
||||
const res: any = await getTaskTimeDetail({ projectSn: store.sn });
|
||||
console.log("获取项目信息", res);
|
||||
projectTimeInfo.value = res.result;
|
||||
countdown.value = projectTimeInfo.value.projectOverallCountdown.toString().padStart(6, "0");
|
||||
countdown.value = projectTimeInfo.value.surplusDay.toString().padStart(6, "0");
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user