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