优化生成器,设置批量生成选中高亮可点击
This commit is contained in:
parent
89f7629069
commit
a34bcc4156
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user