From 80b6cbfc9c861469146318d0b3dd5f8b8b525b8a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期五, 01 十一月 2024 15:11:19 +0800
Subject: [PATCH] Revert "集成获取mdm分发通用数据格式接口集成"

---
 Source/BladeX-Tool/blade-starter-develop/src/main/resources/templates/lemon/crud/data.data.ts.btl |  102 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 102 insertions(+), 0 deletions(-)

diff --git a/Source/BladeX-Tool/blade-starter-develop/src/main/resources/templates/lemon/crud/data.data.ts.btl b/Source/BladeX-Tool/blade-starter-develop/src/main/resources/templates/lemon/crud/data.data.ts.btl
new file mode 100644
index 0000000..53bab06
--- /dev/null
+++ b/Source/BladeX-Tool/blade-starter-develop/src/main/resources/templates/lemon/crud/data.data.ts.btl
@@ -0,0 +1,102 @@
+import { BasicColumn } from '/@/components/Table';
+import { FormSchema } from '/@/components/Table';
+import { DescItem } from '/@/components/Description/index';
+import { getDictList } from '/@/api/system/system';
+
+
+export const columns: BasicColumn[] = [
+    #for(x in prototypes) {
+        #if(x.isList==1){
+            {
+                title: "${x.comment!}",
+                dataIndex: "${x.propertyName!}",
+            },
+       #}
+     #}
+   ];
+
+export const searchFormSchema: FormSchema[] = [
+      #for(x in prototypes) {
+         #if(x.isQuery==1){
+            {
+                field: "${x.propertyName!}",
+                label: "${x.comment!}",
+                #if(x.componentType=="input"){
+                component: 'Input',
+                #}else if(x.componentType=="textarea"){
+                component: 'InputTextArea',
+                #}else if(x.componentType=="select"){
+                component: 'ApiSelect',
+                #}else if(x.componentType=="tree"){
+                component: 'ApiTreeSelect',
+                #}else if(x.componentType=="radio"){
+                component: 'RadioGroup',
+                #}else if(x.componentType=="checkbox"){
+                component: 'Checkbox',
+                #}else if(x.componentType=="switch"){
+                component: 'Switch',
+                #}else if(x.componentType=="date"){
+                component: 'DatePicker',
+                #}
+                #if(x.componentType=="select"&&x.dictCode!=null){
+                componentProps: {
+                     api: getDictList,
+                     params: { code: '${x.dictCode!}' },
+                     labelField: 'dictValue',
+                     valueField: 'dictKey',
+                    },
+                #}
+            },
+             #}
+          #}
+];
+
+export const formSchema: FormSchema[] = [
+      #for(x in prototypes) {
+         #if(x.isForm!=0){
+            {
+                field: "${x.propertyName!}",
+                label: "${x.comment!}",
+                #if(x.componentType=="input"){
+                component: 'Input',
+                #}else if(x.componentType=="textarea"){
+                component: 'InputTextArea',
+                #}else if(x.componentType=="select"){
+                component: 'ApiSelect',
+                #}else if(x.componentType=="tree"){
+                component: 'ApiTreeSelect',
+                #}else if(x.componentType=="radio"){
+                component: 'RadioGroup',
+                #}else if(x.componentType=="checkbox"){
+                component: 'Checkbox',
+                #}else if(x.componentType=="switch"){
+                component: 'Switch',
+                #}else if(x.componentType=="date"){
+                component: 'DatePicker',
+                #}
+                #if(x.componentType=="select"&&x.dictCode!=null){
+                componentProps: {
+                     api: getDictList,
+                     params: { code: '${x.dictCode!}' },
+                     labelField: 'dictValue',
+                     valueField: 'dictKey',
+                    },
+                #}
+                #if(x.isRequired==1){
+                    required: true,
+                #}
+            },
+             #}
+         #}
+];
+
+export const detailSchema: DescItem[] = [
+    #for(x in prototypes) {
+           #if(x.isForm!=0){
+            {
+                field: "${x.propertyName!}",
+                label: "${x.comment!}",
+            },
+        #}
+     #}
+];

--
Gitblit v1.9.3