@jeecg/online 3.7.0-beta → 3.7.1-RC
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 → AiModal-6de335e3.mjs} +1 -1
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
- package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
- package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
- package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
- package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
- package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
- package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
- package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
- package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
- package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
- package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
- package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
- package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
- package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
- package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
- package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
- package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
- package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
- package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
- package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
- package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
- package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
- package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
- package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
- package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
- package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
- package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
- package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
- package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
- package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
- package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
- package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
- package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
- package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
- package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
- package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
- package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
- package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
- package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
- package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
- package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
- package/index-1d1a6e56.mjs +57 -0
- package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
- package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
- package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-d50a0a65.mjs +0 -134
- package/AuthFieldConfig-490fc0ab.mjs +0 -139
- package/CgformModal-36faf29a.mjs +0 -621
- package/CodeGeneratorModal-b722d976.mjs +0 -238
- package/DbToOnlineModal-f49b9530.mjs +0 -166
- package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
- package/OnlineForm-018981b2.mjs +0 -924
- package/OnlineQueryForm-998c12a4.mjs +0 -444
- package/SuperQuery-cbfba908.mjs +0 -975
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/index-173949bb.mjs +0 -57
- package/useExtendComponent-bb7cca20.mjs +0 -4295
- package/useTableSync-f6089e8a.mjs +0 -87
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var C = (e, o,
|
|
1
|
+
var C = (e, o, h) => new Promise((x, f) => {
|
|
2
2
|
var a = (l) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
f(
|
|
4
|
+
c(h.next(l));
|
|
5
|
+
} catch (u) {
|
|
6
|
+
f(u);
|
|
7
7
|
}
|
|
8
8
|
}, r = (l) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
f(
|
|
10
|
+
c(h.throw(l));
|
|
11
|
+
} catch (u) {
|
|
12
|
+
f(u);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, c = (l) => l.done ? x(l.value) : Promise.resolve(l.value).then(a, r);
|
|
15
|
+
c((h = h.apply(e, o)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as
|
|
18
|
-
import { BasicModal as
|
|
19
|
-
import { JCodeEditor as
|
|
20
|
-
import { u as
|
|
21
|
-
import { E as
|
|
22
|
-
import { g as
|
|
23
|
-
import { useMessage as
|
|
24
|
-
import { QuestionCircleOutlined as
|
|
25
|
-
import { Tooltip as
|
|
26
|
-
import { _ as
|
|
17
|
+
import { defineComponent as W, ref as g, reactive as M, resolveComponent as m, openBlock as w, createBlock as E, withCtx as s, createVNode as n, createTextVNode as F, createCommentVNode as _, createElementVNode as v, pushScopeId as Q, popScopeId as z } from "vue";
|
|
18
|
+
import { BasicModal as L, useModalInner as X, useModal as Y } from "/@/components/Modal";
|
|
19
|
+
import { JCodeEditor as Z } from "/@/components/Form";
|
|
20
|
+
import { u as ee } from "./useOnlineTest-e4bd8be3.mjs";
|
|
21
|
+
import { E as te, u as se } from "./EnhanceJsHistory-fab3102e.mjs";
|
|
22
|
+
import { g as oe, s as ae } from "./enhance.api-138e6826.mjs";
|
|
23
|
+
import { useMessage as le } from "/@/hooks/web/useMessage";
|
|
24
|
+
import { QuestionCircleOutlined as ie } from "@ant-design/icons-vue";
|
|
25
|
+
import { Tooltip as ne } from "ant-design-vue";
|
|
26
|
+
import { _ as re } from "./index-1d1a6e56.mjs";
|
|
27
27
|
import "/@/utils/dateUtil";
|
|
28
28
|
import "/@/store";
|
|
29
29
|
import "pinia";
|
|
@@ -158,6 +158,12 @@ const S = {
|
|
|
158
158
|
superiors: "this",
|
|
159
159
|
desc: "改变动态下拉框options"
|
|
160
160
|
},
|
|
161
|
+
{
|
|
162
|
+
text: ".submitFormAndFlow()",
|
|
163
|
+
displayText: "submitFormAndFlow()",
|
|
164
|
+
superiors: "this",
|
|
165
|
+
desc: "表单提交且发起流程"
|
|
166
|
+
},
|
|
161
167
|
// 提交前置事件
|
|
162
168
|
{
|
|
163
169
|
text: `beforeSubmit(row){
|
|
@@ -253,6 +259,9 @@ const S = {
|
|
|
253
259
|
displayText: "changeOptions()",
|
|
254
260
|
desc: "js增强实现下拉联动"
|
|
255
261
|
},
|
|
262
|
+
{ text: "console.log()", displayText: "console.log()", desc: "打印日志" }
|
|
263
|
+
],
|
|
264
|
+
common: [
|
|
256
265
|
// JS增强 http请求
|
|
257
266
|
{
|
|
258
267
|
text: `getAction('请求url', { 'key': 'value'}).then(res => {
|
|
@@ -282,9 +291,6 @@ const S = {
|
|
|
282
291
|
displayText: "deleteAction(url, param)",
|
|
283
292
|
desc: "delete请求"
|
|
284
293
|
},
|
|
285
|
-
{ text: "console.log()", displayText: "console.log()", desc: "打印日志" }
|
|
286
|
-
],
|
|
287
|
-
common: [
|
|
288
294
|
{ text: "this", displayText: "this", desc: "上下文" },
|
|
289
295
|
{
|
|
290
296
|
text: ".openCustomModal({title,width,row,formComponent,requestUrl,hide,show})",
|
|
@@ -292,121 +298,125 @@ const S = {
|
|
|
292
298
|
desc: "打开一个弹窗-参考 Js增强打开自定义弹窗"
|
|
293
299
|
}
|
|
294
300
|
]
|
|
295
|
-
},
|
|
301
|
+
}, ue = W({
|
|
296
302
|
name: "EnhanceJs",
|
|
297
|
-
components: { BasicModal:
|
|
303
|
+
components: { BasicModal: L, JCodeEditor: Z, EnhanceJsHistory: te, QuestionCircleOutlined: ie, Tooltip: ne },
|
|
298
304
|
emits: ["register"],
|
|
299
305
|
setup() {
|
|
300
|
-
const { createMessage: e } =
|
|
301
|
-
|
|
302
|
-
})), [
|
|
303
|
-
function
|
|
304
|
-
r.value = t.id, l.value = !1,
|
|
306
|
+
const { createMessage: e } = le(), o = se(), h = g(), x = g(), f = M({ form: {}, list: {} }), a = g("list"), r = g(""), c = g(!1), l = g(!1), u = g(""), y = M({ form: "", list: "" }), p = { form: !1, list: !1 }, T = g(!1), k = [...S.list, ...S.common], J = [...S.form, ...S.common], d = g("240px"), [H, { closeModal: V }] = X((t) => C(this, null, function* () {
|
|
307
|
+
$(t.row);
|
|
308
|
+
})), [j, O] = Y(), { aiTestMode: P, genEnhanceJsData: N } = ee();
|
|
309
|
+
function $(t) {
|
|
310
|
+
r.value = t.id, l.value = !1, u.value = t.tableName;
|
|
305
311
|
let i = o.getEnhanceJs(r.value);
|
|
306
|
-
(i == null ? void 0 : i.length) > 0 ? (a.value = i[i.length - 1].type,
|
|
312
|
+
(i == null ? void 0 : i.length) > 0 ? (a.value = i[i.length - 1].type, c.value = !0) : c.value = !1, p.form = !1, p.list = !1, a.value ? R(a.value) : R("form"), T.value = !0, setTimeout(() => T.value = !1, 150);
|
|
307
313
|
}
|
|
308
314
|
function I() {
|
|
309
315
|
return C(this, null, function* () {
|
|
310
|
-
yield Promise.all([
|
|
316
|
+
yield Promise.all([D("form"), D("list")]), V(), e.success("保存成功");
|
|
311
317
|
});
|
|
312
318
|
}
|
|
313
|
-
function
|
|
319
|
+
function D(t) {
|
|
314
320
|
return C(this, null, function* () {
|
|
315
|
-
let i = f[t],
|
|
321
|
+
let i = f[t], b = {
|
|
316
322
|
cgJs: y[t],
|
|
317
323
|
cgJsType: t
|
|
318
324
|
};
|
|
319
|
-
if (!
|
|
325
|
+
if (!p[t] || i.cgJs === b.cgJs)
|
|
320
326
|
return;
|
|
321
|
-
let
|
|
322
|
-
|
|
327
|
+
let B = !!i.id;
|
|
328
|
+
B && (b = Object.assign({}, i, b)), yield ae(r.value, b, B), o.addEnhanceJs({
|
|
323
329
|
code: r.value,
|
|
324
|
-
str:
|
|
325
|
-
type:
|
|
330
|
+
str: b.cgJs,
|
|
331
|
+
type: b.cgJsType,
|
|
326
332
|
date: (/* @__PURE__ */ new Date()).getTime()
|
|
327
333
|
});
|
|
328
334
|
});
|
|
329
335
|
}
|
|
330
336
|
function K() {
|
|
331
|
-
|
|
337
|
+
V();
|
|
332
338
|
}
|
|
333
|
-
function
|
|
339
|
+
function R(t) {
|
|
334
340
|
return C(this, null, function* () {
|
|
335
341
|
a.value = t;
|
|
336
342
|
try {
|
|
337
|
-
if (!
|
|
338
|
-
let i = yield
|
|
339
|
-
Object.assign(f[t], { id: null }, i), y[t] = f[t].cgJs,
|
|
343
|
+
if (!p[t]) {
|
|
344
|
+
let i = yield oe(r.value, t);
|
|
345
|
+
Object.assign(f[t], { id: null }, i), y[t] = f[t].cgJs, p[t] = !0;
|
|
340
346
|
}
|
|
341
347
|
} catch (i) {
|
|
342
348
|
}
|
|
343
349
|
setTimeout(() => {
|
|
344
|
-
t == "list" ? x.value.refresh() :
|
|
350
|
+
t == "list" ? x.value.refresh() : h.value.refresh();
|
|
345
351
|
}, 150);
|
|
346
352
|
});
|
|
347
353
|
}
|
|
348
|
-
function
|
|
349
|
-
|
|
354
|
+
function U() {
|
|
355
|
+
O.openModal(!0, {
|
|
350
356
|
code: r.value,
|
|
351
357
|
type: a.value
|
|
352
358
|
});
|
|
353
359
|
}
|
|
354
|
-
function
|
|
360
|
+
function G(t) {
|
|
355
361
|
y[a.value] != t && (l.value = !0, y[a.value] = t);
|
|
356
362
|
}
|
|
357
|
-
function
|
|
358
|
-
a.value === "form" ?
|
|
363
|
+
function q() {
|
|
364
|
+
a.value === "form" ? N(u.value, a.value, h.value) : N(u.value, a.value, x.value);
|
|
359
365
|
}
|
|
360
366
|
return {
|
|
361
|
-
formEditorRef:
|
|
367
|
+
formEditorRef: h,
|
|
362
368
|
listEditorRef: x,
|
|
363
369
|
reloading: T,
|
|
364
370
|
enhanceValues: y,
|
|
365
371
|
enhanceType: a,
|
|
366
|
-
showHistory:
|
|
367
|
-
aiTestMode:
|
|
368
|
-
tableName:
|
|
369
|
-
genEnhanceJsData:
|
|
370
|
-
onGenTestData:
|
|
371
|
-
onChangeType:
|
|
372
|
-
onCodeChange:
|
|
373
|
-
onShowHistory:
|
|
372
|
+
showHistory: c,
|
|
373
|
+
aiTestMode: P,
|
|
374
|
+
tableName: u,
|
|
375
|
+
genEnhanceJsData: N,
|
|
376
|
+
onGenTestData: q,
|
|
377
|
+
onChangeType: R,
|
|
378
|
+
onCodeChange: G,
|
|
379
|
+
onShowHistory: U,
|
|
374
380
|
onSubmit: I,
|
|
375
381
|
onCancel: K,
|
|
376
|
-
registerModal:
|
|
377
|
-
registerEnhanceJsHistory:
|
|
378
|
-
listKeyWords:
|
|
379
|
-
formKeyWords:
|
|
382
|
+
registerModal: H,
|
|
383
|
+
registerEnhanceJsHistory: j,
|
|
384
|
+
listKeyWords: k,
|
|
385
|
+
formKeyWords: J,
|
|
380
386
|
handleGo: (t) => {
|
|
381
387
|
window.open(`https://help.jeecg.com/online/enhanceJs/${t}.html`);
|
|
388
|
+
},
|
|
389
|
+
codeEditorHeight: d,
|
|
390
|
+
handleFullScreenChange: (t) => {
|
|
391
|
+
t ? d.value = `${document.documentElement.clientHeight - 250}px` : d.value = "240px";
|
|
382
392
|
}
|
|
383
393
|
};
|
|
384
394
|
}
|
|
385
395
|
});
|
|
386
|
-
const
|
|
387
|
-
function
|
|
388
|
-
const r = m("QuestionCircleOutlined"),
|
|
389
|
-
return w(),
|
|
396
|
+
const A = (e) => (Q("data-v-cb798483"), e = e(), z(), e), de = { class: "titleBox" }, ce = /* @__PURE__ */ A(() => /* @__PURE__ */ v("span", { class: "title" }, "form", -1)), pe = /* @__PURE__ */ A(() => /* @__PURE__ */ v("span", null, "表单js增强文档", -1)), he = { class: "titleBox" }, ge = /* @__PURE__ */ A(() => /* @__PURE__ */ v("span", { class: "title" }, "list", -1)), me = /* @__PURE__ */ A(() => /* @__PURE__ */ v("span", null, "列表js增强文档", -1));
|
|
397
|
+
function fe(e, o, h, x, f, a) {
|
|
398
|
+
const r = m("QuestionCircleOutlined"), c = m("Tooltip"), l = m("JCodeEditor"), u = m("a-tab-pane"), y = m("a-tabs"), p = m("a-button"), T = m("a-space"), k = m("EnhanceJsHistory"), J = m("BasicModal");
|
|
399
|
+
return w(), E(J, {
|
|
390
400
|
onRegister: e.registerModal,
|
|
391
401
|
title: "JS增强",
|
|
392
402
|
width: 800,
|
|
393
|
-
|
|
403
|
+
onFullScreen: e.handleFullScreenChange
|
|
394
404
|
}, {
|
|
395
405
|
footer: s(() => [
|
|
396
406
|
n(T, null, {
|
|
397
407
|
default: s(() => [
|
|
398
|
-
n(
|
|
408
|
+
n(p, { onClick: e.onCancel }, {
|
|
399
409
|
default: s(() => [
|
|
400
|
-
|
|
410
|
+
F("关闭")
|
|
401
411
|
]),
|
|
402
412
|
_: 1
|
|
403
413
|
}, 8, ["onClick"]),
|
|
404
|
-
n(
|
|
414
|
+
n(p, {
|
|
405
415
|
type: "primary",
|
|
406
416
|
onClick: e.onSubmit
|
|
407
417
|
}, {
|
|
408
418
|
default: s(() => [
|
|
409
|
-
|
|
419
|
+
F("确定")
|
|
410
420
|
]),
|
|
411
421
|
_: 1
|
|
412
422
|
}, 8, ["onClick"])
|
|
@@ -415,24 +425,24 @@ function ge(e, o, p, x, f, a) {
|
|
|
415
425
|
}),
|
|
416
426
|
n(T, { style: { float: "left" } }, {
|
|
417
427
|
default: s(() => [
|
|
418
|
-
e.showHistory ? (w(),
|
|
428
|
+
e.showHistory ? (w(), E(p, {
|
|
419
429
|
key: 0,
|
|
420
430
|
onClick: e.onShowHistory
|
|
421
431
|
}, {
|
|
422
432
|
default: s(() => [
|
|
423
|
-
|
|
433
|
+
F("查看历史版本")
|
|
424
434
|
]),
|
|
425
435
|
_: 1
|
|
426
|
-
}, 8, ["onClick"])) :
|
|
427
|
-
e.aiTestMode ? (w(),
|
|
436
|
+
}, 8, ["onClick"])) : _("", !0),
|
|
437
|
+
e.aiTestMode ? (w(), E(p, {
|
|
428
438
|
key: 1,
|
|
429
439
|
onClick: e.onGenTestData
|
|
430
440
|
}, {
|
|
431
441
|
default: s(() => [
|
|
432
|
-
|
|
442
|
+
F("生成测试数据")
|
|
433
443
|
]),
|
|
434
444
|
_: 1
|
|
435
|
-
}, 8, ["onClick"])) :
|
|
445
|
+
}, 8, ["onClick"])) : _("", !0)
|
|
436
446
|
]),
|
|
437
447
|
_: 1
|
|
438
448
|
})
|
|
@@ -440,24 +450,24 @@ function ge(e, o, p, x, f, a) {
|
|
|
440
450
|
default: s(() => [
|
|
441
451
|
n(y, {
|
|
442
452
|
activeKey: e.enhanceType,
|
|
443
|
-
"onUpdate:activeKey": o[4] || (o[4] = (
|
|
453
|
+
"onUpdate:activeKey": o[4] || (o[4] = (d) => e.enhanceType = d),
|
|
444
454
|
onChange: e.onChangeType
|
|
445
455
|
}, {
|
|
446
456
|
default: s(() => [
|
|
447
|
-
n(
|
|
457
|
+
n(u, {
|
|
448
458
|
key: "form",
|
|
449
459
|
forceRender: ""
|
|
450
460
|
}, {
|
|
451
461
|
tab: s(() => [
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
n(
|
|
462
|
+
v("div", de, [
|
|
463
|
+
ce,
|
|
464
|
+
n(c, null, {
|
|
455
465
|
title: s(() => [
|
|
456
|
-
|
|
466
|
+
pe
|
|
457
467
|
]),
|
|
458
468
|
default: s(() => [
|
|
459
469
|
n(r, {
|
|
460
|
-
onClick: o[0] || (o[0] = (
|
|
470
|
+
onClick: o[0] || (o[0] = (d) => e.handleGo("form"))
|
|
461
471
|
})
|
|
462
472
|
]),
|
|
463
473
|
_: 1
|
|
@@ -465,36 +475,39 @@ function ge(e, o, p, x, f, a) {
|
|
|
465
475
|
])
|
|
466
476
|
]),
|
|
467
477
|
default: s(() => [
|
|
468
|
-
!e.reloading && e.enhanceType === "form" ? (w(),
|
|
478
|
+
!e.reloading && e.enhanceType === "form" ? (w(), E(l, {
|
|
469
479
|
key: 0,
|
|
470
480
|
ref: "formEditorRef",
|
|
471
481
|
value: e.enhanceValues.form,
|
|
472
|
-
"onUpdate:value": o[1] || (o[1] = (
|
|
482
|
+
"onUpdate:value": o[1] || (o[1] = (d) => e.enhanceValues.form = d),
|
|
473
483
|
language: "javascript",
|
|
474
484
|
fullScreen: !0,
|
|
475
485
|
lineNumbers: !1,
|
|
476
|
-
height:
|
|
486
|
+
height: e.codeEditorHeight,
|
|
477
487
|
"language-change": !1,
|
|
478
488
|
onChange: e.onCodeChange,
|
|
479
|
-
keywords: e.formKeyWords
|
|
480
|
-
|
|
489
|
+
keywords: e.formKeyWords,
|
|
490
|
+
placeholder: `代码提示技巧:
|
|
491
|
+
全局对象: this.调用属性或方法
|
|
492
|
+
事件方法:beforeSubmit、loaded、onlChange、getAction、postAction、putAction、deleteAction、deleteAction、openCustomModal等`
|
|
493
|
+
}, null, 8, ["value", "height", "onChange", "keywords"])) : _("", !0)
|
|
481
494
|
]),
|
|
482
495
|
_: 1
|
|
483
496
|
}),
|
|
484
|
-
n(
|
|
497
|
+
n(u, {
|
|
485
498
|
key: "list",
|
|
486
499
|
forceRender: ""
|
|
487
500
|
}, {
|
|
488
501
|
tab: s(() => [
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
n(
|
|
502
|
+
v("div", he, [
|
|
503
|
+
ge,
|
|
504
|
+
n(c, null, {
|
|
492
505
|
title: s(() => [
|
|
493
506
|
me
|
|
494
507
|
]),
|
|
495
508
|
default: s(() => [
|
|
496
509
|
n(r, {
|
|
497
|
-
onClick: o[2] || (o[2] = (
|
|
510
|
+
onClick: o[2] || (o[2] = (d) => e.handleGo("list"))
|
|
498
511
|
})
|
|
499
512
|
]),
|
|
500
513
|
_: 1
|
|
@@ -502,31 +515,34 @@ function ge(e, o, p, x, f, a) {
|
|
|
502
515
|
])
|
|
503
516
|
]),
|
|
504
517
|
default: s(() => [
|
|
505
|
-
!e.reloading && e.enhanceType === "list" ? (w(),
|
|
518
|
+
!e.reloading && e.enhanceType === "list" ? (w(), E(l, {
|
|
506
519
|
key: 0,
|
|
507
520
|
ref: "listEditorRef",
|
|
508
521
|
value: e.enhanceValues.list,
|
|
509
|
-
"onUpdate:value": o[3] || (o[3] = (
|
|
522
|
+
"onUpdate:value": o[3] || (o[3] = (d) => e.enhanceValues.list = d),
|
|
510
523
|
language: "javascript",
|
|
511
524
|
fullScreen: !0,
|
|
512
525
|
lineNumbers: !1,
|
|
513
|
-
height:
|
|
526
|
+
height: e.codeEditorHeight,
|
|
514
527
|
"language-change": !1,
|
|
515
528
|
onChange: e.onCodeChange,
|
|
516
|
-
keywords: e.listKeyWords
|
|
517
|
-
|
|
529
|
+
keywords: e.listKeyWords,
|
|
530
|
+
placeholder: `代码提示技巧:
|
|
531
|
+
全局对象: this.调用属性或方法
|
|
532
|
+
事件方法:beforeDelete、beforeEdit、getAction、postAction、putAction、deleteAction、deleteAction、openCustomModal等`
|
|
533
|
+
}, null, 8, ["value", "height", "onChange", "keywords"])) : _("", !0)
|
|
518
534
|
]),
|
|
519
535
|
_: 1
|
|
520
536
|
})
|
|
521
537
|
]),
|
|
522
538
|
_: 1
|
|
523
539
|
}, 8, ["activeKey", "onChange"]),
|
|
524
|
-
n(
|
|
540
|
+
n(k, { onRegister: e.registerEnhanceJsHistory }, null, 8, ["onRegister"])
|
|
525
541
|
]),
|
|
526
542
|
_: 1
|
|
527
|
-
}, 8, ["onRegister"]);
|
|
543
|
+
}, 8, ["onRegister", "onFullScreen"]);
|
|
528
544
|
}
|
|
529
|
-
const
|
|
545
|
+
const je = /* @__PURE__ */ re(ue, [["render", fe], ["__scopeId", "data-v-cb798483"]]);
|
|
530
546
|
export {
|
|
531
|
-
|
|
547
|
+
je as default
|
|
532
548
|
};
|
|
@@ -31,9 +31,9 @@ import { BasicForm as ce, useForm as ue } from "/@/components/Form";
|
|
|
31
31
|
import { BasicTable as me, TableAction as de } from "/@/components/Table";
|
|
32
32
|
import { useListPage as pe } from "/@/hooks/system/useListPage";
|
|
33
33
|
import { u as fe } from "./useOnlineTest-e4bd8be3.mjs";
|
|
34
|
-
import { b as _e, c as ge } from "./enhance.data-
|
|
34
|
+
import { b as _e, c as ge } from "./enhance.data-a67572e1.mjs";
|
|
35
35
|
import { c as be, e as he, f as P } from "./enhance.api-138e6826.mjs";
|
|
36
|
-
import { _ as Ce } from "./index-
|
|
36
|
+
import { _ as Ce } from "./index-1d1a6e56.mjs";
|
|
37
37
|
import "./cgform.data-475d4984.mjs";
|
|
38
38
|
import "/@/utils/dict";
|
|
39
39
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -18,8 +18,8 @@ import { defineComponent as B, nextTick as b, resolveComponent as h, openBlock a
|
|
|
18
18
|
import { BasicModal as R, useModalInner as U } from "/@/components/Modal";
|
|
19
19
|
import { BasicForm as V, useForm as v } from "/@/components/Form";
|
|
20
20
|
import { useMessage as O } from "/@/hooks/web/useMessage";
|
|
21
|
-
import { a as Q } from "./useSchemas-
|
|
22
|
-
import { _ as E } from "./index-
|
|
21
|
+
import { a as Q } from "./useSchemas-a9c75b0f.mjs";
|
|
22
|
+
import { _ as E } from "./index-1d1a6e56.mjs";
|
|
23
23
|
import "ant-design-vue";
|
|
24
24
|
import "@ant-design/icons-vue";
|
|
25
25
|
import "/@/utils/common/compUtils";
|
|
@@ -28,12 +28,12 @@ var R = (t, a, n) => new Promise((f, i) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as C, ref as m, reactive as j, toRaw as D, toRefs as K, resolveComponent as w, openBlock as $, createBlock as A, mergeProps as J, withCtx as y, createVNode as O } from "vue";
|
|
30
30
|
import { BasicModal as U, useModalInner as Y } from "/@/components/Modal";
|
|
31
|
-
import q from "./SetSwitchOptions-
|
|
31
|
+
import q from "./SetSwitchOptions-b2af757f.mjs";
|
|
32
32
|
import { BasicForm as H, useForm as W } from "/@/components/Form/index";
|
|
33
33
|
import { pick as z } from "lodash-es";
|
|
34
34
|
import { L as x } from "./constant-fa63bd66.mjs";
|
|
35
35
|
import { isArray as Q } from "/@/utils/is";
|
|
36
|
-
import { _ as X } from "./index-
|
|
36
|
+
import { _ as X } from "./index-1d1a6e56.mjs";
|
|
37
37
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
38
38
|
import "/@/hooks/web/useMessage";
|
|
39
39
|
import "vue-router";
|
|
@@ -17,7 +17,7 @@ var u = (e, d, o) => new Promise((n, a) => {
|
|
|
17
17
|
import { defineComponent as R, ref as f, resolveComponent as p, openBlock as h, createBlock as v, withCtx as m, createVNode as g, createElementVNode as k, createTextVNode as D, createCommentVNode as w } from "vue";
|
|
18
18
|
import { defHttp as y } from "/@/utils/http/axios";
|
|
19
19
|
import { BasicModal as B, useModalInner as b } from "/@/components/Modal";
|
|
20
|
-
import { _ as F } from "./index-
|
|
20
|
+
import { _ as F } from "./index-1d1a6e56.mjs";
|
|
21
21
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
22
22
|
import "/@/hooks/web/useMessage";
|
|
23
23
|
import "vue-router";
|
|
@@ -12,8 +12,8 @@ var i = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, n = (e, t) => m(e, s(t));
|
|
13
13
|
import { defineComponent as b, ref as f, resolveComponent as y, openBlock as h, createBlock as g, mergeProps as T } from "vue";
|
|
14
14
|
import { JVxeTypes as l } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
-
import { u as k } from "./useTableSync-
|
|
16
|
-
import { _ as w } from "./index-
|
|
15
|
+
import { u as k } from "./useTableSync-d7e9f18d.mjs";
|
|
16
|
+
import { _ as w } from "./index-1d1a6e56.mjs";
|
|
17
17
|
import "./cgform.data-475d4984.mjs";
|
|
18
18
|
import "/@/utils/dict";
|
|
19
19
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as f, ref as b, resolveComponent as g, openBlock as h, createBlock as y, mergeProps as
|
|
2
|
-
import { JVxeTypes as
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as v } from "./index-
|
|
1
|
+
import { defineComponent as f, ref as b, resolveComponent as g, openBlock as h, createBlock as y, mergeProps as $ } from "vue";
|
|
2
|
+
import { JVxeTypes as o } from "/@/components/jeecg/JVxeTable/types";
|
|
3
|
+
import { u as T } from "./useTableSync-d7e9f18d.mjs";
|
|
4
|
+
import { _ as v } from "./index-1d1a6e56.mjs";
|
|
5
5
|
import "./cgform.data-475d4984.mjs";
|
|
6
6
|
import "/@/utils/dict";
|
|
7
7
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -26,16 +26,24 @@ const x = f({
|
|
|
26
26
|
title: "索引名称",
|
|
27
27
|
key: "indexName",
|
|
28
28
|
width: 330,
|
|
29
|
-
type:
|
|
29
|
+
type: o.input,
|
|
30
30
|
defaultValue: "",
|
|
31
31
|
placeholder: "请输入${title}",
|
|
32
|
-
validateRules: [
|
|
32
|
+
validateRules: [
|
|
33
|
+
{ required: !0, message: "${title}不能为空" },
|
|
34
|
+
// update-begin--author:liaozhiyang---date:20240807---for:【TV360X-1974】online索引名称增加校验
|
|
35
|
+
{
|
|
36
|
+
pattern: /^[a-zA-Z][a-zA-Z0-9_-]*$/,
|
|
37
|
+
message: "命名规则:只能由字母、数字、下划线组成;必须以字母开头"
|
|
38
|
+
}
|
|
39
|
+
// update-end--author:liaozhiyang---date:20240807---for:【TV360X-1974】online索引名称增加校验
|
|
40
|
+
]
|
|
33
41
|
},
|
|
34
42
|
{
|
|
35
43
|
title: "索引栏位",
|
|
36
44
|
key: "indexField",
|
|
37
45
|
width: 330,
|
|
38
|
-
type:
|
|
46
|
+
type: o.selectMultiple,
|
|
39
47
|
options: [],
|
|
40
48
|
defaultValue: "",
|
|
41
49
|
placeholder: "请选择${title}",
|
|
@@ -45,7 +53,7 @@ const x = f({
|
|
|
45
53
|
title: "索引类型",
|
|
46
54
|
key: "indexType",
|
|
47
55
|
width: 330,
|
|
48
|
-
type:
|
|
56
|
+
type: o.select,
|
|
49
57
|
options: [
|
|
50
58
|
{ title: "normal", value: "normal" },
|
|
51
59
|
{ title: "unique", value: "unique" }
|
|
@@ -54,22 +62,22 @@ const x = f({
|
|
|
54
62
|
placeholder: "请选择${title}",
|
|
55
63
|
validateRules: [{ required: !0, message: "请选择${title}" }]
|
|
56
64
|
}
|
|
57
|
-
]), l =
|
|
65
|
+
]), l = T(e), { tableRef: r, loading: i, dataSource: n, tableHeight: u, tableProps: t, setDataSource: d, validateData: p } = l;
|
|
58
66
|
function m(c) {
|
|
59
|
-
let
|
|
60
|
-
c.value.tableRef.getTableData().forEach((
|
|
61
|
-
|
|
62
|
-
title:
|
|
63
|
-
value:
|
|
67
|
+
let s = [];
|
|
68
|
+
c.value.tableRef.getTableData().forEach((a) => {
|
|
69
|
+
a.dbFieldName && s.push({
|
|
70
|
+
title: a.dbFieldTxt,
|
|
71
|
+
value: a.dbFieldName
|
|
64
72
|
});
|
|
65
|
-
}), e.value[1].options =
|
|
73
|
+
}), e.value[1].options = s;
|
|
66
74
|
}
|
|
67
|
-
return { tableRef: r, loading: i, dataSource: n, columns: e, tableHeight: u, tableProps: t, syncTable: m, setDataSource:
|
|
75
|
+
return { tableRef: r, loading: i, dataSource: n, columns: e, tableHeight: u, tableProps: t, syncTable: m, setDataSource: d, validateData: p };
|
|
68
76
|
}
|
|
69
77
|
});
|
|
70
78
|
function S(e, l, r, i, n, u) {
|
|
71
79
|
const t = g("JVxeTable");
|
|
72
|
-
return h(), y(t,
|
|
80
|
+
return h(), y(t, $({
|
|
73
81
|
ref: "tableRef",
|
|
74
82
|
rowNumber: "",
|
|
75
83
|
rowSelection: "",
|
|
@@ -83,7 +91,7 @@ function S(e, l, r, i, n, u) {
|
|
|
83
91
|
toolbar: e.actionButton
|
|
84
92
|
}, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "toolbar"]);
|
|
85
93
|
}
|
|
86
|
-
const
|
|
94
|
+
const z = /* @__PURE__ */ v(x, [["render", S]]);
|
|
87
95
|
export {
|
|
88
|
-
|
|
96
|
+
z as default
|
|
89
97
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as c, openBlock as n, createElementBlock as l, normalizeClass as p, createElementVNode as t, createCommentVNode as d, pushScopeId as r, popScopeId as _ } from "vue";
|
|
2
2
|
import { useAppInject as m } from "/@/hooks/web/useAppInject";
|
|
3
|
-
import { _ as v } from "./index-
|
|
3
|
+
import { _ as v } from "./index-1d1a6e56.mjs";
|
|
4
4
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
5
5
|
import "/@/hooks/web/useMessage";
|
|
6
6
|
import "vue-router";
|