index.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <div class="content-container">
  3. <el-row class="title-bar">
  4. <p class="page-title">消息管理</p>
  5. </el-row>
  6. <el-row class="counter-wrap">
  7. <el-col :span="4" class="left-counter-wrap">
  8. <LeftUtil @selectItem="selectItem" />
  9. </el-col>
  10. <el-col :span="20" class="right-counter-wrap">
  11. <msg-list ref="MsgList" />
  12. </el-col>
  13. </el-row>
  14. </div>
  15. </template>
  16. <script>
  17. import LeftUtil from './leftUtil.vue'
  18. import MsgList from './msgList.vue'
  19. export default {
  20. components: {
  21. LeftUtil,
  22. MsgList
  23. },
  24. data() {
  25. return {
  26. dataList: [],
  27. conditions: {
  28. page: 1,
  29. limit: 10,
  30. total: 0,
  31. keywords: ''
  32. }
  33. }
  34. },
  35. mounted() {
  36. },
  37. methods: {
  38. selectItem(data) {
  39. this.$refs['MsgList'].loadData(data)
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .content-container {
  46. .title-bar {
  47. overflow: hidden;
  48. margin-bottom: 15px;
  49. .page-title {
  50. padding: 0;
  51. margin: 15px 15px 0 15px;
  52. font-size: 20px;
  53. color: #FFF;
  54. }
  55. }
  56. }
  57. </style>