index.vue 4.7 KB

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