@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
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
var x = (Q, m, c) => new Promise((M, R) => {
|
|
2
|
+
var y = (p) => {
|
|
3
|
+
try {
|
|
4
|
+
v(c.next(p));
|
|
5
|
+
} catch (g) {
|
|
6
|
+
R(g);
|
|
7
|
+
}
|
|
8
|
+
}, _ = (p) => {
|
|
9
|
+
try {
|
|
10
|
+
v(c.throw(p));
|
|
11
|
+
} catch (g) {
|
|
12
|
+
R(g);
|
|
13
|
+
}
|
|
14
|
+
}, v = (p) => p.done ? M(p.value) : Promise.resolve(p.value).then(y, _);
|
|
15
|
+
v((c = c.apply(Q, m)).next());
|
|
16
|
+
});
|
|
17
|
+
import { reactive as Ge, ref as P, watch as Xe, resolveComponent as w, openBlock as n, createElementBlock as f, unref as e, createBlock as s, createCommentVNode as u, withDirectives as J, createVNode as b, vShow as $, normalizeClass as Ye, withCtx as r, createElementVNode as S, toDisplayString as I, Fragment as F, renderList as z, createTextVNode as H, mergeProps as Ze, toHandlers as eo, resolveDynamicComponent as oo, normalizeProps as to, guardReactiveProps as no, nextTick as ro } from "vue";
|
|
18
|
+
import { BasicTable as ao, TableAction as io } from "/@/components/Table";
|
|
19
|
+
import { useMessage as lo } from "/@/hooks/web/useMessage";
|
|
20
|
+
import so from "./OnlineAutoModal-95f46901.mjs";
|
|
21
|
+
import co from "./OnlineCustomModal-c8b1e780.mjs";
|
|
22
|
+
import j from "./OnlineDetailModal-5b412bb9.mjs";
|
|
23
|
+
import uo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as po, a as mo } from "./useListButton-98908683.mjs";
|
|
25
|
+
import { u as go, a as fo, O as bo, g as yo } from "./useExtendComponent-bb98e568.mjs";
|
|
26
|
+
import _o from "./OnlineQueryForm-9248341f.mjs";
|
|
27
|
+
import Co from "./SuperQuery-46032e66.mjs";
|
|
28
|
+
import { u as ho } from "./useOnlinePopEvent-687070b7.mjs";
|
|
29
|
+
import Io from "./OnlCgformInnerSubTable-6b6fa15a.mjs";
|
|
30
|
+
import { I as ko } from "./constant-fa63bd66.mjs";
|
|
31
|
+
import "/@/components/Modal";
|
|
32
|
+
import "./OnlineForm-58282699.mjs";
|
|
33
|
+
import "/@/components/Form/index";
|
|
34
|
+
import "/@/utils/http/axios";
|
|
35
|
+
import "lodash-es";
|
|
36
|
+
import "/@/utils";
|
|
37
|
+
import "/@/components/Loading";
|
|
38
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
39
|
+
import "/@/utils/auth";
|
|
40
|
+
import "@ant-design/icons-vue";
|
|
41
|
+
import "/@/hooks/core/useContext";
|
|
42
|
+
import "/@/utils/mitt";
|
|
43
|
+
import "./useCustomHook-acb00837.mjs";
|
|
44
|
+
import "/@/utils/cache";
|
|
45
|
+
import "/@/utils/common/compUtils";
|
|
46
|
+
import "/@/store/modules/user";
|
|
47
|
+
import "/@/hooks/web/useAppInject";
|
|
48
|
+
import "/@/utils/is";
|
|
49
|
+
import "/@/store/modules/permission";
|
|
50
|
+
import "./OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs";
|
|
51
|
+
import "./index-9e1e1e53.mjs";
|
|
52
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
53
|
+
import "vue-router";
|
|
54
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
55
|
+
import "./OnlineFormDetail-fc087725.mjs";
|
|
56
|
+
import "./DetailForm-c592b8d8.mjs";
|
|
57
|
+
import "/@/utils/propTypes";
|
|
58
|
+
import "/@/utils/dict";
|
|
59
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
60
|
+
import "/@/utils/dict/index";
|
|
61
|
+
import "/@/api/common/api";
|
|
62
|
+
import "/@/components/Form/src/utils/Area";
|
|
63
|
+
import "/@/components/Preview/index";
|
|
64
|
+
import "/@/components/Markdown";
|
|
65
|
+
import "./OnlineSubFormDetail-8be879b9.mjs";
|
|
66
|
+
import "/@/router";
|
|
67
|
+
import "/@/hooks/core/onMountedOrActivated";
|
|
68
|
+
import "/@/store/modules/multipleTab";
|
|
69
|
+
import "./cgformState-d9f8ec42.mjs";
|
|
70
|
+
import "pinia";
|
|
71
|
+
import "/@/store";
|
|
72
|
+
import "ant-design-vue";
|
|
73
|
+
import "/@/hooks/system/useMethods";
|
|
74
|
+
import "/@/components/Form/src/componentMap";
|
|
75
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
76
|
+
import "/@/views/system/user/user.api";
|
|
77
|
+
import "/@/utils/desform/customExpression";
|
|
78
|
+
import "/@/hooks/system/useListPage";
|
|
79
|
+
import "./LinkTableListPiece-e016b8e6.mjs";
|
|
80
|
+
import "/@/assets/images/placeholderImage.png";
|
|
81
|
+
import "./OnlineSelectCascade-d631ed72.mjs";
|
|
82
|
+
import "./JModalTip-a927f85d.mjs";
|
|
83
|
+
import "@vueuse/core";
|
|
84
|
+
import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
85
|
+
import "./SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs";
|
|
86
|
+
import "/@/utils/index";
|
|
87
|
+
import "/@/hooks/web/useDesign";
|
|
88
|
+
import "/@/components/Table/src/const";
|
|
89
|
+
const So = { class: "p-2" }, vo = {
|
|
90
|
+
key: 0,
|
|
91
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
92
|
+
}, To = {
|
|
93
|
+
key: 0,
|
|
94
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
95
|
+
}, wo = ["src", "onClick"], Ro = ["innerHTML", "onClick"], Bo = ["innerHTML"], xo = ["title"], Gt = {
|
|
96
|
+
__name: "OnlCgformInnerTableList",
|
|
97
|
+
setup(Q) {
|
|
98
|
+
const m = Ge({
|
|
99
|
+
tabNav: [],
|
|
100
|
+
tabIndex: "0"
|
|
101
|
+
}), c = P([]), M = P(null), { createMessage: R } = lo(), {
|
|
102
|
+
ID: y,
|
|
103
|
+
onlineTableContext: _,
|
|
104
|
+
onlineQueryFormOuter: v,
|
|
105
|
+
loading: p,
|
|
106
|
+
reload: g,
|
|
107
|
+
dataSource: V,
|
|
108
|
+
pagination: U,
|
|
109
|
+
handleSpecialConfig: W,
|
|
110
|
+
getColumnList: G,
|
|
111
|
+
handleChangeInTable: X,
|
|
112
|
+
loadData: Y,
|
|
113
|
+
superQueryButtonRef: O,
|
|
114
|
+
superQueryStatus: Z,
|
|
115
|
+
handleSuperQuery: ee,
|
|
116
|
+
onlineExtConfigJson: q,
|
|
117
|
+
handleFormConfig: oe,
|
|
118
|
+
registerCustomModal: te,
|
|
119
|
+
tableReloading: E
|
|
120
|
+
} = po();
|
|
121
|
+
if (!y.value)
|
|
122
|
+
throw R.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
123
|
+
let { initCgEnhanceJs: ne } = go(_);
|
|
124
|
+
const {
|
|
125
|
+
buttonSwitch: k,
|
|
126
|
+
cgBIBtnMap: i,
|
|
127
|
+
getQueryButtonCfg: re,
|
|
128
|
+
getResetButtonCfg: ae,
|
|
129
|
+
getFormConfirmButtonCfg: ie,
|
|
130
|
+
cgTopButtonList: L,
|
|
131
|
+
importUrl: le,
|
|
132
|
+
registerModal: se,
|
|
133
|
+
handleAdd: ce,
|
|
134
|
+
handleBatchDelete: ue,
|
|
135
|
+
registerImportModal: pe,
|
|
136
|
+
onImportExcel: de,
|
|
137
|
+
onExportExcel: me,
|
|
138
|
+
cgButtonJsHandler: ge,
|
|
139
|
+
cgButtonActionHandler: fe,
|
|
140
|
+
getDropDownActions: be,
|
|
141
|
+
getActions: ye,
|
|
142
|
+
initButtonList: _e,
|
|
143
|
+
initButtonSwitch: Ce,
|
|
144
|
+
registerDetailModal: he,
|
|
145
|
+
registerBpmModal: Mo
|
|
146
|
+
} = mo(_, q), N = P(!1);
|
|
147
|
+
function Ie() {
|
|
148
|
+
return x(this, null, function* () {
|
|
149
|
+
try {
|
|
150
|
+
N.value = !0, yield me();
|
|
151
|
+
} finally {
|
|
152
|
+
setTimeout(() => N.value = !1, 1500);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
const {
|
|
157
|
+
columns: ke,
|
|
158
|
+
actionColumn: Se,
|
|
159
|
+
selectedKeys: ve,
|
|
160
|
+
rowSelection: Te,
|
|
161
|
+
enableScrollBar: we,
|
|
162
|
+
tableScroll: Re,
|
|
163
|
+
downloadRowFile: Be,
|
|
164
|
+
getImgView: xe,
|
|
165
|
+
getPcaText: A,
|
|
166
|
+
getFormatDate: Me,
|
|
167
|
+
handleColumnResult: Oe,
|
|
168
|
+
hrefComponent: B,
|
|
169
|
+
viewOnlineCellImage: Ee,
|
|
170
|
+
hrefMainTableId: Le,
|
|
171
|
+
registerOnlineHrefModal: Ne,
|
|
172
|
+
registerPopModal: De,
|
|
173
|
+
openPopModal: Pe,
|
|
174
|
+
onlinePopModalRef: Fe,
|
|
175
|
+
popTableId: K,
|
|
176
|
+
handleClickFieldHref: He
|
|
177
|
+
} = fo(_, q);
|
|
178
|
+
Xe(
|
|
179
|
+
y,
|
|
180
|
+
() => {
|
|
181
|
+
Qe();
|
|
182
|
+
},
|
|
183
|
+
{ immediate: !0 }
|
|
184
|
+
);
|
|
185
|
+
function Qe() {
|
|
186
|
+
return x(this, null, function* () {
|
|
187
|
+
p.value = !0;
|
|
188
|
+
let t = yield G(ko);
|
|
189
|
+
qe(t), yield Y(), p.value = !1, _.execButtonEnhance("setup");
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
function qe(t) {
|
|
193
|
+
let l = ne(t.enhanceJs);
|
|
194
|
+
_.EnhanceJS = l, _e(t.cgButtonList), Ce(t.hideColumns), Oe(t), W(t);
|
|
195
|
+
}
|
|
196
|
+
function Ae(t) {
|
|
197
|
+
_.queryParam = t, g({ mode: "search" });
|
|
198
|
+
}
|
|
199
|
+
function Ke(t) {
|
|
200
|
+
return x(this, null, function* () {
|
|
201
|
+
yield yo(O), O.value.init(t);
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
function Je(t) {
|
|
205
|
+
K.value = t.id;
|
|
206
|
+
let l = {
|
|
207
|
+
title: t.describe
|
|
208
|
+
};
|
|
209
|
+
t.record && t.record.id && (l.record = t.record, l.isUpdate = !0), Pe(!0, l);
|
|
210
|
+
}
|
|
211
|
+
ho(Je);
|
|
212
|
+
const $e = (t) => {
|
|
213
|
+
oe(t);
|
|
214
|
+
const { schema: l } = t, { properties: D } = l, d = [];
|
|
215
|
+
Object.entries(D).forEach(([T, C]) => {
|
|
216
|
+
C.view == "tab" && d.push({ tableName: T, tableTxt: C.describe, id: C.id, order: C.order });
|
|
217
|
+
}), d.sort((T, C) => T.order - C.order), m.tabNav = d;
|
|
218
|
+
}, ze = (t, l) => {
|
|
219
|
+
c.value = [], t && (c.value = [l.id], M.value = l);
|
|
220
|
+
}, je = (t) => {
|
|
221
|
+
g(t), Ve();
|
|
222
|
+
}, Ve = () => {
|
|
223
|
+
if (c.value.length) {
|
|
224
|
+
const t = m.tabIndex;
|
|
225
|
+
m.tabIndex = "-1", ro(() => {
|
|
226
|
+
m.tabIndex = t;
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
return (t, l) => {
|
|
231
|
+
const D = w("a-skeleton"), d = w("a-button"), T = w("a-tab-pane"), C = w("a-tabs"), Ue = w("a-modal");
|
|
232
|
+
return n(), f("div", So, [
|
|
233
|
+
e(E) ? (n(), s(D, {
|
|
234
|
+
key: 0,
|
|
235
|
+
active: ""
|
|
236
|
+
})) : u("", !0),
|
|
237
|
+
J(b(_o, {
|
|
238
|
+
ref_key: "onlineQueryFormOuter",
|
|
239
|
+
ref: v,
|
|
240
|
+
id: e(y),
|
|
241
|
+
queryBtnCfg: e(re),
|
|
242
|
+
resetBtnCfg: e(ae),
|
|
243
|
+
onSearch: Ae,
|
|
244
|
+
onLoaded: Ke
|
|
245
|
+
}, null, 8, ["id", "queryBtnCfg", "resetBtnCfg"]), [
|
|
246
|
+
[$, !e(E)]
|
|
247
|
+
]),
|
|
248
|
+
e(E) ? u("", !0) : (n(), s(e(ao), {
|
|
249
|
+
key: 1,
|
|
250
|
+
ref: "onlineTable",
|
|
251
|
+
rowKey: "jeecg_row_key",
|
|
252
|
+
canResize: !0,
|
|
253
|
+
bordered: !0,
|
|
254
|
+
showIndexColumn: !1,
|
|
255
|
+
loading: e(p),
|
|
256
|
+
columns: e(ke),
|
|
257
|
+
dataSource: e(V),
|
|
258
|
+
pagination: e(U),
|
|
259
|
+
rowSelection: e(Te),
|
|
260
|
+
actionColumn: e(Se),
|
|
261
|
+
showTableSetting: !0,
|
|
262
|
+
clickToRowSelect: !1,
|
|
263
|
+
scroll: e(Re),
|
|
264
|
+
onTableRedo: e(g),
|
|
265
|
+
class: Ye({ "j-table-force-nowrap": e(we) }),
|
|
266
|
+
onChange: e(X),
|
|
267
|
+
expandedRowKeys: c.value,
|
|
268
|
+
onExpand: ze
|
|
269
|
+
}, {
|
|
270
|
+
tableTitle: r(() => [
|
|
271
|
+
e(k).add && e(i).add.enabled ? (n(), s(d, {
|
|
272
|
+
key: 0,
|
|
273
|
+
type: "primary",
|
|
274
|
+
preIcon: e(i).add.buttonIcon,
|
|
275
|
+
onClick: e(ce)
|
|
276
|
+
}, {
|
|
277
|
+
default: r(() => [
|
|
278
|
+
S("span", null, I(e(i).add.buttonName), 1)
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
}, 8, ["preIcon", "onClick"])) : u("", !0),
|
|
282
|
+
e(k).import && e(i).import.enabled ? (n(), s(d, {
|
|
283
|
+
key: 1,
|
|
284
|
+
type: "primary",
|
|
285
|
+
preIcon: e(i).import.buttonIcon,
|
|
286
|
+
onClick: e(de)
|
|
287
|
+
}, {
|
|
288
|
+
default: r(() => [
|
|
289
|
+
S("span", null, I(e(i).import.buttonName), 1)
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
}, 8, ["preIcon", "onClick"])) : u("", !0),
|
|
293
|
+
e(k).export && e(i).export.enabled ? (n(), s(d, {
|
|
294
|
+
key: 2,
|
|
295
|
+
type: "primary",
|
|
296
|
+
preIcon: e(i).export.buttonIcon,
|
|
297
|
+
loading: N.value,
|
|
298
|
+
onClick: Ie
|
|
299
|
+
}, {
|
|
300
|
+
default: r(() => [
|
|
301
|
+
S("span", null, I(e(i).export.buttonName), 1)
|
|
302
|
+
]),
|
|
303
|
+
_: 1
|
|
304
|
+
}, 8, ["preIcon", "loading"])) : u("", !0),
|
|
305
|
+
e(L) && e(L).length > 0 ? (n(!0), f(F, { key: 3 }, z(e(L), (o, a) => (n(), f(F, null, [
|
|
306
|
+
o.optType == "js" ? (n(), s(d, {
|
|
307
|
+
key: "cgbtn" + a,
|
|
308
|
+
onClick: (h) => e(ge)(o.buttonCode),
|
|
309
|
+
type: "primary",
|
|
310
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
311
|
+
}, {
|
|
312
|
+
default: r(() => [
|
|
313
|
+
H(I(o.buttonName), 1)
|
|
314
|
+
]),
|
|
315
|
+
_: 2
|
|
316
|
+
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (n(), s(d, {
|
|
317
|
+
key: "cgbtn" + a,
|
|
318
|
+
onClick: (h) => e(fe)(o.buttonCode),
|
|
319
|
+
type: "primary",
|
|
320
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
321
|
+
}, {
|
|
322
|
+
default: r(() => [
|
|
323
|
+
H(I(o.buttonName), 1)
|
|
324
|
+
]),
|
|
325
|
+
_: 2
|
|
326
|
+
}, 1032, ["onClick", "preIcon"])) : u("", !0)
|
|
327
|
+
], 64))), 256)) : u("", !0),
|
|
328
|
+
e(k).batch_delete && e(i).batch_delete.enabled ? J((n(), s(d, {
|
|
329
|
+
key: 4,
|
|
330
|
+
preIcon: e(i).batch_delete.buttonIcon,
|
|
331
|
+
onClick: e(ue)
|
|
332
|
+
}, {
|
|
333
|
+
default: r(() => [
|
|
334
|
+
S("span", null, I(e(i).batch_delete.buttonName), 1)
|
|
335
|
+
]),
|
|
336
|
+
_: 1
|
|
337
|
+
}, 8, ["preIcon", "onClick"])), [
|
|
338
|
+
[$, e(ve).length > 0]
|
|
339
|
+
]) : u("", !0),
|
|
340
|
+
e(k).super_query && e(i).super_query.enabled ? (n(), s(Co, {
|
|
341
|
+
key: 5,
|
|
342
|
+
ref_key: "superQueryButtonRef",
|
|
343
|
+
ref: O,
|
|
344
|
+
online: "",
|
|
345
|
+
status: e(Z),
|
|
346
|
+
queryBtnCfg: e(i).super_query,
|
|
347
|
+
onSearch: e(ee)
|
|
348
|
+
}, null, 8, ["status", "queryBtnCfg", "onSearch"])) : u("", !0)
|
|
349
|
+
]),
|
|
350
|
+
expandedRowRender: r(({ record: o }) => [
|
|
351
|
+
c.value[0] && o.id == c.value[0] ? (n(), s(C, {
|
|
352
|
+
key: 0,
|
|
353
|
+
activeKey: m.tabIndex,
|
|
354
|
+
"onUpdate:activeKey": l[0] || (l[0] = (a) => m.tabIndex = a)
|
|
355
|
+
}, {
|
|
356
|
+
default: r(() => [
|
|
357
|
+
c.value.length ? (n(!0), f(F, { key: 0 }, z(m.tabNav, (a, h) => (n(), s(T, {
|
|
358
|
+
tab: a.tableTxt,
|
|
359
|
+
key: h + ""
|
|
360
|
+
}, {
|
|
361
|
+
default: r(() => [
|
|
362
|
+
m.tabIndex == h ? (n(), s(Io, {
|
|
363
|
+
key: 0,
|
|
364
|
+
subTableId: a.id,
|
|
365
|
+
mTableSelectedRcordId: c.value[0],
|
|
366
|
+
subTableName: a.tableName
|
|
367
|
+
}, null, 8, ["subTableId", "mTableSelectedRcordId", "subTableName"])) : u("", !0)
|
|
368
|
+
]),
|
|
369
|
+
_: 2
|
|
370
|
+
}, 1032, ["tab"]))), 128)) : u("", !0)
|
|
371
|
+
]),
|
|
372
|
+
_: 1
|
|
373
|
+
}, 8, ["activeKey"])) : u("", !0)
|
|
374
|
+
]),
|
|
375
|
+
fileSlot: r(({ text: o, record: a, column: h }) => [
|
|
376
|
+
o ? (n(), s(d, {
|
|
377
|
+
key: 1,
|
|
378
|
+
ghost: !0,
|
|
379
|
+
type: "primary",
|
|
380
|
+
preIcon: "ant-design:download",
|
|
381
|
+
size: "small",
|
|
382
|
+
onClick: (We) => e(Be)(o, a, h, e(y))
|
|
383
|
+
}, {
|
|
384
|
+
default: r(() => l[1] || (l[1] = [
|
|
385
|
+
H(" 下载 ")
|
|
386
|
+
])),
|
|
387
|
+
_: 2
|
|
388
|
+
}, 1032, ["onClick"])) : (n(), f("span", vo, "无文件"))
|
|
389
|
+
]),
|
|
390
|
+
imgSlot: r(({ text: o }) => [
|
|
391
|
+
o ? (n(), f("img", {
|
|
392
|
+
key: 1,
|
|
393
|
+
src: e(xe)(o),
|
|
394
|
+
alt: "图片不存在",
|
|
395
|
+
class: "online-cell-image",
|
|
396
|
+
onClick: (a) => e(Ee)(o)
|
|
397
|
+
}, null, 8, wo)) : (n(), f("span", To, "无图片"))
|
|
398
|
+
]),
|
|
399
|
+
htmlSlot: r(({ text: o, column: a, record: h }) => [
|
|
400
|
+
a.fieldHref ? (n(), f("a", {
|
|
401
|
+
key: 0,
|
|
402
|
+
innerHTML: o,
|
|
403
|
+
onClick: (We) => e(He)(a.fieldHref, h)
|
|
404
|
+
}, null, 8, Ro)) : (n(), f("div", {
|
|
405
|
+
key: 1,
|
|
406
|
+
innerHTML: o
|
|
407
|
+
}, null, 8, Bo))
|
|
408
|
+
]),
|
|
409
|
+
pcaSlot: r(({ text: o }) => [
|
|
410
|
+
S("div", {
|
|
411
|
+
title: e(A)(o)
|
|
412
|
+
}, I(e(A)(o)), 9, xo)
|
|
413
|
+
]),
|
|
414
|
+
dateSlot: r(({ text: o, column: a }) => [
|
|
415
|
+
S("span", null, I(e(Me)(o, a)), 1)
|
|
416
|
+
]),
|
|
417
|
+
action: r(({ record: o }) => [
|
|
418
|
+
b(e(io), {
|
|
419
|
+
actions: e(ye)(o),
|
|
420
|
+
dropDownActions: e(be)(o)
|
|
421
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
422
|
+
]),
|
|
423
|
+
_: 1
|
|
424
|
+
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange", "expandedRowKeys"])),
|
|
425
|
+
b(so, {
|
|
426
|
+
onRegister: e(se),
|
|
427
|
+
id: e(y),
|
|
428
|
+
cgBIBtnMap: e(i),
|
|
429
|
+
buttonSwitch: e(k),
|
|
430
|
+
confirmBtnCfg: e(ie),
|
|
431
|
+
onSuccess: je,
|
|
432
|
+
onFormConfig: $e
|
|
433
|
+
}, null, 8, ["onRegister", "id", "cgBIBtnMap", "buttonSwitch", "confirmBtnCfg"]),
|
|
434
|
+
b(j, {
|
|
435
|
+
id: e(y),
|
|
436
|
+
onRegister: e(he)
|
|
437
|
+
}, null, 8, ["id", "onRegister"]),
|
|
438
|
+
b(uo, {
|
|
439
|
+
onRegister: e(pe),
|
|
440
|
+
url: e(le)(),
|
|
441
|
+
onOk: e(g),
|
|
442
|
+
online: ""
|
|
443
|
+
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
444
|
+
b(Ue, Ze(e(B).model, eo(e(B).on)), {
|
|
445
|
+
default: r(() => [
|
|
446
|
+
(n(), s(oo(e(B).is), to(no(e(B).params)), null, 16))
|
|
447
|
+
]),
|
|
448
|
+
_: 1
|
|
449
|
+
}, 16),
|
|
450
|
+
b(co, {
|
|
451
|
+
onRegister: e(te),
|
|
452
|
+
onSuccess: e(g)
|
|
453
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
454
|
+
b(j, {
|
|
455
|
+
id: e(Le),
|
|
456
|
+
onRegister: e(Ne),
|
|
457
|
+
defaultFullscreen: !1
|
|
458
|
+
}, null, 8, ["id", "onRegister"]),
|
|
459
|
+
b(bo, {
|
|
460
|
+
ref_key: "onlinePopModalRef",
|
|
461
|
+
ref: Fe,
|
|
462
|
+
id: e(K),
|
|
463
|
+
onRegister: e(De),
|
|
464
|
+
onSuccess: e(g),
|
|
465
|
+
request: "",
|
|
466
|
+
topTip: ""
|
|
467
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
468
|
+
]);
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
export {
|
|
473
|
+
Gt as default
|
|
474
|
+
};
|