index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <div class="container">
  3. <div class="header">
  4. <el-button class="onlineUser" @click="activeShow()">
  5. <i class="el-icon-user-solid"></i>在用账户
  6. </el-button>
  7. <el-button class="disableUser" @click="deactiveShow()">
  8. <i class="el-icon-user"></i>停用账户
  9. </el-button>
  10. <div class="searchBox">
  11. <el-input v-model="input" placeholder="用户名;手机;单位" suffix-icon="el-icon-search"></el-input>
  12. </div>
  13. <el-button class="addUser">
  14. <i class="el-icon-user"></i>添加用户
  15. </el-button>
  16. </div>
  17. <div class="showTable">
  18. <activeuser v-show="show"></activeuser>
  19. <deactiveuser v-show="show1"></deactiveuser>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. import activeuser from './tables/activeUser'
  25. import deactiveuser from './tables/deactiveUser'
  26. import table3 from './tables/table3'
  27. import userinfo from './messageDialog/userInfo'
  28. export default {
  29. name: "personManagement",
  30. components: { activeuser, deactiveuser, table3, userinfo, },
  31. data() {
  32. return {
  33. input: '',
  34. tabledata: [],
  35. show: true,
  36. show1: false,
  37. total: 0,
  38. currentPage: 1
  39. };
  40. },
  41. methods: {
  42. activeShow() {
  43. this.show = true;
  44. this.show1 = false;
  45. },
  46. deactiveShow() {
  47. this.show = false;
  48. this.show1 = true;
  49. },
  50. }
  51. };
  52. </script>
  53. <style lang="less" scoped>
  54. .container {
  55. position: fixed;
  56. left: 218px;
  57. top: 140px;
  58. right: 16px;
  59. height: -webkit-fill-available;
  60. margin-bottom: 20px;
  61. line-height: 20px;
  62. background-color: rgba(255, 255, 255, 1);
  63. color: rgba(16, 16, 16, 1);
  64. font-size: 14px;
  65. text-align: center;
  66. box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
  67. .header {
  68. height: 59px;
  69. left: 218px;
  70. top: 125px;
  71. right: 16px;
  72. .onlineUser {
  73. position: absolute;
  74. top: 15px;
  75. left: 20px;
  76. bottom: 4px;
  77. width: 116px;
  78. height: 40px;
  79. line-height: 20px;
  80. border-radius: 3px 3px 0px 0px;
  81. //background-color: rgba(255, 255, 255, 1);
  82. color: rgba(0, 0, 0, 0.973);
  83. font-size: 14px;
  84. text-align: center;
  85. //border: 1px solid rgba(187, 187, 187, 1);
  86. }
  87. .disableUser {
  88. position: absolute;
  89. top: 15px;
  90. left: 135px;
  91. bottom: 4px;
  92. width: 116px;
  93. height: 40px;
  94. line-height: 20px;
  95. border-radius: 3px 3px 0px 0px;
  96. //background-color: rgba(255, 255, 255, 1);
  97. color: rgba(0, 0, 0, 0.973);
  98. font-size: 14px;
  99. text-align: center;
  100. //border: 1px solid rgba(187, 187, 187, 1);
  101. }
  102. .searchBox {
  103. position: absolute;
  104. top: 16px;
  105. right: 141px;
  106. bottom: 11px;
  107. width: 224px;
  108. height: 30px;
  109. line-height: 20px;
  110. border-radius: 3px;
  111. background-color: rgba(255, 255, 255, 1);
  112. color: rgba(16, 16, 16, 1);
  113. font-size: 14px;
  114. text-align: center;
  115. border: 1px solid rgba(217, 217, 217, 1);
  116. }
  117. .addUser {
  118. position: absolute;
  119. right: 16px;
  120. top: 17px;
  121. width: 113px;
  122. height: 40px;
  123. border-radius: 4px;
  124. background-color: rgba(64, 149, 229, 1);
  125. color: rgba(255, 255, 255, 1);
  126. font-size: 14px;
  127. text-align: center;
  128. }
  129. }
  130. .showTable {
  131. padding: 10px 16px 0 20px;
  132. //box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
  133. }
  134. }
  135. </style>