| | |
| | | maxHeight: '400px', |
| | | }" |
| | | > |
| | | <template #licenseUrl="{ row }"> |
| | | <PreviewBtnV2 :url="setOSSLink(row.licenseUrl)"></PreviewBtnV2> |
| | | </template> |
| | | </ProTableV2> |
| | | </template> |
| | | |
| | |
| | | SearchInput, |
| | | defineOperationBtns, |
| | | defineColumns, |
| | | PreviewBtnV2, |
| | | } from '@bole-core/components'; |
| | | import { setOSSLink } from '@/utils'; |
| | | |
| | | defineOptions({ |
| | | name: 'DeclareEnterpriseTableView', |
| | |
| | | }); |
| | | |
| | | const column: API.CustomModuleColumnDto[] = [ |
| | | // { |
| | | // id: '1', |
| | | // enCode: 'batchNo', |
| | | // name: '申报批次号', |
| | | // }, |
| | | // { |
| | | // id: '2', |
| | | // enCode: 'creationTime', |
| | | // name: '申报日期', |
| | | // }, |
| | | { |
| | | id: '1', |
| | | enCode: 'batchNo', |
| | | name: '申报批次号', |
| | | }, |
| | | { |
| | | id: '2', |
| | | enCode: 'creationTime', |
| | | name: '申报日期', |
| | | }, |
| | | { |
| | | id: '3', |
| | | enCode: 'outCheckTime', |
| | |
| | | }, |
| | | columnsRenderProps: { |
| | | authType: { type: 'enum', valueEnum: EnterpriseTypeText }, |
| | | licenseUrl: { |
| | | type: 'url', |
| | | formatter: (row: API.UserCertificationAuditListDto) => setOSSLink(row.licenseUrl), |
| | | modal: true, |
| | | showDownloadBtn: false, |
| | | }, |
| | | // licenseUrl: { |
| | | // type: 'url', |
| | | // formatter: (row: API.UserCertificationAuditListDto) => setOSSLink(row.licenseUrl), |
| | | // modal: true, |
| | | // showDownloadBtn: true, |
| | | // showPreviewBtn: false, |
| | | // downloadBtnText: '查看', |
| | | // }, |
| | | }, |
| | | } |
| | | ); |
| | |
| | | type: 'url', |
| | | formatter: (row: API.UserCertificationAuditListDto) => setOSSLink(row.licenseUrl), |
| | | modal: true, |
| | | showDownloadBtn: false, |
| | | showDownloadBtn: true, |
| | | }, |
| | | }, |
| | | } |