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