@jeecg/online 3.7.0-beta → 3.7.4-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/AccountLoginForm-84cbd344.mjs +254 -0
- package/AiModal-26903538.mjs +84 -0
- package/AppForgetPassword-52443f23.mjs +310 -0
- package/AppLogin-ecf798fa.mjs +287 -0
- package/AppLoginHeader-4432c584.mjs +27 -0
- package/AppNameEmail-3303a037.mjs +180 -0
- package/AppRegister-79a62c59.mjs +303 -0
- package/AppTenant-f0bef7ca.mjs +373 -0
- package/AppThirdForm-fd8b4604.mjs +189 -0
- package/AuthButtonConfig-d5bffca0.mjs +156 -0
- package/AuthButtonTree-b0bd6c40.mjs +165 -0
- package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
- package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
- package/AuthFieldConfig-f1e224cc.mjs +245 -0
- package/AuthFieldTree-5cc0da05.mjs +232 -0
- package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
- package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1131274c.mjs +260 -0
- package/CgformCopyList-5fba0810.mjs +252 -0
- package/CgformModal-c4a4e0c2.mjs +667 -0
- package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
- package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
- package/CodeFileListModal-a924902a.mjs +159 -0
- package/CodeFileViewModal-405e2b58.mjs +253 -0
- package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
- package/CustomButtonList-c453b654.mjs +274 -0
- package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
- package/DbToOnlineModal-f28ff0a3.mjs +168 -0
- package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
- package/DropMenuItem-1e49abea.mjs +44 -0
- package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
- package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
- package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
- package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
- package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
- package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
- package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
- package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
- package/JModalTip-a927f85d.mjs +49 -0
- package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
- package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
- package/LeftRole-b0e0b496.mjs +86 -0
- package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
- package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
- package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
- package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
- package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
- package/OnlCgformErpList-5c5acdaa.mjs +488 -0
- package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
- package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
- package/OnlCgformInnerTableList-b283a525.mjs +474 -0
- package/OnlCgformTabList-91e3dd78.mjs +424 -0
- package/OnlineAutoList-84475f1b.mjs +513 -0
- package/OnlineAutoModal-95f46901.mjs +260 -0
- package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
- package/OnlineCustomModal-c8b1e780.mjs +232 -0
- package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
- package/OnlineForm-58282699.mjs +1012 -0
- package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
- package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
- package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
- package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
- package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
- package/OnlineQueryForm-9248341f.mjs +484 -0
- package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
- package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
- package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
- package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
- package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
- package/OnlineTabForm-1940e88b.mjs +814 -0
- package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
- package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
- package/PhoneLoginForm-86437a9d.mjs +214 -0
- package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
- package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
- package/SetSwitchOptions-f914bc17.mjs +62 -0
- package/ShareAddView-657f0f8b.mjs +86 -0
- package/ShareEditView-1b945fd3.mjs +92 -0
- package/ShareView-222ed3d8.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
- package/SingleView-23b0cb4e.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
- package/SuperQuery-46032e66.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/auth.api-53df4c33.mjs +41 -0
- package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
- package/button.data-fe45d43b.mjs +12 -0
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
- package/index-19eaef11.mjs +11 -0
- package/index-1a2e8832.mjs +135 -0
- package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-9e1e1e53.mjs +57 -0
- package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -262
- package/index-c5a79b0b.mjs +219 -0
- package/index-cce225be.mjs +110 -0
- package/index-f2c2d1cf.mjs +74 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-f3cb9156.mjs +378 -0
- package/useExtendComponent-bb98e568.mjs +4460 -0
- package/useListButton-98908683.mjs +719 -0
- package/{useSchemas-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
- package/useTableSync-075826a1.mjs +89 -0
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-fe3988fb.mjs +0 -84
- package/AuthButtonConfig-d50a0a65.mjs +0 -134
- package/AuthButtonTree-589395ed.mjs +0 -156
- package/AuthFieldConfig-490fc0ab.mjs +0 -139
- package/AuthFieldTree-b7cd091e.mjs +0 -232
- package/CgformCopyList-8077ccc6.mjs +0 -250
- package/CgformModal-36faf29a.mjs +0 -621
- package/CodeFileListModal-0e26b7e0.mjs +0 -158
- package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
- package/CodeGeneratorModal-b722d976.mjs +0 -238
- package/CustomButtonList-37639061.mjs +0 -381
- package/DbToOnlineModal-f49b9530.mjs +0 -166
- package/JModalTip-4a83aaed.mjs +0 -49
- package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
- package/LeftRole-7d8c5acc.mjs +0 -86
- package/OnlCgformErpList-30e416c8.mjs +0 -470
- package/OnlCgformErpSubTable-9a876058.mjs +0 -427
- package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
- package/OnlCgformTabList-7a2f2c03.mjs +0 -408
- package/OnlineAutoList-46c6c8b9.mjs +0 -493
- package/OnlineAutoModal-971bef13.mjs +0 -236
- package/OnlineAutoTreeList-3b92454c.mjs +0 -502
- package/OnlineCustomModal-594244f3.mjs +0 -232
- package/OnlineForm-018981b2.mjs +0 -924
- package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
- package/OnlineQueryForm-998c12a4.mjs +0 -444
- package/OnlineTabForm-9ad7d29a.mjs +0 -805
- package/SetSwitchOptions-a452fa0f.mjs +0 -62
- package/SuperQuery-cbfba908.mjs +0 -975
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/index-173949bb.mjs +0 -57
- package/useCgformList-8755a94e.mjs +0 -426
- package/useExtendComponent-bb7cca20.mjs +0 -4295
- package/useListButton-7ddb9a46.mjs +0 -697
- 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_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -9,30 +9,30 @@ var S = (e, n, t) => n in e ? x(e, n, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
$.call(n, t) && S(e, t, n[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
var M = (e, n, t) => new Promise((u,
|
|
12
|
+
var M = (e, n, t) => new Promise((u, f) => {
|
|
13
13
|
var m = (s) => {
|
|
14
14
|
try {
|
|
15
15
|
r(t.next(s));
|
|
16
16
|
} catch (d) {
|
|
17
|
-
|
|
17
|
+
f(d);
|
|
18
18
|
}
|
|
19
19
|
}, p = (s) => {
|
|
20
20
|
try {
|
|
21
21
|
r(t.throw(s));
|
|
22
22
|
} catch (d) {
|
|
23
|
-
|
|
23
|
+
f(d);
|
|
24
24
|
}
|
|
25
25
|
}, r = (s) => s.done ? u(s.value) : Promise.resolve(s.value).then(m, p);
|
|
26
26
|
r((t = t.apply(e, n)).next());
|
|
27
27
|
});
|
|
28
28
|
import { formatToDate as j } from "/@/utils/dateUtil";
|
|
29
|
-
import { defineComponent as I, ref as
|
|
29
|
+
import { defineComponent as I, ref as h, nextTick as R, resolveComponent as i, openBlock as w, createBlock as T, withCtx as a, createVNode as l, createTextVNode as k, normalizeClass as D, createElementVNode as F, toDisplayString as V } from "vue";
|
|
30
30
|
import { BasicModal as A, useModalInner as O } from "/@/components/Modal";
|
|
31
31
|
import { JCodeEditor as z } from "/@/components/Form";
|
|
32
32
|
import "/@/store";
|
|
33
33
|
import { defineStore as P } from "pinia";
|
|
34
34
|
import { createLocalStorage as q } from "/@/utils/cache";
|
|
35
|
-
import { _ as G } from "./index-
|
|
35
|
+
import { _ as G } from "./index-9e1e1e53.mjs";
|
|
36
36
|
const B = q(), H = "enhance_", K = P({
|
|
37
37
|
id: "online-cgform-enhance",
|
|
38
38
|
state: () => ({
|
|
@@ -55,15 +55,15 @@ const B = q(), H = "enhance_", K = P({
|
|
|
55
55
|
name: "EnhanceJsHistory",
|
|
56
56
|
components: { BasicModal: A, JCodeEditor: z },
|
|
57
57
|
setup() {
|
|
58
|
-
const e = K(), n =
|
|
58
|
+
const e = K(), n = h(), t = h(!1), u = h([]), f = h(""), m = h(0), [p, { closeModal: r }] = O((o) => M(this, null, function* () {
|
|
59
59
|
s(o.code, o.type);
|
|
60
60
|
}));
|
|
61
61
|
function s(o, E) {
|
|
62
|
-
|
|
63
|
-
let J = e.getEnhanceJs(o),
|
|
64
|
-
for (let
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
f.value = "", u.value = [];
|
|
63
|
+
let J = e.getEnhanceJs(o), c = [], _ = 0;
|
|
64
|
+
for (let g of J)
|
|
65
|
+
g.type === E && (_++, c.push(Object.assign({}, g, { index: _ })));
|
|
66
|
+
c && c.length > 0 && c.sort((g, L) => L.date - g.date), u.value = [...c], R(() => y(c[0]));
|
|
67
67
|
}
|
|
68
68
|
function d() {
|
|
69
69
|
r();
|
|
@@ -82,15 +82,15 @@ const B = q(), H = "enhance_", K = P({
|
|
|
82
82
|
onCancel: d,
|
|
83
83
|
confirmLoading: t,
|
|
84
84
|
dataList: u,
|
|
85
|
-
jsStr:
|
|
85
|
+
jsStr: f,
|
|
86
86
|
activeIndex: m
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
const U = ["onClick"];
|
|
91
|
-
function W(e, n, t, u,
|
|
92
|
-
const p =
|
|
93
|
-
return w(), T(
|
|
91
|
+
function W(e, n, t, u, f, m) {
|
|
92
|
+
const p = i("a-divider"), r = i("a-list-item"), s = i("a-list"), d = i("a-layout-sider"), C = i("JCodeEditor"), y = i("a-layout-content"), o = i("a-layout"), E = i("a-spin"), J = i("a-button"), c = i("BasicModal");
|
|
93
|
+
return w(), T(c, {
|
|
94
94
|
onRegister: e.registerModal,
|
|
95
95
|
title: "JS增强历史记录",
|
|
96
96
|
width: 1200,
|
|
@@ -100,43 +100,43 @@ function W(e, n, t, u, _, m) {
|
|
|
100
100
|
onCancel: e.onCancel
|
|
101
101
|
}, {
|
|
102
102
|
footer: a(() => [
|
|
103
|
-
|
|
104
|
-
default: a(() => [
|
|
103
|
+
l(J, { onClick: e.onCancel }, {
|
|
104
|
+
default: a(() => n[1] || (n[1] = [
|
|
105
105
|
k("关闭")
|
|
106
|
-
]),
|
|
106
|
+
])),
|
|
107
107
|
_: 1
|
|
108
108
|
}, 8, ["onClick"])
|
|
109
109
|
]),
|
|
110
110
|
default: a(() => [
|
|
111
|
-
|
|
111
|
+
l(E, { spinning: e.confirmLoading }, {
|
|
112
112
|
default: a(() => [
|
|
113
|
-
|
|
113
|
+
l(o, null, {
|
|
114
114
|
default: a(() => [
|
|
115
|
-
|
|
115
|
+
l(d, { theme: "light" }, {
|
|
116
116
|
default: a(() => [
|
|
117
|
-
|
|
117
|
+
l(s, {
|
|
118
118
|
bordered: "",
|
|
119
119
|
dataSource: e.dataList,
|
|
120
120
|
class: D("enhance-list")
|
|
121
121
|
}, {
|
|
122
122
|
header: a(() => [
|
|
123
123
|
F("div", null, [
|
|
124
|
-
|
|
125
|
-
default: a(() => [
|
|
124
|
+
l(p, { style: { margin: "0" } }, {
|
|
125
|
+
default: a(() => n[0] || (n[0] = [
|
|
126
126
|
k("保存时间")
|
|
127
|
-
]),
|
|
127
|
+
])),
|
|
128
128
|
_: 1
|
|
129
129
|
})
|
|
130
130
|
])
|
|
131
131
|
]),
|
|
132
|
-
renderItem: a(({ item:
|
|
133
|
-
|
|
134
|
-
class: D(e.activeIndex ===
|
|
132
|
+
renderItem: a(({ item: _ }) => [
|
|
133
|
+
l(r, {
|
|
134
|
+
class: D(e.activeIndex === _.index ? "bg-blue" : "")
|
|
135
135
|
}, {
|
|
136
136
|
default: a(() => [
|
|
137
137
|
F("a", {
|
|
138
|
-
onClick: (
|
|
139
|
-
}, V(e.getFormatDate(
|
|
138
|
+
onClick: (g) => e.fullCode(_)
|
|
139
|
+
}, V(e.getFormatDate(_.date)), 9, U)
|
|
140
140
|
]),
|
|
141
141
|
_: 2
|
|
142
142
|
}, 1032, ["class"])
|
|
@@ -146,11 +146,11 @@ function W(e, n, t, u, _, m) {
|
|
|
146
146
|
]),
|
|
147
147
|
_: 1
|
|
148
148
|
}),
|
|
149
|
-
|
|
149
|
+
l(o, null, {
|
|
150
150
|
default: a(() => [
|
|
151
|
-
|
|
151
|
+
l(y, { style: { margin: "8px 8px", padding: "8px", background: "#fff", minHeight: "280px" } }, {
|
|
152
152
|
default: a(() => [
|
|
153
|
-
|
|
153
|
+
l(C, {
|
|
154
154
|
ref: "codeEditorRef",
|
|
155
155
|
language: "javascript",
|
|
156
156
|
fullScreen: !0,
|
|
@@ -173,12 +173,12 @@ function W(e, n, t, u, _, m) {
|
|
|
173
173
|
_: 1
|
|
174
174
|
}, 8, ["onRegister", "confirmLoading", "onCancel"]);
|
|
175
175
|
}
|
|
176
|
-
const X = /* @__PURE__ */ G(Q, [["render", W], ["__scopeId", "data-v-a2408ade"]]),
|
|
176
|
+
const X = /* @__PURE__ */ G(Q, [["render", W], ["__scopeId", "data-v-a2408ade"]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
177
177
|
__proto__: null,
|
|
178
178
|
default: X
|
|
179
179
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
180
180
|
export {
|
|
181
181
|
X as E,
|
|
182
|
-
|
|
182
|
+
le as a,
|
|
183
183
|
K as u
|
|
184
184
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var C = (e,
|
|
2
|
-
var
|
|
1
|
+
var C = (e, t, h) => new Promise((x, f) => {
|
|
2
|
+
var l = (a) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
f(
|
|
4
|
+
c(h.next(a));
|
|
5
|
+
} catch (u) {
|
|
6
|
+
f(u);
|
|
7
7
|
}
|
|
8
|
-
}, r = (
|
|
8
|
+
}, r = (a) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
f(
|
|
10
|
+
c(h.throw(a));
|
|
11
|
+
} catch (u) {
|
|
12
|
+
f(u);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, c = (a) => a.done ? x(a.value) : Promise.resolve(a.value).then(l, r);
|
|
15
|
+
c((h = h.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as q, ref as g, reactive 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 q, ref as g, reactive as M, resolveComponent as m, openBlock as w, createBlock as E, withCtx as o, createVNode as n, createTextVNode as F, createCommentVNode as A, createElementVNode as b } from "vue";
|
|
18
|
+
import { BasicModal as W, useModalInner as Q, useModal as z } from "/@/components/Modal";
|
|
19
|
+
import { JCodeEditor as L } from "/@/components/Form";
|
|
20
|
+
import { u as X } from "./useOnlineTest-e4bd8be3.mjs";
|
|
21
|
+
import { E as Y, u as Z } from "./EnhanceJsHistory-8ddb0657.mjs";
|
|
22
|
+
import { g as ee, s as te } from "./enhance.api-138e6826.mjs";
|
|
23
|
+
import { useMessage as se } from "/@/hooks/web/useMessage";
|
|
24
|
+
import { QuestionCircleOutlined as oe } from "@ant-design/icons-vue";
|
|
25
|
+
import { Tooltip as le } from "ant-design-vue";
|
|
26
|
+
import { _ as ae } from "./index-9e1e1e53.mjs";
|
|
27
27
|
import "/@/utils/dateUtil";
|
|
28
28
|
import "/@/store";
|
|
29
29
|
import "pinia";
|
|
@@ -32,7 +32,7 @@ import "/@/utils/http/axios";
|
|
|
32
32
|
import "/@/utils/is";
|
|
33
33
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
34
34
|
import "vue-router";
|
|
35
|
-
const
|
|
35
|
+
const k = {
|
|
36
36
|
list: [
|
|
37
37
|
//------ 列表api -------
|
|
38
38
|
// 属性
|
|
@@ -95,7 +95,7 @@ const S = {
|
|
|
95
95
|
{ text: ".isUpdate", displayText: "isUpdate", superiors: "this", desc: "是否是编辑页面,返回的是一个ref对象" },
|
|
96
96
|
{ text: ".onlineFormRef", displayText: "onlineFormRef", superiors: "this", desc: "主表/单表表单的ref对象" },
|
|
97
97
|
{ text: ".refMap", displayText: "refMap", superiors: "this", desc: "子表表单/子表table的ref对象map,key为子表表名" },
|
|
98
|
-
{ text: ".subActiveKey", displayText: "subActiveKey", desc: "子表的激活的tab索引值对应的字符串,从‘0’开始,返回的是一个ref对象" },
|
|
98
|
+
{ text: ".subActiveKey", displayText: "subActiveKey", superiors: "this", desc: "子表的激活的tab索引值对应的字符串,从‘0’开始,返回的是一个ref对象" },
|
|
99
99
|
{ text: ".sh", displayText: "sh", superiors: "this", desc: "单表/主表字段的显示隐藏状态" },
|
|
100
100
|
{ text: ".submitFlowFlag", displayText: "submitFlowFlag", superiors: "this", desc: "是否提交表单后自动提交流程,返回一个ref对象" },
|
|
101
101
|
{ text: ".subFormHeight", displayText: "subFormHeight", superiors: "this", desc: "一对一子表表单的高度,不需要设置,返回一个ref对象" },
|
|
@@ -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,34 +298,34 @@ const S = {
|
|
|
292
298
|
desc: "打开一个弹窗-参考 Js增强打开自定义弹窗"
|
|
293
299
|
}
|
|
294
300
|
]
|
|
295
|
-
},
|
|
301
|
+
}, ie = q({
|
|
296
302
|
name: "EnhanceJs",
|
|
297
|
-
components: { BasicModal:
|
|
303
|
+
components: { BasicModal: W, JCodeEditor: L, EnhanceJsHistory: Y, QuestionCircleOutlined: oe, Tooltip: le },
|
|
298
304
|
emits: ["register"],
|
|
299
305
|
setup() {
|
|
300
|
-
const { createMessage: e } =
|
|
301
|
-
P(
|
|
302
|
-
})), [
|
|
303
|
-
function P(
|
|
304
|
-
r.value =
|
|
305
|
-
let i =
|
|
306
|
-
(i == null ? void 0 : i.length) > 0 ? (
|
|
306
|
+
const { createMessage: e } = se(), t = Z(), h = g(), x = g(), f = M({ form: {}, list: {} }), l = g("list"), r = g(""), c = g(!1), a = g(!1), u = g(""), y = M({ form: "", list: "" }), p = { form: !1, list: !1 }, T = g(!1), S = [...k.list, ...k.common], J = [...k.form, ...k.common], d = g("240px"), [H, { closeModal: V }] = Q((s) => C(this, null, function* () {
|
|
307
|
+
P(s.row);
|
|
308
|
+
})), [j, O] = z(), { aiTestMode: _, genEnhanceJsData: N } = X();
|
|
309
|
+
function P(s) {
|
|
310
|
+
r.value = s.id, a.value = !1, u.value = s.tableName;
|
|
311
|
+
let i = t.getEnhanceJs(r.value);
|
|
312
|
+
(i == null ? void 0 : i.length) > 0 ? (l.value = i[i.length - 1].type, c.value = !0) : c.value = !1, p.form = !1, p.list = !1, l.value ? R(l.value) : R("form"), T.value = !0, setTimeout(() => T.value = !1, 150);
|
|
307
313
|
}
|
|
308
|
-
function
|
|
314
|
+
function $() {
|
|
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(s) {
|
|
314
320
|
return C(this, null, function* () {
|
|
315
|
-
let i = f[
|
|
316
|
-
cgJs: y[
|
|
317
|
-
cgJsType:
|
|
321
|
+
let i = f[s], v = {
|
|
322
|
+
cgJs: y[s],
|
|
323
|
+
cgJsType: s
|
|
318
324
|
};
|
|
319
|
-
if (!
|
|
325
|
+
if (!p[s] || i.cgJs === v.cgJs)
|
|
320
326
|
return;
|
|
321
|
-
let
|
|
322
|
-
|
|
327
|
+
let B = !!i.id;
|
|
328
|
+
B && (v = Object.assign({}, i, v)), yield te(r.value, v, B), t.addEnhanceJs({
|
|
323
329
|
code: r.value,
|
|
324
330
|
str: v.cgJs,
|
|
325
331
|
type: v.cgJsType,
|
|
@@ -328,205 +334,215 @@ const S = {
|
|
|
328
334
|
});
|
|
329
335
|
}
|
|
330
336
|
function K() {
|
|
331
|
-
|
|
337
|
+
V();
|
|
332
338
|
}
|
|
333
|
-
function
|
|
339
|
+
function R(s) {
|
|
334
340
|
return C(this, null, function* () {
|
|
335
|
-
|
|
341
|
+
l.value = s;
|
|
336
342
|
try {
|
|
337
|
-
if (!
|
|
338
|
-
let i = yield
|
|
339
|
-
Object.assign(f[
|
|
343
|
+
if (!p[s]) {
|
|
344
|
+
let i = yield ee(r.value, s);
|
|
345
|
+
Object.assign(f[s], { id: null }, i), y[s] = f[s].cgJs, p[s] = !0;
|
|
340
346
|
}
|
|
341
347
|
} catch (i) {
|
|
342
348
|
}
|
|
343
349
|
setTimeout(() => {
|
|
344
|
-
|
|
350
|
+
s == "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
|
-
type:
|
|
357
|
+
type: l.value
|
|
352
358
|
});
|
|
353
359
|
}
|
|
354
|
-
function
|
|
355
|
-
y[
|
|
360
|
+
function I(s) {
|
|
361
|
+
y[l.value] != s && (a.value = !0, y[l.value] = s);
|
|
356
362
|
}
|
|
357
363
|
function G() {
|
|
358
|
-
|
|
364
|
+
l.value === "form" ? N(u.value, l.value, h.value) : N(u.value, l.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
|
-
enhanceType:
|
|
366
|
-
showHistory:
|
|
367
|
-
aiTestMode:
|
|
368
|
-
tableName:
|
|
369
|
-
genEnhanceJsData:
|
|
371
|
+
enhanceType: l,
|
|
372
|
+
showHistory: c,
|
|
373
|
+
aiTestMode: _,
|
|
374
|
+
tableName: u,
|
|
375
|
+
genEnhanceJsData: N,
|
|
370
376
|
onGenTestData: G,
|
|
371
|
-
onChangeType:
|
|
372
|
-
onCodeChange:
|
|
373
|
-
onShowHistory:
|
|
374
|
-
onSubmit:
|
|
377
|
+
onChangeType: R,
|
|
378
|
+
onCodeChange: I,
|
|
379
|
+
onShowHistory: U,
|
|
380
|
+
onSubmit: $,
|
|
375
381
|
onCancel: K,
|
|
376
|
-
registerModal:
|
|
377
|
-
registerEnhanceJsHistory:
|
|
378
|
-
listKeyWords:
|
|
379
|
-
formKeyWords:
|
|
380
|
-
handleGo: (
|
|
381
|
-
window.open(`https://help.jeecg.com/online/enhanceJs/${
|
|
382
|
+
registerModal: H,
|
|
383
|
+
registerEnhanceJsHistory: j,
|
|
384
|
+
listKeyWords: S,
|
|
385
|
+
formKeyWords: J,
|
|
386
|
+
handleGo: (s) => {
|
|
387
|
+
window.open(`https://help.jeecg.com/java/online/enhanceJs/${s}`);
|
|
388
|
+
},
|
|
389
|
+
codeEditorHeight: d,
|
|
390
|
+
handleFullScreenChange: (s) => {
|
|
391
|
+
s ? 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 ne = { class: "titleBox" }, re = { class: "titleBox" };
|
|
397
|
+
function ue(e, t, h, x, f, l) {
|
|
398
|
+
const r = m("QuestionCircleOutlined"), c = m("Tooltip"), a = m("JCodeEditor"), u = m("a-tab-pane"), y = m("a-tabs"), p = m("a-button"), T = m("a-space"), S = 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
|
-
footer:
|
|
405
|
+
footer: o(() => [
|
|
396
406
|
n(T, null, {
|
|
397
|
-
default:
|
|
398
|
-
n(
|
|
399
|
-
default:
|
|
400
|
-
|
|
401
|
-
]),
|
|
407
|
+
default: o(() => [
|
|
408
|
+
n(p, { onClick: e.onCancel }, {
|
|
409
|
+
default: o(() => t[9] || (t[9] = [
|
|
410
|
+
F("关闭")
|
|
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
|
-
default:
|
|
409
|
-
|
|
410
|
-
]),
|
|
418
|
+
default: o(() => t[10] || (t[10] = [
|
|
419
|
+
F("确定")
|
|
420
|
+
])),
|
|
411
421
|
_: 1
|
|
412
422
|
}, 8, ["onClick"])
|
|
413
423
|
]),
|
|
414
424
|
_: 1
|
|
415
425
|
}),
|
|
416
426
|
n(T, { style: { float: "left" } }, {
|
|
417
|
-
default:
|
|
418
|
-
e.showHistory ? (w(),
|
|
427
|
+
default: o(() => [
|
|
428
|
+
e.showHistory ? (w(), E(p, {
|
|
419
429
|
key: 0,
|
|
420
430
|
onClick: e.onShowHistory
|
|
421
431
|
}, {
|
|
422
|
-
default:
|
|
423
|
-
|
|
424
|
-
]),
|
|
432
|
+
default: o(() => t[11] || (t[11] = [
|
|
433
|
+
F("查看历史版本")
|
|
434
|
+
])),
|
|
425
435
|
_: 1
|
|
426
|
-
}, 8, ["onClick"])) :
|
|
427
|
-
e.aiTestMode ? (w(),
|
|
436
|
+
}, 8, ["onClick"])) : A("", !0),
|
|
437
|
+
e.aiTestMode ? (w(), E(p, {
|
|
428
438
|
key: 1,
|
|
429
439
|
onClick: e.onGenTestData
|
|
430
440
|
}, {
|
|
431
|
-
default:
|
|
432
|
-
|
|
433
|
-
]),
|
|
441
|
+
default: o(() => t[12] || (t[12] = [
|
|
442
|
+
F("生成测试数据")
|
|
443
|
+
])),
|
|
434
444
|
_: 1
|
|
435
|
-
}, 8, ["onClick"])) :
|
|
445
|
+
}, 8, ["onClick"])) : A("", !0)
|
|
436
446
|
]),
|
|
437
447
|
_: 1
|
|
438
448
|
})
|
|
439
449
|
]),
|
|
440
|
-
default:
|
|
450
|
+
default: o(() => [
|
|
441
451
|
n(y, {
|
|
442
452
|
activeKey: e.enhanceType,
|
|
443
|
-
"onUpdate:activeKey":
|
|
453
|
+
"onUpdate:activeKey": t[4] || (t[4] = (d) => e.enhanceType = d),
|
|
444
454
|
onChange: e.onChangeType
|
|
445
455
|
}, {
|
|
446
|
-
default:
|
|
447
|
-
n(
|
|
456
|
+
default: o(() => [
|
|
457
|
+
n(u, {
|
|
448
458
|
key: "form",
|
|
449
459
|
forceRender: ""
|
|
450
460
|
}, {
|
|
451
|
-
tab:
|
|
452
|
-
b("div",
|
|
453
|
-
|
|
454
|
-
n(
|
|
455
|
-
title:
|
|
456
|
-
|
|
457
|
-
]),
|
|
458
|
-
default:
|
|
461
|
+
tab: o(() => [
|
|
462
|
+
b("div", ne, [
|
|
463
|
+
t[6] || (t[6] = b("span", { class: "title" }, "form", -1)),
|
|
464
|
+
n(c, null, {
|
|
465
|
+
title: o(() => t[5] || (t[5] = [
|
|
466
|
+
b("span", null, "表单js增强文档", -1)
|
|
467
|
+
])),
|
|
468
|
+
default: o(() => [
|
|
459
469
|
n(r, {
|
|
460
|
-
onClick:
|
|
470
|
+
onClick: t[0] || (t[0] = (d) => e.handleGo("form"))
|
|
461
471
|
})
|
|
462
472
|
]),
|
|
463
473
|
_: 1
|
|
464
474
|
})
|
|
465
475
|
])
|
|
466
476
|
]),
|
|
467
|
-
default:
|
|
468
|
-
!e.reloading && e.enhanceType === "form" ? (w(),
|
|
477
|
+
default: o(() => [
|
|
478
|
+
!e.reloading && e.enhanceType === "form" ? (w(), E(a, {
|
|
469
479
|
key: 0,
|
|
470
480
|
ref: "formEditorRef",
|
|
471
481
|
value: e.enhanceValues.form,
|
|
472
|
-
"onUpdate:value":
|
|
482
|
+
"onUpdate:value": t[1] || (t[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"])) : A("", !0)
|
|
481
494
|
]),
|
|
482
495
|
_: 1
|
|
483
496
|
}),
|
|
484
|
-
n(
|
|
497
|
+
n(u, {
|
|
485
498
|
key: "list",
|
|
486
499
|
forceRender: ""
|
|
487
500
|
}, {
|
|
488
|
-
tab:
|
|
489
|
-
b("div",
|
|
490
|
-
|
|
491
|
-
n(
|
|
492
|
-
title:
|
|
493
|
-
|
|
494
|
-
]),
|
|
495
|
-
default:
|
|
501
|
+
tab: o(() => [
|
|
502
|
+
b("div", re, [
|
|
503
|
+
t[8] || (t[8] = b("span", { class: "title" }, "list", -1)),
|
|
504
|
+
n(c, null, {
|
|
505
|
+
title: o(() => t[7] || (t[7] = [
|
|
506
|
+
b("span", null, "列表js增强文档", -1)
|
|
507
|
+
])),
|
|
508
|
+
default: o(() => [
|
|
496
509
|
n(r, {
|
|
497
|
-
onClick:
|
|
510
|
+
onClick: t[2] || (t[2] = (d) => e.handleGo("list"))
|
|
498
511
|
})
|
|
499
512
|
]),
|
|
500
513
|
_: 1
|
|
501
514
|
})
|
|
502
515
|
])
|
|
503
516
|
]),
|
|
504
|
-
default:
|
|
505
|
-
!e.reloading && e.enhanceType === "list" ? (w(),
|
|
517
|
+
default: o(() => [
|
|
518
|
+
!e.reloading && e.enhanceType === "list" ? (w(), E(a, {
|
|
506
519
|
key: 0,
|
|
507
520
|
ref: "listEditorRef",
|
|
508
521
|
value: e.enhanceValues.list,
|
|
509
|
-
"onUpdate:value":
|
|
522
|
+
"onUpdate:value": t[3] || (t[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"])) : A("", !0)
|
|
518
534
|
]),
|
|
519
535
|
_: 1
|
|
520
536
|
})
|
|
521
537
|
]),
|
|
522
538
|
_: 1
|
|
523
539
|
}, 8, ["activeKey", "onChange"]),
|
|
524
|
-
n(
|
|
540
|
+
n(S, { onRegister: e.registerEnhanceJsHistory }, null, 8, ["onRegister"])
|
|
525
541
|
]),
|
|
526
542
|
_: 1
|
|
527
|
-
}, 8, ["onRegister"]);
|
|
543
|
+
}, 8, ["onRegister", "onFullScreen"]);
|
|
528
544
|
}
|
|
529
|
-
const
|
|
545
|
+
const Re = /* @__PURE__ */ ae(ie, [["render", ue], ["__scopeId", "data-v-73c97e14"]]);
|
|
530
546
|
export {
|
|
531
|
-
|
|
547
|
+
Re as default
|
|
532
548
|
};
|