@jeecg/online 3.6.2-beta → 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-3aa0ed49.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-eccfc38e.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-5a23d089.mjs} +154 -131
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-373e8058.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-02e3d897.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-9f13956f.mjs → DbToOnlineModal-f49b9530.mjs} +57 -51
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-33c7dc44.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-c287af12.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-fa85523d.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.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-89265688.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-9675390d.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-0cc85a8a.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.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-67558898.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-49508cad.mjs → index-581bef24.mjs} +29 -27
- package/{index-b7a05eef.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-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/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- 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/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/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
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
var I = Object.defineProperty;
|
|
2
|
-
var w = Object.getOwnPropertySymbols;
|
|
3
|
-
var L = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var C = (o, a, l) => a in o ? I(o, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : o[a] = l, y = (o, a) => {
|
|
5
|
-
for (var l in a || (a = {}))
|
|
6
|
-
L.call(a, l) && C(o, l, a[l]);
|
|
7
|
-
if (w)
|
|
8
|
-
for (var l of w(a))
|
|
9
|
-
R.call(a, l) && C(o, l, a[l]);
|
|
10
|
-
return o;
|
|
11
|
-
};
|
|
12
|
-
var m = (o, a, l) => new Promise((r, n) => {
|
|
13
|
-
var b = (t) => {
|
|
14
|
-
try {
|
|
15
|
-
s(l.next(t));
|
|
16
|
-
} catch (d) {
|
|
17
|
-
n(d);
|
|
18
|
-
}
|
|
19
|
-
}, f = (t) => {
|
|
20
|
-
try {
|
|
21
|
-
s(l.throw(t));
|
|
22
|
-
} catch (d) {
|
|
23
|
-
n(d);
|
|
24
|
-
}
|
|
25
|
-
}, s = (t) => t.done ? r(t.value) : Promise.resolve(t.value).then(b, f);
|
|
26
|
-
s((l = l.apply(o, a)).next());
|
|
27
|
-
});
|
|
28
|
-
import { BasicModal as J, useModalInner as q } from "/@/components/Modal";
|
|
29
|
-
import { ref as u, computed as G, resolveComponent as h, openBlock as H, createBlock as K, mergeProps as z, withCtx as k, createVNode as S } from "vue";
|
|
30
|
-
import { BasicForm as A, useForm as $ } from "/@/components/Form/index";
|
|
31
|
-
import { defHttp as j } from "/@/utils/http/axios";
|
|
32
|
-
import { omit as D } from "lodash-es";
|
|
33
|
-
import { _ as E } from "./index-0e3ab3af.mjs";
|
|
34
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
35
|
-
import "/@/hooks/web/useMessage";
|
|
36
|
-
import "vue-router";
|
|
37
|
-
const Q = {
|
|
38
|
-
name: "LinkTableConfigModal",
|
|
39
|
-
emits: ["success", "register"],
|
|
40
|
-
components: {
|
|
41
|
-
BasicModal: J,
|
|
42
|
-
BasicForm: A
|
|
43
|
-
},
|
|
44
|
-
setup(o, { emit: a }) {
|
|
45
|
-
const l = u(!1), r = u("");
|
|
46
|
-
let n = {};
|
|
47
|
-
const [b, { closeModal: f }] = q((e) => m(this, null, function* () {
|
|
48
|
-
n = y({}, e.record), yield v({ dictTable: e.record.dictTable }), setTimeout(() => m(this, null, function* () {
|
|
49
|
-
let c = D(e.record, "dictTable");
|
|
50
|
-
yield v(c), yield P();
|
|
51
|
-
}), 200), r.value = e.fieldName;
|
|
52
|
-
})), s = u(""), t = u(""), d = u([]), F = u([]);
|
|
53
|
-
function T(e) {
|
|
54
|
-
return m(this, null, function* () {
|
|
55
|
-
if (e) {
|
|
56
|
-
const c = "/online/cgform/field/listByHeadCode", p = yield j.get({ url: c, params: { headCode: e } });
|
|
57
|
-
if (p && p.length > 0) {
|
|
58
|
-
let g = p.filter((i) => i.dbFieldName != "id" && i.dbIsPersist == 1);
|
|
59
|
-
g.length > 0 ? d.value = g.map((i) => ({
|
|
60
|
-
text: i.dbFieldTxt,
|
|
61
|
-
value: i.dbFieldName
|
|
62
|
-
})) : d.value = [];
|
|
63
|
-
let _ = p.filter((i) => i.dbFieldName != "id" && i.fieldShowType == "image" && i.dbIsPersist == 1);
|
|
64
|
-
_.length > 0 ? F.value = _.map((i) => ({
|
|
65
|
-
text: i.dbFieldTxt,
|
|
66
|
-
value: i.dbFieldName
|
|
67
|
-
})) : F.value = [{ text: "无图片字段可以选择", value: "", key: "", disabled: !0 }];
|
|
68
|
-
} else
|
|
69
|
-
d.value = [], F.value = [{ text: "无图片字段可以选择", value: "", key: "", disabled: !0 }];
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function x(e) {
|
|
74
|
-
return m(this, null, function* () {
|
|
75
|
-
s.value = "", t.value = "", yield T(e);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
const V = G(() => {
|
|
79
|
-
let e = d.value, c = s.value, p = t.value;
|
|
80
|
-
return e.filter((g) => g.value != c && g.value != p);
|
|
81
|
-
}), N = [
|
|
82
|
-
{
|
|
83
|
-
label: "rowKey",
|
|
84
|
-
field: "rowKey",
|
|
85
|
-
component: "Input",
|
|
86
|
-
show: !1
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
label: "dictField",
|
|
90
|
-
field: "dictField",
|
|
91
|
-
component: "Input",
|
|
92
|
-
defaultValue: "id",
|
|
93
|
-
show: !1
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
label: "字段描述",
|
|
97
|
-
field: "dbFieldTxt",
|
|
98
|
-
component: "Input",
|
|
99
|
-
required: !0
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
label: "关联表",
|
|
103
|
-
field: "dictTable",
|
|
104
|
-
component: "JSearchSelect",
|
|
105
|
-
required: !0,
|
|
106
|
-
componentProps: ({ formActionType: e }) => ({
|
|
107
|
-
dict: "onl_cgform_head where copy_type = 0,table_txt,table_name",
|
|
108
|
-
pageSize: 10,
|
|
109
|
-
async: !0,
|
|
110
|
-
immediateChange: !0,
|
|
111
|
-
popContainer: ".link-table-config-modal",
|
|
112
|
-
params: { order: "desc", column: "create_time" },
|
|
113
|
-
onChange: (c) => m(this, null, function* () {
|
|
114
|
-
(n.titleField || n.otherFields) && (yield e.setFieldsValue({
|
|
115
|
-
titleField: "",
|
|
116
|
-
otherFields: "",
|
|
117
|
-
imageField: ""
|
|
118
|
-
}), yield e.clearValidate()), yield x(c);
|
|
119
|
-
})
|
|
120
|
-
})
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
label: "标题字段",
|
|
124
|
-
field: "titleField",
|
|
125
|
-
component: "JSearchSelect",
|
|
126
|
-
required: !0,
|
|
127
|
-
componentProps: {
|
|
128
|
-
async: !1,
|
|
129
|
-
popContainer: ".link-table-config-modal",
|
|
130
|
-
dictOptions: d,
|
|
131
|
-
immediateChange: !0,
|
|
132
|
-
onChange: (e) => {
|
|
133
|
-
s.value = e, n.titleField = e;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
label: "封面图片",
|
|
139
|
-
field: "imageField",
|
|
140
|
-
component: "JSearchSelect",
|
|
141
|
-
componentProps: {
|
|
142
|
-
async: !1,
|
|
143
|
-
popContainer: ".link-table-config-modal",
|
|
144
|
-
dictOptions: F,
|
|
145
|
-
immediateChange: !0,
|
|
146
|
-
onChange: (e) => {
|
|
147
|
-
t.value = e, n.imageFieldName = e;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
label: "其他字段",
|
|
153
|
-
field: "otherFields",
|
|
154
|
-
component: "JSelectMultiple",
|
|
155
|
-
componentProps: {
|
|
156
|
-
popContainer: ".link-table-config-modal",
|
|
157
|
-
options: V,
|
|
158
|
-
onChange: (e) => {
|
|
159
|
-
n.otherFields = e;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
label: "显示方式",
|
|
165
|
-
field: "showType",
|
|
166
|
-
component: "Select",
|
|
167
|
-
defaultValue: "card",
|
|
168
|
-
componentProps: {
|
|
169
|
-
options: [
|
|
170
|
-
{ label: "卡片", value: "card" },
|
|
171
|
-
{ label: "下拉框", value: "select" }
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
label: "是否多选",
|
|
177
|
-
field: "multiSelect",
|
|
178
|
-
component: "RadioGroup",
|
|
179
|
-
defaultValue: !1,
|
|
180
|
-
componentProps: {
|
|
181
|
-
options: [
|
|
182
|
-
{ label: "否", value: !1 },
|
|
183
|
-
{ label: "是", value: !0 }
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
], [B, { validate: M, setFieldsValue: v, clearValidate: P, resetFields: W }] = $({
|
|
188
|
-
schemas: N,
|
|
189
|
-
showActionButtonGroup: !1,
|
|
190
|
-
labelAlign: "right"
|
|
191
|
-
});
|
|
192
|
-
function O() {
|
|
193
|
-
return m(this, null, function* () {
|
|
194
|
-
let e = yield M();
|
|
195
|
-
e.fieldName = r.value, a("success", e), f();
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
return {
|
|
199
|
-
registerModal: b,
|
|
200
|
-
spinningLoading: l,
|
|
201
|
-
registerForm: B,
|
|
202
|
-
handleSubmit: O
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
function U(o, a, l, r, n, b) {
|
|
207
|
-
const f = h("BasicForm"), s = h("a-spin"), t = h("BasicModal");
|
|
208
|
-
return H(), K(t, z({ wrapClassName: "link-table-config-modal" }, o.$attrs, {
|
|
209
|
-
title: "关联记录配置",
|
|
210
|
-
onRegister: r.registerModal,
|
|
211
|
-
keyboard: "",
|
|
212
|
-
canFullscreen: !1,
|
|
213
|
-
cancelText: "关闭",
|
|
214
|
-
onOk: r.handleSubmit
|
|
215
|
-
}), {
|
|
216
|
-
default: k(() => [
|
|
217
|
-
S(s, { spinning: r.spinningLoading }, {
|
|
218
|
-
default: k(() => [
|
|
219
|
-
S(f, { onRegister: r.registerForm }, null, 8, ["onRegister"])
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
}, 8, ["spinning"])
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
}, 16, ["onRegister", "onOk"]);
|
|
226
|
-
}
|
|
227
|
-
const re = /* @__PURE__ */ E(Q, [["render", U]]);
|
|
228
|
-
export {
|
|
229
|
-
re as default
|
|
230
|
-
};
|
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
var T = (K, _, d) => new Promise((b, S) => {
|
|
2
|
-
var w = (i) => {
|
|
3
|
-
try {
|
|
4
|
-
u(d.next(i));
|
|
5
|
-
} catch (h) {
|
|
6
|
-
S(h);
|
|
7
|
-
}
|
|
8
|
-
}, L = (i) => {
|
|
9
|
-
try {
|
|
10
|
-
u(d.throw(i));
|
|
11
|
-
} catch (h) {
|
|
12
|
-
S(h);
|
|
13
|
-
}
|
|
14
|
-
}, u = (i) => i.done ? b(i.value) : Promise.resolve(i.value).then(w, L);
|
|
15
|
-
u((d = d.apply(K, _)).next());
|
|
16
|
-
});
|
|
17
|
-
import { ref as k, watch as $, resolveComponent as I, openBlock as l, createElementBlock as m, createElementVNode as E, createVNode as c, unref as e, createBlock as s, normalizeClass as Ne, withCtx as r, createTextVNode as g, createCommentVNode as p, Fragment as F, renderList as j, toDisplayString as M, withDirectives as $e, vShow as je, mergeProps as Ve, toHandlers as qe, resolveDynamicComponent as Ue, normalizeProps as Ge, guardReactiveProps as We } from "vue";
|
|
18
|
-
import { BasicTable as Xe, TableAction as Ye } from "/@/components/Table";
|
|
19
|
-
import { useMessage as Ze } from "/@/hooks/web/useMessage";
|
|
20
|
-
import eo from "./OnlineAutoModal-510991eb.mjs";
|
|
21
|
-
import oo from "./OnlineCustomModal-518ad33c.mjs";
|
|
22
|
-
import V from "./OnlineDetailModal-9675390d.mjs";
|
|
23
|
-
import to from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
-
import { u as no, a as io } from "./useListButton-cdbab702.mjs";
|
|
25
|
-
import { u as lo, a as ro, O as ao, g as so } from "./useExtendComponent-325fe3f1.mjs";
|
|
26
|
-
import co from "./OnlineQueryForm-1bfc8320.mjs";
|
|
27
|
-
import uo from "./SuperQuery-5d1ca957.mjs";
|
|
28
|
-
import { u as po } from "./useOnlinePopEvent-687070b7.mjs";
|
|
29
|
-
import mo from "./OnlCgformErpSubTable-54b50eec.mjs";
|
|
30
|
-
import { E as q } from "./constant-754f1a9d.mjs";
|
|
31
|
-
import { cloneDeep as go } from "lodash-es";
|
|
32
|
-
import "/@/components/Modal";
|
|
33
|
-
import "./OnlineForm-1fa2d893.mjs";
|
|
34
|
-
import "/@/components/Form/index";
|
|
35
|
-
import "/@/utils/http/axios";
|
|
36
|
-
import "/@/utils";
|
|
37
|
-
import "/@/components/Loading";
|
|
38
|
-
import "/@/components/jeecg/JVxeTable/types";
|
|
39
|
-
import "/@/utils/auth";
|
|
40
|
-
import "@ant-design/icons-vue";
|
|
41
|
-
import "/@/hooks/core/useContext";
|
|
42
|
-
import "/@/utils/mitt";
|
|
43
|
-
import "./useCustomHook-acb00837.mjs";
|
|
44
|
-
import "/@/utils/cache";
|
|
45
|
-
import "/@/utils/common/compUtils";
|
|
46
|
-
import "/@/store/modules/user";
|
|
47
|
-
import "./index-0e3ab3af.mjs";
|
|
48
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
49
|
-
import "vue-router";
|
|
50
|
-
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
51
|
-
import "./OnlineFormDetail-0e7294ca.mjs";
|
|
52
|
-
import "./DetailForm-424638eb.mjs";
|
|
53
|
-
import "/@/utils/propTypes";
|
|
54
|
-
import "/@/utils/dict";
|
|
55
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
56
|
-
import "/@/utils/dict/index";
|
|
57
|
-
import "/@/api/common/api";
|
|
58
|
-
import "/@/components/Form/src/utils/Area";
|
|
59
|
-
import "/@/components/Preview/index";
|
|
60
|
-
import "/@/components/Markdown";
|
|
61
|
-
import "./OnlineSubFormDetail-f0d2c016.mjs";
|
|
62
|
-
import "/@/router";
|
|
63
|
-
import "/@/hooks/core/onMountedOrActivated";
|
|
64
|
-
import "/@/store/modules/multipleTab";
|
|
65
|
-
import "./cgformState-d9f8ec42.mjs";
|
|
66
|
-
import "pinia";
|
|
67
|
-
import "/@/store";
|
|
68
|
-
import "ant-design-vue";
|
|
69
|
-
import "/@/hooks/system/useMethods";
|
|
70
|
-
import "/@/components/Form/src/componentMap";
|
|
71
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
72
|
-
import "/@/views/system/user/user.api";
|
|
73
|
-
import "/@/utils/desform/customExpression";
|
|
74
|
-
import "/@/store/modules/permission";
|
|
75
|
-
import "/@/hooks/system/useListPage";
|
|
76
|
-
import "./LinkTableListPiece-8499a318.mjs";
|
|
77
|
-
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
78
|
-
import "./JModalTip-33c7dc44.mjs";
|
|
79
|
-
import "/@/hooks/web/useAppInject";
|
|
80
|
-
import "@vueuse/core";
|
|
81
|
-
import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
|
|
82
|
-
import "/@/utils/is";
|
|
83
|
-
const fo = { class: "p-2 cgformErpList" }, yo = { class: "content" }, _o = {
|
|
84
|
-
key: 0,
|
|
85
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
86
|
-
}, bo = {
|
|
87
|
-
key: 0,
|
|
88
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
89
|
-
}, ho = ["src", "onClick"], Co = ["innerHTML"], vo = ["title"], Jt = {
|
|
90
|
-
__name: "OnlCgformErpList",
|
|
91
|
-
setup(K) {
|
|
92
|
-
const _ = k([]), d = k(0), b = k(null), { createMessage: S } = Ze(), w = k({}), L = (t, n) => {
|
|
93
|
-
w.value[t] = n;
|
|
94
|
-
}, {
|
|
95
|
-
ID: u,
|
|
96
|
-
onlineTableContext: i,
|
|
97
|
-
onlineQueryFormOuter: h,
|
|
98
|
-
loading: O,
|
|
99
|
-
reload: f,
|
|
100
|
-
dataSource: Q,
|
|
101
|
-
pagination: U,
|
|
102
|
-
handleSpecialConfig: G,
|
|
103
|
-
getColumnList: W,
|
|
104
|
-
handleChangeInTable: X,
|
|
105
|
-
loadData: Y,
|
|
106
|
-
superQueryButtonRef: x,
|
|
107
|
-
superQueryStatus: Z,
|
|
108
|
-
handleSuperQuery: ee,
|
|
109
|
-
onlineExtConfigJson: J,
|
|
110
|
-
handleFormConfig: oe,
|
|
111
|
-
registerCustomModal: te,
|
|
112
|
-
tableReloading: ne
|
|
113
|
-
} = no({ themeTemplate: q });
|
|
114
|
-
if (!u.value)
|
|
115
|
-
throw S.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
116
|
-
let { initCgEnhanceJs: ie } = lo(i);
|
|
117
|
-
const {
|
|
118
|
-
buttonSwitch: C,
|
|
119
|
-
cgLinkButtonList: ko,
|
|
120
|
-
cgTopButtonList: B,
|
|
121
|
-
importUrl: le,
|
|
122
|
-
registerModal: re,
|
|
123
|
-
handleAdd: ae,
|
|
124
|
-
handleEdit: So,
|
|
125
|
-
handleBatchDelete: se,
|
|
126
|
-
registerImportModal: ce,
|
|
127
|
-
onImportExcel: ue,
|
|
128
|
-
onExportExcel: pe,
|
|
129
|
-
cgButtonJsHandler: de,
|
|
130
|
-
cgButtonActionHandler: me,
|
|
131
|
-
cgButtonLinkHandler: wo,
|
|
132
|
-
handleSubmitFlow: Ro,
|
|
133
|
-
getDropDownActions: ge,
|
|
134
|
-
getActions: fe,
|
|
135
|
-
initButtonList: ye,
|
|
136
|
-
initButtonSwitch: _e,
|
|
137
|
-
registerDetailModal: be,
|
|
138
|
-
registerBpmModal: To
|
|
139
|
-
} = io(i, J, {
|
|
140
|
-
singleDelCallback: (t) => {
|
|
141
|
-
Array.isArray(i.selectedRowKeys) && i.selectedRowKeys.includes(t) && i.clearSelectedRow();
|
|
142
|
-
},
|
|
143
|
-
editClickCallback: (t, n) => {
|
|
144
|
-
Array.isArray(i.selectedRowKeys) && i.selectedRowKeys.includes(t) && n.stopPropagation();
|
|
145
|
-
}
|
|
146
|
-
}), D = k(!1);
|
|
147
|
-
function he() {
|
|
148
|
-
return T(this, null, function* () {
|
|
149
|
-
try {
|
|
150
|
-
D.value = !0, yield pe();
|
|
151
|
-
} finally {
|
|
152
|
-
setTimeout(() => D.value = !1, 1500);
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
const {
|
|
157
|
-
columns: Ce,
|
|
158
|
-
actionColumn: ve,
|
|
159
|
-
selectedKeys: v,
|
|
160
|
-
rowSelection: ke,
|
|
161
|
-
enableScrollBar: Se,
|
|
162
|
-
tableScroll: we,
|
|
163
|
-
downloadRowFile: Re,
|
|
164
|
-
getImgView: Te,
|
|
165
|
-
getPcaText: H,
|
|
166
|
-
getFormatDate: Ie,
|
|
167
|
-
handleColumnResult: Ee,
|
|
168
|
-
hrefComponent: R,
|
|
169
|
-
viewOnlineCellImage: Me,
|
|
170
|
-
hrefMainTableId: Le,
|
|
171
|
-
registerOnlineHrefModal: Oe,
|
|
172
|
-
registerPopModal: xe,
|
|
173
|
-
openPopModal: Be,
|
|
174
|
-
onlinePopModalRef: De,
|
|
175
|
-
popTableId: z
|
|
176
|
-
} = ro(i, J);
|
|
177
|
-
$(
|
|
178
|
-
v,
|
|
179
|
-
(t) => {
|
|
180
|
-
var n;
|
|
181
|
-
(n = v.value) != null && n.length ? b.value = Q.value.find((a) => a.id === v.value[0]) : b.value = null;
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
immediate: !0
|
|
185
|
-
}
|
|
186
|
-
), $(
|
|
187
|
-
u,
|
|
188
|
-
() => {
|
|
189
|
-
Pe();
|
|
190
|
-
},
|
|
191
|
-
{ immediate: !0 }
|
|
192
|
-
);
|
|
193
|
-
function Pe() {
|
|
194
|
-
return T(this, null, function* () {
|
|
195
|
-
O.value = !0;
|
|
196
|
-
let t = yield W(q);
|
|
197
|
-
Ae(t.main), _.value = t.subList, yield Y(), O.value = !1, i.execButtonEnhance("setup");
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
function Ae(t) {
|
|
201
|
-
let n = ie(t.enhanceJs);
|
|
202
|
-
i.EnhanceJS = n, ye(t.cgButtonList), _e(t.hideColumns), Ee(t, "radio"), G(t);
|
|
203
|
-
}
|
|
204
|
-
function Fe(t) {
|
|
205
|
-
i.queryParam = t, f({ mode: "search" });
|
|
206
|
-
}
|
|
207
|
-
function Ke() {
|
|
208
|
-
return T(this, arguments, function* (t = {}) {
|
|
209
|
-
yield so(x);
|
|
210
|
-
const n = go(t), { properties: a = {} } = n;
|
|
211
|
-
Object.entries(a).forEach(([P, A]) => {
|
|
212
|
-
A.view == "table" && delete a[P];
|
|
213
|
-
}), x.value.init(n);
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
function Qe(t) {
|
|
217
|
-
z.value = t.id;
|
|
218
|
-
let n = {
|
|
219
|
-
title: t.describe
|
|
220
|
-
};
|
|
221
|
-
t.record && t.record.id && (n.record = t.record, n.isUpdate = !0), Be(!0, n);
|
|
222
|
-
}
|
|
223
|
-
po(Qe);
|
|
224
|
-
const Je = (t, n) => {
|
|
225
|
-
ee(t, n), v.value = [];
|
|
226
|
-
};
|
|
227
|
-
return (t, n) => {
|
|
228
|
-
var N;
|
|
229
|
-
const a = I("a-button"), P = I("a-tab-pane"), A = I("a-tabs"), He = I("a-modal");
|
|
230
|
-
return l(), m("div", fo, [
|
|
231
|
-
E("div", yo, [
|
|
232
|
-
c(co, {
|
|
233
|
-
ref_key: "onlineQueryFormOuter",
|
|
234
|
-
ref: h,
|
|
235
|
-
id: e(u),
|
|
236
|
-
onSearch: Fe,
|
|
237
|
-
onLoaded: Ke
|
|
238
|
-
}, null, 8, ["id"]),
|
|
239
|
-
e(ne) ? p("", !0) : (l(), s(e(Xe), {
|
|
240
|
-
key: 0,
|
|
241
|
-
ref: "onlineTable",
|
|
242
|
-
rowKey: "jeecg_row_key",
|
|
243
|
-
canResize: !0,
|
|
244
|
-
bordered: !0,
|
|
245
|
-
showIndexColumn: !1,
|
|
246
|
-
loading: e(O),
|
|
247
|
-
columns: e(Ce),
|
|
248
|
-
dataSource: e(Q),
|
|
249
|
-
pagination: e(U),
|
|
250
|
-
rowSelection: e(ke),
|
|
251
|
-
actionColumn: e(ve),
|
|
252
|
-
showTableSetting: !0,
|
|
253
|
-
clickToRowSelect: !0,
|
|
254
|
-
scroll: e(we),
|
|
255
|
-
onTableRedo: e(f),
|
|
256
|
-
class: Ne({ "j-table-force-nowrap": e(Se) }),
|
|
257
|
-
onChange: e(X)
|
|
258
|
-
}, {
|
|
259
|
-
tableTitle: r(() => [
|
|
260
|
-
e(C).add ? (l(), s(a, {
|
|
261
|
-
key: 0,
|
|
262
|
-
preIcon: "ant-design:plus-outlined",
|
|
263
|
-
type: "primary",
|
|
264
|
-
onClick: e(ae)
|
|
265
|
-
}, {
|
|
266
|
-
default: r(() => [
|
|
267
|
-
g("新增")
|
|
268
|
-
]),
|
|
269
|
-
_: 1
|
|
270
|
-
}, 8, ["onClick"])) : p("", !0),
|
|
271
|
-
e(C).import ? (l(), s(a, {
|
|
272
|
-
key: 1,
|
|
273
|
-
preIcon: "ant-design:import-outlined",
|
|
274
|
-
type: "primary",
|
|
275
|
-
onClick: e(ue)
|
|
276
|
-
}, {
|
|
277
|
-
default: r(() => [
|
|
278
|
-
g("导入")
|
|
279
|
-
]),
|
|
280
|
-
_: 1
|
|
281
|
-
}, 8, ["onClick"])) : p("", !0),
|
|
282
|
-
e(C).export ? (l(), s(a, {
|
|
283
|
-
key: 2,
|
|
284
|
-
preIcon: "ant-design:export-outlined",
|
|
285
|
-
type: "primary",
|
|
286
|
-
loading: D.value,
|
|
287
|
-
onClick: he
|
|
288
|
-
}, {
|
|
289
|
-
default: r(() => [
|
|
290
|
-
g(" 导出")
|
|
291
|
-
]),
|
|
292
|
-
_: 1
|
|
293
|
-
}, 8, ["loading"])) : p("", !0),
|
|
294
|
-
e(B) && e(B).length > 0 ? (l(!0), m(F, { key: 3 }, j(e(B), (o, y) => (l(), m(F, null, [
|
|
295
|
-
o.optType == "js" ? (l(), s(a, {
|
|
296
|
-
key: "cgbtn" + y,
|
|
297
|
-
onClick: (ze) => e(de)(o.buttonCode),
|
|
298
|
-
type: "primary",
|
|
299
|
-
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
300
|
-
}, {
|
|
301
|
-
default: r(() => [
|
|
302
|
-
g(M(o.buttonName), 1)
|
|
303
|
-
]),
|
|
304
|
-
_: 2
|
|
305
|
-
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), s(a, {
|
|
306
|
-
key: "cgbtn" + y,
|
|
307
|
-
onClick: (ze) => e(me)(o.buttonCode),
|
|
308
|
-
type: "primary",
|
|
309
|
-
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
310
|
-
}, {
|
|
311
|
-
default: r(() => [
|
|
312
|
-
g(M(o.buttonName), 1)
|
|
313
|
-
]),
|
|
314
|
-
_: 2
|
|
315
|
-
}, 1032, ["onClick", "preIcon"])) : p("", !0)
|
|
316
|
-
], 64))), 256)) : p("", !0),
|
|
317
|
-
e(C).batch_delete ? $e((l(), s(a, {
|
|
318
|
-
key: 4,
|
|
319
|
-
preIcon: "ant-design:delete-outlined",
|
|
320
|
-
onClick: e(se)
|
|
321
|
-
}, {
|
|
322
|
-
default: r(() => [
|
|
323
|
-
g(" 批量删除")
|
|
324
|
-
]),
|
|
325
|
-
_: 1
|
|
326
|
-
}, 8, ["onClick"])), [
|
|
327
|
-
[je, e(v).length > 0]
|
|
328
|
-
]) : p("", !0),
|
|
329
|
-
e(C).super_query ? (l(), s(uo, {
|
|
330
|
-
key: 5,
|
|
331
|
-
ref_key: "superQueryButtonRef",
|
|
332
|
-
ref: x,
|
|
333
|
-
online: "",
|
|
334
|
-
status: e(Z),
|
|
335
|
-
onSearch: Je
|
|
336
|
-
}, null, 8, ["status"])) : p("", !0)
|
|
337
|
-
]),
|
|
338
|
-
fileSlot: r(({ text: o }) => [
|
|
339
|
-
o ? (l(), s(a, {
|
|
340
|
-
key: 1,
|
|
341
|
-
ghost: !0,
|
|
342
|
-
type: "primary",
|
|
343
|
-
preIcon: "ant-design:download",
|
|
344
|
-
size: "small",
|
|
345
|
-
onClick: (y) => e(Re)(o)
|
|
346
|
-
}, {
|
|
347
|
-
default: r(() => [
|
|
348
|
-
g(" 下载 ")
|
|
349
|
-
]),
|
|
350
|
-
_: 2
|
|
351
|
-
}, 1032, ["onClick"])) : (l(), m("span", _o, "无文件"))
|
|
352
|
-
]),
|
|
353
|
-
imgSlot: r(({ text: o }) => [
|
|
354
|
-
o ? (l(), m("img", {
|
|
355
|
-
key: 1,
|
|
356
|
-
src: e(Te)(o),
|
|
357
|
-
alt: "图片不存在",
|
|
358
|
-
class: "online-cell-image",
|
|
359
|
-
onClick: (y) => e(Me)(o)
|
|
360
|
-
}, null, 8, ho)) : (l(), m("span", bo, "无图片"))
|
|
361
|
-
]),
|
|
362
|
-
htmlSlot: r(({ text: o }) => [
|
|
363
|
-
E("div", { innerHTML: o }, null, 8, Co)
|
|
364
|
-
]),
|
|
365
|
-
pcaSlot: r(({ text: o }) => [
|
|
366
|
-
E("div", {
|
|
367
|
-
title: e(H)(o)
|
|
368
|
-
}, M(e(H)(o)), 9, vo)
|
|
369
|
-
]),
|
|
370
|
-
dateSlot: r(({ text: o }) => [
|
|
371
|
-
E("span", null, M(e(Ie)(o)), 1)
|
|
372
|
-
]),
|
|
373
|
-
action: r(({ record: o }) => [
|
|
374
|
-
c(e(Ye), {
|
|
375
|
-
actions: e(fe)(o),
|
|
376
|
-
dropDownActions: e(ge)(o)
|
|
377
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
378
|
-
]),
|
|
379
|
-
_: 1
|
|
380
|
-
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
381
|
-
(N = _.value) != null && N.length ? (l(), s(A, {
|
|
382
|
-
key: 1,
|
|
383
|
-
animated: "",
|
|
384
|
-
activeKey: d.value,
|
|
385
|
-
"onUpdate:activeKey": n[0] || (n[0] = (o) => d.value = o),
|
|
386
|
-
style: { margin: "10px" }
|
|
387
|
-
}, {
|
|
388
|
-
default: r(() => [
|
|
389
|
-
(l(!0), m(F, null, j(_.value, (o, y) => (l(), s(P, {
|
|
390
|
-
tab: o.description,
|
|
391
|
-
key: y,
|
|
392
|
-
forceRender: ""
|
|
393
|
-
}, {
|
|
394
|
-
default: r(() => [
|
|
395
|
-
c(mo, {
|
|
396
|
-
data: o,
|
|
397
|
-
mainTableSelectedRowRcord: b.value,
|
|
398
|
-
onGetSource: L
|
|
399
|
-
}, null, 8, ["data", "mainTableSelectedRowRcord"])
|
|
400
|
-
]),
|
|
401
|
-
_: 2
|
|
402
|
-
}, 1032, ["tab"]))), 128))
|
|
403
|
-
]),
|
|
404
|
-
_: 1
|
|
405
|
-
}, 8, ["activeKey"])) : p("", !0),
|
|
406
|
-
c(eo, {
|
|
407
|
-
id: e(u),
|
|
408
|
-
subTableSource: w.value,
|
|
409
|
-
onRegister: e(re),
|
|
410
|
-
onSuccess: e(f),
|
|
411
|
-
onFormConfig: e(oe)
|
|
412
|
-
}, null, 8, ["id", "subTableSource", "onRegister", "onSuccess", "onFormConfig"]),
|
|
413
|
-
c(V, {
|
|
414
|
-
id: e(u),
|
|
415
|
-
onRegister: e(be)
|
|
416
|
-
}, null, 8, ["id", "onRegister"]),
|
|
417
|
-
c(to, {
|
|
418
|
-
onRegister: e(ce),
|
|
419
|
-
url: e(le)(),
|
|
420
|
-
onOk: e(f),
|
|
421
|
-
online: ""
|
|
422
|
-
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
423
|
-
c(He, Ve(e(R).model, qe(e(R).on)), {
|
|
424
|
-
default: r(() => [
|
|
425
|
-
(l(), s(Ue(e(R).is), Ge(We(e(R).params)), null, 16))
|
|
426
|
-
]),
|
|
427
|
-
_: 1
|
|
428
|
-
}, 16),
|
|
429
|
-
c(oo, {
|
|
430
|
-
onRegister: e(te),
|
|
431
|
-
onSuccess: e(f)
|
|
432
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
433
|
-
c(V, {
|
|
434
|
-
id: e(Le),
|
|
435
|
-
onRegister: e(Oe),
|
|
436
|
-
defaultFullscreen: !1
|
|
437
|
-
}, null, 8, ["id", "onRegister"]),
|
|
438
|
-
c(ao, {
|
|
439
|
-
ref_key: "onlinePopModalRef",
|
|
440
|
-
ref: De,
|
|
441
|
-
id: e(z),
|
|
442
|
-
onRegister: e(xe),
|
|
443
|
-
onSuccess: e(f),
|
|
444
|
-
request: "",
|
|
445
|
-
topTip: ""
|
|
446
|
-
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
447
|
-
])
|
|
448
|
-
]);
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
export {
|
|
453
|
-
Jt as default
|
|
454
|
-
};
|