chenyc
2025-09-25 437c097a0699dba0a23689e741e941b987d56eb1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
    <ControlRate ref="controlRateRef" />
</template>
 
<script lang="ts" setup>
import { ref, onMounted } from 'vue';
import ControlRate from './components/components.vue';
 
const controlRateRef = ref();
 
onMounted(() => {
    const end = new Date();
    const start = new Date();
    start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
    controlRateRef.value &&
        controlRateRef.value.initCompData({
            title: '钠控制率',
            itemName: '钠',
            defaultNameAndUnit: '钠(mmol/L)',
            subTit: '钠',
            whereFrom: {
                itemName: '',
                medMonth: 0,
                isInState: 1,
                statType: 0,
                limitBottom: 135,
                // filterStyle: 0,
                limitTop: 145,
                dates: [start, end],
            },
        });
});
</script>
 
<style>
</style>