@jeecg/online 3.5.3-beta2 → 3.5.3-vite4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AuthButtonConfig-2f71787c.mjs +125 -0
- package/AuthButtonTree-d73bccf5.mjs +156 -0
- package/AuthDataConfig-32cf23d2.mjs +212 -0
- package/AuthDataTree-03d62d3f.mjs +139 -0
- package/AuthFieldConfig-b1217a0c.mjs +139 -0
- package/AuthFieldTree-888e04a9.mjs +232 -0
- package/AuthManagerDrawer-f127b8a2.mjs +114 -0
- package/AuthSetterModal-37da78ed.mjs +261 -0
- package/CgformCopyList-3adab58f.mjs +245 -0
- package/CgformModal-6938d8c2.mjs +613 -0
- package/CgreportModal-77ec8c17.mjs +12 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
- package/CheckDictTable-414313f2.mjs +211 -0
- package/CodeFileListModal-4831ce3d.mjs +158 -0
- package/CodeFileViewModal-5990dac4.mjs +244 -0
- package/CodeGeneratorModal-7df9e25d.mjs +234 -0
- package/CustomButtonList-1c9bd859.mjs +363 -0
- package/DBAttributeTable-cd1c41e5.mjs +473 -0
- package/DbToOnlineModal-dc5d2030.mjs +160 -0
- package/DetailForm-e4538e7a.mjs +446 -0
- package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
- package/EnhanceJsHistory-c30805ce.mjs +184 -0
- package/EnhanceJsModal-0b133341.mjs +233 -0
- package/EnhanceSqlModal-33a94c83.mjs +259 -0
- package/ExtendConfigModal-60f2cf86.mjs +111 -0
- package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
- package/FileSelectModal-64aaf623.mjs +91 -0
- package/ForeignKeyTable-cb1abd1d.mjs +69 -0
- package/IndexTable-4e94cd1f.mjs +89 -0
- package/JModalTip-abe1515a.mjs +46 -0
- package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
- package/LeftDepart-ca7a7375.mjs +82 -0
- package/LeftRole-d0fa8398.mjs +86 -0
- package/LeftUser-0c88c240.mjs +105 -0
- package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
- package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
- package/LinkTableListPiece-34266919.mjs +34 -0
- package/ModalFormDemo-0eeea994.mjs +78 -0
- package/OnlCgformErpList-7a0388d8.mjs +425 -0
- package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
- package/OnlineAutoList-85e6a30d.mjs +472 -0
- package/OnlineAutoModal-2a146238.mjs +206 -0
- package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
- package/OnlineCustomModal-456a85a6.mjs +227 -0
- package/OnlineDetailModal-f967f080.mjs +177 -0
- package/OnlineForm-630a22c2.mjs +778 -0
- package/OnlineFormDetail-1b216792.mjs +296 -0
- package/OnlineQueryForm-1c5949a7.mjs +378 -0
- package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
- package/OnlineSelectCascade-c7baf52b.mjs +160 -0
- package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
- package/PageAttributeTable-811185fd.mjs +404 -0
- package/ProcessOnlineForm-27be6f6f.mjs +177 -0
- package/QueryTable-4ba771ef.mjs +115 -0
- package/SuperQuery-3821f984.mjs +845 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-fe20103a.mjs +6 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-074b92e5.mjs +236 -0
- package/index-6a09a912.mjs +58 -0
- package/index-9d32ae88.mjs +313 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-2d6a5955.mjs +388 -0
- package/useExtendComponent-48d37d9b.mjs +3919 -0
- package/useListButton-cef1371a.mjs +656 -0
- package/useOnlinePopEvent-e9a042f8.mjs +19 -0
- package/useOnlineTest-0df0ae86.mjs +43 -0
- package/useSchemas-fc8d97ce.mjs +669 -0
- package/useTableSync-dc333087.mjs +83 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -524
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -553
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1018
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1021
- package/SuperQueryValComponent.js +0 -9
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
var G = Object.defineProperty;
|
|
2
|
+
var N = Object.getOwnPropertySymbols;
|
|
3
|
+
var H = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var A = (e, l, i) => l in e ? G(e, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[l] = i, K = (e, l) => {
|
|
5
|
+
for (var i in l || (l = {}))
|
|
6
|
+
H.call(l, i) && A(e, i, l[i]);
|
|
7
|
+
if (N)
|
|
8
|
+
for (var i of N(l))
|
|
9
|
+
Q.call(l, i) && A(e, i, l[i]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
import { defineComponent as R, ref as M, watch as b, useCssVars as X, resolveComponent as o, openBlock as u, createBlock as n, normalizeClass as Z, withCtx as w, createElementVNode as J, toDisplayString as $, createElementBlock as p, Fragment as m, createVNode as h, renderList as _, createTextVNode as x, mergeProps as L, pushScopeId as ee, popScopeId as le } from "vue";
|
|
13
|
+
import { JDictSelectTag as te, JTreeSelect as ae, JCategorySelect as ue, JSelectUser as ne, JSelectUserByDept as ie, JSelectDept as oe, JPopup as de, JAreaLinkage as re, JAreaSelect as se, JSelectMultiple as pe } from "/@/components/Form";
|
|
14
|
+
import me from "./JOnlineSearchSelect-5608a5cf.mjs";
|
|
15
|
+
import { _ as ve } from "./index-6a09a912.mjs";
|
|
16
|
+
import "@vueuse/core";
|
|
17
|
+
import "/@/utils/http/axios";
|
|
18
|
+
import "/@/hooks/web/useMessage";
|
|
19
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
20
|
+
import "vue-router";
|
|
21
|
+
const O = R({
|
|
22
|
+
name: "OnlineSearchFormItem",
|
|
23
|
+
components: {
|
|
24
|
+
JOnlineSearchSelect: me,
|
|
25
|
+
JDictSelectTag: te,
|
|
26
|
+
JTreeSelect: ae,
|
|
27
|
+
JCategorySelect: ue,
|
|
28
|
+
JSelectUser: ne,
|
|
29
|
+
JSelectUserByDept: ie,
|
|
30
|
+
JSelectDept: oe,
|
|
31
|
+
JPopup: de,
|
|
32
|
+
JAreaLinkage: re,
|
|
33
|
+
JAreaSelect: se,
|
|
34
|
+
JSelectMultiple: pe
|
|
35
|
+
},
|
|
36
|
+
props: {
|
|
37
|
+
value: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: ""
|
|
40
|
+
},
|
|
41
|
+
item: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default: () => {
|
|
44
|
+
},
|
|
45
|
+
required: !0
|
|
46
|
+
},
|
|
47
|
+
dictOptions: {
|
|
48
|
+
type: Object,
|
|
49
|
+
default: () => {
|
|
50
|
+
},
|
|
51
|
+
required: !1
|
|
52
|
+
},
|
|
53
|
+
onlineForm: {
|
|
54
|
+
type: Object,
|
|
55
|
+
default: () => {
|
|
56
|
+
},
|
|
57
|
+
required: !1
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
emits: ["update:value", "change"],
|
|
61
|
+
setup(e, { emit: l }) {
|
|
62
|
+
const i = "120px", P = {
|
|
63
|
+
style: {
|
|
64
|
+
"max-width": i
|
|
65
|
+
}
|
|
66
|
+
}, I = "single";
|
|
67
|
+
let y = M(""), s = M(""), f = M("");
|
|
68
|
+
b(
|
|
69
|
+
() => e.value,
|
|
70
|
+
() => {
|
|
71
|
+
F() ? y.value = e.value ? e.value : void 0 : y.value = e.value, e.value || (s.value = "", f.value = "");
|
|
72
|
+
},
|
|
73
|
+
{ deep: !0, immediate: !0 }
|
|
74
|
+
), b(
|
|
75
|
+
y,
|
|
76
|
+
(a) => {
|
|
77
|
+
console.log("innerValue-change", a), l("update:value", a);
|
|
78
|
+
},
|
|
79
|
+
{ immediate: !0 }
|
|
80
|
+
), b(s, (a) => {
|
|
81
|
+
l("change", e.item.field + "_begin", a), l("update:value", "1");
|
|
82
|
+
}), b(f, (a) => {
|
|
83
|
+
l("change", e.item.field + "_end", a), l("update:value", "1");
|
|
84
|
+
});
|
|
85
|
+
function D(a) {
|
|
86
|
+
return console.log("ddictOptions", e.dictOptions), a.dbField ? a.dbField : a.field;
|
|
87
|
+
}
|
|
88
|
+
function F() {
|
|
89
|
+
let a = e.item;
|
|
90
|
+
return a ? a.view == "list" || a.view == "radio" || a.view == "switch" : !1;
|
|
91
|
+
}
|
|
92
|
+
function k() {
|
|
93
|
+
let a = e.item;
|
|
94
|
+
return a.dictTable && a.dictTable.length > 0 ? a.dictTable + "," + a.dictText + "," + a.dictCode : a.dictCode;
|
|
95
|
+
}
|
|
96
|
+
function T() {
|
|
97
|
+
let a = e.item, { dictTable: t, dictCode: v, dictText: r } = a, g = t.toLowerCase().split("where"), d = "";
|
|
98
|
+
g.length > 1 && (d = " where" + g[1]);
|
|
99
|
+
let j = "select " + v + " as 'value', " + r + " as 'text' from " + g[0] + d;
|
|
100
|
+
return console.log("sql", j), j;
|
|
101
|
+
}
|
|
102
|
+
function E(a) {
|
|
103
|
+
let { dictText: t, dictCode: v } = a;
|
|
104
|
+
if (!t || t.length == 0)
|
|
105
|
+
return [];
|
|
106
|
+
let r = t.split(","), c = v.split(","), g = [];
|
|
107
|
+
for (let d = 0; d < r.length; d++)
|
|
108
|
+
g.push({
|
|
109
|
+
target: r[d],
|
|
110
|
+
source: c[d]
|
|
111
|
+
});
|
|
112
|
+
return g;
|
|
113
|
+
}
|
|
114
|
+
function B(a) {
|
|
115
|
+
let { dictText: t } = e.item, r = t.split(",")[0];
|
|
116
|
+
l("change", r, a[r]);
|
|
117
|
+
}
|
|
118
|
+
function U(a) {
|
|
119
|
+
l("update:value", a);
|
|
120
|
+
}
|
|
121
|
+
function S(a, t, v) {
|
|
122
|
+
let r = {
|
|
123
|
+
labelKey: t,
|
|
124
|
+
rowKey: v
|
|
125
|
+
}, c = a.fieldExtendJson;
|
|
126
|
+
if (c && typeof c == "string") {
|
|
127
|
+
let g = JSON.parse(c), d = K({}, g);
|
|
128
|
+
d.text && (r.labelKey = d.text), d.store && (r.rowKey = d.store);
|
|
129
|
+
}
|
|
130
|
+
return r;
|
|
131
|
+
}
|
|
132
|
+
let C = S(e.item, "realname", "username");
|
|
133
|
+
console.log("userSelectProp", C);
|
|
134
|
+
let Y = S(e.item, "departName", "id");
|
|
135
|
+
function V(a) {
|
|
136
|
+
a && a.length > 0 ? l("update:value", a.join(",")) : l("update:value", "");
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
getPopupFieldConfig: E,
|
|
140
|
+
userSelectProp: C,
|
|
141
|
+
depSelectProp: Y,
|
|
142
|
+
handleSelectChange: V,
|
|
143
|
+
setFieldsValue: B,
|
|
144
|
+
innerValue: y,
|
|
145
|
+
beginValue: s,
|
|
146
|
+
endValue: f,
|
|
147
|
+
isEasySelect: F,
|
|
148
|
+
getDictOptionKey: D,
|
|
149
|
+
getDictCode: k,
|
|
150
|
+
labelTextMaxWidth: i,
|
|
151
|
+
labelCol: P,
|
|
152
|
+
single_mode: I,
|
|
153
|
+
getSqlByDictCode: T,
|
|
154
|
+
handleCategoryTreeChange: U
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}), W = () => {
|
|
158
|
+
X((e) => ({
|
|
159
|
+
"6fec9251": e.labelTextMaxWidth
|
|
160
|
+
}));
|
|
161
|
+
}, z = O.setup;
|
|
162
|
+
O.setup = z ? (e, l) => (W(), z(e, l)) : W;
|
|
163
|
+
const ge = O;
|
|
164
|
+
const q = (e) => (ee("data-v-783e1802"), e = e(), le(), e), fe = ["title"], ce = /* @__PURE__ */ q(() => /* @__PURE__ */ J("span", { class: "group-query-strig" }, "~", -1)), he = /* @__PURE__ */ q(() => /* @__PURE__ */ J("span", { class: "group-query-strig" }, "~", -1)), ye = /* @__PURE__ */ q(() => /* @__PURE__ */ J("span", { class: "group-query-strig" }, "~", -1));
|
|
165
|
+
function Ve(e, l, i, P, I, y) {
|
|
166
|
+
const s = o("a-date-picker"), f = o("JDictSelectTag"), D = o("a-select-option"), F = o("a-select"), k = o("JTreeSelect"), T = o("JCategorySelect"), E = o("JOnlineSearchSelect"), B = o("JSelectUser"), U = o("JSelectDept"), S = o("JPopup"), C = o("JAreaSelect"), Y = o("JSelectMultiple"), V = o("a-input"), a = o("a-form-item");
|
|
167
|
+
return u(), n(a, {
|
|
168
|
+
labelCol: e.labelCol,
|
|
169
|
+
class: Z("jeecg-online-search")
|
|
170
|
+
}, {
|
|
171
|
+
label: w(() => [
|
|
172
|
+
J("span", {
|
|
173
|
+
title: e.item.label,
|
|
174
|
+
class: "label-text"
|
|
175
|
+
}, $(e.item.label), 9, fe)
|
|
176
|
+
]),
|
|
177
|
+
default: w(() => [
|
|
178
|
+
e.item.view == "date" ? (u(), p(m, { key: 0 }, [
|
|
179
|
+
e.single_mode === e.item.mode ? (u(), n(s, {
|
|
180
|
+
key: 0,
|
|
181
|
+
style: { width: "100%" },
|
|
182
|
+
showTime: !1,
|
|
183
|
+
valueFormat: "YYYY-MM-DD",
|
|
184
|
+
placeholder: "请选择" + e.item.label,
|
|
185
|
+
value: e.innerValue,
|
|
186
|
+
"onUpdate:value": l[0] || (l[0] = (t) => e.innerValue = t)
|
|
187
|
+
}, null, 8, ["placeholder", "value"])) : (u(), p(m, { key: 1 }, [
|
|
188
|
+
h(s, {
|
|
189
|
+
showTime: !1,
|
|
190
|
+
valueFormat: "YYYY-MM-DD",
|
|
191
|
+
placeholder: "开始日期",
|
|
192
|
+
value: e.beginValue,
|
|
193
|
+
"onUpdate:value": l[1] || (l[1] = (t) => e.beginValue = t),
|
|
194
|
+
style: { width: "calc(50% - 15px)" }
|
|
195
|
+
}, null, 8, ["value"]),
|
|
196
|
+
ce,
|
|
197
|
+
h(s, {
|
|
198
|
+
showTime: !1,
|
|
199
|
+
valueFormat: "YYYY-MM-DD",
|
|
200
|
+
placeholder: "结束日期",
|
|
201
|
+
value: e.endValue,
|
|
202
|
+
"onUpdate:value": l[2] || (l[2] = (t) => e.endValue = t),
|
|
203
|
+
style: { width: "calc(50% - 15px)" }
|
|
204
|
+
}, null, 8, ["value"])
|
|
205
|
+
], 64))
|
|
206
|
+
], 64)) : e.item.view == "datetime" ? (u(), p(m, { key: 1 }, [
|
|
207
|
+
e.single_mode === e.item.mode ? (u(), n(s, {
|
|
208
|
+
key: 0,
|
|
209
|
+
style: { width: "100%" },
|
|
210
|
+
showTime: !0,
|
|
211
|
+
valueFormat: "YYYY-MM-DD hh:mm:ss",
|
|
212
|
+
placeholder: "请选择" + e.item.label,
|
|
213
|
+
value: e.innerValue,
|
|
214
|
+
"onUpdate:value": l[3] || (l[3] = (t) => e.innerValue = t)
|
|
215
|
+
}, null, 8, ["placeholder", "value"])) : (u(), p(m, { key: 1 }, [
|
|
216
|
+
h(s, {
|
|
217
|
+
showTime: !0,
|
|
218
|
+
valueFormat: "YYYY-MM-DD hh:mm:ss",
|
|
219
|
+
placeholder: "开始时间",
|
|
220
|
+
value: e.beginValue,
|
|
221
|
+
"onUpdate:value": l[4] || (l[4] = (t) => e.beginValue = t),
|
|
222
|
+
style: { width: "calc(50% - 15px)" }
|
|
223
|
+
}, null, 8, ["value"]),
|
|
224
|
+
he,
|
|
225
|
+
h(s, {
|
|
226
|
+
showTime: !0,
|
|
227
|
+
valueFormat: "YYYY-MM-DD hh:mm:ss",
|
|
228
|
+
placeholder: "结束时间",
|
|
229
|
+
value: e.endValue,
|
|
230
|
+
"onUpdate:value": l[5] || (l[5] = (t) => e.endValue = t),
|
|
231
|
+
style: { width: "calc(50% - 15px)" }
|
|
232
|
+
}, null, 8, ["value"])
|
|
233
|
+
], 64))
|
|
234
|
+
], 64)) : e.isEasySelect() ? (u(), p(m, { key: 2 }, [
|
|
235
|
+
e.item.config === "1" ? (u(), n(f, {
|
|
236
|
+
key: 0,
|
|
237
|
+
placeholder: "请选择" + e.item.label,
|
|
238
|
+
value: e.innerValue,
|
|
239
|
+
"onUpdate:value": l[6] || (l[6] = (t) => e.innerValue = t),
|
|
240
|
+
dictCode: e.getDictCode()
|
|
241
|
+
}, null, 8, ["placeholder", "value", "dictCode"])) : (u(), n(F, {
|
|
242
|
+
key: 1,
|
|
243
|
+
placeholder: "请选择" + e.item.label,
|
|
244
|
+
value: e.innerValue,
|
|
245
|
+
"onUpdate:value": l[7] || (l[7] = (t) => e.innerValue = t)
|
|
246
|
+
}, {
|
|
247
|
+
default: w(() => [
|
|
248
|
+
(u(!0), p(m, null, _(e.dictOptions[e.getDictOptionKey(e.item)], (t, v) => (u(), n(D, {
|
|
249
|
+
key: v,
|
|
250
|
+
value: t.value
|
|
251
|
+
}, {
|
|
252
|
+
default: w(() => [
|
|
253
|
+
x($(t.text), 1)
|
|
254
|
+
]),
|
|
255
|
+
_: 2
|
|
256
|
+
}, 1032, ["value"]))), 128))
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
}, 8, ["placeholder", "value"]))
|
|
260
|
+
], 64)) : e.item.view === "sel_tree" ? (u(), n(k, {
|
|
261
|
+
key: 3,
|
|
262
|
+
placeholder: "请选择" + e.item.label,
|
|
263
|
+
value: e.innerValue,
|
|
264
|
+
"onUpdate:value": l[8] || (l[8] = (t) => e.innerValue = t),
|
|
265
|
+
dict: e.item.dict,
|
|
266
|
+
pidField: e.item.pidField,
|
|
267
|
+
pidValue: e.item.pidValue,
|
|
268
|
+
hasChildField: e.item.hasChildField,
|
|
269
|
+
"load-triggle-change": ""
|
|
270
|
+
}, null, 8, ["placeholder", "value", "dict", "pidField", "pidValue", "hasChildField"])) : e.item.view === "cat_tree" ? (u(), n(T, {
|
|
271
|
+
key: 4,
|
|
272
|
+
onChange: e.handleCategoryTreeChange,
|
|
273
|
+
loadTriggleChange: !0,
|
|
274
|
+
pcode: e.item.pcode,
|
|
275
|
+
value: e.innerValue,
|
|
276
|
+
"onUpdate:value": l[9] || (l[9] = (t) => e.innerValue = t),
|
|
277
|
+
placeholder: "请选择" + e.item.label
|
|
278
|
+
}, null, 8, ["onChange", "pcode", "value", "placeholder"])) : e.item.view === "sel_search" ? (u(), p(m, { key: 5 }, [
|
|
279
|
+
e.item.config === "1" ? (u(), n(f, {
|
|
280
|
+
key: 0,
|
|
281
|
+
value: e.innerValue,
|
|
282
|
+
"onUpdate:value": l[10] || (l[10] = (t) => e.innerValue = t),
|
|
283
|
+
placeholder: "请选择" + e.item.label,
|
|
284
|
+
dict: e.getDictCode()
|
|
285
|
+
}, null, 8, ["value", "placeholder", "dict"])) : (u(), n(E, {
|
|
286
|
+
key: 1,
|
|
287
|
+
value: e.innerValue,
|
|
288
|
+
"onUpdate:value": l[11] || (l[11] = (t) => e.innerValue = t),
|
|
289
|
+
placeholder: "请选择" + e.item.label,
|
|
290
|
+
sql: e.getSqlByDictCode()
|
|
291
|
+
}, null, 8, ["value", "placeholder", "sql"]))
|
|
292
|
+
], 64)) : e.item.view == "sel_user" ? (u(), n(B, L({ key: 6 }, e.userSelectProp, {
|
|
293
|
+
value: e.innerValue,
|
|
294
|
+
"onUpdate:value": l[12] || (l[12] = (t) => e.innerValue = t),
|
|
295
|
+
placeholder: "请选择" + e.item.label
|
|
296
|
+
}), null, 16, ["value", "placeholder"])) : e.item.view == "sel_depart" ? (u(), n(U, L({
|
|
297
|
+
key: 7,
|
|
298
|
+
showButton: !1
|
|
299
|
+
}, e.depSelectProp, {
|
|
300
|
+
value: e.innerValue,
|
|
301
|
+
"onUpdate:value": l[13] || (l[13] = (t) => e.innerValue = t),
|
|
302
|
+
placeholder: "请选择" + e.item.label
|
|
303
|
+
}), null, 16, ["value", "placeholder"])) : e.item.view == "popup" ? (u(), n(S, {
|
|
304
|
+
key: 8,
|
|
305
|
+
placeholder: "请选择" + e.item.label,
|
|
306
|
+
value: e.innerValue,
|
|
307
|
+
"onUpdate:value": l[14] || (l[14] = (t) => e.innerValue = t),
|
|
308
|
+
code: e.item.dictTable,
|
|
309
|
+
setFieldsValue: e.setFieldsValue,
|
|
310
|
+
"field-config": e.getPopupFieldConfig(e.item),
|
|
311
|
+
multi: !0
|
|
312
|
+
}, null, 8, ["placeholder", "value", "code", "setFieldsValue", "field-config"])) : e.item.view == "pca" ? (u(), n(C, {
|
|
313
|
+
key: 9,
|
|
314
|
+
placeholder: "请选择" + e.item.label,
|
|
315
|
+
value: e.innerValue,
|
|
316
|
+
"onUpdate:value": l[15] || (l[15] = (t) => e.innerValue = t)
|
|
317
|
+
}, null, 8, ["placeholder", "value"])) : e.item.view == "checkbox" || e.item.view == "list_multi" ? (u(), n(Y, {
|
|
318
|
+
key: 10,
|
|
319
|
+
dictCode: e.getDictCode(),
|
|
320
|
+
placeholder: "请选择" + e.item.label,
|
|
321
|
+
value: e.innerValue,
|
|
322
|
+
"onUpdate:value": l[16] || (l[16] = (t) => e.innerValue = t)
|
|
323
|
+
}, null, 8, ["dictCode", "placeholder", "value"])) : (u(), p(m, { key: 11 }, [
|
|
324
|
+
e.single_mode === e.item.mode ? (u(), n(V, {
|
|
325
|
+
key: 0,
|
|
326
|
+
placeholder: "请选择" + e.item.label,
|
|
327
|
+
value: e.innerValue,
|
|
328
|
+
"onUpdate:value": l[17] || (l[17] = (t) => e.innerValue = t)
|
|
329
|
+
}, null, 8, ["placeholder", "value"])) : (u(), p(m, { key: 1 }, [
|
|
330
|
+
h(V, {
|
|
331
|
+
placeholder: "开始值",
|
|
332
|
+
value: e.beginValue,
|
|
333
|
+
"onUpdate:value": l[18] || (l[18] = (t) => e.beginValue = t),
|
|
334
|
+
style: { width: "calc(50% - 15px)" }
|
|
335
|
+
}, null, 8, ["value"]),
|
|
336
|
+
ye,
|
|
337
|
+
h(V, {
|
|
338
|
+
placeholder: "结束值",
|
|
339
|
+
value: e.endValue,
|
|
340
|
+
"onUpdate:value": l[19] || (l[19] = (t) => e.endValue = t),
|
|
341
|
+
style: { width: "calc(50% - 15px)" }
|
|
342
|
+
}, null, 8, ["value"])
|
|
343
|
+
], 64))
|
|
344
|
+
], 64))
|
|
345
|
+
]),
|
|
346
|
+
_: 1
|
|
347
|
+
}, 8, ["labelCol"]);
|
|
348
|
+
}
|
|
349
|
+
const Be = /* @__PURE__ */ ve(ge, [["render", Ve], ["__scopeId", "data-v-783e1802"]]);
|
|
350
|
+
export {
|
|
351
|
+
Be as default
|
|
352
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
var S = (t, a, o) => new Promise((d, i) => {
|
|
2
|
+
var g = (l) => {
|
|
3
|
+
try {
|
|
4
|
+
r(o.next(l));
|
|
5
|
+
} catch (s) {
|
|
6
|
+
i(s);
|
|
7
|
+
}
|
|
8
|
+
}, f = (l) => {
|
|
9
|
+
try {
|
|
10
|
+
r(o.throw(l));
|
|
11
|
+
} catch (s) {
|
|
12
|
+
i(s);
|
|
13
|
+
}
|
|
14
|
+
}, r = (l) => l.done ? d(l.value) : Promise.resolve(l.value).then(g, f);
|
|
15
|
+
r((o = o.apply(t, a)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as w, ref as p, watch as y, resolveComponent as C, openBlock as _, createBlock as v, withCtx as x, createElementBlock as T, Fragment as k, renderList as B, createElementVNode as E, toDisplayString as N } from "vue";
|
|
18
|
+
import { defHttp as F } from "/@/utils/http/axios";
|
|
19
|
+
import { useMessage as L } from "/@/hooks/web/useMessage";
|
|
20
|
+
import { _ as P } from "./index-6a09a912.mjs";
|
|
21
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
22
|
+
import "vue-router";
|
|
23
|
+
const O = "/online/cgform/api/querySelectOptions", R = w({
|
|
24
|
+
name: "OnlineSelectCascade",
|
|
25
|
+
props: {
|
|
26
|
+
table: { type: String, default: "" },
|
|
27
|
+
txt: { type: String, default: "" },
|
|
28
|
+
store: { type: String, default: "" },
|
|
29
|
+
idField: { type: String, default: "" },
|
|
30
|
+
pidField: { type: String, default: "" },
|
|
31
|
+
pidValue: { type: String, default: "-1" },
|
|
32
|
+
origin: { type: Boolean, default: !1 },
|
|
33
|
+
condition: { type: String, default: "" },
|
|
34
|
+
value: { type: String, default: "" },
|
|
35
|
+
isNumber: { type: Boolean, default: !1 },
|
|
36
|
+
placeholder: { type: String, default: "请选择" }
|
|
37
|
+
},
|
|
38
|
+
emits: ["change", "next"],
|
|
39
|
+
setup(t, { emit: a }) {
|
|
40
|
+
const { createMessage: o } = L(), d = p(""), i = p([]), g = p(!0);
|
|
41
|
+
function f(e) {
|
|
42
|
+
console.log("handleChange", e);
|
|
43
|
+
let n = e || "";
|
|
44
|
+
a("change", n), m(n);
|
|
45
|
+
}
|
|
46
|
+
y(
|
|
47
|
+
() => t.condition,
|
|
48
|
+
(e) => {
|
|
49
|
+
g.value = !0, e && l();
|
|
50
|
+
},
|
|
51
|
+
{ immediate: !0 }
|
|
52
|
+
), y(
|
|
53
|
+
() => t.pidValue,
|
|
54
|
+
(e) => {
|
|
55
|
+
e === "-1" ? i.value = [] : l();
|
|
56
|
+
}
|
|
57
|
+
), y(
|
|
58
|
+
() => t.value,
|
|
59
|
+
(e, n) => {
|
|
60
|
+
console.log("值改变事件", e, n), e ? d.value = e : (d.value = [], n && (a("change", ""), a("next", "-1"))), e && !n && r(e);
|
|
61
|
+
},
|
|
62
|
+
{ immediate: !0 }
|
|
63
|
+
);
|
|
64
|
+
function r(e) {
|
|
65
|
+
return S(this, null, function* () {
|
|
66
|
+
if (t.idField === t.store)
|
|
67
|
+
a("next", e);
|
|
68
|
+
else if (t.origin === !0)
|
|
69
|
+
yield b(), m(e);
|
|
70
|
+
else {
|
|
71
|
+
let n = yield $();
|
|
72
|
+
m(e, n);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function l() {
|
|
77
|
+
let e = s();
|
|
78
|
+
t.origin === !0 ? e.condition = t.condition : e.pidValue = t.pidValue, console.log("请求参数", e), i.value = [], F.get({ url: O, params: e }, { isTransformResponse: !1 }).then((n) => {
|
|
79
|
+
n.success ? (i.value = [...n.result], console.log("请求结果", n.result, i)) : o.warning("联动组件数据加载失败,请检查配置!");
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function s() {
|
|
83
|
+
return {
|
|
84
|
+
table: t.table,
|
|
85
|
+
txt: t.txt,
|
|
86
|
+
key: t.store,
|
|
87
|
+
idField: t.idField,
|
|
88
|
+
pidField: t.pidField
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function $() {
|
|
92
|
+
return new Promise((e) => {
|
|
93
|
+
if (!t.value)
|
|
94
|
+
d.value = [], e([]);
|
|
95
|
+
else {
|
|
96
|
+
let n = s();
|
|
97
|
+
t.isNumber === !0 ? n.condition = `${t.store} = ${t.value}` : n.condition = `${t.store} = '${t.value}'`, F.get({ url: O, params: n }, { isTransformResponse: !1 }).then((u) => {
|
|
98
|
+
u.success ? e(u.result) : (o.warning("联动组件数据加载失败,请检查配置!"), e([]));
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function b() {
|
|
104
|
+
return new Promise((e) => {
|
|
105
|
+
(function u(c) {
|
|
106
|
+
c > 10 && e([]);
|
|
107
|
+
let h = i.value;
|
|
108
|
+
h && h.length > 0 ? e(h) : setTimeout(() => {
|
|
109
|
+
u(c++);
|
|
110
|
+
}, 300);
|
|
111
|
+
})(0);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function m(e, n = []) {
|
|
115
|
+
if (e && e.length > 0) {
|
|
116
|
+
(!n || n.length == 0) && (n = i.value);
|
|
117
|
+
let u = n.filter((c) => c.store === e);
|
|
118
|
+
if (u && u.length > 0) {
|
|
119
|
+
let c = u[0].id;
|
|
120
|
+
a("next", c);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
selectedValue: d,
|
|
126
|
+
dictOptions: i,
|
|
127
|
+
handleChange: f
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
}), V = ["title"];
|
|
131
|
+
function M(t, a, o, d, i, g) {
|
|
132
|
+
const f = C("a-select-option"), r = C("a-select");
|
|
133
|
+
return _(), v(r, {
|
|
134
|
+
placeholder: t.placeholder,
|
|
135
|
+
value: t.selectedValue,
|
|
136
|
+
onChange: t.handleChange,
|
|
137
|
+
allowClear: "",
|
|
138
|
+
style: { width: "100%" }
|
|
139
|
+
}, {
|
|
140
|
+
default: x(() => [
|
|
141
|
+
(_(!0), T(k, null, B(t.dictOptions, (l, s) => (_(), v(f, {
|
|
142
|
+
key: s,
|
|
143
|
+
value: l.store
|
|
144
|
+
}, {
|
|
145
|
+
default: x(() => [
|
|
146
|
+
E("span", {
|
|
147
|
+
style: { display: "inline-block", width: "100%" },
|
|
148
|
+
title: l.label
|
|
149
|
+
}, N(l.label), 9, V)
|
|
150
|
+
]),
|
|
151
|
+
_: 2
|
|
152
|
+
}, 1032, ["value"]))), 128))
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["placeholder", "value", "onChange"]);
|
|
156
|
+
}
|
|
157
|
+
const z = /* @__PURE__ */ P(R, [["render", M]]);
|
|
158
|
+
export {
|
|
159
|
+
z as default
|
|
160
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
var b = (e, a, o) => new Promise((r, m) => {
|
|
2
|
+
var l = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
n(o.next(t));
|
|
5
|
+
} catch (s) {
|
|
6
|
+
m(s);
|
|
7
|
+
}
|
|
8
|
+
}, i = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
n(o.throw(t));
|
|
11
|
+
} catch (s) {
|
|
12
|
+
m(s);
|
|
13
|
+
}
|
|
14
|
+
}, n = (t) => t.done ? r(t.value) : Promise.resolve(t.value).then(l, i);
|
|
15
|
+
n((o = o.apply(e, a)).next());
|
|
16
|
+
});
|
|
17
|
+
import { useMessage as F } from "/@/hooks/web/useMessage";
|
|
18
|
+
import { ref as d, watch as g, resolveComponent as S, openBlock as D, createBlock as v } from "vue";
|
|
19
|
+
import { BasicForm as w } from "/@/components/Form/index";
|
|
20
|
+
import { defHttp as y } from "/@/utils/http/axios";
|
|
21
|
+
import { p as I, g as $ } from "./useExtendComponent-48d37d9b.mjs";
|
|
22
|
+
import { Loading as x } from "/@/components/Loading";
|
|
23
|
+
import B from "./DetailForm-e4538e7a.mjs";
|
|
24
|
+
import { _ as O } from "./index-6a09a912.mjs";
|
|
25
|
+
import "/@/components/Form/src/componentMap";
|
|
26
|
+
import "/@/utils/propTypes";
|
|
27
|
+
import "@ant-design/icons-vue";
|
|
28
|
+
import "/@/components/Modal";
|
|
29
|
+
import "lodash-es";
|
|
30
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
31
|
+
import "/@/views/system/user/user.api";
|
|
32
|
+
import "/@/store/modules/user";
|
|
33
|
+
import "/@/utils";
|
|
34
|
+
import "/@/utils/desform/customExpression";
|
|
35
|
+
import "/@/store/modules/permission";
|
|
36
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
37
|
+
import "/@/utils/common/compUtils";
|
|
38
|
+
import "/@/components/Table";
|
|
39
|
+
import "/@/hooks/system/useListPage";
|
|
40
|
+
import "vue-router";
|
|
41
|
+
import "/@/components/Form/src/utils/Area";
|
|
42
|
+
import "/@/components/Preview/index";
|
|
43
|
+
import "./LinkTableListPiece-34266919.mjs";
|
|
44
|
+
import "./OnlineSelectCascade-c7baf52b.mjs";
|
|
45
|
+
import "/@/utils/auth";
|
|
46
|
+
import "./JModalTip-abe1515a.mjs";
|
|
47
|
+
import "ant-design-vue";
|
|
48
|
+
import "@vueuse/core";
|
|
49
|
+
import "/@/utils/dict";
|
|
50
|
+
import "/@/utils/dict/index";
|
|
51
|
+
import "/@/api/common/api";
|
|
52
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
53
|
+
const R = "/online/cgform/api/subform", T = {
|
|
54
|
+
name: "OnlineSubFormDetail",
|
|
55
|
+
components: {
|
|
56
|
+
BasicForm: w,
|
|
57
|
+
Loading: x,
|
|
58
|
+
DetailForm: B
|
|
59
|
+
},
|
|
60
|
+
props: {
|
|
61
|
+
properties: {
|
|
62
|
+
type: Object,
|
|
63
|
+
required: !0
|
|
64
|
+
},
|
|
65
|
+
mainId: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: ""
|
|
68
|
+
},
|
|
69
|
+
table: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: ""
|
|
72
|
+
},
|
|
73
|
+
formTemplate: {
|
|
74
|
+
type: Number,
|
|
75
|
+
default: 1
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
emits: ["formChange"],
|
|
79
|
+
setup(e) {
|
|
80
|
+
const a = d(!1), { createMessage: o } = F(), r = d(""), m = d({}), { detailFormSchemas: l, createFormSchemas: i, formSpan: n } = I(e);
|
|
81
|
+
g(
|
|
82
|
+
() => e.table,
|
|
83
|
+
() => {
|
|
84
|
+
r.value = e.table;
|
|
85
|
+
},
|
|
86
|
+
{ immediate: !0 }
|
|
87
|
+
), g(
|
|
88
|
+
() => e.properties,
|
|
89
|
+
() => {
|
|
90
|
+
console.log("主表properties改变", e.properties), a.value = !1, i(e.properties), a.value = !0;
|
|
91
|
+
},
|
|
92
|
+
{ deep: !0, immediate: !0 }
|
|
93
|
+
), g(
|
|
94
|
+
() => e.mainId,
|
|
95
|
+
() => {
|
|
96
|
+
console.log("主表ID改变", e.mainId), setTimeout(() => {
|
|
97
|
+
t();
|
|
98
|
+
}, 100);
|
|
99
|
+
},
|
|
100
|
+
{ immediate: !0 }
|
|
101
|
+
);
|
|
102
|
+
function t() {
|
|
103
|
+
return b(this, null, function* () {
|
|
104
|
+
yield $(a), m.value = {};
|
|
105
|
+
const { table: p, mainId: c } = e;
|
|
106
|
+
if (!p || !c)
|
|
107
|
+
return;
|
|
108
|
+
let u = (yield s(p, c)) || {};
|
|
109
|
+
m.value = u;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function s(p, c) {
|
|
113
|
+
let u = `${R}/${p}/${c}`;
|
|
114
|
+
return new Promise((_, h) => {
|
|
115
|
+
y.get({ url: u }, { isTransformResponse: !1 }).then((f) => {
|
|
116
|
+
console.log(f), f.success ? _(f.result) : (console.log(f.message), h());
|
|
117
|
+
});
|
|
118
|
+
}).catch(() => {
|
|
119
|
+
o.warning("子表获取数据失败:" + p);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
detailFormSchemas: l,
|
|
124
|
+
subFormData: m,
|
|
125
|
+
formSpan: n
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
function k(e, a, o, r, m, l) {
|
|
130
|
+
const i = S("detail-form");
|
|
131
|
+
return D(), v(i, {
|
|
132
|
+
schemas: r.detailFormSchemas,
|
|
133
|
+
data: r.subFormData,
|
|
134
|
+
span: r.formSpan
|
|
135
|
+
}, null, 8, ["schemas", "data", "span"]);
|
|
136
|
+
}
|
|
137
|
+
const be = /* @__PURE__ */ O(T, [["render", k]]);
|
|
138
|
+
export {
|
|
139
|
+
be as default
|
|
140
|
+
};
|