|
@@ -1,4 +1,4 @@
|
|
|
-interface origin {
|
|
|
+interface SingleTableOrigin {
|
|
|
// 1:单表crud
|
|
|
moduleType: number,
|
|
|
// 当前模块包路径 "com/galaxis/wms/bas/area"
|
|
@@ -11,14 +11,17 @@ interface origin {
|
|
|
pageTitle: string;
|
|
|
// 查询使用的 sql语句
|
|
|
sql: string;
|
|
|
- // 字段列
|
|
|
+ // 所有字段列
|
|
|
columnList: Array<{
|
|
|
- schema_name: string;
|
|
|
table_name: string;
|
|
|
column_name: string;
|
|
|
column_comment: string;
|
|
|
is_primary_key: true;
|
|
|
+ not_null: boolean;
|
|
|
+ column_size: number;
|
|
|
+ // 字典名称 "IS_ENABLE"
|
|
|
column_dict: string;
|
|
|
+ // 前端UI xtype "textfield" "combo"
|
|
|
column_ui: string;
|
|
|
data_type: string;
|
|
|
column_type: number;
|
|
@@ -27,8 +30,12 @@ interface origin {
|
|
|
tableName: string;
|
|
|
// 查询使用的字段
|
|
|
queryColumns: Array<string>;
|
|
|
- // 编辑使用的字段
|
|
|
- editColumns: Array<string>;
|
|
|
+ // 需要insert的列
|
|
|
+ insertColumns: Array<string>;
|
|
|
+ // 需要update的列
|
|
|
+ updateColumns: Array<string>;
|
|
|
+ // 表格显示字段
|
|
|
+ gridColumns: Array<string>;
|
|
|
// 是否分页查询
|
|
|
pagination: boolean;
|
|
|
// 是否需要删除
|
|
@@ -41,14 +48,10 @@ interface origin {
|
|
|
editType: number;
|
|
|
}
|
|
|
|
|
|
-interface queryDsl {
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-interface data {
|
|
|
+interface SingleTableData {
|
|
|
// 是否分页查询
|
|
|
pagination: boolean;
|
|
|
- // package com.galaxis.wms.bas.area.LzwTest
|
|
|
+ // package com.galaxis.wms.bas.area
|
|
|
package: string;
|
|
|
// TestDemo
|
|
|
groovyClass: string;
|
|
@@ -56,6 +59,15 @@ interface data {
|
|
|
qClass: string;
|
|
|
// basDict
|
|
|
qClassTable: string;
|
|
|
+ // 需要查询的列
|
|
|
+ queryColumns: Array<{
|
|
|
+ // 字段名称
|
|
|
+ column_name: string;
|
|
|
+ // 字典名称 "IS_ENABLE"
|
|
|
+ column_dict: string;
|
|
|
+ // 前端UI xtype "textfield" "combo"
|
|
|
+ column_ui: string;
|
|
|
+ }>;
|
|
|
// 需要insert的列
|
|
|
insertColumns: Array<{
|
|
|
// dictCode (QueryDSL中的Q类字段)
|
|
@@ -88,20 +100,6 @@ interface data {
|
|
|
// dict_code (请求参数的字段名)
|
|
|
paramField: string;
|
|
|
}>;
|
|
|
- // select * from asn_in_details (查询使用的 sql语句)
|
|
|
- sql: string;
|
|
|
- // 字典维护
|
|
|
- pageTitle: string;
|
|
|
- // true (新增按钮)
|
|
|
- addButton: boolean;
|
|
|
- // true (保存按钮)
|
|
|
- saveButton: boolean;
|
|
|
- // true (删除按钮)
|
|
|
- deleteButton: boolean;
|
|
|
- // 真的要删除? (删除提示语)
|
|
|
- deleteTips: string;
|
|
|
- // /bas/area/TestDemo
|
|
|
- invokeUrlPrefix: string;
|
|
|
// grid表格列
|
|
|
gridColumns: Array<{
|
|
|
dataIndex: string;
|
|
@@ -109,14 +107,29 @@ interface data {
|
|
|
fix: {
|
|
|
// AREA_CLASSIFY
|
|
|
dictName: string;
|
|
|
- },
|
|
|
+ } | undefined,
|
|
|
editor: {
|
|
|
// textfield combo
|
|
|
xtype: string;
|
|
|
fix: {
|
|
|
// AREA_CLASSIFY
|
|
|
dictName: string;
|
|
|
- },
|
|
|
- },
|
|
|
+ } | undefined,
|
|
|
+ } | undefined,
|
|
|
}>;
|
|
|
-}
|
|
|
+ // select * from asn_in_details (查询使用的 sql语句)
|
|
|
+ sql: string;
|
|
|
+ // 字典维护
|
|
|
+ pageTitle: string;
|
|
|
+ // true (新增按钮)
|
|
|
+ addButton: boolean;
|
|
|
+ // true (保存按钮)
|
|
|
+ saveButton: boolean;
|
|
|
+ // true (删除按钮)
|
|
|
+ deleteButton: boolean;
|
|
|
+ // 真的要删除? (删除提示语)
|
|
|
+ deleteTips: string;
|
|
|
+ // /bas/area/TestDemo
|
|
|
+ invokeUrlPrefix: string;
|
|
|
+ fileSavePath: string;
|
|
|
+}
|