Merge branch 'test' into dev

# Conflicts:
#	src/components/secondaryScreen/secondMap/components/userInfoModal/sleep.vue
This commit is contained in:
zk
2023-12-28 17:19:53 +08:00
8 changed files with 13 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
@@ -178,11 +178,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,
@@ -251,4 +250,4 @@
initEchart('0'); initEchart('0');
}); });
</script> </script>
<style scoped lang="less"></style> <style scoped lang="less"></style>
@@ -84,7 +84,7 @@
} }
async function getInfo() { async function getInfo() {
await queryAllStatisticsApi({ type: paramsDate.value, userId: infoData.value?.userid || '1692086437685014530' }).then((res) => { await queryAllStatisticsApi({ type: paramsDate.value, userId: infoData.value?.userid }).then((res) => {
info.value = res?.result; info.value = res?.result;
}); });
} }
@@ -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>