自测 完善

This commit is contained in:
TimSpan 2024-12-02 10:17:32 +08:00
parent 74a97da1ff
commit cdc1464f9c
2 changed files with 21 additions and 16 deletions

View File

@ -313,20 +313,20 @@ export const showEnterprisesUnit = (record_) => {
size='small' size='small'
columns={_columns} columns={_columns}
requestApi={_reqApi} requestApi={_reqApi}
searchFormOptions={{ // searchFormOptions={{
name: { // name: {
type: 'input', // type: 'input',
label: '姓名', // label: '姓名',
}, // },
securityNumber: { // securityNumber: {
type: 'input', // type: 'input',
label: '保安证号', // label: '保安证号',
}, // },
telephone: { // telephone: {
type: 'input', // type: 'input',
label: '手机号', // label: '手机号',
}, // },
}} // }}
v-slots={ v-slots={
{ {
tableHeader: (_) => { tableHeader: (_) => {
@ -335,7 +335,6 @@ export const showEnterprisesUnit = (record_) => {
<Button class='btn-success' onClick={() => saveOrUpdateEnterprisesUnit(_tableRef.value?.requestGetTableData, record_, 'add')}> <Button class='btn-success' onClick={() => saveOrUpdateEnterprisesUnit(_tableRef.value?.requestGetTableData, record_, 'add')}>
</Button> </Button>
<Button disabled></Button>
</Space> </Space>
) )
}, },

View File

@ -528,7 +528,13 @@ const expandedRowRender: TableProMaxProps['expandedRowRender'] = ({ record }) =>
{ {
dataIndex: 'isFiling', dataIndex: 'isFiling',
title: '是否备案', title: '是否备案',
customRender: ({ text }) => <a-tag>{text?.label}</a-tag>, customRender: ({ text }) => {
if (text?.label === '是') {
return <a-tag color={'success'}>{text?.label}</a-tag>
} else {
return <a-tag color={'error'}>{text?.label}</a-tag>
}
},
width: 120, width: 120,
}, },
{ {