|
|
@ -32,8 +32,13 @@ const [registerTable, { getForm, reload, getDataSource, updateTableDataRecord }] |
|
|
labelWidth: 150, |
|
|
labelWidth: 150, |
|
|
schemas: searchFormSchema, |
|
|
schemas: searchFormSchema, |
|
|
showResetButton: false, |
|
|
showResetButton: false, |
|
|
|
|
|
|
|
|
actionColOptions: { |
|
|
actionColOptions: { |
|
|
span: 6, |
|
|
span: 10, |
|
|
|
|
|
style: { |
|
|
|
|
|
textAlign: 'left' , |
|
|
|
|
|
marginLeft: '10px', |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
useSearchForm: true, |
|
|
useSearchForm: true, |
|
|
@ -105,8 +110,8 @@ async function handleDelete(record: Recordable) { |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<BasicTable @register="registerTable"> |
|
|
<BasicTable @register="registerTable"> |
|
|
<template #form-advanceBefore> |
|
|
<template #form-advanceAfter> |
|
|
<Space style="margin-right: 10%;"> |
|
|
<Space > |
|
|
<a-button v-auth="['system:role:create']" type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate"> |
|
|
<a-button v-auth="['system:role:create']" type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate"> |
|
|
{{ t('action.create') }} |
|
|
{{ t('action.create') }} |
|
|
</a-button> |
|
|
</a-button> |
|
|
|