index.vue 4.6 KB

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