@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
|
@@ -26,18 +26,18 @@ var v = (i, r, n) => new Promise((o, b) => {
|
|
|
26
26
|
c((n = n.apply(i, r)).next());
|
|
27
27
|
});
|
|
28
28
|
import { useMessage as ee } from "/@/hooks/web/useMessage";
|
|
29
|
-
import { ref as s, watch as te, reactive as oe, resolveComponent as u, openBlock as p, createElementBlock as _, createVNode as y, createCommentVNode as I, withCtx as B, createBlock as
|
|
29
|
+
import { ref as s, watch as te, reactive as oe, resolveComponent as u, openBlock as p, createElementBlock as _, createVNode as y, createCommentVNode as I, withCtx as B, createBlock as w, Fragment as ne, renderList as re, normalizeStyle as ae, renderSlot as ie } from "vue";
|
|
30
30
|
import { Loading as le } from "/@/components/Loading";
|
|
31
31
|
import { getToken as me } from "/@/utils/auth";
|
|
32
32
|
import { goJmReportViewPage as se } from "/@/utils";
|
|
33
33
|
import { PrinterOutlined as pe } from "@ant-design/icons-vue";
|
|
34
|
-
import ue from "./DetailForm-
|
|
35
|
-
import ce from "./OnlineSubFormDetail-
|
|
36
|
-
import {
|
|
34
|
+
import ue from "./DetailForm-c592b8d8.mjs";
|
|
35
|
+
import ce from "./OnlineSubFormDetail-8be879b9.mjs";
|
|
36
|
+
import { m as fe } from "./useExtendComponent-bb98e568.mjs";
|
|
37
37
|
import { defHttp as de } from "/@/utils/http/axios";
|
|
38
38
|
import { E as be, T as ge } from "./constant-fa63bd66.mjs";
|
|
39
39
|
import { useAppInject as he } from "/@/hooks/web/useAppInject";
|
|
40
|
-
import { _ as _e } from "./index-
|
|
40
|
+
import { _ as _e } from "./index-9e1e1e53.mjs";
|
|
41
41
|
import "/@/utils/propTypes";
|
|
42
42
|
import "/@/utils/dict";
|
|
43
43
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -60,11 +60,11 @@ import "/@/store/modules/permission";
|
|
|
60
60
|
import "/@/components/Table";
|
|
61
61
|
import "/@/hooks/system/useListPage";
|
|
62
62
|
import "vue-router";
|
|
63
|
-
import "./LinkTableListPiece-
|
|
63
|
+
import "./LinkTableListPiece-e016b8e6.mjs";
|
|
64
64
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
65
65
|
import "/@/assets/images/placeholderImage.png";
|
|
66
|
-
import "./OnlineSelectCascade-
|
|
67
|
-
import "./JModalTip-
|
|
66
|
+
import "./OnlineSelectCascade-d631ed72.mjs";
|
|
67
|
+
import "./JModalTip-a927f85d.mjs";
|
|
68
68
|
import "ant-design-vue";
|
|
69
69
|
import "@vueuse/core";
|
|
70
70
|
const ye = {
|
|
@@ -115,7 +115,7 @@ const ye = {
|
|
|
115
115
|
},
|
|
116
116
|
emits: ["success", "rendered"],
|
|
117
117
|
setup(i, { emit: r }) {
|
|
118
|
-
const { createMessage: n } = ee(), { getIsMobile: o } = he(), b = s(""), S = s(!0), h = s(!1), c = s(1), l = s({}), f = s("auto"),
|
|
118
|
+
const { createMessage: n } = ee(), { getIsMobile: o } = he(), b = s(""), S = s(!0), h = s(!1), c = s(1), l = s({}), f = s("auto"), k = s(340), T = s("0"), x = s(!o.value);
|
|
119
119
|
te(
|
|
120
120
|
() => i.tabIndex,
|
|
121
121
|
(e, t) => {
|
|
@@ -216,7 +216,7 @@ const ye = {
|
|
|
216
216
|
hasSubTable: P,
|
|
217
217
|
subTabInfo: A,
|
|
218
218
|
subFormHeight: f,
|
|
219
|
-
subTableHeight:
|
|
219
|
+
subTableHeight: k,
|
|
220
220
|
refMap: E,
|
|
221
221
|
onTabChange: J,
|
|
222
222
|
//一对多子表
|
|
@@ -241,8 +241,8 @@ const Se = ["id"], Te = {
|
|
|
241
241
|
key: 0,
|
|
242
242
|
style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
|
|
243
243
|
}, ve = { key: 1 };
|
|
244
|
-
function
|
|
245
|
-
const h = u("PrinterOutlined"), c = u("detail-form"), l = u("a-tab-pane"), f = u("online-sub-form-detail"),
|
|
244
|
+
function we(i, r, n, o, b, S) {
|
|
245
|
+
const h = u("PrinterOutlined"), c = u("detail-form"), l = u("a-tab-pane"), f = u("online-sub-form-detail"), k = u("JVxeTable"), T = u("a-spin"), x = u("a-tabs"), g = u("Loading");
|
|
246
246
|
return p(), _("div", {
|
|
247
247
|
id: o.tableName + "_form"
|
|
248
248
|
}, [
|
|
@@ -260,7 +260,7 @@ function ke(i, r, n, o, b, S) {
|
|
|
260
260
|
"onUpdate:activeKey": r[0] || (r[0] = (m) => o.subActiveKey = m)
|
|
261
261
|
}, {
|
|
262
262
|
default: B(() => [
|
|
263
|
-
(p(),
|
|
263
|
+
(p(), w(l, {
|
|
264
264
|
tab: "主表",
|
|
265
265
|
key: "-1"
|
|
266
266
|
}, {
|
|
@@ -273,7 +273,7 @@ function ke(i, r, n, o, b, S) {
|
|
|
273
273
|
]),
|
|
274
274
|
_: 1
|
|
275
275
|
})),
|
|
276
|
-
o.hasSubTable && n.showSub ? (p(!0), _(ne, { key: 0 }, re(o.subTabInfo, (m, P) => (p(),
|
|
276
|
+
o.hasSubTable && n.showSub ? (p(!0), _(ne, { key: 0 }, re(o.subTabInfo, (m, P) => (p(), w(l, {
|
|
277
277
|
tab: m.describe,
|
|
278
278
|
key: P + "",
|
|
279
279
|
forceRender: !0
|
|
@@ -290,7 +290,7 @@ function ke(i, r, n, o, b, S) {
|
|
|
290
290
|
properties: m.properties
|
|
291
291
|
}, null, 8, ["table", "form-template", "main-id", "properties"])
|
|
292
292
|
], 4)) : (p(), _("div", ve, [
|
|
293
|
-
o.showStatus[m.key] ? (p(), k
|
|
293
|
+
o.showStatus[m.key] ? (p(), w(k, {
|
|
294
294
|
key: 0,
|
|
295
295
|
ref_for: !0,
|
|
296
296
|
ref: o.refMap[m.key],
|
|
@@ -303,7 +303,7 @@ function ke(i, r, n, o, b, S) {
|
|
|
303
303
|
columns: m.columns,
|
|
304
304
|
dataSource: o.subDataSource[m.key],
|
|
305
305
|
authPre: o.getSubTableAuthPre(m.key)
|
|
306
|
-
}, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (p(),
|
|
306
|
+
}, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (p(), w(T, {
|
|
307
307
|
key: 1,
|
|
308
308
|
spinning: !0
|
|
309
309
|
}))
|
|
@@ -321,7 +321,7 @@ function ke(i, r, n, o, b, S) {
|
|
|
321
321
|
ie(i.$slots, "bottom", {}, void 0, !0)
|
|
322
322
|
], 8, Se);
|
|
323
323
|
}
|
|
324
|
-
const ft = /* @__PURE__ */ _e(ye, [["render",
|
|
324
|
+
const ft = /* @__PURE__ */ _e(ye, [["render", we], ["__scopeId", "data-v-60a1e2da"]]);
|
|
325
325
|
export {
|
|
326
326
|
ft as default
|
|
327
327
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var N = (i, u, s) => u in i ?
|
|
1
|
+
var Z = Object.defineProperty, ee = Object.defineProperties;
|
|
2
|
+
var te = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var J = Object.getOwnPropertySymbols;
|
|
4
|
+
var le = Object.prototype.hasOwnProperty, ie = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var N = (i, u, s) => u in i ? Z(i, u, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[u] = s, E = (i, u) => {
|
|
6
6
|
for (var s in u || (u = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var s of
|
|
10
|
-
|
|
7
|
+
le.call(u, s) && N(i, s, u[s]);
|
|
8
|
+
if (J)
|
|
9
|
+
for (var s of J(u))
|
|
10
|
+
ie.call(u, s) && N(i, s, u[s]);
|
|
11
11
|
return i;
|
|
12
|
-
}, I = (i, u) =>
|
|
13
|
-
import { defineComponent as
|
|
12
|
+
}, I = (i, u) => ee(i, te(u));
|
|
13
|
+
import { defineComponent as ae, ref as oe, resolveComponent as g, openBlock as O, createElementBlock as se, Fragment as de, createVNode as T, mergeProps as ne, withCtx as P, createBlock as ue, createTextVNode as re, createCommentVNode as fe } from "vue";
|
|
14
14
|
import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
-
import { u as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
15
|
+
import { u as ce } from "./useTableSync-075826a1.mjs";
|
|
16
|
+
import me from "./LinkTableConfigModal-7eeb3e58.mjs";
|
|
17
|
+
import be from "./LinkTableFieldConfigModal-b078fcef.mjs";
|
|
18
|
+
import pe from "./FieldExtendJsonModal-bf04d70e.mjs";
|
|
19
19
|
import { useModal as S } from "/@/components/Modal";
|
|
20
|
-
import { _ as
|
|
21
|
-
import "./cgform.data-
|
|
20
|
+
import { _ as ye } from "./index-9e1e1e53.mjs";
|
|
21
|
+
import "./cgform.data-0ca62d09.mjs";
|
|
22
22
|
import "/@/utils/dict";
|
|
23
23
|
import "/@/utils/dict/JDictSelectUtil";
|
|
24
24
|
import "/@/utils/uuid";
|
|
@@ -26,12 +26,12 @@ import "lodash-es";
|
|
|
26
26
|
import "/@/components/Form/index";
|
|
27
27
|
import "/@/utils/http/axios";
|
|
28
28
|
import "/@/hooks/web/useMessage";
|
|
29
|
-
import "./SetSwitchOptions-
|
|
29
|
+
import "./SetSwitchOptions-f914bc17.mjs";
|
|
30
30
|
import "/@/utils/is";
|
|
31
31
|
import "./constant-fa63bd66.mjs";
|
|
32
32
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
33
33
|
import "vue-router";
|
|
34
|
-
const
|
|
34
|
+
const H = [
|
|
35
35
|
{ title: "文本框", value: "text" },
|
|
36
36
|
{ title: "密码", value: "password" },
|
|
37
37
|
{ title: "下拉框", value: "list" },
|
|
@@ -80,15 +80,15 @@ const K = [
|
|
|
80
80
|
{ title: "用户选择", value: "sel_user" },
|
|
81
81
|
{ title: "省市区组件", value: "pca" },
|
|
82
82
|
{ title: "多行文本", value: "textarea" }
|
|
83
|
-
],
|
|
83
|
+
], he = ae({
|
|
84
84
|
name: "PageAttributeTable",
|
|
85
85
|
components: {
|
|
86
|
-
LinkTableConfigModal:
|
|
87
|
-
LinkTableFieldConfigModal:
|
|
88
|
-
FieldExtendJsonModal:
|
|
86
|
+
LinkTableConfigModal: me,
|
|
87
|
+
LinkTableFieldConfigModal: be,
|
|
88
|
+
FieldExtendJsonModal: pe
|
|
89
89
|
},
|
|
90
90
|
setup() {
|
|
91
|
-
const i =
|
|
91
|
+
const i = oe([
|
|
92
92
|
{ title: "字段名称", key: "dbFieldName", width: 100 },
|
|
93
93
|
{ title: "字段备注", key: "dbFieldTxt", width: 150 },
|
|
94
94
|
{
|
|
@@ -141,7 +141,7 @@ const K = [
|
|
|
141
141
|
key: "fieldShowType",
|
|
142
142
|
width: 170,
|
|
143
143
|
type: r.select,
|
|
144
|
-
options:
|
|
144
|
+
options: H,
|
|
145
145
|
defaultValue: "text",
|
|
146
146
|
placeholder: "请选择${title}",
|
|
147
147
|
validateRules: [{ required: !0, message: "请选择${title}" }, { handler: V }]
|
|
@@ -195,7 +195,7 @@ const K = [
|
|
|
195
195
|
title: "控件默认值",
|
|
196
196
|
key: "fieldDefaultValue",
|
|
197
197
|
width: 140,
|
|
198
|
-
type: r.
|
|
198
|
+
type: r.textarea,
|
|
199
199
|
props: {
|
|
200
200
|
allowClear: !0
|
|
201
201
|
},
|
|
@@ -222,7 +222,7 @@ const K = [
|
|
|
222
222
|
type: r.slot,
|
|
223
223
|
slotName: "fieldConfig"
|
|
224
224
|
}
|
|
225
|
-
]), u =
|
|
225
|
+
]), u = ce(i), { tableRef: s, tables: c } = u;
|
|
226
226
|
function V({ cellValue: e, row: t }, l) {
|
|
227
227
|
let { dbTable: a } = c, o = a.value.tableRef.getTableData({ rowIds: [t.id] })[0].dbType;
|
|
228
228
|
e === "time" && o !== "string" ? l(!1, "当控件类型为时间时,数据库属性里的字段类型必须是String!") : e === "date" && o !== "Date" && o !== "Datetime" ? l(!1, "当控件类型为日期时,数据库属性里的字段类型必须是Date或Datetime!") : e === "datetime" && o !== "Datetime" ? l(!1, "当控件类型为datetime时,数据库属性里的字段类型必须是Datetime!") : l(!0);
|
|
@@ -236,7 +236,7 @@ const K = [
|
|
|
236
236
|
}
|
|
237
237
|
]);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function w(e) {
|
|
240
240
|
e.dbIsPersist === "0" && s.value.setValues([
|
|
241
241
|
{
|
|
242
242
|
rowKey: e.id,
|
|
@@ -244,14 +244,14 @@ const K = [
|
|
|
244
244
|
}
|
|
245
245
|
]);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function k(e) {
|
|
248
248
|
for (let t of i.value)
|
|
249
249
|
if (t.key == "fieldShowType") {
|
|
250
|
-
t.options = e ? ge :
|
|
250
|
+
t.options = e ? ge : H;
|
|
251
251
|
break;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function F(e) {
|
|
255
255
|
s.value.setValues([
|
|
256
256
|
{
|
|
257
257
|
rowKey: e,
|
|
@@ -259,116 +259,116 @@ const K = [
|
|
|
259
259
|
}
|
|
260
260
|
]);
|
|
261
261
|
}
|
|
262
|
-
const [
|
|
263
|
-
function
|
|
262
|
+
const [_, { openModal: x }] = S(), [h, { openModal: M }] = S(), [K, { openModal: L }] = S();
|
|
263
|
+
function $(e) {
|
|
264
264
|
return e.row.dbFieldName != "id";
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
e.row.fieldShowType.indexOf("link_table") >= 0 ?
|
|
266
|
+
function B(e) {
|
|
267
|
+
e.row.fieldShowType.indexOf("link_table") >= 0 ? R(e) : z(e);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function R(e) {
|
|
270
270
|
let { row: t } = e, { checkTable: l } = c;
|
|
271
271
|
if (l) {
|
|
272
272
|
let a = l.value.tableRef.getTableData({ rowIds: [t.id] })[0];
|
|
273
273
|
if (e.row.fieldShowType == "link_table") {
|
|
274
|
-
let o =
|
|
275
|
-
|
|
274
|
+
let o = A(t, a);
|
|
275
|
+
x(!0, {
|
|
276
276
|
record: o,
|
|
277
277
|
fieldName: t.dbFieldName
|
|
278
278
|
});
|
|
279
279
|
} else if (e.row.fieldShowType == "link_table_field") {
|
|
280
|
-
let o =
|
|
280
|
+
let o = Q(t, a);
|
|
281
281
|
M(!0, o);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
let a = s.value.getTableData().filter((
|
|
285
|
+
function Q(e, t) {
|
|
286
|
+
let a = s.value.getTableData().filter((b) => b.fieldShowType == "link_table"), o = {};
|
|
287
287
|
if (a && a.length > 0) {
|
|
288
|
-
let
|
|
289
|
-
for (let
|
|
290
|
-
let y =
|
|
288
|
+
let b = c.checkTable.value.tableRef.getTableData();
|
|
289
|
+
for (let v of a) {
|
|
290
|
+
let y = b.filter((p) => p.dbFieldName == v.dbFieldName);
|
|
291
291
|
if (y && y.length > 0) {
|
|
292
|
-
let
|
|
293
|
-
o[
|
|
294
|
-
title:
|
|
295
|
-
table:
|
|
296
|
-
fields:
|
|
292
|
+
let p = y[0];
|
|
293
|
+
o[p.dbFieldName] = {
|
|
294
|
+
title: v.dbFieldTxt,
|
|
295
|
+
table: p.dictTable,
|
|
296
|
+
fields: p.dictText
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
const { dictTable: m, dictText: f } = t, { id:
|
|
301
|
+
const { dictTable: m, dictText: f } = t, { id: n, dbFieldTxt: d } = e;
|
|
302
302
|
return {
|
|
303
303
|
record: {
|
|
304
|
-
rowKey:
|
|
305
|
-
dbFieldTxt:
|
|
304
|
+
rowKey: n,
|
|
305
|
+
dbFieldTxt: d,
|
|
306
306
|
dictText: f,
|
|
307
307
|
dictTable: m
|
|
308
308
|
},
|
|
309
309
|
tableAndFieldsMap: o
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function A(e, t) {
|
|
313
313
|
const { id: l, dbFieldTxt: a, fieldExtendJson: o } = e, { dictTable: m, dictText: f } = t;
|
|
314
|
-
let
|
|
314
|
+
let n = {
|
|
315
315
|
rowKey: l,
|
|
316
316
|
dbFieldTxt: a,
|
|
317
317
|
dictTable: m
|
|
318
318
|
};
|
|
319
319
|
if (f) {
|
|
320
|
-
let
|
|
321
|
-
|
|
320
|
+
let d = f.split(",");
|
|
321
|
+
n.titleField = d[0], d.length > 1 && (n.otherFields = f.substring(f.indexOf(",") + 1));
|
|
322
322
|
} else
|
|
323
|
-
|
|
323
|
+
n.titleField = "", n.otherFields = "";
|
|
324
324
|
if (o)
|
|
325
325
|
try {
|
|
326
|
-
let
|
|
327
|
-
|
|
328
|
-
} catch (
|
|
326
|
+
let d = JSON.parse(o);
|
|
327
|
+
d.multiSelect ? n.multiSelect = d.multiSelect : n.multiSelect = !1, d.isListReadOnly ? n.isListReadOnly = d.isListReadOnly : n.isListReadOnly = !1, d.showType ? n.showType = d.showType : n.showType = "card", d.imageField ? n.imageField = d.imageField : n.imageField = "";
|
|
328
|
+
} catch (d) {
|
|
329
329
|
}
|
|
330
|
-
return
|
|
330
|
+
return n;
|
|
331
331
|
}
|
|
332
332
|
function q(e) {
|
|
333
|
-
const { multiSelect: t, showType: l, imageField: a, fieldName: o } = e;
|
|
334
|
-
let
|
|
335
|
-
s.value.setValues(
|
|
336
|
-
let { checkTable: d, dbTable:
|
|
337
|
-
if (
|
|
338
|
-
let
|
|
339
|
-
|
|
333
|
+
const { multiSelect: t, showType: l, imageField: a, fieldName: o, isListReadOnly: m } = e;
|
|
334
|
+
let f = { showType: l, multiSelect: t, imageField: a, isListReadOnly: m }, n = [{ rowKey: e.rowKey, values: { fieldExtendJson: JSON.stringify(f), dbFieldTxt: e.dbFieldTxt } }];
|
|
335
|
+
s.value.setValues(n);
|
|
336
|
+
let { checkTable: d, dbTable: D } = c;
|
|
337
|
+
if (D) {
|
|
338
|
+
let b = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
|
|
339
|
+
D.value.tableRef.setValues(b);
|
|
340
340
|
}
|
|
341
341
|
if (d) {
|
|
342
|
-
let
|
|
343
|
-
e.otherFields && (
|
|
344
|
-
const { dictTable:
|
|
345
|
-
let
|
|
346
|
-
dictTable:
|
|
347
|
-
dictField:
|
|
348
|
-
dictText:
|
|
342
|
+
let b = e.titleField;
|
|
343
|
+
e.otherFields && (b += "," + e.otherFields);
|
|
344
|
+
const { dictTable: v, dictField: y } = e;
|
|
345
|
+
let p = {
|
|
346
|
+
dictTable: v,
|
|
347
|
+
dictField: y,
|
|
348
|
+
dictText: b,
|
|
349
349
|
dbFieldName: o
|
|
350
|
-
},
|
|
351
|
-
d.value.tableRef.setValues(
|
|
350
|
+
}, Y = [{ rowKey: e.rowKey, values: p }];
|
|
351
|
+
d.value.tableRef.setValues(Y);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
function j(e) {
|
|
355
355
|
const { dbFieldTxt: t, dictTable: l, dictText: a, rowKey: o } = e;
|
|
356
356
|
let m = [{ rowKey: o, values: { dbFieldTxt: t } }];
|
|
357
357
|
s.value.setValues(m);
|
|
358
|
-
let { checkTable: f, dbTable:
|
|
359
|
-
if (
|
|
360
|
-
let
|
|
361
|
-
|
|
358
|
+
let { checkTable: f, dbTable: n } = c;
|
|
359
|
+
if (n) {
|
|
360
|
+
let d = [{ rowKey: o, values: { dbFieldTxt: t, dbIsPersist: "0" } }];
|
|
361
|
+
n.value.tableRef.setValues(d);
|
|
362
362
|
}
|
|
363
363
|
if (f) {
|
|
364
|
-
let
|
|
365
|
-
f.value.tableRef.setValues(
|
|
364
|
+
let d = [{ rowKey: o, values: { dictTable: l, dictText: a } }];
|
|
365
|
+
f.value.tableRef.setValues(d);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
function z(e) {
|
|
369
369
|
let t = e.row.fieldExtendJson || "", l = e.rowId, a = e.row.fieldShowType || "", o = e.row.sortFlag || "0";
|
|
370
370
|
const m = e.row.dbType;
|
|
371
|
-
|
|
371
|
+
L(!0, {
|
|
372
372
|
jsonStr: t,
|
|
373
373
|
fieldShowType: a,
|
|
374
374
|
sortFlag: o,
|
|
@@ -397,28 +397,28 @@ const K = [
|
|
|
397
397
|
};
|
|
398
398
|
return I(E({}, u), {
|
|
399
399
|
columns: i,
|
|
400
|
-
enableQuery:
|
|
400
|
+
enableQuery: F,
|
|
401
401
|
syncFieldShowType: C,
|
|
402
|
-
changePageType:
|
|
403
|
-
showConfigButton:
|
|
404
|
-
showFieldConfig:
|
|
405
|
-
registerExtJsonModal:
|
|
402
|
+
changePageType: k,
|
|
403
|
+
showConfigButton: $,
|
|
404
|
+
showFieldConfig: R,
|
|
405
|
+
registerExtJsonModal: K,
|
|
406
406
|
handleExtJson: W,
|
|
407
|
-
openConfig:
|
|
408
|
-
registerModal:
|
|
407
|
+
openConfig: B,
|
|
408
|
+
registerModal: _,
|
|
409
409
|
handleConfigData: q,
|
|
410
|
-
registerFieldModal:
|
|
410
|
+
registerFieldModal: h,
|
|
411
411
|
handleFieldConfigData: j,
|
|
412
|
-
syncIsQuery:
|
|
412
|
+
syncIsQuery: w,
|
|
413
413
|
handleValueChange: G,
|
|
414
414
|
syncQueryMode: X
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
|
-
function
|
|
419
|
-
const
|
|
420
|
-
return
|
|
421
|
-
|
|
418
|
+
function ve(i, u, s, c, V, C) {
|
|
419
|
+
const w = g("a-button"), k = g("JVxeTable"), F = g("link-table-config-modal"), _ = g("link-table-field-config-modal"), x = g("FieldExtendJsonModal");
|
|
420
|
+
return O(), se(de, null, [
|
|
421
|
+
T(k, ne({
|
|
422
422
|
ref: "tableRef",
|
|
423
423
|
"row-class-name": "online-config-page",
|
|
424
424
|
rowNumber: "",
|
|
@@ -430,37 +430,37 @@ function he(i, u, s, c, V, C) {
|
|
|
430
430
|
disabledRows: { dbFieldName: ["id", "has_child"] },
|
|
431
431
|
onValueChange: i.handleValueChange
|
|
432
432
|
}, i.tableProps), {
|
|
433
|
-
fieldConfig:
|
|
434
|
-
i.showConfigButton(
|
|
433
|
+
fieldConfig: P((h) => [
|
|
434
|
+
i.showConfigButton(h) ? (O(), ue(w, {
|
|
435
435
|
key: 0,
|
|
436
436
|
type: "primary",
|
|
437
437
|
size: "small",
|
|
438
438
|
ghost: "",
|
|
439
|
-
onClick: (M) => i.openConfig(
|
|
439
|
+
onClick: (M) => i.openConfig(h)
|
|
440
440
|
}, {
|
|
441
|
-
default:
|
|
442
|
-
|
|
443
|
-
]),
|
|
441
|
+
default: P(() => u[0] || (u[0] = [
|
|
442
|
+
re("更多配置")
|
|
443
|
+
])),
|
|
444
444
|
_: 2
|
|
445
|
-
}, 1032, ["onClick"])) :
|
|
445
|
+
}, 1032, ["onClick"])) : fe("", !0)
|
|
446
446
|
]),
|
|
447
447
|
_: 1
|
|
448
448
|
}, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]),
|
|
449
|
-
|
|
449
|
+
T(F, {
|
|
450
450
|
onRegister: i.registerModal,
|
|
451
451
|
onSuccess: i.handleConfigData
|
|
452
452
|
}, null, 8, ["onRegister", "onSuccess"]),
|
|
453
|
-
|
|
453
|
+
T(_, {
|
|
454
454
|
onRegister: i.registerFieldModal,
|
|
455
455
|
onSuccess: i.handleFieldConfigData
|
|
456
456
|
}, null, 8, ["onRegister", "onSuccess"]),
|
|
457
|
-
|
|
457
|
+
T(x, {
|
|
458
458
|
onRegister: i.registerExtJsonModal,
|
|
459
459
|
onSuccess: i.handleExtJson
|
|
460
460
|
}, null, 8, ["onRegister", "onSuccess"])
|
|
461
461
|
], 64);
|
|
462
462
|
}
|
|
463
|
-
const Be = /* @__PURE__ */
|
|
463
|
+
const Be = /* @__PURE__ */ ye(he, [["render", ve], ["__scopeId", "data-v-519eccff"]]);
|
|
464
464
|
export {
|
|
465
465
|
Be as default
|
|
466
466
|
};
|