update: 大屏接口
This commit is contained in:
+36
-13
@@ -16,22 +16,28 @@
|
||||
<div class="content-item-clock">
|
||||
<div>
|
||||
<span class="clock-text">今日打卡人数:</span>
|
||||
<span class="clock-num1">{{ twoRList?.weightLossCountDay ? twoRList?.weightLossCountDay : '--' }}人</span>
|
||||
<span class="clock-num1" @click="handleClickNum1(1, 1, 1)"
|
||||
>{{ twoRList?.weightLossCountDay ? twoRList?.weightLossCountDay : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<span class="clock-text">异常人数:</span>
|
||||
<span class="clock-num2">{{ twoRList?.weightLossAbnormalCountDay ? twoRList?.weightLossAbnormalCountDay : '--' }}人</span>
|
||||
<span class="clock-num2" @click="handleClickNum1(1, 1, 2)"
|
||||
>{{ twoRList?.weightLossAbnormalCountDay ? twoRList?.weightLossAbnormalCountDay : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-item-clock" style="margin-bottom: 0">
|
||||
<div>
|
||||
<span class="clock-text">本月打卡人数:</span>
|
||||
<span class="clock-num1">{{ twoRList?.weightLossCountMonth ? twoRList?.weightLossCountMonth : '--' }}人</span>
|
||||
<span class="clock-num1" @click="handleClickNum1(1, 2, 1)"
|
||||
>{{ twoRList?.weightLossCountMonth ? twoRList?.weightLossCountMonth : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<span class="clock-text">异常人数:</span>
|
||||
<span class="clock-num2"
|
||||
>{{ twoRList?.weightLossAbnormalCountMonth ? twoRList?.weightLossAbnormalCountMonth : '--' }}人</span
|
||||
<span class="clock-num2" @click="handleClickNum1(1, 2, 2)"
|
||||
>{{ twoRList?.weightLossCountMonth ? twoRList?.weightLossAbnormalCountMonth : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -48,21 +54,27 @@
|
||||
<div class="content-item-clock">
|
||||
<div>
|
||||
<span class="clock-text">今日打卡人数:</span>
|
||||
<span class="clock-num1">{{ twoRList?.bloodSugarCountDay ? twoRList?.bloodSugarCountDay : '--' }}人</span>
|
||||
<span class="clock-num1" @click="handleClickNum1(2, 1, 1)"
|
||||
>{{ twoRList?.bloodSugarCountDay ? twoRList?.bloodSugarCountDay : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<span class="clock-text">异常人数:</span>
|
||||
<span class="clock-num2">{{ twoRList?.bloodSugarAbnormalCountDay ? twoRList?.bloodSugarAbnormalCountDay : '--' }}人</span>
|
||||
<span class="clock-num2" @click="handleClickNum1(2, 1, 2)"
|
||||
>{{ twoRList?.bloodSugarAbnormalCountDay ? twoRList?.bloodSugarAbnormalCountDay : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-item-clock" style="margin-bottom: 0">
|
||||
<div>
|
||||
<span class="clock-text">本月打卡人数:</span>
|
||||
<span class="clock-num1">{{ twoRList?.bloodSugarCountMonth ? twoRList?.bloodSugarCountMonth : '--' }}人</span>
|
||||
<span class="clock-num1" @click="handleClickNum1(2, 2, 1)"
|
||||
>{{ twoRList?.bloodSugarCountMonth ? twoRList?.bloodSugarCountMonth : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<span class="clock-text">异常人数:</span>
|
||||
<span class="clock-num2"
|
||||
<span class="clock-num2" @click="handleClickNum1(2, 2, 2)"
|
||||
>{{ twoRList?.bloodSugarAbnormalCountMonth ? twoRList?.bloodSugarAbnormalCountMonth : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
@@ -80,11 +92,13 @@
|
||||
<div class="content-item-clock">
|
||||
<div>
|
||||
<span class="clock-text">今日打卡人数:</span>
|
||||
<span class="clock-num1">{{ twoRList?.bloodPressureCountDay ? twoRList?.bloodPressureCountDay : '--' }}人</span>
|
||||
<span class="clock-num1" @click="handleClickNum1(3, 1, 1)"
|
||||
>{{ twoRList?.bloodPressureCountDay ? twoRList?.bloodPressureCountDay : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<span class="clock-text">异常人数:</span>
|
||||
<span class="clock-num2"
|
||||
<span class="clock-num2" @click="handleClickNum1(3, 1, 2)"
|
||||
>{{ twoRList?.bloodPressureAbnormalCountDay ? twoRList?.bloodPressureAbnormalCountDay : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
@@ -92,11 +106,13 @@
|
||||
<div class="content-item-clock" style="margin-bottom: 0">
|
||||
<div>
|
||||
<span class="clock-text">本月打卡人数:</span>
|
||||
<span class="clock-num1">{{ twoRList?.bloodPressureCountMonth ? twoRList?.bloodPressureCountMonth : '--' }}人</span>
|
||||
<span class="clock-num1" @click="handleClickNum1(3, 2, 1)"
|
||||
>{{ twoRList?.bloodPressureCountMonth ? twoRList?.bloodPressureCountMonth : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<span class="clock-text">异常人数:</span>
|
||||
<span class="clock-num2"
|
||||
<span class="clock-num2" @click="handleClickNum1(3, 2, 2)"
|
||||
>{{ twoRList?.bloodPressureAbnormalCountMonth ? twoRList?.bloodPressureAbnormalCountMonth : '--' }}人</span
|
||||
>
|
||||
</div>
|
||||
@@ -113,16 +129,23 @@
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { twoRApi } from '/@/views/indexSun/indexSun.api.ts';
|
||||
const twoRList = ref();
|
||||
const emit = defineEmits(['handleClick']);
|
||||
onMounted(() => {
|
||||
getList();
|
||||
});
|
||||
|
||||
function getList() {
|
||||
twoRApi({}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
localStorage.removeItem('twoRList');
|
||||
twoRList.value = res.result;
|
||||
localStorage.setItem('twoRList', JSON.stringify(res.result));
|
||||
}
|
||||
});
|
||||
}
|
||||
function handleClickNum1(type, date, normal) {
|
||||
emit('handleClick', { type, date, normal });
|
||||
}
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.two-r-box {
|
||||
|
||||
Reference in New Issue
Block a user