messageList.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <template>
  2. <div class="right" :style="{ height: height, width: width }">
  3. <div class="up">
  4. <div class="left-up">
  5. <div class="up-title">🔍筛选搜索</div>
  6. <div class="up-input-title">
  7. 消息标题:<el-input v-model="input" class="up-input" placeholder="请输入内容"></el-input>
  8. </div>
  9. <div class="up-input-title-right">
  10. <span class="demonstration">发布时间:</span>
  11. <el-date-picker v-model="value2" type="datetimerange" class="up-input-right" :picker-options="pickerOptions"
  12. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" align="right">
  13. </el-date-picker>
  14. </div>
  15. </div>
  16. <div class="right-up">
  17. <div class="anniu">
  18. <el-button plain>重置</el-button>
  19. <el-button type="primary" plain>查询列表</el-button>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="down">
  24. <div class="down-add">
  25. <el-row :gutter="24">
  26. <el-col :span="22" class="down-title"> <i class="el-icon-tickets">消息列表</i> </el-col>
  27. <el-col :span="2"> <el-button>添加</el-button> </el-col>
  28. </el-row>
  29. </div>
  30. <div class="down-table">
  31. <el-table :data="tableData" border style="width: 100%" class="messagetable">
  32. <el-table-column
  33. prop="id"
  34. label="ID"
  35. >
  36. </el-table-column>
  37. <el-table-column
  38. prop="messageTitle"
  39. label="消息标题"
  40. >
  41. </el-table-column>
  42. <el-table-column
  43. prop="messageTitle"
  44. label="消息标题"
  45. >
  46. </el-table-column>
  47. <el-table-column
  48. prop="phoneNumber"
  49. label="手机号"
  50. >
  51. </el-table-column>
  52. <el-table-column
  53. prop="publishTime"
  54. label="发布时间"
  55. >
  56. </el-table-column>
  57. <el-table-column
  58. prop="operate"
  59. label="操作">
  60. </el-table-column>
  61. </el-table>
  62. </div>
  63. </div>
  64. <div class="bottom">
  65. <div class="bottom-page"><el-pagination background layout="prev, pager, next" :total="1"></el-pagination></div>
  66. <span class="bottom-number">共{{ 0 }}条 </span>
  67. </div>
  68. </div>
  69. </template>
  70. <script>
  71. <<<<<<< HEAD
  72. // import {getMessageList} from '../../mock/message-box.ts'
  73. export default {
  74. props: {
  75. },
  76. data() {
  77. return {
  78. chart: null
  79. }
  80. },
  81. mounted() {
  82. },
  83. beforeDestroy() {
  84. },
  85. methods: {
  86. }
  87. }
  88. =======
  89. export default {
  90. data() {
  91. return {
  92. tableData: []
  93. }
  94. }
  95. }
  96. >>>>>>> b30873e230bf17d674bfeb83ddfd5a0d3654db88
  97. </script>
  98. <style scoped>
  99. .up {
  100. width: 96%;
  101. height: 150px;
  102. margin-top: 20px;
  103. margin-left: 27px;
  104. border: 1px solid #ccc;
  105. }
  106. .up-title {
  107. margin-left: 20px;
  108. margin-top: 20px;
  109. }
  110. .up-input {
  111. width: 250px;
  112. margin-left: 15px;
  113. }
  114. .up-input-title {
  115. margin-top: 15px;
  116. margin-left: 40px;
  117. float: left;
  118. }
  119. .up-input-right {
  120. width: 500px;
  121. }
  122. .up-input-title-right {
  123. margin-left: 450px;
  124. margin-top: 15px;
  125. }
  126. .down{
  127. margin-top: 40px;
  128. }
  129. .down-add{
  130. padding: 10px;
  131. margin: 0 27px;
  132. border:1px solid #ccc ;
  133. border-radius: 2px
  134. }
  135. .down-title{
  136. padding-top: 10px;
  137. color: #303133;
  138. }
  139. .down-table{
  140. margin-top: 15px;
  141. text-align: center;
  142. margin: 35px 27px;
  143. }
  144. .el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
  145. word-break: break-word;
  146. /* background-color: #f8f8f9; */
  147. color: #515a6e;
  148. height: 40px;
  149. font-size: 13px;
  150. text-align: center;
  151. }
  152. .bottom-number{
  153. padding-top: 5px;
  154. color: #303133;
  155. float: right;
  156. }
  157. .bottom-page{
  158. float:right;
  159. }
  160. /**
  161. 自适应
  162. */
  163. .right {
  164. float: none;
  165. width: 100%;
  166. height: 100%;
  167. /* background-color: #9dc3e6; */
  168. }
  169. </style>