소스 검색

update 优化 树表生成前端缺少 children 字段

疯狂的狮子Li 1 년 전
부모
커밋
f51f96d01c
1개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. 11 4
      ruoyi-modules/ruoyi-generator/src/main/resources/vm/ts/types.ts.vm

+ 11 - 4
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;
 }