right.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <template>
  2. <div id="right">
  3. <el-col :span="24" class="rightTop"
  4. ><span class="title">{{ title }}</span></el-col
  5. >
  6. <el-col :span="24" class="context">
  7. <el-tabs v-model="activeName" @tab-click="handleClick">
  8. <el-tab-pane label="待审用户" name="first">
  9. <el-col :span="24" class="list">
  10. <el-col :span="24" class="daishenuser" v-for="(item, index) in shenheList" :key="index">
  11. <el-col :span="24" class="fbListTop">
  12. <el-col :span="20">登录名称 {{ item.name }}</el-col>
  13. <el-col :span="4">{{ item.date }}</el-col>
  14. </el-col>
  15. <el-col :span="24" class="fbListCenter">
  16. <el-col :span="6" class="fbListCenterC">
  17. <el-col :span="24" class="listname"> {{ item.name }}</el-col>
  18. <el-col :span="24" class="listtype"> 类别:{{ item.type }}</el-col>
  19. <el-col :span="24" class="listphone"> 电话:{{ item.phone }}</el-col>
  20. </el-col>
  21. <el-col :span="18" class="fbListCenterR"
  22. ><span>{{ item.user }}</span></el-col
  23. >
  24. </el-col>
  25. </el-col>
  26. </el-col>
  27. <el-col class="page">
  28. <el-pagination
  29. @size-change="handleSizeChange"
  30. @current-change="handleCurrentChange"
  31. :current-page="currentPage"
  32. layout="total, prev, pager, next, jumper"
  33. :total="1"
  34. >
  35. </el-pagination>
  36. </el-col>
  37. </el-tab-pane>
  38. <el-tab-pane label="已审用户" name="second">
  39. <el-col :span="24" class="list">
  40. <el-col :span="24" class="daishenuser" v-for="(item, index) in weishenheList" :key="index">
  41. <el-col :span="24" class="fbListTop">
  42. <el-col :span="20">登录名称 {{ item.name }}</el-col>
  43. <el-col :span="4">{{ item.date }}</el-col>
  44. </el-col>
  45. <el-col :span="24" class="fbListCenter">
  46. <el-col :span="6" class="fbListCenterC">
  47. <el-col :span="24" class="listname"> {{ item.name }}</el-col>
  48. <el-col :span="24" class="listtype"> 类别:{{ item.type }}</el-col>
  49. <el-col :span="24" class="listphone"> 电话:{{ item.phone }}</el-col>
  50. </el-col>
  51. <el-col :span="18" class="fbListCenterR"
  52. ><span>{{ item.user }}</span></el-col
  53. >
  54. </el-col>
  55. </el-col>
  56. </el-col>
  57. <el-col class="page">
  58. <el-pagination
  59. @size-change="handleSizeChange"
  60. @current-change="handleCurrentChange"
  61. :current-page="currentPage"
  62. layout="total, prev, pager, next, jumper"
  63. :total="1"
  64. >
  65. </el-pagination>
  66. </el-col>
  67. </el-tab-pane>
  68. </el-tabs>
  69. </el-col>
  70. </div>
  71. </template>
  72. <script>
  73. export default {
  74. name: 'right',
  75. props: {
  76. shenheList: null,
  77. weishenheList: null,
  78. },
  79. components: {},
  80. data: () => ({
  81. title: '用户列表',
  82. activeName: 'first',
  83. currentPage: 1,
  84. }),
  85. created() {},
  86. computed: {},
  87. methods: {
  88. handleClick(tab, event) {
  89. console.log(tab, event);
  90. },
  91. handleSizeChange(val) {
  92. console.log(`每页 ${val} 条`);
  93. },
  94. handleCurrentChange(val) {
  95. console.log(`当前页: ${val}`);
  96. },
  97. },
  98. };
  99. </script>
  100. <style lang="less" scoped>
  101. .rightTop {
  102. height: 60px;
  103. line-height: 60px;
  104. border-bottom: 1px solid #215299;
  105. }
  106. .rightTop .title {
  107. width: 130px;
  108. height: 60px;
  109. float: left;
  110. color: rgb(255, 255, 255);
  111. font-size: 18px;
  112. text-align: center;
  113. font-family: 微软雅黑, Tahoma, Arial, Helvetica, STHeiti;
  114. background: rgb(33, 82, 153);
  115. }
  116. .context {
  117. margin: 20px 30px 0 30px;
  118. width: 890px;
  119. }
  120. .list {
  121. height: 660px;
  122. }
  123. .daishenuser {
  124. width: 890px;
  125. height: 145px;
  126. border: 1px solid #ccc;
  127. margin-top: 20px;
  128. }
  129. .fbListTop {
  130. height: 43px;
  131. margin-left: 1px;
  132. background: #fafafa;
  133. line-height: 43px;
  134. text-indent: 10px;
  135. font-size: 13px;
  136. color: #888888;
  137. width: 887px;
  138. }
  139. .fbListCenter {
  140. width: 870px;
  141. height: 119px;
  142. margin: 20px 0 0 12px;
  143. }
  144. .fbListCenterC {
  145. width: 196px;
  146. border-right: 1px solid #ccc;
  147. float: left;
  148. padding-right: 20px;
  149. height: 70px;
  150. text-overflow: ellipsis;
  151. white-space: nowrap;
  152. overflow: hidden;
  153. }
  154. .fbListCenterR {
  155. border-left: 1px solid #ccc;
  156. width: 125px;
  157. height: 70px;
  158. float: left;
  159. }
  160. .fbListCenterR span {
  161. margin-left: 20px;
  162. font-size: 14px;
  163. color: #215299;
  164. float: left;
  165. cursor: pointer;
  166. }
  167. .listName {
  168. width: 196px;
  169. text-overflow: ellipsis;
  170. white-space: nowrap;
  171. overflow: hidden;
  172. height: 30px;
  173. font-size: 16px;
  174. color: #555555;
  175. }
  176. .listtype {
  177. width: 196px;
  178. text-overflow: ellipsis;
  179. white-space: nowrap;
  180. overflow: hidden;
  181. font-size: 16px;
  182. color: #555555;
  183. height: 30p;
  184. }
  185. .listphone {
  186. height: 30px;
  187. font-size: 16px;
  188. color: #fe0000;
  189. width: 196px;
  190. text-overflow: ellipsis;
  191. white-space: nowrap;
  192. overflow: hidden;
  193. }
  194. .page {
  195. margin: 30px 0 30px 0;
  196. text-align: center;
  197. }
  198. </style>