From f51f96d01cefcbaec5530bac01d2a099d43334e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Tue, 18 Jul 2023 14:14:03 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E6=A0=91?= =?UTF-8?q?=E8=A1=A8=E7=94=9F=E6=88=90=E5=89=8D=E7=AB=AF=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=20children=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/vm/ts/types.ts.vm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/ts/types.ts.vm b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/ts/types.ts.vm index 06e4000c..c3f6ed1f 100644 --- a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/ts/types.ts.vm +++ b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/ts/types.ts.vm @@ -11,6 +11,12 @@ export interface ${BusinessName}VO { #end #end #end +#if ($table.tree) + /** + * 子对象 + */ + children: ${BusinessName}VO[]; +#end } export interface ${BusinessName}Form extends BaseEntity { @@ -29,10 +35,7 @@ export interface ${BusinessName}Form extends BaseEntity { } export interface ${BusinessName}Query #if(!${treeCode})extends PageQuery #end{ - /** - * 日期范围参数 - */ - params?: any; + #foreach ($column in $columns) #if($column.query) /** @@ -45,6 +48,10 @@ export interface ${BusinessName}Query #if(!${treeCode})extends PageQuery #end{ #end #end #end + /** + * 日期范围参数 + */ + params?: any; }