index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view class="dialog adffc" v-if="show">
  3. <view class="dialog-box">
  4. <view class="dialog-box-title">{{title}}</view>
  5. <image class="dialog-box-close" :src="imgBase+'remind_close.png'" @click="close"></image>
  6. <view class="dialog-box-bottom" @click="addUser">添加人员</view>
  7. <view class="dialog-box-list">
  8. <view class="dialog-box-list-item" v-for="(item,index) in list" :key="index">
  9. <view class="dialog-box-list-item-status" :class="{'wzd':item.status===0,'yzd':item.status===1}">{{statusCfg[item.status]}}</view>
  10. <view class="dialog-box-list-item-name adfac">
  11. <text>{{item.realName}}</text>
  12. <view class="type">{{item.categoryName}}</view>
  13. </view>
  14. <view class="dialog-box-list-item-email">{{item.email}}</view>
  15. <image class="dialog-box-list-item-delete" :src="imgBase+'icon_delete.png'" @click="deleteUser(item,index)" v-if="deluser"></image>
  16. </view>
  17. </view>
  18. <view class="zt_btn" style="margin-top: 40rpx;" @click="handleConfirm">确定</view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props:{
  25. title:{
  26. typeof:String,
  27. default:'团队人员'
  28. },
  29. show:{
  30. typeof:Boolean,
  31. default:false
  32. },
  33. deluser:{
  34. typeof:Boolean,
  35. default:false
  36. },
  37. list:{
  38. typeof:Array,
  39. default:[]
  40. }
  41. },
  42. data(){
  43. return {
  44. statusCfg:{
  45. 0:'未作答',
  46. 1:'已作答'
  47. }
  48. }
  49. },
  50. methods:{
  51. close(){
  52. this.$emit('close')
  53. },
  54. deleteUser(item,index){
  55. this.$emit('deleteUser',{item,index})
  56. },
  57. addUser(){
  58. this.$emit('addUser')
  59. },
  60. handleConfirm(){
  61. this.$emit('handleConfirm')
  62. },
  63. }
  64. }
  65. </script>
  66. <style scoped lang="scss">
  67. .dialog{
  68. position: fixed;
  69. left: 0;
  70. right: 0;
  71. top: 0;
  72. bottom: 0;
  73. z-index: 1001;
  74. background: rgba(0,0,0,.4);
  75. justify-content: flex-end;
  76. &-box{
  77. width: 100%;
  78. background: #F7F7F7;
  79. border-radius: 24rpx 24rpx 0rpx 0rpx;
  80. padding: 30rpx 24rpx 50rpx;
  81. box-sizing: border-box;
  82. position: relative;
  83. &-title{
  84. font-family: PingFang-SC, PingFang-SC;
  85. font-weight: bold;
  86. font-size: 32rpx;
  87. color: #002846;
  88. line-height: 32rpx;
  89. text-align: center;
  90. }
  91. &-close{
  92. width: 48rpx;
  93. height: 48rpx;
  94. position: absolute;
  95. top: 30rpx;
  96. right: 30rpx;
  97. }
  98. &-bottom{
  99. width: 100%;
  100. height: 88rpx;
  101. background: rgba(25,156,156,0.1);
  102. border-radius: 44rpx;
  103. font-family: PingFang-SC, PingFang-SC;
  104. font-weight: bold;
  105. font-size: 32rpx;
  106. color: #009191;
  107. line-height: 88rpx;
  108. text-align: center;
  109. margin-top: 40rpx;
  110. }
  111. &-list{
  112. height: 900rpx;
  113. margin-top: 40rpx;
  114. overflow-y: auto;
  115. &-item{
  116. background: #FFFFFF;
  117. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  118. border-radius: 24rpx;
  119. margin-top: 20rpx;
  120. position: relative;
  121. padding: 36rpx 24rpx;
  122. &-status{
  123. padding: 11rpx 16rpx 29rpx 37rpx;
  124. box-sizing: border-box;
  125. position: absolute;
  126. top: 0;
  127. right: 0;
  128. font-family: PingFangSC, PingFang SC;
  129. font-weight: 400;
  130. font-size: 24rpx;
  131. color: #FFFFFF;
  132. line-height: 24rpx;
  133. &.wzd{
  134. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/team_user_wzd.png') no-repeat;
  135. background-size: 100% 100%;
  136. color: #193D59;
  137. }
  138. &.yzd{
  139. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/team_user_yzd.png') no-repeat;
  140. background-size: 100% 100%;
  141. }
  142. }
  143. &-name{
  144. text{
  145. font-family: PingFang-SC, PingFang-SC;
  146. font-weight: bold;
  147. font-size: 30rpx;
  148. color: #002846;
  149. line-height: 32rpx;
  150. }
  151. .type{
  152. margin-left: 20rpx;
  153. background: #FFF7DC;
  154. border-radius: 20rpx;
  155. padding: 5rpx 16rpx;
  156. font-family: PingFangSC, PingFang SC;
  157. font-weight: 400;
  158. font-size: 22rpx;
  159. color: #BA9B31;
  160. line-height: 30rpx;
  161. }
  162. }
  163. &-email{
  164. font-family: PingFangSC, PingFang SC;
  165. font-weight: 400;
  166. font-size: 28rpx;
  167. color: #667E90;
  168. line-height: 28rpx;
  169. margin-top: 24rpx;
  170. }
  171. &-delete{
  172. width: 42rpx;
  173. height: 42rpx;
  174. position: absolute;
  175. right: 24rpx;
  176. top: 70rpx;
  177. }
  178. }
  179. }
  180. }
  181. }
  182. </style>