@jeecg/online 3.6.2-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-6de335e3.mjs +84 -0
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/AuthDataConfig-5c3a8e6b.mjs +238 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/AuthManagerDrawer-76f15e8d.mjs +119 -0
- package/AuthSetterModal-f5d2e87f.mjs +274 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
- package/CheckDictTable-1bc8322d.mjs +229 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/CodeFileViewModal-2fe911f4.mjs +253 -0
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/CustomButtonList-f07bc695.mjs +397 -0
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/DetailForm-deecbf3d.mjs +486 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
- package/EnhanceJsModal-175357a1.mjs +548 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
- package/ExtendConfigModal-a89ae052.mjs +117 -0
- package/FieldExtendJsonModal-32135634.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
- package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
- package/LinkTableConfigModal-9242d750.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/OnlCgformErpList-58acdfa0.mjs +470 -0
- package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
- package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
- package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
- package/OnlCgformTabList-019ad753.mjs +408 -0
- package/OnlineAutoList-48589d09.mjs +493 -0
- package/OnlineAutoModal-c2928847.mjs +239 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-022ca117.mjs +342 -0
- package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
- package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
- package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
- package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
- package/OnlineTabForm-27655c83.mjs +817 -0
- package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
- package/PageAttributeTable-25e3b7da.mjs +466 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
- package/QueryTable-f7bfca7f.mjs +147 -0
- package/SetSwitchOptions-b2af757f.mjs +62 -0
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/auth.data-511e5197.mjs +217 -0
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
- package/index-1d1a6e56.mjs +57 -0
- package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
- package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-f41d4dc1.mjs +426 -0
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-bfac4ecf.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgformModal-eccfc38e.mjs +0 -611
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeFileViewModal-373e8058.mjs +0 -244
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/CustomButtonList-02e3d897.mjs +0 -363
- package/DbToOnlineModal-9f13956f.mjs +0 -160
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/JOnlineSearchSelect-c287af12.mjs +0 -95
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/auth.data-8be5c9e3.mjs +0 -141
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- package/useListButton-cdbab702.mjs +0 -676
- package/useTableSync-774c3774.mjs +0 -87
|
@@ -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-c2928847.mjs";
|
|
20
|
+
import Ne from "./OnlineDetailModal-d5895734.mjs";
|
|
21
|
+
import Ve from "./OnlineCustomModal-9e17b6ce.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-bfac4ecf.mjs";
|
|
25
|
+
import { u as io, a as lo, g as ro } from "./useExtendComponent-dcae5c78.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-eedb9a60.mjs";
|
|
28
|
+
import uo from "./SuperQuery-a8592995.mjs";
|
|
29
|
+
import { b as N } from "./constant-fa63bd66.mjs";
|
|
30
|
+
import { _ as po } from "./index-1d1a6e56.mjs";
|
|
31
31
|
import "/@/components/Modal";
|
|
32
|
-
import "./OnlineForm-
|
|
32
|
+
import "./OnlineForm-9f1153ba.mjs";
|
|
33
33
|
import "/@/components/Form/index";
|
|
34
34
|
import "lodash-es";
|
|
35
35
|
import "/@/utils";
|
|
@@ -43,88 +43,93 @@ 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 "/@/store/modules/permission";
|
|
49
|
+
import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
|
|
50
|
+
import "/@/components/Form/src/componentMap";
|
|
49
51
|
import "/@/utils/propTypes";
|
|
50
|
-
import "/@/
|
|
52
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
53
|
+
import "/@/views/system/user/user.api";
|
|
54
|
+
import "/@/utils/desform/customExpression";
|
|
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-f3a8e0d7.mjs";
|
|
61
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
62
|
+
import "/@/api/common/api";
|
|
63
|
+
import "/@/assets/images/placeholderImage.png";
|
|
64
|
+
import "./OnlineSelectCascade-05c40fef.mjs";
|
|
65
|
+
import "./JModalTip-b055ab60.mjs";
|
|
66
|
+
import "ant-design-vue";
|
|
67
|
+
import "@vueuse/core";
|
|
68
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
69
|
+
import "./OnlineFormDetail-022ca117.mjs";
|
|
70
|
+
import "./DetailForm-deecbf3d.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-58e896ce.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-8499a318.mjs";
|
|
74
|
-
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
75
|
-
import "./JModalTip-33c7dc44.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 "/@/utils/
|
|
80
|
-
import "/@/
|
|
81
|
-
const
|
|
84
|
+
import "/@/utils/index";
|
|
85
|
+
import "/@/hooks/web/useDesign";
|
|
86
|
+
const mo = {
|
|
82
87
|
name: "DefaultOnlineList",
|
|
83
88
|
components: {
|
|
84
89
|
BasicTable: Je,
|
|
85
|
-
TableAction:
|
|
86
|
-
OnlineAutoModal:
|
|
87
|
-
JImportModal:
|
|
88
|
-
OnlineQueryForm:
|
|
89
|
-
OnlineSuperQuery:
|
|
90
|
-
OnlineCustomModal:
|
|
91
|
-
OnlineDetailModal:
|
|
90
|
+
TableAction: Ke,
|
|
91
|
+
OnlineAutoModal: qe,
|
|
92
|
+
JImportModal: oo,
|
|
93
|
+
OnlineQueryForm: so,
|
|
94
|
+
OnlineSuperQuery: uo,
|
|
95
|
+
OnlineCustomModal: Ve,
|
|
96
|
+
OnlineDetailModal: Ne
|
|
92
97
|
},
|
|
93
98
|
setup() {
|
|
94
|
-
const { createMessage: e } =
|
|
99
|
+
const { createMessage: e } = Pe(), S = K(), {
|
|
95
100
|
ID: m,
|
|
96
101
|
onlineTableContext: i,
|
|
97
102
|
onlineQueryFormOuter: k,
|
|
98
|
-
loading:
|
|
99
|
-
reload:
|
|
100
|
-
dataSource:
|
|
101
|
-
pagination:
|
|
102
|
-
handleSpecialConfig:
|
|
103
|
-
getColumnList:
|
|
103
|
+
loading: w,
|
|
104
|
+
reload: g,
|
|
105
|
+
dataSource: s,
|
|
106
|
+
pagination: d,
|
|
107
|
+
handleSpecialConfig: f,
|
|
108
|
+
getColumnList: E,
|
|
104
109
|
handleChangeInTable: v,
|
|
105
|
-
loadData:
|
|
106
|
-
superQueryButtonRef:
|
|
107
|
-
superQueryStatus:
|
|
108
|
-
handleSuperQuery:
|
|
110
|
+
loadData: L,
|
|
111
|
+
superQueryButtonRef: F,
|
|
112
|
+
superQueryStatus: A,
|
|
113
|
+
handleSuperQuery: M,
|
|
109
114
|
registerCustomModal: o,
|
|
110
|
-
getTreeDataByResult:
|
|
111
|
-
expandedRowKeys:
|
|
112
|
-
handleExpandedRowsChange:
|
|
115
|
+
getTreeDataByResult: u,
|
|
116
|
+
expandedRowKeys: r,
|
|
117
|
+
handleExpandedRowsChange: O,
|
|
113
118
|
tableReloading: V,
|
|
114
|
-
onlineExtConfigJson:
|
|
119
|
+
onlineExtConfigJson: _,
|
|
115
120
|
handleFormConfig: z
|
|
116
|
-
} =
|
|
121
|
+
} = no();
|
|
117
122
|
if (!m.value)
|
|
118
123
|
throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
119
124
|
i.isTree(!0);
|
|
120
|
-
let { initCgEnhanceJs: j } =
|
|
125
|
+
let { initCgEnhanceJs: j } = io(i);
|
|
121
126
|
const {
|
|
122
127
|
buttonSwitch: U,
|
|
123
128
|
cgLinkButtonList: W,
|
|
124
129
|
cgTopButtonList: G,
|
|
125
130
|
importUrl: X,
|
|
126
131
|
registerModal: Y,
|
|
127
|
-
handleAdd:
|
|
132
|
+
handleAdd: Q,
|
|
128
133
|
handleEdit: Z,
|
|
129
134
|
handleBatchDelete: x,
|
|
130
135
|
registerImportModal: ee,
|
|
@@ -133,13 +138,13 @@ const po = {
|
|
|
133
138
|
cgButtonJsHandler: te,
|
|
134
139
|
cgButtonActionHandler: ie,
|
|
135
140
|
cgButtonLinkHandler: le,
|
|
136
|
-
handleSubmitFlow:
|
|
137
|
-
getDropDownActions:
|
|
141
|
+
handleSubmitFlow: re,
|
|
142
|
+
getDropDownActions: ae,
|
|
138
143
|
getActions: se,
|
|
139
144
|
initButtonList: ue,
|
|
140
145
|
initButtonSwitch: de,
|
|
141
146
|
registerDetailModal: pe
|
|
142
|
-
} =
|
|
147
|
+
} = to(i, _), {
|
|
143
148
|
columns: me,
|
|
144
149
|
actionColumn: ce,
|
|
145
150
|
selectedKeys: ge,
|
|
@@ -149,108 +154,109 @@ const po = {
|
|
|
149
154
|
downloadRowFile: ye,
|
|
150
155
|
getImgView: we,
|
|
151
156
|
getPcaText: be,
|
|
152
|
-
getFormatDate:
|
|
153
|
-
handleColumnResult:
|
|
157
|
+
getFormatDate: Te,
|
|
158
|
+
handleColumnResult: Se,
|
|
154
159
|
hrefComponent: ke,
|
|
155
|
-
viewOnlineCellImage:
|
|
156
|
-
|
|
157
|
-
|
|
160
|
+
viewOnlineCellImage: Fe,
|
|
161
|
+
handleClickFieldHref: Re
|
|
162
|
+
} = lo(i, _);
|
|
163
|
+
ze(
|
|
158
164
|
m,
|
|
159
165
|
() => {
|
|
160
|
-
|
|
166
|
+
Ie();
|
|
161
167
|
},
|
|
162
168
|
{ immediate: !0 }
|
|
163
169
|
);
|
|
164
|
-
function
|
|
170
|
+
function Ie() {
|
|
165
171
|
return B(this, null, function* () {
|
|
166
|
-
|
|
167
|
-
let n = yield
|
|
168
|
-
|
|
172
|
+
w.value = !0;
|
|
173
|
+
let n = yield E(N);
|
|
174
|
+
Be(n), yield L(), w.value = !1, i.execButtonEnhance("setup");
|
|
169
175
|
});
|
|
170
176
|
}
|
|
171
|
-
function
|
|
177
|
+
function Be(n) {
|
|
172
178
|
let t = j(n.enhanceJs);
|
|
173
|
-
i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns),
|
|
179
|
+
i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns), Se(n), f(n), i.hasChildrenField = n.hasChildrenField, i.pidField = n.pidField;
|
|
174
180
|
}
|
|
175
|
-
function
|
|
176
|
-
i.queryParam = n, t === !0 ?
|
|
181
|
+
function De(n, t) {
|
|
182
|
+
i.queryParam = n, t === !0 ? g({ mode: "search" }) : $();
|
|
177
183
|
}
|
|
178
184
|
function Ee(n) {
|
|
179
185
|
return B(this, null, function* () {
|
|
180
|
-
yield
|
|
186
|
+
yield ro(F), F.value.init(n);
|
|
181
187
|
});
|
|
182
188
|
}
|
|
183
|
-
function
|
|
184
|
-
let b =
|
|
189
|
+
function ve(n, t) {
|
|
190
|
+
let b = r.value;
|
|
185
191
|
if (n) {
|
|
186
|
-
if (
|
|
187
|
-
let
|
|
192
|
+
if (Le(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
|
|
193
|
+
let R = i.hasChildrenField;
|
|
188
194
|
const { sortField: _e, sortType: Qe } = i;
|
|
189
|
-
let
|
|
190
|
-
|
|
195
|
+
let H = Object.assign({}, { column: _e, order: Qe });
|
|
196
|
+
H[i.pidField] = t.id, H[R] = t[R];
|
|
191
197
|
let $e = `${i.onlineUrl.getTreeData}${i.ID}`;
|
|
192
|
-
ao.get({ url: $e, params:
|
|
193
|
-
I.success ? Number(I.result.total) > 0 ? t.children =
|
|
198
|
+
ao.get({ url: $e, params: H }, { isTransformResponse: !1 }).then((I) => {
|
|
199
|
+
I.success ? Number(I.result.total) > 0 ? t.children = u(I.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(I.message);
|
|
194
200
|
}).catch(() => {
|
|
195
201
|
e.warning("加载子节点失败!");
|
|
196
202
|
});
|
|
197
203
|
}
|
|
198
204
|
} else {
|
|
199
|
-
let
|
|
200
|
-
|
|
205
|
+
let R = b.indexOf(t.id);
|
|
206
|
+
R >= 0 && (r.value = b.splice(R, 1));
|
|
201
207
|
}
|
|
202
208
|
}
|
|
203
|
-
function
|
|
204
|
-
let t =
|
|
205
|
-
t && t.indexOf(n) < 0 && t.push(n),
|
|
209
|
+
function Le(n) {
|
|
210
|
+
let t = r.value;
|
|
211
|
+
t && t.indexOf(n) < 0 && t.push(n), r.value = t;
|
|
206
212
|
}
|
|
207
|
-
function
|
|
213
|
+
function $() {
|
|
208
214
|
return B(this, null, function* () {
|
|
209
|
-
i.isTree() === !0 && (
|
|
215
|
+
i.isTree() === !0 && (r.value = [], S.value.collapseAll()), g();
|
|
210
216
|
});
|
|
211
217
|
}
|
|
212
218
|
function Ae(n) {
|
|
213
|
-
if (
|
|
219
|
+
if (J.value === !0) {
|
|
214
220
|
let t = n[i.pidField];
|
|
215
221
|
if (t) {
|
|
216
|
-
let b =
|
|
217
|
-
b.indexOf(t) < 0 && b.push(t),
|
|
222
|
+
let b = r.value;
|
|
223
|
+
b.indexOf(t) < 0 && b.push(t), r.value = b;
|
|
218
224
|
}
|
|
219
225
|
}
|
|
220
|
-
|
|
226
|
+
g();
|
|
221
227
|
}
|
|
222
|
-
const
|
|
228
|
+
const Me = (n) => ({
|
|
223
229
|
label: "添加下级",
|
|
224
230
|
onClick: Oe.bind(null, n)
|
|
225
|
-
}),
|
|
231
|
+
}), J = K(!1);
|
|
226
232
|
function Oe(n) {
|
|
227
|
-
|
|
233
|
+
J.value = !0;
|
|
228
234
|
let t = {
|
|
229
235
|
[i.pidField]: n.id
|
|
230
236
|
};
|
|
231
|
-
|
|
237
|
+
Q(t);
|
|
232
238
|
}
|
|
233
|
-
function
|
|
234
|
-
let t =
|
|
235
|
-
return t.unshift(
|
|
239
|
+
function He(n) {
|
|
240
|
+
let t = ae(n, { themeTemplate: N });
|
|
241
|
+
return t.unshift(Me(n)), t;
|
|
236
242
|
}
|
|
237
243
|
return {
|
|
238
244
|
ID: m,
|
|
239
245
|
// 查询区域
|
|
240
246
|
onlineQueryFormOuter: k,
|
|
241
|
-
queryWithCondition:
|
|
247
|
+
queryWithCondition: De,
|
|
242
248
|
onQueryFormLoaded: Ee,
|
|
243
|
-
reload:
|
|
249
|
+
reload: g,
|
|
244
250
|
//高级查询
|
|
245
|
-
superQueryButtonRef:
|
|
246
|
-
superQueryStatus:
|
|
247
|
-
handleSuperQuery:
|
|
251
|
+
superQueryButtonRef: F,
|
|
252
|
+
superQueryStatus: A,
|
|
253
|
+
handleSuperQuery: M,
|
|
248
254
|
// table区域
|
|
249
|
-
loading:
|
|
255
|
+
loading: w,
|
|
250
256
|
columns: me,
|
|
251
257
|
actionColumn: ce,
|
|
252
|
-
dataSource:
|
|
253
|
-
pagination:
|
|
258
|
+
dataSource: s,
|
|
259
|
+
pagination: d,
|
|
254
260
|
rowSelection: he,
|
|
255
261
|
selectedKeys: ge,
|
|
256
262
|
tableScroll: Ce,
|
|
@@ -258,7 +264,7 @@ const po = {
|
|
|
258
264
|
handleChangeInTable: v,
|
|
259
265
|
//按钮
|
|
260
266
|
buttonSwitch: U,
|
|
261
|
-
handleAdd:
|
|
267
|
+
handleAdd: Q,
|
|
262
268
|
handleEdit: Z,
|
|
263
269
|
onImportExcel: oe,
|
|
264
270
|
onExportExcel: ne,
|
|
@@ -272,10 +278,10 @@ const po = {
|
|
|
272
278
|
downloadRowFile: ye,
|
|
273
279
|
getImgView: we,
|
|
274
280
|
getPcaText: be,
|
|
275
|
-
getFormatDate:
|
|
281
|
+
getFormatDate: Te,
|
|
276
282
|
// 操作列
|
|
277
283
|
getActions: se,
|
|
278
|
-
getTreeDropDownActions:
|
|
284
|
+
getTreeDropDownActions: He,
|
|
279
285
|
// 弹窗
|
|
280
286
|
registerModal: Y,
|
|
281
287
|
registerCustomModal: o,
|
|
@@ -284,17 +290,18 @@ const po = {
|
|
|
284
290
|
handleFormConfig: z,
|
|
285
291
|
//其他
|
|
286
292
|
tableReloading: V,
|
|
287
|
-
handleSubmitFlow:
|
|
293
|
+
handleSubmitFlow: re,
|
|
288
294
|
hrefComponent: ke,
|
|
289
|
-
viewOnlineCellImage:
|
|
295
|
+
viewOnlineCellImage: Fe,
|
|
290
296
|
//树特定的配置
|
|
291
|
-
onlineTreeTableRef:
|
|
297
|
+
onlineTreeTableRef: S,
|
|
292
298
|
handlerFormSuccess: Ae,
|
|
293
|
-
searchReset:
|
|
294
|
-
handleExpand:
|
|
295
|
-
expandedRowKeys:
|
|
296
|
-
handleExpandedRowsChange:
|
|
297
|
-
registerDetailModal: pe
|
|
299
|
+
searchReset: $,
|
|
300
|
+
handleExpand: ve,
|
|
301
|
+
expandedRowKeys: r,
|
|
302
|
+
handleExpandedRowsChange: O,
|
|
303
|
+
registerDetailModal: pe,
|
|
304
|
+
handleClickFieldHref: Re
|
|
298
305
|
};
|
|
299
306
|
}
|
|
300
307
|
// 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
|
|
@@ -306,23 +313,23 @@ const po = {
|
|
|
306
313
|
// TODO 积木报表打印地址
|
|
307
314
|
// const reportPrintUrl = ref('')
|
|
308
315
|
};
|
|
309
|
-
const
|
|
316
|
+
const co = { class: "p-2" }, go = {
|
|
310
317
|
key: 0,
|
|
311
318
|
style: { "font-size": "12px", "font-style": "italic" }
|
|
312
|
-
},
|
|
319
|
+
}, ho = {
|
|
313
320
|
key: 0,
|
|
314
321
|
style: { "font-size": "12px", "font-style": "italic" }
|
|
315
|
-
},
|
|
316
|
-
function
|
|
317
|
-
const
|
|
318
|
-
return l(),
|
|
319
|
-
|
|
322
|
+
}, fo = ["src", "onClick"], Co = ["innerHTML", "onClick"], yo = ["innerHTML"], wo = ["title"];
|
|
323
|
+
function bo(e, S, m, i, k, w) {
|
|
324
|
+
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");
|
|
325
|
+
return l(), h("div", co, [
|
|
326
|
+
C(g, {
|
|
320
327
|
ref: "onlineQueryFormOuter",
|
|
321
328
|
id: e.ID,
|
|
322
329
|
onSearch: e.queryWithCondition,
|
|
323
330
|
onLoaded: e.onQueryFormLoaded
|
|
324
331
|
}, null, 8, ["id", "onSearch", "onLoaded"]),
|
|
325
|
-
e.tableReloading ?
|
|
332
|
+
e.tableReloading ? y("", !0) : (l(), c(E, {
|
|
326
333
|
key: 0,
|
|
327
334
|
ref: "onlineTreeTableRef",
|
|
328
335
|
isTreeTable: !0,
|
|
@@ -343,158 +350,154 @@ function yo(e, T, m, i, k, y) {
|
|
|
343
350
|
clickToRowSelect: !1,
|
|
344
351
|
scroll: e.tableScroll,
|
|
345
352
|
onTableRedo: e.reload,
|
|
346
|
-
class:
|
|
353
|
+
class: je({ "j-table-force-nowrap": e.enableScrollBar }),
|
|
347
354
|
onChange: e.handleChangeInTable
|
|
348
355
|
}, {
|
|
349
356
|
tableTitle: a(() => [
|
|
350
|
-
e.buttonSwitch.add ? (l(),
|
|
357
|
+
e.buttonSwitch.add ? (l(), c(s, {
|
|
351
358
|
key: 0,
|
|
352
359
|
preIcon: "ant-design:plus-outlined",
|
|
353
360
|
type: "primary",
|
|
354
361
|
onClick: e.handleAdd
|
|
355
362
|
}, {
|
|
356
363
|
default: a(() => [
|
|
357
|
-
|
|
364
|
+
T("新增")
|
|
358
365
|
]),
|
|
359
366
|
_: 1
|
|
360
|
-
}, 8, ["onClick"])) :
|
|
361
|
-
e.buttonSwitch.
|
|
367
|
+
}, 8, ["onClick"])) : y("", !0),
|
|
368
|
+
e.buttonSwitch.export ? (l(), c(s, {
|
|
362
369
|
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
370
|
preIcon: "ant-design:export-outlined",
|
|
375
371
|
type: "primary",
|
|
376
372
|
onClick: e.onExportExcel
|
|
377
373
|
}, {
|
|
378
374
|
default: a(() => [
|
|
379
|
-
|
|
375
|
+
T(" 导出")
|
|
380
376
|
]),
|
|
381
377
|
_: 1
|
|
382
|
-
}, 8, ["onClick"])) :
|
|
383
|
-
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0),
|
|
384
|
-
o.optType == "js" ? (l(),
|
|
385
|
-
key: "cgbtn" +
|
|
386
|
-
onClick: (
|
|
378
|
+
}, 8, ["onClick"])) : y("", !0),
|
|
379
|
+
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0), h(P, { key: 2 }, Ue(e.cgTopButtonList, (o, u) => (l(), h(P, null, [
|
|
380
|
+
o.optType == "js" ? (l(), c(s, {
|
|
381
|
+
key: "cgbtn" + u,
|
|
382
|
+
onClick: (r) => e.cgButtonJsHandler(o.buttonCode),
|
|
387
383
|
type: "primary",
|
|
388
384
|
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
389
385
|
}, {
|
|
390
386
|
default: a(() => [
|
|
391
|
-
|
|
387
|
+
T(D(o.buttonName), 1)
|
|
392
388
|
]),
|
|
393
389
|
_: 2
|
|
394
|
-
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(),
|
|
395
|
-
key: "cgbtn" +
|
|
396
|
-
onClick: (
|
|
390
|
+
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), c(s, {
|
|
391
|
+
key: "cgbtn" + u,
|
|
392
|
+
onClick: (r) => e.cgButtonActionHandler(o.buttonCode),
|
|
397
393
|
type: "primary",
|
|
398
394
|
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
399
395
|
}, {
|
|
400
396
|
default: a(() => [
|
|
401
|
-
|
|
397
|
+
T(D(o.buttonName), 1)
|
|
402
398
|
]),
|
|
403
399
|
_: 2
|
|
404
|
-
}, 1032, ["onClick", "preIcon"])) :
|
|
405
|
-
], 64))), 256)) :
|
|
406
|
-
e.buttonSwitch.batch_delete ?
|
|
407
|
-
key:
|
|
400
|
+
}, 1032, ["onClick", "preIcon"])) : y("", !0)
|
|
401
|
+
], 64))), 256)) : y("", !0),
|
|
402
|
+
e.buttonSwitch.batch_delete ? We((l(), c(s, {
|
|
403
|
+
key: 3,
|
|
408
404
|
preIcon: "ant-design:delete-outlined",
|
|
409
405
|
onClick: e.handleBatchDelete
|
|
410
406
|
}, {
|
|
411
407
|
default: a(() => [
|
|
412
|
-
|
|
408
|
+
T(" 批量删除")
|
|
413
409
|
]),
|
|
414
410
|
_: 1
|
|
415
411
|
}, 8, ["onClick"])), [
|
|
416
|
-
[
|
|
417
|
-
]) :
|
|
418
|
-
e.buttonSwitch.super_query ? (l(),
|
|
419
|
-
key:
|
|
412
|
+
[Ge, e.selectedKeys.length > 0]
|
|
413
|
+
]) : y("", !0),
|
|
414
|
+
e.buttonSwitch.super_query ? (l(), c(d, {
|
|
415
|
+
key: 4,
|
|
420
416
|
ref: "superQueryButtonRef",
|
|
421
417
|
online: "",
|
|
422
418
|
status: e.superQueryStatus,
|
|
423
419
|
onSearch: e.handleSuperQuery
|
|
424
|
-
}, null, 8, ["status", "onSearch"])) :
|
|
420
|
+
}, null, 8, ["status", "onSearch"])) : y("", !0)
|
|
425
421
|
]),
|
|
426
|
-
fileSlot: a(({ text: o }) => [
|
|
427
|
-
o ? (l(),
|
|
422
|
+
fileSlot: a(({ text: o, record: u, column: r }) => [
|
|
423
|
+
o ? (l(), c(s, {
|
|
428
424
|
key: 1,
|
|
429
425
|
ghost: !0,
|
|
430
426
|
type: "primary",
|
|
431
427
|
preIcon: "ant-design:download",
|
|
432
428
|
size: "small",
|
|
433
|
-
onClick: (
|
|
429
|
+
onClick: (O) => e.downloadRowFile(o, u, r, e.ID)
|
|
434
430
|
}, {
|
|
435
431
|
default: a(() => [
|
|
436
|
-
|
|
432
|
+
T(" 下载 ")
|
|
437
433
|
]),
|
|
438
434
|
_: 2
|
|
439
|
-
}, 1032, ["onClick"])) : (l(),
|
|
435
|
+
}, 1032, ["onClick"])) : (l(), h("span", go, "无文件"))
|
|
440
436
|
]),
|
|
441
437
|
imgSlot: a(({ text: o }) => [
|
|
442
|
-
o ? (l(),
|
|
438
|
+
o ? (l(), h("img", {
|
|
443
439
|
key: 1,
|
|
444
440
|
src: e.getImgView(o),
|
|
445
441
|
alt: "图片不存在",
|
|
446
442
|
class: "online-cell-image",
|
|
447
|
-
onClick: (
|
|
448
|
-
}, null, 8,
|
|
443
|
+
onClick: (u) => e.viewOnlineCellImage(o)
|
|
444
|
+
}, null, 8, fo)) : (l(), h("span", ho, "无图片"))
|
|
449
445
|
]),
|
|
450
|
-
htmlSlot: a(({ text: o }) => [
|
|
451
|
-
|
|
446
|
+
htmlSlot: a(({ text: o, column: u, record: r }) => [
|
|
447
|
+
u.fieldHref ? (l(), h("a", {
|
|
448
|
+
key: 0,
|
|
449
|
+
innerHTML: o,
|
|
450
|
+
onClick: (O) => e.handleClickFieldHref(u.fieldHref, r)
|
|
451
|
+
}, null, 8, Co)) : (l(), h("div", {
|
|
452
|
+
key: 1,
|
|
453
|
+
innerHTML: o
|
|
454
|
+
}, null, 8, yo))
|
|
452
455
|
]),
|
|
453
456
|
pcaSlot: a(({ text: o }) => [
|
|
454
|
-
|
|
457
|
+
q("div", {
|
|
455
458
|
title: e.getPcaText(o)
|
|
456
|
-
},
|
|
459
|
+
}, D(e.getPcaText(o)), 9, wo)
|
|
457
460
|
]),
|
|
458
|
-
dateSlot: a(({ text: o }) => [
|
|
459
|
-
|
|
461
|
+
dateSlot: a(({ text: o, column: u }) => [
|
|
462
|
+
q("span", null, D(e.getFormatDate(o, u)), 1)
|
|
460
463
|
]),
|
|
461
464
|
action: a(({ record: o }) => [
|
|
462
|
-
f
|
|
465
|
+
C(f, {
|
|
463
466
|
actions: e.getActions(o),
|
|
464
467
|
dropDownActions: e.getTreeDropDownActions(o)
|
|
465
468
|
}, null, 8, ["actions", "dropDownActions"])
|
|
466
469
|
]),
|
|
467
470
|
_: 1
|
|
468
471
|
}, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
469
|
-
|
|
472
|
+
C(v, {
|
|
470
473
|
id: e.ID,
|
|
471
474
|
onRegister: e.registerModal,
|
|
472
475
|
onSuccess: e.handlerFormSuccess,
|
|
473
476
|
onFormConfig: e.handleFormConfig
|
|
474
477
|
}, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
475
|
-
|
|
478
|
+
C(L, {
|
|
476
479
|
onRegister: e.registerImportModal,
|
|
477
480
|
url: e.importUrl(),
|
|
478
481
|
onOk: e.reload,
|
|
479
482
|
online: ""
|
|
480
483
|
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
481
|
-
|
|
484
|
+
C(F, Xe(e.hrefComponent.model, Ye(e.hrefComponent.on)), {
|
|
482
485
|
default: a(() => [
|
|
483
|
-
(l(),
|
|
486
|
+
(l(), c(Ze(e.hrefComponent.is), xe(eo(e.hrefComponent.params)), null, 16))
|
|
484
487
|
]),
|
|
485
488
|
_: 1
|
|
486
489
|
}, 16),
|
|
487
|
-
|
|
490
|
+
C(A, {
|
|
488
491
|
onRegister: e.registerCustomModal,
|
|
489
492
|
onSuccess: e.reload
|
|
490
493
|
}, null, 8, ["onRegister", "onSuccess"]),
|
|
491
|
-
|
|
494
|
+
C(M, {
|
|
492
495
|
id: e.ID,
|
|
493
496
|
onRegister: e.registerDetailModal
|
|
494
497
|
}, null, 8, ["id", "onRegister"])
|
|
495
498
|
]);
|
|
496
499
|
}
|
|
497
|
-
const
|
|
500
|
+
const Jn = /* @__PURE__ */ po(mo, [["render", bo]]);
|
|
498
501
|
export {
|
|
499
|
-
|
|
502
|
+
Jn as default
|
|
500
503
|
};
|