receiveList.vue 10 KB

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