receiveList.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. <template>
  2. <view class="qbox adffc">
  3. <view class="list" v-if="list.length">
  4. <up-list @scrolltolower="scrolltolower" style="height: 100%;">
  5. <up-list-item class="list-item" v-for="(item, index) in list" :key="index">
  6. <view @click.prevent="showDialog(item)">
  7. <view class="status adf" :class="{'dwc':item.status===0,'ywc':item.status===1}">
  8. <image :src="imgBase+'questionnaire_icon_dwc.png'" v-if="item.status===0"></image>
  9. <image :src="imgBase+'questionnaire_icon_ywc.png'" v-else-if="item.status===1"></image>
  10. <text>{{item.status===0?'待完成':item.status===1?'已完成':''}}</text>
  11. </view>
  12. <image class="expand" :src="imgBase+'questionnaire_icon_down.png'"></image>
  13. <view class="title">{{item.title||''}}</view>
  14. <view class="name">团队名称:{{item.teamName||''}}</view>
  15. <view class="bottom adfacjb">
  16. <view class="bottom-left">截止时间:{{item.endTime}}</view>
  17. <view class="bottom-right" v-if="item.status===0" @click.stop="showNotice(item)">立即作答</view>
  18. <view class="bottom-right" v-else-if="item.status===1">查看报告</view>
  19. </view>
  20. </view>
  21. </up-list-item>
  22. </up-list>
  23. </view>
  24. <view class="empty" v-else>
  25. <page-empty></page-empty>
  26. </view>
  27. <view class="dialog adffc" v-if="show">
  28. <view class="dbox">
  29. <view class="dbox-top adfacjb">
  30. <view class="dbox-top-title">{{dto.title||''}}</view>
  31. <image class="dbox-top-expand" :src="imgBase+'questionnaire_icon_down.png'" @click="show=false"></image>
  32. </view>
  33. <view class="dbox-status adfac" :class="{'dwc':dto.status===0,'ywc':dto.status===1}">
  34. <image :src="imgBase+'questionnaire_icon_dwc.png'" v-if="dto.status===0"></image>
  35. <image :src="imgBase+'questionnaire_icon_ywc.png'" v-else-if="dto.status===1"></image>
  36. <text>{{dto.status===0?'待完成':dto.status===1?'已完成':''}}</text>
  37. </view>
  38. <view class="dbox-menu adf">
  39. <view class="dbox-menu-pre adffcac" v-for="(item,index) in menuList" :key="index" @click="handleMenuClick(index)">
  40. <image :src="item.img"></image>
  41. <text>{{item.text}}</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <cus-notice title="问卷答题说明" :show="noticeShow" :content="noticeContent"
  47. @close="noticeShow=false" @handleKnow="handleKnow"></cus-notice>
  48. <cus-team-user :show="teamUserShow" :list="teamUserList" @close="teamUserShow=false"></cus-team-user>
  49. <cus-team-info :show="teamInfoShow" :teamInfo="teamInfo" @close="teamInfoShow=false"></cus-team-info>
  50. </view>
  51. </template>
  52. <script>
  53. import CusNotice from '@/components/CusNotice/index.vue'
  54. import CusTeamUser from '@/components/CusTeamUser/index.vue'
  55. import CusTeamInfo from '@/components/CusTeamInfo/index.vue'
  56. import PageEmpty from '@/components/pageEmpty/index.vue'
  57. export default {
  58. components:{ CusNotice, CusTeamUser, CusTeamInfo, PageEmpty },
  59. props:{
  60. list:{
  61. typeof:Array,
  62. default:[]
  63. }
  64. },
  65. data(){
  66. return {
  67. show:false,
  68. noticeShow:false,
  69. teamInfoShow:false,
  70. teamUserShow:false,
  71. dto:null,
  72. menuList:[
  73. {
  74. img:this.$imgBase+'questionnaire_users.png',
  75. text:'团队成员'
  76. },
  77. {
  78. img:this.$imgBase+'questionnaire_share.png',
  79. text:'分享问卷'
  80. },
  81. {
  82. img:this.$imgBase+'questionnaire_info.png',
  83. text:'团队信息'
  84. },
  85. {
  86. img:this.$imgBase+'questionnaire_report.png',
  87. text:'查看报告'
  88. }
  89. ],
  90. teamUserList:[
  91. {
  92. name:'张三',
  93. email:'2233983769@qq.com',
  94. type:1,
  95. status:0
  96. },
  97. {
  98. name:'李四',
  99. email:'2233983769@qq.com',
  100. type:2,
  101. status:0
  102. },
  103. {
  104. name:'王五',
  105. email:'2233983769@qq.com',
  106. type:3,
  107. status:1
  108. },
  109. {
  110. name:'赵六',
  111. email:'2233983769@qq.com',
  112. type:1,
  113. status:1
  114. }
  115. ],
  116. teamInfo:null,
  117. noticeContent:`Transcend International PERILL Assessment is designed to provide insight into the key factors that underpin high value-creating team. It consists of six elements, focusing on Purpose & Motivation, External Systems and Processes, Relationships, Internal Systems and Processes, Learning Processes, Leadership Qualities and Behaviours.
  118. 创衡国际PERILL团队发展动态评估旨在深入了解支撑高价值团队的关键因素。这些关键因素涵盖六个维度:宗旨和动机、外部流程/系统和结构、人际关系、外部流程/系统和结构、学习、领导力。
  119. <br/>
  120. All information will be kept confidential.
  121. 您所填写的所有信息将被保密的。
  122. <br/>
  123. The following statements in the assessment describe the ideal state of a team. Please score the actual performance of the team being tested on each statement from two perspectives:
  124. 以下问卷中的各条陈述是对团队理想状态的描述,请您对受测团队当下在每项描述上所呈现的实际表现从两个角度进行打分:
  125. <br/>
  126. 1. Agreement: There are 5 levels ranging from 1 to 5. Score of 5 if you completely agree that the team has reached the statement. Score of 1 if you completely disagree.
  127. 1、同意度:1-5分共5个等级,假如您完全同意该团队当下达到了所描述的状态为5分,假如您完全不同意该团队当下达到了所描述的状态为1分
  128. `
  129. }
  130. },
  131. methods:{
  132. scrolltolower(){
  133. this.$emit('scrolltolower')
  134. },
  135. showDialog(item){
  136. this.dto = item;
  137. this.show = true;
  138. this.$emit('showDialogFn',item);
  139. },
  140. showNotice(item){
  141. this.dto = item;
  142. this.noticeShow = true;
  143. },
  144. handleMenuClick(type){
  145. if(type===0) this.teamUserShow = true
  146. else if(type===2) this.teamInfoShow = true
  147. },
  148. handleKnow(){
  149. uni.navigateTo({
  150. url:'/pagesPublish/questionnaireFill?teamQuestionnaireId='+this.dto.teamQuestionnaireId+'&teamId='+this.dto.teamId+'&type='+this.dto.type+'&turnType=questionnaire'
  151. })
  152. }
  153. }
  154. }
  155. </script>
  156. <style scoped lang="scss">
  157. .qbox{
  158. width: 100%;
  159. height: 100%;
  160. flex: 1;
  161. .list{
  162. flex: 1;
  163. margin-top: 20rpx;
  164. overflow: hidden;
  165. &-item{
  166. width: 100%;
  167. background: #FFFFFF;
  168. border-radius: 24rpx;
  169. margin-top: 20rpx;
  170. padding: 99rpx 24rpx 19rpx;
  171. box-sizing: border-box;
  172. position: relative;
  173. display: block;
  174. .status{
  175. width: 164rpx;
  176. height: 80rpx;
  177. padding: 14rpx 0 0 15rpx;
  178. box-sizing: border-box;
  179. position: absolute;
  180. left: 0;
  181. top: 0;
  182. image{
  183. width: 26rpx;
  184. height: 26rpx;
  185. }
  186. text{
  187. font-family: PingFangSC, PingFang SC;
  188. font-weight: 400;
  189. font-size: 24rpx;
  190. color: #FFFFFF;
  191. line-height: 30rpx;
  192. margin-left: 12rpx;
  193. }
  194. &.dwc{
  195. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_dwc.png') no-repeat;
  196. background-size: 100% 100%;
  197. text{
  198. color: #193D59;
  199. }
  200. }
  201. &.ywc{
  202. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_ywc.png') no-repeat;
  203. background-size: 100% 100%;
  204. }
  205. }
  206. .expand{
  207. width: 32rpx;
  208. height: 32rpx;
  209. position: absolute;
  210. top: 24rpx;
  211. right: 32rpx;
  212. }
  213. .title{
  214. font-family: PingFang-SC, PingFang-SC;
  215. font-weight: bold;
  216. font-size: 32rpx;
  217. color: #002846;
  218. line-height: 32rpx;
  219. }
  220. .name{
  221. font-family: PingFangSC, PingFang SC;
  222. font-weight: 400;
  223. font-size: 24rpx;
  224. color: #667E90;
  225. line-height: 24rpx;
  226. margin-top: 32rpx;
  227. }
  228. .bottom{
  229. margin-top: 30rpx;
  230. border-top: 1rpx solid #EFEFEF;
  231. padding-top: 20rpx;
  232. &-left{
  233. font-family: PingFangSC, PingFang SC;
  234. font-weight: 400;
  235. font-size: 24rpx;
  236. color: #667E90;
  237. line-height: 24rpx;
  238. }
  239. &-right{
  240. border-radius: 32rpx;
  241. background: linear-gradient( 90deg, #33A7A7 0%, #4DB2B2 100%);
  242. padding: 19rpx 22rpx;
  243. font-family: PingFangSC, PingFang SC;
  244. font-weight: 400;
  245. font-size: 26rpx;
  246. color: #FFFFFF;
  247. line-height: 26rpx;
  248. letter-spacing: 2rpx;
  249. }
  250. }
  251. }
  252. }
  253. .empty{
  254. flex: 1;
  255. }
  256. .dialog{
  257. position: fixed;
  258. left: 0;
  259. right: 0;
  260. top: 0;
  261. bottom: 0;
  262. background: rgba(0, 0, 0, .4);
  263. z-index: 1001;
  264. justify-content: flex-end;
  265. .dbox{
  266. width: 100%;
  267. height: 738rpx;
  268. background: #FFFFFF;
  269. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0,0,0,0.07);
  270. border-radius: 24rpx 24rpx 0rpx 0rpx;
  271. padding: 48rpx 30rpx 0;
  272. box-sizing: border-box;
  273. &-top{
  274. &-title{
  275. width: calc(100% - 60rpx);
  276. font-family: PingFang-SC, PingFang-SC;
  277. font-weight: bold;
  278. font-size: 32rpx;
  279. color: #002846;
  280. line-height: 40rpx;
  281. }
  282. &-expand{
  283. width: 32rpx;
  284. height: 32rpx;
  285. transform: rotate(180deg);
  286. }
  287. }
  288. &-status{
  289. width: 140rpx;
  290. margin-top: 28rpx;
  291. border-radius: 16rpx;
  292. padding: 11rpx 15rpx;
  293. box-sizing: border-box;
  294. &.dwc{
  295. background: #BA9B31;
  296. }
  297. &.ywc{
  298. background: #64BBBB;
  299. }
  300. image{
  301. width: 26rpx;
  302. height: 26rpx;
  303. }
  304. text{
  305. font-family: PingFangSC, PingFang SC;
  306. font-weight: 400;
  307. font-size: 24rpx;
  308. color: #193D59;
  309. line-height: 24rpx;
  310. margin-left: 12rpx;
  311. }
  312. }
  313. &-menu{
  314. margin-top: 43rpx;
  315. overflow: hidden;
  316. flex-wrap: wrap;
  317. justify-content: space-between;
  318. &-pre{
  319. width: calc(25% - 22.5rpx);
  320. background: #F7F8FA;
  321. border-radius: 24rpx;
  322. padding: 30rpx 20rpx;
  323. margin-top: 24rpx;
  324. box-sizing: border-box;
  325. image{
  326. width: 42rpx;
  327. height: 42rpx;
  328. }
  329. text{
  330. font-family: PingFangSC, PingFang SC;
  331. font-weight: 400;
  332. font-size: 24rpx;
  333. color: #002846;
  334. line-height: 24rpx;
  335. text-align: center;
  336. margin-top: 24rpx;
  337. }
  338. }
  339. }
  340. }
  341. }
  342. }
  343. </style>