优化生成器,设置批量生成选中高亮可点击
This commit is contained in:
parent
89f7629069
commit
a34bcc4156
@ -22,6 +22,7 @@
|
|||||||
<n-button
|
<n-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleGenerator"
|
@click="handleGenerator"
|
||||||
|
:disabled="!rowKeys.length"
|
||||||
v-perm="['sys:generator:batchGenerator']"
|
v-perm="['sys:generator:batchGenerator']"
|
||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
@ -46,7 +47,7 @@
|
|||||||
import { getTableList, generator, batchGenerator } from '@/api/tool/generator';
|
import { getTableList, generator, batchGenerator } from '@/api/tool/generator';
|
||||||
import { columns } from './columns';
|
import { columns } from './columns';
|
||||||
import { schemas } from './querySchemas';
|
import { schemas } from './querySchemas';
|
||||||
import { PlusOutlined } from '@vicons/antd';
|
import { PlusOutlined, SnippetsOutlined } from '@vicons/antd';
|
||||||
import { renderIcon } from '@/utils';
|
import { renderIcon } from '@/utils';
|
||||||
|
|
||||||
const message = useMessage();
|
const message = useMessage();
|
||||||
@ -76,8 +77,8 @@
|
|||||||
style: 'button',
|
style: 'button',
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
label: '生成',
|
label: '一键生成',
|
||||||
icon: renderIcon(PlusOutlined),
|
icon: renderIcon(SnippetsOutlined),
|
||||||
type: 'info',
|
type: 'info',
|
||||||
onClick: handleGenerator.bind(null, record),
|
onClick: handleGenerator.bind(null, record),
|
||||||
auth: ['sys:generator:generator'],
|
auth: ['sys:generator:generator'],
|
||||||
|
Loading…
Reference in New Issue
Block a user