Commit cddd4421d9942313246d7fdef7fabb75f922fdf7
1 parent
0df8f2f5
用户管理页面美化
Signed-off-by: TanYibin <5491541@qq.com>
Showing
1 changed file
with
5 additions
and
7 deletions
ant-design-vue-jeecg/src/views/system/UserList.vue
... | ... | @@ -22,8 +22,6 @@ |
22 | 22 | </a-select> |
23 | 23 | </a-form-item> |
24 | 24 | </a-col> |
25 | - | |
26 | - | |
27 | 25 | <template v-if="toggleSearchStatus"> |
28 | 26 | <a-col :md="6" :sm="8"> |
29 | 27 | <a-form-item label="真实名字"> |
... | ... | @@ -58,7 +56,6 @@ |
58 | 56 | </a> |
59 | 57 | </span> |
60 | 58 | </a-col> |
61 | - | |
62 | 59 | </a-row> |
63 | 60 | </a-form> |
64 | 61 | </div> |
... | ... | @@ -106,6 +103,7 @@ |
106 | 103 | </div> |
107 | 104 | |
108 | 105 | <a-table |
106 | + :scroll="{x: 1200}" | |
109 | 107 | ref="table" |
110 | 108 | bordered |
111 | 109 | size="middle" |
... | ... | @@ -117,7 +115,7 @@ |
117 | 115 | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
118 | 116 | @change="handleTableChange"> |
119 | 117 | |
120 | - <template slot="avatarslot" slot-scope="text, record, index"> | |
118 | + <template slot="avatarslot" slot-scope="text, record"> | |
121 | 119 | <div class="anty-img-wrap"> |
122 | 120 | <a-avatar shape="square" :src="getAvatarView(record.avatar)" icon="user"/> |
123 | 121 | </div> |
... | ... | @@ -240,7 +238,7 @@ export default { |
240 | 238 | { |
241 | 239 | title: '头像', |
242 | 240 | align: "center", |
243 | - width: 120, | |
241 | + width: 100, | |
244 | 242 | dataIndex: 'avatar', |
245 | 243 | scopedSlots: {customRender: "avatarslot"} |
246 | 244 | }, |
... | ... | @@ -273,7 +271,6 @@ export default { |
273 | 271 | { |
274 | 272 | title: '负责部门', |
275 | 273 | align: "center", |
276 | - width: 180, | |
277 | 274 | dataIndex: 'departIds_dictText' |
278 | 275 | }, |
279 | 276 | { |
... | ... | @@ -285,9 +282,10 @@ export default { |
285 | 282 | { |
286 | 283 | title: '操作', |
287 | 284 | dataIndex: 'action', |
285 | + fixed: 'right', | |
288 | 286 | scopedSlots: {customRender: 'action'}, |
289 | 287 | align: "center", |
290 | - width: 170 | |
288 | + width: 150 | |
291 | 289 | } |
292 | 290 | |
293 | 291 | ], |
... | ... |