|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
- <a-card size="small" :bordered="false">
|
|
|
+ <a-card size="small" :bordered="false" class="roleList-wrap">
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
|
- <a-form layout="inline">
|
|
|
- <a-row :gutter="48">
|
|
|
+ <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
+ <a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="角色名称">
|
|
|
<a-input
|
|
@@ -112,12 +112,12 @@ export default {
|
|
|
menuData: {},
|
|
|
// 表头
|
|
|
columns: [
|
|
|
- { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
|
- { title: '创建时间', dataIndex: 'createDate', width: 140, align: 'center' },
|
|
|
- { title: '角色名称', dataIndex: 'name', align: 'center' },
|
|
|
- { title: '角色描述', dataIndex: 'remarks', width: 200, align: 'center', scopedSlots: { customRender: 'remarks' } },
|
|
|
- { title: '状态', width: 100, align: 'center', scopedSlots: { customRender: 'status' } },
|
|
|
- { title: '操作', width: 150, align: 'center', scopedSlots: { customRender: 'action' } }
|
|
|
+ { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
|
+ { title: '创建时间', dataIndex: 'createDate', width: '15%', align: 'center' },
|
|
|
+ { title: '角色名称', dataIndex: 'name', width: '25%', align: 'center' },
|
|
|
+ { title: '角色描述', dataIndex: 'remarks', width: '25%', align: 'center', scopedSlots: { customRender: 'remarks' } },
|
|
|
+ { title: '状态', width: '15%', align: 'center', scopedSlots: { customRender: 'status' } },
|
|
|
+ { title: '操作', width: '15%', align: 'center', scopedSlots: { customRender: 'action' } }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
@@ -226,7 +226,7 @@ export default {
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 235
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 255
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|