@jeecg/online 3.5.3-vite4 → 3.6.2-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-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
- package/CgformModal-eccfc38e.mjs +611 -0
- package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
- package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
- package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
- package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
- package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
- package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
- package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
- package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
- package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
- package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/EnhanceJsModal-05c73a59.mjs +311 -0
- package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
- package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
- package/FileSelectModal-9a02560b.mjs +103 -0
- package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
- package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
- package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
- package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
- package/LinkTableListPiece-8499a318.mjs +34 -0
- package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/OnlCgformErpList-db45e22b.mjs +454 -0
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
- package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
- package/OnlCgformTabList-a9e1e36a.mjs +395 -0
- package/OnlineAutoList-0583a910.mjs +479 -0
- package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
- package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
- package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
- package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
- package/OnlineForm-1fa2d893.mjs +750 -0
- package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
- package/OnlineQueryForm-1bfc8320.mjs +386 -0
- package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
- package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
- package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
- package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
- package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
- package/OnlineTabForm-512d3951.mjs +766 -0
- package/OnlineTabFormDetail-5a70219d.mjs +324 -0
- package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
- package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
- package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
- package/README.md +5 -2
- package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/constant-754f1a9d.mjs +9 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
- package/index-b7a05eef.mjs +1496 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-423282b7.mjs +400 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-325fe3f1.mjs +3926 -0
- package/useListButton-cdbab702.mjs +676 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
- package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
- package/CgformModal-6938d8c2.mjs +0 -613
- package/EnhanceJsModal-0b133341.mjs +0 -233
- package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
- package/FileSelectModal-64aaf623.mjs +0 -91
- package/JModalTip-abe1515a.mjs +0 -46
- package/LinkTableListPiece-34266919.mjs +0 -34
- package/OnlCgformErpList-7a0388d8.mjs +0 -425
- package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
- package/OnlineAutoList-85e6a30d.mjs +0 -472
- package/OnlineForm-630a22c2.mjs +0 -778
- package/OnlineQueryForm-1c5949a7.mjs +0 -378
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/constant-fe20103a.mjs +0 -6
- package/index-6a09a912.mjs +0 -58
- package/index-9d32ae88.mjs +0 -313
- package/useCgformList-2d6a5955.mjs +0 -388
- package/useExtendComponent-48d37d9b.mjs +0 -3919
- package/useListButton-cef1371a.mjs +0 -656
- package/useOnlinePopEvent-e9a042f8.mjs +0 -19
- package/useOnlineTest-0df0ae86.mjs +0 -43
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
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
5
|
for (var i in l || (l = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var i of
|
|
9
|
-
|
|
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
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { defineComponent as
|
|
13
|
-
import { JDictSelectTag as
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
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-c287af12.mjs";
|
|
15
|
+
import { _ as me } from "./index-0e3ab3af.mjs";
|
|
16
16
|
import "@vueuse/core";
|
|
17
17
|
import "/@/utils/http/axios";
|
|
18
18
|
import "/@/hooks/web/useMessage";
|
|
19
19
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
20
20
|
import "vue-router";
|
|
21
|
-
const O =
|
|
21
|
+
const O = Q({
|
|
22
22
|
name: "OnlineSearchFormItem",
|
|
23
23
|
components: {
|
|
24
|
-
JOnlineSearchSelect:
|
|
25
|
-
JDictSelectTag:
|
|
26
|
-
JTreeSelect:
|
|
27
|
-
JCategorySelect:
|
|
28
|
-
JSelectUser:
|
|
29
|
-
JSelectUserByDept:
|
|
30
|
-
JSelectDept:
|
|
31
|
-
JPopup:
|
|
32
|
-
JAreaLinkage:
|
|
33
|
-
JAreaSelect:
|
|
34
|
-
JSelectMultiple:
|
|
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
35
|
},
|
|
36
36
|
props: {
|
|
37
37
|
value: {
|
|
@@ -65,116 +65,112 @@ const O = R({
|
|
|
65
65
|
}
|
|
66
66
|
}, I = "single";
|
|
67
67
|
let y = M(""), s = M(""), f = M("");
|
|
68
|
-
|
|
68
|
+
C(
|
|
69
69
|
() => e.value,
|
|
70
70
|
() => {
|
|
71
71
|
F() ? y.value = e.value ? e.value : void 0 : y.value = e.value, e.value || (s.value = "", f.value = "");
|
|
72
72
|
},
|
|
73
73
|
{ deep: !0, immediate: !0 }
|
|
74
|
-
),
|
|
74
|
+
), C(
|
|
75
75
|
y,
|
|
76
76
|
(a) => {
|
|
77
|
-
|
|
77
|
+
l("update:value", a);
|
|
78
78
|
},
|
|
79
79
|
{ immediate: !0 }
|
|
80
|
-
),
|
|
80
|
+
), C(s, (a) => {
|
|
81
81
|
l("change", e.item.field + "_begin", a), l("update:value", "1");
|
|
82
|
-
}),
|
|
82
|
+
}), C(f, (a) => {
|
|
83
83
|
l("change", e.item.field + "_end", a), l("update:value", "1");
|
|
84
84
|
});
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function J(a) {
|
|
86
|
+
return a.dbField ? a.dbField : a.field;
|
|
87
87
|
}
|
|
88
88
|
function F() {
|
|
89
89
|
let a = e.item;
|
|
90
90
|
return a ? a.view == "list" || a.view == "radio" || a.view == "switch" : !1;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function D() {
|
|
93
93
|
let a = e.item;
|
|
94
94
|
return a.dictTable && a.dictTable.length > 0 ? a.dictTable + "," + a.dictText + "," + a.dictCode : a.dictCode;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function k() {
|
|
97
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;
|
|
98
|
+
return g.length > 1 && (d = " where" + g[1]), "select " + v + " as 'value', " + r + " as 'text' from " + g[0] + d;
|
|
101
99
|
}
|
|
102
|
-
function
|
|
100
|
+
function T(a) {
|
|
103
101
|
let { dictText: t, dictCode: v } = a;
|
|
104
102
|
if (!t || t.length == 0)
|
|
105
103
|
return [];
|
|
106
|
-
let r = t.split(","),
|
|
104
|
+
let r = t.split(","), h = v.split(","), g = [];
|
|
107
105
|
for (let d = 0; d < r.length; d++)
|
|
108
106
|
g.push({
|
|
109
107
|
target: r[d],
|
|
110
|
-
source:
|
|
108
|
+
source: h[d]
|
|
111
109
|
});
|
|
112
110
|
return g;
|
|
113
111
|
}
|
|
114
|
-
function
|
|
112
|
+
function E(a) {
|
|
115
113
|
let { dictText: t } = e.item, r = t.split(",")[0];
|
|
116
114
|
l("change", r, a[r]);
|
|
117
115
|
}
|
|
118
|
-
function
|
|
116
|
+
function B(a) {
|
|
119
117
|
l("update:value", a);
|
|
120
118
|
}
|
|
121
119
|
function S(a, t, v) {
|
|
122
120
|
let r = {
|
|
123
121
|
labelKey: t,
|
|
124
122
|
rowKey: v
|
|
125
|
-
},
|
|
126
|
-
if (
|
|
127
|
-
let g = JSON.parse(
|
|
123
|
+
}, h = a.fieldExtendJson;
|
|
124
|
+
if (h && typeof h == "string") {
|
|
125
|
+
let g = JSON.parse(h), d = A({}, g);
|
|
128
126
|
d.text && (r.labelKey = d.text), d.store && (r.rowKey = d.store);
|
|
129
127
|
}
|
|
130
128
|
return r;
|
|
131
129
|
}
|
|
132
|
-
let
|
|
133
|
-
console.log("userSelectProp", C);
|
|
134
|
-
let Y = S(e.item, "departName", "id");
|
|
130
|
+
let U = S(e.item, "realname", "username"), Y = S(e.item, "departName", "id");
|
|
135
131
|
function V(a) {
|
|
136
132
|
a && a.length > 0 ? l("update:value", a.join(",")) : l("update:value", "");
|
|
137
133
|
}
|
|
138
134
|
return {
|
|
139
|
-
getPopupFieldConfig:
|
|
140
|
-
userSelectProp:
|
|
135
|
+
getPopupFieldConfig: T,
|
|
136
|
+
userSelectProp: U,
|
|
141
137
|
depSelectProp: Y,
|
|
142
138
|
handleSelectChange: V,
|
|
143
|
-
setFieldsValue:
|
|
139
|
+
setFieldsValue: E,
|
|
144
140
|
innerValue: y,
|
|
145
141
|
beginValue: s,
|
|
146
142
|
endValue: f,
|
|
147
143
|
isEasySelect: F,
|
|
148
|
-
getDictOptionKey:
|
|
149
|
-
getDictCode:
|
|
144
|
+
getDictOptionKey: J,
|
|
145
|
+
getDictCode: D,
|
|
150
146
|
labelTextMaxWidth: i,
|
|
151
147
|
labelCol: P,
|
|
152
148
|
single_mode: I,
|
|
153
|
-
getSqlByDictCode:
|
|
154
|
-
handleCategoryTreeChange:
|
|
149
|
+
getSqlByDictCode: k,
|
|
150
|
+
handleCategoryTreeChange: B
|
|
155
151
|
};
|
|
156
152
|
}
|
|
157
|
-
}),
|
|
158
|
-
|
|
159
|
-
"
|
|
153
|
+
}), L = () => {
|
|
154
|
+
R((e) => ({
|
|
155
|
+
"6524b8a9": e.labelTextMaxWidth
|
|
160
156
|
}));
|
|
161
|
-
},
|
|
162
|
-
O.setup =
|
|
163
|
-
const
|
|
164
|
-
const q = (e) => (
|
|
165
|
-
function
|
|
166
|
-
const s = o("a-date-picker"), f = o("JDictSelectTag"),
|
|
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");
|
|
167
163
|
return u(), n(a, {
|
|
168
164
|
labelCol: e.labelCol,
|
|
169
|
-
class:
|
|
165
|
+
class: X("jeecg-online-search")
|
|
170
166
|
}, {
|
|
171
|
-
label:
|
|
172
|
-
|
|
167
|
+
label: b(() => [
|
|
168
|
+
w("span", {
|
|
173
169
|
title: e.item.label,
|
|
174
170
|
class: "label-text"
|
|
175
|
-
},
|
|
171
|
+
}, K(e.item.label), 9, ge)
|
|
176
172
|
]),
|
|
177
|
-
default:
|
|
173
|
+
default: b(() => [
|
|
178
174
|
e.item.view == "date" ? (u(), p(m, { key: 0 }, [
|
|
179
175
|
e.single_mode === e.item.mode ? (u(), n(s, {
|
|
180
176
|
key: 0,
|
|
@@ -185,7 +181,7 @@ function Ve(e, l, i, P, I, y) {
|
|
|
185
181
|
value: e.innerValue,
|
|
186
182
|
"onUpdate:value": l[0] || (l[0] = (t) => e.innerValue = t)
|
|
187
183
|
}, null, 8, ["placeholder", "value"])) : (u(), p(m, { key: 1 }, [
|
|
188
|
-
|
|
184
|
+
c(s, {
|
|
189
185
|
showTime: !1,
|
|
190
186
|
valueFormat: "YYYY-MM-DD",
|
|
191
187
|
placeholder: "开始日期",
|
|
@@ -193,8 +189,8 @@ function Ve(e, l, i, P, I, y) {
|
|
|
193
189
|
"onUpdate:value": l[1] || (l[1] = (t) => e.beginValue = t),
|
|
194
190
|
style: { width: "calc(50% - 15px)" }
|
|
195
191
|
}, null, 8, ["value"]),
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
fe,
|
|
193
|
+
c(s, {
|
|
198
194
|
showTime: !1,
|
|
199
195
|
valueFormat: "YYYY-MM-DD",
|
|
200
196
|
placeholder: "结束日期",
|
|
@@ -213,7 +209,7 @@ function Ve(e, l, i, P, I, y) {
|
|
|
213
209
|
value: e.innerValue,
|
|
214
210
|
"onUpdate:value": l[3] || (l[3] = (t) => e.innerValue = t)
|
|
215
211
|
}, null, 8, ["placeholder", "value"])) : (u(), p(m, { key: 1 }, [
|
|
216
|
-
|
|
212
|
+
c(s, {
|
|
217
213
|
showTime: !0,
|
|
218
214
|
valueFormat: "YYYY-MM-DD hh:mm:ss",
|
|
219
215
|
placeholder: "开始时间",
|
|
@@ -222,7 +218,7 @@ function Ve(e, l, i, P, I, y) {
|
|
|
222
218
|
style: { width: "calc(50% - 15px)" }
|
|
223
219
|
}, null, 8, ["value"]),
|
|
224
220
|
he,
|
|
225
|
-
|
|
221
|
+
c(s, {
|
|
226
222
|
showTime: !0,
|
|
227
223
|
valueFormat: "YYYY-MM-DD hh:mm:ss",
|
|
228
224
|
placeholder: "结束时间",
|
|
@@ -244,20 +240,20 @@ function Ve(e, l, i, P, I, y) {
|
|
|
244
240
|
value: e.innerValue,
|
|
245
241
|
"onUpdate:value": l[7] || (l[7] = (t) => e.innerValue = t)
|
|
246
242
|
}, {
|
|
247
|
-
default:
|
|
248
|
-
(u(!0), p(m, null,
|
|
243
|
+
default: b(() => [
|
|
244
|
+
(u(!0), p(m, null, Z(e.dictOptions[e.getDictOptionKey(e.item)], (t, v) => (u(), n(J, {
|
|
249
245
|
key: v,
|
|
250
246
|
value: t.value
|
|
251
247
|
}, {
|
|
252
|
-
default:
|
|
253
|
-
|
|
248
|
+
default: b(() => [
|
|
249
|
+
_(K(t.text), 1)
|
|
254
250
|
]),
|
|
255
251
|
_: 2
|
|
256
252
|
}, 1032, ["value"]))), 128))
|
|
257
253
|
]),
|
|
258
254
|
_: 1
|
|
259
255
|
}, 8, ["placeholder", "value"]))
|
|
260
|
-
], 64)) : e.item.view === "sel_tree" ? (u(), n(
|
|
256
|
+
], 64)) : e.item.view === "sel_tree" ? (u(), n(D, {
|
|
261
257
|
key: 3,
|
|
262
258
|
placeholder: "请选择" + e.item.label,
|
|
263
259
|
value: e.innerValue,
|
|
@@ -267,7 +263,7 @@ function Ve(e, l, i, P, I, y) {
|
|
|
267
263
|
pidValue: e.item.pidValue,
|
|
268
264
|
hasChildField: e.item.hasChildField,
|
|
269
265
|
"load-triggle-change": ""
|
|
270
|
-
}, null, 8, ["placeholder", "value", "dict", "pidField", "pidValue", "hasChildField"])) : e.item.view === "cat_tree" ? (u(), n(
|
|
266
|
+
}, null, 8, ["placeholder", "value", "dict", "pidField", "pidValue", "hasChildField"])) : e.item.view === "cat_tree" ? (u(), n(k, {
|
|
271
267
|
key: 4,
|
|
272
268
|
onChange: e.handleCategoryTreeChange,
|
|
273
269
|
loadTriggleChange: !0,
|
|
@@ -282,18 +278,18 @@ function Ve(e, l, i, P, I, y) {
|
|
|
282
278
|
"onUpdate:value": l[10] || (l[10] = (t) => e.innerValue = t),
|
|
283
279
|
placeholder: "请选择" + e.item.label,
|
|
284
280
|
dict: e.getDictCode()
|
|
285
|
-
}, null, 8, ["value", "placeholder", "dict"])) : (u(), n(
|
|
281
|
+
}, null, 8, ["value", "placeholder", "dict"])) : (u(), n(T, {
|
|
286
282
|
key: 1,
|
|
287
283
|
value: e.innerValue,
|
|
288
284
|
"onUpdate:value": l[11] || (l[11] = (t) => e.innerValue = t),
|
|
289
285
|
placeholder: "请选择" + e.item.label,
|
|
290
286
|
sql: e.getSqlByDictCode()
|
|
291
287
|
}, null, 8, ["value", "placeholder", "sql"]))
|
|
292
|
-
], 64)) : e.item.view == "sel_user" ? (u(), n(
|
|
288
|
+
], 64)) : e.item.view == "sel_user" ? (u(), n(E, $({ key: 6 }, e.userSelectProp, {
|
|
293
289
|
value: e.innerValue,
|
|
294
290
|
"onUpdate:value": l[12] || (l[12] = (t) => e.innerValue = t),
|
|
295
291
|
placeholder: "请选择" + e.item.label
|
|
296
|
-
}), null, 16, ["value", "placeholder"])) : e.item.view == "sel_depart" ? (u(), n(
|
|
292
|
+
}), null, 16, ["value", "placeholder"])) : e.item.view == "sel_depart" ? (u(), n(B, $({
|
|
297
293
|
key: 7,
|
|
298
294
|
showButton: !1
|
|
299
295
|
}, e.depSelectProp, {
|
|
@@ -309,7 +305,7 @@ function Ve(e, l, i, P, I, y) {
|
|
|
309
305
|
setFieldsValue: e.setFieldsValue,
|
|
310
306
|
"field-config": e.getPopupFieldConfig(e.item),
|
|
311
307
|
multi: !0
|
|
312
|
-
}, null, 8, ["placeholder", "value", "code", "setFieldsValue", "field-config"])) : e.item.view == "pca" ? (u(), n(
|
|
308
|
+
}, null, 8, ["placeholder", "value", "code", "setFieldsValue", "field-config"])) : e.item.view == "pca" ? (u(), n(U, {
|
|
313
309
|
key: 9,
|
|
314
310
|
placeholder: "请选择" + e.item.label,
|
|
315
311
|
value: e.innerValue,
|
|
@@ -327,14 +323,14 @@ function Ve(e, l, i, P, I, y) {
|
|
|
327
323
|
value: e.innerValue,
|
|
328
324
|
"onUpdate:value": l[17] || (l[17] = (t) => e.innerValue = t)
|
|
329
325
|
}, null, 8, ["placeholder", "value"])) : (u(), p(m, { key: 1 }, [
|
|
330
|
-
|
|
326
|
+
c(V, {
|
|
331
327
|
placeholder: "开始值",
|
|
332
328
|
value: e.beginValue,
|
|
333
329
|
"onUpdate:value": l[18] || (l[18] = (t) => e.beginValue = t),
|
|
334
330
|
style: { width: "calc(50% - 15px)" }
|
|
335
331
|
}, null, 8, ["value"]),
|
|
336
|
-
|
|
337
|
-
|
|
332
|
+
ce,
|
|
333
|
+
c(V, {
|
|
338
334
|
placeholder: "结束值",
|
|
339
335
|
value: e.endValue,
|
|
340
336
|
"onUpdate:value": l[19] || (l[19] = (t) => e.endValue = t),
|
|
@@ -346,7 +342,7 @@ function Ve(e, l, i, P, I, y) {
|
|
|
346
342
|
_: 1
|
|
347
343
|
}, 8, ["labelCol"]);
|
|
348
344
|
}
|
|
349
|
-
const Be = /* @__PURE__ */ ve
|
|
345
|
+
const Be = /* @__PURE__ */ me(ve, [["render", ye], ["__scopeId", "data-v-e62a9629"]]);
|
|
350
346
|
export {
|
|
351
347
|
Be as default
|
|
352
348
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var S = (t, a, o) => new Promise((d,
|
|
2
|
-
var g = (
|
|
1
|
+
var S = (t, a, o) => new Promise((d, l) => {
|
|
2
|
+
var g = (i) => {
|
|
3
3
|
try {
|
|
4
|
-
r(o.next(
|
|
4
|
+
r(o.next(i));
|
|
5
5
|
} catch (s) {
|
|
6
|
-
|
|
6
|
+
l(s);
|
|
7
7
|
}
|
|
8
|
-
}, f = (
|
|
8
|
+
}, f = (i) => {
|
|
9
9
|
try {
|
|
10
|
-
r(o.throw(
|
|
10
|
+
r(o.throw(i));
|
|
11
11
|
} catch (s) {
|
|
12
|
-
|
|
12
|
+
l(s);
|
|
13
13
|
}
|
|
14
|
-
}, r = (
|
|
14
|
+
}, r = (i) => i.done ? d(i.value) : Promise.resolve(i.value).then(g, f);
|
|
15
15
|
r((o = o.apply(t, a)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as w, ref as p, watch as y, resolveComponent as
|
|
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
18
|
import { defHttp as F } from "/@/utils/http/axios";
|
|
19
|
-
import { useMessage as
|
|
20
|
-
import { _ as
|
|
19
|
+
import { useMessage as V } from "/@/hooks/web/useMessage";
|
|
20
|
+
import { _ as L } from "./index-0e3ab3af.mjs";
|
|
21
21
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
22
22
|
import "vue-router";
|
|
23
|
-
const O = "/online/cgform/api/querySelectOptions",
|
|
23
|
+
const O = "/online/cgform/api/querySelectOptions", P = w({
|
|
24
24
|
name: "OnlineSelectCascade",
|
|
25
25
|
props: {
|
|
26
26
|
table: { type: String, default: "" },
|
|
@@ -37,27 +37,26 @@ const O = "/online/cgform/api/querySelectOptions", R = w({
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["change", "next"],
|
|
39
39
|
setup(t, { emit: a }) {
|
|
40
|
-
const { createMessage: o } =
|
|
40
|
+
const { createMessage: o } = V(), d = p(""), l = p([]), g = p(!0);
|
|
41
41
|
function f(e) {
|
|
42
|
-
console.log("handleChange", e);
|
|
43
42
|
let n = e || "";
|
|
44
43
|
a("change", n), m(n);
|
|
45
44
|
}
|
|
46
45
|
y(
|
|
47
46
|
() => t.condition,
|
|
48
47
|
(e) => {
|
|
49
|
-
g.value = !0, e &&
|
|
48
|
+
g.value = !0, e && i();
|
|
50
49
|
},
|
|
51
50
|
{ immediate: !0 }
|
|
52
51
|
), y(
|
|
53
52
|
() => t.pidValue,
|
|
54
53
|
(e) => {
|
|
55
|
-
e === "-1" ?
|
|
54
|
+
e === "-1" ? l.value = [] : i();
|
|
56
55
|
}
|
|
57
56
|
), y(
|
|
58
57
|
() => t.value,
|
|
59
58
|
(e, n) => {
|
|
60
|
-
|
|
59
|
+
e ? d.value = e : (d.value = [], n && (a("change", ""), a("next", "-1"))), e && !n && r(e);
|
|
61
60
|
},
|
|
62
61
|
{ immediate: !0 }
|
|
63
62
|
);
|
|
@@ -73,10 +72,10 @@ const O = "/online/cgform/api/querySelectOptions", R = w({
|
|
|
73
72
|
}
|
|
74
73
|
});
|
|
75
74
|
}
|
|
76
|
-
function
|
|
75
|
+
function i() {
|
|
77
76
|
let e = s();
|
|
78
|
-
t.origin === !0 ? e.condition = t.condition : e.pidValue = t.pidValue,
|
|
79
|
-
n.success ?
|
|
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("联动组件数据加载失败,请检查配置!");
|
|
80
79
|
});
|
|
81
80
|
}
|
|
82
81
|
function s() {
|
|
@@ -104,7 +103,7 @@ const O = "/online/cgform/api/querySelectOptions", R = w({
|
|
|
104
103
|
return new Promise((e) => {
|
|
105
104
|
(function u(c) {
|
|
106
105
|
c > 10 && e([]);
|
|
107
|
-
let h =
|
|
106
|
+
let h = l.value;
|
|
108
107
|
h && h.length > 0 ? e(h) : setTimeout(() => {
|
|
109
108
|
u(c++);
|
|
110
109
|
}, 300);
|
|
@@ -113,7 +112,7 @@ const O = "/online/cgform/api/querySelectOptions", R = w({
|
|
|
113
112
|
}
|
|
114
113
|
function m(e, n = []) {
|
|
115
114
|
if (e && e.length > 0) {
|
|
116
|
-
(!n || n.length == 0) && (n =
|
|
115
|
+
(!n || n.length == 0) && (n = l.value);
|
|
117
116
|
let u = n.filter((c) => c.store === e);
|
|
118
117
|
if (u && u.length > 0) {
|
|
119
118
|
let c = u[0].id;
|
|
@@ -123,14 +122,14 @@ const O = "/online/cgform/api/querySelectOptions", R = w({
|
|
|
123
122
|
}
|
|
124
123
|
return {
|
|
125
124
|
selectedValue: d,
|
|
126
|
-
dictOptions:
|
|
125
|
+
dictOptions: l,
|
|
127
126
|
handleChange: f
|
|
128
127
|
};
|
|
129
128
|
}
|
|
130
|
-
}),
|
|
131
|
-
function M(t, a, o, d,
|
|
132
|
-
const f =
|
|
133
|
-
return _(),
|
|
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, {
|
|
134
133
|
placeholder: t.placeholder,
|
|
135
134
|
value: t.selectedValue,
|
|
136
135
|
onChange: t.handleChange,
|
|
@@ -138,15 +137,15 @@ function M(t, a, o, d, i, g) {
|
|
|
138
137
|
style: { width: "100%" }
|
|
139
138
|
}, {
|
|
140
139
|
default: x(() => [
|
|
141
|
-
(_(!0), T(k, null, B(t.dictOptions, (
|
|
140
|
+
(_(!0), T(k, null, B(t.dictOptions, (i, s) => (_(), C(f, {
|
|
142
141
|
key: s,
|
|
143
|
-
value:
|
|
142
|
+
value: i.store
|
|
144
143
|
}, {
|
|
145
144
|
default: x(() => [
|
|
146
145
|
E("span", {
|
|
147
146
|
style: { display: "inline-block", width: "100%" },
|
|
148
|
-
title:
|
|
149
|
-
}, N(
|
|
147
|
+
title: i.label
|
|
148
|
+
}, N(i.label), 9, R)
|
|
150
149
|
]),
|
|
151
150
|
_: 2
|
|
152
151
|
}, 1032, ["value"]))), 128))
|
|
@@ -154,7 +153,7 @@ function M(t, a, o, d, i, g) {
|
|
|
154
153
|
_: 1
|
|
155
154
|
}, 8, ["placeholder", "value", "onChange"]);
|
|
156
155
|
}
|
|
157
|
-
const z = /* @__PURE__ */ P
|
|
156
|
+
const z = /* @__PURE__ */ L(P, [["render", M]]);
|
|
158
157
|
export {
|
|
159
158
|
z as default
|
|
160
159
|
};
|