From 44580a243c91f5fdc014f91bc3c9f9177a697fff Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Mon, 6 Nov 2023 14:15:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update=20-=20=E5=BF=83=E7=90=86=E7=9B=91?= =?UTF-8?q?=E6=B5=8B=E8=AF=A6=E6=83=85=20=20=20=20=20-=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20=E5=A4=A9=E6=95=B0=E9=80=89=E6=8B=A9=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=20-=20=E5=BF=83=E7=90=86=E7=9B=91=E6=B5=8B=E5=91=A8?= =?UTF-8?q?=E6=8A=A5=20=20=20=20=20-=20=E5=A2=9E=E5=8A=A0=20=E5=91=A8?= =?UTF-8?q?=E6=8A=A5=E5=88=97=E8=A1=A8=E5=92=8C=E5=91=A8=E6=8A=A5=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +- src/assets/img/psychological/down.png | Bin 0 -> 440 bytes src/assets/img/psychological/more.png | Bin 0 -> 661 bytes src/assets/img/psychological/select_down.png | Bin 0 -> 406 bytes .../img/psychological/statistical_form.png | Bin 0 -> 1135 bytes src/assets/img/psychological/up.png | Bin 0 -> 419 bytes src/assets/img/psychological/week_report.png | Bin 0 -> 2706 bytes src/config/models.js | 4 +- src/router/index.js | 6 +- src/store/index.js | 11 + src/views/health/psychological-main/index.vue | 1 + src/views/health/psychological/index.scss | 210 +++- src/views/health/psychological/index.vue | 175 +++- src/views/health/psychological/report.scss | 21 - src/views/health/psychological/report.vue | 53 - .../health/psychological/report/index.scss | 305 ++++++ .../health/psychological/report/index.vue | 918 ++++++++++++++++++ .../psychological/report/report-entry.vue | 230 +++++ 18 files changed, 1783 insertions(+), 163 deletions(-) create mode 100644 src/assets/img/psychological/down.png create mode 100644 src/assets/img/psychological/more.png create mode 100644 src/assets/img/psychological/select_down.png create mode 100644 src/assets/img/psychological/statistical_form.png create mode 100644 src/assets/img/psychological/up.png create mode 100644 src/assets/img/psychological/week_report.png delete mode 100644 src/views/health/psychological/report.scss delete mode 100644 src/views/health/psychological/report.vue create mode 100644 src/views/health/psychological/report/index.scss create mode 100644 src/views/health/psychological/report/index.vue create mode 100644 src/views/health/psychological/report/report-entry.vue diff --git a/README.md b/README.md index 380ba17..dcbd55c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -770,4 +770,12 @@ fix update - 心理监测详情 - 修改 温馨提示语 -- 新增 一个周报/月报页面 \ No newline at end of file +- 新增 一个周报/月报页面 + +## v1.0.97 +`2023.11.6` +update +- 心理监测详情 + - 修改 天数选择方式 +- 心理监测周报 + - 增加 周报列表和周报详情接口 \ 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 0000000000000000000000000000000000000000..077e205c5fd09b0f130f553f1bd1e9546ecb9f95 GIT binary patch literal 440 zcmV;p0Z0CcP)Px$a!Eu%R5(xVR6R=rK@fejdv^vTos}Xs2E;;a#4<>}NWg&p0xtnE{sJpYe}b`) zMEnIoFq(^pjcBEXl{Q+4Vq+&_a<@B@Xe1;TuoW`p?7X+kwGBdsKp*W#f@a2qAev!j5Vae3M0f^6{1A*Xp+dQfY#5D3 z9Yl-Zpn&%DTDD?bhQw#8?J&ERoD`Cd$dvQi*8>@ZA;3ysv#+wHWc}sWo;fEm4k0T> zNG|vd)kk2ANcatPrG;2MSgO8$Z`f7q=gVWh@>~*_?IH5?%Tj%Px%Pf0{UR5(wK)Xi%XQ4j#|nc2KeD42tys31LvpeGST51yo874fDBf+9o=NClH- z(+xdzFBbM~;-P|GETU9eiWCp(MQ`Fip!MQGf~bh#LCn{7_q~xAUUD{1_fH z^RUrq9M@XkM8vzTR%_AoycjldFbINgLWu1qH;SSlpU+Phi^XV|HE<%E&E5{fa3go6 z-ELp>Jg+kdBLEm&0ssjB77>9`>IpMnnwpyWnT8EqKS2=OFc=YqZQBrr;Y-W1E|<&Y z&;9UknBda@@R*2lhzMHix6FLOah%nE@n6scecwM!M9%$mMc5==FN@1EJ@6xsj2P86t9-8BA}P`N8PuXdxBO&CTV*FuY~kb|H$Qb)=MP zbUGc^Y*1e)rQC^#W`d5HO6E>$YiosSwR#@_xNkdr-``C{PZ9BuLChQz(fLZHvXVME zzV9C(qD3LZL8X*w`gZ`Ba2#hTbylU6ClK+TWm$Vnl2YnxCX+c^DwSTRZb!XdKgG-o z0I)UL#}7)Wv0AOxOx;J{_s0a>00001b5ch_0Itp) z=>Px$P)S5VR47x0kUdKSK@f&#_Lh@_2$qVKO8$l@+L*$^QY_Raf|j{k6HpEmF4-+E zM6^>2v5i`Ztsh`#?LV*-%#m=nH!CNJBz{geyz{*8%%D;#1b}=LMJvAVzrsJ&Xf%d8 zolYG9Mo~(6n#<)@Tdmfm=Xpy2VE*EjQU{LXY_;3%dkn*HBuSDc=X^Fz(`(mt3%|ii zsT0Q78WBBPmNkdjU>JsDTI)N;*c1`fqbPEH-`D*nQp#;a3;^IoYh5Up%TFJ0R!XS} z0JyPjJ0HjKp6j~10FdcMO1X}R$Htg9t@T2sQhCUjPdICWAeiKw-!jI=(=^@pJa4C3 ztu9-Zbq)Xt5lssr9(#cUaCd_l0B8churcNk5sO(m5fz0HXZ@#qgEO&Kt1U9dE^OOo zL7p=llv0H%g__Kw{729prC`fX7ke8UO$Q07*qoM6N<$f`zB3 AvH$=8 literal 0 HcmV?d00001 diff --git a/src/assets/img/psychological/statistical_form.png b/src/assets/img/psychological/statistical_form.png new file mode 100644 index 0000000000000000000000000000000000000000..08f9e30b7b6216c0f6bee2f75c7843a2d6637012 GIT binary patch literal 1135 zcmV-#1d#iQP)Px(DM>^@R7gv`mu+ZUWfaHHd7gW3nyyVY=X^^-r?SED%cc&oR6lIO{Gx+G3x3(s zrmG-0)>KeYT%1sb=0(cH>1?aWil!(7@#VurWKO1ADI$Vnb!Ba`PN*~OmYd$&`#eW( zx@KwKnsn;@dY|+EJ^zz)&pAP;;%SSM)-XQqR_Yq=5S%tMA@7q?{51GN(+~bPC+Pf6{pSTU4J0L4X8IxmoOjC9FF z6hhTCw~fwUzxwS!(DTH;SYoS?@CGv2p{UM!%hbzBQi`+J&Uhak89|YQc7_vSMbmnPwJiPBrMHCBrNBTW zxebuM0|1u<+CLQZ9mzud(aFa+vTuN(zKSoXYNt7HH2Iw7Y<$Pi=YBWT%p>RzP1G@$ z`VnKieWkSK3ZbBS)e26RVmhOV35V0Y(a>jiVAoq$?j>$rtj1ww=wGJ>g1*Pg=>#H| zpLMKp9i7)xLl}r8UsN2Eyr_Lf%9BEyE70I04Qk#`{9>0(Vd4j|H6Lb%zs$_WaI z7>FiTK3E`NLj{S0LqXr6S}vQbiPb`h=!jI z@+QctRB8;uKqQd@hVK6ZjEF!)Gj@7EV_a>mG*xOeQua7kG_Wi)j$P5@Zq?a%!pyAv zo!u&2bGl$Yef>$?)0bGU*3qws?C$*S;8p>J@i$UC2|(L06e2d|N*n}aul?7*D-yi= zLD18eZA=~g(;K*uV?^Znw;kr`O=b+Sb@=6`zjH%85V^7w&^o!eOw`<@D%|yk9%9Qt zkLPr@cjuoDL=$@f=olhbiHavhty!?!C6O>BvAsjRo=m3q&>eD(=-W$tpmNDv7$;Yr`8twO>?qu$YOLS2PG7gL@+1<%9GdASoIj^UGq#aAHl@F`~&0*1!~1&RG|O>002ovPDHLkV1k|D BBrgB} literal 0 HcmV?d00001 diff --git a/src/assets/img/psychological/up.png b/src/assets/img/psychological/up.png new file mode 100644 index 0000000000000000000000000000000000000000..a502063f09453161135cdf717ce3f0fb93de4921 GIT binary patch literal 419 zcmV;U0bKrxP)Px$T}ebiR5(xVQp+wwQ50SKoc2~D9?^3vZrhk>A_ih2{(vx$@CS_47Z@4(1U2Fp z8UqtCWyHXUiC1$Q?QJCt=tIwzLo3yL#RupfoyS^x@3r55=2qtdCqu+7m=Ll0do%AOzr@a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P zP+7)nBJH8BaJ+^XH-epqyMcGPW1)4jm6_$v*vN$S-ehvkZ|*)dI@GG;^1+R(n#cMq zo=o7&K{OuVkZ!j1Q>PeqwsGFeqzl!OBQIz%Fz+CuZ3#ustzUG~m-Ez_jXDyEs851F zC^O(Y6&^Yt%o9NNSYoQQ33)PCF}j%eAXx1N(c4IKg9UT%i9Qbh519c&M*b=Wga7~l M07*qoM6N<$f`CjM7ytkO literal 0 HcmV?d00001 diff --git a/src/config/models.js b/src/config/models.js index 7f05ebd..d44a7ab 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.97F'; //版本号 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..1b94ae2 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: flex-start; + align-items: center; + color: #fff; + flex: 1; + height: 24px; + padding: 10px 0; + .date-tab-item { + position: relative; + padding: 0 20px; + 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..cd06779 100644 --- a/src/views/health/psychological/index.vue +++ b/src/views/health/psychological/index.vue @@ -5,24 +5,25 @@ -
-
- - -
-
-
-
- {{item.text}} -
-
+
+
+
+
+ + {{item.text}} +
+
+
+
+
+
{{ titleLeft }}
@@ -112,13 +113,9 @@
- -
- -
@@ -188,6 +185,46 @@
+ +
+
+
+
+
+ +
+
+ 周报 +

{{ item.name }}

+
+
+
+ 总评 +

{{ item. summary}}

+
+
+ +
+
+ +
+ +
+
+
+
+ +

暂无数据

+
+
+