|
@@ -1,13 +1,17 @@
|
|
|
<template>
|
|
|
<div class="right" :style="{ height: height, width: width }">
|
|
|
<div class="up">
|
|
|
+ <div>
|
|
|
+ <div class="up-title"><i class="el-icon-search"></i>筛选搜索</div>
|
|
|
+ <div class="btn">
|
|
|
+ <el-button plain>重置</el-button>
|
|
|
+ <el-button type="primary" plain>查询列表</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="left-up">
|
|
|
- <div class="up-title">🔍筛选搜索</div>
|
|
|
<div class="up-input-title">
|
|
|
消息标题:<el-input v-model="input" class="up-input" placeholder="请输入内容"></el-input>
|
|
|
-
|
|
|
</div>
|
|
|
-
|
|
|
<div class="up-input-title-right">
|
|
|
<span class="demonstration">发布时间:</span>
|
|
|
<el-date-picker v-model="value2" type="datetimerange" class="up-input-right" :picker-options="pickerOptions"
|
|
@@ -15,156 +19,194 @@
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="right-up">
|
|
|
- <div class="anniu">
|
|
|
- <el-button plain>重置</el-button>
|
|
|
- <el-button type="primary" plain>查询列表</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <div class="down">
|
|
|
-
|
|
|
- <div class="down-add">
|
|
|
- <el-row :gutter="24">
|
|
|
+ <div class="down">
|
|
|
+ <div class="down-add">
|
|
|
+ <el-row :gutter="24">
|
|
|
<el-col :span="22" class="down-title"> <i class="el-icon-tickets">消息列表</i> </el-col>
|
|
|
<el-col :span="2"> <el-button>添加</el-button> </el-col>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="down-table">
|
|
|
- <el-table :data="tableData" border style="width: 100%" class="messagetable">
|
|
|
- <el-table-column
|
|
|
- prop="id"
|
|
|
- label="ID"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="messageTitle"
|
|
|
- label="消息标题"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="messageTitle"
|
|
|
- label="消息标题"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="phoneNumber"
|
|
|
- label="手机号"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="publishTime"
|
|
|
- label="发布时间"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="operate"
|
|
|
- label="操作">
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
- <div class="bottom">
|
|
|
- <div class="bottom-page"><el-pagination background layout="prev, pager, next" :total="1"></el-pagination></div>
|
|
|
- <span class="bottom-number">共{{ 0 }}条 </span>
|
|
|
+ <div class="down-table">
|
|
|
+ <el-table :data="tableData" border style="width: 100%" class="messagetable">
|
|
|
+ <el-table-column prop="id" label="ID">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="messageTitle" label="消息标题">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="phoneNumber" label="手机号">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="publishTime" label="发布时间">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="operate" label="操作">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ <div class="bottom">
|
|
|
+ <div class="bottom-page"><el-pagination background layout="prev, pager, next" :total="1"></el-pagination></div>
|
|
|
+ <span class="bottom-number">共{{ 0 }}条 </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- tableData: []
|
|
|
- }
|
|
|
+ props: {
|
|
|
+
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ tableData: [],
|
|
|
+ input: "",
|
|
|
+ value2: "",
|
|
|
+ mock: "",
|
|
|
+ mockMessageList: [],
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getMockMessageList();
|
|
|
+ this.getTableList();
|
|
|
+ },
|
|
|
+ beforeDestroy() {
|
|
|
+
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getMockMessageList() {
|
|
|
+ var Mock = require('mockjs')
|
|
|
+ var data = Mock.mock({
|
|
|
+ 'list|1-50': [{
|
|
|
+ 'id|+1': 1,
|
|
|
+ 'messageTitle': '您的产品使用期限即将截止,如需继续使用产品请前往购…',
|
|
|
+ 'phoneNumber': '15888888888',
|
|
|
+ 'publishTime': '2022-05-03',
|
|
|
+ }]
|
|
|
+ })
|
|
|
+ this.mockMessageList = data;
|
|
|
+ },
|
|
|
+ getTableList() {
|
|
|
+ this.tableData = this.mockMessageList.list
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
.up {
|
|
|
width: 96%;
|
|
|
- height: 150px;
|
|
|
+ height: 170px;
|
|
|
margin-top: 20px;
|
|
|
- margin-left: 27px;
|
|
|
+ margin-left: 2%;
|
|
|
border: 1px solid #ccc;
|
|
|
+ border-radius: 4px;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.up-title {
|
|
|
+ font-size: 20px;
|
|
|
+ width: 20%;
|
|
|
margin-left: 20px;
|
|
|
margin-top: 20px;
|
|
|
+ float: left;
|
|
|
+}
|
|
|
+.btn{
|
|
|
+ float: right;
|
|
|
+ padding-right: 3%;
|
|
|
+ margin-top: 2.5%;
|
|
|
}
|
|
|
-
|
|
|
.up-input {
|
|
|
width: 250px;
|
|
|
margin-left: 15px;
|
|
|
}
|
|
|
|
|
|
.up-input-title {
|
|
|
- margin-top: 15px;
|
|
|
+
|
|
|
margin-left: 40px;
|
|
|
+
|
|
|
float: left;
|
|
|
}
|
|
|
|
|
|
.up-input-right {
|
|
|
+ margin-left: 15px;
|
|
|
width: 500px;
|
|
|
}
|
|
|
|
|
|
.up-input-title-right {
|
|
|
+ width: 800px;
|
|
|
margin-left: 450px;
|
|
|
- margin-top: 15px;
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
|
+.left-up {
|
|
|
+ width: 80%;
|
|
|
+ float: left;
|
|
|
+ height: 37px;
|
|
|
+ margin-top: 50px;
|
|
|
+}
|
|
|
+
|
|
|
+.right-up {
|
|
|
+ width: 16%;
|
|
|
+ margin-top: 2%;
|
|
|
+ float: right;
|
|
|
|
|
|
-.down{
|
|
|
+}
|
|
|
+
|
|
|
+.anniu {
|
|
|
+ padding-right: 5%;
|
|
|
+}
|
|
|
+
|
|
|
+.down {
|
|
|
margin-top: 40px;
|
|
|
}
|
|
|
-.down-add{
|
|
|
+
|
|
|
+.down-add {
|
|
|
padding: 10px;
|
|
|
margin: 0 27px;
|
|
|
- border:1px solid #ccc ;
|
|
|
+ border: 1px solid #ccc;
|
|
|
border-radius: 2px
|
|
|
}
|
|
|
-.down-title{
|
|
|
+
|
|
|
+.down-title {
|
|
|
padding-top: 10px;
|
|
|
color: #303133;
|
|
|
}
|
|
|
-.down-table{
|
|
|
+
|
|
|
+.down-table {
|
|
|
margin-top: 15px;
|
|
|
text-align: center;
|
|
|
margin: 35px 27px;
|
|
|
}
|
|
|
|
|
|
-.el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
|
|
|
- word-break: break-word;
|
|
|
- /* background-color: #f8f8f9; */
|
|
|
- color: #515a6e;
|
|
|
- height: 40px;
|
|
|
- font-size: 13px;
|
|
|
- text-align: center;
|
|
|
+.el-table .el-table__header-wrapper th,
|
|
|
+.el-table .el-table__fixed-header-wrapper th {
|
|
|
+ word-break: break-word;
|
|
|
+ /* background-color: #f8f8f9; */
|
|
|
+ color: #515a6e;
|
|
|
+ height: 40px;
|
|
|
+ font-size: 13px;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
-.bottom-number{
|
|
|
+
|
|
|
+.bottom-number {
|
|
|
padding-top: 5px;
|
|
|
color: #303133;
|
|
|
float: right;
|
|
|
}
|
|
|
-.bottom-page{
|
|
|
- float:right;
|
|
|
+
|
|
|
+.bottom-page {
|
|
|
+ float: right;
|
|
|
+}
|
|
|
+
|
|
|
+.el-icon-search{
|
|
|
+ padding-right: 10px;
|
|
|
}
|
|
|
/**
|
|
|
自适应
|
|
|
*/
|
|
|
-
|
|
|
+/* .demonstration{
|
|
|
+ width: 50%;
|
|
|
+} */
|
|
|
.right {
|
|
|
float: none;
|
|
|
width: 100%;
|