优化生成器,设置批量生成选中高亮可点击

This commit is contained in:
zjl 2024-12-13 10:39:23 +08:00
parent 89f7629069
commit a34bcc4156

View File

@ -22,6 +22,7 @@
<n-button
type="primary"
@click="handleGenerator"
:disabled="!rowKeys.length"
v-perm="['sys:generator:batchGenerator']"
>
<template #icon>
@ -46,7 +47,7 @@
import { getTableList, generator, batchGenerator } from '@/api/tool/generator';
import { columns } from './columns';
import { schemas } from './querySchemas';
import { PlusOutlined } from '@vicons/antd';
import { PlusOutlined, SnippetsOutlined } from '@vicons/antd';
import { renderIcon } from '@/utils';
const message = useMessage();
@ -76,8 +77,8 @@
style: 'button',
actions: [
{
label: '生成',
icon: renderIcon(PlusOutlined),
label: '一键生成',
icon: renderIcon(SnippetsOutlined),
type: 'info',
onClick: handleGenerator.bind(null, record),
auth: ['sys:generator:generator'],