update
1.副屏标题
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="left-pie">
|
<div class="left-pie">
|
||||||
<public-title :title="props.title">
|
<public-title :title="props.title" :theme-type="themeType">
|
||||||
<template #right>
|
<template #right>
|
||||||
{{ props.tips }}
|
{{ props.tips }}
|
||||||
</template>
|
</template>
|
||||||
@@ -38,6 +38,10 @@
|
|||||||
userCount: {
|
userCount: {
|
||||||
type: Number,
|
type: Number,
|
||||||
},
|
},
|
||||||
|
themeType: {
|
||||||
|
type: String,
|
||||||
|
default: () => '',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
const healthChart = ref<HTMLElement>();
|
const healthChart = ref<HTMLElement>();
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<template v-for="(item, index) in dataList" :key="`list${index}`">
|
<template v-for="(item, index) in dataList" :key="`list${index}`">
|
||||||
<item-d :keu="spinning" :title="item.title" :data="item.data" :tips="item.tips" :color="item.color" :userCount="item.userCount" />
|
<item-d
|
||||||
|
:themeType="themeType"
|
||||||
|
:keu="spinning"
|
||||||
|
:title="item.title"
|
||||||
|
:data="item.data"
|
||||||
|
:tips="item.tips"
|
||||||
|
:color="item.color"
|
||||||
|
:userCount="item.userCount"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -70,6 +78,7 @@
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
orgCode: String,
|
orgCode: String,
|
||||||
type: String,
|
type: String,
|
||||||
|
themeType: String,
|
||||||
});
|
});
|
||||||
onMounted(() => {});
|
onMounted(() => {});
|
||||||
watch(props, () => {
|
watch(props, () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="terminal-container self">
|
<div class="terminal-container self">
|
||||||
<public-title title="睡眠" />
|
<public-title title="睡眠" :theme-type="themeType" />
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<span class="lightSleep">平均睡眠 {{ nums.avg }} 深睡 {{ nums.avgLong }} 浅睡 {{ nums.avgShort }}</span>
|
<span class="lightSleep">平均睡眠 {{ nums.avg }} 深睡 {{ nums.avgLong }} 浅睡 {{ nums.avgShort }}</span>
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
orgCode: String,
|
orgCode: String,
|
||||||
type: String,
|
type: String,
|
||||||
|
themeType: String,
|
||||||
});
|
});
|
||||||
const sleepChart = ref<HTMLElement>();
|
const sleepChart = ref<HTMLElement>();
|
||||||
watch(
|
watch(
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<public-title title="预警" />
|
<public-title title="预警" :theme-type="themeType" />
|
||||||
<div class="inner-screen">
|
<div class="inner-screen">
|
||||||
<a-table
|
<a-table
|
||||||
:scroll="{
|
:scroll="{
|
||||||
@@ -36,6 +36,7 @@
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
orgCode: String,
|
orgCode: String,
|
||||||
type: String,
|
type: String,
|
||||||
|
themeType: String,
|
||||||
});
|
});
|
||||||
const { setSession, getSession } = useSession();
|
const { setSession, getSession } = useSession();
|
||||||
const { PAGE2_RIGHT3 } = caching;
|
const { PAGE2_RIGHT3 } = caching;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="pie-container self">
|
<div class="pie-container self">
|
||||||
<public-title title="步数" />
|
<public-title title="步数" :theme-type="themeType" />
|
||||||
<div class="inner" ref="healthChart"></div>
|
<div class="inner" ref="healthChart"></div>
|
||||||
<div class="count">
|
<div class="count">
|
||||||
<div class="t">总人数</div>
|
<div class="t">总人数</div>
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
orgCode: String,
|
orgCode: String,
|
||||||
type: String,
|
type: String,
|
||||||
|
themeType: String,
|
||||||
});
|
});
|
||||||
const { setSession, getSession } = useSession();
|
const { setSession, getSession } = useSession();
|
||||||
const { PAGE2_RIGHT2 } = caching;
|
const { PAGE2_RIGHT2 } = caching;
|
||||||
|
|||||||
+13
-4
@@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="body-d">
|
<div class="body-d">
|
||||||
<div class="body-d-left">
|
<div class="body-d-left">
|
||||||
<screen-left :key="tabState" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
<screen-left :themeType="themeType" :key="tabState" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
||||||
</div>
|
</div>
|
||||||
<div class="body-d-middle">
|
<div class="body-d-middle">
|
||||||
<SecondMap :orgCode="orgCode" :type="type">
|
<SecondMap :orgCode="orgCode" :type="type">
|
||||||
@@ -31,9 +31,9 @@
|
|||||||
</SecondMap>
|
</SecondMap>
|
||||||
</div>
|
</div>
|
||||||
<div class="body-d-right">
|
<div class="body-d-right">
|
||||||
<one-r :key="tabState" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
<one-r :themeType="themeType" :key="tabState" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
||||||
<two-r :key="tabState" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
<two-r :themeType="themeType" :key="tabState" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
||||||
<three-r :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
<three-r :themeType="themeType" :orgCode="orgCode" :type="type" :refreshState="refreshState" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom-d"></div>
|
<div class="bottom-d"></div>
|
||||||
@@ -54,8 +54,17 @@
|
|||||||
import { useRefresh } from '/@/hooks/autoRefresh';
|
import { useRefresh } from '/@/hooks/autoRefresh';
|
||||||
import { DEFAULT_TIME } from '/@/hooks/autoRefresh/pageRefreshTime.ts';
|
import { DEFAULT_TIME } from '/@/hooks/autoRefresh/pageRefreshTime.ts';
|
||||||
import { onUnmounted } from 'vue';
|
import { onUnmounted } from 'vue';
|
||||||
|
import { useTheme } from '/@/hooks/theme/useTheme.ts';
|
||||||
|
import { ThemeType } from '/@/utils/settings.ts';
|
||||||
|
|
||||||
const { refreshState } = useRefresh(DEFAULT_TIME);
|
const { refreshState } = useRefresh(DEFAULT_TIME);
|
||||||
|
|
||||||
|
const store = useUserStore();
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
store.setThemeType(ThemeType.dark);
|
||||||
|
});
|
||||||
|
const { themeType } = useTheme();
|
||||||
const useStore = useUserStore();
|
const useStore = useUserStore();
|
||||||
const { orgCode, option, fieldNames, setOrgCode } = useDepart();
|
const { orgCode, option, fieldNames, setOrgCode } = useDepart();
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user