From 26f21302304bd7b22395528284697c0a436a98e2 Mon Sep 17 00:00:00 2001 From: Sheng Date: Fri, 28 Oct 2022 17:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/apiWhiteList/curd.tsx | 5 ++-- web/src/views/system/role/curd.tsx | 17 ++++++++++++-- web/src/views/system/role/index.vue | 27 +++++++++++++++++++--- web/vite.config.ts | 4 ++-- 4 files changed, 43 insertions(+), 10 deletions(-) diff --git a/web/src/views/system/apiWhiteList/curd.tsx b/web/src/views/system/apiWhiteList/curd.tsx index 87d8757..8b28bbe 100644 --- a/web/src/views/system/apiWhiteList/curd.tsx +++ b/web/src/views/system/apiWhiteList/curd.tsx @@ -1,7 +1,6 @@ import { CrudExpose, CrudOptions, AddReq, DelReq, EditReq, dict } from '@fast-crud/fast-crud'; import _ from 'lodash-es'; -import {h} from 'vue'; -import {tabBarProps} from "element-plus"; + interface CreateCrudOptionsTypes { crudOptions: CrudOptions; } @@ -170,7 +169,7 @@ export const createCrudOptions = function ({crudExpose}: {crudExpose: CrudExpose col: { span: 24 }, helper: { render() { - return 请正确填写,以免请求时被拦截。匹配单例使用正则,例如:/api/xx/.*?/ + return 请正确填写,以免请求时被拦截。匹配单例使用正则,例如:/api/xx/.*?/ }, }, component: { diff --git a/web/src/views/system/role/curd.tsx b/web/src/views/system/role/curd.tsx index f9ae970..3574471 100644 --- a/web/src/views/system/role/curd.tsx +++ b/web/src/views/system/role/curd.tsx @@ -73,7 +73,18 @@ export const createCrudOptions = function ({crudExpose}: {crudExpose: CrudExpose delRequest, }, rowHandle: { - buttons: {}, + width: 330, + buttons: { + edit: { + size: 'default' + }, + view: { + size: 'default' + }, + remove: { + size: 'default' + } + }, }, form: { col: { span: 24 }, @@ -144,7 +155,9 @@ export const createCrudOptions = function ({crudExpose}: {crudExpose: CrudExpose }, form: { rules: [{ required: true, message: '权限标识必填' }], - placeholder: '输入权限标识', + component: { + placeholder: '输入权限标识', + } }, }, sort: { diff --git a/web/src/views/system/role/index.vue b/web/src/views/system/role/index.vue index d2ff9e0..0b88116 100644 --- a/web/src/views/system/role/index.vue +++ b/web/src/views/system/role/index.vue @@ -1,15 +1,26 @@