receiveList.vue 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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="noticeShow=true">立即作答</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. },
  139. handleMenuClick(type){
  140. if(type===0) this.teamUserShow = true
  141. else if(type===2) this.teamInfoShow = true
  142. },
  143. handleKnow(){
  144. uni.navigateTo({
  145. url:'/pagesPublish/questionnaireFill'
  146. })
  147. }
  148. }
  149. }
  150. </script>
  151. <style scoped lang="scss">
  152. .qbox{
  153. width: 100%;
  154. height: 100%;
  155. flex: 1;
  156. .list{
  157. flex: 1;
  158. margin-top: 20rpx;
  159. overflow: hidden;
  160. &-item{
  161. width: 100%;
  162. background: #FFFFFF;
  163. border-radius: 24rpx;
  164. margin-top: 20rpx;
  165. padding: 99rpx 24rpx 19rpx;
  166. box-sizing: border-box;
  167. position: relative;
  168. display: block;
  169. .status{
  170. width: 164rpx;
  171. height: 80rpx;
  172. padding: 14rpx 0 0 15rpx;
  173. box-sizing: border-box;
  174. position: absolute;
  175. left: 0;
  176. top: 0;
  177. image{
  178. width: 26rpx;
  179. height: 26rpx;
  180. }
  181. text{
  182. font-family: PingFangSC, PingFang SC;
  183. font-weight: 400;
  184. font-size: 24rpx;
  185. color: #FFFFFF;
  186. line-height: 24rpx;
  187. margin-left: 12rpx;
  188. }
  189. &.dwc{
  190. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_dwc.png') no-repeat;
  191. background-size: 100% 100%;
  192. }
  193. &.ywc{
  194. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_ywc.png') no-repeat;
  195. background-size: 100% 100%;
  196. }
  197. }
  198. .expand{
  199. width: 32rpx;
  200. height: 32rpx;
  201. position: absolute;
  202. top: 24rpx;
  203. right: 32rpx;
  204. }
  205. .title{
  206. font-family: PingFang-SC, PingFang-SC;
  207. font-weight: bold;
  208. font-size: 32rpx;
  209. color: #002846;
  210. line-height: 32rpx;
  211. }
  212. .name{
  213. font-family: PingFangSC, PingFang SC;
  214. font-weight: 400;
  215. font-size: 24rpx;
  216. color: #667E90;
  217. line-height: 24rpx;
  218. margin-top: 32rpx;
  219. }
  220. .bottom{
  221. margin-top: 30rpx;
  222. border-top: 1rpx solid #EFEFEF;
  223. padding-top: 20rpx;
  224. &-left{
  225. font-family: PingFangSC, PingFang SC;
  226. font-weight: 400;
  227. font-size: 24rpx;
  228. color: #667E90;
  229. line-height: 24rpx;
  230. }
  231. &-right{
  232. border-radius: 32rpx;
  233. background: rgba(144, 74, 135, .11);
  234. padding: 19rpx 22rpx;
  235. font-family: PingFangSC, PingFang SC;
  236. font-weight: 400;
  237. font-size: 26rpx;
  238. color: #761E6A;
  239. line-height: 26rpx;
  240. letter-spacing: 2rpx;
  241. }
  242. }
  243. }
  244. }
  245. .empty{
  246. flex: 1;
  247. }
  248. .dialog{
  249. position: fixed;
  250. left: 0;
  251. right: 0;
  252. top: 0;
  253. bottom: 0;
  254. background: rgba(0, 0, 0, .4);
  255. z-index: 1001;
  256. justify-content: flex-end;
  257. .dbox{
  258. width: 100%;
  259. height: 738rpx;
  260. background: #FFFFFF;
  261. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0,0,0,0.07);
  262. border-radius: 24rpx 24rpx 0rpx 0rpx;
  263. padding: 48rpx 30rpx 0;
  264. box-sizing: border-box;
  265. &-top{
  266. &-title{
  267. width: calc(100% - 60rpx);
  268. font-family: PingFang-SC, PingFang-SC;
  269. font-weight: bold;
  270. font-size: 32rpx;
  271. color: #002846;
  272. line-height: 40rpx;
  273. }
  274. &-expand{
  275. width: 32rpx;
  276. height: 32rpx;
  277. transform: rotate(180deg);
  278. }
  279. }
  280. &-status{
  281. width: 140rpx;
  282. margin-top: 28rpx;
  283. border-radius: 16rpx;
  284. padding: 11rpx 15rpx;
  285. box-sizing: border-box;
  286. &.dwc{
  287. background: #AD78A6;
  288. }
  289. &.ywc{
  290. background: #64BBBB;
  291. }
  292. image{
  293. width: 26rpx;
  294. height: 26rpx;
  295. }
  296. text{
  297. font-family: PingFangSC, PingFang SC;
  298. font-weight: 400;
  299. font-size: 24rpx;
  300. color: #FFFFFF;
  301. line-height: 24rpx;
  302. margin-left: 12rpx;
  303. }
  304. }
  305. &-menu{
  306. margin-top: 43rpx;
  307. overflow: hidden;
  308. flex-wrap: wrap;
  309. justify-content: space-between;
  310. &-pre{
  311. width: calc(25% - 22.5rpx);
  312. background: #F7F8FA;
  313. border-radius: 24rpx;
  314. padding: 30rpx 20rpx;
  315. margin-top: 24rpx;
  316. box-sizing: border-box;
  317. image{
  318. width: 42rpx;
  319. height: 42rpx;
  320. }
  321. text{
  322. font-family: PingFangSC, PingFang SC;
  323. font-weight: 400;
  324. font-size: 24rpx;
  325. color: #002846;
  326. line-height: 24rpx;
  327. text-align: center;
  328. margin-top: 24rpx;
  329. }
  330. }
  331. }
  332. }
  333. }
  334. }
  335. </style>