userMange.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <div id="userMange">
  3. <el-row>
  4. <el-col :span="24" class="basic">
  5. <el-col :span="24" class="basicTop">
  6. <span>用户列表</span>
  7. </el-col>
  8. <el-col :span="24" class="basicInfo">
  9. <el-tabs v-model="activeName" @tab-click="handleClick">
  10. <el-tab-pane label="待审用户" name="first">
  11. <el-col :span="24" class="list">
  12. <el-col :span="24" class="shenheList" v-for="(item, index) in shenheList" :key="index">
  13. <el-col :span="20" class="name"> 登录名称:{{ item.name }} </el-col>
  14. <el-col :span="4" class="date">
  15. {{ item.date }}
  16. </el-col>
  17. <el-col :span="6" class="left">
  18. <el-col :span="24" class="title"> {{ item.title }}</el-col>
  19. <el-col :span="24" class="title">类别:{{ item.type }}</el-col>
  20. <el-col :span="24" class="title">电话:{{ item.tel }}</el-col>
  21. </el-col>
  22. <el-col :span="18" class="btn">
  23. <el-link :underline="false">审核用户</el-link>
  24. </el-col>
  25. </el-col>
  26. </el-col>
  27. <el-col :span="24" 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="shenheList" v-for="(item, index) in yishenList" :key="index">
  41. <el-col :span="20" class="name"> 登录名称:{{ item.name }} </el-col>
  42. <el-col :span="4" class="date">
  43. {{ item.date }}
  44. </el-col>
  45. <el-col :span="6" class="left">
  46. <el-col :span="24" class="title"> {{ item.title }}</el-col>
  47. <el-col :span="24" class="title">类别:{{ item.type }}</el-col>
  48. <el-col :span="24" class="title">电话:{{ item.tel }}</el-col>
  49. </el-col>
  50. <el-col :span="18" class="btn">
  51. <el-link :underline="false">查看详情</el-link>
  52. </el-col>
  53. </el-col>
  54. </el-col>
  55. <el-col :span="24" class="page">
  56. <el-pagination
  57. @size-change="handleSizeChange"
  58. @current-change="handleCurrentChange"
  59. :current-page="currentPage1"
  60. layout="total, prev, pager, next, jumper"
  61. :total="1"
  62. >
  63. </el-pagination>
  64. </el-col>
  65. </el-tab-pane>
  66. </el-tabs>
  67. </el-col>
  68. </el-col>
  69. </el-row>
  70. </div>
  71. </template>
  72. <script>
  73. export default {
  74. name: 'userMange',
  75. props: {
  76. shenheList: null,
  77. yishenList: null,
  78. },
  79. components: {},
  80. data: () => ({
  81. activeName: 'first',
  82. currentPage: 1,
  83. currentPage1: 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. .basicTop {
  102. height: 59px;
  103. border-bottom: 1px solid #215299;
  104. }
  105. .basicTop span {
  106. display: inline-block;
  107. width: 130px;
  108. height: 59px;
  109. text-align: center;
  110. line-height: 60px;
  111. background-color: #215299;
  112. color: #fff;
  113. font-size: 18px;
  114. }
  115. .basicInfo {
  116. padding: 20px 40px;
  117. }
  118. /deep/.el-tabs__header {
  119. margin: 0;
  120. }
  121. /deep/.el-tabs__item {
  122. font-size: 16px;
  123. color: #ccc;
  124. }
  125. /deep/.el-tabs__active-bar {
  126. background-color: #0165bb;
  127. }
  128. /deep/.el-tabs__item.is-active {
  129. color: #0165bb !important;
  130. }
  131. .list {
  132. margin: 20px 0 0 0;
  133. height: 808px;
  134. overflow: hidden;
  135. }
  136. .shenheList {
  137. border: 1px solid #ccc;
  138. margin: 0 0 20px 0;
  139. }
  140. .shenheList .name {
  141. height: 40px;
  142. line-height: 40px;
  143. padding: 0 10px;
  144. background: #fafafa;
  145. font-size: 13px;
  146. color: #888888;
  147. }
  148. .shenheList .date {
  149. height: 40px;
  150. line-height: 40px;
  151. text-align: center;
  152. background: #fafafa;
  153. font-size: 13px;
  154. color: #888;
  155. }
  156. .shenheList .left {
  157. height: 100px;
  158. margin: 20px 0;
  159. border-right: 2px solid #ccc;
  160. padding: 0 0 0 10px;
  161. }
  162. .shenheList .left .title {
  163. height: 30px;
  164. line-height: 30px;
  165. font-size: 16px;
  166. color: #555;
  167. }
  168. .shenheList .btn {
  169. height: 100px;
  170. margin: 20px 0;
  171. padding: 0 10px;
  172. }
  173. .shenheList .btn .el-link {
  174. font-size: 14px;
  175. color: #215299;
  176. }
  177. .page {
  178. height: 30px;
  179. line-height: 30px;
  180. margin: 40px 0;
  181. text-align: center;
  182. }
  183. </style>