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 = [{