From 17925215d37dd97d744c9296b185aeb16d3e44fb Mon Sep 17 00:00:00 2001
From: Ludc <2870569285@qq.com>
Date: 星期二, 18 十一月 2025 20:06:12 +0800
Subject: [PATCH] URL请求路径安全校验
---
Source/BladeX-Tool/blade-starter-develop/src/main/resources/templates/lemon/sub/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/sub/data.data.ts.btl b/Source/BladeX-Tool/blade-starter-develop/src/main/resources/templates/lemon/sub/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/sub/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