index.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. @import '../../static/_asset-config';
  75. .dialog{
  76. position: fixed;
  77. left: 0;
  78. right: 0;
  79. top: 0;
  80. bottom: 0;
  81. z-index: 1001;
  82. background: rgba(0,0,0,.4);
  83. justify-content: flex-end;
  84. &-box{
  85. width: 100%;
  86. background: #F7F7F7;
  87. border-radius: 24rpx 24rpx 0rpx 0rpx;
  88. padding: 30rpx 24rpx 50rpx;
  89. box-sizing: border-box;
  90. position: relative;
  91. &-title{
  92. font-family: PingFang-SC, PingFang-SC;
  93. font-weight: bold;
  94. font-size: 32rpx;
  95. color: #002846;
  96. line-height: 32rpx;
  97. text-align: center;
  98. }
  99. &-close{
  100. width: 48rpx;
  101. height: 48rpx;
  102. position: absolute;
  103. top: 30rpx;
  104. right: 30rpx;
  105. }
  106. &-bottom{
  107. width: 100%;
  108. height: 88rpx;
  109. background: rgba(25,156,156,0.1);
  110. border-radius: 44rpx;
  111. font-family: PingFang-SC, PingFang-SC;
  112. font-weight: bold;
  113. font-size: 32rpx;
  114. color: #009191;
  115. line-height: 88rpx;
  116. text-align: center;
  117. margin-top: 40rpx;
  118. }
  119. &-list{
  120. height: 900rpx;
  121. margin-top: 40rpx;
  122. overflow-y: auto;
  123. &-item{
  124. background: #FFFFFF;
  125. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  126. border-radius: 24rpx;
  127. margin-top: 20rpx;
  128. position: relative;
  129. padding: 36rpx 24rpx;
  130. &-status{
  131. padding: 11rpx 16rpx 29rpx 37rpx;
  132. box-sizing: border-box;
  133. position: absolute;
  134. top: 0;
  135. right: 0;
  136. font-family: PingFangSC, PingFang SC;
  137. font-weight: 400;
  138. font-size: 24rpx;
  139. color: #FFFFFF;
  140. line-height: 24rpx;
  141. &.wzd{
  142. background: asset-image('team_user_wzd.png') no-repeat;
  143. background-size: 100% 100%;
  144. color: #193D59;
  145. }
  146. &.yzd{
  147. background: asset-image('team_user_yzd.png') no-repeat;
  148. background-size: 100% 100%;
  149. }
  150. }
  151. &-name{
  152. text{
  153. font-family: PingFang-SC, PingFang-SC;
  154. font-weight: bold;
  155. font-size: 30rpx;
  156. color: #002846;
  157. line-height: 32rpx;
  158. padding-left: 16rpx;
  159. }
  160. .type{
  161. background: #FFF7DC;
  162. border-radius: 20rpx;
  163. padding: 5rpx 16rpx;
  164. font-family: PingFangSC, PingFang SC;
  165. font-weight: 400;
  166. font-size: 22rpx;
  167. color: #BA9B31;
  168. line-height: 30rpx;
  169. display: inline-block;
  170. margin-top: 20rpx;
  171. }
  172. }
  173. &-email{
  174. font-family: PingFangSC, PingFang SC;
  175. font-weight: 400;
  176. font-size: 28rpx;
  177. color: #667E90;
  178. line-height: 28rpx;
  179. margin-top: 24rpx;
  180. }
  181. &-delete{
  182. width: 42rpx;
  183. height: 42rpx;
  184. position: absolute;
  185. right: 24rpx;
  186. top: 70rpx;
  187. }
  188. }
  189. }
  190. }
  191. }
  192. </style>