diff --git a/src/components/secondaryScreen/commonApi.ts b/src/components/secondaryScreen/commonApi.ts index 87818c9..293512a 100644 --- a/src/components/secondaryScreen/commonApi.ts +++ b/src/components/secondaryScreen/commonApi.ts @@ -6,6 +6,7 @@ export enum Api { getMonitorList = '/health-watch/watch/watchMonitorData/getMonitorList', sleepApi = '/health-watch/watch/watchData/getSleep', stepApi = '/health-watch/watch/watchData/getSdc', + listCustom = 'health-watch/watch/watchMonitorData/listCustom', } // 单位- @@ -20,3 +21,6 @@ export const getMonitorList = (params: any) => get(Api.getMonitorList, params); export const getSleep = (params: any) => post(Api.sleepApi, params); // 右-步数 export const getStep = (params: any) => post(Api.stepApi, params); + +//副屏-预警 +export const getCustom = (params: any) => get(Api.listCustom, params); diff --git a/src/components/secondaryScreen/screen-right/screenRightHooks.ts b/src/components/secondaryScreen/screen-right/screenRightHooks.ts index 529436f..7cb8303 100644 --- a/src/components/secondaryScreen/screen-right/screenRightHooks.ts +++ b/src/components/secondaryScreen/screen-right/screenRightHooks.ts @@ -190,8 +190,8 @@ export function useStep() { export const monitorColumns = [ { title: '姓名', - dataIndex: 'realName', - key: 'realName', + dataIndex: 'userName', + key: 'userName', align: 'center', }, { @@ -214,4 +214,4 @@ export const monitorColumns = [ slots: { customRender: 'address' }, width: 40, }, -]; \ No newline at end of file +]; diff --git a/src/components/secondaryScreen/screen-right/threeR.vue b/src/components/secondaryScreen/screen-right/threeR.vue index 0e442e6..61cf0da 100644 --- a/src/components/secondaryScreen/screen-right/threeR.vue +++ b/src/components/secondaryScreen/screen-right/threeR.vue @@ -1,7 +1,7 @@