index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <div class="layout-pd" >
  3. <el-row>
  4. <!--操作-->
  5. <el-col :xs="24" >
  6. <el-card style="text-align: center;font-weight: 600;font-size: large;">
  7. 信息发送列表
  8. </el-card>
  9. </el-col>
  10. <!--表格-->
  11. <el-col :xs="24" >
  12. <el-card style="height: 70vh" class="my-fill mt8" shadow="hover">
  13. <el-table ref="multipleTableRef"
  14. v-loading="Data.loading"
  15. stripe :data="Data.tableModel"
  16. row-key="id"
  17. style="width: 100%" >
  18. <el-table-column v-for="column in Data.dynamicColumns" :key="column.prop" :prop="column.prop" :label="column.label" />
  19. </el-table>
  20. <div class="my-flex my-flex-end" style="margin-top: 20px">
  21. <el-pagination
  22. v-model:currentPage="Data.pageInput.currentPage"
  23. v-model:page-size="Data.pageInput.pageSize"
  24. :total="Data.total"
  25. :page-sizes="[5, 10, 20, 50, 100]"
  26. small
  27. background
  28. @size-change="onSizeChange"
  29. @current-change="onCurrentChange"
  30. layout="total, sizes, prev, pager, next, jumper"
  31. />
  32. </div>
  33. </el-card>
  34. </el-col>
  35. </el-row>
  36. </div>
  37. </template>
  38. <script setup lang="ts" name="partsManagement/oilGun">
  39. import {onMounted, reactive, watch} from "vue";
  40. /**页面对象 */
  41. const Data = reactive({
  42. /** 选择框列表 */
  43. statusList : [] as any,
  44. supplierList : [] as any,
  45. /**加载显示 */
  46. loading: false,
  47. /**条件查询模块 */
  48. /**表格信息 */
  49. tableModel: [],
  50. /**动态表头 */
  51. dynamicColumns: [
  52. { prop: '', label: '发送ID' },
  53. { prop: '', label: '渠道' },
  54. { prop: '', label: '手机号' },
  55. { prop: '', label: '微信id' },
  56. { prop: '', label: '发送时间' },
  57. { prop: '', label: '发送内容' },
  58. { prop: '', label: '规则id' },
  59. { prop: '', label: '备注' },
  60. ],
  61. /**分页总数 */
  62. total: 0,
  63. /**分页标识 */
  64. pageInput:{
  65. currentPage: 1,
  66. pageSize: 10,
  67. },
  68. })
  69. /**
  70. * 页条变化
  71. * @param val
  72. */
  73. const onSizeChange = (val: number) => {
  74. Data.pageInput.pageSize = val
  75. // init()
  76. }
  77. /**
  78. * 页数 变化
  79. * @param val
  80. */
  81. const onCurrentChange = (val: number) => {
  82. Data.pageInput.currentPage = val
  83. // init()
  84. }
  85. </script>
  86. <style scoped lang="scss">
  87. .my-el-link {
  88. font-size: 14px;
  89. }
  90. .el-form .el-col.mb20 {
  91. margin: 0 !important;
  92. }
  93. .el-input, .el-select {
  94. width: 240px;
  95. }
  96. </style>