@jeecg/online 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AuthButtonConfig.js +140 -0
- package/AuthButtonTree.js +183 -0
- package/AuthDataConfig.js +243 -0
- package/AuthDataTree.js +160 -0
- package/AuthFieldConfig.js +167 -0
- package/AuthFieldTree.js +273 -0
- package/AuthManagerDrawer.js +125 -0
- package/AuthSetterModal.js +317 -0
- package/CgformCopyList.js +253 -0
- package/CgformModal.js +748 -0
- package/CgreportModal.js +673 -0
- package/ChartAutoRender.js +69 -0
- package/ChartDoubleRender.js +154 -0
- package/ChartSingleRender.js +132 -0
- package/ChartTabsRender.js +218 -0
- package/CheckDictTable.js +121 -0
- package/CodeGeneratorModal.js +293 -0
- package/CustomButtonList.js +413 -0
- package/DBAttributeTable.js +278 -0
- package/DbToOnlineModal.js +190 -0
- package/EnhanceJavaModal.js +304 -0
- package/EnhanceJsHistory.js +231 -0
- package/EnhanceJsModal.js +293 -0
- package/EnhanceSqlModal.js +305 -0
- package/ErrorTip.js +21 -0
- package/ExtendConfigModal.js +142 -0
- package/FieldTable.js +185 -0
- package/FileSelectModal.js +102 -0
- package/ForeignKeyTable.js +78 -0
- package/FormSchemaFactory.js +938 -0
- package/GraphreportAutoChart.js +352 -0
- package/GraphreportList.js +239 -0
- package/GraphreportModal.js +559 -0
- package/IndexTable.js +96 -0
- package/JOnlineSearchSelect.js +107 -0
- package/LICENSE +7 -0
- package/LeftDepart.js +96 -0
- package/LeftRole.js +95 -0
- package/LeftUser.js +114 -0
- package/ModalFormDemo.js +84 -0
- package/OnlineAutoList.js +410 -0
- package/OnlineAutoModal.js +265 -0
- package/OnlineAutoTreeList.js +513 -0
- package/OnlineCustomModal.js +269 -0
- package/OnlineForm.js +809 -0
- package/OnlineQueryForm.js +442 -0
- package/OnlineSearchFormItem.js +428 -0
- package/OnlineSelectCascade.js +217 -0
- package/OnlineSubForm.js +200 -0
- package/OnlineSuperQuery.js +912 -0
- package/OnlineSuperQueryValComponent.js +8 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +172 -0
- package/PageAttributeTable.js +242 -0
- package/ParamsTable.js +71 -0
- package/ProcessOnlineForm.js +183 -0
- package/QueryTable.js +128 -0
- package/README.md +23 -0
- package/_arrayPush.js +276 -0
- package/auth.api.js +43 -0
- package/auth.data.js +144 -0
- package/cgform.data.js +235 -0
- package/cloneDeep.js +475 -0
- package/enhance.api.js +120 -0
- package/enhance.data.js +196 -0
- package/graphreport.api.js +23 -0
- package/index.js +64 -0
- package/index2.js +336 -0
- package/index3.js +799 -0
- package/isArray.js +47 -0
- package/main.index.js +6 -0
- package/package.json +6 -0
- package/pick.js +238 -0
- package/style.css +1 -0
- package/toString.js +31 -0
- package/useAutoForm.js +4274 -0
- package/useCgformList.js +353 -0
- package/useChartRender.js +405 -0
- package/useMessageOnline.js +71 -0
- package/useOnlineTest.js +26866 -0
- package/useSchemas.js +505 -0
- package/useTableColumns.js +1154 -0
- package/useTableSync.js +105 -0
package/cgform.data.js
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { getDictItemsByCode } from "/@/utils/dict";
|
|
2
|
+
import { filterDictText } from "/@/utils/dict/JDictSelectUtil";
|
|
3
|
+
import { buildUUID } from "/@/utils/uuid";
|
|
4
|
+
const VALIDATE_FAILED = "validate-failed";
|
|
5
|
+
const columns = [
|
|
6
|
+
{
|
|
7
|
+
title: "\u8868\u7C7B\u578B",
|
|
8
|
+
align: "center",
|
|
9
|
+
sorter: true,
|
|
10
|
+
dataIndex: "tableType",
|
|
11
|
+
width: 140,
|
|
12
|
+
customRender({ text, record }) {
|
|
13
|
+
let tableTypeDictOptions = getDictItemsByCode("cgform_table_type");
|
|
14
|
+
let tbTypeText = filterDictText(tableTypeDictOptions, text);
|
|
15
|
+
if (record.isTree === "Y") {
|
|
16
|
+
tbTypeText += "(\u6811)";
|
|
17
|
+
}
|
|
18
|
+
if (record.themeTemplate === "innerTable") {
|
|
19
|
+
tbTypeText += "(\u5185\u5D4C)";
|
|
20
|
+
} else if (record.themeTemplate === "erp") {
|
|
21
|
+
tbTypeText += "(ERP)";
|
|
22
|
+
} else if (record.themeTemplate === "tab") {
|
|
23
|
+
tbTypeText += "(TAB)";
|
|
24
|
+
}
|
|
25
|
+
return tbTypeText;
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: "\u8868\u540D",
|
|
30
|
+
sorter: true,
|
|
31
|
+
align: "center",
|
|
32
|
+
dataIndex: "tableName",
|
|
33
|
+
width: 240
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: "\u8868\u63CF\u8FF0",
|
|
37
|
+
align: "center",
|
|
38
|
+
dataIndex: "tableTxt",
|
|
39
|
+
width: 220
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: "\u7248\u672C",
|
|
43
|
+
align: "center",
|
|
44
|
+
dataIndex: "tableVersion",
|
|
45
|
+
width: 120
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: "\u540C\u6B65\u72B6\u6001",
|
|
49
|
+
align: "center",
|
|
50
|
+
sorter: true,
|
|
51
|
+
dataIndex: "isDbSynch",
|
|
52
|
+
slots: { customRender: "dbSync" },
|
|
53
|
+
width: 120
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: "\u521B\u5EFA\u65F6\u95F4",
|
|
57
|
+
align: "center",
|
|
58
|
+
sorter: true,
|
|
59
|
+
dataIndex: "createTime",
|
|
60
|
+
width: 240
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
const searchFormSchema = [
|
|
64
|
+
{
|
|
65
|
+
label: "\u8868\u540D",
|
|
66
|
+
field: "tableName",
|
|
67
|
+
component: "JInput"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "\u8868\u7C7B\u578B",
|
|
71
|
+
field: "tableType_MultiString",
|
|
72
|
+
component: "JDictSelectTag",
|
|
73
|
+
componentProps: {
|
|
74
|
+
dictCode: "cgform_table_type",
|
|
75
|
+
mode: "multiple"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: "\u8868\u63CF\u8FF0",
|
|
80
|
+
field: "tableTxt",
|
|
81
|
+
component: "JInput"
|
|
82
|
+
}
|
|
83
|
+
];
|
|
84
|
+
const ExtConfigDefaultJson = {
|
|
85
|
+
reportPrintShow: 0,
|
|
86
|
+
reportPrintUrl: "",
|
|
87
|
+
joinQuery: 0,
|
|
88
|
+
modelFullscreen: 0,
|
|
89
|
+
modalMinWidth: ""
|
|
90
|
+
};
|
|
91
|
+
function useInitialData() {
|
|
92
|
+
let initialData = [
|
|
93
|
+
{
|
|
94
|
+
dbFieldName: "id",
|
|
95
|
+
dbFieldTxt: "\u4E3B\u952E",
|
|
96
|
+
dbLength: 36,
|
|
97
|
+
dbPointLength: 0,
|
|
98
|
+
dbDefaultVal: "",
|
|
99
|
+
dbType: "string",
|
|
100
|
+
dbIsKey: "1",
|
|
101
|
+
dbIsNull: "0",
|
|
102
|
+
isShowForm: "0",
|
|
103
|
+
isShowList: "0",
|
|
104
|
+
isReadOnly: "1",
|
|
105
|
+
fieldShowType: "text",
|
|
106
|
+
fieldLength: "120",
|
|
107
|
+
queryMode: "single"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
dbFieldName: "create_by",
|
|
111
|
+
dbFieldTxt: "\u521B\u5EFA\u4EBA",
|
|
112
|
+
dbLength: 50,
|
|
113
|
+
dbPointLength: 0,
|
|
114
|
+
dbDefaultVal: "",
|
|
115
|
+
dbType: "string",
|
|
116
|
+
dbIsKey: "0",
|
|
117
|
+
dbIsNull: "1",
|
|
118
|
+
isShowForm: "0",
|
|
119
|
+
isShowList: "0",
|
|
120
|
+
fieldShowType: "text",
|
|
121
|
+
fieldLength: "120",
|
|
122
|
+
queryMode: "single"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
dbFieldName: "create_time",
|
|
126
|
+
dbFieldTxt: "\u521B\u5EFA\u65E5\u671F",
|
|
127
|
+
dbLength: 0,
|
|
128
|
+
dbPointLength: 0,
|
|
129
|
+
dbDefaultVal: "",
|
|
130
|
+
dbType: "Datetime",
|
|
131
|
+
dbIsKey: "0",
|
|
132
|
+
dbIsNull: "1",
|
|
133
|
+
isShowForm: "0",
|
|
134
|
+
isShowList: "0",
|
|
135
|
+
fieldShowType: "datetime",
|
|
136
|
+
fieldLength: "120",
|
|
137
|
+
queryMode: "single"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
dbFieldName: "update_by",
|
|
141
|
+
dbFieldTxt: "\u66F4\u65B0\u4EBA",
|
|
142
|
+
dbLength: 50,
|
|
143
|
+
dbPointLength: 0,
|
|
144
|
+
dbDefaultVal: "",
|
|
145
|
+
dbType: "string",
|
|
146
|
+
dbIsKey: "0",
|
|
147
|
+
dbIsNull: "1",
|
|
148
|
+
isShowForm: "0",
|
|
149
|
+
isShowList: "0",
|
|
150
|
+
fieldShowType: "text",
|
|
151
|
+
fieldLength: "120",
|
|
152
|
+
queryMode: "single"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
dbFieldName: "update_time",
|
|
156
|
+
dbFieldTxt: "\u66F4\u65B0\u65E5\u671F",
|
|
157
|
+
dbLength: 0,
|
|
158
|
+
dbPointLength: 0,
|
|
159
|
+
dbDefaultVal: "",
|
|
160
|
+
dbType: "Datetime",
|
|
161
|
+
dbIsKey: "0",
|
|
162
|
+
dbIsNull: "1",
|
|
163
|
+
isShowForm: "0",
|
|
164
|
+
isShowList: "0",
|
|
165
|
+
fieldShowType: "datetime",
|
|
166
|
+
fieldLength: "120",
|
|
167
|
+
queryMode: "single"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
dbFieldName: "sys_org_code",
|
|
171
|
+
dbFieldTxt: "\u6240\u5C5E\u90E8\u95E8",
|
|
172
|
+
dbLength: 64,
|
|
173
|
+
dbPointLength: 0,
|
|
174
|
+
dbDefaultVal: "",
|
|
175
|
+
dbType: "string",
|
|
176
|
+
dbIsKey: "0",
|
|
177
|
+
dbIsNull: "1",
|
|
178
|
+
isShowForm: "0",
|
|
179
|
+
isShowList: "0",
|
|
180
|
+
fieldShowType: "text",
|
|
181
|
+
fieldLength: "120",
|
|
182
|
+
queryMode: "single"
|
|
183
|
+
}
|
|
184
|
+
];
|
|
185
|
+
let tempIds = [];
|
|
186
|
+
initialData.forEach((record) => {
|
|
187
|
+
record["id"] = buildUUID();
|
|
188
|
+
tempIds.push(record["id"]);
|
|
189
|
+
});
|
|
190
|
+
return { initialData, tempIds };
|
|
191
|
+
}
|
|
192
|
+
function useTreeNeedFields() {
|
|
193
|
+
return [
|
|
194
|
+
{
|
|
195
|
+
dbFieldName: "pid",
|
|
196
|
+
dbFieldTxt: "\u7236\u7EA7\u8282\u70B9",
|
|
197
|
+
dbLength: 32,
|
|
198
|
+
dbPointLength: 0,
|
|
199
|
+
dbDefaultVal: "",
|
|
200
|
+
dbType: "string",
|
|
201
|
+
dbIsKey: "0",
|
|
202
|
+
dbIsNull: "1",
|
|
203
|
+
isShowForm: "1",
|
|
204
|
+
isShowList: "0",
|
|
205
|
+
fieldShowType: "text",
|
|
206
|
+
fieldLength: "120",
|
|
207
|
+
queryMode: "single"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
dbFieldName: "has_child",
|
|
211
|
+
dbFieldTxt: "\u662F\u5426\u6709\u5B50\u8282\u70B9",
|
|
212
|
+
dbLength: 3,
|
|
213
|
+
dbPointLength: 0,
|
|
214
|
+
dbDefaultVal: "",
|
|
215
|
+
dbType: "string",
|
|
216
|
+
dbIsKey: "0",
|
|
217
|
+
dbIsNull: "1",
|
|
218
|
+
isShowForm: "0",
|
|
219
|
+
isShowList: "0",
|
|
220
|
+
fieldShowType: "list",
|
|
221
|
+
fieldLength: "120",
|
|
222
|
+
queryMode: "single",
|
|
223
|
+
dictField: "yn"
|
|
224
|
+
}
|
|
225
|
+
];
|
|
226
|
+
}
|
|
227
|
+
const onlineDefaultButton = [
|
|
228
|
+
{ code: "add", title: "\u65B0\u589E", status: 0 },
|
|
229
|
+
{ code: "edit", title: "\u7F16\u8F91", status: 0 },
|
|
230
|
+
{ code: "delete", title: "\u5220\u9664", status: 0 },
|
|
231
|
+
{ code: "export", title: "\u5BFC\u51FA", status: 0 },
|
|
232
|
+
{ code: "import", title: "\u5BFC\u5165", status: 0 },
|
|
233
|
+
{ code: "query", title: "\u67E5\u8BE2", status: 0 }
|
|
234
|
+
];
|
|
235
|
+
export { ExtConfigDefaultJson as E, VALIDATE_FAILED as V, useTreeNeedFields as a, columns as c, onlineDefaultButton as o, searchFormSchema as s, useInitialData as u };
|