跳板机管理web端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.1 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. <template>
  2. <section>
  3. <el-col :span="24" class="toolbar">
  4. <el-form :inline="true" :model="formInline" class="demo-form-inline">
  5. <el-form-item>
  6. <el-date-picker v-model="value1" type="date" placeholder="开始日期" :picker-options="pickerOptions0">
  7. </el-date-picker>
  8. </el-form-item>
  9. <el-form-item>
  10. <el-date-picker v-model="value1" type="date" placeholder="结束日期" :picker-options="pickerOptions0">
  11. </el-date-picker>
  12. </el-form-item>
  13. <el-form-item>
  14. <el-input v-model="formInline.user" placeholder="姓名"></el-input>
  15. </el-form-item>
  16. <el-form-item>
  17. <el-button type="primary">查询</el-button>
  18. </el-form-item>
  19. </el-form>
  20. </el-col>
  21. <el-table :data="tableData" style="width: 100%">
  22. <el-table-column prop="date" label="日期" width="180">
  23. </el-table-column>
  24. <el-table-column prop="name" label="姓名" width="180">
  25. </el-table-column>
  26. <el-table-column prop="address" label="地址">
  27. </el-table-column>
  28. </el-table>
  29. <el-col :span="24" class="toolbar" style="padding-bottom:10px;">
  30. <el-pagination :current-page="5" :page-sizes="[100, 200, 300, 400]" :page-size="100" layout="total, sizes, prev, pager, next, jumper"
  31. :total="400" style="float:right">
  32. </el-pagination>
  33. </el-col>
  34. </section>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. formInline: {
  41. user: ''
  42. },
  43. pickerOptions0: {
  44. disabledDate(time) {
  45. return time.getTime() < Date.now() - 8.64e7;
  46. }
  47. },
  48. value1:'',
  49. tableData: [{
  50. date: '2016-11-02',
  51. name: '123456',
  52. address: '123456'
  53. }, {
  54. date: '2016-11-02',
  55. name: '123456',
  56. address: '123456'
  57. }, {
  58. date: '2016-11-02',
  59. name: '123456',
  60. address: '123456'
  61. }, {
  62. date: '2016-11-02',
  63. name: '123456',
  64. address: '123456'
  65. }]
  66. }
  67. },
  68. methods: {
  69. }
  70. }
  71. </script>
  72. <style scoped>
  73. .toolbar .el-form-item {
  74. margin-bottom: 10px;
  75. }
  76. .toolbar {
  77. background: #fff;
  78. padding: 10px 10px 0px 10px;
  79. }
  80. </style>