@jeecg/online 3.5.3-beta3 → 3.6.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/AuthButtonConfig-b6a674fa.mjs +125 -0
- package/AuthButtonTree-09e57bc4.mjs +156 -0
- package/AuthDataConfig-6e7e61ec.mjs +212 -0
- package/AuthDataTree-e83286c5.mjs +139 -0
- package/AuthFieldConfig-f1ec2708.mjs +139 -0
- package/AuthFieldTree-bb72e21f.mjs +232 -0
- package/AuthManagerDrawer-28a2d108.mjs +114 -0
- package/AuthSetterModal-2990d553.mjs +261 -0
- package/CgformCopyList-36a4cbf0.mjs +246 -0
- package/CgformModal-7399a5ac.mjs +611 -0
- package/CgreportModal-2eb9c9e1.mjs +13 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
- package/CheckDictTable-3a8a54b3.mjs +211 -0
- package/CodeFileListModal-72f0d3bb.mjs +158 -0
- package/CodeFileViewModal-9eb88c47.mjs +244 -0
- package/CodeGeneratorModal-a89958f5.mjs +233 -0
- package/CustomButtonList-c44aec5a.mjs +363 -0
- package/DBAttributeTable-7d285e8d.mjs +473 -0
- package/DbToOnlineModal-d23cbeb1.mjs +160 -0
- package/DetailForm-2901d215.mjs +461 -0
- package/EnhanceJavaModal-153899a9.mjs +264 -0
- package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
- package/EnhanceJsModal-c2fb75b8.mjs +311 -0
- package/EnhanceSqlModal-965e9b0a.mjs +268 -0
- package/ExtendConfigModal-8f08466f.mjs +111 -0
- package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
- package/FileSelectModal-432d4521.mjs +103 -0
- package/ForeignKeyTable-faab7ccf.mjs +69 -0
- package/IndexTable-0a2d3718.mjs +89 -0
- package/JModalTip-e1938b49.mjs +46 -0
- package/JOnlineSearchSelect-7e908492.mjs +95 -0
- package/LeftDepart-54f245b3.mjs +82 -0
- package/LeftRole-c138f892.mjs +86 -0
- package/LeftUser-9c812f8a.mjs +105 -0
- package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
- package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
- package/LinkTableListPiece-7f793b08.mjs +34 -0
- package/ModalFormDemo-65685b0e.mjs +78 -0
- package/OnlCgformErpList-52c87ed3.mjs +449 -0
- package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
- package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
- package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
- package/OnlCgformTabList-15516315.mjs +390 -0
- package/OnlineAutoList-63a0224f.mjs +474 -0
- package/OnlineAutoModal-ffe19c3f.mjs +206 -0
- package/OnlineAutoTreeList-317c7105.mjs +495 -0
- package/OnlineCustomModal-3939ce78.mjs +227 -0
- package/OnlineDetailModal-bfb1375f.mjs +177 -0
- package/OnlineForm-069f6092.mjs +749 -0
- package/OnlineFormDetail-ad5735fb.mjs +296 -0
- package/OnlineQueryForm-0771c80f.mjs +385 -0
- package/OnlineSearchFormItem-0db5834f.mjs +348 -0
- package/OnlineSelectCascade-a05c30f4.mjs +159 -0
- package/OnlineSubFormDetail-583d01eb.mjs +142 -0
- package/OnlineTabAutoModal-747e071d.mjs +253 -0
- package/OnlineTabDetailModal-887f0174.mjs +222 -0
- package/OnlineTabForm-b1dcd4b4.mjs +765 -0
- package/OnlineTabFormDetail-8e494a96.mjs +323 -0
- package/PageAttributeTable-5966b201.mjs +404 -0
- package/ProcessOnlineForm-4382bea7.mjs +177 -0
- package/QueryTable-6e8053ad.mjs +115 -0
- package/README.md +2 -1
- package/SuperQuery-78db6998.mjs +841 -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-754f1a9d.mjs +9 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-0a93652b.mjs +237 -0
- package/index-7e9a23f2.mjs +1494 -0
- package/index-b70302f2.mjs +56 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-0c603af1.mjs +424 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-aa1cdfc8.mjs +3917 -0
- package/useListButton-0f18bf6a.mjs +671 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/useSchemas-43429d80.mjs +685 -0
- package/useTableSync-774c3774.mjs +87 -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 -523
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -552
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1016
- 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 -1020
- package/SuperQueryValComponent.js +0 -8
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
- 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,348 @@
|
|
|
1
|
+
var z = Object.defineProperty;
|
|
2
|
+
var j = Object.getOwnPropertySymbols;
|
|
3
|
+
var G = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var N = (e, l, i) => l in e ? z(e, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[l] = i, A = (e, l) => {
|
|
5
|
+
for (var i in l || (l = {}))
|
|
6
|
+
G.call(l, i) && N(e, i, l[i]);
|
|
7
|
+
if (j)
|
|
8
|
+
for (var i of j(l))
|
|
9
|
+
H.call(l, i) && N(e, i, l[i]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
import { defineComponent as Q, ref as M, watch as C, useCssVars as R, resolveComponent as o, openBlock as u, createBlock as n, normalizeClass as X, withCtx as b, createElementVNode as w, toDisplayString as K, createElementBlock as p, Fragment as m, createVNode as c, renderList as Z, createTextVNode as _, mergeProps as $, pushScopeId as x, popScopeId as ee } from "vue";
|
|
13
|
+
import { JDictSelectTag as le, JTreeSelect as te, JCategorySelect as ae, JSelectUser as ue, JSelectUserByDept as ne, JSelectDept as ie, JPopup as oe, JAreaLinkage as de, JAreaSelect as re, JSelectMultiple as se } from "/@/components/Form";
|
|
14
|
+
import pe from "./JOnlineSearchSelect-7e908492.mjs";
|
|
15
|
+
import { _ as me } from "./index-b70302f2.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 = Q({
|
|
22
|
+
name: "OnlineSearchFormItem",
|
|
23
|
+
components: {
|
|
24
|
+
JOnlineSearchSelect: pe,
|
|
25
|
+
JDictSelectTag: le,
|
|
26
|
+
JTreeSelect: te,
|
|
27
|
+
JCategorySelect: ae,
|
|
28
|
+
JSelectUser: ue,
|
|
29
|
+
JSelectUserByDept: ne,
|
|
30
|
+
JSelectDept: ie,
|
|
31
|
+
JPopup: oe,
|
|
32
|
+
JAreaLinkage: de,
|
|
33
|
+
JAreaSelect: re,
|
|
34
|
+
JSelectMultiple: se
|
|
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
|
+
C(
|
|
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
|
+
), C(
|
|
75
|
+
y,
|
|
76
|
+
(a) => {
|
|
77
|
+
l("update:value", a);
|
|
78
|
+
},
|
|
79
|
+
{ immediate: !0 }
|
|
80
|
+
), C(s, (a) => {
|
|
81
|
+
l("change", e.item.field + "_begin", a), l("update:value", "1");
|
|
82
|
+
}), C(f, (a) => {
|
|
83
|
+
l("change", e.item.field + "_end", a), l("update:value", "1");
|
|
84
|
+
});
|
|
85
|
+
function J(a) {
|
|
86
|
+
return 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 D() {
|
|
93
|
+
let a = e.item;
|
|
94
|
+
return a.dictTable && a.dictTable.length > 0 ? a.dictTable + "," + a.dictText + "," + a.dictCode : a.dictCode;
|
|
95
|
+
}
|
|
96
|
+
function k() {
|
|
97
|
+
let a = e.item, { dictTable: t, dictCode: v, dictText: r } = a, g = t.toLowerCase().split("where"), d = "";
|
|
98
|
+
return g.length > 1 && (d = " where" + g[1]), "select " + v + " as 'value', " + r + " as 'text' from " + g[0] + d;
|
|
99
|
+
}
|
|
100
|
+
function T(a) {
|
|
101
|
+
let { dictText: t, dictCode: v } = a;
|
|
102
|
+
if (!t || t.length == 0)
|
|
103
|
+
return [];
|
|
104
|
+
let r = t.split(","), h = v.split(","), g = [];
|
|
105
|
+
for (let d = 0; d < r.length; d++)
|
|
106
|
+
g.push({
|
|
107
|
+
target: r[d],
|
|
108
|
+
source: h[d]
|
|
109
|
+
});
|
|
110
|
+
return g;
|
|
111
|
+
}
|
|
112
|
+
function E(a) {
|
|
113
|
+
let { dictText: t } = e.item, r = t.split(",")[0];
|
|
114
|
+
l("change", r, a[r]);
|
|
115
|
+
}
|
|
116
|
+
function B(a) {
|
|
117
|
+
l("update:value", a);
|
|
118
|
+
}
|
|
119
|
+
function S(a, t, v) {
|
|
120
|
+
let r = {
|
|
121
|
+
labelKey: t,
|
|
122
|
+
rowKey: v
|
|
123
|
+
}, h = a.fieldExtendJson;
|
|
124
|
+
if (h && typeof h == "string") {
|
|
125
|
+
let g = JSON.parse(h), d = A({}, g);
|
|
126
|
+
d.text && (r.labelKey = d.text), d.store && (r.rowKey = d.store);
|
|
127
|
+
}
|
|
128
|
+
return r;
|
|
129
|
+
}
|
|
130
|
+
let U = S(e.item, "realname", "username"), Y = S(e.item, "departName", "id");
|
|
131
|
+
function V(a) {
|
|
132
|
+
a && a.length > 0 ? l("update:value", a.join(",")) : l("update:value", "");
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
getPopupFieldConfig: T,
|
|
136
|
+
userSelectProp: U,
|
|
137
|
+
depSelectProp: Y,
|
|
138
|
+
handleSelectChange: V,
|
|
139
|
+
setFieldsValue: E,
|
|
140
|
+
innerValue: y,
|
|
141
|
+
beginValue: s,
|
|
142
|
+
endValue: f,
|
|
143
|
+
isEasySelect: F,
|
|
144
|
+
getDictOptionKey: J,
|
|
145
|
+
getDictCode: D,
|
|
146
|
+
labelTextMaxWidth: i,
|
|
147
|
+
labelCol: P,
|
|
148
|
+
single_mode: I,
|
|
149
|
+
getSqlByDictCode: k,
|
|
150
|
+
handleCategoryTreeChange: B
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
}), L = () => {
|
|
154
|
+
R((e) => ({
|
|
155
|
+
"6524b8a9": e.labelTextMaxWidth
|
|
156
|
+
}));
|
|
157
|
+
}, W = O.setup;
|
|
158
|
+
O.setup = W ? (e, l) => (L(), W(e, l)) : L;
|
|
159
|
+
const ve = O;
|
|
160
|
+
const q = (e) => (x("data-v-e62a9629"), e = e(), ee(), e), ge = ["title"], fe = /* @__PURE__ */ q(() => /* @__PURE__ */ w("span", { class: "group-query-strig" }, "~", -1)), he = /* @__PURE__ */ q(() => /* @__PURE__ */ w("span", { class: "group-query-strig" }, "~", -1)), ce = /* @__PURE__ */ q(() => /* @__PURE__ */ w("span", { class: "group-query-strig" }, "~", -1));
|
|
161
|
+
function ye(e, l, i, P, I, y) {
|
|
162
|
+
const s = o("a-date-picker"), f = o("JDictSelectTag"), J = o("a-select-option"), F = o("a-select"), D = o("JTreeSelect"), k = o("JCategorySelect"), T = o("JOnlineSearchSelect"), E = o("JSelectUser"), B = o("JSelectDept"), S = o("JPopup"), U = o("JAreaSelect"), Y = o("JSelectMultiple"), V = o("a-input"), a = o("a-form-item");
|
|
163
|
+
return u(), n(a, {
|
|
164
|
+
labelCol: e.labelCol,
|
|
165
|
+
class: X("jeecg-online-search")
|
|
166
|
+
}, {
|
|
167
|
+
label: b(() => [
|
|
168
|
+
w("span", {
|
|
169
|
+
title: e.item.label,
|
|
170
|
+
class: "label-text"
|
|
171
|
+
}, K(e.item.label), 9, ge)
|
|
172
|
+
]),
|
|
173
|
+
default: b(() => [
|
|
174
|
+
e.item.view == "date" ? (u(), p(m, { key: 0 }, [
|
|
175
|
+
e.single_mode === e.item.mode ? (u(), n(s, {
|
|
176
|
+
key: 0,
|
|
177
|
+
style: { width: "100%" },
|
|
178
|
+
showTime: !1,
|
|
179
|
+
valueFormat: "YYYY-MM-DD",
|
|
180
|
+
placeholder: "请选择" + e.item.label,
|
|
181
|
+
value: e.innerValue,
|
|
182
|
+
"onUpdate:value": l[0] || (l[0] = (t) => e.innerValue = t)
|
|
183
|
+
}, null, 8, ["placeholder", "value"])) : (u(), p(m, { key: 1 }, [
|
|
184
|
+
c(s, {
|
|
185
|
+
showTime: !1,
|
|
186
|
+
valueFormat: "YYYY-MM-DD",
|
|
187
|
+
placeholder: "开始日期",
|
|
188
|
+
value: e.beginValue,
|
|
189
|
+
"onUpdate:value": l[1] || (l[1] = (t) => e.beginValue = t),
|
|
190
|
+
style: { width: "calc(50% - 15px)" }
|
|
191
|
+
}, null, 8, ["value"]),
|
|
192
|
+
fe,
|
|
193
|
+
c(s, {
|
|
194
|
+
showTime: !1,
|
|
195
|
+
valueFormat: "YYYY-MM-DD",
|
|
196
|
+
placeholder: "结束日期",
|
|
197
|
+
value: e.endValue,
|
|
198
|
+
"onUpdate:value": l[2] || (l[2] = (t) => e.endValue = t),
|
|
199
|
+
style: { width: "calc(50% - 15px)" }
|
|
200
|
+
}, null, 8, ["value"])
|
|
201
|
+
], 64))
|
|
202
|
+
], 64)) : e.item.view == "datetime" ? (u(), p(m, { key: 1 }, [
|
|
203
|
+
e.single_mode === e.item.mode ? (u(), n(s, {
|
|
204
|
+
key: 0,
|
|
205
|
+
style: { width: "100%" },
|
|
206
|
+
showTime: !0,
|
|
207
|
+
valueFormat: "YYYY-MM-DD hh:mm:ss",
|
|
208
|
+
placeholder: "请选择" + e.item.label,
|
|
209
|
+
value: e.innerValue,
|
|
210
|
+
"onUpdate:value": l[3] || (l[3] = (t) => e.innerValue = t)
|
|
211
|
+
}, null, 8, ["placeholder", "value"])) : (u(), p(m, { key: 1 }, [
|
|
212
|
+
c(s, {
|
|
213
|
+
showTime: !0,
|
|
214
|
+
valueFormat: "YYYY-MM-DD hh:mm:ss",
|
|
215
|
+
placeholder: "开始时间",
|
|
216
|
+
value: e.beginValue,
|
|
217
|
+
"onUpdate:value": l[4] || (l[4] = (t) => e.beginValue = t),
|
|
218
|
+
style: { width: "calc(50% - 15px)" }
|
|
219
|
+
}, null, 8, ["value"]),
|
|
220
|
+
he,
|
|
221
|
+
c(s, {
|
|
222
|
+
showTime: !0,
|
|
223
|
+
valueFormat: "YYYY-MM-DD hh:mm:ss",
|
|
224
|
+
placeholder: "结束时间",
|
|
225
|
+
value: e.endValue,
|
|
226
|
+
"onUpdate:value": l[5] || (l[5] = (t) => e.endValue = t),
|
|
227
|
+
style: { width: "calc(50% - 15px)" }
|
|
228
|
+
}, null, 8, ["value"])
|
|
229
|
+
], 64))
|
|
230
|
+
], 64)) : e.isEasySelect() ? (u(), p(m, { key: 2 }, [
|
|
231
|
+
e.item.config === "1" ? (u(), n(f, {
|
|
232
|
+
key: 0,
|
|
233
|
+
placeholder: "请选择" + e.item.label,
|
|
234
|
+
value: e.innerValue,
|
|
235
|
+
"onUpdate:value": l[6] || (l[6] = (t) => e.innerValue = t),
|
|
236
|
+
dictCode: e.getDictCode()
|
|
237
|
+
}, null, 8, ["placeholder", "value", "dictCode"])) : (u(), n(F, {
|
|
238
|
+
key: 1,
|
|
239
|
+
placeholder: "请选择" + e.item.label,
|
|
240
|
+
value: e.innerValue,
|
|
241
|
+
"onUpdate:value": l[7] || (l[7] = (t) => e.innerValue = t)
|
|
242
|
+
}, {
|
|
243
|
+
default: b(() => [
|
|
244
|
+
(u(!0), p(m, null, Z(e.dictOptions[e.getDictOptionKey(e.item)], (t, v) => (u(), n(J, {
|
|
245
|
+
key: v,
|
|
246
|
+
value: t.value
|
|
247
|
+
}, {
|
|
248
|
+
default: b(() => [
|
|
249
|
+
_(K(t.text), 1)
|
|
250
|
+
]),
|
|
251
|
+
_: 2
|
|
252
|
+
}, 1032, ["value"]))), 128))
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}, 8, ["placeholder", "value"]))
|
|
256
|
+
], 64)) : e.item.view === "sel_tree" ? (u(), n(D, {
|
|
257
|
+
key: 3,
|
|
258
|
+
placeholder: "请选择" + e.item.label,
|
|
259
|
+
value: e.innerValue,
|
|
260
|
+
"onUpdate:value": l[8] || (l[8] = (t) => e.innerValue = t),
|
|
261
|
+
dict: e.item.dict,
|
|
262
|
+
pidField: e.item.pidField,
|
|
263
|
+
pidValue: e.item.pidValue,
|
|
264
|
+
hasChildField: e.item.hasChildField,
|
|
265
|
+
"load-triggle-change": ""
|
|
266
|
+
}, null, 8, ["placeholder", "value", "dict", "pidField", "pidValue", "hasChildField"])) : e.item.view === "cat_tree" ? (u(), n(k, {
|
|
267
|
+
key: 4,
|
|
268
|
+
onChange: e.handleCategoryTreeChange,
|
|
269
|
+
loadTriggleChange: !0,
|
|
270
|
+
pcode: e.item.pcode,
|
|
271
|
+
value: e.innerValue,
|
|
272
|
+
"onUpdate:value": l[9] || (l[9] = (t) => e.innerValue = t),
|
|
273
|
+
placeholder: "请选择" + e.item.label
|
|
274
|
+
}, null, 8, ["onChange", "pcode", "value", "placeholder"])) : e.item.view === "sel_search" ? (u(), p(m, { key: 5 }, [
|
|
275
|
+
e.item.config === "1" ? (u(), n(f, {
|
|
276
|
+
key: 0,
|
|
277
|
+
value: e.innerValue,
|
|
278
|
+
"onUpdate:value": l[10] || (l[10] = (t) => e.innerValue = t),
|
|
279
|
+
placeholder: "请选择" + e.item.label,
|
|
280
|
+
dict: e.getDictCode()
|
|
281
|
+
}, null, 8, ["value", "placeholder", "dict"])) : (u(), n(T, {
|
|
282
|
+
key: 1,
|
|
283
|
+
value: e.innerValue,
|
|
284
|
+
"onUpdate:value": l[11] || (l[11] = (t) => e.innerValue = t),
|
|
285
|
+
placeholder: "请选择" + e.item.label,
|
|
286
|
+
sql: e.getSqlByDictCode()
|
|
287
|
+
}, null, 8, ["value", "placeholder", "sql"]))
|
|
288
|
+
], 64)) : e.item.view == "sel_user" ? (u(), n(E, $({ key: 6 }, e.userSelectProp, {
|
|
289
|
+
value: e.innerValue,
|
|
290
|
+
"onUpdate:value": l[12] || (l[12] = (t) => e.innerValue = t),
|
|
291
|
+
placeholder: "请选择" + e.item.label
|
|
292
|
+
}), null, 16, ["value", "placeholder"])) : e.item.view == "sel_depart" ? (u(), n(B, $({
|
|
293
|
+
key: 7,
|
|
294
|
+
showButton: !1
|
|
295
|
+
}, e.depSelectProp, {
|
|
296
|
+
value: e.innerValue,
|
|
297
|
+
"onUpdate:value": l[13] || (l[13] = (t) => e.innerValue = t),
|
|
298
|
+
placeholder: "请选择" + e.item.label
|
|
299
|
+
}), null, 16, ["value", "placeholder"])) : e.item.view == "popup" ? (u(), n(S, {
|
|
300
|
+
key: 8,
|
|
301
|
+
placeholder: "请选择" + e.item.label,
|
|
302
|
+
value: e.innerValue,
|
|
303
|
+
"onUpdate:value": l[14] || (l[14] = (t) => e.innerValue = t),
|
|
304
|
+
code: e.item.dictTable,
|
|
305
|
+
setFieldsValue: e.setFieldsValue,
|
|
306
|
+
"field-config": e.getPopupFieldConfig(e.item),
|
|
307
|
+
multi: !0
|
|
308
|
+
}, null, 8, ["placeholder", "value", "code", "setFieldsValue", "field-config"])) : e.item.view == "pca" ? (u(), n(U, {
|
|
309
|
+
key: 9,
|
|
310
|
+
placeholder: "请选择" + e.item.label,
|
|
311
|
+
value: e.innerValue,
|
|
312
|
+
"onUpdate:value": l[15] || (l[15] = (t) => e.innerValue = t)
|
|
313
|
+
}, null, 8, ["placeholder", "value"])) : e.item.view == "checkbox" || e.item.view == "list_multi" ? (u(), n(Y, {
|
|
314
|
+
key: 10,
|
|
315
|
+
dictCode: e.getDictCode(),
|
|
316
|
+
placeholder: "请选择" + e.item.label,
|
|
317
|
+
value: e.innerValue,
|
|
318
|
+
"onUpdate:value": l[16] || (l[16] = (t) => e.innerValue = t)
|
|
319
|
+
}, null, 8, ["dictCode", "placeholder", "value"])) : (u(), p(m, { key: 11 }, [
|
|
320
|
+
e.single_mode === e.item.mode ? (u(), n(V, {
|
|
321
|
+
key: 0,
|
|
322
|
+
placeholder: "请选择" + e.item.label,
|
|
323
|
+
value: e.innerValue,
|
|
324
|
+
"onUpdate:value": l[17] || (l[17] = (t) => e.innerValue = t)
|
|
325
|
+
}, null, 8, ["placeholder", "value"])) : (u(), p(m, { key: 1 }, [
|
|
326
|
+
c(V, {
|
|
327
|
+
placeholder: "开始值",
|
|
328
|
+
value: e.beginValue,
|
|
329
|
+
"onUpdate:value": l[18] || (l[18] = (t) => e.beginValue = t),
|
|
330
|
+
style: { width: "calc(50% - 15px)" }
|
|
331
|
+
}, null, 8, ["value"]),
|
|
332
|
+
ce,
|
|
333
|
+
c(V, {
|
|
334
|
+
placeholder: "结束值",
|
|
335
|
+
value: e.endValue,
|
|
336
|
+
"onUpdate:value": l[19] || (l[19] = (t) => e.endValue = t),
|
|
337
|
+
style: { width: "calc(50% - 15px)" }
|
|
338
|
+
}, null, 8, ["value"])
|
|
339
|
+
], 64))
|
|
340
|
+
], 64))
|
|
341
|
+
]),
|
|
342
|
+
_: 1
|
|
343
|
+
}, 8, ["labelCol"]);
|
|
344
|
+
}
|
|
345
|
+
const Be = /* @__PURE__ */ me(ve, [["render", ye], ["__scopeId", "data-v-e62a9629"]]);
|
|
346
|
+
export {
|
|
347
|
+
Be as default
|
|
348
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
var S = (t, a, o) => new Promise((d, l) => {
|
|
2
|
+
var g = (i) => {
|
|
3
|
+
try {
|
|
4
|
+
r(o.next(i));
|
|
5
|
+
} catch (s) {
|
|
6
|
+
l(s);
|
|
7
|
+
}
|
|
8
|
+
}, f = (i) => {
|
|
9
|
+
try {
|
|
10
|
+
r(o.throw(i));
|
|
11
|
+
} catch (s) {
|
|
12
|
+
l(s);
|
|
13
|
+
}
|
|
14
|
+
}, r = (i) => i.done ? d(i.value) : Promise.resolve(i.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 v, openBlock as _, createBlock as C, 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 V } from "/@/hooks/web/useMessage";
|
|
20
|
+
import { _ as L } from "./index-b70302f2.mjs";
|
|
21
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
22
|
+
import "vue-router";
|
|
23
|
+
const O = "/online/cgform/api/querySelectOptions", P = 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 } = V(), d = p(""), l = p([]), g = p(!0);
|
|
41
|
+
function f(e) {
|
|
42
|
+
let n = e || "";
|
|
43
|
+
a("change", n), m(n);
|
|
44
|
+
}
|
|
45
|
+
y(
|
|
46
|
+
() => t.condition,
|
|
47
|
+
(e) => {
|
|
48
|
+
g.value = !0, e && i();
|
|
49
|
+
},
|
|
50
|
+
{ immediate: !0 }
|
|
51
|
+
), y(
|
|
52
|
+
() => t.pidValue,
|
|
53
|
+
(e) => {
|
|
54
|
+
e === "-1" ? l.value = [] : i();
|
|
55
|
+
}
|
|
56
|
+
), y(
|
|
57
|
+
() => t.value,
|
|
58
|
+
(e, n) => {
|
|
59
|
+
e ? d.value = e : (d.value = [], n && (a("change", ""), a("next", "-1"))), e && !n && r(e);
|
|
60
|
+
},
|
|
61
|
+
{ immediate: !0 }
|
|
62
|
+
);
|
|
63
|
+
function r(e) {
|
|
64
|
+
return S(this, null, function* () {
|
|
65
|
+
if (t.idField === t.store)
|
|
66
|
+
a("next", e);
|
|
67
|
+
else if (t.origin === !0)
|
|
68
|
+
yield b(), m(e);
|
|
69
|
+
else {
|
|
70
|
+
let n = yield $();
|
|
71
|
+
m(e, n);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function i() {
|
|
76
|
+
let e = s();
|
|
77
|
+
t.origin === !0 ? e.condition = t.condition : e.pidValue = t.pidValue, l.value = [], F.get({ url: O, params: e }, { isTransformResponse: !1 }).then((n) => {
|
|
78
|
+
n.success ? l.value = [...n.result] : o.warning("联动组件数据加载失败,请检查配置!");
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function s() {
|
|
82
|
+
return {
|
|
83
|
+
table: t.table,
|
|
84
|
+
txt: t.txt,
|
|
85
|
+
key: t.store,
|
|
86
|
+
idField: t.idField,
|
|
87
|
+
pidField: t.pidField
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function $() {
|
|
91
|
+
return new Promise((e) => {
|
|
92
|
+
if (!t.value)
|
|
93
|
+
d.value = [], e([]);
|
|
94
|
+
else {
|
|
95
|
+
let n = s();
|
|
96
|
+
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) => {
|
|
97
|
+
u.success ? e(u.result) : (o.warning("联动组件数据加载失败,请检查配置!"), e([]));
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function b() {
|
|
103
|
+
return new Promise((e) => {
|
|
104
|
+
(function u(c) {
|
|
105
|
+
c > 10 && e([]);
|
|
106
|
+
let h = l.value;
|
|
107
|
+
h && h.length > 0 ? e(h) : setTimeout(() => {
|
|
108
|
+
u(c++);
|
|
109
|
+
}, 300);
|
|
110
|
+
})(0);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function m(e, n = []) {
|
|
114
|
+
if (e && e.length > 0) {
|
|
115
|
+
(!n || n.length == 0) && (n = l.value);
|
|
116
|
+
let u = n.filter((c) => c.store === e);
|
|
117
|
+
if (u && u.length > 0) {
|
|
118
|
+
let c = u[0].id;
|
|
119
|
+
a("next", c);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
selectedValue: d,
|
|
125
|
+
dictOptions: l,
|
|
126
|
+
handleChange: f
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}), R = ["title"];
|
|
130
|
+
function M(t, a, o, d, l, g) {
|
|
131
|
+
const f = v("a-select-option"), r = v("a-select");
|
|
132
|
+
return _(), C(r, {
|
|
133
|
+
placeholder: t.placeholder,
|
|
134
|
+
value: t.selectedValue,
|
|
135
|
+
onChange: t.handleChange,
|
|
136
|
+
allowClear: "",
|
|
137
|
+
style: { width: "100%" }
|
|
138
|
+
}, {
|
|
139
|
+
default: x(() => [
|
|
140
|
+
(_(!0), T(k, null, B(t.dictOptions, (i, s) => (_(), C(f, {
|
|
141
|
+
key: s,
|
|
142
|
+
value: i.store
|
|
143
|
+
}, {
|
|
144
|
+
default: x(() => [
|
|
145
|
+
E("span", {
|
|
146
|
+
style: { display: "inline-block", width: "100%" },
|
|
147
|
+
title: i.label
|
|
148
|
+
}, N(i.label), 9, R)
|
|
149
|
+
]),
|
|
150
|
+
_: 2
|
|
151
|
+
}, 1032, ["value"]))), 128))
|
|
152
|
+
]),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 8, ["placeholder", "value", "onChange"]);
|
|
155
|
+
}
|
|
156
|
+
const z = /* @__PURE__ */ L(P, [["render", M]]);
|
|
157
|
+
export {
|
|
158
|
+
z as default
|
|
159
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
var g = (t, a, r) => new Promise((o, m) => {
|
|
2
|
+
var c = (e) => {
|
|
3
|
+
try {
|
|
4
|
+
n(r.next(e));
|
|
5
|
+
} catch (s) {
|
|
6
|
+
m(s);
|
|
7
|
+
}
|
|
8
|
+
}, i = (e) => {
|
|
9
|
+
try {
|
|
10
|
+
n(r.throw(e));
|
|
11
|
+
} catch (s) {
|
|
12
|
+
m(s);
|
|
13
|
+
}
|
|
14
|
+
}, n = (e) => e.done ? o(e.value) : Promise.resolve(e.value).then(c, i);
|
|
15
|
+
n((r = r.apply(t, a)).next());
|
|
16
|
+
});
|
|
17
|
+
import { useMessage as F } from "/@/hooks/web/useMessage";
|
|
18
|
+
import { ref as u, watch as d, resolveComponent as S, openBlock as v, createBlock as D } from "vue";
|
|
19
|
+
import { BasicForm as w } from "/@/components/Form/index";
|
|
20
|
+
import { defHttp as y } from "/@/utils/http/axios";
|
|
21
|
+
import { i as $, g as x } from "./useExtendComponent-aa1cdfc8.mjs";
|
|
22
|
+
import { Loading as B } from "/@/components/Loading";
|
|
23
|
+
import I from "./DetailForm-2901d215.mjs";
|
|
24
|
+
import { _ as O } from "./index-b70302f2.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 "./constant-754f1a9d.mjs";
|
|
31
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
32
|
+
import "/@/views/system/user/user.api";
|
|
33
|
+
import "/@/store/modules/user";
|
|
34
|
+
import "/@/utils";
|
|
35
|
+
import "/@/utils/desform/customExpression";
|
|
36
|
+
import "/@/store/modules/permission";
|
|
37
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
38
|
+
import "/@/utils/common/compUtils";
|
|
39
|
+
import "/@/components/Table";
|
|
40
|
+
import "/@/hooks/system/useListPage";
|
|
41
|
+
import "vue-router";
|
|
42
|
+
import "/@/components/Form/src/utils/Area";
|
|
43
|
+
import "/@/components/Preview/index";
|
|
44
|
+
import "./LinkTableListPiece-7f793b08.mjs";
|
|
45
|
+
import "./OnlineSelectCascade-a05c30f4.mjs";
|
|
46
|
+
import "/@/utils/auth";
|
|
47
|
+
import "./JModalTip-e1938b49.mjs";
|
|
48
|
+
import "ant-design-vue";
|
|
49
|
+
import "@vueuse/core";
|
|
50
|
+
import "/@/utils/dict";
|
|
51
|
+
import "/@/utils/dict/index";
|
|
52
|
+
import "/@/api/common/api";
|
|
53
|
+
import "/@/components/Markdown";
|
|
54
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
55
|
+
const R = "/online/cgform/api/subform", T = {
|
|
56
|
+
name: "OnlineSubFormDetail",
|
|
57
|
+
components: {
|
|
58
|
+
BasicForm: w,
|
|
59
|
+
Loading: B,
|
|
60
|
+
DetailForm: I
|
|
61
|
+
},
|
|
62
|
+
props: {
|
|
63
|
+
properties: {
|
|
64
|
+
type: Object,
|
|
65
|
+
required: !0
|
|
66
|
+
},
|
|
67
|
+
mainId: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: ""
|
|
70
|
+
},
|
|
71
|
+
table: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: ""
|
|
74
|
+
},
|
|
75
|
+
formTemplate: {
|
|
76
|
+
type: Number,
|
|
77
|
+
default: 1
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
emits: ["formChange"],
|
|
81
|
+
setup(t) {
|
|
82
|
+
const a = u(!1), { createMessage: r } = F(), o = u(""), m = u({}), { detailFormSchemas: c, createFormSchemas: i, formSpan: n } = $(t);
|
|
83
|
+
d(
|
|
84
|
+
() => t.table,
|
|
85
|
+
() => {
|
|
86
|
+
o.value = t.table;
|
|
87
|
+
},
|
|
88
|
+
{ immediate: !0 }
|
|
89
|
+
), d(
|
|
90
|
+
() => t.properties,
|
|
91
|
+
() => {
|
|
92
|
+
a.value = !1, i(t.properties), a.value = !0;
|
|
93
|
+
},
|
|
94
|
+
{ deep: !0, immediate: !0 }
|
|
95
|
+
), d(
|
|
96
|
+
() => t.mainId,
|
|
97
|
+
() => {
|
|
98
|
+
setTimeout(() => {
|
|
99
|
+
e();
|
|
100
|
+
}, 100);
|
|
101
|
+
},
|
|
102
|
+
{ immediate: !0 }
|
|
103
|
+
);
|
|
104
|
+
function e() {
|
|
105
|
+
return g(this, null, function* () {
|
|
106
|
+
yield x(a), m.value = {};
|
|
107
|
+
const { table: p, mainId: l } = t;
|
|
108
|
+
if (!p || !l)
|
|
109
|
+
return;
|
|
110
|
+
let f = (yield s(p, l)) || {};
|
|
111
|
+
m.value = f;
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function s(p, l) {
|
|
115
|
+
let f = `${R}/${p}/${l}`;
|
|
116
|
+
return new Promise((_, h) => {
|
|
117
|
+
y.get({ url: f }, { isTransformResponse: !1 }).then((b) => {
|
|
118
|
+
b.success ? _(b.result) : h();
|
|
119
|
+
});
|
|
120
|
+
}).catch(() => {
|
|
121
|
+
r.warning("子表获取数据失败:" + p);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
detailFormSchemas: c,
|
|
126
|
+
subFormData: m,
|
|
127
|
+
formSpan: n
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
function k(t, a, r, o, m, c) {
|
|
132
|
+
const i = S("detail-form");
|
|
133
|
+
return v(), D(i, {
|
|
134
|
+
schemas: o.detailFormSchemas,
|
|
135
|
+
data: o.subFormData,
|
|
136
|
+
span: o.formSpan
|
|
137
|
+
}, null, 8, ["schemas", "data", "span"]);
|
|
138
|
+
}
|
|
139
|
+
const ht = /* @__PURE__ */ O(T, [["render", k]]);
|
|
140
|
+
export {
|
|
141
|
+
ht as default
|
|
142
|
+
};
|