正在显示
2 个修改的文件
包含
20 行增加
和
6 行删除
| @@ -4,12 +4,12 @@ | @@ -4,12 +4,12 @@ | ||
| 4 | <!--检索条件--> | 4 | <!--检索条件--> |
| 5 | <el-row class="toolbar" style="background-color: white;margin-bottom: 10px"> | 5 | <el-row class="toolbar" style="background-color: white;margin-bottom: 10px"> |
| 6 | <el-col :span="6"> | 6 | <el-col :span="6"> |
| 7 | - <el-input v-model="queryinfo.name" placeholder="名称" style="width: 200px"> | 7 | + <el-input v-model="queryinfo.name" placeholder="名称" style="width: 200px" clearable> |
| 8 | <template slot="prepend">名称</template> | 8 | <template slot="prepend">名称</template> |
| 9 | </el-input> | 9 | </el-input> |
| 10 | </el-col> | 10 | </el-col> |
| 11 | <el-col :span="6"> | 11 | <el-col :span="6"> |
| 12 | - <el-input v-model="queryinfo.key" placeholder="key-ID" style="width: 200px"> | 12 | + <el-input v-model="queryinfo.key" placeholder="key-ID" style="width: 200px" clearable> |
| 13 | <template slot="prepend">key-ID</template> | 13 | <template slot="prepend">key-ID</template> |
| 14 | </el-input> | 14 | </el-input> |
| 15 | </el-col> | 15 | </el-col> |
| @@ -27,6 +27,7 @@ | @@ -27,6 +27,7 @@ | ||
| 27 | :data="tableData" | 27 | :data="tableData" |
| 28 | style="width: 100%" | 28 | style="width: 100%" |
| 29 | :default-sort = "{prop: 'date', order: 'descending'}" | 29 | :default-sort = "{prop: 'date', order: 'descending'}" |
| 30 | + :header-cell-style="{background:'#6F8294',color:'#FFFFFF'}" size="small" | ||
| 30 | > | 31 | > |
| 31 | <el-table-column | 32 | <el-table-column |
| 32 | prop="name" | 33 | prop="name" |
| @@ -104,6 +105,9 @@ | @@ -104,6 +105,9 @@ | ||
| 104 | tableloading:false, | 105 | tableloading:false, |
| 105 | } | 106 | } |
| 106 | }, | 107 | }, |
| 108 | + mounted() { | ||
| 109 | + this.getList(); | ||
| 110 | + }, | ||
| 107 | methods: { | 111 | methods: { |
| 108 | // 分页 | 112 | // 分页 |
| 109 | handleSizeChange(val) { | 113 | handleSizeChange(val) { |
| @@ -124,15 +128,17 @@ | @@ -124,15 +128,17 @@ | ||
| 124 | return _this.$message.error('获取消息收发记录,失败!') | 128 | return _this.$message.error('获取消息收发记录,失败!') |
| 125 | } | 129 | } |
| 126 | // 获取列表数据 | 130 | // 获取列表数据 |
| 127 | - _this.tableData = res.data.list | 131 | + _this.tableData = res.data |
| 128 | // 获取列表的总记录数 | 132 | // 获取列表的总记录数 |
| 129 | - _this.total = res.data.total | 133 | + _this.total = res.total |
| 130 | this.tableloading = false; | 134 | this.tableloading = false; |
| 131 | _this.$message.success('获取消息收发记录,成功!') | 135 | _this.$message.success('获取消息收发记录,成功!') |
| 132 | }).catch(error => { | 136 | }).catch(error => { |
| 137 | + | ||
| 133 | // 关闭加载 | 138 | // 关闭加载 |
| 134 | _this.$message.error(error.toString()) | 139 | _this.$message.error(error.toString()) |
| 135 | this.tableloading = false; | 140 | this.tableloading = false; |
| 141 | + | ||
| 136 | }) | 142 | }) |
| 137 | }, | 143 | }, |
| 138 | 144 | ||
| @@ -141,5 +147,13 @@ | @@ -141,5 +147,13 @@ | ||
| 141 | </script> | 147 | </script> |
| 142 | 148 | ||
| 143 | <style scoped> | 149 | <style scoped> |
| 144 | - | 150 | + .toolbar{ |
| 151 | + height: 60px; | ||
| 152 | + background-color: white; | ||
| 153 | + /*line-height: 60px;*/ | ||
| 154 | + vertical-align: middle; | ||
| 155 | + border-radius: 5px 5px 5px 5px; | ||
| 156 | + padding: 15px 0 0 20px; | ||
| 157 | + box-shadow: 0px 5px 5px #e5e8eb; | ||
| 158 | + } | ||
| 145 | </style> | 159 | </style> |
-
请 注册 或 登录 后发表评论