receiveList.vue 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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?type=questionnaire'
  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: 30rpx;
  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. text{
  193. color: #193D59;
  194. }
  195. }
  196. &.ywc{
  197. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_ywc.png') no-repeat;
  198. background-size: 100% 100%;
  199. }
  200. }
  201. .expand{
  202. width: 32rpx;
  203. height: 32rpx;
  204. position: absolute;
  205. top: 24rpx;
  206. right: 32rpx;
  207. }
  208. .title{
  209. font-family: PingFang-SC, PingFang-SC;
  210. font-weight: bold;
  211. font-size: 32rpx;
  212. color: #002846;
  213. line-height: 32rpx;
  214. }
  215. .name{
  216. font-family: PingFangSC, PingFang SC;
  217. font-weight: 400;
  218. font-size: 24rpx;
  219. color: #667E90;
  220. line-height: 24rpx;
  221. margin-top: 32rpx;
  222. }
  223. .bottom{
  224. margin-top: 30rpx;
  225. border-top: 1rpx solid #EFEFEF;
  226. padding-top: 20rpx;
  227. &-left{
  228. font-family: PingFangSC, PingFang SC;
  229. font-weight: 400;
  230. font-size: 24rpx;
  231. color: #667E90;
  232. line-height: 24rpx;
  233. }
  234. &-right{
  235. border-radius: 32rpx;
  236. background: linear-gradient( 90deg, #33A7A7 0%, #4DB2B2 100%);
  237. padding: 19rpx 22rpx;
  238. font-family: PingFangSC, PingFang SC;
  239. font-weight: 400;
  240. font-size: 26rpx;
  241. color: #FFFFFF;
  242. line-height: 26rpx;
  243. letter-spacing: 2rpx;
  244. }
  245. }
  246. }
  247. }
  248. .empty{
  249. flex: 1;
  250. }
  251. .dialog{
  252. position: fixed;
  253. left: 0;
  254. right: 0;
  255. top: 0;
  256. bottom: 0;
  257. background: rgba(0, 0, 0, .4);
  258. z-index: 1001;
  259. justify-content: flex-end;
  260. .dbox{
  261. width: 100%;
  262. height: 738rpx;
  263. background: #FFFFFF;
  264. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0,0,0,0.07);
  265. border-radius: 24rpx 24rpx 0rpx 0rpx;
  266. padding: 48rpx 30rpx 0;
  267. box-sizing: border-box;
  268. &-top{
  269. &-title{
  270. width: calc(100% - 60rpx);
  271. font-family: PingFang-SC, PingFang-SC;
  272. font-weight: bold;
  273. font-size: 32rpx;
  274. color: #002846;
  275. line-height: 40rpx;
  276. }
  277. &-expand{
  278. width: 32rpx;
  279. height: 32rpx;
  280. transform: rotate(180deg);
  281. }
  282. }
  283. &-status{
  284. width: 140rpx;
  285. margin-top: 28rpx;
  286. border-radius: 16rpx;
  287. padding: 11rpx 15rpx;
  288. box-sizing: border-box;
  289. &.dwc{
  290. background: #AD78A6;
  291. }
  292. &.ywc{
  293. background: #64BBBB;
  294. }
  295. image{
  296. width: 26rpx;
  297. height: 26rpx;
  298. }
  299. text{
  300. font-family: PingFangSC, PingFang SC;
  301. font-weight: 400;
  302. font-size: 24rpx;
  303. color: #FFFFFF;
  304. line-height: 24rpx;
  305. margin-left: 12rpx;
  306. }
  307. }
  308. &-menu{
  309. margin-top: 43rpx;
  310. overflow: hidden;
  311. flex-wrap: wrap;
  312. justify-content: space-between;
  313. &-pre{
  314. width: calc(25% - 22.5rpx);
  315. background: #F7F8FA;
  316. border-radius: 24rpx;
  317. padding: 30rpx 20rpx;
  318. margin-top: 24rpx;
  319. box-sizing: border-box;
  320. image{
  321. width: 42rpx;
  322. height: 42rpx;
  323. }
  324. text{
  325. font-family: PingFangSC, PingFang SC;
  326. font-weight: 400;
  327. font-size: 24rpx;
  328. color: #002846;
  329. line-height: 24rpx;
  330. text-align: center;
  331. margin-top: 24rpx;
  332. }
  333. }
  334. }
  335. }
  336. }
  337. }
  338. </style>