{{ item.name }}
+{{ item. summary}}
+暂无数据
+diff --git a/README.md b/README.md
index 6f71915..d18f0fc 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
@@ -770,4 +770,20 @@ fix
update
- 心理监测详情
- 修改 温馨提示语
-- 新增 一个周报/月报页面
\ No newline at end of file
+- 新增 一个周报/月报页面
+
+## v1.0.97
+`2023.11.6`
+update
+- 心理监测详情
+ - 修改 天数选择方式
+- 心理监测周报
+ - 增加 周报列表和周报详情接口
+
+
+## v1.0.98
+`2023.11.7`
+fix
+- 心理监测详情
+ - 修复 图表连线点颜色显示不正确的问题
+ - 修复 选项菜单显示异常的问题
\ No newline at end of file
diff --git a/src/assets/img/psychological/down.png b/src/assets/img/psychological/down.png
new file mode 100644
index 0000000..077e205
Binary files /dev/null and b/src/assets/img/psychological/down.png differ
diff --git a/src/assets/img/psychological/more.png b/src/assets/img/psychological/more.png
new file mode 100644
index 0000000..8896174
Binary files /dev/null and b/src/assets/img/psychological/more.png differ
diff --git a/src/assets/img/psychological/select_down.png b/src/assets/img/psychological/select_down.png
new file mode 100644
index 0000000..5ef119f
Binary files /dev/null and b/src/assets/img/psychological/select_down.png differ
diff --git a/src/assets/img/psychological/statistical_form.png b/src/assets/img/psychological/statistical_form.png
new file mode 100644
index 0000000..08f9e30
Binary files /dev/null and b/src/assets/img/psychological/statistical_form.png differ
diff --git a/src/assets/img/psychological/up.png b/src/assets/img/psychological/up.png
new file mode 100644
index 0000000..a502063
Binary files /dev/null and b/src/assets/img/psychological/up.png differ
diff --git a/src/assets/img/psychological/week_report.png b/src/assets/img/psychological/week_report.png
new file mode 100644
index 0000000..531c1d4
Binary files /dev/null and b/src/assets/img/psychological/week_report.png differ
diff --git a/src/config/models.js b/src/config/models.js
index 7f05ebd..a21a90e 100644
--- a/src/config/models.js
+++ b/src/config/models.js
@@ -1,11 +1,11 @@
/*
* @Date: 2021-11-20 10:26:39
* @LastEditors: JinxChen
- * @LastEditTime: 2023-11-02 09:12:59
+ * @LastEditTime: 2023-11-06 09:15:22
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js
* @description:
*/
-export const VERSION_MODEL = '1.0.96F'; //版本号
+export const VERSION_MODEL = '1.0.98F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',
diff --git a/src/router/index.js b/src/router/index.js
index c31845c..39bf12c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,7 +1,7 @@
/*
* @Date: 2023-09-21 09:54:53
* @LastEditors: JinxChen
- * @LastEditTime: 2023-10-30 11:31:37
+ * @LastEditTime: 2023-11-03 09:41:28
* @FilePath: \TelpoH5FrontendWeb\src\router\index.js
* @description:
*/
@@ -62,7 +62,9 @@ const routes = [
// 健康-抑郁,压力和疲劳汇总入口
{ path: '/psychologicalMain', name: 'psychologicalMain', component: resolve => require(['@/views/health/psychological-main'], resolve) },
// 周报/月报
- { path: '/psychologicalReport', name: 'psychologicalReport', component: resolve => require(['@/views/health/psychological/report'], resolve) },
+ { path: '/psychologicalReport', name: 'psychologicalReport', component: resolve => require(['@/views/health/psychological/report/index'], resolve) },
+ // 周报/月报-入口
+ { path: '/psychiclReportEntry', name: 'psychiclReportEntry', component: resolve => require(['@/views/health/psychological/report/report-entry'], resolve) },
// 告警详情-中间页
{ path: '/aiCallAlarm', name: 'aiCallAlarm', component: resolve => require(['@/views/ai-call-alarm'], resolve) },
diff --git a/src/store/index.js b/src/store/index.js
index 0681b86..fadbe53 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -23,6 +23,7 @@ export default new Vuex.Store({
ssjlToken: '',
fromSsjl: '',
active: null, //点击左边树形图下标
+ tabClick: '', //心理监测点击tab
},
mutations: {
imei(state, imei) {
@@ -65,6 +66,11 @@ export default new Vuex.Store({
state.active = active;
window.localStorage[prefix + 'active'] = active;
},
+ tabClick(state, tabClick) {
+ state.tabClick = tabClick;
+ window.localStorage[prefix + 'tabClick'] = tabClick;
+ },
+
},
getters: {
imei: state => {
@@ -107,6 +113,11 @@ export default new Vuex.Store({
if (state.active != '') return state.active;
return window.localStorage[prefix + 'active'] == null ? '' : window.localStorage[prefix + 'active'];
},
+ tabClick: state => {
+ if (state.tabClick != '') return state.tabClick;
+ return window.localStorage[prefix + 'tabClick'] == null ? '' : window.localStorage[prefix + 'tabClick'];
+ },
+
},
actions: {},
modules: {}
diff --git a/src/views/health/psychological-main/index.vue b/src/views/health/psychological-main/index.vue
index 17a4531..d2b391c 100644
--- a/src/views/health/psychological-main/index.vue
+++ b/src/views/health/psychological-main/index.vue
@@ -67,6 +67,7 @@ export default {
},
mounted() {
this.loadParams();
+ this.$store.commit('tabClick', 0);
window.document.title = '心理监测';
},
methods: {
diff --git a/src/views/health/psychological/index.scss b/src/views/health/psychological/index.scss
index d265892..bf6ce58 100644
--- a/src/views/health/psychological/index.scss
+++ b/src/views/health/psychological/index.scss
@@ -4,54 +4,76 @@ $newBlue: #638EE4;
width: 100%;
overflow: hidden;
background-color: #fff;
- .main {
- height: calc(100vh - 45px);
- overflow: scroll;
- .top {
- flex: 1;
- .tab-bar {
- padding: 0 13px 5px 13px;
- .date-tab-con {
- padding: 5px 0;
- height: 30px;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- .date-tab-list {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- flex: 1;
- border-radius: 15px;
+ .tab-bar {
+ width: 100%;
+ position: relative;
+ .date-tab-con {
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ background: #F6F6F6;
+ border: 1px solid #E0E0E0;
+ .date-tab-list {
+ display: flex;
+ justify-content: space-around;
+ align-items: center;
+ color: #fff;
+ flex: 1;
+ height: 24px;
+ padding: 10px 0;
+ .date-tab-item {
+ position: relative;
+ padding: 0 10px;
+ color: #6D6D6D;
+ font-size: 18px;
+ @include center();
+ img {
+ height: 25px;
+ width: 25px;
+ padding: 0 8px;
+ }
+ .more {
+ width: 10px;
+ height: 6px;
+ }
+ &.active::after {
+ content: '';
+ width: 44px;
+ position: absolute;
+ right: 25%;
+ bottom: -10px;
+ box-sizing: border-box;
+ border-bottom: 4px solid #638EE4;
+ }
+ &.active {
+ color: #638EE4;
+ }
+ &.notClick {
+ background-color: $border_color;
color: #fff;
- .date-tab-item {
- height: 30px;
- width: 100%;
- color: #6D6D6D;
- font-size: 18px;
- @include center();
- border: 1px solid $newBlue;
- &.active {
- background-color: $newBlue;
- color: #fff;
- }
- &.notClick {
- background-color: $border_color;
- color: #fff;
- border: 1px solid #fff;
- }
- }
- .date-tab-item:first-child {
- border-top-left-radius: 15px;
- border-bottom-left-radius: 15px;
- }
- .date-tab-item:last-child {
- border-top-right-radius: 15px;
- border-bottom-right-radius: 15px;
- }
+ border: 1px solid #fff;
}
}
+ .date-tab-item:nth-child(3) {
+ border-right: 1px solid #E0E0E0;
+ }
+ /* .date-tab-item:first-child {
+ border-top-left-radius: 15px;
+ border-bottom-left-radius: 15px;
+ }
+ .date-tab-item:last-child {
+ border-top-right-radius: 15px;
+ border-bottom-right-radius: 15px;
+ } */
}
+ }
+ }
+ .main {
+ position: relative;
+ height: calc(100vh - 90px);
+ overflow: scroll;
+ .top {
+ flex: 1;
.title {
display: flex;
justify-content: space-between;
@@ -310,7 +332,107 @@ $newBlue: #638EE4;
}
}
}
+ &.report {
+ position: relative;
+ height: calc(100vh - 90px);
+ overflow: scroll;
+ background-color: #f5f5f5;
+ .content {
+ position: relative;
+ .list {
+ position: relative;
+
+ .item {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+ padding: 34px 15px;
+ background-color: #fff;
+ margin-bottom: 11px;
+ .left {
+ display: flex;
+ justify-content: flex-start;
+ align-items: flex-start;
+ img {
+ height: 25px;
+ width: 25px;
+ }
+ .middle {
+ .title,
+ .overall,
+ .trend {
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ padding-left: 13px;
+ span,
+ p {
+ font-size: 18px;
+ font-family: Source Han Sans CN;
+ font-weight: 400;
+ color: #8d8d8d;
+ line-height: 30px;
+ }
+ }
+ .title {
+ span {
+ padding-right: 20px;
+ }
+ p {
+ color: #282828;
+ }
+ }
+ .overall {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 100%;
+ .left {
+ p {
+ padding-left: 20px;
+ font-weight: bold;
+ }
+ }
+ .right {
+ img {
+ height: 15px;
+ width: 9px;
+ }
+ }
+ }
+ .trend {
+ align-items: flex-start;
+ text-align: left;
+ }
+ }
+ }
+ .right {
+ img {
+ width: 9px;
+ height: 15px;
+ }
+ }
+ }
+ &.no-data {
+ height: calc(100vh - 100px);
+ width: 100%;
+ @include center();
+ flex-direction: column;
+ img {
+ height: 110px;
+ width: 175px;
+ }
+ p {
+ color: #999;
+ font-size: 12px;
+ padding: 20px 0 65px 0;
+ }
+ }
+ }
+ }
+ }
}
+
.title {
font-size: 16px;
}
diff --git a/src/views/health/psychological/index.vue b/src/views/health/psychological/index.vue
index 1c703b8..b99b7ef 100644
--- a/src/views/health/psychological/index.vue
+++ b/src/views/health/psychological/index.vue
@@ -5,24 +5,25 @@