描述:会议室预约记录数据列表 显示问题

This commit is contained in:
SelfRidicule 2024-03-26 10:57:12 +08:00
parent fa1409fbe5
commit 2f977f0737

View File

@ -39,6 +39,7 @@
:rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}' :rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}'
:columns='columns' :columns='columns'
:data='loadData' :data='loadData'
:scroll='{ x: true }'
> >
<span slot='action' slot-scope='text, record'> <span slot='action' slot-scope='text, record'>
<a @click='handleInfo(record)'>详情</a> <a @click='handleInfo(record)'>详情</a>
@ -46,7 +47,9 @@
<a v-if='editEnabel' @click='handleEdit(record)'>编辑</a> <a v-if='editEnabel' @click='handleEdit(record)'>编辑</a>
<a-divider type='vertical' /> <a-divider type='vertical' />
<a v-if='removeEnable' @click='delByIds([record.id])'>删除</a> <a v-if='removeEnable' @click='delByIds([record.id])'>删除</a>
<a-divider type='vertical' v-if='record.statusValue == 0' />
<a-tag @click='verifySuccess(record.id)' v-if='record.statusValue == 0' color='green'>通过</a-tag> <a-tag @click='verifySuccess(record.id)' v-if='record.statusValue == 0' color='green'>通过</a-tag>
<a-divider type='vertical' v-if='record.statusValue == 0 || record.statusValue == 1' />
<a-tag @click='verifyReject(record.id)' v-if='record.statusValue == 0 || record.statusValue == 1' <a-tag @click='verifyReject(record.id)' v-if='record.statusValue == 0 || record.statusValue == 1'
color='volcano'>驳回</a-tag> color='volcano'>驳回</a-tag>
</span> </span>
@ -107,11 +110,13 @@ export default {
columns: [ columns: [
{ {
title: '会议主题', title: '会议主题',
dataIndex: 'title' dataIndex: 'title',
fixed: 'left'
}, },
{ {
title: '会议室名称', title: '会议室名称',
dataIndex: 'roomContent.meetingName' dataIndex: 'roomContent.meetingName',
fixed: 'left'
}, },
{ {
title: '会议类型', title: '会议类型',
@ -147,9 +152,10 @@ export default {
}, },
{ {
title: '操作', title: '操作',
width: '100px', width: '260px',
dataIndex: 'action', dataIndex: 'action',
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' },
fixed: 'right'
} }
], ],
// Promise // Promise
@ -297,6 +303,8 @@ export default {
</script> </script>
<style scoped> <style scoped>
.rejectView { .rejectView {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;