|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view class="default_page adffc" :style="{'height':h+'px', 'padding-top':mt+'px'}">
|
|
|
+ <view class="default_page adffc" :style="{'height':h+'px', 'padding-top':mt+'px','padding-bottom':((answerCount>0&&answerCount===list.length)?162:40)+'rpx'}">
|
|
|
<cus-header title='填写问卷'></cus-header>
|
|
|
<view class="top">
|
|
|
<view class="top-title">{{title||''}}</view>
|
|
|
@@ -11,11 +11,11 @@
|
|
|
<view class="top-progress-num"><span>{{answerCount}}</span>/{{list.length}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="memo adfac" v-if="turnType==='questionnaire'" @click="noticeShow=true">
|
|
|
+ <!-- <view class="memo adfac" v-if="turnType==='questionnaire'" @click="noticeShow=true">
|
|
|
<text>问卷答题说明</text>
|
|
|
<image :src="imgBase+'icon_memo.png'"></image>
|
|
|
- </view>
|
|
|
- <scroll-view class="list" scroll-y="true" :scroll-top="scrollTop" :style="{ height: h - 234 - mt + 'px' }">
|
|
|
+ </view> -->
|
|
|
+ <scroll-view class="list" scroll-y="true" :scroll-top="scrollTop">
|
|
|
<view v-if="isLoading" class="loading-container adfacjc">
|
|
|
<view class="adfac">
|
|
|
<u-loading-icon size="42"></u-loading-icon>
|
|
|
@@ -35,7 +35,7 @@
|
|
|
<question-item :item="item" :index="index" @change="handleAnswerChange"></<question-item>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
- <view class="bottom adfacjb">
|
|
|
+ <view class="bottom adfacjb" v-if="answerCount>0&&answerCount===list.length">
|
|
|
<view class="bottom-left adffcac" @click="showTeamInfo" v-if="type==1">
|
|
|
<image :src="imgBase+'questionnaire_info.png'"></image>
|
|
|
<text>团队信息</text>
|
|
|
@@ -45,7 +45,7 @@
|
|
|
<image :src="imgBase+'questionnaire_info.png'"></image>
|
|
|
<text>团队信息</text>
|
|
|
</view>
|
|
|
- <view class="bottom-left-pre adffcac" @click="userShow=true">
|
|
|
+ <view class="bottom-left-pre adffcac" @click="showTeamUser">
|
|
|
<image :src="imgBase+'questionnaire_users.png'"></image>
|
|
|
<text>团队人员</text>
|
|
|
</view>
|
|
|
@@ -54,7 +54,7 @@
|
|
|
</view>
|
|
|
<cus-notice :show="noticeShow" @close="noticeShow=false" @handleKnow="noticeShow=false"></cus-notice>
|
|
|
<cus-team-info :show="teamShow" :teamInfo="teamInfo" @close="teamShow=false"></cus-team-info>
|
|
|
- <cus-team-user :show="userShow" :list="teamUserList" @close="userShow=false"></cus-team-user>
|
|
|
+ <cus-team-user :show="userShow" :canEdit="false" :list="teamUserList" @close="userShow=false"></cus-team-user>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -88,6 +88,7 @@
|
|
|
teamScaleData:[],
|
|
|
teamLevelData:[],
|
|
|
answerCount:0,
|
|
|
+ categoryData:[]
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -217,6 +218,26 @@
|
|
|
this.oldScrollTop = targetPosition;
|
|
|
});
|
|
|
});
|
|
|
+ },
|
|
|
+ async getUserCategoryData(){
|
|
|
+ return new Promise((resolve,reject)=>{
|
|
|
+ this.$api.get('/getListByType/UserCategory').then(({data:res})=>{
|
|
|
+ if(res.code!==0) return this.$showToast(res.msg)
|
|
|
+ this.categoryData = res.data.map(d=>({name:d.dictLabel,id:d.dictValue}))
|
|
|
+ resolve()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ async showTeamUser(){
|
|
|
+ await this.getUserCategoryData()
|
|
|
+ this.$api.get(`/core/member/listByQueTeamId/${this.teamQuestionnaireId}`).then(({data:res})=>{
|
|
|
+ if(res.code!==0) return this.$showToast(res.msg)
|
|
|
+ this.teamUserList = res.data;
|
|
|
+ this.teamUserList.forEach(l=>{
|
|
|
+ l.categoryName = this.categoryData.find(c=>c.id==l.category)?.name;
|
|
|
+ })
|
|
|
+ this.userShow = true
|
|
|
+ })
|
|
|
},
|
|
|
confirmSubmit() {
|
|
|
if (this.isSubmitting) return;
|
|
|
@@ -343,7 +364,7 @@
|
|
|
height: 100%;
|
|
|
}
|
|
|
.default_page{
|
|
|
- padding: 0 0 192rpx;
|
|
|
+ padding: 0 0 40rpx;
|
|
|
background: #FFFFFF;
|
|
|
box-sizing: border-box;
|
|
|
height: 100vh;
|
|
|
@@ -352,7 +373,7 @@
|
|
|
flex-direction: column;
|
|
|
|
|
|
.top{
|
|
|
- padding: 40rpx 24rpx 50rpx;
|
|
|
+ padding: 30rpx 24rpx 20rpx;
|
|
|
&-title{
|
|
|
font-family: PingFang-SC, PingFang-SC;
|
|
|
font-weight: bold;
|
|
|
@@ -361,7 +382,7 @@
|
|
|
line-height: 51rpx;
|
|
|
}
|
|
|
&-progress{
|
|
|
- margin-top: 35rpx;
|
|
|
+ margin-top: 25rpx;
|
|
|
&-text{
|
|
|
font-family: PingFangSC, PingFang SC;
|
|
|
font-weight: 400;
|
|
|
@@ -402,7 +423,7 @@
|
|
|
}
|
|
|
|
|
|
.memo{
|
|
|
- margin: -20rpx 0 50rpx 24rpx;
|
|
|
+ margin: -20rpx 0 30rpx 24rpx;
|
|
|
text{
|
|
|
font-family: PingFangSC, PingFang SC;
|
|
|
font-weight: 400;
|
|
|
@@ -419,14 +440,15 @@
|
|
|
|
|
|
.list{
|
|
|
width: 100%;
|
|
|
- padding: 0 24rpx 20rpx;
|
|
|
+ padding: 0 24rpx 10rpx;
|
|
|
box-sizing: border-box;
|
|
|
- // flex: 1;
|
|
|
- // overflow-y: auto;
|
|
|
+ flex: 1;
|
|
|
+ overflow-y: auto;
|
|
|
}
|
|
|
|
|
|
.bottom{
|
|
|
width: 100%;
|
|
|
+ height: 162rpx;
|
|
|
background: #FFFFFF;
|
|
|
box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0,0,0,0.07);
|
|
|
padding: 20rpx 40rpx 54rpx;
|