Kaynağa Gözat

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

疯狂的狮子Li 1 yıl önce
ebeveyn
işleme
f51f96d01c

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