liyu-pc-base 1.0.90 → 1.0.94
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/dist/{FormRender3-d951790d.js → FormRender3-13ee61c6.js} +393 -376
- package/dist/FormRender3-13ee61c6.js.map +1 -0
- package/dist/components/index.js +589 -573
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/FormRender3-d951790d.js.map +0 -1
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as pe, ref as ee, resolveComponent as C, openBlock as o, createBlock as
|
|
2
|
-
import { _ as he, i as el, F as ll, I as al, j as ol, U as tl, k as il, l as nl, m as dl, n as sl, A as
|
|
3
|
-
import { B as Fo, h as Uo, S as Ao, s as Ko } from "../FormRender3-
|
|
1
|
+
import { defineComponent as pe, ref as ee, resolveComponent as C, openBlock as o, createBlock as _, withCtx as h, createVNode as V, createElementBlock as F, Fragment as N, renderList as W, createElementVNode as G, toDisplayString as K, reactive as se, computed as Ee, watch as ae, onMounted as Fe, onUnmounted as Je, createTextVNode as x, createCommentVNode as M, withDirectives as Ce, vShow as $e, pushScopeId as Qe, popScopeId as Xe, renderSlot as Ze, normalizeStyle as D, createSlots as je, resolveDynamicComponent as ue, onActivated as xe, withModifiers as ce } from "vue";
|
|
2
|
+
import { _ as he, i as el, F as ll, I as al, j as ol, U as tl, k as il, l as nl, m as dl, n as sl, A as fl, a as rl, c as ul, d as ml, R as pl, b as hl, o as _l, p as yl, J as vl, e as cl, f as bl, q as gl, M as wl, r as kl, C as Cl, T as $l } from "../FormRender3-13ee61c6.js";
|
|
3
|
+
import { B as Fo, h as Uo, S as Ao, s as Ko } from "../FormRender3-13ee61c6.js";
|
|
4
4
|
import { message as te, Modal as qe } from "ant-design-vue";
|
|
5
5
|
import { get_operator_type_map as ke, isNotEmpty as Z, isEmpty as oe, copyValue as Ml } from "../utils/function.js";
|
|
6
6
|
import { CloseOutlined as Sl, LeftOutlined as El, RightOutlined as Ol, CloseCircleOutlined as Fl, PlusOutlined as We, CaretRightOutlined as Ul, SettingOutlined as Al, ExclamationCircleOutlined as De } from "@ant-design/icons-vue";
|
|
@@ -45,14 +45,14 @@ const Rl = pe({
|
|
|
45
45
|
emits: ["ok", "cancel"],
|
|
46
46
|
setup(e, { emit: l }) {
|
|
47
47
|
const H = ee("condition_tab_0"), L = ee([]);
|
|
48
|
-
e.default_search_condition_config_list.forEach((
|
|
48
|
+
e.default_search_condition_config_list.forEach((f, R) => {
|
|
49
49
|
const j = JSON.parse(
|
|
50
50
|
JSON.stringify(e.base_search_condition_config_list)
|
|
51
51
|
);
|
|
52
52
|
j && j.forEach((U) => {
|
|
53
53
|
U.group.forEach((n) => {
|
|
54
|
-
|
|
55
|
-
n.field_name ==
|
|
54
|
+
f.forEach((k) => {
|
|
55
|
+
n.field_name == k.field_name && (n.operator = k.operator, n.checked = !0);
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
}), L.value.push({
|
|
@@ -61,27 +61,27 @@ const Rl = pe({
|
|
|
61
61
|
base_search_list: j
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
|
-
const P = (
|
|
65
|
-
|
|
64
|
+
const P = (f) => {
|
|
65
|
+
f.preventDefault();
|
|
66
66
|
const R = [];
|
|
67
67
|
L.value.forEach((j) => {
|
|
68
68
|
const U = [];
|
|
69
69
|
j.base_search_list.forEach((n) => {
|
|
70
|
-
n.group.forEach((
|
|
71
|
-
if (
|
|
72
|
-
if (!
|
|
73
|
-
const v = q(
|
|
70
|
+
n.group.forEach((k) => {
|
|
71
|
+
if (k.checked) {
|
|
72
|
+
if (!k.operator) {
|
|
73
|
+
const v = q(k);
|
|
74
74
|
if (v.length > 0) {
|
|
75
75
|
const [t] = v;
|
|
76
|
-
|
|
76
|
+
k.operator = t;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
U.push(
|
|
79
|
+
U.push(k);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
}), R.push(U);
|
|
83
83
|
}), l("ok", { new_list: R });
|
|
84
|
-
}, q = (
|
|
84
|
+
}, q = (f) => f.operator_list_selected ? f.operator_list_selected : f.operator_list ? f.operator_list : [];
|
|
85
85
|
return {
|
|
86
86
|
props: e,
|
|
87
87
|
activeKey: H,
|
|
@@ -92,8 +92,8 @@ const Rl = pe({
|
|
|
92
92
|
});
|
|
93
93
|
const Nl = { style: { "font-size": "14px" } }, zl = { style: { color: "#7d8089" } };
|
|
94
94
|
function Hl(e, l, H, L, P, q) {
|
|
95
|
-
const
|
|
96
|
-
return o(),
|
|
95
|
+
const f = C("a-checkbox"), R = C("a-space"), j = C("a-tab-pane"), U = C("a-tabs"), n = C("a-modal");
|
|
96
|
+
return o(), _(n, {
|
|
97
97
|
title: "添加过滤条件",
|
|
98
98
|
width: "800px",
|
|
99
99
|
open: e.open,
|
|
@@ -107,19 +107,19 @@ function Hl(e, l, H, L, P, q) {
|
|
|
107
107
|
e.$emit("cancel");
|
|
108
108
|
})
|
|
109
109
|
}, {
|
|
110
|
-
default:
|
|
110
|
+
default: h(() => [
|
|
111
111
|
V(U, {
|
|
112
112
|
activeKey: e.activeKey,
|
|
113
|
-
"onUpdate:activeKey": l[0] || (l[0] = (
|
|
113
|
+
"onUpdate:activeKey": l[0] || (l[0] = (k) => e.activeKey = k)
|
|
114
114
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
(o(!0), F(N, null, W(e.tab_list, (
|
|
115
|
+
default: h(() => [
|
|
116
|
+
(o(!0), F(N, null, W(e.tab_list, (k) => (o(), _(j, {
|
|
117
117
|
class: "my-card",
|
|
118
|
-
key:
|
|
119
|
-
tab:
|
|
118
|
+
key: k.key,
|
|
119
|
+
tab: k.tab_name
|
|
120
120
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
(o(!0), F(N, null, W(
|
|
121
|
+
default: h(() => [
|
|
122
|
+
(o(!0), F(N, null, W(k.base_search_list, (v) => (o(), F("div", {
|
|
123
123
|
key: v.name
|
|
124
124
|
}, [
|
|
125
125
|
G("div", Nl, K(v.name), 1),
|
|
@@ -127,15 +127,15 @@ function Hl(e, l, H, L, P, q) {
|
|
|
127
127
|
wrap: "",
|
|
128
128
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
129
129
|
}, {
|
|
130
|
-
default:
|
|
130
|
+
default: h(() => [
|
|
131
131
|
(o(!0), F(N, null, W(v.group, (t) => (o(), F("div", {
|
|
132
132
|
key: t.field_name
|
|
133
133
|
}, [
|
|
134
|
-
V(
|
|
134
|
+
V(f, {
|
|
135
135
|
checked: t.checked,
|
|
136
136
|
"onUpdate:checked": (O) => t.checked = O
|
|
137
137
|
}, {
|
|
138
|
-
default:
|
|
138
|
+
default: h(() => [
|
|
139
139
|
G("span", zl, K(t.label), 1)
|
|
140
140
|
]),
|
|
141
141
|
_: 2
|
|
@@ -179,7 +179,7 @@ const Gl = /* @__PURE__ */ he(Rl, [["render", Hl], ["__scopeId", "data-v-25d1dc1
|
|
|
179
179
|
setup(e, { emit: l }) {
|
|
180
180
|
var j, U;
|
|
181
181
|
const H = ee([]), L = (n) => n.operator_list_selected ? n.operator_list_selected : n.operator_list ? n.operator_list : [];
|
|
182
|
-
(j = e.default_search_condition_config_list) == null || j.forEach((n,
|
|
182
|
+
(j = e.default_search_condition_config_list) == null || j.forEach((n, k) => {
|
|
183
183
|
const v = JSON.parse(JSON.stringify(e.base_search_condition_config_list));
|
|
184
184
|
v && v.forEach((t) => {
|
|
185
185
|
t.group.forEach((O) => {
|
|
@@ -188,14 +188,14 @@ const Gl = /* @__PURE__ */ he(Rl, [["render", Hl], ["__scopeId", "data-v-25d1dc1
|
|
|
188
188
|
});
|
|
189
189
|
});
|
|
190
190
|
}), H.value.push({
|
|
191
|
-
tab_name: `条件组${
|
|
192
|
-
key: `condition_tab_${
|
|
191
|
+
tab_name: `条件组${k + 1}`,
|
|
192
|
+
key: `condition_tab_${k}`,
|
|
193
193
|
base_search_list: v
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
const P = ((U = e.default_search_condition_config_list) == null ? void 0 : U.length) || 0, q = [];
|
|
197
197
|
e.base_search_condition_config_list.forEach((n) => {
|
|
198
|
-
const
|
|
198
|
+
const k = [];
|
|
199
199
|
n.group.forEach((v) => {
|
|
200
200
|
const t = L(v);
|
|
201
201
|
if (v.default_operator && (v.operator = v.default_operator), t.includes(v.operator) || (v.operator = null), !v.operator && t.length > 0) {
|
|
@@ -203,32 +203,32 @@ const Gl = /* @__PURE__ */ he(Rl, [["render", Hl], ["__scopeId", "data-v-25d1dc1
|
|
|
203
203
|
v.operator = S;
|
|
204
204
|
}
|
|
205
205
|
const O = { ...v, checked: !1 };
|
|
206
|
-
|
|
206
|
+
k.push(O);
|
|
207
207
|
}), q.push({
|
|
208
208
|
name: n.name,
|
|
209
|
-
group:
|
|
209
|
+
group: k
|
|
210
210
|
});
|
|
211
211
|
}), H.value.push({
|
|
212
212
|
tab_name: `条件组${P + 1}`,
|
|
213
213
|
key: `condition_tab_${P}`,
|
|
214
214
|
base_search_list: q
|
|
215
215
|
});
|
|
216
|
-
const
|
|
216
|
+
const f = ee(`condition_tab_${P}`);
|
|
217
217
|
return {
|
|
218
218
|
props: e,
|
|
219
|
-
activeKey:
|
|
219
|
+
activeKey: f,
|
|
220
220
|
tab_list: H,
|
|
221
221
|
handleSubmit: (n) => {
|
|
222
222
|
n.preventDefault();
|
|
223
|
-
const
|
|
223
|
+
const k = [];
|
|
224
224
|
H.value.forEach((v) => {
|
|
225
225
|
const t = [];
|
|
226
226
|
v.base_search_list.forEach((O) => {
|
|
227
227
|
O.group.forEach((S) => {
|
|
228
228
|
S.checked && t.push(S);
|
|
229
229
|
});
|
|
230
|
-
}), t.length > 0 &&
|
|
231
|
-
}),
|
|
230
|
+
}), t.length > 0 && k.push(t);
|
|
231
|
+
}), k.length == 0 ? (te.error("新增条件组未增加新的字段,自动取消"), l("cancel")) : l("ok", { new_list: k });
|
|
232
232
|
},
|
|
233
233
|
get_operator_list_selected: L
|
|
234
234
|
};
|
|
@@ -236,8 +236,8 @@ const Gl = /* @__PURE__ */ he(Rl, [["render", Hl], ["__scopeId", "data-v-25d1dc1
|
|
|
236
236
|
});
|
|
237
237
|
const Ll = { style: { "font-size": "14px" } }, Yl = { style: { color: "#7d8089" } }, Jl = { style: { "font-size": "14px" } }, Wl = { style: { color: "#7d8089" } };
|
|
238
238
|
function Ql(e, l, H, L, P, q) {
|
|
239
|
-
const
|
|
240
|
-
return o(),
|
|
239
|
+
const f = C("a-checkbox"), R = C("a-space"), j = C("a-tab-pane"), U = C("a-tabs"), n = C("a-modal");
|
|
240
|
+
return o(), _(n, {
|
|
241
241
|
title: "添加过滤条件组",
|
|
242
242
|
width: "800px",
|
|
243
243
|
open: e.open,
|
|
@@ -251,27 +251,27 @@ function Ql(e, l, H, L, P, q) {
|
|
|
251
251
|
e.$emit("cancel");
|
|
252
252
|
})
|
|
253
253
|
}, {
|
|
254
|
-
default:
|
|
255
|
-
(o(!0), F(N, null, W(e.tab_list, (
|
|
254
|
+
default: h(() => [
|
|
255
|
+
(o(!0), F(N, null, W(e.tab_list, (k) => (o(), _(j, {
|
|
256
256
|
class: "my-card",
|
|
257
|
-
key:
|
|
258
|
-
tab:
|
|
257
|
+
key: k.key,
|
|
258
|
+
tab: k.tab_name
|
|
259
259
|
}, {
|
|
260
|
-
default:
|
|
261
|
-
(o(!0), F(N, null, W(
|
|
260
|
+
default: h(() => [
|
|
261
|
+
(o(!0), F(N, null, W(k.base_search_list, (v) => (o(), F("div", {
|
|
262
262
|
key: v.name
|
|
263
263
|
}, [
|
|
264
264
|
G("div", Ll, K(v.name), 1),
|
|
265
265
|
V(R, { wrap: "" }, {
|
|
266
|
-
default:
|
|
266
|
+
default: h(() => [
|
|
267
267
|
(o(!0), F(N, null, W(v.group, (t) => (o(), F("div", {
|
|
268
268
|
key: t.field_name
|
|
269
269
|
}, [
|
|
270
|
-
V(
|
|
270
|
+
V(f, {
|
|
271
271
|
checked: t.checked,
|
|
272
272
|
"onUpdate:checked": (O) => t.checked = O
|
|
273
273
|
}, {
|
|
274
|
-
default:
|
|
274
|
+
default: h(() => [
|
|
275
275
|
G("span", Yl, K(t.label), 1)
|
|
276
276
|
]),
|
|
277
277
|
_: 2
|
|
@@ -286,16 +286,16 @@ function Ql(e, l, H, L, P, q) {
|
|
|
286
286
|
}, 1032, ["tab"]))), 128)),
|
|
287
287
|
V(U, {
|
|
288
288
|
activeKey: e.activeKey,
|
|
289
|
-
"onUpdate:activeKey": l[0] || (l[0] = (
|
|
289
|
+
"onUpdate:activeKey": l[0] || (l[0] = (k) => e.activeKey = k)
|
|
290
290
|
}, {
|
|
291
|
-
default:
|
|
292
|
-
(o(!0), F(N, null, W(e.tab_list, (
|
|
291
|
+
default: h(() => [
|
|
292
|
+
(o(!0), F(N, null, W(e.tab_list, (k) => (o(), _(j, {
|
|
293
293
|
class: "my-card",
|
|
294
|
-
key:
|
|
295
|
-
tab:
|
|
294
|
+
key: k.key,
|
|
295
|
+
tab: k.tab_name
|
|
296
296
|
}, {
|
|
297
|
-
default:
|
|
298
|
-
(o(!0), F(N, null, W(
|
|
297
|
+
default: h(() => [
|
|
298
|
+
(o(!0), F(N, null, W(k.base_search_list, (v) => (o(), F("div", {
|
|
299
299
|
key: v.name
|
|
300
300
|
}, [
|
|
301
301
|
G("div", Jl, K(v.name), 1),
|
|
@@ -303,15 +303,15 @@ function Ql(e, l, H, L, P, q) {
|
|
|
303
303
|
wrap: "",
|
|
304
304
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
305
305
|
}, {
|
|
306
|
-
default:
|
|
306
|
+
default: h(() => [
|
|
307
307
|
(o(!0), F(N, null, W(v.group, (t) => (o(), F("div", {
|
|
308
308
|
key: t.field_name
|
|
309
309
|
}, [
|
|
310
|
-
V(
|
|
310
|
+
V(f, {
|
|
311
311
|
checked: t.checked,
|
|
312
312
|
"onUpdate:checked": (O) => t.checked = O
|
|
313
313
|
}, {
|
|
314
|
-
default:
|
|
314
|
+
default: h(() => [
|
|
315
315
|
G("span", Wl, K(t.label), 1)
|
|
316
316
|
]),
|
|
317
317
|
_: 2
|
|
@@ -389,7 +389,7 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
389
389
|
"update:is_clear_model"
|
|
390
390
|
],
|
|
391
391
|
setup(e, { emit: l }) {
|
|
392
|
-
const H = ee(e.is_massage_default), L = ee({}), { t: P } = Ue(), { options_eq: q } = Zl(),
|
|
392
|
+
const H = ee(e.is_massage_default), L = ee({}), { t: P } = Ue(), { options_eq: q } = Zl(), f = ee([]), R = {}, j = ee(null), U = ee([
|
|
393
393
|
{ value: "yes", label: P("is_or_not_blank_or_null.yes") },
|
|
394
394
|
{ value: "no", label: P("is_or_not_blank_or_null.no") }
|
|
395
395
|
]);
|
|
@@ -417,74 +417,74 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
417
417
|
json_list_is_blank_is_null: 1,
|
|
418
418
|
is_or_not_blank_or_null: 1,
|
|
419
419
|
is_or_not_null: 1
|
|
420
|
-
},
|
|
420
|
+
}, k = (d) => {
|
|
421
421
|
const [s] = [d];
|
|
422
|
-
return Array.isArray(s) && d.every((
|
|
422
|
+
return Array.isArray(s) && d.every((w) => Array.isArray(w));
|
|
423
423
|
};
|
|
424
424
|
let v = null;
|
|
425
|
-
const t = (d, s,
|
|
426
|
-
const
|
|
427
|
-
if (
|
|
425
|
+
const t = (d, s, w) => {
|
|
426
|
+
const p = f.value[s][w.field_name];
|
|
427
|
+
if (y(w).includes("_eq")) {
|
|
428
428
|
if (d == "_eq") {
|
|
429
|
-
|
|
429
|
+
f.value[s][w.field_name] = null, v = d, l("onChangeValue", { model: f.value });
|
|
430
430
|
return;
|
|
431
431
|
} else if (v == "_eq") {
|
|
432
|
-
|
|
432
|
+
f.value[s][w.field_name] = null, v = d, l("onChangeValue", { model: f.value });
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
if (
|
|
436
|
+
if (y(w).includes("not_blank_not_null")) {
|
|
437
437
|
if (d == "not_blank_not_null") {
|
|
438
|
-
|
|
438
|
+
f.value[s][w.field_name] = "是", v = d, l("onChangeValue", { model: f.value });
|
|
439
439
|
return;
|
|
440
440
|
} else if (v == "not_blank_not_null") {
|
|
441
|
-
|
|
441
|
+
f.value[s][w.field_name] = null, v = d, l("onChangeValue", { model: f.value });
|
|
442
442
|
return;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
if (
|
|
445
|
+
if (y(w).includes("is_or_not_blank_or_null") || y(w).includes("is_or_not_null")) {
|
|
446
446
|
if (d == "is_or_not_blank_or_null" || d == "is_or_not_null") {
|
|
447
|
-
|
|
447
|
+
f.value[s][w.field_name] = null, v = d, l("onChangeValue", { model: f.value });
|
|
448
448
|
return;
|
|
449
449
|
} else if (v == "is_or_not_blank_or_null" || v == "is_or_not_null") {
|
|
450
|
-
|
|
450
|
+
f.value[s][w.field_name] = null, v = d, l("onChangeValue", { model: f.value });
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
455
|
-
|
|
454
|
+
if (p instanceof Array && k(p))
|
|
455
|
+
f.value[s][w.field_name] = null;
|
|
456
456
|
else if (n[d] == 1) {
|
|
457
|
-
if (
|
|
458
|
-
const [c] =
|
|
459
|
-
Z(c) ?
|
|
457
|
+
if (p instanceof Array) {
|
|
458
|
+
const [c] = f.value[s][w.field_name];
|
|
459
|
+
Z(c) ? f.value[s][w.field_name] = c : f.value[s][w.field_name] = null;
|
|
460
460
|
} else
|
|
461
|
-
|
|
461
|
+
f.value[s][w.field_name] = p || null;
|
|
462
462
|
q.some(
|
|
463
|
-
(c) => c.value ===
|
|
464
|
-
) && (
|
|
463
|
+
(c) => c.value === f.value[s][w.field_name]
|
|
464
|
+
) && (f.value[s][w.field_name] = null);
|
|
465
465
|
} else if (n[d] == 2) {
|
|
466
|
-
if (
|
|
467
|
-
const [c, T] =
|
|
468
|
-
|
|
469
|
-
} else if (
|
|
470
|
-
const c =
|
|
471
|
-
|
|
466
|
+
if (f.value[s][w.field_name] instanceof Array) {
|
|
467
|
+
const [c, T] = f.value[s][w.field_name];
|
|
468
|
+
f.value[s][w.field_name] = [c, T];
|
|
469
|
+
} else if (f.value[s][w.field_name]) {
|
|
470
|
+
const c = f.value[s][w.field_name];
|
|
471
|
+
f.value[s][w.field_name] = [c, null];
|
|
472
472
|
} else
|
|
473
|
-
|
|
473
|
+
f.value[s][w.field_name] = [null, null];
|
|
474
474
|
q.some(
|
|
475
|
-
(c) => c.value ===
|
|
476
|
-
) && (
|
|
475
|
+
(c) => c.value === f.value[s][w.field_name][0]
|
|
476
|
+
) && (f.value[s][w.field_name] = [null, null]);
|
|
477
477
|
}
|
|
478
|
-
v = d, l("onChangeValue", { model:
|
|
478
|
+
v = d, l("onChangeValue", { model: f.value });
|
|
479
479
|
}, O = se({
|
|
480
480
|
open: !1
|
|
481
481
|
}), S = () => {
|
|
482
482
|
O.open = !0;
|
|
483
483
|
}, E = (d) => {
|
|
484
|
-
e.default_search_condition_config_list.forEach((s,
|
|
485
|
-
d.new_list.forEach((
|
|
486
|
-
|
|
487
|
-
|
|
484
|
+
e.default_search_condition_config_list.forEach((s, w) => {
|
|
485
|
+
d.new_list.forEach((p, r) => {
|
|
486
|
+
w == r && s.forEach((c) => {
|
|
487
|
+
p.forEach((T) => {
|
|
488
488
|
c.field_name == T.field_name && (T.value = c.value, T.operator = c.operator);
|
|
489
489
|
});
|
|
490
490
|
});
|
|
@@ -497,10 +497,10 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
497
497
|
}), Y = () => {
|
|
498
498
|
I.open = !0;
|
|
499
499
|
}, ie = (d) => {
|
|
500
|
-
e.default_search_condition_config_list.forEach((s,
|
|
501
|
-
d.new_list.forEach((
|
|
502
|
-
|
|
503
|
-
|
|
500
|
+
e.default_search_condition_config_list.forEach((s, w) => {
|
|
501
|
+
d.new_list.forEach((p, r) => {
|
|
502
|
+
w == r && s.forEach((c) => {
|
|
503
|
+
p.forEach((T) => {
|
|
504
504
|
c.field_name == T.field_name && (T.value = c.value, T.operator = c.operator);
|
|
505
505
|
});
|
|
506
506
|
});
|
|
@@ -508,51 +508,51 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
508
508
|
}), l("update_default_search_condition_config_list", { new_list: d.new_list }), I.open = !1;
|
|
509
509
|
}, $ = () => {
|
|
510
510
|
I.open = !1;
|
|
511
|
-
},
|
|
512
|
-
H.value = !1, console.log("condition_model_dict.value",
|
|
513
|
-
},
|
|
511
|
+
}, fe = () => {
|
|
512
|
+
H.value = !1, console.log("condition_model_dict.value", f.value), l("search", { model: f.value });
|
|
513
|
+
}, g = (d = !1) => {
|
|
514
514
|
var s;
|
|
515
|
-
e.base_search_condition_config_list.length != 0 && ((s = e.default_search_condition_config_list) == null || s.forEach((
|
|
516
|
-
X[
|
|
515
|
+
e.base_search_condition_config_list.length != 0 && ((s = e.default_search_condition_config_list) == null || s.forEach((w, p) => {
|
|
516
|
+
X[p] = {}, f.value[p] || (f.value[p] = {}), e.base_search_condition_config_list.forEach((r) => {
|
|
517
517
|
var c;
|
|
518
|
-
(c =
|
|
519
|
-
|
|
520
|
-
T.field_name == A.field_name && ((
|
|
518
|
+
(c = r.group) == null || c.forEach((T) => {
|
|
519
|
+
w.forEach((A) => {
|
|
520
|
+
T.field_name == A.field_name && ((f.value[p][A.field_name] == null || d) && (n[A.operator] == 1 ? A.value !== void 0 ? f.value[p][A.field_name] = A.value : f.value[p][A.field_name] = null : n[A.operator] == 2 ? A.value !== void 0 ? f.value[p][A.field_name] = A.value : f.value[p][A.field_name] = [null, null] : n[A.operator] == 0 && (A.value !== void 0 ? f.value[p][A.field_name] = A.value : f.value[p][A.field_name] = [])), Object.assign(A, { ...T, operator: A.operator }), A.operator == "eq" && A.mode != "default" ? (T.mode = "default", Object.assign(A, { model: "default" })) : ["in", "notin"].includes(A.operator) && A.mode != "multiple" && (T.mode = "multiple", Object.assign(A, { model: "multiple" })));
|
|
521
521
|
});
|
|
522
522
|
});
|
|
523
523
|
});
|
|
524
524
|
}));
|
|
525
525
|
}, a = () => {
|
|
526
|
-
|
|
527
|
-
}, X = se({}),
|
|
526
|
+
g(!0);
|
|
527
|
+
}, X = se({}), m = (d, s) => {
|
|
528
528
|
X[d][s.field_name] = !0;
|
|
529
529
|
}, le = (d, s) => {
|
|
530
530
|
X[d][s.field_name] = !1;
|
|
531
|
-
},
|
|
532
|
-
const
|
|
533
|
-
e.default_search_condition_config_list.forEach((
|
|
534
|
-
if (
|
|
535
|
-
|
|
531
|
+
}, re = (d, s) => {
|
|
532
|
+
const w = [];
|
|
533
|
+
e.default_search_condition_config_list.forEach((p, r) => {
|
|
534
|
+
if (r !== d)
|
|
535
|
+
w.push(p);
|
|
536
536
|
else {
|
|
537
537
|
const c = [];
|
|
538
|
-
|
|
538
|
+
p.forEach((T) => {
|
|
539
539
|
T.field_name !== s.field_name && c.push(T);
|
|
540
|
-
}), c.length > 0 &&
|
|
540
|
+
}), c.length > 0 && w.push(c);
|
|
541
541
|
}
|
|
542
|
-
}), l("update_default_search_condition_config_list", { new_list:
|
|
542
|
+
}), l("update_default_search_condition_config_list", { new_list: w });
|
|
543
543
|
}, ne = (d, s) => {
|
|
544
|
-
|
|
545
|
-
}, be = (d, s,
|
|
544
|
+
f.value[d][s] instanceof Array ? f.value[d][s].length = 0 : f.value[d][s] = null, l("onChangeValue", { model: f.value }), l("delSearch", { model: JSON.parse(JSON.stringify(f.value)) });
|
|
545
|
+
}, be = (d, s, w, p) => {
|
|
546
546
|
if (d instanceof Array && d.length > 0) {
|
|
547
|
-
const
|
|
547
|
+
const r = d[d.length - 1];
|
|
548
548
|
let c = null;
|
|
549
549
|
if (e.base_search_condition_config_list.forEach((T) => {
|
|
550
550
|
T.group.forEach((A) => {
|
|
551
|
-
if (A.field_name ===
|
|
551
|
+
if (A.field_name === r) {
|
|
552
552
|
if (c = JSON.parse(JSON.stringify(A)), c.default_operator)
|
|
553
553
|
c.operator = c.default_operator;
|
|
554
|
-
else if (
|
|
555
|
-
const [de] =
|
|
554
|
+
else if (y(c).length > 0) {
|
|
555
|
+
const [de] = y(c);
|
|
556
556
|
c.operator = de;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
@@ -561,91 +561,91 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
561
561
|
const T = JSON.parse(JSON.stringify(e.default_search_condition_config_list));
|
|
562
562
|
T.forEach((A, de) => {
|
|
563
563
|
de === s && A.forEach((ge, we) => {
|
|
564
|
-
ge.field_name ==
|
|
564
|
+
ge.field_name == w.field_name && we == p && (A.splice(we, 1, c), delete f.value[s][ge.field_name]);
|
|
565
565
|
});
|
|
566
566
|
}), l("update_default_search_condition_config_list", {
|
|
567
567
|
new_list: T
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
|
|
570
|
+
g();
|
|
571
571
|
}
|
|
572
572
|
}, _e = Ee(() => {
|
|
573
573
|
const d = {};
|
|
574
|
-
return e.default_search_condition_config_list.forEach((s,
|
|
575
|
-
d[
|
|
576
|
-
const
|
|
577
|
-
e.base_search_condition_config_list.forEach((
|
|
578
|
-
const c =
|
|
579
|
-
(A) => !
|
|
574
|
+
return e.default_search_condition_config_list.forEach((s, w) => {
|
|
575
|
+
d[w] = [];
|
|
576
|
+
const p = s.map((r) => r.field_name);
|
|
577
|
+
e.base_search_condition_config_list.forEach((r) => {
|
|
578
|
+
const c = r.group.filter(
|
|
579
|
+
(A) => !p.includes(A.field_name)
|
|
580
580
|
), T = {
|
|
581
|
-
value:
|
|
582
|
-
label:
|
|
581
|
+
value: r.name,
|
|
582
|
+
label: r.name,
|
|
583
583
|
children: c.map((A) => ({
|
|
584
584
|
value: A.field_name,
|
|
585
585
|
label: A.label
|
|
586
586
|
}))
|
|
587
587
|
};
|
|
588
|
-
d[
|
|
588
|
+
d[w].push(T);
|
|
589
589
|
});
|
|
590
590
|
}), d;
|
|
591
591
|
}), ve = (d, s) => {
|
|
592
|
-
const
|
|
593
|
-
if (
|
|
594
|
-
const [
|
|
595
|
-
if (Z(
|
|
592
|
+
const w = f.value[d][s.field_name];
|
|
593
|
+
if (w instanceof Array) {
|
|
594
|
+
const [p] = w;
|
|
595
|
+
if (Z(p))
|
|
596
596
|
return !0;
|
|
597
|
-
} else if (Z(
|
|
597
|
+
} else if (Z(w))
|
|
598
598
|
return !0;
|
|
599
599
|
return !1;
|
|
600
600
|
}, u = (d, s) => {
|
|
601
|
-
const
|
|
601
|
+
const w = [], p = f.value[d][s.field_name];
|
|
602
602
|
if (s.operator === "is_or_not_blank_or_null" || s.operator === "is_or_not_null")
|
|
603
|
-
return P(
|
|
603
|
+
return P(p === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
|
|
604
604
|
if (s.operator === "_eq") {
|
|
605
|
-
if (["上月", "本月", "今日", "昨日", "期初"].includes(
|
|
606
|
-
return P(
|
|
605
|
+
if (["上月", "本月", "今日", "昨日", "期初"].includes(p))
|
|
606
|
+
return P(p);
|
|
607
607
|
} else {
|
|
608
608
|
if (L.value[s.field_name] != null)
|
|
609
609
|
return `${ke(s.format, s.operator)} ${L.value[s.field_name]}`;
|
|
610
|
-
if (
|
|
611
|
-
let
|
|
612
|
-
return s.field_name_list && (
|
|
610
|
+
if (p instanceof Array && s.field_name_list instanceof Array) {
|
|
611
|
+
let r;
|
|
612
|
+
return s.field_name_list && (p instanceof Array ? r = p.join(",") : r = p), `${ke(s.format, s.operator)} ${r}`;
|
|
613
613
|
} else {
|
|
614
|
-
if (
|
|
615
|
-
return
|
|
614
|
+
if (p instanceof Array && s.options instanceof Array)
|
|
615
|
+
return p.forEach((r) => {
|
|
616
616
|
s.options.forEach((c) => {
|
|
617
|
-
|
|
617
|
+
r == c.value && w.push(c.label);
|
|
618
618
|
});
|
|
619
|
-
}), `${ke(s.format, s.operator)} ${
|
|
619
|
+
}), `${ke(s.format, s.operator)} ${w.join(
|
|
620
620
|
","
|
|
621
621
|
)}`;
|
|
622
622
|
{
|
|
623
|
-
let
|
|
623
|
+
let r;
|
|
624
624
|
if (s.options)
|
|
625
625
|
s.options.forEach((c) => {
|
|
626
|
-
|
|
626
|
+
p == c.value && (r = c.label);
|
|
627
627
|
});
|
|
628
628
|
else if (s.type == "monthpicker" && s.dateFormat)
|
|
629
|
-
if (
|
|
629
|
+
if (p instanceof Array) {
|
|
630
630
|
const c = [];
|
|
631
|
-
|
|
631
|
+
p.forEach((T) => {
|
|
632
632
|
T ? c.push(z(T).format(s.dateFormat)) : c.push(T);
|
|
633
|
-
}),
|
|
633
|
+
}), r = c.join(",");
|
|
634
634
|
} else
|
|
635
|
-
|
|
635
|
+
r = z(p).format(s.dateFormat);
|
|
636
636
|
else
|
|
637
|
-
|
|
638
|
-
return `${ke(s.format, s.operator)} ${
|
|
637
|
+
r = p;
|
|
638
|
+
return `${ke(s.format, s.operator)} ${r}`;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
}, b = () => {
|
|
643
643
|
l("onShowSearchRender");
|
|
644
|
-
},
|
|
644
|
+
}, y = (d) => d.operator_list_selected ? d.operator_list_selected : d.operator_list ? d.operator_list : [];
|
|
645
645
|
return ae(
|
|
646
|
-
() =>
|
|
646
|
+
() => f.value,
|
|
647
647
|
() => {
|
|
648
|
-
l("onChangeValue", { model:
|
|
648
|
+
l("onChangeValue", { model: f.value });
|
|
649
649
|
},
|
|
650
650
|
{ deep: !0 }
|
|
651
651
|
), ae(
|
|
@@ -658,22 +658,22 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
658
658
|
});
|
|
659
659
|
return;
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
g();
|
|
662
662
|
},
|
|
663
663
|
{ deep: !0 }
|
|
664
664
|
), ae(
|
|
665
665
|
() => e.base_search_condition_config_list,
|
|
666
666
|
() => {
|
|
667
|
-
|
|
667
|
+
g();
|
|
668
668
|
},
|
|
669
669
|
{ deep: !0 }
|
|
670
670
|
), ae(
|
|
671
671
|
() => e.is_clear_model,
|
|
672
672
|
() => {
|
|
673
|
-
e.is_clear_model && (
|
|
673
|
+
e.is_clear_model && (f.value = {}, g(), l("update:is_clear_model", !1));
|
|
674
674
|
}
|
|
675
675
|
), Fe(() => {
|
|
676
|
-
|
|
676
|
+
g(), e.eventBus && e.eventBus.on("filterChange", a);
|
|
677
677
|
}), Je(() => {
|
|
678
678
|
e.eventBus && e.eventBus.off("filterChange", a);
|
|
679
679
|
}), {
|
|
@@ -682,22 +682,22 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
682
682
|
isShowForm: H,
|
|
683
683
|
labelModel: L,
|
|
684
684
|
get_operator_type_map: ke,
|
|
685
|
-
condition_model_dict:
|
|
685
|
+
condition_model_dict: f,
|
|
686
686
|
addConditionModal: O,
|
|
687
687
|
handleAddConditions: S,
|
|
688
688
|
handleAddConditionOk: E,
|
|
689
689
|
handleAddConditionCancel: B,
|
|
690
690
|
onChangeOperator: t,
|
|
691
691
|
handleAddGroupCondition: Y,
|
|
692
|
-
handleSearch:
|
|
692
|
+
handleSearch: fe,
|
|
693
693
|
addConditionGroupModal: I,
|
|
694
694
|
handleAddGroupConditionOK: ie,
|
|
695
695
|
handleAddGroupConditionCancel: $,
|
|
696
696
|
validateInfos: R,
|
|
697
697
|
deleteBtnDict: X,
|
|
698
|
-
handleMouseEnter:
|
|
698
|
+
handleMouseEnter: m,
|
|
699
699
|
handleMouseLeave: le,
|
|
700
|
-
handleDeleteFormItem:
|
|
700
|
+
handleDeleteFormItem: re,
|
|
701
701
|
handleDelSearch: ne,
|
|
702
702
|
searchItemOptionsDict: _e,
|
|
703
703
|
onChangeSearchItem: be,
|
|
@@ -705,49 +705,49 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
705
705
|
isShowSearchTag: ve,
|
|
706
706
|
handleShowSearchRender: b,
|
|
707
707
|
options_eq: q,
|
|
708
|
-
get_operator_list_selected:
|
|
708
|
+
get_operator_list_selected: y,
|
|
709
709
|
is_or_not_blank_or_null_options: U
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
});
|
|
713
|
-
const ea = (e) => (Qe("data-v-
|
|
713
|
+
const ea = (e) => (Qe("data-v-547e81f5"), e = e(), Xe(), e), la = { class: "expand-btn" }, aa = { class: "card" }, oa = {
|
|
714
714
|
key: 0,
|
|
715
715
|
class: "condition-group"
|
|
716
716
|
}, ta = { style: { width: "315px", height: "40px" } }, ia = /* @__PURE__ */ ea(() => /* @__PURE__ */ G("div", { class: "range" }, "~", -1)), na = { class: "close-icon" }, da = { class: "search-bar" };
|
|
717
717
|
function sa(e, l, H, L, P, q) {
|
|
718
|
-
const
|
|
718
|
+
const f = C("a-button"), R = C("a-space"), j = C("a-tag"), U = C("close-outlined"), n = C("a-cascader"), k = C("a-tooltip"), v = C("a-select-option"), t = C("a-select"), O = C("field-render-2"), S = C("a-flex"), E = C("close-circle-outlined"), B = C("a-input-group"), I = C("a-space-compact"), Y = C("a-divider"), ie = C("add-condition-modal"), $ = C("add-condition-group-modal");
|
|
719
719
|
return o(), F(N, null, [
|
|
720
|
-
e.is_massage_default ? M("", !0) : (o(),
|
|
721
|
-
default:
|
|
722
|
-
e.is_show_normal_search ? (o(),
|
|
720
|
+
e.is_massage_default ? M("", !0) : (o(), _(R, { key: 0 }, {
|
|
721
|
+
default: h(() => [
|
|
722
|
+
e.is_show_normal_search ? (o(), _(f, {
|
|
723
723
|
key: 0,
|
|
724
724
|
type: "link",
|
|
725
725
|
onClick: e.handleShowSearchRender
|
|
726
726
|
}, {
|
|
727
|
-
default:
|
|
727
|
+
default: h(() => [
|
|
728
728
|
x(K(e.$t("普通")), 1)
|
|
729
729
|
]),
|
|
730
730
|
_: 1
|
|
731
731
|
}, 8, ["onClick"])) : M("", !0),
|
|
732
|
-
e.isShowForm ? (o(),
|
|
732
|
+
e.isShowForm ? (o(), _(f, {
|
|
733
733
|
key: 2,
|
|
734
734
|
type: "link",
|
|
735
735
|
onClick: l[1] || (l[1] = () => {
|
|
736
736
|
e.isShowForm = !1, e.$emit("resize");
|
|
737
737
|
})
|
|
738
738
|
}, {
|
|
739
|
-
default:
|
|
739
|
+
default: h(() => [
|
|
740
740
|
x(K(e.$t("隐藏")), 1)
|
|
741
741
|
]),
|
|
742
742
|
_: 1
|
|
743
|
-
})) : (o(),
|
|
743
|
+
})) : (o(), _(f, {
|
|
744
744
|
key: 1,
|
|
745
745
|
type: "link",
|
|
746
746
|
onClick: l[0] || (l[0] = () => {
|
|
747
747
|
e.isShowForm = !0, e.$emit("resize");
|
|
748
748
|
})
|
|
749
749
|
}, {
|
|
750
|
-
default:
|
|
750
|
+
default: h(() => [
|
|
751
751
|
G("span", la, K(e.$t("展开")), 1)
|
|
752
752
|
]),
|
|
753
753
|
_: 1
|
|
@@ -756,27 +756,27 @@ function sa(e, l, H, L, P, q) {
|
|
|
756
756
|
_: 1
|
|
757
757
|
})),
|
|
758
758
|
Ce(G("span", null, [
|
|
759
|
-
(o(!0), F(N, null, W(e.default_search_condition_config_list, (
|
|
759
|
+
(o(!0), F(N, null, W(e.default_search_condition_config_list, (fe, g) => (o(), F("span", { key: g }, [
|
|
760
760
|
V(j, null, {
|
|
761
|
-
default:
|
|
762
|
-
x(K(e.$t("条件组")) + K(
|
|
761
|
+
default: h(() => [
|
|
762
|
+
x(K(e.$t("条件组")) + K(g + 1) + ":", 1)
|
|
763
763
|
]),
|
|
764
764
|
_: 2
|
|
765
765
|
}, 1024),
|
|
766
|
-
(o(!0), F(N, null, W(
|
|
766
|
+
(o(!0), F(N, null, W(fe, (a) => (o(), F("span", {
|
|
767
767
|
key: a.field_name
|
|
768
768
|
}, [
|
|
769
769
|
Ce(V(j, { color: "green" }, {
|
|
770
|
-
default:
|
|
771
|
-
x(K(a.label) + ": " + K(e.transferValueFunc(
|
|
770
|
+
default: h(() => [
|
|
771
|
+
x(K(a.label) + ": " + K(e.transferValueFunc(g, a)) + " ", 1),
|
|
772
772
|
V(U, {
|
|
773
773
|
style: { cursor: "pointer", "margin-left": "5px" },
|
|
774
|
-
onClick: (X) => e.handleDelSearch(
|
|
774
|
+
onClick: (X) => e.handleDelSearch(g, a.field_name)
|
|
775
775
|
}, null, 8, ["onClick"])
|
|
776
776
|
]),
|
|
777
777
|
_: 2
|
|
778
778
|
}, 1536), [
|
|
779
|
-
[$e, e.isShowSearchTag(
|
|
779
|
+
[$e, e.isShowSearchTag(g, a)]
|
|
780
780
|
])
|
|
781
781
|
]))), 128))
|
|
782
782
|
]))), 128))
|
|
@@ -784,59 +784,59 @@ function sa(e, l, H, L, P, q) {
|
|
|
784
784
|
[$e, !e.isShowForm]
|
|
785
785
|
]),
|
|
786
786
|
Ce(G("div", aa, [
|
|
787
|
-
(o(!0), F(N, null, W(e.default_search_condition_config_list, (
|
|
788
|
-
e.default_search_condition_config_list.length > 1 ? (o(), F("div", oa, K(e.$t("条件组")) + " " + K(
|
|
787
|
+
(o(!0), F(N, null, W(e.default_search_condition_config_list, (fe, g) => (o(), F("div", { key: g }, [
|
|
788
|
+
e.default_search_condition_config_list.length > 1 ? (o(), F("div", oa, K(e.$t("条件组")) + " " + K(g + 1), 1)) : M("", !0),
|
|
789
789
|
V(R, {
|
|
790
790
|
wrap: !0,
|
|
791
791
|
align: "center",
|
|
792
792
|
size: 0
|
|
793
793
|
}, {
|
|
794
|
-
default:
|
|
795
|
-
(o(!0), F(N, null, W(
|
|
794
|
+
default: h(() => [
|
|
795
|
+
(o(!0), F(N, null, W(fe, (a, X) => (o(), _(I, {
|
|
796
796
|
block: "",
|
|
797
797
|
key: a.field_name,
|
|
798
798
|
size: "middle",
|
|
799
|
-
onMouseenter: (
|
|
800
|
-
onMouseleave: (
|
|
799
|
+
onMouseenter: (m) => e.handleMouseEnter(g, a),
|
|
800
|
+
onMouseleave: (m) => e.handleMouseLeave(g, a)
|
|
801
801
|
}, {
|
|
802
|
-
default:
|
|
802
|
+
default: h(() => [
|
|
803
803
|
V(B, { compact: "" }, {
|
|
804
|
-
default:
|
|
805
|
-
V(
|
|
804
|
+
default: h(() => [
|
|
805
|
+
V(k, {
|
|
806
806
|
title: a.label
|
|
807
807
|
}, {
|
|
808
|
-
default:
|
|
808
|
+
default: h(() => [
|
|
809
809
|
V(n, {
|
|
810
810
|
value: a.label,
|
|
811
811
|
style: { width: "125px" },
|
|
812
|
-
options: e.searchItemOptionsDict[
|
|
812
|
+
options: e.searchItemOptionsDict[g],
|
|
813
813
|
showSearch: "",
|
|
814
814
|
allowClear: !1,
|
|
815
815
|
placeholder: e.$t("请选择..."),
|
|
816
|
-
onChange: (
|
|
816
|
+
onChange: (m) => e.onChangeSearchItem(m, g, a, X)
|
|
817
817
|
}, null, 8, ["value", "options", "placeholder", "onChange"])
|
|
818
818
|
]),
|
|
819
819
|
_: 2
|
|
820
820
|
}, 1032, ["title"]),
|
|
821
|
-
V(
|
|
821
|
+
V(k, {
|
|
822
822
|
title: e.get_operator_type_map(a.format, a.operator)
|
|
823
823
|
}, {
|
|
824
|
-
default:
|
|
825
|
-
e.get_operator_list_selected(a).length > 0 ? (o(),
|
|
824
|
+
default: h(() => [
|
|
825
|
+
e.get_operator_list_selected(a).length > 0 ? (o(), _(t, {
|
|
826
826
|
key: 0,
|
|
827
827
|
dropdownMatchSelectWidth: !1,
|
|
828
828
|
value: a.operator,
|
|
829
|
-
"onUpdate:value": (
|
|
830
|
-
onChange: (
|
|
829
|
+
"onUpdate:value": (m) => a.operator = m,
|
|
830
|
+
onChange: (m) => e.onChangeOperator(m, g, a),
|
|
831
831
|
style: { width: "100px" }
|
|
832
832
|
}, {
|
|
833
|
-
default:
|
|
834
|
-
(o(!0), F(N, null, W(e.get_operator_list_selected(a), (
|
|
835
|
-
value:
|
|
836
|
-
key:
|
|
833
|
+
default: h(() => [
|
|
834
|
+
(o(!0), F(N, null, W(e.get_operator_list_selected(a), (m) => (o(), _(v, {
|
|
835
|
+
value: m,
|
|
836
|
+
key: m
|
|
837
837
|
}, {
|
|
838
|
-
default:
|
|
839
|
-
x(K(e.get_operator_type_map(a.format,
|
|
838
|
+
default: h(() => [
|
|
839
|
+
x(K(e.get_operator_type_map(a.format, m)), 1)
|
|
840
840
|
]),
|
|
841
841
|
_: 2
|
|
842
842
|
}, 1032, ["value"]))), 128))
|
|
@@ -847,13 +847,13 @@ function sa(e, l, H, L, P, q) {
|
|
|
847
847
|
_: 2
|
|
848
848
|
}, 1032, ["title"]),
|
|
849
849
|
G("span", ta, [
|
|
850
|
-
["is_or_not_blank_or_null", "is_or_not_null"].includes(a.operator) ? (o(),
|
|
850
|
+
["is_or_not_blank_or_null", "is_or_not_null"].includes(a.operator) ? (o(), _(O, {
|
|
851
851
|
key: 0,
|
|
852
852
|
is_show_label: !1,
|
|
853
853
|
label: e.labelModel[a.field_name],
|
|
854
|
-
"onUpdate:label": (
|
|
855
|
-
value: e.condition_model_dict[
|
|
856
|
-
"onUpdate:value": (
|
|
854
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
855
|
+
value: e.condition_model_dict[g][a.field_name],
|
|
856
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name] = m,
|
|
857
857
|
field: {
|
|
858
858
|
...a,
|
|
859
859
|
type: "select",
|
|
@@ -862,46 +862,62 @@ function sa(e, l, H, L, P, q) {
|
|
|
862
862
|
class_name: "str",
|
|
863
863
|
placeholder: ""
|
|
864
864
|
},
|
|
865
|
-
formModel: e.condition_model_dict[
|
|
865
|
+
formModel: e.condition_model_dict[g],
|
|
866
866
|
options: e.is_or_not_blank_or_null_options,
|
|
867
867
|
validateInfos: e.validateInfos
|
|
868
868
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : ["input"].includes(a.format) ? (o(), F(N, { key: 1 }, [
|
|
869
869
|
a.operator === "between" || a.operator === "notbetween" ? (o(), F(N, { key: 0 }, [
|
|
870
|
-
a.type === "datepicker" ? (o(),
|
|
870
|
+
a.type === "datepicker" ? (o(), _(O, {
|
|
871
871
|
key: 0,
|
|
872
872
|
is_show_label: !1,
|
|
873
873
|
label: e.labelModel[a.field_name],
|
|
874
|
-
"onUpdate:label": (
|
|
875
|
-
value: e.condition_model_dict[
|
|
876
|
-
"onUpdate:value": (
|
|
874
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
875
|
+
value: e.condition_model_dict[g][a.field_name],
|
|
876
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name] = m,
|
|
877
877
|
field: { ...a, type: "rangepicker", format: a.dateFormat },
|
|
878
|
-
formModel: e.condition_model_dict[
|
|
878
|
+
formModel: e.condition_model_dict[g],
|
|
879
879
|
options: a.options,
|
|
880
880
|
validateInfos: e.validateInfos
|
|
881
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.type === "monthpicker" ? (o(),
|
|
881
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.type === "monthpicker" ? (o(), _(O, {
|
|
882
882
|
key: 1,
|
|
883
883
|
is_show_label: !1,
|
|
884
884
|
label: e.labelModel[a.field_name],
|
|
885
|
-
"onUpdate:label": (
|
|
886
|
-
value: e.condition_model_dict[
|
|
887
|
-
"onUpdate:value": (
|
|
885
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
886
|
+
value: e.condition_model_dict[g][a.field_name],
|
|
887
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name] = m,
|
|
888
|
+
field: {
|
|
889
|
+
...a,
|
|
890
|
+
type: "monthrangepicker",
|
|
891
|
+
format: a.dateFormat
|
|
892
|
+
},
|
|
893
|
+
formModel: e.condition_model_dict[g],
|
|
894
|
+
options: a.options,
|
|
895
|
+
validateInfos: e.validateInfos
|
|
896
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.type === "timepicker" ? (o(), _(O, {
|
|
897
|
+
key: 2,
|
|
898
|
+
is_show_label: !1,
|
|
899
|
+
label: e.labelModel[a.field_name],
|
|
900
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
901
|
+
value: e.condition_model_dict[g][a.field_name],
|
|
902
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name] = m,
|
|
888
903
|
field: {
|
|
889
904
|
...a,
|
|
890
|
-
type: "
|
|
905
|
+
type: "timerangepicker",
|
|
906
|
+
format: a.dateFormat
|
|
891
907
|
},
|
|
892
|
-
formModel: e.condition_model_dict[
|
|
908
|
+
formModel: e.condition_model_dict[g],
|
|
893
909
|
options: a.options,
|
|
894
910
|
validateInfos: e.validateInfos
|
|
895
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (o(),
|
|
896
|
-
default:
|
|
911
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (o(), _(S, { key: 3 }, {
|
|
912
|
+
default: h(() => [
|
|
897
913
|
V(O, {
|
|
898
914
|
is_show_label: !1,
|
|
899
915
|
label: e.labelModel[a.field_name],
|
|
900
|
-
"onUpdate:label": (
|
|
901
|
-
value: e.condition_model_dict[
|
|
902
|
-
"onUpdate:value": (
|
|
916
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
917
|
+
value: e.condition_model_dict[g][a.field_name][0],
|
|
918
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name][0] = m,
|
|
903
919
|
field: a,
|
|
904
|
-
formModel: e.condition_model_dict[
|
|
920
|
+
formModel: e.condition_model_dict[g],
|
|
905
921
|
options: a.options,
|
|
906
922
|
validateInfos: e.validateInfos
|
|
907
923
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"]),
|
|
@@ -909,24 +925,24 @@ function sa(e, l, H, L, P, q) {
|
|
|
909
925
|
V(O, {
|
|
910
926
|
is_show_label: !1,
|
|
911
927
|
label: e.labelModel[a.field_name],
|
|
912
|
-
"onUpdate:label": (
|
|
913
|
-
value: e.condition_model_dict[
|
|
914
|
-
"onUpdate:value": (
|
|
928
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
929
|
+
value: e.condition_model_dict[g][a.field_name][1],
|
|
930
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name][1] = m,
|
|
915
931
|
field: a,
|
|
916
|
-
formModel: e.condition_model_dict[
|
|
932
|
+
formModel: e.condition_model_dict[g],
|
|
917
933
|
options: a.options,
|
|
918
934
|
validateInfos: e.validateInfos
|
|
919
935
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])
|
|
920
936
|
]),
|
|
921
937
|
_: 2
|
|
922
938
|
}, 1024))
|
|
923
|
-
], 64)) : a.operator === "_eq" ? (o(),
|
|
939
|
+
], 64)) : a.operator === "_eq" ? (o(), _(O, {
|
|
924
940
|
key: 1,
|
|
925
941
|
is_show_label: !1,
|
|
926
942
|
label: e.labelModel[a.field_name],
|
|
927
|
-
"onUpdate:label": (
|
|
928
|
-
value: e.condition_model_dict[
|
|
929
|
-
"onUpdate:value": (
|
|
943
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
944
|
+
value: e.condition_model_dict[g][a.field_name],
|
|
945
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name] = m,
|
|
930
946
|
field: {
|
|
931
947
|
...a,
|
|
932
948
|
type: "select",
|
|
@@ -935,66 +951,66 @@ function sa(e, l, H, L, P, q) {
|
|
|
935
951
|
class_name: "str",
|
|
936
952
|
placeholder: ""
|
|
937
953
|
},
|
|
938
|
-
formModel: e.condition_model_dict[
|
|
954
|
+
formModel: e.condition_model_dict[g],
|
|
939
955
|
options: e.options_eq,
|
|
940
956
|
validateInfos: e.validateInfos
|
|
941
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.type === "datepicker" || a.type === "monthpicker" ? (o(),
|
|
957
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.type === "datepicker" || a.type === "monthpicker" || a.type === "timepicker" ? (o(), _(O, {
|
|
942
958
|
key: 2,
|
|
943
959
|
is_show_label: !1,
|
|
944
960
|
label: e.labelModel[a.field_name],
|
|
945
|
-
"onUpdate:label": (
|
|
946
|
-
value: e.condition_model_dict[
|
|
947
|
-
"onUpdate:value": (
|
|
961
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
962
|
+
value: e.condition_model_dict[g][a.field_name],
|
|
963
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name] = m,
|
|
948
964
|
field: { ...a, format: a.dateFormat },
|
|
949
|
-
formModel: e.condition_model_dict[
|
|
965
|
+
formModel: e.condition_model_dict[g],
|
|
950
966
|
options: a.options,
|
|
951
967
|
validateInfos: e.validateInfos
|
|
952
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (o(),
|
|
968
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (o(), _(O, {
|
|
953
969
|
key: 3,
|
|
954
970
|
is_show_label: !1,
|
|
955
971
|
label: e.labelModel[a.field_name],
|
|
956
|
-
"onUpdate:label": (
|
|
957
|
-
value: e.condition_model_dict[
|
|
958
|
-
"onUpdate:value": (
|
|
972
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
973
|
+
value: e.condition_model_dict[g][a.field_name],
|
|
974
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name] = m,
|
|
959
975
|
field: a,
|
|
960
|
-
formModel: e.condition_model_dict[
|
|
976
|
+
formModel: e.condition_model_dict[g],
|
|
961
977
|
options: a.options,
|
|
962
978
|
validateInfos: e.validateInfos
|
|
963
979
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"]))
|
|
964
980
|
], 64)) : ["choices", "remote"].includes(a.format) ? (o(), F(N, { key: 2 }, [
|
|
965
|
-
a.format === "choices" ? (o(),
|
|
981
|
+
a.format === "choices" ? (o(), _(O, {
|
|
966
982
|
key: 0,
|
|
967
983
|
is_show_label: !1,
|
|
968
984
|
label: e.labelModel[a.field_name],
|
|
969
|
-
"onUpdate:label": (
|
|
970
|
-
value: e.condition_model_dict[
|
|
971
|
-
"onUpdate:value": (
|
|
985
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
986
|
+
value: e.condition_model_dict[g][a.field_name],
|
|
987
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name] = m,
|
|
972
988
|
field: a,
|
|
973
|
-
formModel: e.condition_model_dict[
|
|
989
|
+
formModel: e.condition_model_dict[g],
|
|
974
990
|
options: a.options,
|
|
975
991
|
validateInfos: e.validateInfos
|
|
976
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.format === "remote" ? (o(),
|
|
992
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.format === "remote" ? (o(), _(O, {
|
|
977
993
|
key: 1,
|
|
978
994
|
is_show_label: !1,
|
|
979
995
|
label: e.labelModel[a.field_name],
|
|
980
|
-
"onUpdate:label": (
|
|
981
|
-
value: e.condition_model_dict[
|
|
982
|
-
"onUpdate:value": (
|
|
996
|
+
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
997
|
+
value: e.condition_model_dict[g][a.field_name],
|
|
998
|
+
"onUpdate:value": (m) => e.condition_model_dict[g][a.field_name] = m,
|
|
983
999
|
field: { ...a, name: a == null ? void 0 : a.field_name },
|
|
984
|
-
formModel: e.condition_model_dict[
|
|
1000
|
+
formModel: e.condition_model_dict[g],
|
|
985
1001
|
options: a.options,
|
|
986
1002
|
validateInfos: e.validateInfos
|
|
987
1003
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : M("", !0)
|
|
988
1004
|
], 64)) : M("", !0)
|
|
989
1005
|
]),
|
|
990
1006
|
G("span", na, [
|
|
991
|
-
e.deleteBtnDict[
|
|
1007
|
+
e.deleteBtnDict[g][a.field_name] && (e.default_search_condition_config_list[0].length > 1 || e.default_search_condition_config_list.length > 1) && !e.is_massage_default ? (o(), _(k, {
|
|
992
1008
|
key: 0,
|
|
993
1009
|
title: "删除此条件"
|
|
994
1010
|
}, {
|
|
995
|
-
default:
|
|
1011
|
+
default: h(() => [
|
|
996
1012
|
V(E, {
|
|
997
|
-
onClick: (
|
|
1013
|
+
onClick: (m) => e.handleDeleteFormItem(g, a)
|
|
998
1014
|
}, null, 8, ["onClick"])
|
|
999
1015
|
]),
|
|
1000
1016
|
_: 2
|
|
@@ -1009,12 +1025,12 @@ function sa(e, l, H, L, P, q) {
|
|
|
1009
1025
|
]),
|
|
1010
1026
|
_: 2
|
|
1011
1027
|
}, 1024),
|
|
1012
|
-
e.default_search_condition_config_list.length > 1 &&
|
|
1028
|
+
e.default_search_condition_config_list.length > 1 && g != e.default_search_condition_config_list.length - 1 ? (o(), _(Y, {
|
|
1013
1029
|
key: 1,
|
|
1014
1030
|
class: "divider",
|
|
1015
1031
|
style: { margin: "0" }
|
|
1016
1032
|
}, {
|
|
1017
|
-
default:
|
|
1033
|
+
default: h(() => [
|
|
1018
1034
|
x(" 或 ")
|
|
1019
1035
|
]),
|
|
1020
1036
|
_: 1
|
|
@@ -1025,33 +1041,33 @@ function sa(e, l, H, L, P, q) {
|
|
|
1025
1041
|
]),
|
|
1026
1042
|
Ce(G("div", da, [
|
|
1027
1043
|
V(R, null, {
|
|
1028
|
-
default:
|
|
1029
|
-
V(
|
|
1044
|
+
default: h(() => [
|
|
1045
|
+
V(f, {
|
|
1030
1046
|
size: "small",
|
|
1031
1047
|
type: "primary",
|
|
1032
1048
|
onClick: e.handleAddConditions
|
|
1033
1049
|
}, {
|
|
1034
|
-
default:
|
|
1050
|
+
default: h(() => [
|
|
1035
1051
|
x(K(e.$t("添加条件")), 1)
|
|
1036
1052
|
]),
|
|
1037
1053
|
_: 1
|
|
1038
1054
|
}, 8, ["onClick"]),
|
|
1039
|
-
V(
|
|
1055
|
+
V(f, {
|
|
1040
1056
|
size: "small",
|
|
1041
1057
|
type: "primary",
|
|
1042
1058
|
onClick: e.handleAddGroupCondition
|
|
1043
1059
|
}, {
|
|
1044
|
-
default:
|
|
1060
|
+
default: h(() => [
|
|
1045
1061
|
x(K(e.$t("添加条件组")), 1)
|
|
1046
1062
|
]),
|
|
1047
1063
|
_: 1
|
|
1048
1064
|
}, 8, ["onClick"]),
|
|
1049
|
-
V(
|
|
1065
|
+
V(f, {
|
|
1050
1066
|
size: "small",
|
|
1051
1067
|
type: "primary",
|
|
1052
1068
|
onClick: e.handleSearch
|
|
1053
1069
|
}, {
|
|
1054
|
-
default:
|
|
1070
|
+
default: h(() => [
|
|
1055
1071
|
x(K(e.$t("查询")), 1)
|
|
1056
1072
|
]),
|
|
1057
1073
|
_: 1
|
|
@@ -1062,7 +1078,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
1062
1078
|
], 512), [
|
|
1063
1079
|
[$e, e.isShowForm && !e.is_massage_default]
|
|
1064
1080
|
]),
|
|
1065
|
-
e.addConditionModal.open ? (o(),
|
|
1081
|
+
e.addConditionModal.open ? (o(), _(ie, {
|
|
1066
1082
|
key: 1,
|
|
1067
1083
|
open: e.addConditionModal.open,
|
|
1068
1084
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
@@ -1070,7 +1086,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
1070
1086
|
onOk: e.handleAddConditionOk,
|
|
1071
1087
|
onCancel: e.handleAddConditionCancel
|
|
1072
1088
|
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : M("", !0),
|
|
1073
|
-
e.addConditionGroupModal.open ? (o(),
|
|
1089
|
+
e.addConditionGroupModal.open ? (o(), _($, {
|
|
1074
1090
|
key: 2,
|
|
1075
1091
|
open: e.addConditionGroupModal.open,
|
|
1076
1092
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
@@ -1080,7 +1096,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
1080
1096
|
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : M("", !0)
|
|
1081
1097
|
], 64);
|
|
1082
1098
|
}
|
|
1083
|
-
const ko = /* @__PURE__ */ he(xl, [["render", sa], ["__scopeId", "data-v-
|
|
1099
|
+
const ko = /* @__PURE__ */ he(xl, [["render", sa], ["__scopeId", "data-v-547e81f5"]]), fa = pe({
|
|
1084
1100
|
name: "FormRender",
|
|
1085
1101
|
components: {},
|
|
1086
1102
|
props: {
|
|
@@ -1140,9 +1156,9 @@ const ko = /* @__PURE__ */ he(xl, [["render", sa], ["__scopeId", "data-v-793f409
|
|
|
1140
1156
|
});
|
|
1141
1157
|
}
|
|
1142
1158
|
});
|
|
1143
|
-
function
|
|
1144
|
-
const
|
|
1145
|
-
return o(),
|
|
1159
|
+
function ra(e, l, H, L, P, q) {
|
|
1160
|
+
const f = C("field-render"), R = C("a-col"), j = C("a-row"), U = C("a-form");
|
|
1161
|
+
return o(), _(U, {
|
|
1146
1162
|
ref: "form",
|
|
1147
1163
|
autocomplete: "off",
|
|
1148
1164
|
model: e.model,
|
|
@@ -1154,33 +1170,33 @@ function fa(e, l, H, L, P, q) {
|
|
|
1154
1170
|
labelAlign: e.form.settings.labelAlign,
|
|
1155
1171
|
scrollToFirstError: ""
|
|
1156
1172
|
}, {
|
|
1157
|
-
default:
|
|
1173
|
+
default: h(() => [
|
|
1158
1174
|
V(j, {
|
|
1159
1175
|
gutter: 20,
|
|
1160
1176
|
style: { margin: "0" }
|
|
1161
1177
|
}, {
|
|
1162
|
-
default:
|
|
1163
|
-
e.form.settings.col && e.form.settings.col.length > 0 ? (o(!0), F(N, { key: 0 }, W(e.fieldList, (n) => (o(),
|
|
1178
|
+
default: h(() => [
|
|
1179
|
+
e.form.settings.col && e.form.settings.col.length > 0 ? (o(!0), F(N, { key: 0 }, W(e.fieldList, (n) => (o(), _(R, {
|
|
1164
1180
|
xl: 24 / e.fieldList.length,
|
|
1165
1181
|
lg: 24,
|
|
1166
1182
|
md: 24,
|
|
1167
1183
|
sm: 24,
|
|
1168
1184
|
xs: 24
|
|
1169
1185
|
}, {
|
|
1170
|
-
default:
|
|
1171
|
-
(o(!0), F(N, null, W(e.form.fields.slice(n[0], n[1]), (
|
|
1172
|
-
value: e.model[
|
|
1173
|
-
"onUpdate:value": (v) => e.model[
|
|
1174
|
-
field:
|
|
1186
|
+
default: h(() => [
|
|
1187
|
+
(o(!0), F(N, null, W(e.form.fields.slice(n[0], n[1]), (k) => (o(), _(f, {
|
|
1188
|
+
value: e.model[k.name],
|
|
1189
|
+
"onUpdate:value": (v) => e.model[k.name] = v,
|
|
1190
|
+
field: k,
|
|
1175
1191
|
formModel: e.model,
|
|
1176
|
-
key:
|
|
1192
|
+
key: k.name,
|
|
1177
1193
|
validateInfos: e.validateInfos,
|
|
1178
|
-
options: e.options[
|
|
1194
|
+
options: e.options[k.datasource ? k.datasource : k.name]
|
|
1179
1195
|
}, null, 8, ["value", "onUpdate:value", "field", "formModel", "validateInfos", "options"]))), 128))
|
|
1180
1196
|
]),
|
|
1181
1197
|
_: 2
|
|
1182
1198
|
}, 1032, ["xl"]))), 256)) : M("", !0),
|
|
1183
|
-
!e.form.settings.col || e.form.settings.col.length === 0 ? (o(),
|
|
1199
|
+
!e.form.settings.col || e.form.settings.col.length === 0 ? (o(), _(R, {
|
|
1184
1200
|
key: 1,
|
|
1185
1201
|
xl: 24,
|
|
1186
1202
|
lg: 24,
|
|
@@ -1188,21 +1204,21 @@ function fa(e, l, H, L, P, q) {
|
|
|
1188
1204
|
sm: 24,
|
|
1189
1205
|
xs: 24
|
|
1190
1206
|
}, {
|
|
1191
|
-
default:
|
|
1207
|
+
default: h(() => [
|
|
1192
1208
|
(o(!0), F(N, null, W(e.form.fields, (n) => (o(), F(N, null, [
|
|
1193
|
-
n.name2 ? (o(),
|
|
1209
|
+
n.name2 ? (o(), _(f, {
|
|
1194
1210
|
value: e.model[n.name],
|
|
1195
|
-
"onUpdate:value": (
|
|
1211
|
+
"onUpdate:value": (k) => e.model[n.name] = k,
|
|
1196
1212
|
label: e.model[n.name2],
|
|
1197
|
-
"onUpdate:label": (
|
|
1213
|
+
"onUpdate:label": (k) => e.model[n.name2] = k,
|
|
1198
1214
|
field: n,
|
|
1199
1215
|
formModel: e.model,
|
|
1200
1216
|
key: n.name,
|
|
1201
1217
|
validateInfos: e.validateInfos,
|
|
1202
1218
|
options: e.options[n.datasource ? n.datasource : n.name]
|
|
1203
|
-
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (o(),
|
|
1219
|
+
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (o(), _(f, {
|
|
1204
1220
|
value: e.model[n.name],
|
|
1205
|
-
"onUpdate:value": (
|
|
1221
|
+
"onUpdate:value": (k) => e.model[n.name] = k,
|
|
1206
1222
|
field: n,
|
|
1207
1223
|
formModel: e.model,
|
|
1208
1224
|
key: n.name,
|
|
@@ -1220,7 +1236,7 @@ function fa(e, l, H, L, P, q) {
|
|
|
1220
1236
|
_: 1
|
|
1221
1237
|
}, 8, ["model", "rules", "layout", "label-col", "wrapper-col", "labelAlign"]);
|
|
1222
1238
|
}
|
|
1223
|
-
const Co = /* @__PURE__ */ he(
|
|
1239
|
+
const Co = /* @__PURE__ */ he(fa, [["render", ra]]), ua = pe({
|
|
1224
1240
|
name: "FormRender2",
|
|
1225
1241
|
components: {},
|
|
1226
1242
|
props: {
|
|
@@ -1275,26 +1291,26 @@ const Co = /* @__PURE__ */ he(ra, [["render", fa]]), ua = pe({
|
|
|
1275
1291
|
}
|
|
1276
1292
|
});
|
|
1277
1293
|
function ma(e, l, H, L, P, q) {
|
|
1278
|
-
const
|
|
1279
|
-
return o(),
|
|
1294
|
+
const f = C("field-render"), R = C("a-col"), j = C("a-row"), U = C("a-form");
|
|
1295
|
+
return o(), _(U, {
|
|
1280
1296
|
ref: "form",
|
|
1281
1297
|
autocomplete: "off",
|
|
1282
1298
|
model: e.model,
|
|
1283
1299
|
rules: e.form.rules,
|
|
1284
1300
|
scrollToFirstError: ""
|
|
1285
1301
|
}, {
|
|
1286
|
-
default:
|
|
1287
|
-
(o(!0), F(N, null, W(e.form.fieldList, (n) => (o(),
|
|
1302
|
+
default: h(() => [
|
|
1303
|
+
(o(!0), F(N, null, W(e.form.fieldList, (n) => (o(), _(j, {
|
|
1288
1304
|
gutter: "5",
|
|
1289
1305
|
type: "flex"
|
|
1290
1306
|
}, {
|
|
1291
|
-
default:
|
|
1292
|
-
(o(!0), F(N, null, W(n, (
|
|
1293
|
-
span:
|
|
1307
|
+
default: h(() => [
|
|
1308
|
+
(o(!0), F(N, null, W(n, (k) => (o(), _(R, {
|
|
1309
|
+
span: k.span
|
|
1294
1310
|
}, {
|
|
1295
|
-
default:
|
|
1311
|
+
default: h(() => [
|
|
1296
1312
|
(o(!0), F(N, null, W(e.form.fields, (v) => (o(), F(N, null, [
|
|
1297
|
-
v.name2 ? (o(),
|
|
1313
|
+
v.name2 ? (o(), _(f, {
|
|
1298
1314
|
value: e.model[v.name],
|
|
1299
1315
|
"onUpdate:value": (t) => e.model[v.name] = t,
|
|
1300
1316
|
label: e.model[v.name2],
|
|
@@ -1304,7 +1320,7 @@ function ma(e, l, H, L, P, q) {
|
|
|
1304
1320
|
key: v.name,
|
|
1305
1321
|
validateInfos: e.validateInfos,
|
|
1306
1322
|
options: e.options[v.datasource ? v.datasource : v.name]
|
|
1307
|
-
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (o(),
|
|
1323
|
+
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (o(), _(f, {
|
|
1308
1324
|
value: e.model[v.name],
|
|
1309
1325
|
"onUpdate:value": (t) => e.model[v.name] = t,
|
|
1310
1326
|
field: v,
|
|
@@ -1417,8 +1433,8 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1417
1433
|
})) : Z(t) && typeof t == "string" ? S = Number(t) : S = t : O == "bool" && (Z(t) && t instanceof Array ? (S = [], t.forEach((E) => {
|
|
1418
1434
|
Z(E) && typeof E == "string" ? S.push(!!E) : S.push(E);
|
|
1419
1435
|
})) : Z(t) && typeof t == "string" ? S = !!t : S = t), S;
|
|
1420
|
-
}, q = ee(e.is_show_field),
|
|
1421
|
-
l("update:is_edit",
|
|
1436
|
+
}, q = ee(e.is_show_field), f = ee(!1), R = () => {
|
|
1437
|
+
l("update:is_edit", f.value);
|
|
1422
1438
|
}, j = () => {
|
|
1423
1439
|
l("add");
|
|
1424
1440
|
}, U = Kl(() => {
|
|
@@ -1426,12 +1442,12 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1426
1442
|
const t = q.value, O = [];
|
|
1427
1443
|
for (const Y in (B = e.field) == null ? void 0 : B.conditions) {
|
|
1428
1444
|
const ie = (I = e.field) == null ? void 0 : I.conditions[Y], $ = [];
|
|
1429
|
-
for (const
|
|
1430
|
-
const
|
|
1445
|
+
for (const fe in ie) {
|
|
1446
|
+
const g = ie[fe], a = e.formModel[g.watchKey];
|
|
1431
1447
|
let X;
|
|
1432
|
-
|
|
1433
|
-
let
|
|
1434
|
-
X instanceof Array && ([
|
|
1448
|
+
g.class_name ? X = P(g.value, g.class_name) : X = g.value;
|
|
1449
|
+
let m, le;
|
|
1450
|
+
X instanceof Array && ([m, le] = X), g.operator == "lt" ? typeof m == "number" ? oe(a) ? $.push(!1) : a < m ? $.push(!0) : $.push(!1) : me(m) && (oe(a) ? $.push(!1) : z(a).isBefore(z(m)) ? $.push(!0) : $.push(!1)) : g.operator == "lte" ? typeof m == "number" ? oe(a) ? $.push(!1) : a <= m ? $.push(!0) : $.push(!1) : me(m) && (oe(a) ? $.push(!1) : z(a).isBefore(z(m)) || z(a).isSame(z(m)) ? $.push(!0) : $.push(!1)) : g.operator == "gt" ? typeof m == "number" ? oe(a) ? $.push(!1) : a > m ? $.push(!0) : $.push(!1) : me(m) && (oe(a) ? $.push(!1) : z(a).isAfter(z(m)) ? $.push(!0) : $.push(!1)) : g.operator == "gte" ? typeof m == "number" ? oe(a) ? $.push(!1) : a >= m ? $.push(!0) : $.push(!1) : me(m) && (oe(a) ? $.push(!1) : z(a).isAfter(z(m)) || z(a).isSame(z(m)) ? $.push(!0) : $.push(!1)) : g.operator == "between" ? typeof m == "number" && typeof le == "number" && m && le ? oe(a) ? $.push(!1) : a >= m && a <= le ? $.push(!0) : $.push(!1) : me(m) && (oe(a) ? $.push(!1) : (z(a).isAfter(z(m)) || z(a).isSame(z(m))) && (z(a).isBefore(z(le)) || z(a).isSame(z(le))) ? $.push(!0) : $.push(!1)) : g.operator == "notbetween" ? typeof m == "number" && typeof le == "number" && m && le ? oe(a) ? $.push(!1) : a < m || a > le ? $.push(!0) : $.push(!1) : me(m) && (oe(a) ? $.push(!1) : z(a).isBefore(z(m)) || z(a).isAfter(z(le)) ? $.push(!0) : $.push(!1)) : g.operator == "in" ? a instanceof Array ? X.filter((ne) => a.includes(ne)).length > 0 ? $.push(!0) : $.push(!1) : (typeof a == "string" || typeof a == "number" || oe(a)) && (X.find((ne) => a == ne) ? $.push(!0) : $.push(!1)) : g.operator == "eq" ? a === m ? $.push(!0) : $.push(!1) : g.operator == "contains" ? a.toString().indexOf(m) > -1 ? $.push(!0) : $.push(!1) : g.operator == "startswith" ? a.toString().startsWith(m) ? $.push(!0) : $.push(!1) : g.operator == "notin" ? a instanceof Array ? X.filter((ne) => a.includes(ne)).length > 0 ? $.push(!0) : $.push(!1) : (typeof a == "string" || typeof a == "number" || oe(a)) && (X.find((ne) => a == ne) ? $.push(!1) : $.push(!0)) : g.operator == "notcontains" ? a.toString().indexOf(m) == -1 ? $.push(!0) : $.push(!1) : g.operator == "_eq" || (g.operator == "json_list_not_blank_not_null" ? a ? $.push(!0) : $.push(!1) : g.operator == "json_list_is_blank_is_null" || g.operator == "not_eq" ? a ? $.push(!1) : $.push(!0) : g.operator == "not_blank_not_null" && (a ? $.push(!0) : $.push(!1)));
|
|
1435
1451
|
}
|
|
1436
1452
|
O.push($);
|
|
1437
1453
|
}
|
|
@@ -1447,7 +1463,7 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1447
1463
|
})) : (delete H.value[e.field.name], l("update_model", {
|
|
1448
1464
|
remove_key: e.field.name
|
|
1449
1465
|
})));
|
|
1450
|
-
}, 300), n = ee(""),
|
|
1466
|
+
}, 300), n = ee(""), k = ee(e.label);
|
|
1451
1467
|
ae(
|
|
1452
1468
|
() => n.value,
|
|
1453
1469
|
(t, O) => {
|
|
@@ -1494,7 +1510,7 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1494
1510
|
},
|
|
1495
1511
|
{ immediate: !0 }
|
|
1496
1512
|
), ae(
|
|
1497
|
-
() =>
|
|
1513
|
+
() => k.value,
|
|
1498
1514
|
(t) => {
|
|
1499
1515
|
l("update:label", t), "name2" in e.field && l("update_name2", { key: e.field.name2, value: t.toString() });
|
|
1500
1516
|
},
|
|
@@ -1502,7 +1518,7 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1502
1518
|
), ae(
|
|
1503
1519
|
() => e.label,
|
|
1504
1520
|
(t) => {
|
|
1505
|
-
|
|
1521
|
+
k.value = t;
|
|
1506
1522
|
}
|
|
1507
1523
|
), ae(
|
|
1508
1524
|
() => e.formModel,
|
|
@@ -1537,12 +1553,12 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1537
1553
|
return {
|
|
1538
1554
|
t: v,
|
|
1539
1555
|
is_show_field: q,
|
|
1540
|
-
is_edit:
|
|
1556
|
+
is_edit: f,
|
|
1541
1557
|
handleToggleEdit: R,
|
|
1542
1558
|
rangeDate: L,
|
|
1543
1559
|
handleAdd: j,
|
|
1544
1560
|
model: n,
|
|
1545
|
-
labelModel:
|
|
1561
|
+
labelModel: k
|
|
1546
1562
|
};
|
|
1547
1563
|
},
|
|
1548
1564
|
components: {
|
|
@@ -1553,8 +1569,8 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1553
1569
|
RemoteTreeSelectPro: nl,
|
|
1554
1570
|
RemoteSelectPro: dl,
|
|
1555
1571
|
RemoteComplete: sl,
|
|
1556
|
-
AttributeTable:
|
|
1557
|
-
AttributeNomTable:
|
|
1572
|
+
AttributeTable: fl,
|
|
1573
|
+
AttributeNomTable: rl,
|
|
1558
1574
|
RemoteFilterSelect: ul,
|
|
1559
1575
|
RemoteModal: ml,
|
|
1560
1576
|
RemoteSelect: pl,
|
|
@@ -1580,20 +1596,20 @@ const ha = {
|
|
|
1580
1596
|
style: { height: "30px", position: "relative" }
|
|
1581
1597
|
}, ba = { style: { position: "absolute", bottom: "0", padding: "0", margin: "0", "font-weight": "bolder", "font-size": "17px" } }, ga = { key: 0 }, wa = { key: 0 }, ka = { key: 0 }, Ca = { key: 0 }, $a = { key: 0 }, Ma = { key: 0 }, Sa = { key: 0 }, Ea = { key: 0 };
|
|
1582
1598
|
function Oa(e, l, H, L, P, q) {
|
|
1583
|
-
var d, s,
|
|
1584
|
-
const
|
|
1599
|
+
var d, s, w, p, r, c, T, A, de, ge, we, Ae, Ke, Ie, Ve, Be, Te;
|
|
1600
|
+
const f = C("a-tag"), R = C("a-rate"), j = C("a-input"), U = C("a-input-number"), n = C("a-select-option"), k = C("a-select"), v = C("a-cascader"), t = C("remote-cascader"), O = C("remote-cascader-pro"), S = C("month-picker"), E = C("a-date-picker"), B = C("a-range-picker"), I = C("month-range-picker"), Y = C("a-time-picker"), ie = C("a-time-range-picker"), $ = C("a-radio"), fe = C("a-radio-group"), g = C("a-checkbox"), a = C("a-checkbox-group"), X = C("a-tree-select"), m = C("remote-filter-select"), le = C("remote-select"), re = C("remote-select-pro"), ne = C("remote-complete"), be = C("remote-tree-select"), _e = C("remote-tree-select-pro"), ve = C("remote-modal"), u = C("remote-table"), b = C("remote-text"), y = C("a-divider");
|
|
1585
1601
|
return o(), F(N, null, [
|
|
1586
1602
|
e.field.type !== "divider" && (((d = e.field) == null ? void 0 : d.is_search_show) !== !1 || e.field_render_show) ? (o(), F(N, { key: 0 }, [
|
|
1587
1603
|
Ze(e.$slots, "default", {}, void 0, !0),
|
|
1588
1604
|
e.field.type === "kong" ? (o(), F("div", ha)) : M("", !0),
|
|
1589
1605
|
e.field.type === "tag" ? (o(), F("div", _a, [
|
|
1590
|
-
e.field.content && e.field.content(e.field, e.model) || e.model ? (o(),
|
|
1606
|
+
e.field.content && e.field.content(e.field, e.model) || e.model ? (o(), _(f, {
|
|
1591
1607
|
key: 0,
|
|
1592
1608
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1593
1609
|
style: D(e.field.style),
|
|
1594
1610
|
onClick: l[0] || (l[0] = (i) => e.field.cb ? e.field.cb(e.field, e.model) : "")
|
|
1595
1611
|
}, {
|
|
1596
|
-
default:
|
|
1612
|
+
default: h(() => [
|
|
1597
1613
|
e.field.content ? (o(), F("span", ya, K(e.field.content(e.field, e.model)), 1)) : (o(), F("span", va, K(e.model), 1))
|
|
1598
1614
|
]),
|
|
1599
1615
|
_: 1
|
|
@@ -1606,7 +1622,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1606
1622
|
e.field.type === "title" ? (o(), F("div", ca, [
|
|
1607
1623
|
G("span", ba, K(e.field.name), 1)
|
|
1608
1624
|
])) : M("", !0),
|
|
1609
|
-
e.field.type === "rate" ? (o(),
|
|
1625
|
+
e.field.type === "rate" ? (o(), _(R, {
|
|
1610
1626
|
key: 4,
|
|
1611
1627
|
value: e.model,
|
|
1612
1628
|
"onUpdate:value": l[1] || (l[1] = (i) => e.model = i),
|
|
@@ -1614,7 +1630,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1614
1630
|
"allow-half": "",
|
|
1615
1631
|
style: D(`width: ${e.field_width}px`)
|
|
1616
1632
|
}, null, 8, ["value", "disabled", "style"])) : M("", !0),
|
|
1617
|
-
e.field.type === "input" ? (o(),
|
|
1633
|
+
e.field.type === "input" ? (o(), _(j, {
|
|
1618
1634
|
key: 5,
|
|
1619
1635
|
value: e.model,
|
|
1620
1636
|
"onUpdate:value": l[2] || (l[2] = (i) => e.model = i),
|
|
@@ -1628,52 +1644,52 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1628
1644
|
size: "small",
|
|
1629
1645
|
style: D(`width: ${e.field_width}px`)
|
|
1630
1646
|
}, je({ _: 2 }, [
|
|
1631
|
-
(s = e.field) != null && s.prefix || (
|
|
1647
|
+
(s = e.field) != null && s.prefix || (w = e.field) != null && w.prefixIcon ? {
|
|
1632
1648
|
name: "prefix",
|
|
1633
|
-
fn:
|
|
1649
|
+
fn: h(() => {
|
|
1634
1650
|
var i, J, Q;
|
|
1635
1651
|
return [
|
|
1636
1652
|
(i = e.field) != null && i.prefix ? (o(), F("span", ga, K(e.field.prefix), 1)) : M("", !0),
|
|
1637
|
-
(J = e.field) != null && J.prefixIcon ? (o(),
|
|
1653
|
+
(J = e.field) != null && J.prefixIcon ? (o(), _(ue((Q = e.field) == null ? void 0 : Q.prefixIcon), { key: 1 })) : M("", !0)
|
|
1638
1654
|
];
|
|
1639
1655
|
}),
|
|
1640
1656
|
key: "0"
|
|
1641
1657
|
} : void 0,
|
|
1642
|
-
(
|
|
1658
|
+
(p = e.field) != null && p.suffix || (r = e.field) != null && r.suffixIcon ? {
|
|
1643
1659
|
name: "suffix",
|
|
1644
|
-
fn:
|
|
1660
|
+
fn: h(() => {
|
|
1645
1661
|
var i, J, Q;
|
|
1646
1662
|
return [
|
|
1647
1663
|
(i = e.field) != null && i.suffix ? (o(), F("span", wa, K(e.field.suffix), 1)) : M("", !0),
|
|
1648
|
-
(J = e.field) != null && J.suffixIcon ? (o(),
|
|
1664
|
+
(J = e.field) != null && J.suffixIcon ? (o(), _(ue((Q = e.field) == null ? void 0 : Q.suffixIcon), { key: 1 })) : M("", !0)
|
|
1649
1665
|
];
|
|
1650
1666
|
}),
|
|
1651
1667
|
key: "1"
|
|
1652
1668
|
} : void 0,
|
|
1653
1669
|
(c = e.field) != null && c.addonBefore || (T = e.field) != null && T.addonBeforeIcon ? {
|
|
1654
1670
|
name: "addonBefore",
|
|
1655
|
-
fn:
|
|
1671
|
+
fn: h(() => {
|
|
1656
1672
|
var i, J, Q;
|
|
1657
1673
|
return [
|
|
1658
1674
|
(i = e.field) != null && i.addonBefore ? (o(), F("span", ka, K(e.field.addonBefore), 1)) : M("", !0),
|
|
1659
|
-
(J = e.field) != null && J.addonBeforeIcon ? (o(),
|
|
1675
|
+
(J = e.field) != null && J.addonBeforeIcon ? (o(), _(ue((Q = e.field) == null ? void 0 : Q.addonBeforeIcon), { key: 1 })) : M("", !0)
|
|
1660
1676
|
];
|
|
1661
1677
|
}),
|
|
1662
1678
|
key: "2"
|
|
1663
1679
|
} : void 0,
|
|
1664
1680
|
(A = e.field) != null && A.addonAfter || (de = e.field) != null && de.addonAfterIcon ? {
|
|
1665
1681
|
name: "addonAfter",
|
|
1666
|
-
fn:
|
|
1682
|
+
fn: h(() => {
|
|
1667
1683
|
var i, J, Q;
|
|
1668
1684
|
return [
|
|
1669
1685
|
(i = e.field) != null && i.addonAfter ? (o(), F("span", Ca, K(e.field.addonAfter), 1)) : M("", !0),
|
|
1670
|
-
(J = e.field) != null && J.addonAfterIcon ? (o(),
|
|
1686
|
+
(J = e.field) != null && J.addonAfterIcon ? (o(), _(ue((Q = e.field) == null ? void 0 : Q.addonAfterIcon), { key: 1 })) : M("", !0)
|
|
1671
1687
|
];
|
|
1672
1688
|
}),
|
|
1673
1689
|
key: "3"
|
|
1674
1690
|
} : void 0
|
|
1675
1691
|
]), 1032, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "maxlength", "placeholder", "type", "style"])) : M("", !0),
|
|
1676
|
-
e.field.type === "money" ? (o(),
|
|
1692
|
+
e.field.type === "money" ? (o(), _(U, {
|
|
1677
1693
|
key: 6,
|
|
1678
1694
|
size: "small",
|
|
1679
1695
|
value: e.model,
|
|
@@ -1689,7 +1705,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1689
1705
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder : e.t(e.field.placeholder_i18n),
|
|
1690
1706
|
style: D(`width: ${e.field_width}px`)
|
|
1691
1707
|
}, null, 8, ["value", "autocomplete", "disabled", "default-value", "min", "max", "formatter", "precision", "step", "placeholder", "style"])) : M("", !0),
|
|
1692
|
-
e.field.type === "number" ? (o(),
|
|
1708
|
+
e.field.type === "number" ? (o(), _(U, {
|
|
1693
1709
|
key: 7,
|
|
1694
1710
|
value: e.model,
|
|
1695
1711
|
"onUpdate:value": l[4] || (l[4] = (i) => e.model = i),
|
|
@@ -1707,51 +1723,51 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1707
1723
|
}, je({ _: 2 }, [
|
|
1708
1724
|
(ge = e.field) != null && ge.prefix || (we = e.field) != null && we.prefixIcon ? {
|
|
1709
1725
|
name: "prefix",
|
|
1710
|
-
fn:
|
|
1726
|
+
fn: h(() => {
|
|
1711
1727
|
var i, J, Q;
|
|
1712
1728
|
return [
|
|
1713
1729
|
(i = e.field) != null && i.prefix ? (o(), F("span", $a, K(e.field.prefix), 1)) : M("", !0),
|
|
1714
|
-
(J = e.field) != null && J.prefixIcon ? (o(),
|
|
1730
|
+
(J = e.field) != null && J.prefixIcon ? (o(), _(ue((Q = e.field) == null ? void 0 : Q.prefixIcon), { key: 1 })) : M("", !0)
|
|
1715
1731
|
];
|
|
1716
1732
|
}),
|
|
1717
1733
|
key: "0"
|
|
1718
1734
|
} : void 0,
|
|
1719
1735
|
(Ae = e.field) != null && Ae.suffix || (Ke = e.field) != null && Ke.suffixIcon ? {
|
|
1720
1736
|
name: "suffix",
|
|
1721
|
-
fn:
|
|
1737
|
+
fn: h(() => {
|
|
1722
1738
|
var i, J, Q;
|
|
1723
1739
|
return [
|
|
1724
1740
|
(i = e.field) != null && i.suffix ? (o(), F("span", Ma, K(e.field.suffix), 1)) : M("", !0),
|
|
1725
|
-
(J = e.field) != null && J.suffixIcon ? (o(),
|
|
1741
|
+
(J = e.field) != null && J.suffixIcon ? (o(), _(ue((Q = e.field) == null ? void 0 : Q.suffixIcon), { key: 1 })) : M("", !0)
|
|
1726
1742
|
];
|
|
1727
1743
|
}),
|
|
1728
1744
|
key: "1"
|
|
1729
1745
|
} : void 0,
|
|
1730
1746
|
(Ie = e.field) != null && Ie.addonBefore || (Ve = e.field) != null && Ve.addonBeforeIcon ? {
|
|
1731
1747
|
name: "addonBefore",
|
|
1732
|
-
fn:
|
|
1748
|
+
fn: h(() => {
|
|
1733
1749
|
var i, J, Q;
|
|
1734
1750
|
return [
|
|
1735
1751
|
(i = e.field) != null && i.addonBefore ? (o(), F("span", Sa, K(e.field.addonBefore), 1)) : M("", !0),
|
|
1736
|
-
(J = e.field) != null && J.addonBeforeIcon ? (o(),
|
|
1752
|
+
(J = e.field) != null && J.addonBeforeIcon ? (o(), _(ue((Q = e.field) == null ? void 0 : Q.addonBeforeIcon), { key: 1 })) : M("", !0)
|
|
1737
1753
|
];
|
|
1738
1754
|
}),
|
|
1739
1755
|
key: "2"
|
|
1740
1756
|
} : void 0,
|
|
1741
1757
|
(Be = e.field) != null && Be.addonAfter || (Te = e.field) != null && Te.addonAfterIcon ? {
|
|
1742
1758
|
name: "addonAfter",
|
|
1743
|
-
fn:
|
|
1759
|
+
fn: h(() => {
|
|
1744
1760
|
var i, J, Q;
|
|
1745
1761
|
return [
|
|
1746
1762
|
(i = e.field) != null && i.addonAfter ? (o(), F("span", Ea, K(e.field.addonAfter), 1)) : M("", !0),
|
|
1747
|
-
(J = e.field) != null && J.addonAfterIcon ? (o(),
|
|
1763
|
+
(J = e.field) != null && J.addonAfterIcon ? (o(), _(ue((Q = e.field) == null ? void 0 : Q.addonAfterIcon), { key: 1 })) : M("", !0)
|
|
1748
1764
|
];
|
|
1749
1765
|
}),
|
|
1750
1766
|
key: "3"
|
|
1751
1767
|
} : void 0
|
|
1752
1768
|
]), 1032, ["value", "autocomplete", "default-value", "disabled", "formatter", "max", "min", "placeholder", "precision", "step", "style"])) : M("", !0),
|
|
1753
1769
|
e.field.type === "select" ? (o(), F(N, { key: 8 }, [
|
|
1754
|
-
e.field.mode === "default" ? (o(),
|
|
1770
|
+
e.field.mode === "default" ? (o(), _(k, {
|
|
1755
1771
|
key: 0,
|
|
1756
1772
|
value: e.model,
|
|
1757
1773
|
"onUpdate:value": l[5] || (l[5] = (i) => e.model = i),
|
|
@@ -1766,19 +1782,19 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1766
1782
|
size: "small",
|
|
1767
1783
|
style: D(`width: ${e.field_width}px`)
|
|
1768
1784
|
}, {
|
|
1769
|
-
default:
|
|
1770
|
-
(o(!0), F(N, null, W(e.options, (i) => (o(),
|
|
1785
|
+
default: h(() => [
|
|
1786
|
+
(o(!0), F(N, null, W(e.options, (i) => (o(), _(n, {
|
|
1771
1787
|
key: i[e.field.valueKey ? e.field.valueKey : "value"],
|
|
1772
1788
|
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1773
1789
|
}, {
|
|
1774
|
-
default:
|
|
1790
|
+
default: h(() => [
|
|
1775
1791
|
x(K(i[e.field.labelKey ? e.field.labelKey : "label"]), 1)
|
|
1776
1792
|
]),
|
|
1777
1793
|
_: 2
|
|
1778
1794
|
}, 1032, ["value"]))), 128))
|
|
1779
1795
|
]),
|
|
1780
1796
|
_: 1
|
|
1781
|
-
}, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "maxTagCount", "placeholder", "show-search", "style"])) : (o(),
|
|
1797
|
+
}, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "maxTagCount", "placeholder", "show-search", "style"])) : (o(), _(k, {
|
|
1782
1798
|
key: 1,
|
|
1783
1799
|
value: e.model,
|
|
1784
1800
|
"onUpdate:value": l[6] || (l[6] = (i) => e.model = i),
|
|
@@ -1793,12 +1809,12 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1793
1809
|
size: "small",
|
|
1794
1810
|
style: D(`width: ${e.field_width}px`)
|
|
1795
1811
|
}, {
|
|
1796
|
-
default:
|
|
1797
|
-
(o(!0), F(N, null, W(e.options, (i, J) => (o(),
|
|
1812
|
+
default: h(() => [
|
|
1813
|
+
(o(!0), F(N, null, W(e.options, (i, J) => (o(), _(n, {
|
|
1798
1814
|
key: J,
|
|
1799
1815
|
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1800
1816
|
}, {
|
|
1801
|
-
default:
|
|
1817
|
+
default: h(() => [
|
|
1802
1818
|
x(K(i[e.field.labelKey ? e.field.labelKey : "label"]), 1)
|
|
1803
1819
|
]),
|
|
1804
1820
|
_: 2
|
|
@@ -1808,7 +1824,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1808
1824
|
}, 8, ["value", "allow-clear", "default-value", "disabled", "maxTagCount", "mode", "placeholder", "show-search", "style"]))
|
|
1809
1825
|
], 64)) : M("", !0),
|
|
1810
1826
|
e.field.type === "groupselect" ? (o(), F(N, { key: 9 }, [
|
|
1811
|
-
e.field.mode === "default" ? (o(),
|
|
1827
|
+
e.field.mode === "default" ? (o(), _(k, {
|
|
1812
1828
|
key: 0,
|
|
1813
1829
|
value: e.model,
|
|
1814
1830
|
"onUpdate:value": l[7] || (l[7] = (i) => e.model = i),
|
|
@@ -1825,7 +1841,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1825
1841
|
"show-search": !!e.field.show_search,
|
|
1826
1842
|
size: "small",
|
|
1827
1843
|
style: D(`width: ${e.field_width}px`)
|
|
1828
|
-
}, null, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "getPopupContainer", "labelInValue", "maxTagCount", "options", "placeholder", "show-search", "style"])) : (o(),
|
|
1844
|
+
}, null, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "getPopupContainer", "labelInValue", "maxTagCount", "options", "placeholder", "show-search", "style"])) : (o(), _(k, {
|
|
1829
1845
|
key: 1,
|
|
1830
1846
|
value: e.model,
|
|
1831
1847
|
"onUpdate:value": l[8] || (l[8] = (i) => e.model = i),
|
|
@@ -1844,7 +1860,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1844
1860
|
style: D(`width: ${e.field_width}px`)
|
|
1845
1861
|
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "getPopupContainer", "labelInValue", "maxTagCount", "mode", "options", "placeholder", "show-search", "style"]))
|
|
1846
1862
|
], 64)) : M("", !0),
|
|
1847
|
-
e.field.type === "cascader" ? (o(),
|
|
1863
|
+
e.field.type === "cascader" ? (o(), _(v, {
|
|
1848
1864
|
key: 10,
|
|
1849
1865
|
value: e.model,
|
|
1850
1866
|
"onUpdate:value": l[9] || (l[9] = (i) => e.model = i),
|
|
@@ -1859,7 +1875,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1859
1875
|
size: "small",
|
|
1860
1876
|
style: D(`width: ${e.field_width}px`)
|
|
1861
1877
|
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "multiple", "show-search", "changeOnSelect", "options", "placeholder", "style"])) : M("", !0),
|
|
1862
|
-
e.field.type === "remotecascader" ? (o(),
|
|
1878
|
+
e.field.type === "remotecascader" ? (o(), _(t, {
|
|
1863
1879
|
key: 11,
|
|
1864
1880
|
value: e.model,
|
|
1865
1881
|
"onUpdate:value": l[10] || (l[10] = (i) => e.model = i),
|
|
@@ -1875,7 +1891,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1875
1891
|
"value-key": e.field.valueKey,
|
|
1876
1892
|
style: D(`width: ${e.field_width}px`)
|
|
1877
1893
|
}, null, 8, ["value", "label", "field", "formModel", "get-data", "label-key", "label-key-list", "label-space", "search_config", "value-key", "style"])) : M("", !0),
|
|
1878
|
-
e.field.type === "remotecascaderpro" ? (o(),
|
|
1894
|
+
e.field.type === "remotecascaderpro" ? (o(), _(O, {
|
|
1879
1895
|
key: 12,
|
|
1880
1896
|
label: e.labelModel,
|
|
1881
1897
|
"onUpdate:label": l[12] || (l[12] = (i) => e.labelModel = i),
|
|
@@ -1902,7 +1918,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1902
1918
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
1903
1919
|
style: D(`width: ${e.field_width}px`)
|
|
1904
1920
|
}, null, 8, ["label", "value", "allow-clear", "default-value", "disabled", "field", "formModel", "outModel", "get-data", "multiple", "maxTagCount", "show_search", "label-key-type", "label-key-list", "label-space", "label-key", "value-key", "init_model", "init_watch", "is_form_design", "placeholder", "style"])) : M("", !0),
|
|
1905
|
-
e.field.type === "monthpicker" ? (o(),
|
|
1921
|
+
e.field.type === "monthpicker" ? (o(), _(S, {
|
|
1906
1922
|
key: 13,
|
|
1907
1923
|
value: e.model,
|
|
1908
1924
|
"onUpdate:value": l[14] || (l[14] = (i) => e.model = i),
|
|
@@ -1919,7 +1935,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1919
1935
|
fix_day: e.field.fix_day,
|
|
1920
1936
|
style: D(`width: ${e.field_width}px`)
|
|
1921
1937
|
}, null, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "placeholder", "is_range", "value_has_time", "start_offset_day", "end_offset_day", "fix_day", "style"])) : M("", !0),
|
|
1922
|
-
e.field.type === "datepicker" ? (o(),
|
|
1938
|
+
e.field.type === "datepicker" ? (o(), _(E, {
|
|
1923
1939
|
key: 14,
|
|
1924
1940
|
value: e.model,
|
|
1925
1941
|
"onUpdate:value": l[15] || (l[15] = (i) => e.model = i),
|
|
@@ -1935,7 +1951,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1935
1951
|
size: "small",
|
|
1936
1952
|
style: D(`width: ${e.field_width}px`)
|
|
1937
1953
|
}, null, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "format", "picker", "placeholder", "show-time", "value-format", "style"])) : M("", !0),
|
|
1938
|
-
e.field.type === "rangepicker" ? (o(),
|
|
1954
|
+
e.field.type === "rangepicker" ? (o(), _(B, {
|
|
1939
1955
|
key: 15,
|
|
1940
1956
|
value: e.model,
|
|
1941
1957
|
"onUpdate:value": l[16] || (l[16] = (i) => e.model = i),
|
|
@@ -1950,7 +1966,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1950
1966
|
size: "small",
|
|
1951
1967
|
style: D(`width: ${e.field_width}px`)
|
|
1952
1968
|
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "format", "placeholder", "show-time", "value-format", "picker", "style"])) : M("", !0),
|
|
1953
|
-
e.field.type === "monthrangepicker" ? (o(),
|
|
1969
|
+
e.field.type === "monthrangepicker" ? (o(), _(I, {
|
|
1954
1970
|
key: 16,
|
|
1955
1971
|
value: e.model,
|
|
1956
1972
|
"onUpdate:value": l[17] || (l[17] = (i) => e.model = i),
|
|
@@ -1966,7 +1982,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1966
1982
|
fix_day: e.field.fix_day,
|
|
1967
1983
|
style: D(`width: ${e.field_width}px`)
|
|
1968
1984
|
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "placeholder", "is_range", "value_has_time", "start_offset_day", "end_offset_day", "fix_day", "style"])) : M("", !0),
|
|
1969
|
-
e.field.type === "timepicker" ? (o(),
|
|
1985
|
+
e.field.type === "timepicker" ? (o(), _(Y, {
|
|
1970
1986
|
key: 17,
|
|
1971
1987
|
value: e.model,
|
|
1972
1988
|
"onUpdate:value": l[18] || (l[18] = (i) => e.model = i),
|
|
@@ -1979,7 +1995,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1979
1995
|
size: "small",
|
|
1980
1996
|
style: D(`width: ${e.field_width}px`)
|
|
1981
1997
|
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "format", "placeholder", "value-format", "style"])) : M("", !0),
|
|
1982
|
-
e.field.type === "timerangepicker" ? (o(),
|
|
1998
|
+
e.field.type === "timerangepicker" ? (o(), _(ie, {
|
|
1983
1999
|
key: 18,
|
|
1984
2000
|
value: e.model,
|
|
1985
2001
|
"onUpdate:value": l[19] || (l[19] = (i) => e.model = i),
|
|
@@ -1992,7 +2008,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1992
2008
|
size: "small",
|
|
1993
2009
|
style: D(`width: ${e.field_width}px`)
|
|
1994
2010
|
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "format", "placeholder", "value-format", "style"])) : M("", !0),
|
|
1995
|
-
e.field.type === "radio" ? (o(),
|
|
2011
|
+
e.field.type === "radio" ? (o(), _(fe, {
|
|
1996
2012
|
key: 19,
|
|
1997
2013
|
value: e.model,
|
|
1998
2014
|
"onUpdate:value": l[20] || (l[20] = (i) => e.model = i),
|
|
@@ -2001,13 +2017,13 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2001
2017
|
size: "small",
|
|
2002
2018
|
style: D(`width: ${e.field_width}px`)
|
|
2003
2019
|
}, {
|
|
2004
|
-
default:
|
|
2005
|
-
(o(!0), F(N, null, W(e.options, (i) => (o(),
|
|
2020
|
+
default: h(() => [
|
|
2021
|
+
(o(!0), F(N, null, W(e.options, (i) => (o(), _($, {
|
|
2006
2022
|
key: i[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2007
2023
|
disabled: i.disabled,
|
|
2008
2024
|
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2009
2025
|
}, {
|
|
2010
|
-
default:
|
|
2026
|
+
default: h(() => [
|
|
2011
2027
|
x(K(i[e.field.labelKey ? e.field.labelKey : "label"]), 1)
|
|
2012
2028
|
]),
|
|
2013
2029
|
_: 2
|
|
@@ -2015,7 +2031,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2015
2031
|
]),
|
|
2016
2032
|
_: 1
|
|
2017
2033
|
}, 8, ["value", "default-value", "disabled", "style"])) : M("", !0),
|
|
2018
|
-
e.field.type === "checkbox" ? (o(),
|
|
2034
|
+
e.field.type === "checkbox" ? (o(), _(a, {
|
|
2019
2035
|
key: 20,
|
|
2020
2036
|
value: e.model,
|
|
2021
2037
|
"onUpdate:value": l[21] || (l[21] = (i) => e.model = i),
|
|
@@ -2024,13 +2040,13 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2024
2040
|
size: "small",
|
|
2025
2041
|
style: D(`width: ${e.field_width}px`)
|
|
2026
2042
|
}, {
|
|
2027
|
-
default:
|
|
2028
|
-
(o(!0), F(N, null, W(e.options, (i) => (o(),
|
|
2043
|
+
default: h(() => [
|
|
2044
|
+
(o(!0), F(N, null, W(e.options, (i) => (o(), _(g, {
|
|
2029
2045
|
key: i[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2030
2046
|
disabled: i.disabled,
|
|
2031
2047
|
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2032
2048
|
}, {
|
|
2033
|
-
default:
|
|
2049
|
+
default: h(() => [
|
|
2034
2050
|
x(K(i[e.field.labelKey ? e.field.labelKey : "label"]), 1)
|
|
2035
2051
|
]),
|
|
2036
2052
|
_: 2
|
|
@@ -2038,7 +2054,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2038
2054
|
]),
|
|
2039
2055
|
_: 1
|
|
2040
2056
|
}, 8, ["value", "default-value", "disabled", "style"])) : M("", !0),
|
|
2041
|
-
e.field.type === "treeselect" ? (o(),
|
|
2057
|
+
e.field.type === "treeselect" ? (o(), _(X, {
|
|
2042
2058
|
key: 21,
|
|
2043
2059
|
value: e.model,
|
|
2044
2060
|
"onUpdate:value": l[22] || (l[22] = (i) => e.model = i),
|
|
@@ -2055,7 +2071,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2055
2071
|
size: "small",
|
|
2056
2072
|
style: D(`width: ${e.field_width}px`)
|
|
2057
2073
|
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "placeholder", "multiple", "tree-checkable", "tree-data", "tree-label-prop", "tree-node-filter-prop", "style"])) : M("", !0),
|
|
2058
|
-
e.field.type === "remotefilterselect" ? (o(),
|
|
2074
|
+
e.field.type === "remotefilterselect" ? (o(), _(m, {
|
|
2059
2075
|
key: 22,
|
|
2060
2076
|
label: e.labelModel,
|
|
2061
2077
|
"onUpdate:label": l[23] || (l[23] = (i) => e.labelModel = i),
|
|
@@ -2072,7 +2088,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2072
2088
|
"value-key": e.field.valueKey,
|
|
2073
2089
|
style: D(`width: ${e.field_width}px`)
|
|
2074
2090
|
}, null, 8, ["label", "value", "field", "formModel", "get-data", "init_model", "label-key", "label-key-list", "label-space", "search_config", "value-key", "style"])) : M("", !0),
|
|
2075
|
-
e.field.type === "remoteselect" ? (o(),
|
|
2091
|
+
e.field.type === "remoteselect" ? (o(), _(le, {
|
|
2076
2092
|
key: 23,
|
|
2077
2093
|
label: e.labelModel,
|
|
2078
2094
|
"onUpdate:label": l[25] || (l[25] = (i) => e.labelModel = i),
|
|
@@ -2089,7 +2105,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2089
2105
|
"value-key": e.field.valueKey,
|
|
2090
2106
|
style: D(`width: ${e.field_width}px`)
|
|
2091
2107
|
}, null, 8, ["label", "value", "field", "formModel", "get-data", "init_model", "label-key", "label-key-list", "label-space", "search_config", "value-key", "style"])) : M("", !0),
|
|
2092
|
-
e.field.type === "remoteselectpro" ? (o(),
|
|
2108
|
+
e.field.type === "remoteselectpro" ? (o(), _(re, {
|
|
2093
2109
|
key: 24,
|
|
2094
2110
|
label: e.labelModel,
|
|
2095
2111
|
"onUpdate:label": l[27] || (l[27] = (i) => e.labelModel = i),
|
|
@@ -2112,7 +2128,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2112
2128
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
2113
2129
|
style: D(`width: ${e.field_width}px`)
|
|
2114
2130
|
}, null, 8, ["label", "value", "field", "formModel", "outModel", "get-data", "init_model", "init_watch", "label-key", "label-key-type", "label-key-list", "label-space", "search_config", "value-key", "is_input", "is_form_design", "placeholder", "style"])) : M("", !0),
|
|
2115
|
-
e.field.type === "remotecomplete" ? (o(),
|
|
2131
|
+
e.field.type === "remotecomplete" ? (o(), _(ne, {
|
|
2116
2132
|
key: 25,
|
|
2117
2133
|
value: e.model,
|
|
2118
2134
|
"onUpdate:value": l[29] || (l[29] = (i) => e.model = i),
|
|
@@ -2134,7 +2150,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2134
2150
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
2135
2151
|
style: D(`width: ${e.field_width}px`)
|
|
2136
2152
|
}, null, 8, ["value", "field", "formModel", "outModel", "get-data", "init_model", "init_watch", "label-key", "label-key-type", "label-key-list", "label-space", "search_config", "value-key", "maxlength", "is_input", "is_form_design", "placeholder", "style"])) : M("", !0),
|
|
2137
|
-
e.field.type === "remotetreeselect" ? (o(),
|
|
2153
|
+
e.field.type === "remotetreeselect" ? (o(), _(be, {
|
|
2138
2154
|
key: 26,
|
|
2139
2155
|
label: e.labelModel,
|
|
2140
2156
|
"onUpdate:label": l[30] || (l[30] = (i) => e.labelModel = i),
|
|
@@ -2151,7 +2167,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2151
2167
|
"value-key": e.field.valueKey,
|
|
2152
2168
|
style: D(`width: ${e.field_width}px`)
|
|
2153
2169
|
}, null, 8, ["label", "value", "allow-clear", "default-value", "disabled", "field", "formModel", "get-data", "label-key", "search_config", "value-key", "style"])) : M("", !0),
|
|
2154
|
-
e.field.type === "remotetreeselectpro" ? (o(),
|
|
2170
|
+
e.field.type === "remotetreeselectpro" ? (o(), _(_e, {
|
|
2155
2171
|
key: 27,
|
|
2156
2172
|
label: e.labelModel,
|
|
2157
2173
|
"onUpdate:label": l[32] || (l[32] = (i) => e.labelModel = i),
|
|
@@ -2177,7 +2193,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2177
2193
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
2178
2194
|
style: D(`width: ${e.field_width}px`)
|
|
2179
2195
|
}, null, 8, ["label", "value", "allow-clear", "default-value", "disabled", "field", "formModel", "outModel", "get-data", "multiple", "search_config", "label-key-type", "label-key-list", "label-space", "label-key", "value-key", "init_model", "init_watch", "is_form_design", "placeholder", "style"])) : M("", !0),
|
|
2180
|
-
e.field.type === "remotemodal" ? (o(),
|
|
2196
|
+
e.field.type === "remotemodal" ? (o(), _(ve, {
|
|
2181
2197
|
key: 28,
|
|
2182
2198
|
label: e.labelModel,
|
|
2183
2199
|
"onUpdate:label": l[34] || (l[34] = (i) => e.labelModel = i),
|
|
@@ -2193,7 +2209,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2193
2209
|
watch: e.field.watch,
|
|
2194
2210
|
style: D(`width: ${e.field_width}px`)
|
|
2195
2211
|
}, null, 8, ["label", "value", "columns", "field", "field_status", "get-data", "init_model", "modalType", "search_config", "watch", "style"])) : M("", !0),
|
|
2196
|
-
e.field.type === "remotetable" ? (o(),
|
|
2212
|
+
e.field.type === "remotetable" ? (o(), _(u, {
|
|
2197
2213
|
key: 29,
|
|
2198
2214
|
value: e.model,
|
|
2199
2215
|
"onUpdate:value": l[36] || (l[36] = (i) => e.model = i),
|
|
@@ -2208,7 +2224,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2208
2224
|
watch: e.field.watch,
|
|
2209
2225
|
style: D(`width: ${e.field_width}px`)
|
|
2210
2226
|
}, null, 8, ["value", "columns", "formModel", "field", "field_status", "get-data", "init_model", "modalType", "search_config", "watch", "style"])) : M("", !0),
|
|
2211
|
-
e.field.type === "remotetext" ? (o(),
|
|
2227
|
+
e.field.type === "remotetext" ? (o(), _(b, {
|
|
2212
2228
|
key: 30,
|
|
2213
2229
|
value: e.model,
|
|
2214
2230
|
"onUpdate:value": l[37] || (l[37] = (i) => e.model = i),
|
|
@@ -2221,7 +2237,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2221
2237
|
search_config: e.field.search_config,
|
|
2222
2238
|
watch: e.field.watch
|
|
2223
2239
|
}, null, 8, ["value", "columns", "formModel", "field", "get-data", "init_model", "modalType", "search_config", "watch"])) : M("", !0),
|
|
2224
|
-
e.field.type === "rate" ? (o(),
|
|
2240
|
+
e.field.type === "rate" ? (o(), _(R, {
|
|
2225
2241
|
key: 31,
|
|
2226
2242
|
value: e.model,
|
|
2227
2243
|
"onUpdate:value": l[38] || (l[38] = (i) => e.model = i),
|
|
@@ -2229,7 +2245,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2229
2245
|
"allow-half": e.field.allowHalf,
|
|
2230
2246
|
style: D(`width: ${e.field_width}px`)
|
|
2231
2247
|
}, null, 8, ["value", "count", "allow-half", "style"])) : M("", !0),
|
|
2232
|
-
e.field.type === "radio-color" ? (o(),
|
|
2248
|
+
e.field.type === "radio-color" ? (o(), _(fe, {
|
|
2233
2249
|
key: 32,
|
|
2234
2250
|
value: e.model,
|
|
2235
2251
|
"onUpdate:value": l[39] || (l[39] = (i) => e.model = i),
|
|
@@ -2238,13 +2254,13 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2238
2254
|
size: "small",
|
|
2239
2255
|
style: D(`width: ${e.field_width}px`)
|
|
2240
2256
|
}, {
|
|
2241
|
-
default:
|
|
2242
|
-
(o(!0), F(N, null, W(e.options, (i) => (o(),
|
|
2257
|
+
default: h(() => [
|
|
2258
|
+
(o(!0), F(N, null, W(e.options, (i) => (o(), _($, {
|
|
2243
2259
|
key: i[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2244
2260
|
disabled: i.disabled,
|
|
2245
2261
|
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2246
2262
|
}, {
|
|
2247
|
-
default:
|
|
2263
|
+
default: h(() => [
|
|
2248
2264
|
G("div", {
|
|
2249
2265
|
style: D({
|
|
2250
2266
|
width: "20px",
|
|
@@ -2259,11 +2275,11 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2259
2275
|
_: 1
|
|
2260
2276
|
}, 8, ["value", "default-value", "disabled", "style"])) : M("", !0)
|
|
2261
2277
|
], 64)) : M("", !0),
|
|
2262
|
-
e.field.type === "divider" ? (o(), y
|
|
2278
|
+
e.field.type === "divider" ? (o(), _(y, {
|
|
2263
2279
|
key: 1,
|
|
2264
2280
|
orientation: e.field.orientation
|
|
2265
2281
|
}, {
|
|
2266
|
-
default:
|
|
2282
|
+
default: h(() => [
|
|
2267
2283
|
x(K(e.field.label), 1)
|
|
2268
2284
|
]),
|
|
2269
2285
|
_: 1
|
|
@@ -2347,34 +2363,34 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2347
2363
|
},
|
|
2348
2364
|
emits: ["change"],
|
|
2349
2365
|
setup(e, { emit: l }) {
|
|
2350
|
-
const H = Vl(), L = Bl(), P = Tl(), q = jl(),
|
|
2351
|
-
let
|
|
2366
|
+
const H = Vl(), L = Bl(), P = Tl(), q = jl(), f = P.currentOrg, R = P.userid, j = ee(P.CHECK_AUTH(Ia)), U = ee([]), { t: n } = Ue();
|
|
2367
|
+
let k, v;
|
|
2352
2368
|
const t = Ee(() => {
|
|
2353
|
-
const u = U.value.filter((
|
|
2369
|
+
const u = U.value.filter((y) => !!y.user_id && y.is_system).map((y) => y).sort((y, d) => y.sort == d.sort ? y.id - d.id : y.sort - d.sort), b = U.value.filter((y) => !!y.user_id && !y.is_system).map((y) => y).sort((y, d) => y.sort == d.sort ? y.id - d.id : y.sort - d.sort);
|
|
2354
2370
|
return u.concat(b);
|
|
2355
2371
|
}), O = Ee(() => {
|
|
2356
|
-
const u = U.value.filter((
|
|
2372
|
+
const u = U.value.filter((y) => !y.user_id && y.is_system).map((y) => y).sort((y, d) => y.sort == d.sort ? y.id - d.id : y.sort - d.sort), b = U.value.filter((y) => !y.user_id && !y.is_system).map((y) => y).sort((y, d) => y.sort == d.sort ? y.id - d.id : y.sort - d.sort);
|
|
2357
2373
|
return u.concat(b);
|
|
2358
2374
|
}), S = Ee(() => U.value.map((u) => u.name)), E = async ({
|
|
2359
2375
|
id: u,
|
|
2360
2376
|
search_model: b,
|
|
2361
|
-
filter_map:
|
|
2377
|
+
filter_map: y,
|
|
2362
2378
|
sort_fields: d,
|
|
2363
2379
|
group_condition: s,
|
|
2364
|
-
conditions:
|
|
2365
|
-
isShowGeneralFilter:
|
|
2366
|
-
}) => new Promise((
|
|
2367
|
-
!e.countData && !(
|
|
2380
|
+
conditions: w,
|
|
2381
|
+
isShowGeneralFilter: p
|
|
2382
|
+
}) => new Promise((r) => {
|
|
2383
|
+
!e.countData && !(k != null && k.countData) && (console.error("无count接口"), r(null));
|
|
2368
2384
|
const c = {
|
|
2369
|
-
org_id:
|
|
2385
|
+
org_id: f.id,
|
|
2370
2386
|
...b,
|
|
2371
|
-
...
|
|
2387
|
+
...y,
|
|
2372
2388
|
sort_fields: d
|
|
2373
2389
|
};
|
|
2374
|
-
|
|
2390
|
+
p && (c.group_condition = s, c.conditions = w), c.required_condition = be(), ql(c, k != null && k.countData ? k.countData : e.countData).then((T) => {
|
|
2375
2391
|
U.value.forEach((A) => {
|
|
2376
2392
|
A.id == u && (A.num = T);
|
|
2377
|
-
}),
|
|
2393
|
+
}), r(null);
|
|
2378
2394
|
}).catch((T) => {
|
|
2379
2395
|
console.log("error", T), te.error(n("获取数据失败, 请刷新页面"));
|
|
2380
2396
|
});
|
|
@@ -2382,19 +2398,19 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2382
2398
|
for (const b of u)
|
|
2383
2399
|
try {
|
|
2384
2400
|
await E(b);
|
|
2385
|
-
} catch (
|
|
2386
|
-
console.log("error",
|
|
2401
|
+
} catch (y) {
|
|
2402
|
+
console.log("error", y), te.error(n("获取数据失败, 请刷新页面"));
|
|
2387
2403
|
}
|
|
2388
2404
|
}, I = () => {
|
|
2389
2405
|
Dl({
|
|
2390
|
-
org_id:
|
|
2406
|
+
org_id: f.id,
|
|
2391
2407
|
user_id: R,
|
|
2392
2408
|
app_flag: e.app_flag,
|
|
2393
2409
|
modalType: e.modalType,
|
|
2394
2410
|
sort_fields: ["sort", "create_time"],
|
|
2395
2411
|
is_cache: !1
|
|
2396
2412
|
}).then((u) => {
|
|
2397
|
-
if (
|
|
2413
|
+
if (k = Oe(
|
|
2398
2414
|
e.app_flag,
|
|
2399
2415
|
e.modalType,
|
|
2400
2416
|
u.defaultAndServerConfig,
|
|
@@ -2404,45 +2420,45 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2404
2420
|
to_i18n: !0,
|
|
2405
2421
|
enable_btn: !1
|
|
2406
2422
|
}
|
|
2407
|
-
), v = u.defaultAndServerConfig, (
|
|
2423
|
+
), v = u.defaultAndServerConfig, (k == null ? void 0 : k.isView) === !1) {
|
|
2408
2424
|
window.location.hash = "", l("change", v, {}, !0, !0);
|
|
2409
2425
|
return;
|
|
2410
2426
|
}
|
|
2411
2427
|
L.set_required_condition(
|
|
2412
2428
|
e.modalType,
|
|
2413
|
-
|
|
2429
|
+
k.required_condition
|
|
2414
2430
|
), U.value.length = 0;
|
|
2415
2431
|
let b = [];
|
|
2416
|
-
const
|
|
2432
|
+
const y = [];
|
|
2417
2433
|
u && u.system_user_datas && u.system_user_datas.length > 0 && (b = b.concat(u.system_user_datas)), u && u.system_public_datas && u.system_public_datas.length > 0 && (b = b.concat(u.system_public_datas)), u && u.public_datas && u.public_datas.length > 0 && (b = b.concat(u.public_datas)), u && u.user_datas && u.user_datas.length > 0 && (b = b.concat(u.user_datas)), b.forEach((d) => {
|
|
2418
|
-
let s = null,
|
|
2419
|
-
d.data.isShowGeneralFilter ? (s = {},
|
|
2434
|
+
let s = null, w = null, p = null, r = null;
|
|
2435
|
+
d.data.isShowGeneralFilter ? (s = {}, w = {}, p = d.data.group_condition, r = d.data.conditions) : (s = d.data.search_model, w = d.data.filter_map, p = {}, r = []), U.value.push({
|
|
2420
2436
|
...d,
|
|
2421
2437
|
search_model: s,
|
|
2422
|
-
filter_map:
|
|
2438
|
+
filter_map: w,
|
|
2423
2439
|
sort_fields: d.data.sort_fields,
|
|
2424
|
-
group_condition:
|
|
2425
|
-
conditions:
|
|
2426
|
-
}),
|
|
2440
|
+
group_condition: p,
|
|
2441
|
+
conditions: r
|
|
2442
|
+
}), y.push({
|
|
2427
2443
|
id: d.id,
|
|
2428
2444
|
isShowGeneralFilter: d.data.isShowGeneralFilter,
|
|
2429
2445
|
search_model: s,
|
|
2430
|
-
filter_map:
|
|
2446
|
+
filter_map: w,
|
|
2431
2447
|
sort_fields: d.data.sort_fields,
|
|
2432
|
-
group_condition:
|
|
2433
|
-
conditions:
|
|
2448
|
+
group_condition: p,
|
|
2449
|
+
conditions: r
|
|
2434
2450
|
});
|
|
2435
|
-
}),
|
|
2451
|
+
}), y.length > 0 && B(y), Y(null);
|
|
2436
2452
|
}).catch((u) => {
|
|
2437
2453
|
console.log("err", u), te.error(n("获取视图失败, 请刷新页面"));
|
|
2438
2454
|
});
|
|
2439
2455
|
}, Y = (u) => {
|
|
2440
|
-
var
|
|
2456
|
+
var y;
|
|
2441
2457
|
let b = null;
|
|
2442
2458
|
if (u ? b = u : window.location.hash && (b = window.location.hash.substring(1)), b) {
|
|
2443
2459
|
const d = U.value.filter((s) => s.uid == b);
|
|
2444
2460
|
d && d.length > 0 ? l("change", v, { ...d[0], ...d[0].data }, !0, !0) : Ka({
|
|
2445
|
-
org_id:
|
|
2461
|
+
org_id: f.id,
|
|
2446
2462
|
conditions: [
|
|
2447
2463
|
[
|
|
2448
2464
|
{
|
|
@@ -2481,18 +2497,18 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2481
2497
|
!1
|
|
2482
2498
|
);
|
|
2483
2499
|
else {
|
|
2484
|
-
const
|
|
2485
|
-
if (
|
|
2486
|
-
window.location.hash =
|
|
2500
|
+
const w = U.value.filter((r) => !r.user_id && r.is_default);
|
|
2501
|
+
if (w && w.length > 0) {
|
|
2502
|
+
window.location.hash = w[0].uid, l("change", v, { ...w[0], ...w[0].data }, !0, !0);
|
|
2487
2503
|
return;
|
|
2488
2504
|
}
|
|
2489
|
-
let
|
|
2490
|
-
if (
|
|
2491
|
-
window.location.hash =
|
|
2492
|
-
else if (
|
|
2493
|
-
window.location.hash =
|
|
2505
|
+
let p = U.value.sort((r, c) => r.sort == c.sort ? r.id - c.id : r.sort - c.sort).find((r) => !r.user_id);
|
|
2506
|
+
if (p && p.uid)
|
|
2507
|
+
window.location.hash = p.uid, l("change", v, { ...p, ...p.data }, !0, !0);
|
|
2508
|
+
else if (p = U.value.sort((r, c) => r.sort == c.sort ? r.id - c.id : r.sort - c.sort).find((r) => r.user_id), p && p.uid)
|
|
2509
|
+
window.location.hash = p.uid, l("change", v, { ...p, ...p.data }, !0, !0);
|
|
2494
2510
|
else {
|
|
2495
|
-
const
|
|
2511
|
+
const r = {
|
|
2496
2512
|
uid: null,
|
|
2497
2513
|
view_menu__flag: e.menu_flag,
|
|
2498
2514
|
column: {},
|
|
@@ -2502,43 +2518,43 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2502
2518
|
filtered_value: {},
|
|
2503
2519
|
sort_orders: []
|
|
2504
2520
|
};
|
|
2505
|
-
l("change", v,
|
|
2521
|
+
l("change", v, r, !0, !1), window.location.hash = "";
|
|
2506
2522
|
}
|
|
2507
2523
|
}
|
|
2508
2524
|
});
|
|
2509
2525
|
} else {
|
|
2510
2526
|
let d = "";
|
|
2511
|
-
if (ze().get(Ye) && (d = (
|
|
2527
|
+
if (ze().get(Ye) && (d = (y = ze().get(Ye)) == null ? void 0 : y[e.menu_flag]), d)
|
|
2512
2528
|
window.location.hash = d, Y(d);
|
|
2513
2529
|
else {
|
|
2514
2530
|
const s = U.value.filter(
|
|
2515
|
-
(
|
|
2531
|
+
(r) => !r.user_id && r.is_default && !r.is_system
|
|
2516
2532
|
);
|
|
2517
2533
|
if (s && s.length > 0) {
|
|
2518
2534
|
window.location.hash = s[0].uid, l("change", v, { ...s[0], ...s[0].data }, !0, !0);
|
|
2519
2535
|
return;
|
|
2520
2536
|
}
|
|
2521
|
-
const
|
|
2522
|
-
(
|
|
2537
|
+
const w = U.value.filter(
|
|
2538
|
+
(r) => !r.user_id && r.is_default && r.is_system
|
|
2523
2539
|
);
|
|
2524
|
-
if (
|
|
2525
|
-
window.location.hash =
|
|
2540
|
+
if (w && w.length > 0) {
|
|
2541
|
+
window.location.hash = w[0].uid, l(
|
|
2526
2542
|
"change",
|
|
2527
2543
|
v,
|
|
2528
|
-
{ ...
|
|
2544
|
+
{ ...w[0], ...w[0].data },
|
|
2529
2545
|
!0,
|
|
2530
2546
|
!0
|
|
2531
2547
|
);
|
|
2532
2548
|
return;
|
|
2533
2549
|
}
|
|
2534
|
-
let
|
|
2535
|
-
if (
|
|
2536
|
-
window.location.hash =
|
|
2537
|
-
else if (
|
|
2538
|
-
window.location.hash =
|
|
2550
|
+
let p = U.value.sort((r, c) => r.sort == c.sort ? r.id - c.id : r.sort - c.sort).find((r) => !r.user_id);
|
|
2551
|
+
if (p && p.uid)
|
|
2552
|
+
window.location.hash = p.uid, l("change", v, { ...p, ...p.data }, !0, !0);
|
|
2553
|
+
else if (p = U.value.sort((r, c) => r.sort == c.sort ? r.id - c.id : r.sort - c.sort).find((r) => r.user_id), p && p.uid)
|
|
2554
|
+
window.location.hash = p.uid, l("change", v, { ...p, ...p.data }, !0, !0);
|
|
2539
2555
|
else {
|
|
2540
2556
|
window.location.hash = "";
|
|
2541
|
-
const
|
|
2557
|
+
const r = {
|
|
2542
2558
|
uid: null,
|
|
2543
2559
|
view_menu__flag: e.menu_flag,
|
|
2544
2560
|
column: {},
|
|
@@ -2548,25 +2564,25 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2548
2564
|
filtered_value: {},
|
|
2549
2565
|
sort_orders: []
|
|
2550
2566
|
};
|
|
2551
|
-
l("change", v,
|
|
2567
|
+
l("change", v, r, !0, !1);
|
|
2552
2568
|
}
|
|
2553
2569
|
}
|
|
2554
2570
|
}
|
|
2555
2571
|
};
|
|
2556
2572
|
I();
|
|
2557
|
-
const ie = ee(["1", "2"]), $ = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;",
|
|
2573
|
+
const ie = ee(["1", "2"]), $ = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;", fe = (u) => e.currentViewObj && u && u.id === e.currentViewObj.id ? { style: { backgroundColor: "#ddf1ff" } } : { style: {} }, g = (u) => {
|
|
2558
2574
|
window.location.hash = u.uid, Y(u.uid), _e([u]);
|
|
2559
2575
|
}, a = ({ updateView: u, record: b }) => {
|
|
2560
|
-
var
|
|
2576
|
+
var y, d, s, w;
|
|
2561
2577
|
if (b.name != u.name && S.value.includes(u.name)) {
|
|
2562
2578
|
te.error(n("视图名称已存在"));
|
|
2563
2579
|
return;
|
|
2564
2580
|
}
|
|
2565
2581
|
if (b != null && b.id) {
|
|
2566
|
-
const
|
|
2567
|
-
if ((
|
|
2568
|
-
const
|
|
2569
|
-
...
|
|
2582
|
+
const p = U.value.filter((r) => (b == null ? void 0 : b.id) == r.id);
|
|
2583
|
+
if ((y = u.is_submit) != null && y[0]) {
|
|
2584
|
+
const r = {
|
|
2585
|
+
...p[0].data,
|
|
2570
2586
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
2571
2587
|
filter_map: e.currentViewObj.filter_map,
|
|
2572
2588
|
sort_fields: e.currentViewObj.sort_fields,
|
|
@@ -2579,20 +2595,20 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2579
2595
|
group_record: e.currentViewObj.group_record,
|
|
2580
2596
|
default_search_condition_config_list: e.currentViewObj.default_search_condition_config_list
|
|
2581
2597
|
};
|
|
2582
|
-
delete
|
|
2583
|
-
org_id:
|
|
2598
|
+
delete r.is_system, Pe({
|
|
2599
|
+
org_id: f.id,
|
|
2584
2600
|
view_settings_id: b == null ? void 0 : b.id,
|
|
2585
2601
|
is_system: (d = u.is_system) == null ? void 0 : d[0],
|
|
2586
2602
|
name: u.name,
|
|
2587
|
-
data: JSON.stringify(
|
|
2603
|
+
data: JSON.stringify(r)
|
|
2588
2604
|
}).then((c) => {
|
|
2589
2605
|
var T;
|
|
2590
2606
|
(T = u.is_default) != null && T[0] ? Le({
|
|
2591
|
-
org_id:
|
|
2607
|
+
org_id: f.id,
|
|
2592
2608
|
view_settings_id: b == null ? void 0 : b.id
|
|
2593
2609
|
}).then(() => {
|
|
2594
2610
|
Se({
|
|
2595
|
-
org_id:
|
|
2611
|
+
org_id: f.id,
|
|
2596
2612
|
view_settings_id: b == null ? void 0 : b.id
|
|
2597
2613
|
}).then(() => {
|
|
2598
2614
|
var A;
|
|
@@ -2601,7 +2617,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2601
2617
|
}), I();
|
|
2602
2618
|
});
|
|
2603
2619
|
}) : Se({
|
|
2604
|
-
org_id:
|
|
2620
|
+
org_id: f.id,
|
|
2605
2621
|
view_settings_id: b == null ? void 0 : b.id
|
|
2606
2622
|
}).then(() => {
|
|
2607
2623
|
var A;
|
|
@@ -2612,38 +2628,38 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2612
2628
|
});
|
|
2613
2629
|
} else
|
|
2614
2630
|
Pe({
|
|
2615
|
-
org_id:
|
|
2631
|
+
org_id: f.id,
|
|
2616
2632
|
view_settings_id: b == null ? void 0 : b.id,
|
|
2617
2633
|
is_system: (s = u.is_system) == null ? void 0 : s[0],
|
|
2618
2634
|
name: u.name
|
|
2619
|
-
}).then((
|
|
2635
|
+
}).then((r) => {
|
|
2620
2636
|
var c;
|
|
2621
2637
|
(c = u.is_default) != null && c[0] ? Le({
|
|
2622
|
-
org_id:
|
|
2638
|
+
org_id: f.id,
|
|
2623
2639
|
view_settings_id: b == null ? void 0 : b.id
|
|
2624
2640
|
}).then(() => {
|
|
2625
2641
|
Se({
|
|
2626
|
-
org_id:
|
|
2642
|
+
org_id: f.id,
|
|
2627
2643
|
view_settings_id: b == null ? void 0 : b.id
|
|
2628
2644
|
}).then(() => {
|
|
2629
2645
|
var T;
|
|
2630
|
-
te.success(n("保存成功")),
|
|
2631
|
-
A.id ==
|
|
2646
|
+
te.success(n("保存成功")), r.id == ((T = e.currentViewObj) == null ? void 0 : T.id) ? l("change", v, { ...r, ...r.data }, !1, !0) : U.value.forEach((A) => {
|
|
2647
|
+
A.id == r.id && Object.assign(A, { ...r, ...r.data });
|
|
2632
2648
|
}), I();
|
|
2633
2649
|
});
|
|
2634
2650
|
}) : Se({
|
|
2635
|
-
org_id:
|
|
2651
|
+
org_id: f.id,
|
|
2636
2652
|
view_settings_id: b == null ? void 0 : b.id
|
|
2637
2653
|
}).then(() => {
|
|
2638
2654
|
var T;
|
|
2639
|
-
te.success(n("保存成功")),
|
|
2640
|
-
A.id ==
|
|
2655
|
+
te.success(n("保存成功")), r.id == ((T = e.currentViewObj) == null ? void 0 : T.id) ? l("change", v, { ...r, ...r.data }, !1, !0) : U.value.forEach((A) => {
|
|
2656
|
+
A.id == r.id && Object.assign(A, { ...r, ...r.data });
|
|
2641
2657
|
}), I();
|
|
2642
2658
|
});
|
|
2643
2659
|
});
|
|
2644
2660
|
} else {
|
|
2645
|
-
let
|
|
2646
|
-
(
|
|
2661
|
+
let p = {};
|
|
2662
|
+
(w = u.is_submit) != null && w[0] ? (p = {
|
|
2647
2663
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
2648
2664
|
filter_map: e.currentViewObj.filter_map,
|
|
2649
2665
|
sort_fields: e.currentViewObj.sort_fields,
|
|
@@ -2655,7 +2671,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2655
2671
|
group_condition: e.currentViewObj.group_condition,
|
|
2656
2672
|
group_record: e.currentViewObj.group_record,
|
|
2657
2673
|
default_search_condition_config_list: e.currentViewObj.default_search_condition_config_list
|
|
2658
|
-
}, delete
|
|
2674
|
+
}, delete p.is_system) : p = {
|
|
2659
2675
|
column: {},
|
|
2660
2676
|
search_model: {},
|
|
2661
2677
|
filter_map: {},
|
|
@@ -2667,35 +2683,35 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2667
2683
|
group_condition: {},
|
|
2668
2684
|
group_record: {}
|
|
2669
2685
|
}, Fa({
|
|
2670
|
-
org_id:
|
|
2686
|
+
org_id: f.id,
|
|
2671
2687
|
user_id: u.view_type == "personal" ? R : null,
|
|
2672
2688
|
name: u.name,
|
|
2673
2689
|
view_project__flag: H.VITE_APP_VIEW_PROJECT_FLAG,
|
|
2674
2690
|
view_menu__flag: e.menu_flag,
|
|
2675
2691
|
view_menu__name: e.menu_name,
|
|
2676
2692
|
is_system: !1,
|
|
2677
|
-
data: JSON.stringify(
|
|
2678
|
-
}).then((
|
|
2679
|
-
l("change", v, { ...
|
|
2693
|
+
data: JSON.stringify(p)
|
|
2694
|
+
}).then((r) => {
|
|
2695
|
+
l("change", v, { ...r, ...r.data }, !0, !0), r.id && (U.value = U.value.concat([
|
|
2680
2696
|
{
|
|
2681
|
-
...
|
|
2697
|
+
...r
|
|
2682
2698
|
}
|
|
2683
2699
|
]), B([
|
|
2684
2700
|
{
|
|
2685
|
-
id:
|
|
2686
|
-
search_model:
|
|
2687
|
-
filter_map:
|
|
2688
|
-
sort_fields:
|
|
2689
|
-
group_condition:
|
|
2690
|
-
conditions:
|
|
2691
|
-
isShowGeneralFilter:
|
|
2701
|
+
id: r.id,
|
|
2702
|
+
search_model: p.search_model,
|
|
2703
|
+
filter_map: p.filter_map,
|
|
2704
|
+
sort_fields: p.sort_fields,
|
|
2705
|
+
group_condition: p.group_condition,
|
|
2706
|
+
conditions: p.conditions,
|
|
2707
|
+
isShowGeneralFilter: p.isShowGeneralFilter
|
|
2692
2708
|
}
|
|
2693
|
-
]), window.location.hash =
|
|
2709
|
+
]), window.location.hash = r.uid, Y(r.uid));
|
|
2694
2710
|
});
|
|
2695
2711
|
}
|
|
2696
2712
|
}, X = (u, b) => {
|
|
2697
|
-
let
|
|
2698
|
-
e.currentViewObj.id == u.id && (
|
|
2713
|
+
let y = [!1];
|
|
2714
|
+
e.currentViewObj.id == u.id && (y = [!0]);
|
|
2699
2715
|
const d = se({
|
|
2700
2716
|
open: !0,
|
|
2701
2717
|
loading: !1,
|
|
@@ -2739,7 +2755,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2739
2755
|
}),
|
|
2740
2756
|
model: se({
|
|
2741
2757
|
name: u.name,
|
|
2742
|
-
is_submit:
|
|
2758
|
+
is_submit: y,
|
|
2743
2759
|
is_default: [u != null && u.is_default ? u == null ? void 0 : u.is_default : !1],
|
|
2744
2760
|
is_system: [u != null && u.is_system ? u == null ? void 0 : u.is_system : !1]
|
|
2745
2761
|
})
|
|
@@ -2764,8 +2780,8 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2764
2780
|
}
|
|
2765
2781
|
]
|
|
2766
2782
|
},
|
|
2767
|
-
ok: (s) => new Promise(function(
|
|
2768
|
-
a({ updateView: s, record: u }),
|
|
2783
|
+
ok: (s) => new Promise(function(w) {
|
|
2784
|
+
a({ updateView: s, record: u }), w(null);
|
|
2769
2785
|
})
|
|
2770
2786
|
});
|
|
2771
2787
|
b == "public" && (d.form.fields.push({
|
|
@@ -2789,7 +2805,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2789
2805
|
defaultValue: [!1],
|
|
2790
2806
|
placeholder: ""
|
|
2791
2807
|
})), Me(d);
|
|
2792
|
-
},
|
|
2808
|
+
}, m = (u) => {
|
|
2793
2809
|
const b = se({
|
|
2794
2810
|
open: !0,
|
|
2795
2811
|
loading: !1,
|
|
@@ -2860,12 +2876,12 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2860
2876
|
}
|
|
2861
2877
|
]
|
|
2862
2878
|
},
|
|
2863
|
-
ok: (
|
|
2864
|
-
if (S.value.includes(
|
|
2879
|
+
ok: (y) => new Promise(function(d) {
|
|
2880
|
+
if (S.value.includes(y.name)) {
|
|
2865
2881
|
te.error(n("视图名称已存在"));
|
|
2866
2882
|
return;
|
|
2867
2883
|
}
|
|
2868
|
-
a({ updateView:
|
|
2884
|
+
a({ updateView: y, record: y }), d(null);
|
|
2869
2885
|
})
|
|
2870
2886
|
});
|
|
2871
2887
|
Me(b);
|
|
@@ -2877,23 +2893,23 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2877
2893
|
title: u == "personal" ? n("个人视图管理") : n("公共视图管理"),
|
|
2878
2894
|
data: u == "personal" ? t.value : O.value
|
|
2879
2895
|
},
|
|
2880
|
-
ok: (
|
|
2881
|
-
|
|
2882
|
-
org_id:
|
|
2883
|
-
view_settings_ids:
|
|
2896
|
+
ok: (y) => {
|
|
2897
|
+
y && y.length > 0 ? Aa({
|
|
2898
|
+
org_id: f.id,
|
|
2899
|
+
view_settings_ids: y
|
|
2884
2900
|
}).then(() => {
|
|
2885
2901
|
te.success(n("保存成功")), I();
|
|
2886
2902
|
}) : (te.success(n("保存成功")), I());
|
|
2887
2903
|
},
|
|
2888
|
-
cancel: (
|
|
2889
|
-
|
|
2904
|
+
cancel: (y) => {
|
|
2905
|
+
y && I();
|
|
2890
2906
|
}
|
|
2891
2907
|
});
|
|
2892
2908
|
Me(b);
|
|
2893
|
-
},
|
|
2909
|
+
}, re = (u) => {
|
|
2894
2910
|
let b = "";
|
|
2895
|
-
const
|
|
2896
|
-
|
|
2911
|
+
const y = window.location.href.indexOf("#");
|
|
2912
|
+
y !== -1 ? b = window.location.href.substring(0, y) + "#" + u.uid : b = window.location.href + "#" + u.uid, Ml({ val: b, message: n("复制成功") });
|
|
2897
2913
|
}, ne = (u) => {
|
|
2898
2914
|
qe.confirm({
|
|
2899
2915
|
title: () => `${n("确认删除此")}【${u.name}】${u != null && u.user_id ? n("个人视图") : n("公共视图")}?`,
|
|
@@ -2903,10 +2919,10 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2903
2919
|
onOk() {
|
|
2904
2920
|
return new Promise((b) => {
|
|
2905
2921
|
Ua({
|
|
2906
|
-
org_id:
|
|
2922
|
+
org_id: f.id,
|
|
2907
2923
|
view_settings_id: u == null ? void 0 : u.id
|
|
2908
2924
|
}).then(() => {
|
|
2909
|
-
U.value = U.value.filter((
|
|
2925
|
+
U.value = U.value.filter((y) => y.id != u.id), Y(null), te.success(n("删除成功"));
|
|
2910
2926
|
}).finally(() => {
|
|
2911
2927
|
b(null);
|
|
2912
2928
|
});
|
|
@@ -2921,23 +2937,23 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2921
2937
|
use_store: !0,
|
|
2922
2938
|
to_i18n: !0,
|
|
2923
2939
|
enable_btn: !1
|
|
2924
|
-
}).required_condition,
|
|
2940
|
+
}).required_condition, y = {};
|
|
2925
2941
|
return b && b.forEach((d) => {
|
|
2926
2942
|
const s = L.value_map[d.key];
|
|
2927
|
-
s != null && (
|
|
2928
|
-
}),
|
|
2943
|
+
s != null && (y[d.field_name] = s);
|
|
2944
|
+
}), y;
|
|
2929
2945
|
}, _e = (u) => {
|
|
2930
2946
|
const b = [];
|
|
2931
|
-
u.forEach((
|
|
2932
|
-
let d = null, s = null,
|
|
2933
|
-
|
|
2934
|
-
id:
|
|
2947
|
+
u.forEach((y) => {
|
|
2948
|
+
let d = null, s = null, w = null, p = null;
|
|
2949
|
+
y.data.isShowGeneralFilter ? (d = {}, s = {}, w = y.data.group_condition, p = y.data.conditions) : (d = y.data.search_model, s = y.data.filter_map, w = {}, p = []), b.push({
|
|
2950
|
+
id: y.id,
|
|
2935
2951
|
search_model: d,
|
|
2936
2952
|
filter_map: s,
|
|
2937
|
-
sort_fields:
|
|
2938
|
-
group_condition:
|
|
2939
|
-
conditions:
|
|
2940
|
-
isShowGeneralFilter:
|
|
2953
|
+
sort_fields: y.data.sort_fields,
|
|
2954
|
+
group_condition: w,
|
|
2955
|
+
conditions: p,
|
|
2956
|
+
isShowGeneralFilter: y.data.isShowGeneralFilter
|
|
2941
2957
|
});
|
|
2942
2958
|
}), B(b);
|
|
2943
2959
|
};
|
|
@@ -3030,12 +3046,12 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
3030
3046
|
}
|
|
3031
3047
|
]
|
|
3032
3048
|
},
|
|
3033
|
-
ok: (b) => new Promise(function(
|
|
3049
|
+
ok: (b) => new Promise(function(y) {
|
|
3034
3050
|
if (U.value.map((s) => s.name).includes(b.name)) {
|
|
3035
3051
|
te.error(n("视图名称已存在"));
|
|
3036
3052
|
return;
|
|
3037
3053
|
}
|
|
3038
|
-
a({ updateView: b, record: b }),
|
|
3054
|
+
a({ updateView: b, record: b }), y(null);
|
|
3039
3055
|
})
|
|
3040
3056
|
});
|
|
3041
3057
|
Me(u);
|
|
@@ -3069,12 +3085,12 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
3069
3085
|
personData: t,
|
|
3070
3086
|
publicData: O,
|
|
3071
3087
|
is_auth: j,
|
|
3072
|
-
addView:
|
|
3088
|
+
addView: m,
|
|
3073
3089
|
editView: le,
|
|
3074
|
-
customRow:
|
|
3075
|
-
changeView:
|
|
3090
|
+
customRow: fe,
|
|
3091
|
+
changeView: g,
|
|
3076
3092
|
handleSubmit: X,
|
|
3077
|
-
handleShare:
|
|
3093
|
+
handleShare: re,
|
|
3078
3094
|
handleDelet: ne,
|
|
3079
3095
|
appStore: q
|
|
3080
3096
|
};
|
|
@@ -3082,11 +3098,11 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
3082
3098
|
});
|
|
3083
3099
|
const Ta = { style: { "font-weight": "700" } }, ja = ["onClick"], qa = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, Da = ["onClick"], Ra = ["onClick"], Na = ["onClick"], za = { style: { "font-weight": "700" } }, Ha = ["onClick"], Ga = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, Pa = ["onClick"], La = ["onClick"], Ya = ["onClick"];
|
|
3084
3100
|
function Ja(e, l, H, L, P, q) {
|
|
3085
|
-
const
|
|
3086
|
-
return o(),
|
|
3101
|
+
const f = C("caret-right-outlined"), R = C("setting-outlined"), j = C("a-tooltip"), U = C("plus-outlined"), n = C("a-menu-item"), k = C("a-menu"), v = C("a-dropdown"), t = C("a-table"), O = C("a-collapse-panel"), S = C("a-collapse"), E = C("a-card");
|
|
3102
|
+
return o(), _(E, {
|
|
3087
3103
|
"body-style": { padding: 0, height: e.height + 96 + "px", overflowY: "auto" }
|
|
3088
3104
|
}, {
|
|
3089
|
-
default:
|
|
3105
|
+
default: h(() => [
|
|
3090
3106
|
V(S, {
|
|
3091
3107
|
activeKey: e.viewKey,
|
|
3092
3108
|
"onUpdate:activeKey": l[6] || (l[6] = (B) => e.viewKey = B),
|
|
@@ -3094,25 +3110,25 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3094
3110
|
class: "collapses",
|
|
3095
3111
|
style: { background: "rgb(255, 255, 255)" }
|
|
3096
3112
|
}, {
|
|
3097
|
-
expandIcon:
|
|
3098
|
-
V(
|
|
3113
|
+
expandIcon: h(({ isActive: B }) => [
|
|
3114
|
+
V(f, {
|
|
3099
3115
|
rotate: B ? 90 : 0
|
|
3100
3116
|
}, null, 8, ["rotate"])
|
|
3101
3117
|
]),
|
|
3102
|
-
default:
|
|
3103
|
-
(o(),
|
|
3118
|
+
default: h(() => [
|
|
3119
|
+
(o(), _(O, {
|
|
3104
3120
|
key: "1",
|
|
3105
3121
|
style: D(e.customStyle)
|
|
3106
3122
|
}, {
|
|
3107
|
-
header:
|
|
3123
|
+
header: h(() => [
|
|
3108
3124
|
G("span", Ta, K(e.$t("个人视图")), 1)
|
|
3109
3125
|
]),
|
|
3110
|
-
extra:
|
|
3126
|
+
extra: h(() => [
|
|
3111
3127
|
V(j, null, {
|
|
3112
|
-
title:
|
|
3128
|
+
title: h(() => [
|
|
3113
3129
|
x(K(e.$t("个人视图管理")), 1)
|
|
3114
3130
|
]),
|
|
3115
|
-
default:
|
|
3131
|
+
default: h(() => [
|
|
3116
3132
|
V(R, {
|
|
3117
3133
|
style: { "margin-right": "10px" },
|
|
3118
3134
|
onClick: l[0] || (l[0] = ce((B) => e.editView("personal"), ["stop"]))
|
|
@@ -3121,10 +3137,10 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3121
3137
|
_: 1
|
|
3122
3138
|
}),
|
|
3123
3139
|
V(j, null, {
|
|
3124
|
-
title:
|
|
3140
|
+
title: h(() => [
|
|
3125
3141
|
x(K(e.$t("新建个人视图")), 1)
|
|
3126
3142
|
]),
|
|
3127
|
-
default:
|
|
3143
|
+
default: h(() => [
|
|
3128
3144
|
V(U, {
|
|
3129
3145
|
onClick: l[1] || (l[1] = ce((B) => e.addView("personal"), ["stop"]))
|
|
3130
3146
|
})
|
|
@@ -3132,8 +3148,8 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3132
3148
|
_: 1
|
|
3133
3149
|
})
|
|
3134
3150
|
]),
|
|
3135
|
-
default:
|
|
3136
|
-
e.personData.length > 0 ? (o(),
|
|
3151
|
+
default: h(() => [
|
|
3152
|
+
e.personData.length > 0 ? (o(), _(t, {
|
|
3137
3153
|
key: 0,
|
|
3138
3154
|
columns: e.columns,
|
|
3139
3155
|
customRow: e.customRow,
|
|
@@ -3142,7 +3158,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3142
3158
|
showHeader: !1,
|
|
3143
3159
|
size: "small"
|
|
3144
3160
|
}, {
|
|
3145
|
-
bodyCell:
|
|
3161
|
+
bodyCell: h(({ column: B, record: I }) => [
|
|
3146
3162
|
B.dataIndex === "name" ? (o(), F("div", {
|
|
3147
3163
|
key: 0,
|
|
3148
3164
|
class: "table",
|
|
@@ -3156,7 +3172,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3156
3172
|
destroyTooltipOnHide: !0,
|
|
3157
3173
|
overlayStyle: { maxWidth: "200px" }
|
|
3158
3174
|
}, {
|
|
3159
|
-
default:
|
|
3175
|
+
default: h(() => [
|
|
3160
3176
|
G("div", qa, K(I.name), 1)
|
|
3161
3177
|
]),
|
|
3162
3178
|
_: 2
|
|
@@ -3169,11 +3185,11 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3169
3185
|
])
|
|
3170
3186
|
}, K(I.num), 5),
|
|
3171
3187
|
V(v, { class: "dropdown" }, {
|
|
3172
|
-
overlay:
|
|
3173
|
-
V(
|
|
3174
|
-
default:
|
|
3175
|
-
!I.is_system || e.is_auth ? (o(),
|
|
3176
|
-
default:
|
|
3188
|
+
overlay: h(() => [
|
|
3189
|
+
V(k, null, {
|
|
3190
|
+
default: h(() => [
|
|
3191
|
+
!I.is_system || e.is_auth ? (o(), _(n, { key: 0 }, {
|
|
3192
|
+
default: h(() => [
|
|
3177
3193
|
G("a", {
|
|
3178
3194
|
href: "javascript:;",
|
|
3179
3195
|
onClick: (Y) => e.handleSubmit(I, "personal")
|
|
@@ -3182,7 +3198,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3182
3198
|
_: 2
|
|
3183
3199
|
}, 1024)) : M("", !0),
|
|
3184
3200
|
V(n, null, {
|
|
3185
|
-
default:
|
|
3201
|
+
default: h(() => [
|
|
3186
3202
|
G("a", {
|
|
3187
3203
|
href: "javascript:;",
|
|
3188
3204
|
onClick: (Y) => e.handleShare(I)
|
|
@@ -3190,8 +3206,8 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3190
3206
|
]),
|
|
3191
3207
|
_: 2
|
|
3192
3208
|
}, 1024),
|
|
3193
|
-
!I.is_system || e.is_auth ? (o(),
|
|
3194
|
-
default:
|
|
3209
|
+
!I.is_system || e.is_auth ? (o(), _(n, { key: 1 }, {
|
|
3210
|
+
default: h(() => [
|
|
3195
3211
|
G("a", {
|
|
3196
3212
|
href: "javascript:;",
|
|
3197
3213
|
onClick: (Y) => e.handleDelet(I)
|
|
@@ -3203,7 +3219,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3203
3219
|
_: 2
|
|
3204
3220
|
}, 1024)
|
|
3205
3221
|
]),
|
|
3206
|
-
default:
|
|
3222
|
+
default: h(() => [
|
|
3207
3223
|
G("span", {
|
|
3208
3224
|
style: { float: "right", "font-weight": "800" },
|
|
3209
3225
|
onClick: l[2] || (l[2] = ce(() => {
|
|
@@ -3219,19 +3235,19 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3219
3235
|
]),
|
|
3220
3236
|
_: 1
|
|
3221
3237
|
}, 8, ["style"])),
|
|
3222
|
-
(o(),
|
|
3238
|
+
(o(), _(O, {
|
|
3223
3239
|
key: "2",
|
|
3224
3240
|
style: D(e.customStyle)
|
|
3225
3241
|
}, {
|
|
3226
|
-
header:
|
|
3242
|
+
header: h(() => [
|
|
3227
3243
|
G("span", za, K(e.$t("公共视图")), 1)
|
|
3228
3244
|
]),
|
|
3229
|
-
extra:
|
|
3245
|
+
extra: h(() => [
|
|
3230
3246
|
V(j, null, {
|
|
3231
|
-
title:
|
|
3247
|
+
title: h(() => [
|
|
3232
3248
|
x(K(e.$t("公共视图管理")), 1)
|
|
3233
3249
|
]),
|
|
3234
|
-
default:
|
|
3250
|
+
default: h(() => [
|
|
3235
3251
|
V(R, {
|
|
3236
3252
|
style: { "margin-right": "10px" },
|
|
3237
3253
|
onClick: l[3] || (l[3] = ce((B) => e.editView("public"), ["stop"]))
|
|
@@ -3240,10 +3256,10 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3240
3256
|
_: 1
|
|
3241
3257
|
}),
|
|
3242
3258
|
V(j, null, {
|
|
3243
|
-
title:
|
|
3259
|
+
title: h(() => [
|
|
3244
3260
|
x(K(e.$t("新建公共视图")), 1)
|
|
3245
3261
|
]),
|
|
3246
|
-
default:
|
|
3262
|
+
default: h(() => [
|
|
3247
3263
|
V(U, {
|
|
3248
3264
|
onClick: l[4] || (l[4] = ce((B) => e.addView("public"), ["stop"]))
|
|
3249
3265
|
})
|
|
@@ -3251,8 +3267,8 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3251
3267
|
_: 1
|
|
3252
3268
|
})
|
|
3253
3269
|
]),
|
|
3254
|
-
default:
|
|
3255
|
-
e.publicData.length > 0 ? (o(),
|
|
3270
|
+
default: h(() => [
|
|
3271
|
+
e.publicData.length > 0 ? (o(), _(t, {
|
|
3256
3272
|
key: 0,
|
|
3257
3273
|
columns: e.columns,
|
|
3258
3274
|
customRow: e.customRow,
|
|
@@ -3261,7 +3277,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3261
3277
|
showHeader: !1,
|
|
3262
3278
|
size: "small"
|
|
3263
3279
|
}, {
|
|
3264
|
-
bodyCell:
|
|
3280
|
+
bodyCell: h(({ column: B, record: I }) => [
|
|
3265
3281
|
B.dataIndex === "name" ? (o(), F("div", {
|
|
3266
3282
|
key: 0,
|
|
3267
3283
|
class: "table",
|
|
@@ -3275,7 +3291,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3275
3291
|
destroyTooltipOnHide: !0,
|
|
3276
3292
|
overlayStyle: { maxWidth: "200px" }
|
|
3277
3293
|
}, {
|
|
3278
|
-
default:
|
|
3294
|
+
default: h(() => [
|
|
3279
3295
|
G("div", Ga, K(I.name), 1)
|
|
3280
3296
|
]),
|
|
3281
3297
|
_: 2
|
|
@@ -3288,11 +3304,11 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3288
3304
|
])
|
|
3289
3305
|
}, K(I.num), 5),
|
|
3290
3306
|
V(v, { class: "dropdown" }, {
|
|
3291
|
-
overlay:
|
|
3292
|
-
V(
|
|
3293
|
-
default:
|
|
3294
|
-
!I.is_system || e.is_auth ? (o(),
|
|
3295
|
-
default:
|
|
3307
|
+
overlay: h(() => [
|
|
3308
|
+
V(k, null, {
|
|
3309
|
+
default: h(() => [
|
|
3310
|
+
!I.is_system || e.is_auth ? (o(), _(n, { key: 0 }, {
|
|
3311
|
+
default: h(() => [
|
|
3296
3312
|
G("a", {
|
|
3297
3313
|
href: "javascript:;",
|
|
3298
3314
|
onClick: (Y) => e.handleSubmit(I, "public")
|
|
@@ -3301,7 +3317,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3301
3317
|
_: 2
|
|
3302
3318
|
}, 1024)) : M("", !0),
|
|
3303
3319
|
V(n, null, {
|
|
3304
|
-
default:
|
|
3320
|
+
default: h(() => [
|
|
3305
3321
|
G("a", {
|
|
3306
3322
|
href: "javascript:;",
|
|
3307
3323
|
onClick: (Y) => e.handleShare(I)
|
|
@@ -3309,8 +3325,8 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3309
3325
|
]),
|
|
3310
3326
|
_: 2
|
|
3311
3327
|
}, 1024),
|
|
3312
|
-
!I.is_system || e.is_auth ? (o(),
|
|
3313
|
-
default:
|
|
3328
|
+
!I.is_system || e.is_auth ? (o(), _(n, { key: 1 }, {
|
|
3329
|
+
default: h(() => [
|
|
3314
3330
|
G("a", {
|
|
3315
3331
|
href: "javascript:;",
|
|
3316
3332
|
onClick: (Y) => e.handleDelet(I)
|
|
@@ -3322,7 +3338,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3322
3338
|
_: 2
|
|
3323
3339
|
}, 1024)
|
|
3324
3340
|
]),
|
|
3325
|
-
default:
|
|
3341
|
+
default: h(() => [
|
|
3326
3342
|
G("span", {
|
|
3327
3343
|
style: { float: "right", "font-weight": "800" },
|
|
3328
3344
|
onClick: l[5] || (l[5] = ce(() => {
|
|
@@ -3367,12 +3383,12 @@ const Wa = /* @__PURE__ */ he(Ba, [["render", Ja]]), Qa = pe({
|
|
|
3367
3383
|
}
|
|
3368
3384
|
});
|
|
3369
3385
|
function Xa(e, l, H, L, P, q) {
|
|
3370
|
-
const
|
|
3371
|
-
return o(),
|
|
3386
|
+
const f = C("view-manage"), R = C("a-card");
|
|
3387
|
+
return o(), _(R, {
|
|
3372
3388
|
"body-style": { padding: 0, height: e.selectObj.height + 96 + "px", overflowY: "auto" }
|
|
3373
3389
|
}, {
|
|
3374
|
-
default:
|
|
3375
|
-
V(
|
|
3390
|
+
default: h(() => [
|
|
3391
|
+
V(f, {
|
|
3376
3392
|
"select-obj": e.selectObj,
|
|
3377
3393
|
onChange: e.change
|
|
3378
3394
|
}, null, 8, ["select-obj", "onChange"])
|