| | |
| | | maxHeight: '400px', |
| | | }" |
| | | > |
| | | <template #licenseUrl="{ row }"> |
| | | <PreviewBtnV2 :url="setOSSLink(row.licenseUrl)"></PreviewBtnV2> |
| | | </template> |
| | | </ProTableV2> |
| | | <MateriaDetailDialog v-bind="dialogProps"></MateriaDetailDialog> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | |
| | | QueryFilterItem, |
| | | ProTableV2, |
| | | SearchInput, |
| | | useFormDialog, |
| | | defineOperationBtns, |
| | | defineColumns, |
| | | PreviewBtnV2, |
| | | } from '@bole-core/components'; |
| | | import MateriaDetailDialog from './MateriaDetailDialog.vue'; |
| | | import { FourStreamsMaterialFileTableItem } from './types'; |
| | | import { setOSSLink } from '@/utils'; |
| | | |
| | | defineOptions({ |
| | | name: 'DeclareEnterpriseTableView', |
| | |
| | | extraParamState: { |
| | | searchKeyWord: string; |
| | | }; |
| | | openDialog?: (row) => void; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), {}); |
| | |
| | | name: '详情', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => openDialog(role), |
| | | onClick: (role) => props.openDialog(role), |
| | | }, |
| | | }, |
| | | ]); |
| | | |
| | | const { dialogProps, handleEdit, editForm } = useFormDialog({ |
| | | defaultFormParams: { |
| | | list: [] as FourStreamsMaterialFileTableItem[], |
| | | }, |
| | | }); |
| | | |
| | | function openDialog(row?: API.ParkBountyApplyDetailInfo) { |
| | | handleEdit({ |
| | | list: [], |
| | | }); |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |