diff --git a/src/api/modules/agjtCommandApi.ts b/src/api/modules/agjtCommandApi.ts
index 5ba972b..fedb286 100644
--- a/src/api/modules/agjtCommandApi.ts
+++ b/src/api/modules/agjtCommandApi.ts
@@ -131,3 +131,18 @@ export const getCountTaskProgressApi = (params: {}, showLoading: boolean) => {
export const queryCountEnterpriseApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/xzTaskProgressTotal/countEnterprise`, params, { headers: { noLoading: showLoading } });
};
+// 人员情况
+export const performanceAnalysisApi = (params: {}, showLoading: boolean) => {
+ return http.post(BASEURL + `/xmgl/workerAttendance/safetyPerformanceAnalysis`, params, { headers: { noLoading: showLoading } });
+};
+// 三色评价
+export const statsEnterpriseRiskApi = (params: {}, showLoading: boolean) => {
+ return http.post(BASEURL + `/xmgl/workerInfo/statsEnterpriseRisk`, params, { headers: { noLoading: showLoading } });
+};
+// 安全教育视频配置
+export const configWeekVideoSaveApi = (params: {}, showLoading: boolean) => {
+ return http.post(BASEURL + `/xmgl/educationConfigWeekVideo/save`, params, { headers: { noLoading: showLoading } });
+};
+export const configWeekVideoListApi = (params: {}, showLoading: boolean) => {
+ return http.get(BASEURL + `/xmgl/educationConfigWeekVideo/list`, params, { headers: { noLoading: showLoading } });
+};
diff --git a/src/components/setVideoDialog.vue b/src/components/setVideoDialog.vue
index f00f0a1..b900e40 100644
--- a/src/components/setVideoDialog.vue
+++ b/src/components/setVideoDialog.vue
@@ -14,15 +14,16 @@
-
+
{{ item.title }}:
@@ -43,9 +44,16 @@
diff --git a/src/views/agjtProjectKanban/indexL.vue b/src/views/agjtProjectKanban/indexL.vue
index 9da99eb..5edda61 100644
--- a/src/views/agjtProjectKanban/indexL.vue
+++ b/src/views/agjtProjectKanban/indexL.vue
@@ -56,6 +56,9 @@ import { useRouter } from "vue-router";
import { GlobalStore } from "@/stores";
import { jumpLargeUserInfoApi } from "@/api/modules/login";
import { COMPANY } from "@/config/config";
+import {
+ getCountTaskProgressApi
+} from "@/api/modules/agjtCommandApi";
const BASEURL = import.meta.env.VITE_API_URL;
const store = GlobalStore();
const projectData = ref({
@@ -83,17 +86,18 @@ const itemList = ref([]);
const activeTab = ref(0);
const activeTab2 = ref(0);
const router = useRouter();
-
-//获取动态tab
-const getAllModelMenu = () => {
- let half = store.projectDateAuth.moduleList;
- half.forEach((item: any) => {
- if (item.moduleType == 4) {
- menuList.value.push(item);
- return;
- }
- });
- console.log("筛选出的数据看板路由", menuList.value);
+// 项目剩余天数
+const getCountTaskProgress = async (showLoading: boolean) => {
+ const res: any = await getCountTaskProgressApi(
+ {
+ projectSn: store.sn
+ },
+ showLoading
+ );
+ if (res.result) {
+ console.log(res.result,'项目剩余天数')
+ projectData.value.totalProjectDay = res.result.projectSurplusDayNum + "";
+ }
};
onMounted(async () => {
if (COMPANY === "agjtCommand") {
@@ -124,7 +128,6 @@ onMounted(async () => {
// });
// console.log("当前项目的看板数据::", moduleListData.value);
}
- // await getAllModelMenu();
activeTab.value = menuList.value[0].modulePath;
itemList.value = menuList.value[0].menuList;
@@ -134,13 +137,7 @@ onMounted(async () => {
// menuClick(menuList.value[0], activeIndex.value);
getNowTime();
document.addEventListener("click", bodyCloseMenus);
- const subMenus = document.querySelectorAll(".menStyle");
- if (subMenus.length >= 5 && COMPANY !== "hfqc") {
- subMenus[4].style.marginLeft = "30%";
- }
- if (COMPANY === "hfqc") {
- subMenus[3].style.marginLeft = "44%";
- }
+ getCountTaskProgress(true);
});
let timer = ref(null as any);
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index d02a841..fba1391 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -112,7 +112,6 @@ const login = (formEl: FormInstance | undefined) => {
// }
router.push("/commandScreen");
} else if (COMPANY === "agjtProjectKanban") {
- router.push("/agjtProjectKanban");
if (![5, 10].includes(result.accountType)) {
ElMessage({
message: "账号类型不匹配",