@jeecg/online 3.6.2-beta → 3.7.0-beta
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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-eccfc38e.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-5a23d089.mjs} +154 -131
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-373e8058.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-02e3d897.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-9f13956f.mjs → DbToOnlineModal-f49b9530.mjs} +57 -51
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-33c7dc44.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-c287af12.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-fa85523d.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-49508cad.mjs → index-581bef24.mjs} +29 -27
- package/{index-b7a05eef.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- package/useListButton-cdbab702.mjs +0 -676
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
1
|
+
var $ = Object.defineProperty, x = Object.defineProperties;
|
|
2
2
|
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var d in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var d of
|
|
10
|
-
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var K = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var b = (e, a, d) => a in e ? $(e, a, { enumerable: !0, configurable: !0, writable: !0, value: d }) : e[a] = d, D = (e, a) => {
|
|
6
|
+
for (var d in a || (a = {}))
|
|
7
|
+
K.call(a, d) && b(e, d, a[d]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var d of C(a))
|
|
10
|
+
W.call(a, d) && b(e, d, a[d]);
|
|
11
11
|
return e;
|
|
12
|
-
}, O = (e,
|
|
13
|
-
import { defineComponent as
|
|
14
|
-
import { JVxeTypes as
|
|
15
|
-
import { u as
|
|
16
|
-
import { _ as
|
|
17
|
-
import "./cgform.data-
|
|
12
|
+
}, O = (e, a) => x(e, k(a));
|
|
13
|
+
import { defineComponent as X, getCurrentInstance as Q, ref as c, resolveComponent as q, openBlock as J, createBlock as Z, mergeProps as z } from "vue";
|
|
14
|
+
import { JVxeTypes as E } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
+
import { u as j } from "./useTableSync-f6089e8a.mjs";
|
|
16
|
+
import { _ as ee } from "./index-173949bb.mjs";
|
|
17
|
+
import "./cgform.data-475d4984.mjs";
|
|
18
18
|
import "/@/utils/dict";
|
|
19
19
|
import "/@/utils/dict/JDictSelectUtil";
|
|
20
20
|
import "/@/utils/uuid";
|
|
@@ -22,7 +22,7 @@ import "lodash-es";
|
|
|
22
22
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
23
|
import "/@/hooks/web/useMessage";
|
|
24
24
|
import "vue-router";
|
|
25
|
-
const
|
|
25
|
+
const te = [
|
|
26
26
|
"ADD",
|
|
27
27
|
"ALL",
|
|
28
28
|
"ALTER",
|
|
@@ -248,19 +248,19 @@ const ee = [
|
|
|
248
248
|
"XOR",
|
|
249
249
|
"YEAR_MONTH",
|
|
250
250
|
"ZEROFILL"
|
|
251
|
-
],
|
|
251
|
+
], ae = X({
|
|
252
252
|
name: "DBAttributeTable",
|
|
253
253
|
props: {
|
|
254
254
|
actionButton: { type: Boolean, default: !0 }
|
|
255
255
|
},
|
|
256
|
-
emits: ["added", "removed", "inserted", "dragged", "syncDbType"],
|
|
257
|
-
setup(e, { emit:
|
|
258
|
-
const d =
|
|
256
|
+
emits: ["added", "removed", "inserted", "dragged", "syncDbType", "syncDbIsPersist", "syncDbIsNull"],
|
|
257
|
+
setup(e, { emit: a }) {
|
|
258
|
+
const d = Q(), I = c(!1), R = c([
|
|
259
259
|
{
|
|
260
260
|
title: "字段名称",
|
|
261
261
|
key: "dbFieldName",
|
|
262
262
|
width: 140,
|
|
263
|
-
type:
|
|
263
|
+
type: E.input,
|
|
264
264
|
defaultValue: "",
|
|
265
265
|
placeholder: "请输入${title}",
|
|
266
266
|
validateRules: [
|
|
@@ -271,11 +271,18 @@ const ee = [
|
|
|
271
271
|
},
|
|
272
272
|
{ unique: !0, message: "${title}不能重复" },
|
|
273
273
|
{
|
|
274
|
-
handler({ cellValue:
|
|
275
|
-
|
|
274
|
+
handler({ cellValue: t }, i) {
|
|
275
|
+
te.includes(t.toUpperCase()) ? i(!1, t + "是关键字,不能作为字段名称使用!") : i(!0);
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
{ handler: S }
|
|
278
|
+
{ handler: S },
|
|
279
|
+
// update-begin--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
|
|
280
|
+
{
|
|
281
|
+
handler({ cellValue: t }, i) {
|
|
282
|
+
t.length > 32 ? i(!1, "字段名最长32个字符") : i(!0);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
// update-end--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
|
|
279
286
|
],
|
|
280
287
|
disabled: !e.actionButton
|
|
281
288
|
},
|
|
@@ -283,16 +290,25 @@ const ee = [
|
|
|
283
290
|
title: "字段备注",
|
|
284
291
|
key: "dbFieldTxt",
|
|
285
292
|
width: 140,
|
|
286
|
-
type:
|
|
293
|
+
type: E.input,
|
|
287
294
|
defaultValue: "",
|
|
288
295
|
placeholder: "请输入${title}",
|
|
289
|
-
validateRules: [
|
|
296
|
+
validateRules: [
|
|
297
|
+
{ required: !0, message: "${title}不能为空" },
|
|
298
|
+
// update-begin--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
|
|
299
|
+
{
|
|
300
|
+
handler({ cellValue: t }, i) {
|
|
301
|
+
t.length > 200 ? i(!1, "字段名最长200个字") : i(!0);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
// update-end--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
|
|
305
|
+
]
|
|
290
306
|
},
|
|
291
307
|
{
|
|
292
308
|
title: "字段长度",
|
|
293
309
|
key: "dbLength",
|
|
294
310
|
width: 120,
|
|
295
|
-
type:
|
|
311
|
+
type: E.inputNumber,
|
|
296
312
|
defaultValue: 32,
|
|
297
313
|
placeholder: "请输入${title}",
|
|
298
314
|
validateRules: [{ required: !0, message: "${title}不能为空" }],
|
|
@@ -302,7 +318,7 @@ const ee = [
|
|
|
302
318
|
title: "小数点",
|
|
303
319
|
key: "dbPointLength",
|
|
304
320
|
width: 100,
|
|
305
|
-
type:
|
|
321
|
+
type: E.inputNumber,
|
|
306
322
|
defaultValue: 0,
|
|
307
323
|
placeholder: "请输入${title}",
|
|
308
324
|
validateRules: [{ required: !0, message: "${title}不能为空" }],
|
|
@@ -312,7 +328,7 @@ const ee = [
|
|
|
312
328
|
title: "默认值",
|
|
313
329
|
key: "dbDefaultVal",
|
|
314
330
|
width: 140,
|
|
315
|
-
type:
|
|
331
|
+
type: E.input,
|
|
316
332
|
defaultValue: "",
|
|
317
333
|
disabled: !e.actionButton
|
|
318
334
|
},
|
|
@@ -320,7 +336,7 @@ const ee = [
|
|
|
320
336
|
title: "字段类型",
|
|
321
337
|
key: "dbType",
|
|
322
338
|
width: 140,
|
|
323
|
-
type:
|
|
339
|
+
type: E.select,
|
|
324
340
|
options: [
|
|
325
341
|
{ title: "String", value: "string" },
|
|
326
342
|
{ title: "Integer", value: "int" },
|
|
@@ -334,13 +350,13 @@ const ee = [
|
|
|
334
350
|
defaultValue: "string",
|
|
335
351
|
placeholder: "请选择${title}",
|
|
336
352
|
disabled: !e.actionButton,
|
|
337
|
-
validateRules: [{ required: !0, message: "请选择${title}" }]
|
|
353
|
+
validateRules: [{ required: !0, message: "请选择${title}" }, { handler: w }]
|
|
338
354
|
},
|
|
339
355
|
{
|
|
340
356
|
title: "主键",
|
|
341
357
|
key: "dbIsKey",
|
|
342
358
|
width: 80,
|
|
343
|
-
type:
|
|
359
|
+
type: E.checkbox,
|
|
344
360
|
align: "center",
|
|
345
361
|
customValue: ["1", "0"],
|
|
346
362
|
defaultChecked: !1,
|
|
@@ -350,7 +366,7 @@ const ee = [
|
|
|
350
366
|
title: "允许空值",
|
|
351
367
|
key: "dbIsNull",
|
|
352
368
|
width: 80,
|
|
353
|
-
type:
|
|
369
|
+
type: E.checkbox,
|
|
354
370
|
customValue: ["1", "0"],
|
|
355
371
|
defaultChecked: !0,
|
|
356
372
|
disabled: !e.actionButton
|
|
@@ -359,97 +375,102 @@ const ee = [
|
|
|
359
375
|
title: "同步数据库",
|
|
360
376
|
key: "dbIsPersist",
|
|
361
377
|
minWidth: 80,
|
|
362
|
-
type:
|
|
378
|
+
type: E.checkbox,
|
|
363
379
|
customValue: ["1", "0"],
|
|
364
380
|
defaultChecked: !0,
|
|
365
381
|
disabled: !e.actionButton
|
|
366
382
|
},
|
|
367
|
-
{ title: "orderNum", key: "orderNum", type:
|
|
383
|
+
{ title: "orderNum", key: "orderNum", type: E.hidden }
|
|
368
384
|
]);
|
|
369
385
|
let u = [];
|
|
370
|
-
const
|
|
371
|
-
function
|
|
372
|
-
|
|
386
|
+
const T = j(R), { tableRef: N, loading: A, dataSource: f, tableHeight: g, tableProps: h, setDataSource: m, validateData: p } = T;
|
|
387
|
+
function y() {
|
|
388
|
+
a("added", d);
|
|
373
389
|
}
|
|
374
|
-
function
|
|
375
|
-
u = u.concat(
|
|
390
|
+
function U(t) {
|
|
391
|
+
u = u.concat(t.deleteRows.map((i) => i.id)), a("removed", O(D({}, t), { removeIds: u, target: d }));
|
|
376
392
|
}
|
|
377
|
-
function
|
|
378
|
-
|
|
379
|
-
oldIndex:
|
|
380
|
-
newIndex:
|
|
393
|
+
function B(t) {
|
|
394
|
+
a("dragged", {
|
|
395
|
+
oldIndex: t.oldIndex,
|
|
396
|
+
newIndex: t.newIndex,
|
|
381
397
|
target: d
|
|
382
398
|
});
|
|
383
399
|
}
|
|
384
|
-
function
|
|
385
|
-
|
|
400
|
+
function _(t) {
|
|
401
|
+
a("inserted", O(D({}, t), { target: d }));
|
|
386
402
|
}
|
|
387
|
-
function
|
|
403
|
+
function M() {
|
|
388
404
|
return u;
|
|
389
405
|
}
|
|
390
|
-
function
|
|
391
|
-
let { type:
|
|
392
|
-
|
|
406
|
+
function v(t) {
|
|
407
|
+
let { type: i, row: l, col: r, value: n, target: o, oldValue: s } = t;
|
|
408
|
+
i === E.select && r.key === "dbType" ? ((n === "Date" || n === "Datetime") && a("syncDbType", { row: l, value: n, target: d }), n === "string" && (s == "Date" || s == "Datetime") && a("syncDbType", { row: l, value: n, target: d }), n === "Blob" || n === "Text" || n === "Date" ? o.setValues([{ rowKey: l.id, values: { dbLength: "0" } }]) : n === "string" ? o.setValues([{ rowKey: l.id, values: { dbLength: "32" } }]) : n === "int" || n === "double" || n === "BigDecimal" ? o.setValues([{ rowKey: l.id, values: { dbLength: "10" } }]) : l.dbLength === "0" && o.setValues([{ rowKey: l.id, values: { dbLength: "32" } }])) : r.key === "dbIsPersist" ? a("syncDbIsPersist", { row: l, value: n, target: d }) : r.key === "dbIsNull" && a("syncDbIsNull", { row: l, value: n, target: d });
|
|
393
409
|
}
|
|
394
|
-
function
|
|
395
|
-
return
|
|
410
|
+
function F(t, i, l) {
|
|
411
|
+
return t === "has_child" || t === "id" && l === 0;
|
|
396
412
|
}
|
|
397
|
-
function V(
|
|
398
|
-
N.value.pushRows(
|
|
413
|
+
function V(t) {
|
|
414
|
+
N.value.pushRows(t), I.value || a("added", d);
|
|
399
415
|
}
|
|
400
|
-
function
|
|
401
|
-
return N.value.removeRowsById(
|
|
416
|
+
function P(t) {
|
|
417
|
+
return N.value.removeRowsById(t);
|
|
402
418
|
}
|
|
403
|
-
function
|
|
404
|
-
|
|
419
|
+
function H() {
|
|
420
|
+
I.value = !0, A.value = !0;
|
|
405
421
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
422
|
+
function G() {
|
|
423
|
+
I.value = !1, A.value = !1, a("added", d);
|
|
408
424
|
}
|
|
409
|
-
function S({ cellValue:
|
|
410
|
-
const { tables:
|
|
411
|
-
if (
|
|
412
|
-
let o =
|
|
425
|
+
function S({ cellValue: t, row: i }, l) {
|
|
426
|
+
const { tables: r } = T;
|
|
427
|
+
if (r) {
|
|
428
|
+
let o = r.dbTable.value.tableRef.dataSource.filter((L) => L.id === i.id);
|
|
413
429
|
(!o || o.length <= 0) && l(!0);
|
|
414
|
-
let
|
|
415
|
-
|
|
416
|
-
let
|
|
417
|
-
for (let
|
|
418
|
-
|
|
430
|
+
let s = o[0].dbFieldName;
|
|
431
|
+
s == t && l(!0);
|
|
432
|
+
let Y = r.idxTable.value.tableRef.getTableData();
|
|
433
|
+
for (let L of Y)
|
|
434
|
+
L.indexField.split(",").indexOf(s) >= 0 && l(!1, "当前字段存在索引配置,请先删除索引再修改字段");
|
|
419
435
|
}
|
|
420
436
|
l(!0);
|
|
421
437
|
}
|
|
438
|
+
function w({ cellValue: t, row: i }, l) {
|
|
439
|
+
i.dbType == "int" && i.dbPointLength > 0 && l(!1, "设置了小数点不可设置integer类型"), l(!0);
|
|
440
|
+
}
|
|
422
441
|
return {
|
|
423
442
|
tableRef: N,
|
|
424
|
-
loading:
|
|
443
|
+
loading: A,
|
|
425
444
|
columns: R,
|
|
426
|
-
dataSource:
|
|
427
|
-
setDataSource:
|
|
428
|
-
addBatchBegin:
|
|
429
|
-
addBatchEnd:
|
|
445
|
+
dataSource: f,
|
|
446
|
+
setDataSource: m,
|
|
447
|
+
addBatchBegin: H,
|
|
448
|
+
addBatchEnd: G,
|
|
430
449
|
tableAddLine: V,
|
|
431
|
-
tableHeight:
|
|
432
|
-
tableProps:
|
|
433
|
-
tableDeleteLines:
|
|
434
|
-
handleAdded:
|
|
435
|
-
handleRemoved:
|
|
436
|
-
handleDragged:
|
|
437
|
-
handleInserted:
|
|
438
|
-
handleValueChange:
|
|
439
|
-
handleDisabledDbFieldName:
|
|
440
|
-
validateData:
|
|
441
|
-
getRemoveIds:
|
|
450
|
+
tableHeight: g,
|
|
451
|
+
tableProps: h,
|
|
452
|
+
tableDeleteLines: P,
|
|
453
|
+
handleAdded: y,
|
|
454
|
+
handleRemoved: U,
|
|
455
|
+
handleDragged: B,
|
|
456
|
+
handleInserted: _,
|
|
457
|
+
handleValueChange: v,
|
|
458
|
+
handleDisabledDbFieldName: F,
|
|
459
|
+
validateData: p,
|
|
460
|
+
getRemoveIds: M,
|
|
442
461
|
validateExistIndex: S
|
|
443
462
|
};
|
|
444
463
|
}
|
|
445
464
|
});
|
|
446
|
-
function
|
|
447
|
-
const
|
|
448
|
-
return
|
|
465
|
+
function de(e, a, d, I, R, u) {
|
|
466
|
+
const T = q("JVxeTable");
|
|
467
|
+
return J(), Z(T, z({
|
|
468
|
+
class: "dBAttributeTable",
|
|
449
469
|
ref: "tableRef",
|
|
450
470
|
rowNumber: "",
|
|
451
471
|
rowSelection: "",
|
|
452
472
|
dragSort: "",
|
|
473
|
+
notAllowDrag: [{ key: "dbFieldName", value: "id" }],
|
|
453
474
|
keyboardEdit: "",
|
|
454
475
|
sortKey: "orderNum",
|
|
455
476
|
addButtonSettings: "",
|
|
@@ -467,7 +488,7 @@ function ae(e, t, d, T, R, u) {
|
|
|
467
488
|
onValueChange: e.handleValueChange
|
|
468
489
|
}), null, 16, ["loading", "columns", "dataSource", "toolbar", "maxHeight", "disabledRows", "onAdded", "onRemoved", "onDragged", "onInserted", "onValueChange"]);
|
|
469
490
|
}
|
|
470
|
-
const Oe = /* @__PURE__ */
|
|
491
|
+
const Oe = /* @__PURE__ */ ee(ae, [["render", de], ["__scopeId", "data-v-0cd4f97d"]]);
|
|
471
492
|
export {
|
|
472
493
|
Oe as default
|
|
473
494
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { defHttp as
|
|
3
|
-
import { BasicTable as
|
|
4
|
-
import { BasicModal as
|
|
5
|
-
import { useListTable as
|
|
6
|
-
import { useMessage as
|
|
7
|
-
import {
|
|
1
|
+
import { defineComponent as S, ref as r, resolveComponent as d, openBlock as D, createBlock as H, withCtx as l, createVNode as f, createTextVNode as g, createElementVNode as w } from "vue";
|
|
2
|
+
import { defHttp as _ } from "/@/utils/http/axios";
|
|
3
|
+
import { BasicTable as I } from "/@/components/Table";
|
|
4
|
+
import { BasicModal as $, useModalInner as A } from "/@/components/Modal";
|
|
5
|
+
import { useListTable as P } from "/@/hooks/system/useListPage";
|
|
6
|
+
import { useMessage as q } from "/@/hooks/web/useMessage";
|
|
7
|
+
import { useDesign as O } from "/@/hooks/web/useDesign";
|
|
8
|
+
import { _ as V } from "./index-173949bb.mjs";
|
|
8
9
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
9
10
|
import "vue-router";
|
|
10
|
-
const
|
|
11
|
+
const j = S({
|
|
11
12
|
name: "TransDb2Online",
|
|
12
|
-
components: { BasicModal:
|
|
13
|
+
components: { BasicModal: $, BasicTable: I },
|
|
13
14
|
emits: ["success", "register"],
|
|
14
15
|
setup(e, { emit: h }) {
|
|
15
|
-
const { createMessage: p } =
|
|
16
|
-
|
|
17
|
-
}),
|
|
16
|
+
const { createMessage: p } = q(), t = r("暂无数据"), u = r(!1), s = r(!1), n = r([]), a = r([]), [c, { closeModal: m }] = A(() => {
|
|
17
|
+
s.value = !1, t.value = "暂无数据", i.value = [], v();
|
|
18
|
+
}), { prefixCls: T } = O("online-db-import-form-modal"), M = T, C = document.documentElement.clientHeight, b = C - 180, L = b > 690 ? 690 : b, [y, { setPagination: B }, { rowSelection: E, selectedRowKeys: i }] = P({
|
|
18
19
|
bordered: !0,
|
|
19
20
|
columns: [{ title: "表名", align: "left", dataIndex: "id" }],
|
|
20
21
|
dataSource: a,
|
|
21
|
-
maxHeight:
|
|
22
|
+
maxHeight: C - 400,
|
|
22
23
|
locale: { emptyText: t },
|
|
23
24
|
pagination: {
|
|
24
25
|
showQuickJumper: !1,
|
|
@@ -36,11 +37,11 @@ const A = F({
|
|
|
36
37
|
componentProps: {
|
|
37
38
|
style: { width: "100%" },
|
|
38
39
|
placeholder: "请输入表名以模糊筛选",
|
|
39
|
-
onChange: (
|
|
40
|
+
onChange: (o) => F(o.target.value)
|
|
40
41
|
},
|
|
41
42
|
disabledLabelWidth: !0,
|
|
42
43
|
itemProps: {
|
|
43
|
-
labelCol: { sm:
|
|
44
|
+
labelCol: { sm: 0, md: 0 },
|
|
44
45
|
wrapperCol: { sm: 24, md: 20 }
|
|
45
46
|
}
|
|
46
47
|
}
|
|
@@ -49,71 +50,76 @@ const A = F({
|
|
|
49
50
|
showActionButtonGroup: !1
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
|
-
function
|
|
53
|
-
return u.value = !0,
|
|
53
|
+
function v() {
|
|
54
|
+
return u.value = !0, _.get(
|
|
54
55
|
{
|
|
55
|
-
url: "/online/cgform/head/queryTables
|
|
56
|
+
url: "/online/cgform/head/queryTables"
|
|
56
57
|
/* query */
|
|
57
58
|
},
|
|
58
59
|
{
|
|
59
60
|
errorMessageMode: "none"
|
|
60
61
|
}
|
|
61
62
|
).then(
|
|
62
|
-
(
|
|
63
|
-
(
|
|
64
|
-
|
|
63
|
+
(o) => (a.value = o, n.value = [...o], o),
|
|
64
|
+
(o) => {
|
|
65
|
+
o.message == "noadminauth" && (t.value = "非admin用户无权限操作!", p.warn(t.value)), a.value = [], n.value = [];
|
|
65
66
|
}
|
|
66
67
|
).finally(() => {
|
|
67
68
|
u.value = !1;
|
|
68
69
|
});
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
-
|
|
71
|
+
function F(o) {
|
|
72
|
+
n.value.length !== 0 && (o ? (a.value = n.value.filter((R) => R.id.toLowerCase().includes(o.toLowerCase())), t.value = a.value.length === 0 ? "无筛选结果" : "暂无数据") : a.value = [...n.value], B({ current: 1 }));
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
74
|
+
function N() {
|
|
75
|
+
m();
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
-
if (!
|
|
77
|
+
function k() {
|
|
78
|
+
if (!i.value || i.value.length == 0) {
|
|
78
79
|
p.warning("请选择一张表");
|
|
79
80
|
return;
|
|
80
81
|
} else {
|
|
81
|
-
|
|
82
|
-
let
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}).finally(() =>
|
|
82
|
+
s.value = !0;
|
|
83
|
+
let o = i.value.join(",");
|
|
84
|
+
_.post({ url: "/online/cgform/head/transTables/" + o }).then(() => {
|
|
85
|
+
m(), h("success");
|
|
86
|
+
}).finally(() => s.value = !1);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
return {
|
|
89
90
|
emptyText: t,
|
|
90
91
|
confirmLoading: u,
|
|
91
|
-
btnLoading:
|
|
92
|
-
metaSource:
|
|
93
|
-
handleTrans:
|
|
94
|
-
handleCancel:
|
|
95
|
-
queryTables:
|
|
92
|
+
btnLoading: s,
|
|
93
|
+
metaSource: n,
|
|
94
|
+
handleTrans: k,
|
|
95
|
+
handleCancel: N,
|
|
96
|
+
queryTables: v,
|
|
96
97
|
registerModal: c,
|
|
97
|
-
registerTable:
|
|
98
|
-
rowSelection:
|
|
99
|
-
selectedRowKeys:
|
|
98
|
+
registerTable: y,
|
|
99
|
+
rowSelection: E,
|
|
100
|
+
selectedRowKeys: i,
|
|
101
|
+
wrapClassName: M,
|
|
102
|
+
modalHeight: L
|
|
100
103
|
};
|
|
101
104
|
}
|
|
102
|
-
})
|
|
105
|
+
});
|
|
106
|
+
const x = /* @__PURE__ */ w("div", null, [
|
|
103
107
|
/* @__PURE__ */ g(" 注:导入表会排除配置前缀表 "),
|
|
104
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ w("a", {
|
|
105
109
|
href: "http://doc.jeecg.com/2043924",
|
|
106
110
|
target: "_blank"
|
|
107
111
|
}, " 参考文档")
|
|
108
112
|
], -1);
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
return
|
|
113
|
+
function z(e, h, p, t, u, s) {
|
|
114
|
+
const n = d("BasicTable"), a = d("a-spin"), c = d("a-button"), m = d("BasicModal");
|
|
115
|
+
return D(), H(m, {
|
|
112
116
|
onRegister: e.registerModal,
|
|
117
|
+
height: e.modalHeight,
|
|
113
118
|
width: 500,
|
|
114
119
|
title: "从数据库导入表单",
|
|
115
120
|
confirmLoading: e.confirmLoading,
|
|
116
|
-
onCancel: e.handleCancel
|
|
121
|
+
onCancel: e.handleCancel,
|
|
122
|
+
wrapClassName: e.wrapClassName
|
|
117
123
|
}, {
|
|
118
124
|
footer: l(() => [
|
|
119
125
|
f(c, { onClick: e.handleCancel }, {
|
|
@@ -137,13 +143,13 @@ function q(e, h, p, t, u, r) {
|
|
|
137
143
|
default: l(() => [
|
|
138
144
|
f(a, { spinning: e.confirmLoading }, {
|
|
139
145
|
default: l(() => [
|
|
140
|
-
f(
|
|
146
|
+
f(n, {
|
|
141
147
|
onRegister: e.registerTable,
|
|
142
148
|
rowSelection: e.rowSelection,
|
|
143
149
|
onTableRedo: e.queryTables
|
|
144
150
|
}, {
|
|
145
151
|
tableTitle: l(() => [
|
|
146
|
-
|
|
152
|
+
x
|
|
147
153
|
]),
|
|
148
154
|
_: 1
|
|
149
155
|
}, 8, ["onRegister", "rowSelection", "onTableRedo"])
|
|
@@ -152,9 +158,9 @@ function q(e, h, p, t, u, r) {
|
|
|
152
158
|
}, 8, ["spinning"])
|
|
153
159
|
]),
|
|
154
160
|
_: 1
|
|
155
|
-
}, 8, ["onRegister", "confirmLoading", "onCancel"]);
|
|
161
|
+
}, 8, ["onRegister", "height", "confirmLoading", "onCancel", "wrapClassName"]);
|
|
156
162
|
}
|
|
157
|
-
const
|
|
163
|
+
const oe = /* @__PURE__ */ V(j, [["render", z]]);
|
|
158
164
|
export {
|
|
159
|
-
|
|
165
|
+
oe as default
|
|
160
166
|
};
|