Index.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <style lang="scss">
  2. .apply {
  3. .filter {
  4. background: #fff;
  5. padding: 20px 20px 10px;
  6. border: 1px solid #ededed;
  7. border-radius: 2px;
  8. margin-bottom: 10px;
  9. margin-top: 10px;
  10. .el-form-item {
  11. margin-bottom: 10px;
  12. }
  13. .el-input,
  14. .el-select {
  15. width: 150px;
  16. }
  17. }
  18. thead {
  19. th {
  20. background: #eee;
  21. }
  22. }
  23. }
  24. </style>
  25. <template>
  26. <section class="apply">
  27. <p>系统管理 > 账号管理</p>
  28. <div class="filter">
  29. <el-form label-width="80px" :inline="true" size="small">
  30. <el-form-item label="用户名">
  31. <el-input placeholder="请输入用户/姓名" v-model="form.name"></el-input>
  32. </el-form-item>
  33. <el-form-item>
  34. <el-button type="primary" icon="el-icon-search">搜索</el-button>
  35. <el-button type="primary">新增账号</el-button>
  36. </el-form-item>
  37. </el-form>
  38. </div>
  39. <el-table class="table" :data="list" border style="width: 100%">
  40. <el-table-column type="selection" fixed="left" width="55"></el-table-column>
  41. <el-table-column prop="account" label="账号"></el-table-column>
  42. <el-table-column prop="name" label="姓名"></el-table-column>
  43. <el-table-column prop="permission" label="权限"></el-table-column>
  44. <el-table-column prop="date" label="创建时间"></el-table-column>
  45. <el-table-column prop="zip" width="300" label="操作">
  46. <template>
  47. <el-button size="mini" type="warning">编辑</el-button>
  48. <el-button size="mini" type="danger">删除</el-button>
  49. </template>
  50. </el-table-column>
  51. </el-table>
  52. <Page ref="pageButton" :total="total" @pageChange="gopage" />
  53. </section>
  54. </template>
  55. <script>
  56. import Page from "../../components/Page";
  57. export default {
  58. name: "account",
  59. components: {
  60. Page
  61. },
  62. data() {
  63. return {
  64. form: { name: "" },
  65. total: 1,
  66. list: [
  67. {
  68. account: "admin",
  69. name: "肖小肖",
  70. permission: "内容管理,培训管理",
  71. date: "2020-05-02 12:00:00"
  72. }
  73. ]
  74. };
  75. },
  76. methods: {},
  77. created() {}
  78. };
  79. </script>