@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
|
@@ -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
|
|
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
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
import { defineComponent as
|
|
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
|
+
return i;
|
|
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
|
|
19
|
-
import { useModal as
|
|
20
|
-
import { _ as
|
|
21
|
-
import "./cgform.data-
|
|
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
|
+
import { useModal as S } from "/@/components/Modal";
|
|
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,7 +26,7 @@ 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";
|
|
@@ -60,7 +60,7 @@ const H = [
|
|
|
60
60
|
{ title: "分类字典树", value: "cat_tree" },
|
|
61
61
|
{ title: "自定义树控件", value: "sel_tree" },
|
|
62
62
|
{ title: "联动组件", value: "link_down" }
|
|
63
|
-
],
|
|
63
|
+
], ge = [
|
|
64
64
|
{ title: "文本框", value: "text" },
|
|
65
65
|
{ title: "单选框", value: "radio" },
|
|
66
66
|
{ title: "开关", value: "switch" },
|
|
@@ -74,21 +74,21 @@ const H = [
|
|
|
74
74
|
{ title: "下拉搜索框", value: "sel_search" },
|
|
75
75
|
{ title: "popup弹出框", value: "popup" },
|
|
76
76
|
// update-begin--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
|
|
77
|
-
{ title:
|
|
77
|
+
// { title: 'Popup字典', value: 'popup_dict' },
|
|
78
78
|
// update-end--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
|
|
79
79
|
{ title: "部门选择", value: "sel_depart" },
|
|
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
|
|
91
|
+
const i = oe([
|
|
92
92
|
{ title: "字段名称", key: "dbFieldName", width: 100 },
|
|
93
93
|
{ title: "字段备注", key: "dbFieldTxt", width: 150 },
|
|
94
94
|
{
|
|
@@ -120,8 +120,8 @@ const H = [
|
|
|
120
120
|
// update-begin--author:liaozhiyang---date:20240528---for:【TV360X-291】没勾选同步数据库禁用排序功能
|
|
121
121
|
props: {
|
|
122
122
|
isDisabledCell({ row: e, column: t }) {
|
|
123
|
-
let { dbTable:
|
|
124
|
-
const a =
|
|
123
|
+
let { dbTable: l } = c;
|
|
124
|
+
const a = l.value.tableRef.getTableData({ rowIds: [e.id] })[0];
|
|
125
125
|
return (a == null ? void 0 : a.dbIsPersist) == "0";
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -144,7 +144,7 @@ const H = [
|
|
|
144
144
|
options: H,
|
|
145
145
|
defaultValue: "text",
|
|
146
146
|
placeholder: "请选择${title}",
|
|
147
|
-
validateRules: [{ required: !0, message: "请选择${title}" }, { handler:
|
|
147
|
+
validateRules: [{ required: !0, message: "请选择${title}" }, { handler: V }]
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
title: "控件长度",
|
|
@@ -166,8 +166,8 @@ const H = [
|
|
|
166
166
|
// update-begin--author:liaozhiyang---date:20240528---for:【TV360X-423】未勾选同步数据库禁用查询
|
|
167
167
|
props: {
|
|
168
168
|
isDisabledCell({ row: e, column: t }) {
|
|
169
|
-
let { dbTable:
|
|
170
|
-
const a =
|
|
169
|
+
let { dbTable: l } = c;
|
|
170
|
+
const a = l.value.tableRef.getTableData({ rowIds: [e.id] })[0];
|
|
171
171
|
return (a == null ? void 0 : a.dbIsPersist) == "0";
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -180,16 +180,22 @@ const H = [
|
|
|
180
180
|
type: r.select,
|
|
181
181
|
options: [
|
|
182
182
|
{ title: "普通查询", value: "single" },
|
|
183
|
+
{ title: "模糊查询", value: "like" },
|
|
183
184
|
{ title: "范围查询", value: "group" }
|
|
184
185
|
],
|
|
185
186
|
defaultValue: "single",
|
|
186
|
-
placeholder: "请选择${title}"
|
|
187
|
+
placeholder: "请选择${title}",
|
|
188
|
+
validateRules: [{ handler: U }],
|
|
189
|
+
props: {
|
|
190
|
+
isDisabledCell({ row: e, column: t }) {
|
|
191
|
+
}
|
|
192
|
+
}
|
|
187
193
|
},
|
|
188
194
|
{
|
|
189
195
|
title: "控件默认值",
|
|
190
196
|
key: "fieldDefaultValue",
|
|
191
197
|
width: 140,
|
|
192
|
-
type: r.
|
|
198
|
+
type: r.textarea,
|
|
193
199
|
props: {
|
|
194
200
|
allowClear: !0
|
|
195
201
|
},
|
|
@@ -216,21 +222,21 @@ const H = [
|
|
|
216
222
|
type: r.slot,
|
|
217
223
|
slotName: "fieldConfig"
|
|
218
224
|
}
|
|
219
|
-
]), u =
|
|
220
|
-
function
|
|
221
|
-
let { dbTable: a } =
|
|
222
|
-
e === "time" && o !== "string" ?
|
|
225
|
+
]), u = ce(i), { tableRef: s, tables: c } = u;
|
|
226
|
+
function V({ cellValue: e, row: t }, l) {
|
|
227
|
+
let { dbTable: a } = c, o = a.value.tableRef.getTableData({ rowIds: [t.id] })[0].dbType;
|
|
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);
|
|
223
229
|
}
|
|
224
|
-
function
|
|
225
|
-
let t = "
|
|
226
|
-
e.dbType === "Datetime"
|
|
230
|
+
function C(e) {
|
|
231
|
+
let t = "text";
|
|
232
|
+
e.dbType === "Datetime" ? t = "datetime" : e.dbType === "Date" && (t = "date"), s.value.setValues([
|
|
227
233
|
{
|
|
228
234
|
rowKey: e.id,
|
|
229
235
|
values: { fieldShowType: t }
|
|
230
236
|
}
|
|
231
237
|
]);
|
|
232
238
|
}
|
|
233
|
-
function
|
|
239
|
+
function w(e) {
|
|
234
240
|
e.dbIsPersist === "0" && s.value.setValues([
|
|
235
241
|
{
|
|
236
242
|
rowKey: e.id,
|
|
@@ -238,14 +244,14 @@ const H = [
|
|
|
238
244
|
}
|
|
239
245
|
]);
|
|
240
246
|
}
|
|
241
|
-
function
|
|
242
|
-
for (let t of
|
|
247
|
+
function k(e) {
|
|
248
|
+
for (let t of i.value)
|
|
243
249
|
if (t.key == "fieldShowType") {
|
|
244
|
-
t.options = e ?
|
|
250
|
+
t.options = e ? ge : H;
|
|
245
251
|
break;
|
|
246
252
|
}
|
|
247
253
|
}
|
|
248
|
-
function
|
|
254
|
+
function F(e) {
|
|
249
255
|
s.value.setValues([
|
|
250
256
|
{
|
|
251
257
|
rowKey: e,
|
|
@@ -253,62 +259,62 @@ const H = [
|
|
|
253
259
|
}
|
|
254
260
|
]);
|
|
255
261
|
}
|
|
256
|
-
const [
|
|
257
|
-
function
|
|
262
|
+
const [_, { openModal: x }] = S(), [h, { openModal: M }] = S(), [K, { openModal: L }] = S();
|
|
263
|
+
function $(e) {
|
|
258
264
|
return e.row.dbFieldName != "id";
|
|
259
265
|
}
|
|
260
|
-
function
|
|
261
|
-
e.row.fieldShowType.indexOf("link_table") >= 0 ?
|
|
266
|
+
function B(e) {
|
|
267
|
+
e.row.fieldShowType.indexOf("link_table") >= 0 ? R(e) : z(e);
|
|
262
268
|
}
|
|
263
|
-
function
|
|
264
|
-
let { row: t } = e, { checkTable:
|
|
265
|
-
if (
|
|
266
|
-
let a =
|
|
269
|
+
function R(e) {
|
|
270
|
+
let { row: t } = e, { checkTable: l } = c;
|
|
271
|
+
if (l) {
|
|
272
|
+
let a = l.value.tableRef.getTableData({ rowIds: [t.id] })[0];
|
|
267
273
|
if (e.row.fieldShowType == "link_table") {
|
|
268
|
-
let o =
|
|
269
|
-
|
|
274
|
+
let o = A(t, a);
|
|
275
|
+
x(!0, {
|
|
270
276
|
record: o,
|
|
271
277
|
fieldName: t.dbFieldName
|
|
272
278
|
});
|
|
273
279
|
} else if (e.row.fieldShowType == "link_table_field") {
|
|
274
|
-
let o =
|
|
280
|
+
let o = Q(t, a);
|
|
275
281
|
M(!0, o);
|
|
276
282
|
}
|
|
277
283
|
}
|
|
278
284
|
}
|
|
279
|
-
function
|
|
280
|
-
let a = s.value.getTableData().filter((
|
|
285
|
+
function Q(e, t) {
|
|
286
|
+
let a = s.value.getTableData().filter((b) => b.fieldShowType == "link_table"), o = {};
|
|
281
287
|
if (a && a.length > 0) {
|
|
282
|
-
let
|
|
283
|
-
for (let
|
|
284
|
-
let
|
|
285
|
-
if (
|
|
286
|
-
let
|
|
287
|
-
o[
|
|
288
|
-
title:
|
|
289
|
-
table:
|
|
290
|
-
fields:
|
|
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
|
+
if (y && y.length > 0) {
|
|
292
|
+
let p = y[0];
|
|
293
|
+
o[p.dbFieldName] = {
|
|
294
|
+
title: v.dbFieldTxt,
|
|
295
|
+
table: p.dictTable,
|
|
296
|
+
fields: p.dictText
|
|
291
297
|
};
|
|
292
298
|
}
|
|
293
299
|
}
|
|
294
300
|
}
|
|
295
|
-
const { dictTable:
|
|
301
|
+
const { dictTable: m, dictText: f } = t, { id: n, dbFieldTxt: d } = e;
|
|
296
302
|
return {
|
|
297
303
|
record: {
|
|
298
304
|
rowKey: n,
|
|
299
305
|
dbFieldTxt: d,
|
|
300
306
|
dictText: f,
|
|
301
|
-
dictTable:
|
|
307
|
+
dictTable: m
|
|
302
308
|
},
|
|
303
309
|
tableAndFieldsMap: o
|
|
304
310
|
};
|
|
305
311
|
}
|
|
306
|
-
function
|
|
307
|
-
const { id:
|
|
312
|
+
function A(e, t) {
|
|
313
|
+
const { id: l, dbFieldTxt: a, fieldExtendJson: o } = e, { dictTable: m, dictText: f } = t;
|
|
308
314
|
let n = {
|
|
309
|
-
rowKey:
|
|
315
|
+
rowKey: l,
|
|
310
316
|
dbFieldTxt: a,
|
|
311
|
-
dictTable:
|
|
317
|
+
dictTable: m
|
|
312
318
|
};
|
|
313
319
|
if (f) {
|
|
314
320
|
let d = f.split(",");
|
|
@@ -318,129 +324,143 @@ const H = [
|
|
|
318
324
|
if (o)
|
|
319
325
|
try {
|
|
320
326
|
let d = JSON.parse(o);
|
|
321
|
-
d.multiSelect ? n.multiSelect = d.multiSelect : n.multiSelect = !1, d.showType ? n.showType = d.showType : n.showType = "card", d.imageField ? n.imageField = d.imageField : n.imageField = "";
|
|
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 = "";
|
|
322
328
|
} catch (d) {
|
|
323
329
|
}
|
|
324
330
|
return n;
|
|
325
331
|
}
|
|
326
|
-
function
|
|
327
|
-
const { multiSelect: t, showType:
|
|
328
|
-
let
|
|
329
|
-
s.value.setValues(
|
|
330
|
-
let { checkTable:
|
|
331
|
-
if (
|
|
332
|
-
let
|
|
333
|
-
|
|
332
|
+
function q(e) {
|
|
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);
|
|
334
340
|
}
|
|
335
|
-
if (
|
|
336
|
-
let
|
|
337
|
-
e.otherFields && (
|
|
338
|
-
const { dictTable:
|
|
339
|
-
let
|
|
340
|
-
dictTable:
|
|
341
|
-
dictField:
|
|
342
|
-
dictText:
|
|
341
|
+
if (d) {
|
|
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,
|
|
343
349
|
dbFieldName: o
|
|
344
|
-
},
|
|
345
|
-
|
|
350
|
+
}, Y = [{ rowKey: e.rowKey, values: p }];
|
|
351
|
+
d.value.tableRef.setValues(Y);
|
|
346
352
|
}
|
|
347
353
|
}
|
|
348
|
-
function
|
|
349
|
-
const { dbFieldTxt: t, dictTable:
|
|
350
|
-
let
|
|
351
|
-
s.value.setValues(
|
|
352
|
-
let { checkTable: f, dbTable: n } =
|
|
354
|
+
function j(e) {
|
|
355
|
+
const { dbFieldTxt: t, dictTable: l, dictText: a, rowKey: o } = e;
|
|
356
|
+
let m = [{ rowKey: o, values: { dbFieldTxt: t } }];
|
|
357
|
+
s.value.setValues(m);
|
|
358
|
+
let { checkTable: f, dbTable: n } = c;
|
|
353
359
|
if (n) {
|
|
354
360
|
let d = [{ rowKey: o, values: { dbFieldTxt: t, dbIsPersist: "0" } }];
|
|
355
361
|
n.value.tableRef.setValues(d);
|
|
356
362
|
}
|
|
357
363
|
if (f) {
|
|
358
|
-
let d = [{ rowKey: o, values: { dictTable:
|
|
364
|
+
let d = [{ rowKey: o, values: { dictTable: l, dictText: a } }];
|
|
359
365
|
f.value.tableRef.setValues(d);
|
|
360
366
|
}
|
|
361
367
|
}
|
|
362
368
|
function z(e) {
|
|
363
|
-
let t = e.row.fieldExtendJson || "",
|
|
364
|
-
const
|
|
365
|
-
|
|
369
|
+
let t = e.row.fieldExtendJson || "", l = e.rowId, a = e.row.fieldShowType || "", o = e.row.sortFlag || "0";
|
|
370
|
+
const m = e.row.dbType;
|
|
371
|
+
L(!0, {
|
|
366
372
|
jsonStr: t,
|
|
367
373
|
fieldShowType: a,
|
|
368
374
|
sortFlag: o,
|
|
369
|
-
id:
|
|
370
|
-
dbType:
|
|
375
|
+
id: l,
|
|
376
|
+
dbType: m
|
|
371
377
|
});
|
|
372
378
|
}
|
|
373
379
|
function W(e, t) {
|
|
374
|
-
let
|
|
375
|
-
e && Object.keys(e).length > 0 ?
|
|
380
|
+
let l;
|
|
381
|
+
e && Object.keys(e).length > 0 ? l = [{ rowKey: t, values: { fieldExtendJson: JSON.stringify(e) } }] : l = [{ rowKey: t, values: { fieldExtendJson: "" } }], s.value.setValues(l);
|
|
376
382
|
}
|
|
377
383
|
const G = (e) => {
|
|
378
384
|
};
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
385
|
+
function U({ cellValue: e, row: t }, l) {
|
|
386
|
+
let { dbTable: a } = c;
|
|
387
|
+
const o = a.value.tableRef.getTableData({ rowIds: [t.id] })[0].dbType;
|
|
388
|
+
e === "group" ? ["double", "int", "BigDecimal", "Date", "Datetime"].includes(o) || t.fieldShowType === "time" ? l(!0) : l(!1, "范围查询,只支持数据库属里的字段类型为:Integer、Double、BigDecimal及Date、Datetime 或 控件类型是时间(HH:mm:ss)") : e === "like" ? ["string"].includes(o) && t.fieldShowType === "text" ? l(!0) : l(!1, "模糊查询,只支持控件类型是文本框且数据库属里的字段类型是String") : l(!0);
|
|
389
|
+
}
|
|
390
|
+
const X = ({ oldValue: e, row: t }) => {
|
|
391
|
+
t.dbType != "string" && e == "string" && s.value.getTableData({ rowIds: [t.id] })[0].queryMode == "like" && s.value.setValues([
|
|
392
|
+
{
|
|
393
|
+
rowKey: t.id,
|
|
394
|
+
values: { queryMode: "single" }
|
|
395
|
+
}
|
|
396
|
+
]);
|
|
397
|
+
};
|
|
398
|
+
return I(E({}, u), {
|
|
399
|
+
columns: i,
|
|
400
|
+
enableQuery: F,
|
|
401
|
+
syncFieldShowType: C,
|
|
402
|
+
changePageType: k,
|
|
403
|
+
showConfigButton: $,
|
|
404
|
+
showFieldConfig: R,
|
|
405
|
+
registerExtJsonModal: K,
|
|
387
406
|
handleExtJson: W,
|
|
388
|
-
openConfig:
|
|
389
|
-
registerModal:
|
|
390
|
-
handleConfigData:
|
|
391
|
-
registerFieldModal:
|
|
392
|
-
handleFieldConfigData:
|
|
393
|
-
syncIsQuery:
|
|
394
|
-
handleValueChange: G
|
|
407
|
+
openConfig: B,
|
|
408
|
+
registerModal: _,
|
|
409
|
+
handleConfigData: q,
|
|
410
|
+
registerFieldModal: h,
|
|
411
|
+
handleFieldConfigData: j,
|
|
412
|
+
syncIsQuery: w,
|
|
413
|
+
handleValueChange: G,
|
|
414
|
+
syncQueryMode: X
|
|
395
415
|
});
|
|
396
416
|
}
|
|
397
417
|
});
|
|
398
|
-
function
|
|
399
|
-
const
|
|
400
|
-
return
|
|
401
|
-
|
|
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({
|
|
402
422
|
ref: "tableRef",
|
|
403
423
|
"row-class-name": "online-config-page",
|
|
404
424
|
rowNumber: "",
|
|
405
425
|
keyboardEdit: "",
|
|
406
|
-
maxHeight:
|
|
407
|
-
loading:
|
|
408
|
-
columns:
|
|
409
|
-
dataSource:
|
|
426
|
+
maxHeight: i.tableHeight.noToolbar,
|
|
427
|
+
loading: i.loading,
|
|
428
|
+
columns: i.columns,
|
|
429
|
+
dataSource: i.dataSource,
|
|
410
430
|
disabledRows: { dbFieldName: ["id", "has_child"] },
|
|
411
|
-
onValueChange:
|
|
412
|
-
},
|
|
413
|
-
fieldConfig:
|
|
414
|
-
|
|
431
|
+
onValueChange: i.handleValueChange
|
|
432
|
+
}, i.tableProps), {
|
|
433
|
+
fieldConfig: P((h) => [
|
|
434
|
+
i.showConfigButton(h) ? (O(), ue(w, {
|
|
415
435
|
key: 0,
|
|
416
436
|
type: "primary",
|
|
417
437
|
size: "small",
|
|
418
438
|
ghost: "",
|
|
419
|
-
onClick: (M) =>
|
|
439
|
+
onClick: (M) => i.openConfig(h)
|
|
420
440
|
}, {
|
|
421
|
-
default:
|
|
422
|
-
|
|
423
|
-
]),
|
|
441
|
+
default: P(() => u[0] || (u[0] = [
|
|
442
|
+
re("更多配置")
|
|
443
|
+
])),
|
|
424
444
|
_: 2
|
|
425
|
-
}, 1032, ["onClick"])) :
|
|
445
|
+
}, 1032, ["onClick"])) : fe("", !0)
|
|
426
446
|
]),
|
|
427
447
|
_: 1
|
|
428
448
|
}, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]),
|
|
429
|
-
|
|
430
|
-
onRegister:
|
|
431
|
-
onSuccess:
|
|
449
|
+
T(F, {
|
|
450
|
+
onRegister: i.registerModal,
|
|
451
|
+
onSuccess: i.handleConfigData
|
|
432
452
|
}, null, 8, ["onRegister", "onSuccess"]),
|
|
433
|
-
|
|
434
|
-
onRegister:
|
|
435
|
-
onSuccess:
|
|
453
|
+
T(_, {
|
|
454
|
+
onRegister: i.registerFieldModal,
|
|
455
|
+
onSuccess: i.handleFieldConfigData
|
|
436
456
|
}, null, 8, ["onRegister", "onSuccess"]),
|
|
437
|
-
|
|
438
|
-
onRegister:
|
|
439
|
-
onSuccess:
|
|
457
|
+
T(x, {
|
|
458
|
+
onRegister: i.registerExtJsonModal,
|
|
459
|
+
onSuccess: i.handleExtJson
|
|
440
460
|
}, null, 8, ["onRegister", "onSuccess"])
|
|
441
461
|
], 64);
|
|
442
462
|
}
|
|
443
|
-
const
|
|
463
|
+
const Be = /* @__PURE__ */ ye(he, [["render", ve], ["__scopeId", "data-v-519eccff"]]);
|
|
444
464
|
export {
|
|
445
|
-
|
|
465
|
+
Be as default
|
|
446
466
|
};
|