Compare commits
5
Commits
xc
...
0fa2e605a5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fa2e605a5 | ||
|
|
a47c2c7400 | ||
|
|
8e7b857dbd | ||
|
|
8044ce0461 | ||
|
|
592ffe1f50 |
@@ -8,7 +8,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts" name="bindRecords-name">
|
||||||
import BasicTable from '/@/components/Table/src/BasicTable.vue';
|
import BasicTable from '/@/components/Table/src/BasicTable.vue';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { bindRecordColumns, bindRecordSchema } from '/@/views/healthMonitor/healMonitorManage/monitorToll/bindRecords/bindRecords.data';
|
import { bindRecordColumns, bindRecordSchema } from '/@/views/healthMonitor/healMonitorManage/monitorToll/bindRecords/bindRecords.data';
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@
|
|||||||
<notification-news-modal @register="registerModal" @success="handleSuccess" />
|
<notification-news-modal @register="registerModal" @success="handleSuccess" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts" name="healthMonitor-notificationNews">
|
||||||
import { BasicTable, TableAction } from '/@/components/Table';
|
import { BasicTable, TableAction } from '/@/components/Table';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { list, deleteOne, batchDelete, queryByID, reSend } from './notificationNews.api';
|
import { list, deleteOne, batchDelete, queryByID, reSend } from './notificationNews.api';
|
||||||
|
|||||||
+15
-8
@@ -10,7 +10,8 @@
|
|||||||
<!-- <div>数据日期:{{ userInfo.dataDate }}</div>-->
|
<!-- <div>数据日期:{{ userInfo.dataDate }}</div>-->
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 75%">
|
<div style="width: 75%">
|
||||||
<div style="display: flex; justify-content: flex-end; padding-right: 30px">
|
<div style="display: flex; justify-content: space-between; align-items: center; padding-right: 30px">
|
||||||
|
<div style="color: #faad14; font-size: 13px; padding-left: 4px">{{ noDataTip }}</div>
|
||||||
<div style="display: flex; font-size: 20px; align-items: center">
|
<div style="display: flex; font-size: 20px; align-items: center">
|
||||||
<a-button size="small" @click="changeDate('0')">
|
<a-button size="small" @click="changeDate('0')">
|
||||||
<LeftOutlined />
|
<LeftOutlined />
|
||||||
@@ -53,13 +54,14 @@
|
|||||||
import AllLook from '/@/views/healthMonitor/healMonitorManage/monitorToll/userInfo/componets/allLook.vue';
|
import AllLook from '/@/views/healthMonitor/healMonitorManage/monitorToll/userInfo/componets/allLook.vue';
|
||||||
import { getDetail, userDataDayByMonth } from '/@/views/healthMonitor/healMonitorManage/monitorToll/personalData/personalData.api';
|
import { getDetail, userDataDayByMonth } from '/@/views/healthMonitor/healMonitorManage/monitorToll/personalData/personalData.api';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { Menu, message } from 'ant-design-vue';
|
import { Menu } from 'ant-design-vue';
|
||||||
import { LeftOutlined, RightOutlined } from '@ant-design/icons-vue';
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons-vue';
|
||||||
const userInfo = ref({});
|
const userInfo = ref({});
|
||||||
const infoData = ref({});
|
const infoData = ref({});
|
||||||
const userId = ref('');
|
const userId = ref('');
|
||||||
const haveInfo = ref('');
|
const haveInfo = ref('');
|
||||||
const nowDate = ref(dayjs());
|
const nowDate = ref(dayjs());
|
||||||
|
const noDataTip = ref('');
|
||||||
const loadedYear = ref(dayjs().format('YYYY'));
|
const loadedYear = ref(dayjs().format('YYYY'));
|
||||||
const isRight = computed(() => dayjs(nowDate.value).format('YYYY-MM-DD') != dayjs().format('YYYY-MM-DD'));
|
const isRight = computed(() => dayjs(nowDate.value).format('YYYY-MM-DD') != dayjs().format('YYYY-MM-DD'));
|
||||||
//表单赋值
|
//表单赋值
|
||||||
@@ -115,15 +117,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getInfo() {
|
async function getInfo() {
|
||||||
|
const dateStr = dayjs(nowDate.value).format('YYYY-MM-DD');
|
||||||
await getDetail({
|
await getDetail({
|
||||||
userId: userId.value,
|
userId: userId.value,
|
||||||
dataDate: dayjs(nowDate.value).format('YYYY-MM-DD'),
|
dataDate: dateStr,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
// openModal(true, {
|
|
||||||
// record,
|
|
||||||
// dataInfo: res,
|
|
||||||
// });
|
|
||||||
infoData.value = res;
|
infoData.value = res;
|
||||||
|
// API 返回空数据时行内提示,否则清空提示
|
||||||
|
if (!res || Object.keys(res).length === 0) {
|
||||||
|
noDataTip.value = `【${dateStr}】暂无监测数据`;
|
||||||
|
} else {
|
||||||
|
noDataTip.value = '';
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,7 +143,9 @@
|
|||||||
if (getDisabled(nowDate.value)) {
|
if (getDisabled(nowDate.value)) {
|
||||||
getInfo();
|
getInfo();
|
||||||
} else {
|
} else {
|
||||||
message.info('当日暂无监测数据');
|
// 本地记录无数据:清空展示数据并行内提示具体日期
|
||||||
|
infoData.value = {};
|
||||||
|
noDataTip.value = `【${dayjs(nowDate.value).format('YYYY-MM-DD')}】暂无监测数据`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+88
-1
@@ -151,13 +151,39 @@ export const columnsNew: BasicColumn[] = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '分配设备数',
|
title: '已分配设备数',
|
||||||
dataIndex: ['assignedDeviceNums'],
|
dataIndex: ['assignedDeviceNums'],
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
if (!text) return 0;
|
if (!text) return 0;
|
||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '未分配设备数',
|
||||||
|
dataIndex: 'undistributedDeviceNums',
|
||||||
|
customRender: ({ record }) => {
|
||||||
|
const total = record.totalAssignedDeviceNums ?? 0;
|
||||||
|
const assigned = record.assignedDeviceNums ?? 0;
|
||||||
|
return Math.max(0, total - assigned);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '已绑定设备数',
|
||||||
|
dataIndex: ['assignedDeviceNums'],
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '未绑定设备数',
|
||||||
|
dataIndex: 'undistributedDeviceNums',
|
||||||
|
customRender: ({ record }) => {
|
||||||
|
const total = record.totalAssignedDeviceNums ?? 0;
|
||||||
|
const assigned = record.assignedDeviceNums ?? 0;
|
||||||
|
return Math.max(0, total - assigned);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '佩戴人员数',
|
title: '佩戴人员数',
|
||||||
dataIndex: ['assignedUserNums'],
|
dataIndex: ['assignedUserNums'],
|
||||||
@@ -166,6 +192,15 @@ export const columnsNew: BasicColumn[] = [
|
|||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '关爱人员佩戴人数',
|
||||||
|
dataIndex: ['careWearNums'],
|
||||||
|
width: 150,
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '未佩戴人员数',
|
title: '未佩戴人员数',
|
||||||
dataIndex: ['undistributedUserNums'],
|
dataIndex: ['undistributedUserNums'],
|
||||||
@@ -174,6 +209,47 @@ export const columnsNew: BasicColumn[] = [
|
|||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '关爱人员未佩戴人数',
|
||||||
|
dataIndex: ['careUnwearNums'],
|
||||||
|
width: 160,
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '关爱人员未佩戴人数\n(仅计入统计日期起期已绑定的人数)',
|
||||||
|
dataIndex: ['careUnwearAtStartNums'],
|
||||||
|
width: 180,
|
||||||
|
customHeaderCell: () => {
|
||||||
|
return {
|
||||||
|
style: {
|
||||||
|
whiteSpace: 'pre-wrap',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '非关爱人员数量',
|
||||||
|
dataIndex: ['nonCareNums'],
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '关爱人员数量',
|
||||||
|
dataIndex: ['careNums'],
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (!text) return 0;
|
||||||
|
return text;
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '心率异常人数',
|
title: '心率异常人数',
|
||||||
dataIndex: ['heartRateNums'],
|
dataIndex: ['heartRateNums'],
|
||||||
@@ -206,6 +282,7 @@ export const columnsNew: BasicColumn[] = [
|
|||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const startTime = dayjs().subtract(6, 'day').format('YYYY-MM-DD');
|
const startTime = dayjs().subtract(6, 'day').format('YYYY-MM-DD');
|
||||||
@@ -350,6 +427,16 @@ export const detailColumns = (arr: BasicColumn[] = []) => {
|
|||||||
title: '手表所属单位',
|
title: '手表所属单位',
|
||||||
dataIndex: 'watchOrgName',
|
dataIndex: 'watchOrgName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '非关爱人员',
|
||||||
|
dataIndex: 'nonCareFlag',
|
||||||
|
width: 100,
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (text === 1) return '是';
|
||||||
|
if (text === 0) return '否';
|
||||||
|
return '';
|
||||||
|
},
|
||||||
|
},
|
||||||
...arr,
|
...arr,
|
||||||
{
|
{
|
||||||
title: '应佩戴天数',
|
title: '应佩戴天数',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<user-info-modal @register="registerModal" />
|
<user-info-modal @register="registerModal" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts" name="userInfoList-name">
|
||||||
import BasicTable from '/@/components/Table/src/BasicTable.vue';
|
import BasicTable from '/@/components/Table/src/BasicTable.vue';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { columns, searchSchema } from '/@/views/healthMonitor/healMonitorManage/monitorToll/userInfo/userInfo.data';
|
import { columns, searchSchema } from '/@/views/healthMonitor/healMonitorManage/monitorToll/userInfo/userInfo.data';
|
||||||
|
|||||||
@@ -85,6 +85,13 @@ export const columns: BasicColumn[] = [
|
|||||||
dataIndex: ['departTree', '3'],
|
dataIndex: ['departTree', '3'],
|
||||||
width: 180,
|
width: 180,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '非关爱人员',
|
||||||
|
align: 'center',
|
||||||
|
dataIndex: ['extension', 'nonCareFlag'],
|
||||||
|
width: 100,
|
||||||
|
slots: { customRender: 'nonCareTag' },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '出生日期',
|
title: '出生日期',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -160,6 +167,17 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
field: 'phone',
|
field: 'phone',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '非关爱人员',
|
||||||
|
field: 'nonCareFlag',
|
||||||
|
component: 'Select',
|
||||||
|
componentProps: {
|
||||||
|
options: [
|
||||||
|
{ label: '否', value: 0 },
|
||||||
|
{ label: '是', value: 1 },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '单位名称',
|
label: '单位名称',
|
||||||
field: 'orgCode',
|
field: 'orgCode',
|
||||||
@@ -676,28 +694,44 @@ export const formSchema: (isUpdate: boolean) => FormSchema[] = (isUpdate) => {
|
|||||||
label: '关爱联络员姓名',
|
label: '关爱联络员姓名',
|
||||||
field: 'careLiaisonName',
|
field: 'careLiaisonName',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
show: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '关爱联络员职务',
|
label: '关爱联络员职务',
|
||||||
field: 'careLiaisonJob',
|
field: 'careLiaisonJob',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
show: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '关爱联络员电话',
|
label: '关爱联络员电话',
|
||||||
field: 'careLiaisonPhone',
|
field: 'careLiaisonPhone',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
rules: [{ required: false, pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误', trigger: 'blur' }],
|
// rules: [{ required: false, pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误', trigger: 'blur' }],
|
||||||
|
show: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '急救人员姓名',
|
label: '急救人员姓名',
|
||||||
field: 'lifeguardName',
|
field: 'lifeguardName',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
show: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '急救人员电话',
|
label: '急救人员电话',
|
||||||
field: 'lifeguardPhone',
|
field: 'lifeguardPhone',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
rules: [{ required: false, pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误', trigger: 'blur' }],
|
// rules: [{ required: false, pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误', trigger: 'blur' }],
|
||||||
|
show: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '非关爱人员',
|
||||||
|
field: 'nonCareFlag',
|
||||||
|
component: 'RadioButtonGroup',
|
||||||
|
componentProps: {
|
||||||
|
options: [
|
||||||
|
{ label: '否', value: 0 },
|
||||||
|
{ label: '是', value: 1 },
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '',
|
label: '',
|
||||||
|
|||||||
@@ -109,6 +109,10 @@
|
|||||||
{{ record.status_dictText }}
|
{{ record.status_dictText }}
|
||||||
</Tag>
|
</Tag>
|
||||||
</template>
|
</template>
|
||||||
|
<template #nonCareTag="{ record }">
|
||||||
|
<Tag v-if="record.extension?.nonCareFlag === 1" color="orange">是</Tag>
|
||||||
|
<Tag v-else-if="record.extension?.nonCareFlag === 0" color="blue">否</Tag>
|
||||||
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<HealthUserEmployeeExDrawer :showFooter="showFooter" @register="registerDrawer" @success="handleSuccess" />
|
<HealthUserEmployeeExDrawer :showFooter="showFooter" @register="registerDrawer" @success="handleSuccess" />
|
||||||
|
|||||||
Reference in New Issue
Block a user