From e9ac9b9f13138807ad4aa6b913bc04af7e7bba4a Mon Sep 17 00:00:00 2001 From: lijiahang Date: Mon, 8 Jul 2024 14:44:33 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BF=AE=E6=94=B9=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E5=80=BC=E9=95=BF=E5=BA=A6.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../orion-vue-views-components-form-modal.vue.vm | 2 +- .../host/terminal/manager/HostTerminalManager.java | 2 +- .../service/impl/HostTerminalServiceImpl.java | 2 +- .../request/dict/DictValueCreateRequest.java | 1 - .../entity/request/dict/DictValueQueryRequest.java | 1 - .../request/dict/DictValueUpdateRequest.java | 1 - .../components/dict-value-form-modal.vue | 8 ++++---- .../dict-value/components/dict-value-table.vue | 14 ++++++-------- .../views/system/dict-value/types/form.rules.ts | 4 ++-- 9 files changed, 15 insertions(+), 20 deletions(-) diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-form-modal.vue.vm b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-form-modal.vue.vm index c69dde87..9e035c23 100644 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-form-modal.vue.vm +++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-form-modal.vue.vm @@ -1,6 +1,6 @@ @@ -146,13 +146,13 @@ const emits = defineEmits(['openAdd', 'openUpdate', 'openHistory']); - const selectedKeys = ref([]); - const tableRenderData = ref([]); - const pagination = usePagination(); const rowSelection = useRowSelection(); const { loading, setLoading } = useLoading(); + const selectedKeys = ref>([]); + const tableRenderData = ref>([]); + const formModel = reactive({ keyId: undefined, keyName: undefined, @@ -178,13 +178,11 @@ }; // 删除当前行 - const deleteRow = async ({ id }: { - id: number - }) => { + const deleteRow = async (record: DictValueQueryResponse) => { try { setLoading(true); // 调用删除接口 - await deleteDictValue(id); + await deleteDictValue(record.id); Message.success('删除成功'); // 重新加载数据 fetchTableData(); diff --git a/orion-visor-ui/src/views/system/dict-value/types/form.rules.ts b/orion-visor-ui/src/views/system/dict-value/types/form.rules.ts index bddb52fc..cbf0993d 100644 --- a/orion-visor-ui/src/views/system/dict-value/types/form.rules.ts +++ b/orion-visor-ui/src/views/system/dict-value/types/form.rules.ts @@ -17,8 +17,8 @@ export const value = [{ required: true, message: '请输入配置值' }, { - maxLength: 512, - message: '配置值长度不能大于512位' + maxLength: 1024, + message: '配置值长度不能大于1024位' }] as FieldRule[]; export const label = [{