@jeecg/online 3.7.0-beta → 3.7.1-RC
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/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
- package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
- package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
- package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
- package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
- package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
- package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
- package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
- package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
- package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
- package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
- package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
- package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
- package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
- package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
- package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
- package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
- package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
- package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
- package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
- package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
- package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
- package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
- package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
- package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
- package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
- package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
- package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
- package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
- package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
- package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
- package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
- package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
- package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
- package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
- package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
- package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
- package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
- package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
- package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
- package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
- package/index-1d1a6e56.mjs +57 -0
- package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
- package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
- package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-d50a0a65.mjs +0 -134
- package/AuthFieldConfig-490fc0ab.mjs +0 -139
- package/CgformModal-36faf29a.mjs +0 -621
- package/CodeGeneratorModal-b722d976.mjs +0 -238
- package/DbToOnlineModal-f49b9530.mjs +0 -166
- package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
- package/OnlineForm-018981b2.mjs +0 -924
- package/OnlineQueryForm-998c12a4.mjs +0 -444
- package/SuperQuery-cbfba908.mjs +0 -975
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/index-173949bb.mjs +0 -57
- package/useExtendComponent-bb7cca20.mjs +0 -4295
- 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_4657b304_lang-4ed993c7.mjs} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var L = (_, I, r) => new Promise((
|
|
2
|
-
var
|
|
1
|
+
var L = (_, I, r) => new Promise((p, v) => {
|
|
2
|
+
var E = (c) => {
|
|
3
3
|
try {
|
|
4
4
|
i(r.next(c));
|
|
5
|
-
} catch (
|
|
6
|
-
v(
|
|
5
|
+
} catch (m) {
|
|
6
|
+
v(m);
|
|
7
7
|
}
|
|
8
8
|
}, C = (c) => {
|
|
9
9
|
try {
|
|
10
10
|
i(r.throw(c));
|
|
11
|
-
} catch (
|
|
12
|
-
v(
|
|
11
|
+
} catch (m) {
|
|
12
|
+
v(m);
|
|
13
13
|
}
|
|
14
|
-
}, i = (c) => c.done ?
|
|
14
|
+
}, i = (c) => c.done ? p(c.value) : Promise.resolve(c.value).then(E, C);
|
|
15
15
|
i((r = r.apply(_, I)).next());
|
|
16
16
|
});
|
|
17
|
-
import { ref as F, provide as
|
|
18
|
-
import { BasicTable as
|
|
19
|
-
import { useMessage as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import j from "./OnlineDetailModal-
|
|
23
|
-
import
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
26
|
-
import
|
|
27
|
-
import { u as
|
|
28
|
-
import { E as
|
|
29
|
-
import { cloneDeep as
|
|
17
|
+
import { ref as F, provide as Ae, watch as J, resolveComponent as z, openBlock as n, createElementBlock as g, Fragment as P, createBlock as d, unref as e, createCommentVNode as f, normalizeClass as Ke, withCtx as l, createTextVNode as h, renderList as Ne, toDisplayString as M, withDirectives as $e, vShow as Je, createElementVNode as V, createVNode as y, mergeProps as ze, toHandlers as Ve, resolveDynamicComponent as je, normalizeProps as qe, guardReactiveProps as Qe } from "vue";
|
|
18
|
+
import { BasicTable as Ue, TableAction as We } from "/@/components/Table";
|
|
19
|
+
import { useMessage as Ge } from "/@/hooks/web/useMessage";
|
|
20
|
+
import Xe from "./OnlineAutoModal-c2928847.mjs";
|
|
21
|
+
import Ye from "./OnlineCustomModal-9e17b6ce.mjs";
|
|
22
|
+
import j from "./OnlineDetailModal-d5895734.mjs";
|
|
23
|
+
import Ze from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as eo, a as oo } from "./useListButton-bfac4ecf.mjs";
|
|
25
|
+
import { u as to, a as no, O as io } from "./useExtendComponent-dcae5c78.mjs";
|
|
26
|
+
import lo from "./OnlineQueryForm-eedb9a60.mjs";
|
|
27
|
+
import { u as ro } from "./useOnlinePopEvent-687070b7.mjs";
|
|
28
|
+
import { E as ao, a as q } from "./constant-fa63bd66.mjs";
|
|
29
|
+
import { cloneDeep as co } from "lodash-es";
|
|
30
30
|
import "/@/components/Modal";
|
|
31
|
-
import "./OnlineForm-
|
|
31
|
+
import "./OnlineForm-9f1153ba.mjs";
|
|
32
32
|
import "/@/components/Form/index";
|
|
33
33
|
import "/@/utils/http/axios";
|
|
34
34
|
import "/@/utils";
|
|
@@ -44,13 +44,14 @@ import "/@/utils/common/compUtils";
|
|
|
44
44
|
import "/@/store/modules/user";
|
|
45
45
|
import "/@/hooks/web/useAppInject";
|
|
46
46
|
import "/@/utils/is";
|
|
47
|
-
import "
|
|
48
|
-
import "./
|
|
47
|
+
import "/@/store/modules/permission";
|
|
48
|
+
import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
|
|
49
|
+
import "./index-1d1a6e56.mjs";
|
|
49
50
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
50
51
|
import "vue-router";
|
|
51
52
|
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
52
|
-
import "./OnlineFormDetail-
|
|
53
|
-
import "./DetailForm-
|
|
53
|
+
import "./OnlineFormDetail-022ca117.mjs";
|
|
54
|
+
import "./DetailForm-deecbf3d.mjs";
|
|
54
55
|
import "/@/utils/propTypes";
|
|
55
56
|
import "/@/utils/dict";
|
|
56
57
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -59,7 +60,7 @@ import "/@/api/common/api";
|
|
|
59
60
|
import "/@/components/Form/src/utils/Area";
|
|
60
61
|
import "/@/components/Preview/index";
|
|
61
62
|
import "/@/components/Markdown";
|
|
62
|
-
import "./OnlineSubFormDetail-
|
|
63
|
+
import "./OnlineSubFormDetail-58e896ce.mjs";
|
|
63
64
|
import "/@/router";
|
|
64
65
|
import "/@/hooks/core/onMountedOrActivated";
|
|
65
66
|
import "/@/store/modules/multipleTab";
|
|
@@ -72,70 +73,69 @@ import "/@/components/Form/src/componentMap";
|
|
|
72
73
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
73
74
|
import "/@/views/system/user/user.api";
|
|
74
75
|
import "/@/utils/desform/customExpression";
|
|
75
|
-
import "/@/store/modules/permission";
|
|
76
76
|
import "/@/hooks/system/useListPage";
|
|
77
|
-
import "./LinkTableListPiece-
|
|
77
|
+
import "./LinkTableListPiece-f3a8e0d7.mjs";
|
|
78
78
|
import "/@/assets/images/placeholderImage.png";
|
|
79
|
-
import "./OnlineSelectCascade-
|
|
80
|
-
import "./JModalTip-
|
|
79
|
+
import "./OnlineSelectCascade-05c40fef.mjs";
|
|
80
|
+
import "./JModalTip-b055ab60.mjs";
|
|
81
81
|
import "@vueuse/core";
|
|
82
82
|
import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
83
|
-
const
|
|
83
|
+
const so = {
|
|
84
84
|
key: 0,
|
|
85
85
|
style: { "font-size": "12px", "font-style": "italic" }
|
|
86
|
-
},
|
|
86
|
+
}, uo = {
|
|
87
87
|
key: 0,
|
|
88
88
|
style: { "font-size": "12px", "font-style": "italic" }
|
|
89
|
-
},
|
|
89
|
+
}, po = ["src", "onClick"], mo = ["innerHTML", "onClick"], go = ["innerHTML"], fo = ["title"], xt = {
|
|
90
90
|
__name: "OnlCgformErpSubTable",
|
|
91
91
|
props: ["data", "mainTableSelectedRowRcord"],
|
|
92
92
|
emits: ["getSource"],
|
|
93
93
|
setup(_, { emit: I }) {
|
|
94
|
-
const r = _,
|
|
94
|
+
const r = _, p = F(!1), v = {
|
|
95
95
|
cacheKey: `online_erp_subTable_${r.data.currentTableName}`
|
|
96
|
-
}, { createMessage:
|
|
96
|
+
}, { createMessage: E } = Ge(), {
|
|
97
97
|
ID: C,
|
|
98
98
|
onlineTableContext: i,
|
|
99
99
|
onlineQueryFormOuter: c,
|
|
100
|
-
loading:
|
|
100
|
+
loading: m,
|
|
101
101
|
reload: b,
|
|
102
102
|
dataSource: k,
|
|
103
|
-
pagination:
|
|
103
|
+
pagination: x,
|
|
104
104
|
handleSpecialConfig: Q,
|
|
105
|
-
getColumnList:
|
|
105
|
+
getColumnList: yo,
|
|
106
106
|
handleChangeInTable: U,
|
|
107
|
-
loadData:
|
|
108
|
-
onlineExtConfigJson:
|
|
109
|
-
handleFormConfig:
|
|
107
|
+
loadData: W,
|
|
108
|
+
onlineExtConfigJson: D,
|
|
109
|
+
handleFormConfig: G,
|
|
110
110
|
registerCustomModal: X,
|
|
111
111
|
tableReloading: Y
|
|
112
|
-
} =
|
|
112
|
+
} = eo({ code: r.data.code, themeTemplate: ao });
|
|
113
113
|
i.isErpSubTable = !0;
|
|
114
|
-
let { initCgEnhanceJs: Z } =
|
|
114
|
+
let { initCgEnhanceJs: Z } = to(i);
|
|
115
115
|
const {
|
|
116
116
|
buttonSwitch: T,
|
|
117
|
-
cgLinkButtonList:
|
|
118
|
-
cgTopButtonList:
|
|
117
|
+
cgLinkButtonList: ho,
|
|
118
|
+
cgTopButtonList: B,
|
|
119
119
|
importUrl: ee,
|
|
120
120
|
registerModal: oe,
|
|
121
121
|
handleAdd: te,
|
|
122
|
-
handleEdit:
|
|
122
|
+
handleEdit: Co,
|
|
123
123
|
handleBatchDelete: ne,
|
|
124
124
|
registerImportModal: ie,
|
|
125
125
|
onImportExcel: le,
|
|
126
126
|
onExportExcel: re,
|
|
127
127
|
cgButtonJsHandler: ae,
|
|
128
128
|
cgButtonActionHandler: ce,
|
|
129
|
-
cgButtonLinkHandler:
|
|
130
|
-
handleSubmitFlow:
|
|
129
|
+
cgButtonLinkHandler: bo,
|
|
130
|
+
handleSubmitFlow: ko,
|
|
131
131
|
getDropDownActions: se,
|
|
132
132
|
getActions: ue,
|
|
133
133
|
initButtonList: de,
|
|
134
134
|
initButtonSwitch: pe,
|
|
135
135
|
registerDetailModal: me,
|
|
136
|
-
registerBpmModal:
|
|
137
|
-
} =
|
|
138
|
-
function
|
|
136
|
+
registerBpmModal: So
|
|
137
|
+
} = oo(i, D), O = F(!1);
|
|
138
|
+
function ge() {
|
|
139
139
|
return L(this, null, function* () {
|
|
140
140
|
try {
|
|
141
141
|
O.value = !0, yield re();
|
|
@@ -145,128 +145,128 @@ const po = {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
const {
|
|
148
|
-
columns:
|
|
149
|
-
actionColumn:
|
|
150
|
-
selectedKeys:
|
|
151
|
-
rowSelection:
|
|
152
|
-
enableScrollBar:
|
|
153
|
-
tableScroll:
|
|
154
|
-
downloadRowFile:
|
|
155
|
-
getImgView:
|
|
156
|
-
getPcaText:
|
|
157
|
-
getFormatDate:
|
|
158
|
-
handleColumnResult:
|
|
148
|
+
columns: fe,
|
|
149
|
+
actionColumn: ye,
|
|
150
|
+
selectedKeys: H,
|
|
151
|
+
rowSelection: he,
|
|
152
|
+
enableScrollBar: Ce,
|
|
153
|
+
tableScroll: be,
|
|
154
|
+
downloadRowFile: ke,
|
|
155
|
+
getImgView: Se,
|
|
156
|
+
getPcaText: A,
|
|
157
|
+
getFormatDate: _e,
|
|
158
|
+
handleColumnResult: ve,
|
|
159
159
|
hrefComponent: R,
|
|
160
|
-
viewOnlineCellImage:
|
|
161
|
-
hrefMainTableId:
|
|
162
|
-
registerOnlineHrefModal:
|
|
163
|
-
registerPopModal:
|
|
164
|
-
openPopModal:
|
|
160
|
+
viewOnlineCellImage: Te,
|
|
161
|
+
hrefMainTableId: Re,
|
|
162
|
+
registerOnlineHrefModal: we,
|
|
163
|
+
registerPopModal: Me,
|
|
164
|
+
openPopModal: Ie,
|
|
165
165
|
onlinePopModalRef: Ee,
|
|
166
|
-
popTableId:
|
|
167
|
-
handleClickFieldHref:
|
|
168
|
-
} =
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
let
|
|
166
|
+
popTableId: K,
|
|
167
|
+
handleClickFieldHref: Be
|
|
168
|
+
} = no(i, D);
|
|
169
|
+
Oe(co(r.data));
|
|
170
|
+
const N = F(null), w = r.data.foreignKeys;
|
|
171
|
+
let $;
|
|
172
172
|
if (w != null && w.length) {
|
|
173
173
|
const t = w[0], a = t.field;
|
|
174
|
-
|
|
174
|
+
$ = t.key, i.foreignKeyField = a;
|
|
175
175
|
} else
|
|
176
176
|
i.foreignKeyField = null, i.foreignKeyValue = null;
|
|
177
|
-
|
|
177
|
+
Ae("foreignkey", N), J(
|
|
178
178
|
() => r.mainTableSelectedRowRcord,
|
|
179
179
|
(t) => {
|
|
180
180
|
var a;
|
|
181
|
-
if (
|
|
181
|
+
if (x.value.current = 1, H.value = [], (a = c.value) == null || a.clearSearch(), t) {
|
|
182
182
|
if (i.foreignKeyField) {
|
|
183
|
-
const s = t[
|
|
184
|
-
i.foreignKeyValue = s,
|
|
183
|
+
const s = t[$];
|
|
184
|
+
i.foreignKeyValue = s, N.value = { field: i.foreignKeyField, value: s };
|
|
185
185
|
}
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
p.value = !0, m.value = !0, W().finally(() => {
|
|
187
|
+
m.value = !1;
|
|
188
188
|
});
|
|
189
189
|
} else
|
|
190
|
-
|
|
190
|
+
p.value = !1, k.value = [];
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
immediate: !0
|
|
194
194
|
}
|
|
195
|
-
),
|
|
195
|
+
), J(
|
|
196
196
|
() => k.value,
|
|
197
197
|
() => {
|
|
198
198
|
I("getSource", r.data.currentTableName, k.value);
|
|
199
199
|
},
|
|
200
200
|
{ immediate: !0 }
|
|
201
201
|
);
|
|
202
|
-
function
|
|
202
|
+
function Oe(t) {
|
|
203
203
|
return L(this, null, function* () {
|
|
204
|
-
|
|
204
|
+
Le(t), m.value = !1, i.execButtonEnhance("setup");
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Le(t) {
|
|
208
208
|
let a = Z(t.enhanceJs);
|
|
209
|
-
i.EnhanceJS = a, de(t.cgButtonList), pe(t.hideColumns),
|
|
209
|
+
i.EnhanceJS = a, de(t.cgButtonList), pe(t.hideColumns), ve(t), Q(t);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Fe(t) {
|
|
212
212
|
i.queryParam = t, b({ mode: "search" });
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
|
|
214
|
+
function Pe(t) {
|
|
215
|
+
K.value = t.id;
|
|
216
216
|
let a = {
|
|
217
217
|
title: t.describe
|
|
218
218
|
};
|
|
219
|
-
t.record && t.record.id && (a.record = t.record, a.isUpdate = !0),
|
|
219
|
+
t.record && t.record.id && (a.record = t.record, a.isUpdate = !0), Ie(!0, a);
|
|
220
220
|
}
|
|
221
|
-
|
|
222
|
-
const
|
|
223
|
-
r.data.relationType == 1 && k.value.length ?
|
|
221
|
+
ro(Pe);
|
|
222
|
+
const xe = () => {
|
|
223
|
+
r.data.relationType == 1 && k.value.length ? E.warning("一对一的表只能新增一条数据") : te();
|
|
224
224
|
};
|
|
225
225
|
return (t, a) => {
|
|
226
|
-
const s =
|
|
227
|
-
return n(),
|
|
228
|
-
_.mainTableSelectedRowRcord ? (n(), d(
|
|
226
|
+
const s = z("a-button"), De = z("a-modal");
|
|
227
|
+
return n(), g(P, null, [
|
|
228
|
+
_.mainTableSelectedRowRcord ? (n(), d(lo, {
|
|
229
229
|
key: 0,
|
|
230
230
|
ref_key: "onlineQueryFormOuter",
|
|
231
231
|
ref: c,
|
|
232
232
|
id: e(C),
|
|
233
|
-
onSearch:
|
|
234
|
-
}, null, 8, ["id"])) :
|
|
235
|
-
e(Y) ?
|
|
233
|
+
onSearch: Fe
|
|
234
|
+
}, null, 8, ["id"])) : f("", !0),
|
|
235
|
+
e(Y) ? f("", !0) : (n(), d(e(Ue), {
|
|
236
236
|
key: 1,
|
|
237
237
|
ref: "onlineTable",
|
|
238
238
|
rowKey: "jeecg_row_key",
|
|
239
239
|
canResize: !0,
|
|
240
240
|
bordered: !0,
|
|
241
241
|
showIndexColumn: !1,
|
|
242
|
-
loading: e(
|
|
243
|
-
columns: e(
|
|
242
|
+
loading: e(m),
|
|
243
|
+
columns: e(fe),
|
|
244
244
|
dataSource: e(k),
|
|
245
|
-
pagination: e(
|
|
246
|
-
rowSelection: e(
|
|
247
|
-
actionColumn: e(
|
|
245
|
+
pagination: e(x),
|
|
246
|
+
rowSelection: e(he),
|
|
247
|
+
actionColumn: e(ye),
|
|
248
248
|
showTableSetting: !0,
|
|
249
249
|
clickToRowSelect: !1,
|
|
250
|
-
scroll: e(
|
|
250
|
+
scroll: e(be),
|
|
251
251
|
onTableRedo: e(b),
|
|
252
|
-
class:
|
|
252
|
+
class: Ke({ "j-table-force-nowrap": e(Ce) }),
|
|
253
253
|
tableSetting: v,
|
|
254
254
|
onChange: e(U),
|
|
255
255
|
minHeight: 300
|
|
256
256
|
}, {
|
|
257
257
|
tableTitle: l(() => [
|
|
258
|
-
|
|
258
|
+
p.value && e(T).add ? (n(), d(s, {
|
|
259
259
|
key: 0,
|
|
260
260
|
preIcon: "ant-design:plus-outlined",
|
|
261
261
|
type: "primary",
|
|
262
|
-
onClick:
|
|
262
|
+
onClick: xe
|
|
263
263
|
}, {
|
|
264
264
|
default: l(() => [
|
|
265
265
|
h("新增")
|
|
266
266
|
]),
|
|
267
267
|
_: 1
|
|
268
|
-
})) :
|
|
269
|
-
|
|
268
|
+
})) : f("", !0),
|
|
269
|
+
p.value && e(T).import ? (n(), d(s, {
|
|
270
270
|
key: 1,
|
|
271
271
|
preIcon: "ant-design:import-outlined",
|
|
272
272
|
type: "primary",
|
|
@@ -276,20 +276,20 @@ const po = {
|
|
|
276
276
|
h("导入")
|
|
277
277
|
]),
|
|
278
278
|
_: 1
|
|
279
|
-
}, 8, ["onClick"])) :
|
|
280
|
-
|
|
279
|
+
}, 8, ["onClick"])) : f("", !0),
|
|
280
|
+
p.value && e(T).export ? (n(), d(s, {
|
|
281
281
|
key: 2,
|
|
282
282
|
preIcon: "ant-design:export-outlined",
|
|
283
283
|
type: "primary",
|
|
284
284
|
loading: O.value,
|
|
285
|
-
onClick:
|
|
285
|
+
onClick: ge
|
|
286
286
|
}, {
|
|
287
287
|
default: l(() => [
|
|
288
288
|
h(" 导出")
|
|
289
289
|
]),
|
|
290
290
|
_: 1
|
|
291
|
-
}, 8, ["loading"])) :
|
|
292
|
-
|
|
291
|
+
}, 8, ["loading"])) : f("", !0),
|
|
292
|
+
p.value && e(B) && e(B).length > 0 ? (n(!0), g(P, { key: 3 }, Ne(e(B), (o, u) => (n(), g(P, null, [
|
|
293
293
|
o.optType == "js" ? (n(), d(s, {
|
|
294
294
|
key: "cgbtn" + u,
|
|
295
295
|
onClick: (S) => e(ae)(o.buttonCode),
|
|
@@ -310,9 +310,9 @@ const po = {
|
|
|
310
310
|
h(M(o.buttonName), 1)
|
|
311
311
|
]),
|
|
312
312
|
_: 2
|
|
313
|
-
}, 1032, ["onClick", "preIcon"])) :
|
|
314
|
-
], 64))), 256)) :
|
|
315
|
-
e(T).batch_delete ?
|
|
313
|
+
}, 1032, ["onClick", "preIcon"])) : f("", !0)
|
|
314
|
+
], 64))), 256)) : f("", !0),
|
|
315
|
+
e(T).batch_delete ? $e((n(), d(s, {
|
|
316
316
|
key: 4,
|
|
317
317
|
preIcon: "ant-design:delete-outlined",
|
|
318
318
|
onClick: e(ne)
|
|
@@ -322,8 +322,8 @@ const po = {
|
|
|
322
322
|
]),
|
|
323
323
|
_: 1
|
|
324
324
|
}, 8, ["onClick"])), [
|
|
325
|
-
[
|
|
326
|
-
]) :
|
|
325
|
+
[Je, e(H).length > 0]
|
|
326
|
+
]) : f("", !0)
|
|
327
327
|
]),
|
|
328
328
|
fileSlot: l(({ text: o, record: u, column: S }) => [
|
|
329
329
|
o ? (n(), d(s, {
|
|
@@ -332,96 +332,95 @@ const po = {
|
|
|
332
332
|
type: "primary",
|
|
333
333
|
preIcon: "ant-design:download",
|
|
334
334
|
size: "small",
|
|
335
|
-
onClick: (
|
|
335
|
+
onClick: (He) => e(ke)(o, u, S, e(C))
|
|
336
336
|
}, {
|
|
337
337
|
default: l(() => [
|
|
338
338
|
h(" 下载 ")
|
|
339
339
|
]),
|
|
340
340
|
_: 2
|
|
341
|
-
}, 1032, ["onClick"])) : (n(),
|
|
341
|
+
}, 1032, ["onClick"])) : (n(), g("span", so, "无文件"))
|
|
342
342
|
]),
|
|
343
343
|
imgSlot: l(({ text: o }) => [
|
|
344
|
-
o ? (n(),
|
|
344
|
+
o ? (n(), g("img", {
|
|
345
345
|
key: 1,
|
|
346
|
-
src: e(
|
|
346
|
+
src: e(Se)(o),
|
|
347
347
|
alt: "图片不存在",
|
|
348
348
|
class: "online-cell-image",
|
|
349
|
-
onClick: (u) => e(
|
|
350
|
-
}, null, 8,
|
|
349
|
+
onClick: (u) => e(Te)(o)
|
|
350
|
+
}, null, 8, po)) : (n(), g("span", uo, "无图片"))
|
|
351
351
|
]),
|
|
352
352
|
htmlSlot: l(({ text: o, column: u, record: S }) => [
|
|
353
|
-
u.fieldHref ? (n(),
|
|
353
|
+
u.fieldHref ? (n(), g("a", {
|
|
354
354
|
key: 0,
|
|
355
355
|
innerHTML: o,
|
|
356
|
-
onClick: (
|
|
357
|
-
}, null, 8,
|
|
356
|
+
onClick: (He) => e(Be)(u.fieldHref, S)
|
|
357
|
+
}, null, 8, mo)) : (n(), g("div", {
|
|
358
358
|
key: 1,
|
|
359
359
|
innerHTML: o
|
|
360
|
-
}, null, 8,
|
|
360
|
+
}, null, 8, go))
|
|
361
361
|
]),
|
|
362
362
|
pcaSlot: l(({ text: o }) => [
|
|
363
363
|
V("div", {
|
|
364
|
-
title: e(
|
|
365
|
-
}, M(e(
|
|
364
|
+
title: e(A)(o)
|
|
365
|
+
}, M(e(A)(o)), 9, fo)
|
|
366
366
|
]),
|
|
367
367
|
dateSlot: l(({ text: o, column: u }) => [
|
|
368
|
-
V("span", null, M(e(
|
|
368
|
+
V("span", null, M(e(_e)(o, u)), 1)
|
|
369
369
|
]),
|
|
370
370
|
action: l(({ record: o }) => [
|
|
371
|
-
|
|
371
|
+
y(e(We), {
|
|
372
372
|
actions: e(ue)(o),
|
|
373
373
|
dropDownActions: e(se)(o)
|
|
374
374
|
}, null, 8, ["actions", "dropDownActions"])
|
|
375
375
|
]),
|
|
376
376
|
_: 1
|
|
377
377
|
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
378
|
-
|
|
378
|
+
y(Xe, {
|
|
379
379
|
source: e(q),
|
|
380
380
|
id: e(C),
|
|
381
381
|
onRegister: e(oe),
|
|
382
382
|
onSuccess: e(b),
|
|
383
|
-
onFormConfig: e(
|
|
383
|
+
onFormConfig: e(G)
|
|
384
384
|
}, null, 8, ["source", "id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
385
|
-
|
|
385
|
+
y(j, {
|
|
386
386
|
source: e(q),
|
|
387
387
|
id: e(C),
|
|
388
388
|
onRegister: e(me)
|
|
389
389
|
}, null, 8, ["source", "id", "onRegister"]),
|
|
390
|
-
|
|
390
|
+
y(Ze, {
|
|
391
391
|
onRegister: e(ie),
|
|
392
392
|
url: e(ee)(),
|
|
393
393
|
onOk: e(b),
|
|
394
394
|
online: ""
|
|
395
395
|
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
396
|
-
|
|
396
|
+
y(De, ze(e(R).model, Ve(e(R).on)), {
|
|
397
397
|
default: l(() => [
|
|
398
|
-
(n(), d(
|
|
398
|
+
(n(), d(je(e(R).is), qe(Qe(e(R).params)), null, 16))
|
|
399
399
|
]),
|
|
400
400
|
_: 1
|
|
401
401
|
}, 16),
|
|
402
|
-
|
|
402
|
+
y(Ye, {
|
|
403
403
|
onRegister: e(X),
|
|
404
404
|
onSuccess: e(b)
|
|
405
405
|
}, null, 8, ["onRegister", "onSuccess"]),
|
|
406
|
-
|
|
407
|
-
id: e(
|
|
408
|
-
onRegister: e(
|
|
406
|
+
y(j, {
|
|
407
|
+
id: e(Re),
|
|
408
|
+
onRegister: e(we),
|
|
409
409
|
defaultFullscreen: !1
|
|
410
410
|
}, null, 8, ["id", "onRegister"]),
|
|
411
|
-
|
|
411
|
+
y(io, {
|
|
412
412
|
ref_key: "onlinePopModalRef",
|
|
413
413
|
ref: Ee,
|
|
414
|
-
id: e(
|
|
415
|
-
onRegister: e(
|
|
414
|
+
id: e(K),
|
|
415
|
+
onRegister: e(Me),
|
|
416
416
|
onSuccess: e(b),
|
|
417
417
|
request: "",
|
|
418
418
|
topTip: ""
|
|
419
|
-
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
420
|
-
p(Ae, { onRegister: e(ge) }, null, 8, ["onRegister"])
|
|
419
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
421
420
|
], 64);
|
|
422
421
|
};
|
|
423
422
|
}
|
|
424
423
|
};
|
|
425
424
|
export {
|
|
426
|
-
|
|
425
|
+
xt as default
|
|
427
426
|
};
|