update
1.手表监测添加参数,查询当天信息
This commit is contained in:
@@ -91,6 +91,7 @@
|
||||
import { useTheme } from '/@/hooks/theme/useTheme.ts';
|
||||
import { message } from 'ant-design-vue';
|
||||
import { Row, Col } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
const props = defineProps({
|
||||
setting: Object,
|
||||
@@ -140,9 +141,27 @@
|
||||
* */
|
||||
const scrollList = ref([]);
|
||||
|
||||
const interval = ref<any>(null);
|
||||
const nowDate = ref(dayjs());
|
||||
onMounted(() => {
|
||||
interval.value = setInterval(() => {
|
||||
if (dayjs(nowDate.value).diff(dayjs(), 'date') < 0) {
|
||||
nowDate.value = dayjs();
|
||||
getScrollList();
|
||||
}
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
async function getScrollList() {
|
||||
console.log(dayjs());
|
||||
try {
|
||||
const { code, result } = await getMonitorList({ pageSize: 10, pageNo: 1, orgCode: props.setting?.orgCode });
|
||||
const { code, result } = await getMonitorList({
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
orgCode: props.setting?.orgCode,
|
||||
startDate: dayjs().format('YYYY-MM-DD'),
|
||||
endDate: dayjs().format('YYYY-MM-DD'),
|
||||
});
|
||||
if (code == 200) {
|
||||
setSession(RIGHT_KEY1, JSON.stringify(result.records));
|
||||
scrollList.value = result.records;
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
|
||||
const dayTimeO = ref();
|
||||
const dayTimeT = ref();
|
||||
const interval = ref(1);
|
||||
const interval = ref<any>(null);
|
||||
const title = ref(screenTitle ? screenTitle : '应急就医服务中心' + (simpleName || ''));
|
||||
const phone = ref(centerTel || '0951-6805199');
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
|
||||
const dayTimeO = ref();
|
||||
const dayTimeT = ref();
|
||||
const interval = ref(1);
|
||||
const interval = ref<any>(null);
|
||||
const title = ref(screenTitle ? screenTitle : '应急就医服务中心' + (simpleName || ''));
|
||||
const phone = ref(centerTel || '0951-6805199');
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
/>
|
||||
<!--一线医疗点每日工作动态-->
|
||||
<DailyWorkTrends theme="dark" :refreshState="refreshState" class="daily-work-trends" />
|
||||
<EmergencyData @emergencyDataList="emergencyDataList" class="emergency-data" />
|
||||
</div>
|
||||
<div class="body-d-middle">
|
||||
<CenterMap
|
||||
@@ -40,9 +39,10 @@
|
||||
<!--健康终端报警-->
|
||||
<TerminalAlarm :refreshState="refreshState" :setting="setting" @emit-view-detail="handleEmployeeDialog" />
|
||||
<!--员工队伍健康状况-->
|
||||
<EmployeeHealth theme="dark" :refreshState="refreshState" :setting="setting" />
|
||||
<!--体检数据-->
|
||||
<PhysicalExaminationData :key="tabState" :refreshState="refreshState" :setting="setting" />
|
||||
<!-- <EmployeeHealth theme="dark" :refreshState="refreshState" :setting="setting" />-->
|
||||
<!-- <!–体检数据–>-->
|
||||
<!-- <PhysicalExaminationData :key="tabState" :refreshState="refreshState" :setting="setting" />-->
|
||||
<EmergencyData @emergencyDataList="emergencyDataList" class="emergency-data" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-d"></div>
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
const dayTimeO = ref();
|
||||
const dayTimeT = ref();
|
||||
const interval = ref(1);
|
||||
const interval = ref<any>(null);
|
||||
const title = ref(screenTitle ? screenTitle : '应急就医服务中心' + (simpleName || ''));
|
||||
const phone = ref(centerTel || '0951-6805199');
|
||||
|
||||
@@ -405,23 +405,33 @@
|
||||
}
|
||||
|
||||
.central-screen-body-left {
|
||||
.service-details {
|
||||
//.service-details {
|
||||
// height: calc(100% / 3);
|
||||
//}
|
||||
//
|
||||
//.daily-work-trends {
|
||||
// height: calc(100% / 3);
|
||||
//}
|
||||
//
|
||||
//.emergency-data {
|
||||
// height: calc(100% / 3);
|
||||
//}
|
||||
> :nth-child(1) {
|
||||
width: 100%;
|
||||
height: calc(100% / 3);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.daily-work-trends {
|
||||
height: calc(100% / 3);
|
||||
}
|
||||
|
||||
.emergency-data {
|
||||
height: calc(100% / 3);
|
||||
> :nth-child(2) {
|
||||
width: 100%;
|
||||
height: calc(100% / 3 * 2);
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.body-d-right {
|
||||
> :nth-child(n) {
|
||||
width: 100%;
|
||||
height: calc(100% / 3);
|
||||
height: calc(100% / 2);
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
@@ -437,4 +447,8 @@
|
||||
background: url('/@/assets/images/bottom-b.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
:deep(.inner .scroll) {
|
||||
height: 100% !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { onMounted, onUnmounted, ref, watch } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import PublicTitle from '/@/components/publicTitle.vue';
|
||||
import Dialog from '/@/components/dialog/Dialog.vue';
|
||||
@@ -91,6 +91,7 @@
|
||||
import { useTheme } from '/@/hooks/theme/useTheme.ts';
|
||||
import { Col, message, Row } from 'ant-design-vue';
|
||||
import { useUserStore } from '/@/store/modules/user.ts';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
const props = defineProps({
|
||||
setting: Object,
|
||||
@@ -134,13 +135,27 @@
|
||||
openInfor.value = false;
|
||||
classOption.value.step = 0.3;
|
||||
}
|
||||
|
||||
/**
|
||||
* @desc 终端报警
|
||||
* */
|
||||
const scrollList = ref([]);
|
||||
const userStore = useUserStore();
|
||||
|
||||
const interval = ref<any>(null);
|
||||
const nowDate = ref(dayjs());
|
||||
onMounted(() => {
|
||||
interval.value = setInterval(() => {
|
||||
if (dayjs(nowDate.value).diff(dayjs(), 'date') < 0) {
|
||||
nowDate.value = dayjs();
|
||||
getScrollList();
|
||||
}
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
clearInterval(interval.value);
|
||||
});
|
||||
|
||||
async function getScrollList() {
|
||||
try {
|
||||
let orgCodeList = userStore.getCenterInfo?.serviceScope;
|
||||
@@ -150,7 +165,13 @@
|
||||
} else {
|
||||
codeList = props.setting?.orgCode;
|
||||
}
|
||||
const { code, result } = await getMonitorList({ pageSize: 10, pageNo: 1, orgCodeList: codeList });
|
||||
const { code, result } = await getMonitorList({
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
orgCodeList: codeList,
|
||||
startDate: dayjs().format('YYYY-MM-DD'),
|
||||
endDate: dayjs().format('YYYY-MM-DD'),
|
||||
});
|
||||
if (code == 200) {
|
||||
setSession(RIGHT_KEY1_NEW, JSON.stringify(result.records));
|
||||
scrollList.value = result.records;
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
const { refreshState } = useRefresh(DEFAULT_TIME);
|
||||
const dayTimeO = ref();
|
||||
const dayTimeT = ref();
|
||||
const interval = ref(1);
|
||||
const interval = ref<any>(null);
|
||||
|
||||
function init() {
|
||||
getTime();
|
||||
|
||||
Reference in New Issue
Block a user