diff --git a/src/hooks/autoRefresh/caching.ts b/src/hooks/autoRefresh/caching.ts index 464667d..dbaff98 100644 --- a/src/hooks/autoRefresh/caching.ts +++ b/src/hooks/autoRefresh/caching.ts @@ -19,21 +19,23 @@ export const caching = { PAGE2_RIGHT2: 'PAGE2_RIGHT2', //心血管监测-预警 PAGE2_RIGHT3: 'PAGE2_RIGHT3', - + // 一线医疗点每日工作动态 + WORK_DAILY: 'WORK_DAILY', + //员工队伍健康状况 + TEAM_HEALTH: 'TEAM_HEALTH', }; export function useSession() { function getSession(key: string) { - return localStorage.getItem(key) + return localStorage.getItem(key); } function setSession(key: string, value: any) { - localStorage.setItem(key, value) + localStorage.setItem(key, value); } - return { getSession, - setSession - } -} \ No newline at end of file + setSession, + }; +} diff --git a/src/router/index.ts b/src/router/index.ts index 1f86ce9..7ee967c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -22,6 +22,14 @@ const routes: Array = [ }, component: () => import('/@/views/index.vue'), }, + { + path: '/yinChuanHome', + name: 'yinChuanHome', + meta: { + title: '副屏', + }, + component: () => import('/@/views/yinChuan/yinChuan.vue'), + }, { path: '/secondScreen', name: 'secondScreen', @@ -37,5 +45,4 @@ const router: Router = createRouter({ routes: [...routes], }); - export default router; diff --git a/src/utils/settings.ts b/src/utils/settings.ts new file mode 100644 index 0000000..df30a7d --- /dev/null +++ b/src/utils/settings.ts @@ -0,0 +1,43 @@ +const xian = { + dataType: '', +}; + +export enum DataType { + xian = '1', + yinChuan = '2', +} + +export enum SexType { + male = '2', //男 + female = '1', //女 + all = '0', //全部 +} + +export const sexTypeList = [ + { + label: '男', + value: SexType.male, + }, + { + label: '女', + value: SexType.female, + }, + { + label: '全部', + value: SexType.all, + }, +]; + +interface Settings { + dataType: string; + orgCode?: string; +} + +export function getSettings(type: string) { + if (type == DataType.xian) { + return { dataType: '1', orgCode: '' } as Settings; + } + if (type == DataType.yinChuan) { + return { dataType: '2', orgCode: 'A01A59' } as Settings; + } +} diff --git a/src/views/yinChuan/componetns/TerminalAlarmDialog/TerminalAlarmDialog.vue b/src/views/yinChuan/componetns/TerminalAlarmDialog/TerminalAlarmDialog.vue new file mode 100644 index 0000000..a1140e7 --- /dev/null +++ b/src/views/yinChuan/componetns/TerminalAlarmDialog/TerminalAlarmDialog.vue @@ -0,0 +1,78 @@ + + + diff --git a/src/views/yinChuan/componetns/dailyWorkTrends/dailyWorkTrends.vue b/src/views/yinChuan/componetns/dailyWorkTrends/dailyWorkTrends.vue new file mode 100644 index 0000000..8c16201 --- /dev/null +++ b/src/views/yinChuan/componetns/dailyWorkTrends/dailyWorkTrends.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/views/yinChuan/componetns/employeeHealth/employeeHealth.vue b/src/views/yinChuan/componetns/employeeHealth/employeeHealth.vue new file mode 100644 index 0000000..0e3dc82 --- /dev/null +++ b/src/views/yinChuan/componetns/employeeHealth/employeeHealth.vue @@ -0,0 +1,104 @@ + + + diff --git a/src/views/yinChuan/yinChuan.api.ts b/src/views/yinChuan/yinChuan.api.ts new file mode 100644 index 0000000..c1d9abc --- /dev/null +++ b/src/views/yinChuan/yinChuan.api.ts @@ -0,0 +1,14 @@ +import { get } from '/@/api/request'; + +export enum Api { + phoneList = '/health-emergency/emergency/tblUserHelp/phoneList', + getWorkDaily = '/health-emergency/emergency/ycLargeScreen/medicalCenter', + getTeamHealth = '/health-emergency/emergency/ycLargeScreen/userHealthCenter', +} + +// 呼入电话、受理电话 +export const getPhoneList = (params: any) => get(Api.phoneList, params); +//一线医疗点每日工作动态 +export const getWorkDaily = (params: any) => get(Api.getWorkDaily, params); +//员工队伍健康状况 +export const getTeamHealth = (params: any) => get(Api.getTeamHealth, params); diff --git a/src/views/yinChuan/yinChuan.vue b/src/views/yinChuan/yinChuan.vue new file mode 100644 index 0000000..8a2da38 --- /dev/null +++ b/src/views/yinChuan/yinChuan.vue @@ -0,0 +1,274 @@ + + +