update
This commit is contained in:
@@ -131,6 +131,9 @@
|
||||
yArr1.push(item.value1);
|
||||
});
|
||||
echart = echarts.init(chartRef.value);
|
||||
console.log('yArr', yArr);
|
||||
console.log('yArr1', yArr1);
|
||||
console.log('xArr', xArr);
|
||||
const option = {
|
||||
title: {},
|
||||
legend: {
|
||||
@@ -153,7 +156,7 @@
|
||||
let tar = params[0];
|
||||
let str = '';
|
||||
if (type.value === 1) {
|
||||
str = tar1.value > 0 ? '深睡' : '浅睡';
|
||||
str = tar1.value > 0 ? '浅睡' : '深睡';
|
||||
} else {
|
||||
str = '深睡' + ' : ' + (tar.value ? tar.value : 0) + '<br/>' + '浅睡' + ' : ' + (tar1.value ? tar1.value : 0);
|
||||
}
|
||||
@@ -169,11 +172,10 @@
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
splitLine: { show: false },
|
||||
data: xArr || ['', ''],
|
||||
data: xArr,
|
||||
axisLabel: {
|
||||
color: '#fff',
|
||||
},
|
||||
min: 5,
|
||||
},
|
||||
yAxis: {
|
||||
show: false,
|
||||
@@ -242,4 +244,4 @@
|
||||
initEchart('0');
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="less"></style>
|
||||
<style scoped lang="less"></style>
|
||||
@@ -251,7 +251,7 @@
|
||||
|
||||
:deep(.watch-modal) {
|
||||
width: 300px;
|
||||
height: 190px;
|
||||
height: 210px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
@@ -2,7 +2,7 @@ import { get, post } from '/@/api/request.ts';
|
||||
|
||||
export enum Api {
|
||||
footerStatistic = '/health-watch/watch/deptStatisticData/listByorgCode',
|
||||
mapListApi = '/health-watch/watch/watchDevice/getMapList',
|
||||
mapListApi = '/health-watch/watch/watchDevice/selectDeptMapList',
|
||||
getUserListByDeptId = '/health-watch/watch/watchDevice/getUserListByDeptId',
|
||||
queryAllStatistics = '/health-watch/watch/watchData/queryAllStatistics',
|
||||
// 心率
|
||||
|
||||
@@ -340,9 +340,13 @@ export function useChangeTable() {
|
||||
export function infoContent(res) {
|
||||
return `
|
||||
<div class="watch-modal">
|
||||
<div class="modal-row">
|
||||
<span class="label">单位名称:</span>
|
||||
<span class="text">${res?.orgName || ''}</span>
|
||||
</div>
|
||||
<div class="modal-row">
|
||||
<span class="label">部门名称:</span>
|
||||
<span class="text">${res?.orgName}</span>
|
||||
<span class="text">${res?.deptName || ''}</span>
|
||||
</div>
|
||||
<div class="modal-row">
|
||||
<span class="label">部门人数:</span>
|
||||
|
||||
+2
-1
@@ -4,7 +4,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'default',
|
||||
component: () => import('/@/views/sys/login.vue'),
|
||||
component: () => import('/@/views/index.vue'),
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
@@ -37,4 +37,5 @@ const router: Router = createRouter({
|
||||
routes: [...routes],
|
||||
});
|
||||
|
||||
|
||||
export default router;
|
||||
|
||||
@@ -205,10 +205,6 @@
|
||||
onMounted(() => {
|
||||
//加载验证码
|
||||
handleChangeCheckCode();
|
||||
let token = getAuthCache(TOKEN_KEY);
|
||||
if (token) {
|
||||
router.push({ path: '/home' });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user