@jeecg/online 3.7.1-RC → 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-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
- package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
- package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
- package/AuthFieldTree-5cc0da05.mjs +232 -0
- package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
- package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
- 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-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
- package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
- package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
- package/CodeFileListModal-a924902a.mjs +159 -0
- package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
- package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
- package/CustomButtonList-c453b654.mjs +274 -0
- package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
- package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
- package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
- package/DropMenuItem-1e49abea.mjs +44 -0
- package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
- package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
- package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
- package/{EnhanceSqlModal-7ea1b300.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-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
- package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
- package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
- package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
- package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
- package/JModalTip-a927f85d.mjs +49 -0
- package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
- package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
- package/LeftRole-b0e0b496.mjs +86 -0
- package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
- package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
- package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
- package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
- package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
- package/OnlCgformErpList-5c5acdaa.mjs +488 -0
- package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
- package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
- 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-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
- package/OnlineForm-58282699.mjs +1012 -0
- package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
- package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
- package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
- package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
- package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
- package/OnlineQueryForm-9248341f.mjs +484 -0
- package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
- package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
- package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
- package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
- package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
- package/OnlineTabForm-1940e88b.mjs +814 -0
- package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
- package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
- package/PhoneLoginForm-86437a9d.mjs +214 -0
- package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
- package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
- 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-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
- package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
- package/button.data-fe45d43b.mjs +12 -0
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
- package/index-19eaef11.mjs +11 -0
- package/index-1a2e8832.mjs +135 -0
- package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-9e1e1e53.mjs +57 -0
- package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -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-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
- package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-6de335e3.mjs +0 -84
- package/AuthButtonConfig-89763932.mjs +0 -154
- package/AuthButtonTree-2d87d0b3.mjs +0 -157
- package/AuthFieldTree-e326fc38.mjs +0 -232
- package/CgformCopyList-365b3e8f.mjs +0 -251
- package/CodeFileListModal-24601898.mjs +0 -159
- package/CodeGeneratorModal-f09fe903.mjs +0 -282
- package/CustomButtonList-f07bc695.mjs +0 -397
- package/JModalTip-b055ab60.mjs +0 -49
- package/LeftRole-2ed8a2bf.mjs +0 -86
- package/OnlCgformErpList-58acdfa0.mjs +0 -470
- package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
- package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
- package/OnlCgformTabList-019ad753.mjs +0 -408
- package/OnlineAutoList-48589d09.mjs +0 -493
- package/OnlineAutoModal-c2928847.mjs +0 -239
- package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
- package/OnlineCustomModal-9e17b6ce.mjs +0 -232
- package/OnlineForm-9f1153ba.mjs +0 -985
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
- package/OnlineQueryForm-eedb9a60.mjs +0 -466
- package/OnlineTabForm-27655c83.mjs +0 -817
- package/SetSwitchOptions-b2af757f.mjs +0 -62
- package/SuperQuery-a8592995.mjs +0 -967
- package/index-1d1a6e56.mjs +0 -57
- package/useCgformList-f41d4dc1.mjs +0 -426
- package/useExtendComponent-dcae5c78.mjs +0 -4399
- package/useListButton-bfac4ecf.mjs +0 -697
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_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
|
-
c(h.next(
|
|
4
|
+
c(h.next(a));
|
|
5
5
|
} catch (u) {
|
|
6
6
|
f(u);
|
|
7
7
|
}
|
|
8
|
-
}, r = (
|
|
8
|
+
}, r = (a) => {
|
|
9
9
|
try {
|
|
10
|
-
c(h.throw(
|
|
10
|
+
c(h.throw(a));
|
|
11
11
|
} catch (u) {
|
|
12
12
|
f(u);
|
|
13
13
|
}
|
|
14
|
-
}, c = (
|
|
15
|
-
c((h = h.apply(e,
|
|
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
|
|
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对象" },
|
|
@@ -298,37 +298,37 @@ const S = {
|
|
|
298
298
|
desc: "打开一个弹窗-参考 Js增强打开自定义弹窗"
|
|
299
299
|
}
|
|
300
300
|
]
|
|
301
|
-
},
|
|
301
|
+
}, ie = q({
|
|
302
302
|
name: "EnhanceJs",
|
|
303
|
-
components: { BasicModal:
|
|
303
|
+
components: { BasicModal: W, JCodeEditor: L, EnhanceJsHistory: Y, QuestionCircleOutlined: oe, Tooltip: le },
|
|
304
304
|
emits: ["register"],
|
|
305
305
|
setup() {
|
|
306
|
-
const { createMessage: e } =
|
|
307
|
-
|
|
308
|
-
})), [j, O] =
|
|
309
|
-
function
|
|
310
|
-
r.value =
|
|
311
|
-
let i =
|
|
312
|
-
(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);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function $() {
|
|
315
315
|
return C(this, null, function* () {
|
|
316
316
|
yield Promise.all([D("form"), D("list")]), V(), e.success("保存成功");
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
function D(
|
|
319
|
+
function D(s) {
|
|
320
320
|
return C(this, null, function* () {
|
|
321
|
-
let i = f[
|
|
322
|
-
cgJs: y[
|
|
323
|
-
cgJsType:
|
|
321
|
+
let i = f[s], v = {
|
|
322
|
+
cgJs: y[s],
|
|
323
|
+
cgJsType: s
|
|
324
324
|
};
|
|
325
|
-
if (!p[
|
|
325
|
+
if (!p[s] || i.cgJs === v.cgJs)
|
|
326
326
|
return;
|
|
327
327
|
let B = !!i.id;
|
|
328
|
-
B && (
|
|
328
|
+
B && (v = Object.assign({}, i, v)), yield te(r.value, v, B), t.addEnhanceJs({
|
|
329
329
|
code: r.value,
|
|
330
|
-
str:
|
|
331
|
-
type:
|
|
330
|
+
str: v.cgJs,
|
|
331
|
+
type: v.cgJsType,
|
|
332
332
|
date: (/* @__PURE__ */ new Date()).getTime()
|
|
333
333
|
});
|
|
334
334
|
});
|
|
@@ -336,150 +336,150 @@ const S = {
|
|
|
336
336
|
function K() {
|
|
337
337
|
V();
|
|
338
338
|
}
|
|
339
|
-
function R(
|
|
339
|
+
function R(s) {
|
|
340
340
|
return C(this, null, function* () {
|
|
341
|
-
|
|
341
|
+
l.value = s;
|
|
342
342
|
try {
|
|
343
|
-
if (!p[
|
|
344
|
-
let i = yield
|
|
345
|
-
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;
|
|
346
346
|
}
|
|
347
347
|
} catch (i) {
|
|
348
348
|
}
|
|
349
349
|
setTimeout(() => {
|
|
350
|
-
|
|
350
|
+
s == "list" ? x.value.refresh() : h.value.refresh();
|
|
351
351
|
}, 150);
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
function U() {
|
|
355
355
|
O.openModal(!0, {
|
|
356
356
|
code: r.value,
|
|
357
|
-
type:
|
|
357
|
+
type: l.value
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
y[
|
|
360
|
+
function I(s) {
|
|
361
|
+
y[l.value] != s && (a.value = !0, y[l.value] = s);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
363
|
+
function G() {
|
|
364
|
+
l.value === "form" ? N(u.value, l.value, h.value) : N(u.value, l.value, x.value);
|
|
365
365
|
}
|
|
366
366
|
return {
|
|
367
367
|
formEditorRef: h,
|
|
368
368
|
listEditorRef: x,
|
|
369
369
|
reloading: T,
|
|
370
370
|
enhanceValues: y,
|
|
371
|
-
enhanceType:
|
|
371
|
+
enhanceType: l,
|
|
372
372
|
showHistory: c,
|
|
373
|
-
aiTestMode:
|
|
373
|
+
aiTestMode: _,
|
|
374
374
|
tableName: u,
|
|
375
375
|
genEnhanceJsData: N,
|
|
376
|
-
onGenTestData:
|
|
376
|
+
onGenTestData: G,
|
|
377
377
|
onChangeType: R,
|
|
378
|
-
onCodeChange:
|
|
378
|
+
onCodeChange: I,
|
|
379
379
|
onShowHistory: U,
|
|
380
|
-
onSubmit:
|
|
380
|
+
onSubmit: $,
|
|
381
381
|
onCancel: K,
|
|
382
382
|
registerModal: H,
|
|
383
383
|
registerEnhanceJsHistory: j,
|
|
384
|
-
listKeyWords:
|
|
384
|
+
listKeyWords: S,
|
|
385
385
|
formKeyWords: J,
|
|
386
|
-
handleGo: (
|
|
387
|
-
window.open(`https://help.jeecg.com/online/enhanceJs/${
|
|
386
|
+
handleGo: (s) => {
|
|
387
|
+
window.open(`https://help.jeecg.com/java/online/enhanceJs/${s}`);
|
|
388
388
|
},
|
|
389
389
|
codeEditorHeight: d,
|
|
390
|
-
handleFullScreenChange: (
|
|
391
|
-
|
|
390
|
+
handleFullScreenChange: (s) => {
|
|
391
|
+
s ? d.value = `${document.documentElement.clientHeight - 250}px` : d.value = "240px";
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
|
-
const
|
|
397
|
-
function
|
|
398
|
-
const r = m("QuestionCircleOutlined"), c = m("Tooltip"),
|
|
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
399
|
return w(), E(J, {
|
|
400
400
|
onRegister: e.registerModal,
|
|
401
401
|
title: "JS增强",
|
|
402
402
|
width: 800,
|
|
403
403
|
onFullScreen: e.handleFullScreenChange
|
|
404
404
|
}, {
|
|
405
|
-
footer:
|
|
405
|
+
footer: o(() => [
|
|
406
406
|
n(T, null, {
|
|
407
|
-
default:
|
|
407
|
+
default: o(() => [
|
|
408
408
|
n(p, { onClick: e.onCancel }, {
|
|
409
|
-
default:
|
|
409
|
+
default: o(() => t[9] || (t[9] = [
|
|
410
410
|
F("关闭")
|
|
411
|
-
]),
|
|
411
|
+
])),
|
|
412
412
|
_: 1
|
|
413
413
|
}, 8, ["onClick"]),
|
|
414
414
|
n(p, {
|
|
415
415
|
type: "primary",
|
|
416
416
|
onClick: e.onSubmit
|
|
417
417
|
}, {
|
|
418
|
-
default:
|
|
418
|
+
default: o(() => t[10] || (t[10] = [
|
|
419
419
|
F("确定")
|
|
420
|
-
]),
|
|
420
|
+
])),
|
|
421
421
|
_: 1
|
|
422
422
|
}, 8, ["onClick"])
|
|
423
423
|
]),
|
|
424
424
|
_: 1
|
|
425
425
|
}),
|
|
426
426
|
n(T, { style: { float: "left" } }, {
|
|
427
|
-
default:
|
|
427
|
+
default: o(() => [
|
|
428
428
|
e.showHistory ? (w(), E(p, {
|
|
429
429
|
key: 0,
|
|
430
430
|
onClick: e.onShowHistory
|
|
431
431
|
}, {
|
|
432
|
-
default:
|
|
432
|
+
default: o(() => t[11] || (t[11] = [
|
|
433
433
|
F("查看历史版本")
|
|
434
|
-
]),
|
|
434
|
+
])),
|
|
435
435
|
_: 1
|
|
436
|
-
}, 8, ["onClick"])) :
|
|
436
|
+
}, 8, ["onClick"])) : A("", !0),
|
|
437
437
|
e.aiTestMode ? (w(), E(p, {
|
|
438
438
|
key: 1,
|
|
439
439
|
onClick: e.onGenTestData
|
|
440
440
|
}, {
|
|
441
|
-
default:
|
|
441
|
+
default: o(() => t[12] || (t[12] = [
|
|
442
442
|
F("生成测试数据")
|
|
443
|
-
]),
|
|
443
|
+
])),
|
|
444
444
|
_: 1
|
|
445
|
-
}, 8, ["onClick"])) :
|
|
445
|
+
}, 8, ["onClick"])) : A("", !0)
|
|
446
446
|
]),
|
|
447
447
|
_: 1
|
|
448
448
|
})
|
|
449
449
|
]),
|
|
450
|
-
default:
|
|
450
|
+
default: o(() => [
|
|
451
451
|
n(y, {
|
|
452
452
|
activeKey: e.enhanceType,
|
|
453
|
-
"onUpdate:activeKey":
|
|
453
|
+
"onUpdate:activeKey": t[4] || (t[4] = (d) => e.enhanceType = d),
|
|
454
454
|
onChange: e.onChangeType
|
|
455
455
|
}, {
|
|
456
|
-
default:
|
|
456
|
+
default: o(() => [
|
|
457
457
|
n(u, {
|
|
458
458
|
key: "form",
|
|
459
459
|
forceRender: ""
|
|
460
460
|
}, {
|
|
461
|
-
tab:
|
|
462
|
-
|
|
463
|
-
|
|
461
|
+
tab: o(() => [
|
|
462
|
+
b("div", ne, [
|
|
463
|
+
t[6] || (t[6] = b("span", { class: "title" }, "form", -1)),
|
|
464
464
|
n(c, null, {
|
|
465
|
-
title:
|
|
466
|
-
|
|
467
|
-
]),
|
|
468
|
-
default:
|
|
465
|
+
title: o(() => t[5] || (t[5] = [
|
|
466
|
+
b("span", null, "表单js增强文档", -1)
|
|
467
|
+
])),
|
|
468
|
+
default: o(() => [
|
|
469
469
|
n(r, {
|
|
470
|
-
onClick:
|
|
470
|
+
onClick: t[0] || (t[0] = (d) => e.handleGo("form"))
|
|
471
471
|
})
|
|
472
472
|
]),
|
|
473
473
|
_: 1
|
|
474
474
|
})
|
|
475
475
|
])
|
|
476
476
|
]),
|
|
477
|
-
default:
|
|
478
|
-
!e.reloading && e.enhanceType === "form" ? (w(), E(
|
|
477
|
+
default: o(() => [
|
|
478
|
+
!e.reloading && e.enhanceType === "form" ? (w(), E(a, {
|
|
479
479
|
key: 0,
|
|
480
480
|
ref: "formEditorRef",
|
|
481
481
|
value: e.enhanceValues.form,
|
|
482
|
-
"onUpdate:value":
|
|
482
|
+
"onUpdate:value": t[1] || (t[1] = (d) => e.enhanceValues.form = d),
|
|
483
483
|
language: "javascript",
|
|
484
484
|
fullScreen: !0,
|
|
485
485
|
lineNumbers: !1,
|
|
@@ -490,7 +490,7 @@ function fe(e, o, h, x, f, a) {
|
|
|
490
490
|
placeholder: `代码提示技巧:
|
|
491
491
|
全局对象: this.调用属性或方法
|
|
492
492
|
事件方法:beforeSubmit、loaded、onlChange、getAction、postAction、putAction、deleteAction、deleteAction、openCustomModal等`
|
|
493
|
-
}, null, 8, ["value", "height", "onChange", "keywords"])) :
|
|
493
|
+
}, null, 8, ["value", "height", "onChange", "keywords"])) : A("", !0)
|
|
494
494
|
]),
|
|
495
495
|
_: 1
|
|
496
496
|
}),
|
|
@@ -498,28 +498,28 @@ function fe(e, o, h, x, f, a) {
|
|
|
498
498
|
key: "list",
|
|
499
499
|
forceRender: ""
|
|
500
500
|
}, {
|
|
501
|
-
tab:
|
|
502
|
-
|
|
503
|
-
|
|
501
|
+
tab: o(() => [
|
|
502
|
+
b("div", re, [
|
|
503
|
+
t[8] || (t[8] = b("span", { class: "title" }, "list", -1)),
|
|
504
504
|
n(c, null, {
|
|
505
|
-
title:
|
|
506
|
-
|
|
507
|
-
]),
|
|
508
|
-
default:
|
|
505
|
+
title: o(() => t[7] || (t[7] = [
|
|
506
|
+
b("span", null, "列表js增强文档", -1)
|
|
507
|
+
])),
|
|
508
|
+
default: o(() => [
|
|
509
509
|
n(r, {
|
|
510
|
-
onClick:
|
|
510
|
+
onClick: t[2] || (t[2] = (d) => e.handleGo("list"))
|
|
511
511
|
})
|
|
512
512
|
]),
|
|
513
513
|
_: 1
|
|
514
514
|
})
|
|
515
515
|
])
|
|
516
516
|
]),
|
|
517
|
-
default:
|
|
518
|
-
!e.reloading && e.enhanceType === "list" ? (w(), E(
|
|
517
|
+
default: o(() => [
|
|
518
|
+
!e.reloading && e.enhanceType === "list" ? (w(), E(a, {
|
|
519
519
|
key: 0,
|
|
520
520
|
ref: "listEditorRef",
|
|
521
521
|
value: e.enhanceValues.list,
|
|
522
|
-
"onUpdate:value":
|
|
522
|
+
"onUpdate:value": t[3] || (t[3] = (d) => e.enhanceValues.list = d),
|
|
523
523
|
language: "javascript",
|
|
524
524
|
fullScreen: !0,
|
|
525
525
|
lineNumbers: !1,
|
|
@@ -530,19 +530,19 @@ function fe(e, o, h, x, f, a) {
|
|
|
530
530
|
placeholder: `代码提示技巧:
|
|
531
531
|
全局对象: this.调用属性或方法
|
|
532
532
|
事件方法:beforeDelete、beforeEdit、getAction、postAction、putAction、deleteAction、deleteAction、openCustomModal等`
|
|
533
|
-
}, null, 8, ["value", "height", "onChange", "keywords"])) :
|
|
533
|
+
}, null, 8, ["value", "height", "onChange", "keywords"])) : A("", !0)
|
|
534
534
|
]),
|
|
535
535
|
_: 1
|
|
536
536
|
})
|
|
537
537
|
]),
|
|
538
538
|
_: 1
|
|
539
539
|
}, 8, ["activeKey", "onChange"]),
|
|
540
|
-
n(
|
|
540
|
+
n(S, { onRegister: e.registerEnhanceJsHistory }, null, 8, ["onRegister"])
|
|
541
541
|
]),
|
|
542
542
|
_: 1
|
|
543
543
|
}, 8, ["onRegister", "onFullScreen"]);
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const Re = /* @__PURE__ */ ae(ie, [["render", ue], ["__scopeId", "data-v-73c97e14"]]);
|
|
546
546
|
export {
|
|
547
|
-
|
|
547
|
+
Re as default
|
|
548
548
|
};
|