From 2069d53e9be24adec3c8d6717fd7317555bd9a52 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 02 七月 2024 23:02:51 +0800 Subject: [PATCH] 高级表单优化 --- src/views/tigerprojects/system/lowcode/high/baseForm.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/high/baseForm.vue b/src/views/tigerprojects/system/lowcode/high/baseForm.vue index 1549a67..80bf4ef 100644 --- a/src/views/tigerprojects/system/lowcode/high/baseForm.vue +++ b/src/views/tigerprojects/system/lowcode/high/baseForm.vue @@ -4,7 +4,7 @@ * @version: * @Date: 2024-06-23 17:21:29 * @LastEditors: Ben Lin - * @LastEditTime: 2024-06-23 18:08:08 + * @LastEditTime: 2024-07-02 21:26:46 --> <template> <a-card @@ -22,13 +22,15 @@ import { Card } from 'ant-design-vue'; import { getEntity } from '/@/api/tigerapi/system'; import { isNullOrEmpty } from '/@/utils/is'; - + const props = defineProps({ + entityName: { type: String }, + }); const ACard = Card; const objParams = inject('objParams') as Ref<any>; const useFormData = inject('useFormData') as Ref<{}>; const baseCards = inject('baseCards') as Ref<any>; const custImport = ref<any[]>( - await import(`../entityts/${objParams['Name']}.ts`), + await import(`../entityts/${props.entityName}.ts`), ); const [ { @@ -55,7 +57,7 @@ onMounted(() => { useFormData.value[_baseCards.value[0]['name']][1].resetFields(); getEntity({ - sqlcmd: ` ID = '${objParams['ID']}'`, + sqlcmd: ` ID = '${objParams.value['ID']}'`, entityName: _baseCards.value[0]['entityName'], }).then((res) => { if (!isNullOrEmpty(res.Data.Items)) { -- Gitblit v1.9.3