update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="modal-content">
|
||||
<div class="empty-png"></div>
|
||||
<!-- <div class="empty-png"></div>-->
|
||||
<div class="modal-header">
|
||||
<button type="button" aria-label="Close" class="modal-close" @click="closeDialog">X</button>
|
||||
<div class="modal-title" id="vcDialogTitle0">健康报警员工信息</div>
|
||||
@@ -38,13 +38,6 @@
|
||||
border: 0;
|
||||
border-radius: 2px;
|
||||
|
||||
.empty-png {
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
background: url('../../../../assets/images/bg.png') no-repeat;
|
||||
background-position-y: -500px;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<div style="display: flex; align-items: center; justify-content: center; position: relative" :style="{ minHeight: props.showList ? '30px' : '' }">
|
||||
<div
|
||||
class="public-title"
|
||||
style="display: flex; align-items: center; justify-content: center; position: relative"
|
||||
:style="{ minHeight: props.showList ? '30px' : '' }"
|
||||
>
|
||||
<a-radio-group v-model:value="active" button-style="solid" @change="changeType" v-if="showStatus && props.showList">
|
||||
<a-radio-button v-if="props.showOne" :value="1">日</a-radio-button>
|
||||
<a-radio-button :value="2">周</a-radio-button>
|
||||
@@ -12,18 +16,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="public-title"
|
||||
style="display: flex; justify-content: center; margin-top: 20px; align-items: center; position: relative"
|
||||
:style="{ minHeight: props.showList ? '' : '30px' }"
|
||||
>
|
||||
<div class="fff" style="position: absolute; left: 10px; display: flex; align-items: center; color: #fff" v-if="!props.showList">
|
||||
锻炼类型:
|
||||
<!-- <JDictSelectTag-->
|
||||
<!-- v-model:value="motionType"-->
|
||||
<!-- style="min-width: 140px"-->
|
||||
<!-- placeholder="请选择锻炼类型"-->
|
||||
<!-- dictCode="watch_exercise_type"-->
|
||||
<!-- @change="changeSelect"-->
|
||||
<!-- />-->
|
||||
<a-select
|
||||
v-model:value="motionType"
|
||||
class="type-select"
|
||||
@@ -32,8 +30,10 @@
|
||||
@change="changeSelect"
|
||||
></a-select>
|
||||
</div>
|
||||
<div class="item-picker" style="display: flex; font-size: 20px" v-if="showStatus && props.showList">
|
||||
<span style="margin: 0 0 0 5px; cursor: pointer" @click="changeDate('0')"><</span>
|
||||
<div style="display: flex; font-size: 20px; align-items: center" v-if="showStatus && props.showList">
|
||||
<a-button class="btn" type="primary" size="small" @click="changeDate('0')">
|
||||
<LeftOutlined class="icon" style="color: #fff" />
|
||||
</a-button>
|
||||
<div style="position: relative">
|
||||
<a-date-picker
|
||||
ref="datePicker"
|
||||
@@ -42,6 +42,7 @@
|
||||
:format="rType()"
|
||||
:picker="getP()"
|
||||
@change="changeValue"
|
||||
:allow-clear="false"
|
||||
style="opacity: 0; z-index: 99; position: absolute; top: 0; left: 0"
|
||||
>
|
||||
<template #dateRender="{ current }">
|
||||
@@ -50,21 +51,22 @@
|
||||
</div>
|
||||
</template>
|
||||
</a-date-picker>
|
||||
<div style="z-index: 1; min-width: 150px; text-align: center"
|
||||
><span>{{ getDateFormat(dateInfo) }}</span></div
|
||||
>
|
||||
<div style="z-index: 1; min-width: 150px; text-align: center; color: #fff">{{ getDateFormat(dateInfo) }} </div>
|
||||
</div>
|
||||
<span style="margin: 0 0 5px 5px; cursor: pointer" @click="changeDate('1')">></span>
|
||||
<a-button class="btn" type="primary" :disabled="!isRight" size="small" @click="changeDate('1')">
|
||||
<RightOutlined class="icon" style="color: #fff" />
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { nextTick, onMounted, ref } from 'vue';
|
||||
import { computed, nextTick, onMounted, ref } from 'vue';
|
||||
import { RightOutlined, LeftOutlined } from '@ant-design/icons-vue';
|
||||
|
||||
import chartImg from '/@/assets/images/chart.png';
|
||||
import listImg from '/@/assets/images/list.png';
|
||||
import dayjs from 'dayjs';
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
// import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
import { userDataDayByYearApi } from '/@/components/secondaryScreen/secondMap/secondMapApi.ts';
|
||||
import { getCodeInfo, montionFieldNames } from '/@/api/dictCode.ts';
|
||||
|
||||
@@ -95,6 +97,8 @@
|
||||
const active = ref(props.showOne ? 1 : 2);
|
||||
const showStatus = ref(true);
|
||||
const dateInfo = ref(dayjs());
|
||||
const isRight = computed(() => dayjs(dateInfo.value).format('YYYY-MM-DD') != dayjs().format('YYYY-MM-DD'));
|
||||
|
||||
const motionType = ref();
|
||||
|
||||
const dateFormat = 'YYYY-MM-DD';
|
||||
@@ -262,4 +266,22 @@
|
||||
border: 1px solid #1890ff;
|
||||
border-radius: 50px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
.icon {
|
||||
color: #fff !important;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.public-title {
|
||||
:deep(.ant-btn-primary[disabled], .ant-btn-primary[disabled]:hover, .ant-btn-primary[disabled]:focus, .ant-btn-primary[disabled]:active) {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
border-color: #92bfe9;
|
||||
background: #92bfe9;
|
||||
text-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -9,8 +9,7 @@
|
||||
</div>
|
||||
<div v-show="false" id="container"></div>
|
||||
<div v-show="false" id="panel"></div>
|
||||
<div v-show="isShow" :class="className" class="footer-data" style="--moveUp: 50px; --moveDown: -90px">
|
||||
<div class="empty-png"></div>
|
||||
<div v-show="isShow" :class="className" class="footer-data" style="--moveUp: 50px; --moveDown: -60px">
|
||||
<div
|
||||
v-for="item in footerList"
|
||||
:style="{ cursor: item.key == 'allotDeviceNum' ? 'pointer' : 'default' }"
|
||||
@@ -25,7 +24,7 @@
|
||||
v-show="isShowAlarm"
|
||||
:class="isShowAlarm ? 'slide-top' : 'slide-bottom'"
|
||||
class="footer-dialog-con"
|
||||
style="--moveUp: 120px; --moveDown: -120px"
|
||||
style="--moveUp: 110px; --moveDown: -100px"
|
||||
>
|
||||
<FooterDialog :detailLeft="detailLeft" :detailRight="detailRight" @closeDialog="closeDialog"></FooterDialog>
|
||||
</div>
|
||||
@@ -73,7 +72,7 @@
|
||||
async function getFooterTable(orgCode) {
|
||||
const params = {
|
||||
orgCode: orgCode || props.orgCode,
|
||||
dataDate: getToday(),
|
||||
// dataDate: getToday(),
|
||||
};
|
||||
const { code, result } = await footerApi(params);
|
||||
if (code == 200) {
|
||||
@@ -87,6 +86,10 @@
|
||||
if (code == 200 && result.length > 0) {
|
||||
const newArr = result.map((item) => ({ ...item, type: '6' }));
|
||||
mapList.value = newArr;
|
||||
let orgCode = newArr[0].orgCode?.substring(0, 6);
|
||||
getFooterTable(orgCode);
|
||||
setIsShow(true);
|
||||
|
||||
Map.createOverlay(
|
||||
newArr,
|
||||
{
|
||||
@@ -107,6 +110,7 @@
|
||||
);
|
||||
} else {
|
||||
Map.removeOverlayGroup();
|
||||
setIsShow(false);
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
@@ -160,6 +164,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.form-container {
|
||||
@@ -176,21 +181,12 @@
|
||||
|
||||
.footer-data {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
left: 4px;
|
||||
right: 4px;
|
||||
bottom: var(--moveDown);
|
||||
display: flex;
|
||||
z-index: 999;
|
||||
|
||||
.empty-png {
|
||||
position: absolute;
|
||||
top: -16px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
background: url('../../../assets/images/bg.png') no-repeat;
|
||||
background-position-y: -500px;
|
||||
}
|
||||
border: 1px solid rgba(35, 132, 221);
|
||||
|
||||
.col-item {
|
||||
flex: 1;
|
||||
@@ -200,7 +196,7 @@
|
||||
.col-text {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
background: rgba(35, 132, 221);
|
||||
background: rgba(35, 132, 221, 0.5);
|
||||
}
|
||||
|
||||
.col-value {
|
||||
@@ -213,8 +209,8 @@
|
||||
|
||||
.footer-dialog-con {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
left: 4px;
|
||||
right: 4px;
|
||||
bottom: var(--moveDown);
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ export function useDepart() {
|
||||
}
|
||||
|
||||
async function getOptionData() {
|
||||
const { result, code } = await allSecondaryDeparts();
|
||||
const { result = [], code } = await allSecondaryDeparts();
|
||||
if (code == 200) {
|
||||
let res = [{ departName: '长庆油田', orgCode: 'A01' }, ...result];
|
||||
setOption(res);
|
||||
@@ -80,12 +80,12 @@ export function useFooterTable() {
|
||||
key: 'userCount',
|
||||
extData: {},
|
||||
},
|
||||
{
|
||||
name: '入库设备数量',
|
||||
value: '',
|
||||
key: 'deviceNum',
|
||||
extData: {},
|
||||
},
|
||||
// {
|
||||
// name: '入库设备数量',
|
||||
// value: '',
|
||||
// key: 'deviceNum',
|
||||
// extData: {},
|
||||
// },
|
||||
{
|
||||
name: '佩戴手表人数',
|
||||
value: '',
|
||||
|
||||
Reference in New Issue
Block a user