@jeecg/online 1.0.1 → 3.4.3
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 +15 -9
- package/AuthButtonTree.js +4 -7
- package/AuthDataConfig.js +10 -8
- package/AuthDataTree.js +4 -7
- package/AuthFieldConfig.js +16 -14
- package/AuthFieldTree.js +25 -20
- package/AuthManagerDrawer.js +2 -3
- package/AuthSetterModal.js +2 -2
- package/CgformCopyList.js +34 -24
- package/CgformModal.js +57 -50
- package/CgreportModal.js +32 -39
- package/CheckDictTable.js +146 -26
- package/CodeFileListModal.js +174 -0
- package/CodeFileViewModal.js +324 -0
- package/CodeGeneratorModal.js +42 -40
- package/CustomButtonList.js +19 -23
- package/DBAttributeTable.js +250 -14
- package/DbToOnlineModal.js +28 -27
- package/DetailForm.js +607 -0
- package/EnhanceJavaModal.js +12 -19
- package/EnhanceJsHistory.js +6 -8
- package/EnhanceJsModal.js +17 -18
- package/EnhanceSqlModal.js +12 -19
- package/ExtendConfigModal.js +26 -17
- package/FileSelectModal.js +1 -2
- package/ForeignKeyTable.js +6 -5
- package/FormSchemaFactory.js +163 -30
- package/IndexTable.js +8 -7
- package/JModalTip.js +54 -0
- package/LeftDepart.js +3 -3
- package/LeftRole.js +8 -6
- package/LeftUser.js +8 -6
- package/LinkTableConfigModal.js +288 -0
- package/LinkTableFieldConfigModal.js +217 -0
- package/LinkTableListPiece.js +36 -0
- package/ModalFormDemo.js +4 -4
- package/OnlCgReportList.js +34 -0
- package/OnlineAutoList.js +155 -58
- package/OnlineAutoModal.js +91 -132
- package/OnlineAutoTreeList.js +92 -54
- package/OnlineCustomModal.js +31 -17
- package/OnlineDetailModal.js +182 -0
- package/OnlineForm.js +272 -141
- package/OnlineFormDetail.js +324 -0
- package/OnlineQueryForm.js +72 -42
- package/OnlineSearchFormItem.js +28 -23
- package/OnlineSubFormDetail.js +165 -0
- package/OnlineSuperQuery.js +72 -76
- package/OnlineSuperQueryValComponent.js +1 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
- package/PageAttributeTable.js +233 -31
- package/ProcessOnlineForm.js +41 -18
- package/QueryTable.js +6 -5
- package/README.md +3 -8
- package/_arrayPush.js +5 -3
- package/{cloneDeep.js → _baseClone.js} +5 -9
- package/_baseSlice.js +18 -0
- package/_commonjsHelpers.js +5 -0
- package/_flatRest.js +174 -0
- package/auth.data.js +1 -3
- package/cgform.data.js +18 -9
- package/enhance.api.js +27 -18
- package/index.js +358 -34
- package/index2.js +49 -48
- package/index3.js +29 -26
- package/isArray.js +1 -1
- package/main.index.js +3 -3
- package/omit.js +60 -0
- package/package.json +1 -1
- package/pick.js +3 -173
- package/style.css +1 -1
- package/toString.js +2 -2
- package/useAutoForm.js +3457 -3792
- package/useCgformList.js +44 -31
- package/{useTableColumns.js → useListButton.js} +218 -409
- package/useOnlineTest.js +5 -26827
- package/useSchemas.js +382 -234
- package/useTableSync.js +19 -7
- package/ChartAutoRender.js +0 -69
- package/ChartDoubleRender.js +0 -154
- package/ChartSingleRender.js +0 -132
- package/ChartTabsRender.js +0 -218
- package/ErrorTip.js +0 -21
- package/FieldTable.js +0 -185
- package/GraphreportAutoChart.js +0 -352
- package/GraphreportList.js +0 -239
- package/GraphreportModal.js +0 -559
- package/JOnlineSearchSelect.js +0 -107
- package/LICENSE +0 -7
- package/OnlineSelectCascade.js +0 -217
- package/OnlineSubForm.js +0 -200
- package/ParamsTable.js +0 -71
- package/graphreport.api.js +0 -23
- package/useChartRender.js +0 -405
- package/useMessageOnline.js +0 -71
package/CustomButtonList.js
CHANGED
|
@@ -34,7 +34,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
34
34
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps,
|
|
37
|
+
import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
38
38
|
import { u as useOnlineTest } from "./useOnlineTest.js";
|
|
39
39
|
import { useListPage } from "/@/hooks/system/useListPage";
|
|
40
40
|
import { BasicTable, TableAction } from "/@/components/Table";
|
|
@@ -43,17 +43,18 @@ import { BasicForm, useForm } from "/@/components/Form";
|
|
|
43
43
|
import { defHttp } from "/@/utils/http/axios";
|
|
44
44
|
import { _ as _export_sfc } from "./index.js";
|
|
45
45
|
import "/@/hooks/web/useMessage";
|
|
46
|
-
import "
|
|
47
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
48
|
-
import "vue-router";
|
|
46
|
+
import "@vueuse/core";
|
|
49
47
|
const list = (code, params) => defHttp.get({ url: "/online/cgform/button/list/" + code, params });
|
|
50
48
|
function doBatchDelete(idList) {
|
|
51
|
-
return defHttp.delete(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
return defHttp.delete(
|
|
50
|
+
{
|
|
51
|
+
url: "/online/cgform/button/deleteBatch",
|
|
52
|
+
params: {
|
|
53
|
+
ids: idList.join(",")
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{ joinParamsToUrl: true }
|
|
57
|
+
);
|
|
57
58
|
}
|
|
58
59
|
const saveOrUpdate = (params, isUpdate) => {
|
|
59
60
|
if (isUpdate) {
|
|
@@ -200,7 +201,7 @@ const _sfc_main = defineComponent({
|
|
|
200
201
|
code.value = data.row.id;
|
|
201
202
|
reload();
|
|
202
203
|
}));
|
|
203
|
-
const { aiTestMode, genButtons } = useOnlineTest(
|
|
204
|
+
const { aiTestMode, genButtons } = useOnlineTest();
|
|
204
205
|
const [registerFormModal, formModal] = useModal();
|
|
205
206
|
const isUpdate = ref(false);
|
|
206
207
|
const formModalProps = reactive({
|
|
@@ -295,15 +296,10 @@ const _sfc_main = defineComponent({
|
|
|
295
296
|
};
|
|
296
297
|
}
|
|
297
298
|
});
|
|
298
|
-
const _hoisted_1 =
|
|
299
|
-
const _hoisted_2 = {
|
|
299
|
+
const _hoisted_1 = {
|
|
300
300
|
key: 0,
|
|
301
301
|
style: { "float": "left" }
|
|
302
302
|
};
|
|
303
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E");
|
|
304
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u65B0\u589E");
|
|
305
|
-
const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u5220\u9664 ");
|
|
306
|
-
const _hoisted_6 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u64CD\u4F5C ");
|
|
307
303
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
308
304
|
const _component_a_button = resolveComponent("a-button");
|
|
309
305
|
const _component_a_icon = resolveComponent("a-icon");
|
|
@@ -325,14 +321,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
325
321
|
footer: withCtx(() => [
|
|
326
322
|
createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
|
|
327
323
|
default: withCtx(() => [
|
|
328
|
-
|
|
324
|
+
createTextVNode("\u5173\u95ED")
|
|
329
325
|
]),
|
|
330
326
|
_: 1
|
|
331
327
|
}, 8, ["onClick"]),
|
|
332
|
-
_ctx.aiTestMode ? (openBlock(), createElementBlock("div",
|
|
328
|
+
_ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
333
329
|
createVNode(_component_a_button, { onClick: _ctx.onGenButtons }, {
|
|
334
330
|
default: withCtx(() => [
|
|
335
|
-
|
|
331
|
+
createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E")
|
|
336
332
|
]),
|
|
337
333
|
_: 1
|
|
338
334
|
}, 8, ["onClick"])
|
|
@@ -350,7 +346,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
350
346
|
preIcon: "ant-design:plus"
|
|
351
347
|
}, {
|
|
352
348
|
default: withCtx(() => [
|
|
353
|
-
|
|
349
|
+
createTextVNode("\u65B0\u589E")
|
|
354
350
|
]),
|
|
355
351
|
_: 1
|
|
356
352
|
}, 8, ["onClick"]),
|
|
@@ -364,7 +360,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
364
360
|
}, {
|
|
365
361
|
default: withCtx(() => [
|
|
366
362
|
createVNode(_component_a_icon, { type: "delete" }),
|
|
367
|
-
|
|
363
|
+
createTextVNode(" \u5220\u9664 ")
|
|
368
364
|
]),
|
|
369
365
|
_: 1
|
|
370
366
|
}, 8, ["onClick"])
|
|
@@ -375,7 +371,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
375
371
|
default: withCtx(() => [
|
|
376
372
|
createVNode(_component_a_button, { style: { "margin-left": "8px" } }, {
|
|
377
373
|
default: withCtx(() => [
|
|
378
|
-
|
|
374
|
+
createTextVNode(" \u6279\u91CF\u64CD\u4F5C "),
|
|
379
375
|
createVNode(_component_a_icon, { type: "down" })
|
|
380
376
|
]),
|
|
381
377
|
_: 1
|
package/DBAttributeTable.js
CHANGED
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, getCurrentInstance, ref, resolveComponent, openBlock, createBlock } from "vue";
|
|
20
|
+
import { defineComponent, getCurrentInstance, ref, resolveComponent, openBlock, createBlock, mergeProps } from "vue";
|
|
21
21
|
import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
|
|
22
22
|
import { u as useTableSync } from "./useTableSync.js";
|
|
23
23
|
import { _ as _export_sfc } from "./index.js";
|
|
@@ -26,13 +26,240 @@ import "/@/utils/dict";
|
|
|
26
26
|
import "/@/utils/dict/JDictSelectUtil";
|
|
27
27
|
import "/@/utils/uuid";
|
|
28
28
|
import "./pick.js";
|
|
29
|
+
import "./_flatRest.js";
|
|
29
30
|
import "./isArray.js";
|
|
30
31
|
import "./toString.js";
|
|
31
32
|
import "./_arrayPush.js";
|
|
32
|
-
import "/@/
|
|
33
|
+
import "/@/utils/http/axios";
|
|
33
34
|
import "/@/hooks/web/useMessage";
|
|
34
|
-
import "
|
|
35
|
-
const MySQLKeywords = [
|
|
35
|
+
import "@vueuse/core";
|
|
36
|
+
const MySQLKeywords = [
|
|
37
|
+
"ADD",
|
|
38
|
+
"ALL",
|
|
39
|
+
"ALTER",
|
|
40
|
+
"ANALYZE",
|
|
41
|
+
"AND",
|
|
42
|
+
"AS",
|
|
43
|
+
"ASC",
|
|
44
|
+
"ASENSITIVE",
|
|
45
|
+
"BEFORE",
|
|
46
|
+
"BETWEEN",
|
|
47
|
+
"BIGINT",
|
|
48
|
+
"BINARY",
|
|
49
|
+
"BLOB",
|
|
50
|
+
"BOTH",
|
|
51
|
+
"BY",
|
|
52
|
+
"CALL",
|
|
53
|
+
"CASCADE",
|
|
54
|
+
"CASE",
|
|
55
|
+
"CHANGE",
|
|
56
|
+
"CHAR",
|
|
57
|
+
"CHARACTER",
|
|
58
|
+
"CHECK",
|
|
59
|
+
"COLLATE",
|
|
60
|
+
"COLUMN",
|
|
61
|
+
"CONDITION",
|
|
62
|
+
"CONNECTION",
|
|
63
|
+
"CONSTRAINT",
|
|
64
|
+
"CONTINUE",
|
|
65
|
+
"CONVERT",
|
|
66
|
+
"CREATE",
|
|
67
|
+
"CROSS",
|
|
68
|
+
"CURRENT_DATE",
|
|
69
|
+
"CURRENT_TIME",
|
|
70
|
+
"CURRENT_TIMESTAMP",
|
|
71
|
+
"CURRENT_USER",
|
|
72
|
+
"CURSOR",
|
|
73
|
+
"DATABASE",
|
|
74
|
+
"DATABASES",
|
|
75
|
+
"DAY_HOUR",
|
|
76
|
+
"DAY_MICROSECOND",
|
|
77
|
+
"DAY_MINUTE",
|
|
78
|
+
"DAY_SECOND",
|
|
79
|
+
"DEC",
|
|
80
|
+
"DECIMAL",
|
|
81
|
+
"DECLARE",
|
|
82
|
+
"DEFAULT",
|
|
83
|
+
"DELAYED",
|
|
84
|
+
"DELETE",
|
|
85
|
+
"DESC",
|
|
86
|
+
"DESCRIBE",
|
|
87
|
+
"DETERMINISTIC",
|
|
88
|
+
"DISTINCT",
|
|
89
|
+
"DISTINCTROW",
|
|
90
|
+
"DIV",
|
|
91
|
+
"DOUBLE",
|
|
92
|
+
"DROP",
|
|
93
|
+
"DUAL",
|
|
94
|
+
"EACH",
|
|
95
|
+
"ELSE",
|
|
96
|
+
"ELSEIF",
|
|
97
|
+
"ENCLOSED",
|
|
98
|
+
"ESCAPED",
|
|
99
|
+
"EXISTS",
|
|
100
|
+
"EXIT",
|
|
101
|
+
"EXPLAIN",
|
|
102
|
+
"FALSE",
|
|
103
|
+
"FETCH",
|
|
104
|
+
"FLOAT",
|
|
105
|
+
"FLOAT4",
|
|
106
|
+
"FLOAT8",
|
|
107
|
+
"FOR",
|
|
108
|
+
"FORCE",
|
|
109
|
+
"FOREIGN",
|
|
110
|
+
"FROM",
|
|
111
|
+
"FULLTEXT",
|
|
112
|
+
"GOTO",
|
|
113
|
+
"GRANT",
|
|
114
|
+
"GROUP",
|
|
115
|
+
"HAVING",
|
|
116
|
+
"HIGH_PRIORITY",
|
|
117
|
+
"HOUR_MICROSECOND",
|
|
118
|
+
"HOUR_MINUTE",
|
|
119
|
+
"HOUR_SECOND",
|
|
120
|
+
"IF",
|
|
121
|
+
"IGNORE",
|
|
122
|
+
"IN",
|
|
123
|
+
"INDEX",
|
|
124
|
+
"INFILE",
|
|
125
|
+
"INNER",
|
|
126
|
+
"INOUT",
|
|
127
|
+
"INSENSITIVE",
|
|
128
|
+
"INSERT",
|
|
129
|
+
"INT",
|
|
130
|
+
"INT1",
|
|
131
|
+
"INT2",
|
|
132
|
+
"INT3",
|
|
133
|
+
"INT4",
|
|
134
|
+
"INT8",
|
|
135
|
+
"INTEGER",
|
|
136
|
+
"INTERVAL",
|
|
137
|
+
"INTO",
|
|
138
|
+
"IS",
|
|
139
|
+
"ITERATE",
|
|
140
|
+
"JOIN",
|
|
141
|
+
"KEY",
|
|
142
|
+
"KEYS",
|
|
143
|
+
"KILL",
|
|
144
|
+
"LABEL",
|
|
145
|
+
"LEADING",
|
|
146
|
+
"LEAVE",
|
|
147
|
+
"LEFT",
|
|
148
|
+
"LIKE",
|
|
149
|
+
"LIMIT",
|
|
150
|
+
"LINEAR",
|
|
151
|
+
"LINES",
|
|
152
|
+
"LOAD",
|
|
153
|
+
"LOCALTIME",
|
|
154
|
+
"LOCALTIMESTAMP",
|
|
155
|
+
"LOCK",
|
|
156
|
+
"LONG",
|
|
157
|
+
"LONGBLOB",
|
|
158
|
+
"LONGTEXT",
|
|
159
|
+
"LOOP",
|
|
160
|
+
"LOW_PRIORITY",
|
|
161
|
+
"MATCH",
|
|
162
|
+
"MEDIUMBLOB",
|
|
163
|
+
"MEDIUMINT",
|
|
164
|
+
"MEDIUMTEXT",
|
|
165
|
+
"MIDDLEINT",
|
|
166
|
+
"MINUTE_MICROSECOND",
|
|
167
|
+
"MINUTE_SECOND",
|
|
168
|
+
"MOD",
|
|
169
|
+
"MODIFIES",
|
|
170
|
+
"NATURAL",
|
|
171
|
+
"NOT",
|
|
172
|
+
"NO_WRITE_TO_BINLOG",
|
|
173
|
+
"NULL",
|
|
174
|
+
"NUMERIC",
|
|
175
|
+
"ON",
|
|
176
|
+
"OPTIMIZE",
|
|
177
|
+
"OPTION",
|
|
178
|
+
"OPTIONALLY",
|
|
179
|
+
"OR",
|
|
180
|
+
"ORDER",
|
|
181
|
+
"OUT",
|
|
182
|
+
"OUTER",
|
|
183
|
+
"OUTFILE",
|
|
184
|
+
"PRECISION",
|
|
185
|
+
"PRIMARY",
|
|
186
|
+
"PROCEDURE",
|
|
187
|
+
"PURGE",
|
|
188
|
+
"RAID0",
|
|
189
|
+
"RANGE",
|
|
190
|
+
"READ",
|
|
191
|
+
"READS",
|
|
192
|
+
"REAL",
|
|
193
|
+
"REFERENCES",
|
|
194
|
+
"REGEXP",
|
|
195
|
+
"RELEASE",
|
|
196
|
+
"RENAME",
|
|
197
|
+
"REPEAT",
|
|
198
|
+
"REPLACE",
|
|
199
|
+
"REQUIRE",
|
|
200
|
+
"RESTRICT",
|
|
201
|
+
"RETURN",
|
|
202
|
+
"REVOKE",
|
|
203
|
+
"RIGHT",
|
|
204
|
+
"RLIKE",
|
|
205
|
+
"SCHEMA",
|
|
206
|
+
"SCHEMAS",
|
|
207
|
+
"SECOND_MICROSECOND",
|
|
208
|
+
"SELECT",
|
|
209
|
+
"SENSITIVE",
|
|
210
|
+
"SEPARATOR",
|
|
211
|
+
"SET",
|
|
212
|
+
"SHOW",
|
|
213
|
+
"SMALLINT",
|
|
214
|
+
"SPATIAL",
|
|
215
|
+
"SPECIFIC",
|
|
216
|
+
"SQL",
|
|
217
|
+
"SQLEXCEPTION",
|
|
218
|
+
"SQLSTATE",
|
|
219
|
+
"SQLWARNING",
|
|
220
|
+
"SQL_BIG_RESULT",
|
|
221
|
+
"SQL_CALC_FOUND_ROWS",
|
|
222
|
+
"SQL_SMALL_RESULT",
|
|
223
|
+
"SSL",
|
|
224
|
+
"STARTING",
|
|
225
|
+
"STRAIGHT_JOIN",
|
|
226
|
+
"TABLE",
|
|
227
|
+
"TERMINATED",
|
|
228
|
+
"THEN",
|
|
229
|
+
"TINYBLOB",
|
|
230
|
+
"TINYINT",
|
|
231
|
+
"TINYTEXT",
|
|
232
|
+
"TO",
|
|
233
|
+
"TRAILING",
|
|
234
|
+
"TRIGGER",
|
|
235
|
+
"TRUE",
|
|
236
|
+
"UNDO",
|
|
237
|
+
"UNION",
|
|
238
|
+
"UNIQUE",
|
|
239
|
+
"UNLOCK",
|
|
240
|
+
"UNSIGNED",
|
|
241
|
+
"UPDATE",
|
|
242
|
+
"USAGE",
|
|
243
|
+
"USE",
|
|
244
|
+
"USING",
|
|
245
|
+
"UTC_DATE",
|
|
246
|
+
"UTC_TIME",
|
|
247
|
+
"UTC_TIMESTAMP",
|
|
248
|
+
"VALUES",
|
|
249
|
+
"VARBINARY",
|
|
250
|
+
"VARCHAR",
|
|
251
|
+
"VARCHARACTER",
|
|
252
|
+
"VARYING",
|
|
253
|
+
"WHEN",
|
|
254
|
+
"WHERE",
|
|
255
|
+
"WHILE",
|
|
256
|
+
"WITH",
|
|
257
|
+
"WRITE",
|
|
258
|
+
"X509",
|
|
259
|
+
"XOR",
|
|
260
|
+
"YEAR_MONTH",
|
|
261
|
+
"ZEROFILL"
|
|
262
|
+
];
|
|
36
263
|
const _sfc_main = defineComponent({
|
|
37
264
|
name: "DBAttributeTable",
|
|
38
265
|
props: {
|
|
@@ -125,9 +352,7 @@ const _sfc_main = defineComponent({
|
|
|
125
352
|
defaultValue: "string",
|
|
126
353
|
placeholder: "\u8BF7\u9009\u62E9${title}",
|
|
127
354
|
disabled: !props.actionButton,
|
|
128
|
-
validateRules: [
|
|
129
|
-
{ required: true, message: "\u8BF7\u9009\u62E9${title}" }
|
|
130
|
-
]
|
|
355
|
+
validateRules: [{ required: true, message: "\u8BF7\u9009\u62E9${title}" }]
|
|
131
356
|
},
|
|
132
357
|
{
|
|
133
358
|
title: "\u4E3B\u952E",
|
|
@@ -142,6 +367,15 @@ const _sfc_main = defineComponent({
|
|
|
142
367
|
{
|
|
143
368
|
title: "\u5141\u8BB8\u7A7A\u503C",
|
|
144
369
|
key: "dbIsNull",
|
|
370
|
+
width: 80,
|
|
371
|
+
type: JVxeTypes.checkbox,
|
|
372
|
+
customValue: ["1", "0"],
|
|
373
|
+
defaultChecked: true,
|
|
374
|
+
disabled: !props.actionButton
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
title: "\u540C\u6B65\u6570\u636E\u5E93",
|
|
378
|
+
key: "dbIsPersist",
|
|
145
379
|
minWidth: 80,
|
|
146
380
|
type: JVxeTypes.checkbox,
|
|
147
381
|
customValue: ["1", "0"],
|
|
@@ -152,7 +386,7 @@ const _sfc_main = defineComponent({
|
|
|
152
386
|
]);
|
|
153
387
|
let removeIds = [];
|
|
154
388
|
const setup = useTableSync(columns);
|
|
155
|
-
const { tableRef, loading, dataSource, tableHeight, setDataSource, validateData } = setup;
|
|
389
|
+
const { tableRef, loading, dataSource, tableHeight, tableProps, setDataSource, validateData } = setup;
|
|
156
390
|
function handleAdded() {
|
|
157
391
|
emit("added", instance);
|
|
158
392
|
}
|
|
@@ -180,11 +414,11 @@ const _sfc_main = defineComponent({
|
|
|
180
414
|
emit("syncDbType", { row, value, target: instance });
|
|
181
415
|
}
|
|
182
416
|
if (value === "Blob" || value === "Text" || value === "Date") {
|
|
183
|
-
target.
|
|
417
|
+
target.setValues([{ rowKey: row.id, values: { dbLength: "0" } }]);
|
|
184
418
|
} else if (value === "int" || value === "double" || value === "BigDecimal") {
|
|
185
|
-
target.
|
|
419
|
+
target.setValues([{ rowKey: row.id, values: { dbLength: "10" } }]);
|
|
186
420
|
} else if (row["dbLength"] === "0") {
|
|
187
|
-
target.
|
|
421
|
+
target.setValues([{ rowKey: row.id, values: { dbLength: "32" } }]);
|
|
188
422
|
}
|
|
189
423
|
}
|
|
190
424
|
}
|
|
@@ -239,6 +473,7 @@ const _sfc_main = defineComponent({
|
|
|
239
473
|
addBatchEnd,
|
|
240
474
|
tableAddLine,
|
|
241
475
|
tableHeight,
|
|
476
|
+
tableProps,
|
|
242
477
|
tableDeleteLines,
|
|
243
478
|
handleAdded,
|
|
244
479
|
handleRemoved,
|
|
@@ -253,7 +488,7 @@ const _sfc_main = defineComponent({
|
|
|
253
488
|
});
|
|
254
489
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
255
490
|
const _component_JVxeTable = resolveComponent("JVxeTable");
|
|
256
|
-
return openBlock(), createBlock(_component_JVxeTable, {
|
|
491
|
+
return openBlock(), createBlock(_component_JVxeTable, mergeProps({
|
|
257
492
|
ref: "tableRef",
|
|
258
493
|
rowNumber: "",
|
|
259
494
|
rowSelection: "",
|
|
@@ -266,13 +501,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
266
501
|
dataSource: _ctx.dataSource,
|
|
267
502
|
toolbar: _ctx.actionButton,
|
|
268
503
|
maxHeight: _ctx.tableHeight.normal,
|
|
269
|
-
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
504
|
+
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
505
|
+
}, _ctx.tableProps, {
|
|
270
506
|
onAdded: _ctx.handleAdded,
|
|
271
507
|
onRemoved: _ctx.handleRemoved,
|
|
272
508
|
onDragged: _ctx.handleDragged,
|
|
273
509
|
onInserted: _ctx.handleInserted,
|
|
274
510
|
onValueChange: _ctx.handleValueChange
|
|
275
|
-
}, null,
|
|
511
|
+
}), null, 16, ["loading", "columns", "dataSource", "toolbar", "maxHeight", "onAdded", "onRemoved", "onDragged", "onInserted", "onValueChange"]);
|
|
276
512
|
}
|
|
277
513
|
var DBAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
278
514
|
export { DBAttributeTable as default };
|
package/DbToOnlineModal.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode,
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createElementVNode } from "vue";
|
|
2
2
|
import { defHttp } from "/@/utils/http/axios";
|
|
3
3
|
import { BasicTable } from "/@/components/Table";
|
|
4
4
|
import { BasicModal, useModalInner } from "/@/components/Modal";
|
|
5
5
|
import { useListTable } from "/@/hooks/system/useListPage";
|
|
6
6
|
import { useMessage } from "/@/hooks/web/useMessage";
|
|
7
7
|
import { _ as _export_sfc } from "./index.js";
|
|
8
|
-
import "
|
|
9
|
-
import "vue-router";
|
|
8
|
+
import "@vueuse/core";
|
|
10
9
|
const _sfc_main = defineComponent({
|
|
11
10
|
name: "TransDb2Online",
|
|
12
11
|
components: { BasicModal, BasicTable },
|
|
@@ -26,9 +25,7 @@ const _sfc_main = defineComponent({
|
|
|
26
25
|
});
|
|
27
26
|
const [registerTable, { setPagination }, { rowSelection, selectedRowKeys }] = useListTable({
|
|
28
27
|
bordered: true,
|
|
29
|
-
columns: [
|
|
30
|
-
{ title: "\u8868\u540D", align: "left", dataIndex: "id" }
|
|
31
|
-
],
|
|
28
|
+
columns: [{ title: "\u8868\u540D", align: "left", dataIndex: "id" }],
|
|
32
29
|
dataSource,
|
|
33
30
|
maxHeight: 300,
|
|
34
31
|
locale: { emptyText },
|
|
@@ -63,24 +60,30 @@ const _sfc_main = defineComponent({
|
|
|
63
60
|
});
|
|
64
61
|
function queryTables() {
|
|
65
62
|
confirmLoading.value = true;
|
|
66
|
-
return defHttp.get(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
63
|
+
return defHttp.get(
|
|
64
|
+
{
|
|
65
|
+
url: "/online/cgform/head/queryTables/"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
errorMessageMode: "none"
|
|
69
|
+
}
|
|
70
|
+
).then(
|
|
71
|
+
(result) => {
|
|
72
|
+
dataSource.value = result;
|
|
73
|
+
metaSource.value = [...result];
|
|
74
|
+
return result;
|
|
75
|
+
},
|
|
76
|
+
(e) => {
|
|
77
|
+
if (e.message == "noadminauth") {
|
|
78
|
+
emptyText.value = "\u975Eadmin\u7528\u6237\u65E0\u6743\u9650\u64CD\u4F5C\uFF01";
|
|
79
|
+
$message.warn(emptyText.value);
|
|
80
|
+
} else {
|
|
81
|
+
console.error(e);
|
|
82
|
+
}
|
|
83
|
+
dataSource.value = [];
|
|
84
|
+
metaSource.value = [];
|
|
80
85
|
}
|
|
81
|
-
|
|
82
|
-
metaSource.value = [];
|
|
83
|
-
}).finally(() => {
|
|
86
|
+
).finally(() => {
|
|
84
87
|
confirmLoading.value = false;
|
|
85
88
|
});
|
|
86
89
|
}
|
|
@@ -133,8 +136,6 @@ const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", null, [
|
|
|
133
136
|
target: "_blank"
|
|
134
137
|
}, " \u53C2\u8003\u6587\u6863")
|
|
135
138
|
], -1);
|
|
136
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
137
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u751F\u6210\u8868\u5355 ");
|
|
138
139
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
139
140
|
const _component_BasicTable = resolveComponent("BasicTable");
|
|
140
141
|
const _component_a_spin = resolveComponent("a-spin");
|
|
@@ -150,7 +151,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
151
|
footer: withCtx(() => [
|
|
151
152
|
createVNode(_component_a_button, { onClick: _ctx.handleCancel }, {
|
|
152
153
|
default: withCtx(() => [
|
|
153
|
-
|
|
154
|
+
createTextVNode("\u5173\u95ED")
|
|
154
155
|
]),
|
|
155
156
|
_: 1
|
|
156
157
|
}, 8, ["onClick"]),
|
|
@@ -161,7 +162,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
161
162
|
loading: _ctx.confirmLoading || _ctx.btnLoading
|
|
162
163
|
}, {
|
|
163
164
|
default: withCtx(() => [
|
|
164
|
-
|
|
165
|
+
createTextVNode(" \u751F\u6210\u8868\u5355 ")
|
|
165
166
|
]),
|
|
166
167
|
_: 1
|
|
167
168
|
}, 8, ["onClick", "loading"])
|