Bladeren bron

心理日报增加心理量表入口

test
wzl 7 maanden geleden
bovenliggende
commit
679f7430fd
3 gewijzigde bestanden met toevoegingen van 31 en 3 verwijderingen
  1. +16
    -0
      src/views/health/psychological/index.scss
  2. +13
    -1
      src/views/health/psychological/index.vue
  3. +2
    -2
      src/views/psychological-scale/list.vue

+ 16
- 0
src/views/health/psychological/index.scss Bestand weergeven

@@ -123,6 +123,22 @@ $newBlue: #638EE4;
font-size: 18px;
}
}

.title-right{
display: flex;

.title-right-button{
color: #638EE4;
font-size: 16px;
border: 1px solid #638EE4;
padding: 2px 10px;
margin-right: 5px;

&:last-child{
margin-right: 0;
}
}
}
}
.monitoring-count {
text-align: left;


+ 13
- 1
src/views/health/psychological/index.vue Bestand weergeven

@@ -42,7 +42,8 @@
{{ titleLeft }}<van-icon name="question-o" @click="onHelp" />
</div>
<div class="title-right" v-show="currentDays === 0">
<p @click="onHistory">历史监测</p>
<div class="title-right-button" @click="onPsychologicalScale">量表记录</div>
<div class="title-right-button" @click="onHistory">历史监测</div>
</div>
</div>
<!-- 日历 -->
@@ -1366,6 +1367,17 @@ export default {
this.echarts = this.$echarts.init(this.$refs.charts);
this.echarts.setOption(this.defaultOptions);
},
// 点击心理量表记录
onPsychologicalScale(){
this.$router.push({
name: "PsychologicalScaleList",
query: {
uid: this.uid,
accessToken: this.$store.getters.ssjlToken,
showLeftArrow:1,
},
});
},
// 点击历史监测,打开日历
onHistory() {
this.calendarDialogShow = true;


+ 2
- 2
src/views/psychological-scale/list.vue Bestand weergeven

@@ -2,7 +2,7 @@
<div class="page"
:style="`padding-top: ${showLeftArrow ? '46px' : '0'};`">
<van-nav-bar
title="我的测评"
title="测评记录"
:border="true"
:left-arrow="true"
@click-left="onNavBack"
@@ -66,7 +66,7 @@ export default {
watch: {},
mounted() {
//页面标题
window.document.title = '我的测评'
window.document.title = '测评记录'

//页面传参
let params = { ...this.$route.query }


Laden…
Annuleren
Opslaan