自测 完善

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

View File

@ -528,7 +528,13 @@ const expandedRowRender: TableProMaxProps['expandedRowRender'] = ({ record }) =>
{
dataIndex: 'isFiling',
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,
},
{