@jeecg/online 3.6.2-GA → 3.7.0-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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
- package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-f142147a.mjs +0 -125
- package/AuthDataConfig-8e5c7b0c.mjs +0 -212
- package/AuthFieldConfig-e9a45f94.mjs +0 -139
- package/AuthManagerDrawer-5b558c23.mjs +0 -114
- package/AuthSetterModal-0cc557cf.mjs +0 -267
- package/CgreportModal-2eb9c9e1.mjs +0 -13
- package/CheckDictTable-27102064.mjs +0 -211
- package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
- package/DetailForm-cdeb54e3.mjs +0 -462
- package/EnhanceJsModal-6158804c.mjs +0 -311
- package/ExtendConfigModal-0564ef83.mjs +0 -111
- package/FieldExtendJsonModal-40d961c1.mjs +0 -219
- package/LinkTableConfigModal-5edaa08d.mjs +0 -230
- package/OnlCgformErpList-4c51cdb3.mjs +0 -454
- package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
- package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
- package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
- package/OnlCgformTabList-c59c7cc7.mjs +0 -395
- package/OnlineAutoList-a7a9de5d.mjs +0 -479
- package/OnlineAutoModal-a33f1a63.mjs +0 -207
- package/OnlineForm-fb3a2379.mjs +0 -750
- package/OnlineFormDetail-52b1c303.mjs +0 -297
- package/OnlineQueryForm-7c70734e.mjs +0 -386
- package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
- package/OnlineTabForm-29ca07f7.mjs +0 -766
- package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
- package/PageAttributeTable-d82946c5.mjs +0 -404
- package/QueryTable-d4599fca.mjs +0 -115
- package/SuperQuery-07162778.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-73993b18.mjs +0 -56
- package/useCgformList-b135794d.mjs +0 -400
- package/useExtendComponent-f4e29152.mjs +0 -3926
- package/useListButton-4dd33e7a.mjs +0 -676
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var B = (e,
|
|
2
|
-
var
|
|
1
|
+
var B = (e, S, m) => new Promise((i, k) => {
|
|
2
|
+
var w = (d) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
k(
|
|
4
|
+
s(m.next(d));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
k(f);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, g = (d) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
k(
|
|
10
|
+
s(m.throw(d));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
k(f);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, s = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(w, g);
|
|
15
|
+
s((m = m.apply(e, S)).next());
|
|
16
16
|
});
|
|
17
|
-
import { BasicTable as Je, TableAction as
|
|
18
|
-
import { useMessage as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { ref as K, watch as
|
|
23
|
-
import
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
17
|
+
import { BasicTable as Je, TableAction as Ke } from "/@/components/Table";
|
|
18
|
+
import { useMessage as Pe } from "/@/hooks/web/useMessage";
|
|
19
|
+
import qe from "./OnlineAutoModal-971bef13.mjs";
|
|
20
|
+
import Ne from "./OnlineDetailModal-2a271e0b.mjs";
|
|
21
|
+
import Ve from "./OnlineCustomModal-594244f3.mjs";
|
|
22
|
+
import { ref as K, watch as ze, resolveComponent as p, openBlock as l, createElementBlock as h, createVNode as C, createBlock as c, normalizeClass as je, withCtx as a, createTextVNode as T, createCommentVNode as y, Fragment as P, renderList as Ue, toDisplayString as D, withDirectives as We, vShow as Ge, createElementVNode as q, mergeProps as Xe, toHandlers as Ye, resolveDynamicComponent as Ze, normalizeProps as xe, guardReactiveProps as eo } from "vue";
|
|
23
|
+
import oo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as no, a as to } from "./useListButton-7ddb9a46.mjs";
|
|
25
|
+
import { u as io, a as lo, g as ro } from "./useExtendComponent-bb7cca20.mjs";
|
|
26
26
|
import { defHttp as ao } from "/@/utils/http/axios";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import { _ as
|
|
27
|
+
import so from "./OnlineQueryForm-998c12a4.mjs";
|
|
28
|
+
import uo from "./SuperQuery-cbfba908.mjs";
|
|
29
|
+
import { b as N } from "./constant-fa63bd66.mjs";
|
|
30
|
+
import { _ as po } from "./index-173949bb.mjs";
|
|
31
31
|
import "/@/components/Modal";
|
|
32
|
-
import "./OnlineForm-
|
|
32
|
+
import "./OnlineForm-018981b2.mjs";
|
|
33
33
|
import "/@/components/Form/index";
|
|
34
34
|
import "lodash-es";
|
|
35
35
|
import "/@/utils";
|
|
@@ -43,88 +43,92 @@ import "./useCustomHook-acb00837.mjs";
|
|
|
43
43
|
import "/@/utils/cache";
|
|
44
44
|
import "/@/utils/common/compUtils";
|
|
45
45
|
import "/@/store/modules/user";
|
|
46
|
-
import "/@/
|
|
47
|
-
import "
|
|
48
|
-
import "./
|
|
46
|
+
import "/@/hooks/web/useAppInject";
|
|
47
|
+
import "/@/utils/is";
|
|
48
|
+
import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
|
|
49
|
+
import "/@/components/Form/src/componentMap";
|
|
49
50
|
import "/@/utils/propTypes";
|
|
50
|
-
import "/@/
|
|
51
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
52
|
+
import "/@/views/system/user/user.api";
|
|
53
|
+
import "/@/utils/desform/customExpression";
|
|
54
|
+
import "/@/store/modules/permission";
|
|
51
55
|
import "/@/utils/dict/JDictSelectUtil";
|
|
52
|
-
import "/@/
|
|
53
|
-
import "
|
|
56
|
+
import "/@/hooks/system/useListPage";
|
|
57
|
+
import "vue-router";
|
|
54
58
|
import "/@/components/Form/src/utils/Area";
|
|
55
59
|
import "/@/components/Preview/index";
|
|
60
|
+
import "./LinkTableListPiece-2660d709.mjs";
|
|
61
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
62
|
+
import "/@/api/common/api";
|
|
63
|
+
import "/@/assets/images/placeholderImage.png";
|
|
64
|
+
import "./OnlineSelectCascade-471fcc76.mjs";
|
|
65
|
+
import "./JModalTip-4a83aaed.mjs";
|
|
66
|
+
import "ant-design-vue";
|
|
67
|
+
import "@vueuse/core";
|
|
68
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
69
|
+
import "./OnlineFormDetail-e036cd11.mjs";
|
|
70
|
+
import "./DetailForm-4aa2570b.mjs";
|
|
71
|
+
import "/@/utils/dict";
|
|
72
|
+
import "/@/utils/dict/index";
|
|
56
73
|
import "/@/components/Markdown";
|
|
57
|
-
import "./OnlineSubFormDetail-
|
|
58
|
-
import "vue-router";
|
|
74
|
+
import "./OnlineSubFormDetail-03f8ee5c.mjs";
|
|
59
75
|
import "/@/router";
|
|
60
76
|
import "/@/hooks/core/onMountedOrActivated";
|
|
61
77
|
import "/@/store/modules/multipleTab";
|
|
62
78
|
import "./cgformState-d9f8ec42.mjs";
|
|
63
79
|
import "pinia";
|
|
64
80
|
import "/@/store";
|
|
65
|
-
import "ant-design-vue";
|
|
66
81
|
import "/@/hooks/system/useMethods";
|
|
67
|
-
import "/@/components/Form/src/
|
|
68
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
69
|
-
import "/@/views/system/user/user.api";
|
|
70
|
-
import "/@/utils/desform/customExpression";
|
|
71
|
-
import "/@/store/modules/permission";
|
|
72
|
-
import "/@/hooks/system/useListPage";
|
|
73
|
-
import "./LinkTableListPiece-46e8af51.mjs";
|
|
74
|
-
import "./OnlineSelectCascade-abc345f9.mjs";
|
|
75
|
-
import "./JModalTip-0413ad6a.mjs";
|
|
76
|
-
import "/@/hooks/web/useAppInject";
|
|
77
|
-
import "@vueuse/core";
|
|
82
|
+
import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
78
83
|
import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
|
|
79
|
-
import "/@/
|
|
80
|
-
|
|
81
|
-
const po = {
|
|
84
|
+
import "/@/hooks/web/useDesign";
|
|
85
|
+
const mo = {
|
|
82
86
|
name: "DefaultOnlineList",
|
|
83
87
|
components: {
|
|
84
88
|
BasicTable: Je,
|
|
85
|
-
TableAction:
|
|
86
|
-
OnlineAutoModal:
|
|
87
|
-
JImportModal:
|
|
88
|
-
OnlineQueryForm:
|
|
89
|
-
OnlineSuperQuery:
|
|
90
|
-
OnlineCustomModal:
|
|
91
|
-
OnlineDetailModal:
|
|
89
|
+
TableAction: Ke,
|
|
90
|
+
OnlineAutoModal: qe,
|
|
91
|
+
JImportModal: oo,
|
|
92
|
+
OnlineQueryForm: so,
|
|
93
|
+
OnlineSuperQuery: uo,
|
|
94
|
+
OnlineCustomModal: Ve,
|
|
95
|
+
OnlineDetailModal: Ne
|
|
92
96
|
},
|
|
93
97
|
setup() {
|
|
94
|
-
const { createMessage: e } =
|
|
98
|
+
const { createMessage: e } = Pe(), S = K(), {
|
|
95
99
|
ID: m,
|
|
96
100
|
onlineTableContext: i,
|
|
97
101
|
onlineQueryFormOuter: k,
|
|
98
|
-
loading:
|
|
99
|
-
reload:
|
|
100
|
-
dataSource:
|
|
101
|
-
pagination:
|
|
102
|
-
handleSpecialConfig:
|
|
103
|
-
getColumnList:
|
|
102
|
+
loading: w,
|
|
103
|
+
reload: g,
|
|
104
|
+
dataSource: s,
|
|
105
|
+
pagination: d,
|
|
106
|
+
handleSpecialConfig: f,
|
|
107
|
+
getColumnList: E,
|
|
104
108
|
handleChangeInTable: v,
|
|
105
|
-
loadData:
|
|
106
|
-
superQueryButtonRef:
|
|
107
|
-
superQueryStatus:
|
|
108
|
-
handleSuperQuery:
|
|
109
|
+
loadData: L,
|
|
110
|
+
superQueryButtonRef: F,
|
|
111
|
+
superQueryStatus: A,
|
|
112
|
+
handleSuperQuery: M,
|
|
109
113
|
registerCustomModal: o,
|
|
110
|
-
getTreeDataByResult:
|
|
111
|
-
expandedRowKeys:
|
|
112
|
-
handleExpandedRowsChange:
|
|
114
|
+
getTreeDataByResult: u,
|
|
115
|
+
expandedRowKeys: r,
|
|
116
|
+
handleExpandedRowsChange: O,
|
|
113
117
|
tableReloading: V,
|
|
114
|
-
onlineExtConfigJson:
|
|
118
|
+
onlineExtConfigJson: _,
|
|
115
119
|
handleFormConfig: z
|
|
116
|
-
} =
|
|
120
|
+
} = no();
|
|
117
121
|
if (!m.value)
|
|
118
122
|
throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
119
123
|
i.isTree(!0);
|
|
120
|
-
let { initCgEnhanceJs: j } =
|
|
124
|
+
let { initCgEnhanceJs: j } = io(i);
|
|
121
125
|
const {
|
|
122
126
|
buttonSwitch: U,
|
|
123
127
|
cgLinkButtonList: W,
|
|
124
128
|
cgTopButtonList: G,
|
|
125
129
|
importUrl: X,
|
|
126
130
|
registerModal: Y,
|
|
127
|
-
handleAdd:
|
|
131
|
+
handleAdd: Q,
|
|
128
132
|
handleEdit: Z,
|
|
129
133
|
handleBatchDelete: x,
|
|
130
134
|
registerImportModal: ee,
|
|
@@ -133,13 +137,13 @@ const po = {
|
|
|
133
137
|
cgButtonJsHandler: te,
|
|
134
138
|
cgButtonActionHandler: ie,
|
|
135
139
|
cgButtonLinkHandler: le,
|
|
136
|
-
handleSubmitFlow:
|
|
137
|
-
getDropDownActions:
|
|
140
|
+
handleSubmitFlow: re,
|
|
141
|
+
getDropDownActions: ae,
|
|
138
142
|
getActions: se,
|
|
139
143
|
initButtonList: ue,
|
|
140
144
|
initButtonSwitch: de,
|
|
141
145
|
registerDetailModal: pe
|
|
142
|
-
} =
|
|
146
|
+
} = to(i, _), {
|
|
143
147
|
columns: me,
|
|
144
148
|
actionColumn: ce,
|
|
145
149
|
selectedKeys: ge,
|
|
@@ -149,108 +153,109 @@ const po = {
|
|
|
149
153
|
downloadRowFile: ye,
|
|
150
154
|
getImgView: we,
|
|
151
155
|
getPcaText: be,
|
|
152
|
-
getFormatDate:
|
|
153
|
-
handleColumnResult:
|
|
156
|
+
getFormatDate: Te,
|
|
157
|
+
handleColumnResult: Se,
|
|
154
158
|
hrefComponent: ke,
|
|
155
|
-
viewOnlineCellImage:
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
viewOnlineCellImage: Fe,
|
|
160
|
+
handleClickFieldHref: Re
|
|
161
|
+
} = lo(i, _);
|
|
162
|
+
ze(
|
|
158
163
|
m,
|
|
159
164
|
() => {
|
|
160
|
-
|
|
165
|
+
Ie();
|
|
161
166
|
},
|
|
162
167
|
{ immediate: !0 }
|
|
163
168
|
);
|
|
164
|
-
function
|
|
169
|
+
function Ie() {
|
|
165
170
|
return B(this, null, function* () {
|
|
166
|
-
|
|
167
|
-
let n = yield
|
|
168
|
-
|
|
171
|
+
w.value = !0;
|
|
172
|
+
let n = yield E(N);
|
|
173
|
+
Be(n), yield L(), w.value = !1, i.execButtonEnhance("setup");
|
|
169
174
|
});
|
|
170
175
|
}
|
|
171
|
-
function
|
|
176
|
+
function Be(n) {
|
|
172
177
|
let t = j(n.enhanceJs);
|
|
173
|
-
i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns),
|
|
178
|
+
i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns), Se(n), f(n), i.hasChildrenField = n.hasChildrenField, i.pidField = n.pidField;
|
|
174
179
|
}
|
|
175
|
-
function
|
|
176
|
-
i.queryParam = n, t === !0 ?
|
|
180
|
+
function De(n, t) {
|
|
181
|
+
i.queryParam = n, t === !0 ? g({ mode: "search" }) : $();
|
|
177
182
|
}
|
|
178
183
|
function Ee(n) {
|
|
179
184
|
return B(this, null, function* () {
|
|
180
|
-
yield
|
|
185
|
+
yield ro(F), F.value.init(n);
|
|
181
186
|
});
|
|
182
187
|
}
|
|
183
|
-
function
|
|
184
|
-
let b =
|
|
188
|
+
function ve(n, t) {
|
|
189
|
+
let b = r.value;
|
|
185
190
|
if (n) {
|
|
186
|
-
if (
|
|
187
|
-
let
|
|
191
|
+
if (Le(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
|
|
192
|
+
let R = i.hasChildrenField;
|
|
188
193
|
const { sortField: _e, sortType: Qe } = i;
|
|
189
|
-
let
|
|
190
|
-
|
|
194
|
+
let H = Object.assign({}, { column: _e, order: Qe });
|
|
195
|
+
H[i.pidField] = t.id, H[R] = t[R];
|
|
191
196
|
let $e = `${i.onlineUrl.getTreeData}${i.ID}`;
|
|
192
|
-
ao.get({ url: $e, params:
|
|
193
|
-
I.success ? Number(I.result.total) > 0 ? t.children =
|
|
197
|
+
ao.get({ url: $e, params: H }, { isTransformResponse: !1 }).then((I) => {
|
|
198
|
+
I.success ? Number(I.result.total) > 0 ? t.children = u(I.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(I.message);
|
|
194
199
|
}).catch(() => {
|
|
195
200
|
e.warning("加载子节点失败!");
|
|
196
201
|
});
|
|
197
202
|
}
|
|
198
203
|
} else {
|
|
199
|
-
let
|
|
200
|
-
|
|
204
|
+
let R = b.indexOf(t.id);
|
|
205
|
+
R >= 0 && (r.value = b.splice(R, 1));
|
|
201
206
|
}
|
|
202
207
|
}
|
|
203
|
-
function
|
|
204
|
-
let t =
|
|
205
|
-
t && t.indexOf(n) < 0 && t.push(n),
|
|
208
|
+
function Le(n) {
|
|
209
|
+
let t = r.value;
|
|
210
|
+
t && t.indexOf(n) < 0 && t.push(n), r.value = t;
|
|
206
211
|
}
|
|
207
|
-
function
|
|
212
|
+
function $() {
|
|
208
213
|
return B(this, null, function* () {
|
|
209
|
-
i.isTree() === !0 && (
|
|
214
|
+
i.isTree() === !0 && (r.value = [], S.value.collapseAll()), g();
|
|
210
215
|
});
|
|
211
216
|
}
|
|
212
217
|
function Ae(n) {
|
|
213
|
-
if (
|
|
218
|
+
if (J.value === !0) {
|
|
214
219
|
let t = n[i.pidField];
|
|
215
220
|
if (t) {
|
|
216
|
-
let b =
|
|
217
|
-
b.indexOf(t) < 0 && b.push(t),
|
|
221
|
+
let b = r.value;
|
|
222
|
+
b.indexOf(t) < 0 && b.push(t), r.value = b;
|
|
218
223
|
}
|
|
219
224
|
}
|
|
220
|
-
|
|
225
|
+
g();
|
|
221
226
|
}
|
|
222
|
-
const
|
|
227
|
+
const Me = (n) => ({
|
|
223
228
|
label: "添加下级",
|
|
224
229
|
onClick: Oe.bind(null, n)
|
|
225
|
-
}),
|
|
230
|
+
}), J = K(!1);
|
|
226
231
|
function Oe(n) {
|
|
227
|
-
|
|
232
|
+
J.value = !0;
|
|
228
233
|
let t = {
|
|
229
234
|
[i.pidField]: n.id
|
|
230
235
|
};
|
|
231
|
-
|
|
236
|
+
Q(t);
|
|
232
237
|
}
|
|
233
|
-
function
|
|
234
|
-
let t =
|
|
235
|
-
return t.unshift(
|
|
238
|
+
function He(n) {
|
|
239
|
+
let t = ae(n, { themeTemplate: N });
|
|
240
|
+
return t.unshift(Me(n)), t;
|
|
236
241
|
}
|
|
237
242
|
return {
|
|
238
243
|
ID: m,
|
|
239
244
|
// 查询区域
|
|
240
245
|
onlineQueryFormOuter: k,
|
|
241
|
-
queryWithCondition:
|
|
246
|
+
queryWithCondition: De,
|
|
242
247
|
onQueryFormLoaded: Ee,
|
|
243
|
-
reload:
|
|
248
|
+
reload: g,
|
|
244
249
|
//高级查询
|
|
245
|
-
superQueryButtonRef:
|
|
246
|
-
superQueryStatus:
|
|
247
|
-
handleSuperQuery:
|
|
250
|
+
superQueryButtonRef: F,
|
|
251
|
+
superQueryStatus: A,
|
|
252
|
+
handleSuperQuery: M,
|
|
248
253
|
// table区域
|
|
249
|
-
loading:
|
|
254
|
+
loading: w,
|
|
250
255
|
columns: me,
|
|
251
256
|
actionColumn: ce,
|
|
252
|
-
dataSource:
|
|
253
|
-
pagination:
|
|
257
|
+
dataSource: s,
|
|
258
|
+
pagination: d,
|
|
254
259
|
rowSelection: he,
|
|
255
260
|
selectedKeys: ge,
|
|
256
261
|
tableScroll: Ce,
|
|
@@ -258,7 +263,7 @@ const po = {
|
|
|
258
263
|
handleChangeInTable: v,
|
|
259
264
|
//按钮
|
|
260
265
|
buttonSwitch: U,
|
|
261
|
-
handleAdd:
|
|
266
|
+
handleAdd: Q,
|
|
262
267
|
handleEdit: Z,
|
|
263
268
|
onImportExcel: oe,
|
|
264
269
|
onExportExcel: ne,
|
|
@@ -272,10 +277,10 @@ const po = {
|
|
|
272
277
|
downloadRowFile: ye,
|
|
273
278
|
getImgView: we,
|
|
274
279
|
getPcaText: be,
|
|
275
|
-
getFormatDate:
|
|
280
|
+
getFormatDate: Te,
|
|
276
281
|
// 操作列
|
|
277
282
|
getActions: se,
|
|
278
|
-
getTreeDropDownActions:
|
|
283
|
+
getTreeDropDownActions: He,
|
|
279
284
|
// 弹窗
|
|
280
285
|
registerModal: Y,
|
|
281
286
|
registerCustomModal: o,
|
|
@@ -284,17 +289,18 @@ const po = {
|
|
|
284
289
|
handleFormConfig: z,
|
|
285
290
|
//其他
|
|
286
291
|
tableReloading: V,
|
|
287
|
-
handleSubmitFlow:
|
|
292
|
+
handleSubmitFlow: re,
|
|
288
293
|
hrefComponent: ke,
|
|
289
|
-
viewOnlineCellImage:
|
|
294
|
+
viewOnlineCellImage: Fe,
|
|
290
295
|
//树特定的配置
|
|
291
|
-
onlineTreeTableRef:
|
|
296
|
+
onlineTreeTableRef: S,
|
|
292
297
|
handlerFormSuccess: Ae,
|
|
293
|
-
searchReset:
|
|
294
|
-
handleExpand:
|
|
295
|
-
expandedRowKeys:
|
|
296
|
-
handleExpandedRowsChange:
|
|
297
|
-
registerDetailModal: pe
|
|
298
|
+
searchReset: $,
|
|
299
|
+
handleExpand: ve,
|
|
300
|
+
expandedRowKeys: r,
|
|
301
|
+
handleExpandedRowsChange: O,
|
|
302
|
+
registerDetailModal: pe,
|
|
303
|
+
handleClickFieldHref: Re
|
|
298
304
|
};
|
|
299
305
|
}
|
|
300
306
|
// 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
|
|
@@ -306,23 +312,23 @@ const po = {
|
|
|
306
312
|
// TODO 积木报表打印地址
|
|
307
313
|
// const reportPrintUrl = ref('')
|
|
308
314
|
};
|
|
309
|
-
const
|
|
315
|
+
const co = { class: "p-2" }, go = {
|
|
310
316
|
key: 0,
|
|
311
317
|
style: { "font-size": "12px", "font-style": "italic" }
|
|
312
|
-
},
|
|
318
|
+
}, ho = {
|
|
313
319
|
key: 0,
|
|
314
320
|
style: { "font-size": "12px", "font-style": "italic" }
|
|
315
|
-
},
|
|
316
|
-
function
|
|
317
|
-
const
|
|
318
|
-
return l(),
|
|
319
|
-
|
|
321
|
+
}, fo = ["src", "onClick"], Co = ["innerHTML", "onClick"], yo = ["innerHTML"], wo = ["title"];
|
|
322
|
+
function bo(e, S, m, i, k, w) {
|
|
323
|
+
const g = p("online-query-form"), s = p("a-button"), d = p("online-super-query"), f = p("TableAction"), E = p("BasicTable"), v = p("OnlineAutoModal"), L = p("JImportModal"), F = p("a-modal"), A = p("online-custom-modal"), M = p("online-detail-modal");
|
|
324
|
+
return l(), h("div", co, [
|
|
325
|
+
C(g, {
|
|
320
326
|
ref: "onlineQueryFormOuter",
|
|
321
327
|
id: e.ID,
|
|
322
328
|
onSearch: e.queryWithCondition,
|
|
323
329
|
onLoaded: e.onQueryFormLoaded
|
|
324
330
|
}, null, 8, ["id", "onSearch", "onLoaded"]),
|
|
325
|
-
e.tableReloading ?
|
|
331
|
+
e.tableReloading ? y("", !0) : (l(), c(E, {
|
|
326
332
|
key: 0,
|
|
327
333
|
ref: "onlineTreeTableRef",
|
|
328
334
|
isTreeTable: !0,
|
|
@@ -343,158 +349,154 @@ function yo(e, T, m, i, k, y) {
|
|
|
343
349
|
clickToRowSelect: !1,
|
|
344
350
|
scroll: e.tableScroll,
|
|
345
351
|
onTableRedo: e.reload,
|
|
346
|
-
class:
|
|
352
|
+
class: je({ "j-table-force-nowrap": e.enableScrollBar }),
|
|
347
353
|
onChange: e.handleChangeInTable
|
|
348
354
|
}, {
|
|
349
355
|
tableTitle: a(() => [
|
|
350
|
-
e.buttonSwitch.add ? (l(),
|
|
356
|
+
e.buttonSwitch.add ? (l(), c(s, {
|
|
351
357
|
key: 0,
|
|
352
358
|
preIcon: "ant-design:plus-outlined",
|
|
353
359
|
type: "primary",
|
|
354
360
|
onClick: e.handleAdd
|
|
355
361
|
}, {
|
|
356
362
|
default: a(() => [
|
|
357
|
-
|
|
363
|
+
T("新增")
|
|
358
364
|
]),
|
|
359
365
|
_: 1
|
|
360
|
-
}, 8, ["onClick"])) :
|
|
361
|
-
e.buttonSwitch.
|
|
366
|
+
}, 8, ["onClick"])) : y("", !0),
|
|
367
|
+
e.buttonSwitch.export ? (l(), c(s, {
|
|
362
368
|
key: 1,
|
|
363
|
-
preIcon: "ant-design:import-outlined",
|
|
364
|
-
type: "primary",
|
|
365
|
-
onClick: e.onImportExcel
|
|
366
|
-
}, {
|
|
367
|
-
default: a(() => [
|
|
368
|
-
C("导入")
|
|
369
|
-
]),
|
|
370
|
-
_: 1
|
|
371
|
-
}, 8, ["onClick"])) : g("", !0),
|
|
372
|
-
e.buttonSwitch.export ? (l(), p(r, {
|
|
373
|
-
key: 2,
|
|
374
369
|
preIcon: "ant-design:export-outlined",
|
|
375
370
|
type: "primary",
|
|
376
371
|
onClick: e.onExportExcel
|
|
377
372
|
}, {
|
|
378
373
|
default: a(() => [
|
|
379
|
-
|
|
374
|
+
T(" 导出")
|
|
380
375
|
]),
|
|
381
376
|
_: 1
|
|
382
|
-
}, 8, ["onClick"])) :
|
|
383
|
-
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0),
|
|
384
|
-
o.optType == "js" ? (l(),
|
|
385
|
-
key: "cgbtn" +
|
|
386
|
-
onClick: (
|
|
377
|
+
}, 8, ["onClick"])) : y("", !0),
|
|
378
|
+
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0), h(P, { key: 2 }, Ue(e.cgTopButtonList, (o, u) => (l(), h(P, null, [
|
|
379
|
+
o.optType == "js" ? (l(), c(s, {
|
|
380
|
+
key: "cgbtn" + u,
|
|
381
|
+
onClick: (r) => e.cgButtonJsHandler(o.buttonCode),
|
|
387
382
|
type: "primary",
|
|
388
383
|
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
389
384
|
}, {
|
|
390
385
|
default: a(() => [
|
|
391
|
-
|
|
386
|
+
T(D(o.buttonName), 1)
|
|
392
387
|
]),
|
|
393
388
|
_: 2
|
|
394
|
-
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(),
|
|
395
|
-
key: "cgbtn" +
|
|
396
|
-
onClick: (
|
|
389
|
+
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), c(s, {
|
|
390
|
+
key: "cgbtn" + u,
|
|
391
|
+
onClick: (r) => e.cgButtonActionHandler(o.buttonCode),
|
|
397
392
|
type: "primary",
|
|
398
393
|
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
399
394
|
}, {
|
|
400
395
|
default: a(() => [
|
|
401
|
-
|
|
396
|
+
T(D(o.buttonName), 1)
|
|
402
397
|
]),
|
|
403
398
|
_: 2
|
|
404
|
-
}, 1032, ["onClick", "preIcon"])) :
|
|
405
|
-
], 64))), 256)) :
|
|
406
|
-
e.buttonSwitch.batch_delete ?
|
|
407
|
-
key:
|
|
399
|
+
}, 1032, ["onClick", "preIcon"])) : y("", !0)
|
|
400
|
+
], 64))), 256)) : y("", !0),
|
|
401
|
+
e.buttonSwitch.batch_delete ? We((l(), c(s, {
|
|
402
|
+
key: 3,
|
|
408
403
|
preIcon: "ant-design:delete-outlined",
|
|
409
404
|
onClick: e.handleBatchDelete
|
|
410
405
|
}, {
|
|
411
406
|
default: a(() => [
|
|
412
|
-
|
|
407
|
+
T(" 批量删除")
|
|
413
408
|
]),
|
|
414
409
|
_: 1
|
|
415
410
|
}, 8, ["onClick"])), [
|
|
416
|
-
[
|
|
417
|
-
]) :
|
|
418
|
-
e.buttonSwitch.super_query ? (l(),
|
|
419
|
-
key:
|
|
411
|
+
[Ge, e.selectedKeys.length > 0]
|
|
412
|
+
]) : y("", !0),
|
|
413
|
+
e.buttonSwitch.super_query ? (l(), c(d, {
|
|
414
|
+
key: 4,
|
|
420
415
|
ref: "superQueryButtonRef",
|
|
421
416
|
online: "",
|
|
422
417
|
status: e.superQueryStatus,
|
|
423
418
|
onSearch: e.handleSuperQuery
|
|
424
|
-
}, null, 8, ["status", "onSearch"])) :
|
|
419
|
+
}, null, 8, ["status", "onSearch"])) : y("", !0)
|
|
425
420
|
]),
|
|
426
|
-
fileSlot: a(({ text: o }) => [
|
|
427
|
-
o ? (l(),
|
|
421
|
+
fileSlot: a(({ text: o, record: u, column: r }) => [
|
|
422
|
+
o ? (l(), c(s, {
|
|
428
423
|
key: 1,
|
|
429
424
|
ghost: !0,
|
|
430
425
|
type: "primary",
|
|
431
426
|
preIcon: "ant-design:download",
|
|
432
427
|
size: "small",
|
|
433
|
-
onClick: (
|
|
428
|
+
onClick: (O) => e.downloadRowFile(o, u, r, e.ID)
|
|
434
429
|
}, {
|
|
435
430
|
default: a(() => [
|
|
436
|
-
|
|
431
|
+
T(" 下载 ")
|
|
437
432
|
]),
|
|
438
433
|
_: 2
|
|
439
|
-
}, 1032, ["onClick"])) : (l(),
|
|
434
|
+
}, 1032, ["onClick"])) : (l(), h("span", go, "无文件"))
|
|
440
435
|
]),
|
|
441
436
|
imgSlot: a(({ text: o }) => [
|
|
442
|
-
o ? (l(),
|
|
437
|
+
o ? (l(), h("img", {
|
|
443
438
|
key: 1,
|
|
444
439
|
src: e.getImgView(o),
|
|
445
440
|
alt: "图片不存在",
|
|
446
441
|
class: "online-cell-image",
|
|
447
|
-
onClick: (
|
|
448
|
-
}, null, 8,
|
|
442
|
+
onClick: (u) => e.viewOnlineCellImage(o)
|
|
443
|
+
}, null, 8, fo)) : (l(), h("span", ho, "无图片"))
|
|
449
444
|
]),
|
|
450
|
-
htmlSlot: a(({ text: o }) => [
|
|
451
|
-
|
|
445
|
+
htmlSlot: a(({ text: o, column: u, record: r }) => [
|
|
446
|
+
u.fieldHref ? (l(), h("a", {
|
|
447
|
+
key: 0,
|
|
448
|
+
innerHTML: o,
|
|
449
|
+
onClick: (O) => e.handleClickFieldHref(u.fieldHref, r)
|
|
450
|
+
}, null, 8, Co)) : (l(), h("div", {
|
|
451
|
+
key: 1,
|
|
452
|
+
innerHTML: o
|
|
453
|
+
}, null, 8, yo))
|
|
452
454
|
]),
|
|
453
455
|
pcaSlot: a(({ text: o }) => [
|
|
454
|
-
|
|
456
|
+
q("div", {
|
|
455
457
|
title: e.getPcaText(o)
|
|
456
|
-
},
|
|
458
|
+
}, D(e.getPcaText(o)), 9, wo)
|
|
457
459
|
]),
|
|
458
|
-
dateSlot: a(({ text: o }) => [
|
|
459
|
-
|
|
460
|
+
dateSlot: a(({ text: o, column: u }) => [
|
|
461
|
+
q("span", null, D(e.getFormatDate(o, u)), 1)
|
|
460
462
|
]),
|
|
461
463
|
action: a(({ record: o }) => [
|
|
462
|
-
f
|
|
464
|
+
C(f, {
|
|
463
465
|
actions: e.getActions(o),
|
|
464
466
|
dropDownActions: e.getTreeDropDownActions(o)
|
|
465
467
|
}, null, 8, ["actions", "dropDownActions"])
|
|
466
468
|
]),
|
|
467
469
|
_: 1
|
|
468
470
|
}, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
469
|
-
|
|
471
|
+
C(v, {
|
|
470
472
|
id: e.ID,
|
|
471
473
|
onRegister: e.registerModal,
|
|
472
474
|
onSuccess: e.handlerFormSuccess,
|
|
473
475
|
onFormConfig: e.handleFormConfig
|
|
474
476
|
}, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
475
|
-
|
|
477
|
+
C(L, {
|
|
476
478
|
onRegister: e.registerImportModal,
|
|
477
479
|
url: e.importUrl(),
|
|
478
480
|
onOk: e.reload,
|
|
479
481
|
online: ""
|
|
480
482
|
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
481
|
-
|
|
483
|
+
C(F, Xe(e.hrefComponent.model, Ye(e.hrefComponent.on)), {
|
|
482
484
|
default: a(() => [
|
|
483
|
-
(l(),
|
|
485
|
+
(l(), c(Ze(e.hrefComponent.is), xe(eo(e.hrefComponent.params)), null, 16))
|
|
484
486
|
]),
|
|
485
487
|
_: 1
|
|
486
488
|
}, 16),
|
|
487
|
-
|
|
489
|
+
C(A, {
|
|
488
490
|
onRegister: e.registerCustomModal,
|
|
489
491
|
onSuccess: e.reload
|
|
490
492
|
}, null, 8, ["onRegister", "onSuccess"]),
|
|
491
|
-
|
|
493
|
+
C(M, {
|
|
492
494
|
id: e.ID,
|
|
493
495
|
onRegister: e.registerDetailModal
|
|
494
496
|
}, null, 8, ["id", "onRegister"])
|
|
495
497
|
]);
|
|
496
498
|
}
|
|
497
|
-
const
|
|
499
|
+
const $n = /* @__PURE__ */ po(mo, [["render", bo]]);
|
|
498
500
|
export {
|
|
499
|
-
|
|
501
|
+
$n as default
|
|
500
502
|
};
|