@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
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
var R = Object.defineProperty;
|
|
2
|
+
var C = Object.getOwnPropertySymbols;
|
|
3
|
+
var J = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var S = (i, a, l) => a in i ? R(i, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[a] = l, T = (i, a) => {
|
|
5
|
+
for (var l in a || (a = {}))
|
|
6
|
+
J.call(a, l) && S(i, l, a[l]);
|
|
7
|
+
if (C)
|
|
8
|
+
for (var l of C(a))
|
|
9
|
+
q.call(a, l) && S(i, l, a[l]);
|
|
10
|
+
return i;
|
|
11
|
+
};
|
|
12
|
+
var u = (i, a, l) => new Promise((s, f) => {
|
|
13
|
+
var n = (o) => {
|
|
14
|
+
try {
|
|
15
|
+
d(l.next(o));
|
|
16
|
+
} catch (c) {
|
|
17
|
+
f(c);
|
|
18
|
+
}
|
|
19
|
+
}, h = (o) => {
|
|
20
|
+
try {
|
|
21
|
+
d(l.throw(o));
|
|
22
|
+
} catch (c) {
|
|
23
|
+
f(c);
|
|
24
|
+
}
|
|
25
|
+
}, d = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(n, h);
|
|
26
|
+
d((l = l.apply(i, a)).next());
|
|
27
|
+
});
|
|
28
|
+
import { BasicModal as A, useModalInner as G } from "/@/components/Modal";
|
|
29
|
+
import { ref as b, computed as H, resolveComponent as _, openBlock as K, createBlock as $, mergeProps as j, withCtx as k, createVNode as M } from "vue";
|
|
30
|
+
import { BasicForm as z, useForm as D } from "/@/components/Form/index";
|
|
31
|
+
import { defHttp as E } from "/@/utils/http/axios";
|
|
32
|
+
import { omit as Q } from "lodash-es";
|
|
33
|
+
import { useMessage as U } from "/@/hooks/web/useMessage";
|
|
34
|
+
import { _ as W } from "./index-1d1a6e56.mjs";
|
|
35
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
36
|
+
import "vue-router";
|
|
37
|
+
const X = {
|
|
38
|
+
name: "LinkTableConfigModal",
|
|
39
|
+
emits: ["success", "register"],
|
|
40
|
+
components: {
|
|
41
|
+
BasicModal: A,
|
|
42
|
+
BasicForm: z
|
|
43
|
+
},
|
|
44
|
+
setup(i, { emit: a }) {
|
|
45
|
+
const l = b(!1), { createMessage: s } = U(), f = b("");
|
|
46
|
+
let n = {};
|
|
47
|
+
const [h, { closeModal: d }] = G((e) => u(this, null, function* () {
|
|
48
|
+
n = T({}, e.record), yield w({ dictTable: e.record.dictTable }), setTimeout(() => u(this, null, function* () {
|
|
49
|
+
let r = Q(e.record, "dictTable");
|
|
50
|
+
yield w(r), yield I();
|
|
51
|
+
}), 200), f.value = e.fieldName;
|
|
52
|
+
})), o = b(""), c = b(""), F = b([]), v = b([]);
|
|
53
|
+
function x(e) {
|
|
54
|
+
return u(this, null, function* () {
|
|
55
|
+
if (e) {
|
|
56
|
+
const r = "/online/cgform/field/listByHeadCode", m = yield E.get({ url: r, params: { headCode: e } });
|
|
57
|
+
if (m && m.length > 0) {
|
|
58
|
+
let p = m.filter((t) => t.dbFieldName != "id" && t.dbIsPersist == 1 && t.isShowList == 1);
|
|
59
|
+
p.length > 0 ? F.value = p.map((t) => ({
|
|
60
|
+
text: t.dbFieldTxt,
|
|
61
|
+
value: t.dbFieldName
|
|
62
|
+
})) : F.value = [];
|
|
63
|
+
let g = m.filter((t) => t.dbFieldName != "id" && t.fieldShowType == "image" && t.dbIsPersist == 1);
|
|
64
|
+
g.length > 0 ? v.value = g.map((t) => ({
|
|
65
|
+
text: t.dbFieldTxt,
|
|
66
|
+
value: t.dbFieldName
|
|
67
|
+
})) : v.value = [{ text: "无图片字段可以选择", value: "", key: "", disabled: !0 }];
|
|
68
|
+
} else
|
|
69
|
+
F.value = [], v.value = [{ text: "无图片字段可以选择", value: "", key: "", disabled: !0 }];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function N(e) {
|
|
74
|
+
return u(this, null, function* () {
|
|
75
|
+
o.value = "", c.value = "", yield x(e);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
const V = H(() => {
|
|
79
|
+
let e = F.value, r = o.value, m = c.value;
|
|
80
|
+
return e.filter((p) => p.value != r && p.value != m);
|
|
81
|
+
}), B = [
|
|
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: (r) => u(this, null, function* () {
|
|
114
|
+
(n.titleField || n.otherFields) && (yield e.setFieldsValue({
|
|
115
|
+
titleField: "",
|
|
116
|
+
otherFields: "",
|
|
117
|
+
imageField: ""
|
|
118
|
+
}), yield e.clearValidate()), yield N(r);
|
|
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: F,
|
|
131
|
+
immediateChange: !0,
|
|
132
|
+
onChange: (e) => {
|
|
133
|
+
o.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: v,
|
|
145
|
+
immediateChange: !0,
|
|
146
|
+
onChange: (e) => {
|
|
147
|
+
c.value = e, n.imageFieldName = e;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: "其他字段",
|
|
153
|
+
field: "otherFields",
|
|
154
|
+
component: "JSelectMultiple",
|
|
155
|
+
// update-begin--author:liaozhiyang---date:20240320---for:【QQYUN-8574】关联记录最多选6个字段
|
|
156
|
+
componentProps: ({ schema: e, tableAction: r, formActionType: m, formModel: p }) => ({
|
|
157
|
+
popContainer: ".link-table-config-modal",
|
|
158
|
+
options: V.value,
|
|
159
|
+
onChange: (g) => {
|
|
160
|
+
if (g.split(",").length > 6) {
|
|
161
|
+
const t = g.split(",");
|
|
162
|
+
t.pop();
|
|
163
|
+
const y = t.join(",");
|
|
164
|
+
setTimeout(() => {
|
|
165
|
+
p.otherFields = y, n.otherFields = y;
|
|
166
|
+
}, 0), s.warning("最多选择6个字段~");
|
|
167
|
+
} else
|
|
168
|
+
n.otherFields = g;
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
// update-end--author:liaozhiyang---date:20240320---for:【QQYUN-8574】关联记录最多选6个字段
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
label: "显示方式",
|
|
175
|
+
field: "showType",
|
|
176
|
+
component: "Select",
|
|
177
|
+
defaultValue: "card",
|
|
178
|
+
componentProps: {
|
|
179
|
+
options: [
|
|
180
|
+
{ label: "卡片", value: "card" },
|
|
181
|
+
{ label: "下拉框", value: "select" }
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
label: "是否多选",
|
|
187
|
+
field: "multiSelect",
|
|
188
|
+
component: "RadioGroup",
|
|
189
|
+
defaultValue: !1,
|
|
190
|
+
componentProps: {
|
|
191
|
+
options: [
|
|
192
|
+
{ label: "否", value: !1 },
|
|
193
|
+
{ label: "是", value: !0 }
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
], [P, { validate: O, setFieldsValue: w, clearValidate: I, resetFields: Z }] = D({
|
|
198
|
+
schemas: B,
|
|
199
|
+
showActionButtonGroup: !1,
|
|
200
|
+
labelAlign: "right"
|
|
201
|
+
});
|
|
202
|
+
function L() {
|
|
203
|
+
return u(this, null, function* () {
|
|
204
|
+
let e = yield O();
|
|
205
|
+
e.fieldName = f.value, a("success", e), d();
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
registerModal: h,
|
|
210
|
+
spinningLoading: l,
|
|
211
|
+
registerForm: P,
|
|
212
|
+
handleSubmit: L
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
function Y(i, a, l, s, f, n) {
|
|
217
|
+
const h = _("BasicForm"), d = _("a-spin"), o = _("BasicModal");
|
|
218
|
+
return K(), $(o, j({ wrapClassName: "link-table-config-modal" }, i.$attrs, {
|
|
219
|
+
title: "关联记录配置",
|
|
220
|
+
onRegister: s.registerModal,
|
|
221
|
+
keyboard: "",
|
|
222
|
+
canFullscreen: !1,
|
|
223
|
+
cancelText: "关闭",
|
|
224
|
+
onOk: s.handleSubmit
|
|
225
|
+
}), {
|
|
226
|
+
default: k(() => [
|
|
227
|
+
M(d, { spinning: s.spinningLoading }, {
|
|
228
|
+
default: k(() => [
|
|
229
|
+
M(h, { onRegister: s.registerForm }, null, 8, ["onRegister"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["spinning"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 16, ["onRegister", "onOk"]);
|
|
236
|
+
}
|
|
237
|
+
const ce = /* @__PURE__ */ W(X, [["render", Y]]);
|
|
238
|
+
export {
|
|
239
|
+
ce as default
|
|
240
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var R = Object.defineProperty;
|
|
2
2
|
var F = Object.getOwnPropertySymbols;
|
|
3
3
|
var q = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var w = (o, a, t) => a in o ? R(o, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[a] = t,
|
|
4
|
+
var w = (o, a, t) => a in o ? R(o, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[a] = t, k = (o, a) => {
|
|
5
5
|
for (var t in a || (a = {}))
|
|
6
6
|
q.call(a, t) && w(o, t, a[t]);
|
|
7
7
|
if (F)
|
|
@@ -9,29 +9,29 @@ var w = (o, a, t) => a in o ? R(o, a, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
I.call(a, t) && w(o, t, a[t]);
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
|
-
var p = (o, a, t) => new Promise((i,
|
|
13
|
-
var
|
|
12
|
+
var p = (o, a, t) => new Promise((i, r) => {
|
|
13
|
+
var c = (n) => {
|
|
14
14
|
try {
|
|
15
15
|
d(t.next(n));
|
|
16
16
|
} catch (f) {
|
|
17
|
-
|
|
17
|
+
r(f);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, l = (n) => {
|
|
20
20
|
try {
|
|
21
21
|
d(t.throw(n));
|
|
22
22
|
} catch (f) {
|
|
23
|
-
|
|
23
|
+
r(f);
|
|
24
24
|
}
|
|
25
|
-
}, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(
|
|
25
|
+
}, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(c, l);
|
|
26
26
|
d((t = t.apply(o, a)).next());
|
|
27
27
|
});
|
|
28
28
|
import { BasicModal as P, useModalInner as H } from "/@/components/Modal";
|
|
29
|
-
import { ref as b, resolveComponent as h, openBlock as J, createBlock as K, mergeProps as N, withCtx as
|
|
29
|
+
import { ref as b, resolveComponent as h, openBlock as J, createBlock as K, mergeProps as N, withCtx as y, createVNode as C } from "vue";
|
|
30
30
|
import { BasicForm as $, useForm as j } from "/@/components/Form/index";
|
|
31
31
|
import { defHttp as G } from "/@/utils/http/axios";
|
|
32
32
|
import { omit as z } from "lodash-es";
|
|
33
33
|
import { useMessage as D } from "/@/hooks/web/useMessage";
|
|
34
|
-
import { _ as E } from "./index-
|
|
34
|
+
import { _ as E } from "./index-1d1a6e56.mjs";
|
|
35
35
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
36
36
|
import "vue-router";
|
|
37
37
|
const Q = {
|
|
@@ -42,51 +42,51 @@ const Q = {
|
|
|
42
42
|
BasicForm: $
|
|
43
43
|
},
|
|
44
44
|
setup(o, { emit: a }) {
|
|
45
|
-
const t = b(!1), i = b([]),
|
|
46
|
-
let
|
|
45
|
+
const t = b(!1), i = b([]), r = b([]);
|
|
46
|
+
let c = {}, l = {};
|
|
47
47
|
const { createMessage: d } = D(), [n, { closeModal: f }] = H((e) => p(this, null, function* () {
|
|
48
|
-
|
|
49
|
-
let
|
|
50
|
-
yield
|
|
48
|
+
l = k({}, e.record), c = e.tableAndFieldsMap, yield M(), yield T({ dictTable: e.record.dictTable }), l.dictTable && _(l.dictTable), setTimeout(() => p(this, null, function* () {
|
|
49
|
+
let s = z(e.record, "dictTable");
|
|
50
|
+
yield T(s), yield O();
|
|
51
51
|
}), 200);
|
|
52
52
|
}));
|
|
53
|
-
function
|
|
53
|
+
function M() {
|
|
54
54
|
return p(this, null, function* () {
|
|
55
|
-
let e = Object.keys(
|
|
55
|
+
let e = Object.keys(c);
|
|
56
56
|
if (!e || e.length == 0)
|
|
57
57
|
i.value = [];
|
|
58
58
|
else {
|
|
59
|
-
let
|
|
59
|
+
let s = [];
|
|
60
60
|
for (let m of e)
|
|
61
|
-
|
|
62
|
-
text:
|
|
61
|
+
s.push({
|
|
62
|
+
text: c[m].title,
|
|
63
63
|
value: m
|
|
64
64
|
});
|
|
65
|
-
i.value =
|
|
65
|
+
i.value = s;
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function _(e) {
|
|
70
70
|
return p(this, null, function* () {
|
|
71
71
|
if (e) {
|
|
72
|
-
const { table:
|
|
73
|
-
if (!
|
|
72
|
+
const { table: s, fields: m } = c[e];
|
|
73
|
+
if (!s) {
|
|
74
74
|
d.warning("请先完善字段[" + e + "]关联记录的配置");
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const V = "/online/cgform/field/listByHeadCode", g = yield G.get({ url: V, params: { headCode:
|
|
77
|
+
const V = "/online/cgform/field/listByHeadCode", g = yield G.get({ url: V, params: { headCode: s } });
|
|
78
78
|
if (g && g.length > 0) {
|
|
79
79
|
let L = g.map((u) => ({
|
|
80
80
|
text: u.dbFieldTxt,
|
|
81
81
|
value: u.dbFieldName
|
|
82
82
|
})), A = m.split(",");
|
|
83
|
-
|
|
83
|
+
r.value = L.filter((u) => A.includes(u.value));
|
|
84
84
|
} else
|
|
85
|
-
|
|
85
|
+
r.value = [];
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const x = [
|
|
90
90
|
{
|
|
91
91
|
label: "rowKey",
|
|
92
92
|
field: "rowKey",
|
|
@@ -110,9 +110,9 @@ const Q = {
|
|
|
110
110
|
dictOptions: i.value,
|
|
111
111
|
immediateChange: !0,
|
|
112
112
|
onChange: (m) => p(this, null, function* () {
|
|
113
|
-
|
|
113
|
+
l.dictText && (yield e.setFieldsValue({
|
|
114
114
|
dictText: ""
|
|
115
|
-
}), yield e.clearValidate()),
|
|
115
|
+
}), yield e.clearValidate()), _(m);
|
|
116
116
|
})
|
|
117
117
|
})
|
|
118
118
|
},
|
|
@@ -124,33 +124,33 @@ const Q = {
|
|
|
124
124
|
componentProps: {
|
|
125
125
|
async: !1,
|
|
126
126
|
popContainer: ".link-table-field-config-modal",
|
|
127
|
-
dictOptions:
|
|
127
|
+
dictOptions: r,
|
|
128
128
|
onChange: (e) => {
|
|
129
|
-
|
|
129
|
+
l.dictText = e;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
], [
|
|
134
|
-
schemas:
|
|
133
|
+
], [v, { validate: B, setFieldsValue: T, clearValidate: O }] = j({
|
|
134
|
+
schemas: x,
|
|
135
135
|
showActionButtonGroup: !1,
|
|
136
136
|
labelAlign: "right"
|
|
137
137
|
});
|
|
138
138
|
function S() {
|
|
139
139
|
return p(this, null, function* () {
|
|
140
|
-
const e = yield
|
|
140
|
+
const e = yield B();
|
|
141
141
|
a("success", e), f();
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
return {
|
|
145
145
|
registerModal: n,
|
|
146
146
|
spinningLoading: t,
|
|
147
|
-
registerForm:
|
|
147
|
+
registerForm: v,
|
|
148
148
|
handleSubmit: S
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
function U(o, a, t, i,
|
|
153
|
-
const
|
|
152
|
+
function U(o, a, t, i, r, c) {
|
|
153
|
+
const l = h("BasicForm"), d = h("a-spin"), n = h("BasicModal");
|
|
154
154
|
return J(), K(n, N({ wrapClassName: "link-table-field-config-modal" }, o.$attrs, {
|
|
155
155
|
title: "他表字段配置",
|
|
156
156
|
onRegister: i.registerModal,
|
|
@@ -159,10 +159,10 @@ function U(o, a, t, i, s, r) {
|
|
|
159
159
|
cancelText: "关闭",
|
|
160
160
|
onOk: i.handleSubmit
|
|
161
161
|
}), {
|
|
162
|
-
default:
|
|
163
|
-
|
|
164
|
-
default:
|
|
165
|
-
|
|
162
|
+
default: y(() => [
|
|
163
|
+
C(d, { spinning: i.spinningLoading }, {
|
|
164
|
+
default: y(() => [
|
|
165
|
+
C(l, { onRegister: i.registerForm }, null, 8, ["onRegister"])
|
|
166
166
|
]),
|
|
167
167
|
_: 1
|
|
168
168
|
}, 8, ["spinning"])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { propTypes as o } from "/@/utils/propTypes";
|
|
2
2
|
import { openBlock as a, createElementBlock as s, createElementVNode as l, toDisplayString as p } from "vue";
|
|
3
|
-
import { _ as c } from "./index-
|
|
3
|
+
import { _ as c } from "./index-1d1a6e56.mjs";
|
|
4
4
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
5
5
|
import "/@/hooks/web/useMessage";
|
|
6
6
|
import "vue-router";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as i, resolveComponent as p, openBlock as a, createElem
|
|
|
2
2
|
import { BasicForm as d, useForm as u } from "/@/components/Form/index";
|
|
3
3
|
import { defHttp as f } from "/@/utils/http/axios";
|
|
4
4
|
import { pick as _ } from "lodash-es";
|
|
5
|
-
import { _ as g } from "./index-
|
|
5
|
+
import { _ as g } from "./index-1d1a6e56.mjs";
|
|
6
6
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
7
7
|
import "/@/hooks/web/useMessage";
|
|
8
8
|
import "vue-router";
|