diff --git a/package.json b/package.json index 98e623811..d114b61c2 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "@wecom/jssdk": "^1.3.2", "axios": "^1.4.0", "clipboard": "^2.0.11", - "echarts": "^5.2.2", + "echarts": "^5.4.3", "element-plus": "^2.3.4", "font-awesome": "^4.7.0", "js-beautify": "^1.14.8", diff --git a/src/api/auth/types.ts b/src/api/auth/types.ts index ddcf56a25..25ccd7912 100644 --- a/src/api/auth/types.ts +++ b/src/api/auth/types.ts @@ -46,6 +46,7 @@ export interface LoginResult { tokenType?: string; key?: string; token?: string; + userinfo?:any; } /** diff --git a/src/api/displayboardapi/indexapi.ts b/src/api/displayboardapi/indexapi.ts index 03e567a33..523c5cec8 100644 --- a/src/api/displayboardapi/indexapi.ts +++ b/src/api/displayboardapi/indexapi.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { dimissionRateQuery,publicId,eduStruCont,sendOrgCont,outputOrgAndUser,orgAndPeople } from './types'; +import { dimissionRateQuery,publicId,eduStruCont,sendOrgCont,outputOrgAndUser,orgAndPeople,orgId,targetCanShu,dlTargetTbHbfenxi,dlTargetTbHbfenxis,orgGardes,attributePage } from './types'; /** * 获取离职率 */ @@ -65,11 +65,23 @@ import { dimissionRateQuery,publicId,eduStruCont,sendOrgCont,outputOrgAndUser,or //获取组织及成员(新版) export const getOrgEveryonePeople = (data?: publicId): AxiosPromise => { return request({ - url: '/org/get_org_everyone_people', + url: '/hrapi/org/get_org_everyone_people', method: 'post', data: data }) } +/** + * 获取当前行政组织的所有主行政部门 + */ + export const getCompanyDeparment = (data?: orgId):any => { + return request({ + url: '/hrapi/org/getcompanydeparment', + method: 'post', + data: data + }); +} + + //搜索成员(新版) export const getEmployees = (data?: any) => { return request({ @@ -103,6 +115,16 @@ export const GetPositionUnify = (data?: any) => { data: data }) } + +//根据部门获取指标列表 +export const targetListForDepartment = (data?: targetCanShu):any => { + return request({ + url: '/kpiapi/department_web/target_list_for_department', + method: 'post', + data: data + }) +} + //获取审批节点或条件节点 export const gainNodeFactor = (data?: any) => { return request({ @@ -111,3 +133,52 @@ export const gainNodeFactor = (data?: any) => { data: data }) } +//定量指标同比环比分析 +export const bdTtsyoy = (data: dlTargetTbHbfenxi):any => { + return request({ + url: '/kpiapi/department_web/bdttsyoy', + method: 'post', + data: data + }) +} +//定量指标同比环比分析 +export const bdBdtTs = (data: dlTargetTbHbfenxis):any => { + return request({ + url: '/kpiapi/department_web/bdtts', + method: 'post', + data: data + }) +} +//定性指标同比环比分析 +export const bDtTsatTryoy = (data: dlTargetTbHbfenxi):any => { + return request({ + url: '/kpiapi/department_web/bdttsattryoy', + method: 'post', + data: data + }) +} +//行政组织年度成绩单 +export const orgTargetAnnualStatistics = (data: orgGardes):any => { + return request({ + url: '/kpiapi/strtistics/org_target_annual_statistics', + method: 'post', + data: data + }) +} +//统计行政组织下人员年龄比例 +export const statisticalAgeRatio = (data: publicId):any => { + return request({ + url: '/systemapi/user/statisticalAgeRatio', + method: 'post', + data: data + }) +} + +//统计行政组织下人员年龄比例 +export const hotNews = (data: attributePage):any => { + return request({ + url: '/systemapi/news/hot_news', + method: 'post', + data: data + }) +} diff --git a/src/api/displayboardapi/types.ts b/src/api/displayboardapi/types.ts index 17ba88385..90d6d2ad2 100644 --- a/src/api/displayboardapi/types.ts +++ b/src/api/displayboardapi/types.ts @@ -1,6 +1,14 @@ export interface publicId{ id?:number|string; } +//根据部门获取指标列表 +export interface targetCanShu extends publicId{ + attribute?:number; +} +export interface orgId{ + id?:number; + idstr?:string; +} /** * 获取离职率参数 */ @@ -118,3 +126,27 @@ export interface orgAndPeople{ temaname: string; child:orgAndPeople[]; } +//定量指标同比环比分析 +export interface dlTargetTbHbfenxi{ + orgid:string; + targetid:string; + datetime:number[]; +} +export interface dlTargetTbHbfenxis{ + orgid:string; + targetid:string; + datetime:string; +} +export interface orgGardes{ + orgid:string; + years:string; +} +//翻页数据 +export interface setupPage { + page?:number; //页码 + pagesize?:number; //每页获取数量 +} +//属性文章 +export interface attributePage extends setupPage{ + type?:number +} diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index cc1f938af..bb483e86a 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -18,6 +18,29 @@ const { device } = storeToRefs(appStore); // 设备类型:desktop-宽屏设备 const myPasswordBoxIsShow = ref(false); +const date: Date = new Date(); + +const tipsType = ref(1) + +const greetings = computed(() => { + if (date.getHours() >= 6 && date.getHours() < 8) { + tipsType.value = 1 + return "晨起披衣出草堂,轩窗已自喜微凉🌅!"; + } else if (date.getHours() >= 8 && date.getHours() < 12) { + tipsType.value = 2 + return "上午好🌞!"; + } else if (date.getHours() >= 12 && date.getHours() < 18) { + tipsType.value = 3 + return "下午好☕!"; + } else if (date.getHours() >= 18 && date.getHours() < 24) { + tipsType.value = 4 + return "晚上好🌃!"; + } else if (date.getHours() >= 0 && date.getHours() < 6) { + tipsType.value = 5 + return "偷偷向银河要了一把碎星,只等你闭上眼睛撒入你的梦中,晚安🌛!"; + } +}); + /** * 左侧菜单栏显示/隐藏 */ @@ -63,6 +86,7 @@ const editMyPasswordForm = () =>{ myPasswordBoxIsShow.value = true; // console.log("修改个人密码",myPasswordBoxIsShow.value ); } +