@jeecg/online 3.5.3-vite4 → 3.6.2-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/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
- package/CgformModal-eccfc38e.mjs +611 -0
- package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
- package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
- package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
- package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
- package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
- package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
- package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
- package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
- package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
- package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/EnhanceJsModal-05c73a59.mjs +311 -0
- package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
- package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
- package/FileSelectModal-9a02560b.mjs +103 -0
- package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
- package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
- package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
- package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
- package/LinkTableListPiece-8499a318.mjs +34 -0
- package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/OnlCgformErpList-db45e22b.mjs +454 -0
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
- package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
- package/OnlCgformTabList-a9e1e36a.mjs +395 -0
- package/OnlineAutoList-0583a910.mjs +479 -0
- package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
- package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
- package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
- package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
- package/OnlineForm-1fa2d893.mjs +750 -0
- package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
- package/OnlineQueryForm-1bfc8320.mjs +386 -0
- package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
- package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
- package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
- package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
- package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
- package/OnlineTabForm-512d3951.mjs +766 -0
- package/OnlineTabFormDetail-5a70219d.mjs +324 -0
- package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
- package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
- package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
- package/README.md +5 -2
- package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/constant-754f1a9d.mjs +9 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
- package/index-b7a05eef.mjs +1496 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-423282b7.mjs +400 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-325fe3f1.mjs +3926 -0
- package/useListButton-cdbab702.mjs +676 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
- package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
- package/CgformModal-6938d8c2.mjs +0 -613
- package/EnhanceJsModal-0b133341.mjs +0 -233
- package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
- package/FileSelectModal-64aaf623.mjs +0 -91
- package/JModalTip-abe1515a.mjs +0 -46
- package/LinkTableListPiece-34266919.mjs +0 -34
- package/OnlCgformErpList-7a0388d8.mjs +0 -425
- package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
- package/OnlineAutoList-85e6a30d.mjs +0 -472
- package/OnlineForm-630a22c2.mjs +0 -778
- package/OnlineQueryForm-1c5949a7.mjs +0 -378
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/constant-fe20103a.mjs +0 -6
- package/index-6a09a912.mjs +0 -58
- package/index-9d32ae88.mjs +0 -313
- package/useCgformList-2d6a5955.mjs +0 -388
- package/useExtendComponent-48d37d9b.mjs +0 -3919
- package/useListButton-cef1371a.mjs +0 -656
- package/useOnlinePopEvent-e9a042f8.mjs +0 -19
- package/useOnlineTest-0df0ae86.mjs +0 -43
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var B = (e, T, m) => new Promise((i, k) => {
|
|
2
2
|
var y = (s) => {
|
|
3
3
|
try {
|
|
4
4
|
r(m.next(s));
|
|
@@ -14,22 +14,22 @@ var I = (e, T, m) => new Promise((i, k) => {
|
|
|
14
14
|
}, r = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(y, c);
|
|
15
15
|
r((m = m.apply(e, T)).next());
|
|
16
16
|
});
|
|
17
|
-
import { BasicTable as
|
|
17
|
+
import { BasicTable as Je, TableAction as He } from "/@/components/Table";
|
|
18
18
|
import { useMessage as Ke } from "/@/hooks/web/useMessage";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { ref as
|
|
23
|
-
import
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
26
|
-
import { defHttp as
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import { _ as uo } from "./index-
|
|
19
|
+
import Pe from "./OnlineAutoModal-510991eb.mjs";
|
|
20
|
+
import qe from "./OnlineDetailModal-9675390d.mjs";
|
|
21
|
+
import Ne from "./OnlineCustomModal-518ad33c.mjs";
|
|
22
|
+
import { ref as K, watch as Ve, resolveComponent as d, openBlock as l, createElementBlock as S, createVNode as f, createBlock as p, normalizeClass as ze, withCtx as a, createTextVNode as C, createCommentVNode as g, Fragment as P, renderList as je, toDisplayString as E, withDirectives as Ue, vShow as We, createElementVNode as _, mergeProps as Ge, toHandlers as Xe, resolveDynamicComponent as Ye, normalizeProps as Ze, guardReactiveProps as xe } from "vue";
|
|
23
|
+
import eo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as oo, a as no } from "./useListButton-cdbab702.mjs";
|
|
25
|
+
import { u as to, a as io, g as lo } from "./useExtendComponent-325fe3f1.mjs";
|
|
26
|
+
import { defHttp as ao } from "/@/utils/http/axios";
|
|
27
|
+
import ro from "./OnlineQueryForm-1bfc8320.mjs";
|
|
28
|
+
import so from "./SuperQuery-5d1ca957.mjs";
|
|
29
|
+
import { a as q } from "./constant-754f1a9d.mjs";
|
|
30
|
+
import { _ as uo } from "./index-0e3ab3af.mjs";
|
|
31
31
|
import "/@/components/Modal";
|
|
32
|
-
import "./OnlineForm-
|
|
32
|
+
import "./OnlineForm-1fa2d893.mjs";
|
|
33
33
|
import "/@/components/Form/index";
|
|
34
34
|
import "lodash-es";
|
|
35
35
|
import "/@/utils";
|
|
@@ -39,12 +39,13 @@ import "/@/utils/auth";
|
|
|
39
39
|
import "@ant-design/icons-vue";
|
|
40
40
|
import "/@/hooks/core/useContext";
|
|
41
41
|
import "/@/utils/mitt";
|
|
42
|
+
import "./useCustomHook-acb00837.mjs";
|
|
42
43
|
import "/@/utils/cache";
|
|
43
44
|
import "/@/utils/common/compUtils";
|
|
44
45
|
import "/@/store/modules/user";
|
|
45
46
|
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
46
|
-
import "./OnlineFormDetail-
|
|
47
|
-
import "./DetailForm-
|
|
47
|
+
import "./OnlineFormDetail-0e7294ca.mjs";
|
|
48
|
+
import "./DetailForm-424638eb.mjs";
|
|
48
49
|
import "/@/utils/propTypes";
|
|
49
50
|
import "/@/utils/dict";
|
|
50
51
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -52,10 +53,15 @@ import "/@/utils/dict/index";
|
|
|
52
53
|
import "/@/api/common/api";
|
|
53
54
|
import "/@/components/Form/src/utils/Area";
|
|
54
55
|
import "/@/components/Preview/index";
|
|
55
|
-
import "
|
|
56
|
+
import "/@/components/Markdown";
|
|
57
|
+
import "./OnlineSubFormDetail-f0d2c016.mjs";
|
|
56
58
|
import "vue-router";
|
|
57
59
|
import "/@/router";
|
|
58
60
|
import "/@/hooks/core/onMountedOrActivated";
|
|
61
|
+
import "/@/store/modules/multipleTab";
|
|
62
|
+
import "./cgformState-d9f8ec42.mjs";
|
|
63
|
+
import "pinia";
|
|
64
|
+
import "/@/store";
|
|
59
65
|
import "ant-design-vue";
|
|
60
66
|
import "/@/hooks/system/useMethods";
|
|
61
67
|
import "/@/components/Form/src/componentMap";
|
|
@@ -64,27 +70,28 @@ import "/@/views/system/user/user.api";
|
|
|
64
70
|
import "/@/utils/desform/customExpression";
|
|
65
71
|
import "/@/store/modules/permission";
|
|
66
72
|
import "/@/hooks/system/useListPage";
|
|
67
|
-
import "./LinkTableListPiece-
|
|
68
|
-
import "./OnlineSelectCascade-
|
|
69
|
-
import "./JModalTip-
|
|
73
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
74
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
75
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
76
|
+
import "/@/hooks/web/useAppInject";
|
|
70
77
|
import "@vueuse/core";
|
|
71
|
-
import "./SuperQueryValComponent.vue_vue_type_script_lang-
|
|
78
|
+
import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
|
|
72
79
|
import "/@/utils/is";
|
|
73
80
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
74
81
|
const po = {
|
|
75
82
|
name: "DefaultOnlineList",
|
|
76
83
|
components: {
|
|
77
|
-
BasicTable:
|
|
78
|
-
TableAction:
|
|
79
|
-
OnlineAutoModal:
|
|
80
|
-
JImportModal:
|
|
81
|
-
OnlineQueryForm:
|
|
82
|
-
OnlineSuperQuery:
|
|
83
|
-
OnlineCustomModal:
|
|
84
|
-
OnlineDetailModal:
|
|
84
|
+
BasicTable: Je,
|
|
85
|
+
TableAction: He,
|
|
86
|
+
OnlineAutoModal: Pe,
|
|
87
|
+
JImportModal: eo,
|
|
88
|
+
OnlineQueryForm: ro,
|
|
89
|
+
OnlineSuperQuery: so,
|
|
90
|
+
OnlineCustomModal: Ne,
|
|
91
|
+
OnlineDetailModal: qe
|
|
85
92
|
},
|
|
86
93
|
setup() {
|
|
87
|
-
const { createMessage: e } = Ke(), T =
|
|
94
|
+
const { createMessage: e } = Ke(), T = K(), {
|
|
88
95
|
ID: m,
|
|
89
96
|
onlineTableContext: i,
|
|
90
97
|
onlineQueryFormOuter: k,
|
|
@@ -93,8 +100,8 @@ const po = {
|
|
|
93
100
|
dataSource: r,
|
|
94
101
|
pagination: s,
|
|
95
102
|
handleSpecialConfig: h,
|
|
96
|
-
getColumnList:
|
|
97
|
-
handleChangeInTable:
|
|
103
|
+
getColumnList: D,
|
|
104
|
+
handleChangeInTable: v,
|
|
98
105
|
loadData: A,
|
|
99
106
|
superQueryButtonRef: R,
|
|
100
107
|
superQueryStatus: L,
|
|
@@ -102,90 +109,88 @@ const po = {
|
|
|
102
109
|
registerCustomModal: o,
|
|
103
110
|
getTreeDataByResult: w,
|
|
104
111
|
expandedRowKeys: u,
|
|
105
|
-
handleExpandedRowsChange:
|
|
106
|
-
tableReloading:
|
|
112
|
+
handleExpandedRowsChange: N,
|
|
113
|
+
tableReloading: V,
|
|
107
114
|
onlineExtConfigJson: Q,
|
|
108
|
-
handleFormConfig:
|
|
109
|
-
} =
|
|
110
|
-
if (!m.value)
|
|
111
|
-
e.warning("地址错误, 配置ID不存在!");
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
115
|
+
handleFormConfig: z
|
|
116
|
+
} = oo();
|
|
117
|
+
if (!m.value)
|
|
118
|
+
throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
114
119
|
i.isTree(!0);
|
|
115
|
-
let { initCgEnhanceJs:
|
|
120
|
+
let { initCgEnhanceJs: j } = to(i);
|
|
116
121
|
const {
|
|
117
|
-
buttonSwitch:
|
|
118
|
-
cgLinkButtonList:
|
|
119
|
-
cgTopButtonList:
|
|
120
|
-
importUrl:
|
|
121
|
-
registerModal:
|
|
122
|
+
buttonSwitch: U,
|
|
123
|
+
cgLinkButtonList: W,
|
|
124
|
+
cgTopButtonList: G,
|
|
125
|
+
importUrl: X,
|
|
126
|
+
registerModal: Y,
|
|
122
127
|
handleAdd: $,
|
|
123
|
-
handleEdit:
|
|
124
|
-
handleBatchDelete:
|
|
125
|
-
registerImportModal:
|
|
126
|
-
onImportExcel:
|
|
127
|
-
onExportExcel:
|
|
128
|
-
cgButtonJsHandler:
|
|
129
|
-
cgButtonActionHandler:
|
|
130
|
-
cgButtonLinkHandler:
|
|
131
|
-
handleSubmitFlow:
|
|
132
|
-
getDropDownActions:
|
|
133
|
-
getActions:
|
|
134
|
-
initButtonList:
|
|
135
|
-
initButtonSwitch:
|
|
136
|
-
registerDetailModal:
|
|
137
|
-
} =
|
|
138
|
-
columns:
|
|
139
|
-
actionColumn:
|
|
140
|
-
selectedKeys:
|
|
141
|
-
rowSelection:
|
|
142
|
-
enableScrollBar:
|
|
143
|
-
tableScroll:
|
|
144
|
-
downloadRowFile:
|
|
145
|
-
getImgView:
|
|
146
|
-
getPcaText:
|
|
147
|
-
getFormatDate:
|
|
148
|
-
handleColumnResult:
|
|
149
|
-
hrefComponent:
|
|
150
|
-
viewOnlineCellImage:
|
|
151
|
-
} =
|
|
152
|
-
|
|
128
|
+
handleEdit: Z,
|
|
129
|
+
handleBatchDelete: x,
|
|
130
|
+
registerImportModal: ee,
|
|
131
|
+
onImportExcel: oe,
|
|
132
|
+
onExportExcel: ne,
|
|
133
|
+
cgButtonJsHandler: te,
|
|
134
|
+
cgButtonActionHandler: ie,
|
|
135
|
+
cgButtonLinkHandler: le,
|
|
136
|
+
handleSubmitFlow: ae,
|
|
137
|
+
getDropDownActions: re,
|
|
138
|
+
getActions: se,
|
|
139
|
+
initButtonList: ue,
|
|
140
|
+
initButtonSwitch: de,
|
|
141
|
+
registerDetailModal: pe
|
|
142
|
+
} = no(i, Q), {
|
|
143
|
+
columns: me,
|
|
144
|
+
actionColumn: ce,
|
|
145
|
+
selectedKeys: ge,
|
|
146
|
+
rowSelection: he,
|
|
147
|
+
enableScrollBar: fe,
|
|
148
|
+
tableScroll: Ce,
|
|
149
|
+
downloadRowFile: ye,
|
|
150
|
+
getImgView: we,
|
|
151
|
+
getPcaText: be,
|
|
152
|
+
getFormatDate: Se,
|
|
153
|
+
handleColumnResult: Te,
|
|
154
|
+
hrefComponent: ke,
|
|
155
|
+
viewOnlineCellImage: Re
|
|
156
|
+
} = io(i, Q);
|
|
157
|
+
Ve(
|
|
153
158
|
m,
|
|
154
159
|
() => {
|
|
155
|
-
|
|
160
|
+
Fe();
|
|
156
161
|
},
|
|
157
162
|
{ immediate: !0 }
|
|
158
163
|
);
|
|
159
|
-
function
|
|
160
|
-
return
|
|
164
|
+
function Fe() {
|
|
165
|
+
return B(this, null, function* () {
|
|
161
166
|
y.value = !0;
|
|
162
|
-
let n = yield
|
|
163
|
-
|
|
167
|
+
let n = yield D(q);
|
|
168
|
+
Ie(n), yield A(), y.value = !1, i.execButtonEnhance("setup");
|
|
164
169
|
});
|
|
165
170
|
}
|
|
166
|
-
function
|
|
167
|
-
let t =
|
|
168
|
-
i.EnhanceJS = t,
|
|
171
|
+
function Ie(n) {
|
|
172
|
+
let t = j(n.enhanceJs);
|
|
173
|
+
i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns), Te(n), h(n), i.hasChildrenField = n.hasChildrenField, i.pidField = n.pidField;
|
|
169
174
|
}
|
|
170
175
|
function Be(n, t) {
|
|
171
|
-
i.queryParam = n, t === !0 ? c() : J();
|
|
176
|
+
i.queryParam = n, t === !0 ? c({ mode: "search" }) : J();
|
|
172
177
|
}
|
|
173
|
-
function
|
|
174
|
-
return
|
|
175
|
-
yield
|
|
178
|
+
function Ee(n) {
|
|
179
|
+
return B(this, null, function* () {
|
|
180
|
+
yield lo(R), R.value.init(n);
|
|
176
181
|
});
|
|
177
182
|
}
|
|
178
|
-
function
|
|
183
|
+
function De(n, t) {
|
|
179
184
|
let b = u.value;
|
|
180
185
|
if (n) {
|
|
181
186
|
if (ve(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
|
|
182
187
|
let F = i.hasChildrenField;
|
|
183
|
-
const { sortField:
|
|
184
|
-
let M = Object.assign({}, { column:
|
|
188
|
+
const { sortField: _e, sortType: Qe } = i;
|
|
189
|
+
let M = Object.assign({}, { column: _e, order: Qe });
|
|
185
190
|
M[i.pidField] = t.id, M[F] = t[F];
|
|
186
|
-
let
|
|
187
|
-
|
|
188
|
-
|
|
191
|
+
let $e = `${i.onlineUrl.getTreeData}${i.ID}`;
|
|
192
|
+
ao.get({ url: $e, params: M }, { isTransformResponse: !1 }).then((I) => {
|
|
193
|
+
I.success ? Number(I.result.total) > 0 ? t.children = w(I.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(I.message);
|
|
189
194
|
}).catch(() => {
|
|
190
195
|
e.warning("加载子节点失败!");
|
|
191
196
|
});
|
|
@@ -200,12 +205,12 @@ const po = {
|
|
|
200
205
|
t && t.indexOf(n) < 0 && t.push(n), u.value = t;
|
|
201
206
|
}
|
|
202
207
|
function J() {
|
|
203
|
-
return
|
|
208
|
+
return B(this, null, function* () {
|
|
204
209
|
i.isTree() === !0 && (u.value = [], T.value.collapseAll()), c();
|
|
205
210
|
});
|
|
206
211
|
}
|
|
207
|
-
function
|
|
208
|
-
if (
|
|
212
|
+
function Ae(n) {
|
|
213
|
+
if (H.value === !0) {
|
|
209
214
|
let t = n[i.pidField];
|
|
210
215
|
if (t) {
|
|
211
216
|
let b = u.value;
|
|
@@ -214,27 +219,27 @@ const po = {
|
|
|
214
219
|
}
|
|
215
220
|
c();
|
|
216
221
|
}
|
|
217
|
-
const
|
|
222
|
+
const Le = (n) => ({
|
|
218
223
|
label: "添加下级",
|
|
219
|
-
onClick:
|
|
220
|
-
}),
|
|
221
|
-
function
|
|
222
|
-
|
|
224
|
+
onClick: Oe.bind(null, n)
|
|
225
|
+
}), H = K(!1);
|
|
226
|
+
function Oe(n) {
|
|
227
|
+
H.value = !0;
|
|
223
228
|
let t = {
|
|
224
229
|
[i.pidField]: n.id
|
|
225
230
|
};
|
|
226
231
|
$(t);
|
|
227
232
|
}
|
|
228
|
-
function
|
|
229
|
-
let t =
|
|
230
|
-
return t.unshift(
|
|
233
|
+
function Me(n) {
|
|
234
|
+
let t = re(n, { themeTemplate: q });
|
|
235
|
+
return t.unshift(Le(n)), t;
|
|
231
236
|
}
|
|
232
237
|
return {
|
|
233
238
|
ID: m,
|
|
234
239
|
// 查询区域
|
|
235
240
|
onlineQueryFormOuter: k,
|
|
236
241
|
queryWithCondition: Be,
|
|
237
|
-
onQueryFormLoaded:
|
|
242
|
+
onQueryFormLoaded: Ee,
|
|
238
243
|
reload: c,
|
|
239
244
|
//高级查询
|
|
240
245
|
superQueryButtonRef: R,
|
|
@@ -242,54 +247,54 @@ const po = {
|
|
|
242
247
|
handleSuperQuery: O,
|
|
243
248
|
// table区域
|
|
244
249
|
loading: y,
|
|
245
|
-
columns:
|
|
246
|
-
actionColumn:
|
|
250
|
+
columns: me,
|
|
251
|
+
actionColumn: ce,
|
|
247
252
|
dataSource: r,
|
|
248
253
|
pagination: s,
|
|
249
|
-
rowSelection:
|
|
250
|
-
selectedKeys:
|
|
251
|
-
tableScroll:
|
|
252
|
-
enableScrollBar:
|
|
253
|
-
handleChangeInTable:
|
|
254
|
+
rowSelection: he,
|
|
255
|
+
selectedKeys: ge,
|
|
256
|
+
tableScroll: Ce,
|
|
257
|
+
enableScrollBar: fe,
|
|
258
|
+
handleChangeInTable: v,
|
|
254
259
|
//按钮
|
|
255
|
-
buttonSwitch:
|
|
260
|
+
buttonSwitch: U,
|
|
256
261
|
handleAdd: $,
|
|
257
|
-
handleEdit:
|
|
258
|
-
onImportExcel:
|
|
259
|
-
onExportExcel:
|
|
260
|
-
cgTopButtonList:
|
|
261
|
-
cgLinkButtonList:
|
|
262
|
-
cgButtonJsHandler:
|
|
263
|
-
cgButtonActionHandler:
|
|
264
|
-
cgButtonLinkHandler:
|
|
265
|
-
handleBatchDelete:
|
|
262
|
+
handleEdit: Z,
|
|
263
|
+
onImportExcel: oe,
|
|
264
|
+
onExportExcel: ne,
|
|
265
|
+
cgTopButtonList: G,
|
|
266
|
+
cgLinkButtonList: W,
|
|
267
|
+
cgButtonJsHandler: te,
|
|
268
|
+
cgButtonActionHandler: ie,
|
|
269
|
+
cgButtonLinkHandler: le,
|
|
270
|
+
handleBatchDelete: x,
|
|
266
271
|
// table-slot
|
|
267
|
-
downloadRowFile:
|
|
268
|
-
getImgView:
|
|
269
|
-
getPcaText:
|
|
270
|
-
getFormatDate:
|
|
272
|
+
downloadRowFile: ye,
|
|
273
|
+
getImgView: we,
|
|
274
|
+
getPcaText: be,
|
|
275
|
+
getFormatDate: Se,
|
|
271
276
|
// 操作列
|
|
272
|
-
getActions:
|
|
273
|
-
getTreeDropDownActions:
|
|
277
|
+
getActions: se,
|
|
278
|
+
getTreeDropDownActions: Me,
|
|
274
279
|
// 弹窗
|
|
275
|
-
registerModal:
|
|
280
|
+
registerModal: Y,
|
|
276
281
|
registerCustomModal: o,
|
|
277
|
-
registerImportModal:
|
|
278
|
-
importUrl:
|
|
279
|
-
handleFormConfig:
|
|
282
|
+
registerImportModal: ee,
|
|
283
|
+
importUrl: X,
|
|
284
|
+
handleFormConfig: z,
|
|
280
285
|
//其他
|
|
281
|
-
tableReloading:
|
|
282
|
-
handleSubmitFlow:
|
|
283
|
-
hrefComponent:
|
|
284
|
-
viewOnlineCellImage:
|
|
286
|
+
tableReloading: V,
|
|
287
|
+
handleSubmitFlow: ae,
|
|
288
|
+
hrefComponent: ke,
|
|
289
|
+
viewOnlineCellImage: Re,
|
|
285
290
|
//树特定的配置
|
|
286
291
|
onlineTreeTableRef: T,
|
|
287
|
-
handlerFormSuccess:
|
|
292
|
+
handlerFormSuccess: Ae,
|
|
288
293
|
searchReset: J,
|
|
289
|
-
handleExpand:
|
|
294
|
+
handleExpand: De,
|
|
290
295
|
expandedRowKeys: u,
|
|
291
|
-
handleExpandedRowsChange:
|
|
292
|
-
registerDetailModal:
|
|
296
|
+
handleExpandedRowsChange: N,
|
|
297
|
+
registerDetailModal: pe
|
|
293
298
|
};
|
|
294
299
|
}
|
|
295
300
|
// 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
|
|
@@ -309,7 +314,7 @@ const mo = { class: "p-2" }, co = {
|
|
|
309
314
|
style: { "font-size": "12px", "font-style": "italic" }
|
|
310
315
|
}, ho = ["src", "onClick"], fo = ["innerHTML"], Co = ["title"];
|
|
311
316
|
function yo(e, T, m, i, k, y) {
|
|
312
|
-
const c = d("online-query-form"), r = d("a-button"), s = d("online-super-query"), h = d("TableAction"),
|
|
317
|
+
const c = d("online-query-form"), r = d("a-button"), s = d("online-super-query"), h = d("TableAction"), D = d("BasicTable"), v = d("OnlineAutoModal"), A = d("JImportModal"), R = d("a-modal"), L = d("online-custom-modal"), O = d("online-detail-modal");
|
|
313
318
|
return l(), S("div", mo, [
|
|
314
319
|
f(c, {
|
|
315
320
|
ref: "onlineQueryFormOuter",
|
|
@@ -317,7 +322,7 @@ function yo(e, T, m, i, k, y) {
|
|
|
317
322
|
onSearch: e.queryWithCondition,
|
|
318
323
|
onLoaded: e.onQueryFormLoaded
|
|
319
324
|
}, null, 8, ["id", "onSearch", "onLoaded"]),
|
|
320
|
-
e.tableReloading ? g("", !0) : (l(), p(
|
|
325
|
+
e.tableReloading ? g("", !0) : (l(), p(D, {
|
|
321
326
|
key: 0,
|
|
322
327
|
ref: "onlineTreeTableRef",
|
|
323
328
|
isTreeTable: !0,
|
|
@@ -338,7 +343,7 @@ function yo(e, T, m, i, k, y) {
|
|
|
338
343
|
clickToRowSelect: !1,
|
|
339
344
|
scroll: e.tableScroll,
|
|
340
345
|
onTableRedo: e.reload,
|
|
341
|
-
class:
|
|
346
|
+
class: ze({ "j-table-force-nowrap": e.enableScrollBar }),
|
|
342
347
|
onChange: e.handleChangeInTable
|
|
343
348
|
}, {
|
|
344
349
|
tableTitle: a(() => [
|
|
@@ -375,7 +380,7 @@ function yo(e, T, m, i, k, y) {
|
|
|
375
380
|
]),
|
|
376
381
|
_: 1
|
|
377
382
|
}, 8, ["onClick"])) : g("", !0),
|
|
378
|
-
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0), S(P, { key: 3 },
|
|
383
|
+
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0), S(P, { key: 3 }, je(e.cgTopButtonList, (o, w) => (l(), S(P, null, [
|
|
379
384
|
o.optType == "js" ? (l(), p(r, {
|
|
380
385
|
key: "cgbtn" + w,
|
|
381
386
|
onClick: (u) => e.cgButtonJsHandler(o.buttonCode),
|
|
@@ -398,7 +403,7 @@ function yo(e, T, m, i, k, y) {
|
|
|
398
403
|
_: 2
|
|
399
404
|
}, 1032, ["onClick", "preIcon"])) : g("", !0)
|
|
400
405
|
], 64))), 256)) : g("", !0),
|
|
401
|
-
e.buttonSwitch.batch_delete ?
|
|
406
|
+
e.buttonSwitch.batch_delete ? Ue((l(), p(r, {
|
|
402
407
|
key: 4,
|
|
403
408
|
preIcon: "ant-design:delete-outlined",
|
|
404
409
|
onClick: e.handleBatchDelete
|
|
@@ -408,7 +413,7 @@ function yo(e, T, m, i, k, y) {
|
|
|
408
413
|
]),
|
|
409
414
|
_: 1
|
|
410
415
|
}, 8, ["onClick"])), [
|
|
411
|
-
[
|
|
416
|
+
[We, e.selectedKeys.length > 0]
|
|
412
417
|
]) : g("", !0),
|
|
413
418
|
e.buttonSwitch.super_query ? (l(), p(s, {
|
|
414
419
|
key: 5,
|
|
@@ -461,7 +466,7 @@ function yo(e, T, m, i, k, y) {
|
|
|
461
466
|
]),
|
|
462
467
|
_: 1
|
|
463
468
|
}, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
464
|
-
f(
|
|
469
|
+
f(v, {
|
|
465
470
|
id: e.ID,
|
|
466
471
|
onRegister: e.registerModal,
|
|
467
472
|
onSuccess: e.handlerFormSuccess,
|
|
@@ -473,9 +478,9 @@ function yo(e, T, m, i, k, y) {
|
|
|
473
478
|
onOk: e.reload,
|
|
474
479
|
online: ""
|
|
475
480
|
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
476
|
-
f(R,
|
|
481
|
+
f(R, Ge(e.hrefComponent.model, Xe(e.hrefComponent.on)), {
|
|
477
482
|
default: a(() => [
|
|
478
|
-
(l(), p(
|
|
483
|
+
(l(), p(Ye(e.hrefComponent.is), Ze(xe(e.hrefComponent.params)), null, 16))
|
|
479
484
|
]),
|
|
480
485
|
_: 1
|
|
481
486
|
}, 16),
|
|
@@ -489,7 +494,7 @@ function yo(e, T, m, i, k, y) {
|
|
|
489
494
|
}, null, 8, ["id", "onRegister"])
|
|
490
495
|
]);
|
|
491
496
|
}
|
|
492
|
-
const
|
|
497
|
+
const Ln = /* @__PURE__ */ uo(po, [["render", yo]]);
|
|
493
498
|
export {
|
|
494
|
-
|
|
499
|
+
Ln as default
|
|
495
500
|
};
|