chore: codegen
This commit is contained in:
parent
60ae7cc0cc
commit
315a6939dd
@ -182,23 +182,42 @@ function handleImport() {
|
|||||||
:disabled="!checked"
|
:disabled="!checked"
|
||||||
danger
|
danger
|
||||||
type="primary"
|
type="primary"
|
||||||
|
v-access:code="['tool:gen:remove']"
|
||||||
@click="handleMultiDelete"
|
@click="handleMultiDelete"
|
||||||
>
|
>
|
||||||
{{ $t('pages.common.delete') }}
|
{{ $t('pages.common.delete') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button :disabled="!checked" @click="handleBatchGen">
|
<a-button
|
||||||
|
:disabled="!checked"
|
||||||
|
v-access:code="['tool:gen:code']"
|
||||||
|
@click="handleBatchGen"
|
||||||
|
>
|
||||||
{{ $t('pages.common.generate') }}
|
{{ $t('pages.common.generate') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button type="primary" @click="handleImport">
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
v-access:code="['tool:gen:import']"
|
||||||
|
@click="handleImport"
|
||||||
|
>
|
||||||
{{ $t('pages.common.import') }}
|
{{ $t('pages.common.import') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</Space>
|
</Space>
|
||||||
</template>
|
</template>
|
||||||
<template #action="{ row }">
|
<template #action="{ row }">
|
||||||
<a-button size="small" type="link" @click.stop="handlePreview(row)">
|
<a-button
|
||||||
|
size="small"
|
||||||
|
type="link"
|
||||||
|
v-access:code="['tool:gen:preview']"
|
||||||
|
@click.stop="handlePreview(row)"
|
||||||
|
>
|
||||||
{{ $t('pages.common.preview') }}
|
{{ $t('pages.common.preview') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button size="small" type="link" @click.stop="handleEdit(row)">
|
<a-button
|
||||||
|
size="small"
|
||||||
|
type="link"
|
||||||
|
v-access:code="['tool:gen:edit']"
|
||||||
|
@click.stop="handleEdit(row)"
|
||||||
|
>
|
||||||
{{ $t('pages.common.edit') }}
|
{{ $t('pages.common.edit') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
@ -206,11 +225,21 @@ function handleImport() {
|
|||||||
placement="left"
|
placement="left"
|
||||||
@confirm="handleSync(row)"
|
@confirm="handleSync(row)"
|
||||||
>
|
>
|
||||||
<a-button size="small" type="link" @click.stop="">
|
<a-button
|
||||||
|
size="small"
|
||||||
|
type="link"
|
||||||
|
v-access:code="['tool:gen:edit']"
|
||||||
|
@click.stop=""
|
||||||
|
>
|
||||||
{{ $t('pages.common.sync') }}
|
{{ $t('pages.common.sync') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
<a-button size="small" type="link" @click.stop="handleDownload(row)">
|
<a-button
|
||||||
|
size="small"
|
||||||
|
type="link"
|
||||||
|
v-access:code="['tool:gen:code']"
|
||||||
|
@click.stop="handleDownload(row)"
|
||||||
|
>
|
||||||
生成代码
|
生成代码
|
||||||
</a-button>
|
</a-button>
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
@ -218,7 +247,13 @@ function handleImport() {
|
|||||||
placement="left"
|
placement="left"
|
||||||
@confirm="handleDelete(row)"
|
@confirm="handleDelete(row)"
|
||||||
>
|
>
|
||||||
<a-button danger size="small" type="link" @click.stop="">
|
<a-button
|
||||||
|
danger
|
||||||
|
size="small"
|
||||||
|
type="link"
|
||||||
|
v-access:code="['tool:gen:remove']"
|
||||||
|
@click.stop=""
|
||||||
|
>
|
||||||
{{ $t('pages.common.delete') }}
|
{{ $t('pages.common.delete') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
|
@ -66,8 +66,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
pagerConfig: {},
|
pagerConfig: {},
|
||||||
proxyConfig: {
|
proxyConfig: {
|
||||||
ajax: {
|
ajax: {
|
||||||
query: async ({ page }, formValues) => {
|
query: async ({ page }, formValues = {}) => {
|
||||||
console.log(page);
|
|
||||||
return await readyToGenList({
|
return await readyToGenList({
|
||||||
pageNum: page.currentPage,
|
pageNum: page.currentPage,
|
||||||
pageSize: page.pageSize,
|
pageSize: page.pageSize,
|
||||||
|
Loading…
Reference in New Issue
Block a user