liyu-pc-base 1.0.14 → 1.0.16
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/components/index.js +647 -637
- package/dist/components/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/function.js +7 -6
- package/dist/utils/function.js.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as X, ref as W, resolveComponent as C, openBlock as
|
|
1
|
+
import { defineComponent as X, ref as W, resolveComponent as C, openBlock as i, createBlock as O, withCtx as p, createVNode as S, createElementBlock as $, Fragment as j, renderList as N, createElementVNode as A, toDisplayString as G, reactive as P, computed as ce, watch as H, onMounted as Ue, createTextVNode as J, createCommentVNode as R, withDirectives as re, vShow as ue, pushScopeId as Ie, popScopeId as Ve, createSlots as qe, onUnmounted as Be, onActivated as De, normalizeStyle as de, withModifiers as ae } from "vue";
|
|
2
2
|
import { _ as Z, h as Fe, F as Ke } from "../SearchRender-48437a40.js";
|
|
3
|
-
import { B as
|
|
3
|
+
import { B as Oa, e as Sa, S as Ea, i as $a } from "../SearchRender-48437a40.js";
|
|
4
4
|
import { message as L, Modal as we } from "ant-design-vue";
|
|
5
5
|
import { get_operator_type_map as se, isNotEmpty as ve, copyValue as Ne } from "../utils/function.js";
|
|
6
6
|
import { CloseOutlined as Re, LeftOutlined as Te, RightOutlined as Ge, CloseCircleOutlined as Le, CaretRightOutlined as Je, PlusOutlined as ze, SettingOutlined as Pe, ExclamationCircleOutlined as ke } from "@ant-design/icons-vue";
|
|
@@ -42,16 +42,16 @@ const Ze = X({
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
emits: ["ok", "cancel"],
|
|
45
|
-
setup(e, { emit:
|
|
45
|
+
setup(e, { emit: u }) {
|
|
46
46
|
const K = W("condition_tab_0"), D = W([]);
|
|
47
|
-
e.default_search_condition_config_list.forEach((
|
|
47
|
+
e.default_search_condition_config_list.forEach((r, F) => {
|
|
48
48
|
const g = JSON.parse(
|
|
49
49
|
JSON.stringify(e.base_search_condition_config_list)
|
|
50
50
|
);
|
|
51
51
|
g && g.forEach((V) => {
|
|
52
52
|
V.group.forEach((h) => {
|
|
53
|
-
|
|
54
|
-
h.field_name ==
|
|
53
|
+
r.forEach((f) => {
|
|
54
|
+
h.field_name == f.field_name && (h.operator = f.operator, h.checked = !0);
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
}), D.value.push({
|
|
@@ -60,27 +60,27 @@ const Ze = X({
|
|
|
60
60
|
base_search_list: g
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
-
const I = (
|
|
64
|
-
|
|
63
|
+
const I = (r) => {
|
|
64
|
+
r.preventDefault();
|
|
65
65
|
const F = [];
|
|
66
66
|
D.value.forEach((g) => {
|
|
67
67
|
const V = [];
|
|
68
68
|
g.base_search_list.forEach((h) => {
|
|
69
|
-
h.group.forEach((
|
|
70
|
-
if (
|
|
71
|
-
if (!
|
|
72
|
-
const v = E(
|
|
69
|
+
h.group.forEach((f) => {
|
|
70
|
+
if (f.checked) {
|
|
71
|
+
if (!f.operator) {
|
|
72
|
+
const v = E(f);
|
|
73
73
|
if (v.length > 0) {
|
|
74
74
|
const [b] = v;
|
|
75
|
-
|
|
75
|
+
f.operator = b;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
V.push(
|
|
78
|
+
V.push(f);
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
}), F.push(V);
|
|
82
|
-
}),
|
|
83
|
-
}, E = (
|
|
82
|
+
}), u("ok", { new_list: F });
|
|
83
|
+
}, E = (r) => r.operator_list_selected ? r.operator_list_selected : r.operator_list ? r.operator_list : [];
|
|
84
84
|
return {
|
|
85
85
|
props: e,
|
|
86
86
|
activeKey: K,
|
|
@@ -89,10 +89,10 @@ const Ze = X({
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
|
-
const xe = { style: { "font-size": "14px" } },
|
|
93
|
-
function
|
|
94
|
-
const
|
|
95
|
-
return
|
|
92
|
+
const xe = { style: { "font-size": "14px" } }, el = { style: { color: "#7d8089" } };
|
|
93
|
+
function ll(e, u, K, D, I, E) {
|
|
94
|
+
const r = C("a-checkbox"), F = C("a-space"), g = C("a-tab-pane"), V = C("a-tabs"), h = C("a-modal");
|
|
95
|
+
return i(), O(h, {
|
|
96
96
|
title: "添加过滤条件",
|
|
97
97
|
width: "800px",
|
|
98
98
|
open: e.open,
|
|
@@ -102,23 +102,23 @@ function aa(e, r, K, D, I, E) {
|
|
|
102
102
|
confirmLoading: e.loading,
|
|
103
103
|
centered: "",
|
|
104
104
|
onOk: e.handleSubmit,
|
|
105
|
-
onCancel:
|
|
105
|
+
onCancel: u[1] || (u[1] = () => {
|
|
106
106
|
e.$emit("cancel");
|
|
107
107
|
})
|
|
108
108
|
}, {
|
|
109
109
|
default: p(() => [
|
|
110
110
|
S(V, {
|
|
111
111
|
activeKey: e.activeKey,
|
|
112
|
-
"onUpdate:activeKey":
|
|
112
|
+
"onUpdate:activeKey": u[0] || (u[0] = (f) => e.activeKey = f)
|
|
113
113
|
}, {
|
|
114
114
|
default: p(() => [
|
|
115
|
-
(
|
|
115
|
+
(i(!0), $(j, null, N(e.tab_list, (f) => (i(), O(g, {
|
|
116
116
|
class: "my-card",
|
|
117
|
-
key:
|
|
118
|
-
tab:
|
|
117
|
+
key: f.key,
|
|
118
|
+
tab: f.tab_name
|
|
119
119
|
}, {
|
|
120
120
|
default: p(() => [
|
|
121
|
-
(
|
|
121
|
+
(i(!0), $(j, null, N(f.base_search_list, (v) => (i(), $("div", {
|
|
122
122
|
key: v.name
|
|
123
123
|
}, [
|
|
124
124
|
A("div", xe, G(v.name), 1),
|
|
@@ -127,15 +127,15 @@ function aa(e, r, K, D, I, E) {
|
|
|
127
127
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
128
128
|
}, {
|
|
129
129
|
default: p(() => [
|
|
130
|
-
(
|
|
130
|
+
(i(!0), $(j, null, N(v.group, (b) => (i(), $("div", {
|
|
131
131
|
key: b.field_name
|
|
132
132
|
}, [
|
|
133
|
-
S(
|
|
133
|
+
S(r, {
|
|
134
134
|
checked: b.checked,
|
|
135
135
|
"onUpdate:checked": (M) => b.checked = M
|
|
136
136
|
}, {
|
|
137
137
|
default: p(() => [
|
|
138
|
-
A("span",
|
|
138
|
+
A("span", el, G(b.label), 1)
|
|
139
139
|
]),
|
|
140
140
|
_: 2
|
|
141
141
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -154,7 +154,7 @@ function aa(e, r, K, D, I, E) {
|
|
|
154
154
|
_: 1
|
|
155
155
|
}, 8, ["open", "confirmLoading", "onOk"]);
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const al = /* @__PURE__ */ Z(Ze, [["render", ll], ["__scopeId", "data-v-25d1dc13"]]), tl = X({
|
|
158
158
|
name: "AddConditionGroupModal",
|
|
159
159
|
props: {
|
|
160
160
|
open: {
|
|
@@ -175,10 +175,10 @@ const la = /* @__PURE__ */ Z(Ze, [["render", aa], ["__scopeId", "data-v-25d1dc13
|
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
177
|
emits: ["ok", "cancel"],
|
|
178
|
-
setup(e, { emit:
|
|
178
|
+
setup(e, { emit: u }) {
|
|
179
179
|
var g, V;
|
|
180
180
|
const K = W([]), D = (h) => h.operator_list_selected ? h.operator_list_selected : h.operator_list ? h.operator_list : [];
|
|
181
|
-
(g = e.default_search_condition_config_list) == null || g.forEach((h,
|
|
181
|
+
(g = e.default_search_condition_config_list) == null || g.forEach((h, f) => {
|
|
182
182
|
const v = JSON.parse(JSON.stringify(e.base_search_condition_config_list));
|
|
183
183
|
v && v.forEach((b) => {
|
|
184
184
|
b.group.forEach((M) => {
|
|
@@ -187,14 +187,14 @@ const la = /* @__PURE__ */ Z(Ze, [["render", aa], ["__scopeId", "data-v-25d1dc13
|
|
|
187
187
|
});
|
|
188
188
|
});
|
|
189
189
|
}), K.value.push({
|
|
190
|
-
tab_name: `条件组${
|
|
191
|
-
key: `condition_tab_${
|
|
190
|
+
tab_name: `条件组${f + 1}`,
|
|
191
|
+
key: `condition_tab_${f}`,
|
|
192
192
|
base_search_list: v
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
195
|
const I = ((V = e.default_search_condition_config_list) == null ? void 0 : V.length) || 0, E = [];
|
|
196
196
|
e.base_search_condition_config_list.forEach((h) => {
|
|
197
|
-
const
|
|
197
|
+
const f = [];
|
|
198
198
|
h.group.forEach((v) => {
|
|
199
199
|
const b = D(v);
|
|
200
200
|
if (v.default_operator && (v.operator = v.default_operator), b.includes(v.operator) || (v.operator = null), !v.operator && b.length > 0) {
|
|
@@ -202,41 +202,41 @@ const la = /* @__PURE__ */ Z(Ze, [["render", aa], ["__scopeId", "data-v-25d1dc13
|
|
|
202
202
|
v.operator = T;
|
|
203
203
|
}
|
|
204
204
|
const M = { ...v, checked: !1 };
|
|
205
|
-
|
|
205
|
+
f.push(M);
|
|
206
206
|
}), E.push({
|
|
207
207
|
name: h.name,
|
|
208
|
-
group:
|
|
208
|
+
group: f
|
|
209
209
|
});
|
|
210
210
|
}), K.value.push({
|
|
211
211
|
tab_name: `条件组${I + 1}`,
|
|
212
212
|
key: `condition_tab_${I}`,
|
|
213
213
|
base_search_list: E
|
|
214
214
|
});
|
|
215
|
-
const
|
|
215
|
+
const r = W(`condition_tab_${I}`);
|
|
216
216
|
return {
|
|
217
217
|
props: e,
|
|
218
|
-
activeKey:
|
|
218
|
+
activeKey: r,
|
|
219
219
|
tab_list: K,
|
|
220
220
|
handleSubmit: (h) => {
|
|
221
221
|
h.preventDefault();
|
|
222
|
-
const
|
|
222
|
+
const f = [];
|
|
223
223
|
K.value.forEach((v) => {
|
|
224
224
|
const b = [];
|
|
225
225
|
v.base_search_list.forEach((M) => {
|
|
226
226
|
M.group.forEach((T) => {
|
|
227
227
|
T.checked && b.push(T);
|
|
228
228
|
});
|
|
229
|
-
}), b.length > 0 &&
|
|
230
|
-
}),
|
|
229
|
+
}), b.length > 0 && f.push(b);
|
|
230
|
+
}), f.length == 0 ? (L.error("新增条件组未增加新的字段,自动取消"), u("cancel")) : u("ok", { new_list: f });
|
|
231
231
|
},
|
|
232
232
|
get_operator_list_selected: D
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
const
|
|
237
|
-
function
|
|
238
|
-
const
|
|
239
|
-
return
|
|
236
|
+
const nl = { style: { "font-size": "14px" } }, ol = { style: { color: "#7d8089" } }, sl = { style: { "font-size": "14px" } }, il = { style: { color: "#7d8089" } };
|
|
237
|
+
function rl(e, u, K, D, I, E) {
|
|
238
|
+
const r = C("a-checkbox"), F = C("a-space"), g = C("a-tab-pane"), V = C("a-tabs"), h = C("a-modal");
|
|
239
|
+
return i(), O(h, {
|
|
240
240
|
title: "添加过滤条件组",
|
|
241
241
|
width: "800px",
|
|
242
242
|
open: e.open,
|
|
@@ -246,32 +246,32 @@ function ra(e, r, K, D, I, E) {
|
|
|
246
246
|
confirmLoading: e.loading,
|
|
247
247
|
centered: "",
|
|
248
248
|
onOk: e.handleSubmit,
|
|
249
|
-
onCancel:
|
|
249
|
+
onCancel: u[1] || (u[1] = () => {
|
|
250
250
|
e.$emit("cancel");
|
|
251
251
|
})
|
|
252
252
|
}, {
|
|
253
253
|
default: p(() => [
|
|
254
|
-
(
|
|
254
|
+
(i(!0), $(j, null, N(e.tab_list, (f) => (i(), O(g, {
|
|
255
255
|
class: "my-card",
|
|
256
|
-
key:
|
|
257
|
-
tab:
|
|
256
|
+
key: f.key,
|
|
257
|
+
tab: f.tab_name
|
|
258
258
|
}, {
|
|
259
259
|
default: p(() => [
|
|
260
|
-
(
|
|
260
|
+
(i(!0), $(j, null, N(f.base_search_list, (v) => (i(), $("div", {
|
|
261
261
|
key: v.name
|
|
262
262
|
}, [
|
|
263
|
-
A("div",
|
|
263
|
+
A("div", nl, G(v.name), 1),
|
|
264
264
|
S(F, { wrap: "" }, {
|
|
265
265
|
default: p(() => [
|
|
266
|
-
(
|
|
266
|
+
(i(!0), $(j, null, N(v.group, (b) => (i(), $("div", {
|
|
267
267
|
key: b.field_name
|
|
268
268
|
}, [
|
|
269
|
-
S(
|
|
269
|
+
S(r, {
|
|
270
270
|
checked: b.checked,
|
|
271
271
|
"onUpdate:checked": (M) => b.checked = M
|
|
272
272
|
}, {
|
|
273
273
|
default: p(() => [
|
|
274
|
-
A("span",
|
|
274
|
+
A("span", ol, G(b.label), 1)
|
|
275
275
|
]),
|
|
276
276
|
_: 2
|
|
277
277
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -285,33 +285,33 @@ function ra(e, r, K, D, I, E) {
|
|
|
285
285
|
}, 1032, ["tab"]))), 128)),
|
|
286
286
|
S(V, {
|
|
287
287
|
activeKey: e.activeKey,
|
|
288
|
-
"onUpdate:activeKey":
|
|
288
|
+
"onUpdate:activeKey": u[0] || (u[0] = (f) => e.activeKey = f)
|
|
289
289
|
}, {
|
|
290
290
|
default: p(() => [
|
|
291
|
-
(
|
|
291
|
+
(i(!0), $(j, null, N(e.tab_list, (f) => (i(), O(g, {
|
|
292
292
|
class: "my-card",
|
|
293
|
-
key:
|
|
294
|
-
tab:
|
|
293
|
+
key: f.key,
|
|
294
|
+
tab: f.tab_name
|
|
295
295
|
}, {
|
|
296
296
|
default: p(() => [
|
|
297
|
-
(
|
|
297
|
+
(i(!0), $(j, null, N(f.base_search_list, (v) => (i(), $("div", {
|
|
298
298
|
key: v.name
|
|
299
299
|
}, [
|
|
300
|
-
A("div",
|
|
300
|
+
A("div", sl, G(v.name), 1),
|
|
301
301
|
S(F, {
|
|
302
302
|
wrap: "",
|
|
303
303
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
304
304
|
}, {
|
|
305
305
|
default: p(() => [
|
|
306
|
-
(
|
|
306
|
+
(i(!0), $(j, null, N(v.group, (b) => (i(), $("div", {
|
|
307
307
|
key: b.field_name
|
|
308
308
|
}, [
|
|
309
|
-
S(
|
|
309
|
+
S(r, {
|
|
310
310
|
checked: b.checked,
|
|
311
311
|
"onUpdate:checked": (M) => b.checked = M
|
|
312
312
|
}, {
|
|
313
313
|
default: p(() => [
|
|
314
|
-
A("span",
|
|
314
|
+
A("span", il, G(b.label), 1)
|
|
315
315
|
]),
|
|
316
316
|
_: 2
|
|
317
317
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -330,7 +330,7 @@ function ra(e, r, K, D, I, E) {
|
|
|
330
330
|
_: 1
|
|
331
331
|
}, 8, ["open", "confirmLoading", "onOk"]);
|
|
332
332
|
}
|
|
333
|
-
const
|
|
333
|
+
const ul = /* @__PURE__ */ Z(tl, [["render", rl], ["__scopeId", "data-v-52b515e0"]]), dl = (e) => ({
|
|
334
334
|
options_eq: [
|
|
335
335
|
{ value: "上月", label: "上月" },
|
|
336
336
|
{ value: "本月", label: "本月" },
|
|
@@ -338,7 +338,7 @@ const ua = /* @__PURE__ */ Z(ta, [["render", ra], ["__scopeId", "data-v-52b515e0
|
|
|
338
338
|
{ value: "昨日", label: "昨日" },
|
|
339
339
|
{ value: "期初", label: "期初" }
|
|
340
340
|
]
|
|
341
|
-
}),
|
|
341
|
+
}), _l = X({
|
|
342
342
|
name: "GeneralFilter",
|
|
343
343
|
props: {
|
|
344
344
|
base_search_condition_config_list: {
|
|
@@ -370,8 +370,8 @@ const ua = /* @__PURE__ */ Z(ta, [["render", ra], ["__scopeId", "data-v-52b515e0
|
|
|
370
370
|
LeftOutlined: Te,
|
|
371
371
|
RightOutlined: Ge,
|
|
372
372
|
FieldRender: Ke,
|
|
373
|
-
AddConditionGroupModal:
|
|
374
|
-
AddConditionModal:
|
|
373
|
+
AddConditionGroupModal: ul,
|
|
374
|
+
AddConditionModal: al,
|
|
375
375
|
CloseCircleOutlined: Le
|
|
376
376
|
},
|
|
377
377
|
emits: [
|
|
@@ -383,8 +383,8 @@ const ua = /* @__PURE__ */ Z(ta, [["render", ra], ["__scopeId", "data-v-52b515e0
|
|
|
383
383
|
"onChangeValue",
|
|
384
384
|
"update:is_clear_model"
|
|
385
385
|
],
|
|
386
|
-
setup(e, { emit:
|
|
387
|
-
const K = W(e.is_massage_default), D = W({}), { t: I } = je(), { options_eq: E } =
|
|
386
|
+
setup(e, { emit: u }) {
|
|
387
|
+
const K = W(e.is_massage_default), D = W({}), { t: I } = je(), { options_eq: E } = dl(), r = W({}), F = {}, g = W(null), V = W([
|
|
388
388
|
{ value: "yes", label: I("is_or_not_blank_or_null.yes") },
|
|
389
389
|
{ value: "no", label: I("is_or_not_blank_or_null.no") }
|
|
390
390
|
]);
|
|
@@ -410,223 +410,233 @@ const ua = /* @__PURE__ */ Z(ta, [["render", ra], ["__scopeId", "data-v-52b515e0
|
|
|
410
410
|
not_blank_not_null: 1,
|
|
411
411
|
json_list_not_blank_not_null: 1,
|
|
412
412
|
json_list_is_blank_is_null: 1,
|
|
413
|
-
is_or_not_blank_or_null: 1
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
413
|
+
is_or_not_blank_or_null: 1,
|
|
414
|
+
is_or_not_null: 1
|
|
415
|
+
}, f = (l) => {
|
|
416
|
+
const [a] = [l];
|
|
417
|
+
return Array.isArray(a) && l.every((d) => Array.isArray(d));
|
|
417
418
|
};
|
|
418
419
|
let v = null;
|
|
419
|
-
const b = (
|
|
420
|
-
const m =
|
|
421
|
-
if (
|
|
422
|
-
|
|
420
|
+
const b = (l, a, d) => {
|
|
421
|
+
const m = r.value[a][d.field_name];
|
|
422
|
+
if (s(d).includes("_eq") && l == "_eq") {
|
|
423
|
+
r.value[a][d.field_name] = null;
|
|
423
424
|
return;
|
|
424
425
|
}
|
|
425
|
-
if (
|
|
426
|
-
if (
|
|
427
|
-
|
|
426
|
+
if (s(d).includes("not_blank_not_null")) {
|
|
427
|
+
if (l == "not_blank_not_null") {
|
|
428
|
+
r.value[a][d.field_name] = "是", v = l, u("onChangeValue", { model: r.value });
|
|
428
429
|
return;
|
|
429
430
|
} else if (v == "not_blank_not_null") {
|
|
430
|
-
|
|
431
|
+
r.value[a][d.field_name] = null, v = l, u("onChangeValue", { model: r.value });
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
if (s(d).includes("is_or_not_blank_or_null") || s(d).includes("is_or_not_null")) {
|
|
436
|
+
if (l == "is_or_not_blank_or_null" || l == "is_or_not_null") {
|
|
437
|
+
r.value[a][d.field_name] = null, v = l, u("onChangeValue", { model: r.value });
|
|
438
|
+
return;
|
|
439
|
+
} else if (v == "is_or_not_blank_or_null" || v == "is_or_not_null") {
|
|
440
|
+
r.value[a][d.field_name] = null, v = l, u("onChangeValue", { model: r.value });
|
|
431
441
|
return;
|
|
432
442
|
}
|
|
433
443
|
}
|
|
434
|
-
if (m instanceof Array &&
|
|
435
|
-
|
|
436
|
-
else if (h[
|
|
444
|
+
if (m instanceof Array && f(m))
|
|
445
|
+
r.value[a][d.field_name] = null;
|
|
446
|
+
else if (h[l] == 1) {
|
|
437
447
|
if (m instanceof Array) {
|
|
438
|
-
const [
|
|
439
|
-
ve(
|
|
448
|
+
const [_] = r.value[a][d.field_name];
|
|
449
|
+
ve(_) ? r.value[a][d.field_name] = _ : r.value[a][d.field_name] = null;
|
|
440
450
|
} else
|
|
441
|
-
|
|
451
|
+
r.value[a][d.field_name] = m || null;
|
|
442
452
|
E.some(
|
|
443
|
-
(
|
|
444
|
-
) && (
|
|
445
|
-
} else if (h[
|
|
446
|
-
if (
|
|
447
|
-
const [
|
|
448
|
-
|
|
449
|
-
} else if (
|
|
450
|
-
const
|
|
451
|
-
|
|
453
|
+
(_) => _.value === r.value[a][d.field_name]
|
|
454
|
+
) && (r.value[a][d.field_name] = null);
|
|
455
|
+
} else if (h[l] == 2) {
|
|
456
|
+
if (r.value[a][d.field_name] instanceof Array) {
|
|
457
|
+
const [_, y] = r.value[a][d.field_name];
|
|
458
|
+
r.value[a][d.field_name] = [_, y];
|
|
459
|
+
} else if (r.value[a][d.field_name]) {
|
|
460
|
+
const _ = r.value[a][d.field_name];
|
|
461
|
+
r.value[a][d.field_name] = [_, null];
|
|
452
462
|
} else
|
|
453
|
-
|
|
463
|
+
r.value[a][d.field_name] = [null, null];
|
|
454
464
|
E.some(
|
|
455
|
-
(
|
|
456
|
-
) && (
|
|
465
|
+
(_) => _.value === r.value[a][d.field_name][0]
|
|
466
|
+
) && (r.value[a][d.field_name] = [null, null]);
|
|
457
467
|
}
|
|
458
|
-
v =
|
|
468
|
+
v = l, u("onChangeValue", { model: r.value });
|
|
459
469
|
}, M = P({
|
|
460
470
|
open: !1
|
|
461
471
|
}), T = () => {
|
|
462
472
|
M.open = !0;
|
|
463
|
-
}, Y = (
|
|
464
|
-
e.default_search_condition_config_list.forEach((
|
|
465
|
-
|
|
466
|
-
|
|
473
|
+
}, Y = (l) => {
|
|
474
|
+
e.default_search_condition_config_list.forEach((a, d) => {
|
|
475
|
+
l.new_list.forEach((m, n) => {
|
|
476
|
+
d == n && a.forEach((_) => {
|
|
467
477
|
m.forEach((y) => {
|
|
468
|
-
|
|
478
|
+
_.field_name == y.field_name && (y.value = _.value, y.operator = _.operator);
|
|
469
479
|
});
|
|
470
480
|
});
|
|
471
481
|
});
|
|
472
|
-
}),
|
|
482
|
+
}), u("update_default_search_condition_config_list", { new_list: l.new_list }), M.open = !1;
|
|
473
483
|
}, B = () => {
|
|
474
484
|
M.open = !1;
|
|
475
485
|
}, U = P({
|
|
476
486
|
open: !1
|
|
477
487
|
}), z = () => {
|
|
478
488
|
U.open = !0;
|
|
479
|
-
}, te = (
|
|
480
|
-
e.default_search_condition_config_list.forEach((
|
|
481
|
-
|
|
482
|
-
|
|
489
|
+
}, te = (l) => {
|
|
490
|
+
e.default_search_condition_config_list.forEach((a, d) => {
|
|
491
|
+
l.new_list.forEach((m, n) => {
|
|
492
|
+
d == n && a.forEach((_) => {
|
|
483
493
|
m.forEach((y) => {
|
|
484
|
-
|
|
494
|
+
_.field_name == y.field_name && (y.value = _.value, y.operator = _.operator);
|
|
485
495
|
});
|
|
486
496
|
});
|
|
487
497
|
});
|
|
488
|
-
}),
|
|
489
|
-
},
|
|
498
|
+
}), u("update_default_search_condition_config_list", { new_list: l.new_list }), U.open = !1;
|
|
499
|
+
}, ne = () => {
|
|
490
500
|
U.open = !1;
|
|
491
501
|
}, x = () => {
|
|
492
|
-
K.value = !1, r("search", { model:
|
|
502
|
+
K.value = !1, console.log("condition_model_dict.value", r.value), u("search", { model: r.value });
|
|
493
503
|
}, w = () => {
|
|
494
|
-
var
|
|
495
|
-
e.base_search_condition_config_list.length != 0 && ((
|
|
496
|
-
|
|
497
|
-
var
|
|
498
|
-
(
|
|
499
|
-
|
|
500
|
-
|
|
504
|
+
var l;
|
|
505
|
+
e.base_search_condition_config_list.length != 0 && ((l = e.default_search_condition_config_list) == null || l.forEach((a, d) => {
|
|
506
|
+
t[d] = {}, r.value[d] || (r.value[d] = {}), e.base_search_condition_config_list.forEach((m) => {
|
|
507
|
+
var n;
|
|
508
|
+
(n = m.group) == null || n.forEach((_) => {
|
|
509
|
+
a.forEach((y) => {
|
|
510
|
+
_.field_name == y.field_name && (r.value[d][y.field_name] == null && (h[y.operator] == 1 ? y.value !== void 0 ? r.value[d][y.field_name] = y.value : r.value[d][y.field_name] = null : h[y.operator] == 2 ? y.value !== void 0 ? r.value[d][y.field_name] = y.value : r.value[d][y.field_name] = [null, null] : h[y.operator] == 0 && (y.value !== void 0 ? r.value[d][y.field_name] = y.value : r.value[d][y.field_name] = [])), Object.assign(y, { ..._, operator: y.operator }), y.operator == "eq" && y.mode != "default" ? (_.mode = "default", Object.assign(y, { model: "default" })) : ["in", "notin"].includes(y.operator) && y.mode != "multiple" && (_.mode = "multiple", Object.assign(y, { model: "multiple" })));
|
|
501
511
|
});
|
|
502
512
|
});
|
|
503
513
|
});
|
|
504
514
|
}));
|
|
505
|
-
},
|
|
506
|
-
l[a
|
|
507
|
-
}, k = (
|
|
508
|
-
l[a
|
|
509
|
-
}, me = (
|
|
510
|
-
const
|
|
511
|
-
e.default_search_condition_config_list.forEach((m,
|
|
512
|
-
if (
|
|
513
|
-
|
|
515
|
+
}, t = P({}), le = (l, a) => {
|
|
516
|
+
t[l][a.field_name] = !0;
|
|
517
|
+
}, k = (l, a) => {
|
|
518
|
+
t[l][a.field_name] = !1;
|
|
519
|
+
}, me = (l, a) => {
|
|
520
|
+
const d = [];
|
|
521
|
+
e.default_search_condition_config_list.forEach((m, n) => {
|
|
522
|
+
if (n !== l)
|
|
523
|
+
d.push(m);
|
|
514
524
|
else {
|
|
515
|
-
const
|
|
525
|
+
const _ = [];
|
|
516
526
|
m.forEach((y) => {
|
|
517
|
-
y.field_name !==
|
|
518
|
-
}),
|
|
527
|
+
y.field_name !== a.field_name && _.push(y);
|
|
528
|
+
}), _.length > 0 && d.push(_);
|
|
519
529
|
}
|
|
520
|
-
}),
|
|
521
|
-
}, pe = (
|
|
522
|
-
|
|
523
|
-
}, he = (
|
|
524
|
-
if (
|
|
525
|
-
const
|
|
526
|
-
let
|
|
530
|
+
}), u("update_default_search_condition_config_list", { new_list: d });
|
|
531
|
+
}, pe = (l, a) => {
|
|
532
|
+
r.value[l][a] instanceof Array ? r.value[l][a].length = 0 : r.value[l][a] = null, u("onChangeValue", { model: r.value }), u("delSearch", { model: JSON.parse(JSON.stringify(r.value)) });
|
|
533
|
+
}, he = (l, a, d, m) => {
|
|
534
|
+
if (l instanceof Array && l.length > 0) {
|
|
535
|
+
const n = l[l.length - 1];
|
|
536
|
+
let _ = null;
|
|
527
537
|
if (e.base_search_condition_config_list.forEach((y) => {
|
|
528
538
|
y.group.forEach((q) => {
|
|
529
|
-
if (q.field_name ===
|
|
530
|
-
if (
|
|
531
|
-
|
|
532
|
-
else if (
|
|
533
|
-
const [Q] =
|
|
534
|
-
|
|
539
|
+
if (q.field_name === n) {
|
|
540
|
+
if (_ = JSON.parse(JSON.stringify(q)), _.default_operator)
|
|
541
|
+
_.operator = _.default_operator;
|
|
542
|
+
else if (s(_).length > 0) {
|
|
543
|
+
const [Q] = s(_);
|
|
544
|
+
_.operator = Q;
|
|
535
545
|
}
|
|
536
546
|
}
|
|
537
547
|
});
|
|
538
|
-
}),
|
|
548
|
+
}), _) {
|
|
539
549
|
const y = JSON.parse(JSON.stringify(e.default_search_condition_config_list));
|
|
540
550
|
y.forEach((q, Q) => {
|
|
541
|
-
Q ===
|
|
542
|
-
ye.field_name ==
|
|
551
|
+
Q === a && q.forEach((ye, be) => {
|
|
552
|
+
ye.field_name == d.field_name && be == m && (q.splice(be, 1, _), delete r.value[a][ye.field_name]);
|
|
543
553
|
});
|
|
544
|
-
}),
|
|
554
|
+
}), u("update_default_search_condition_config_list", {
|
|
545
555
|
new_list: y
|
|
546
556
|
});
|
|
547
557
|
}
|
|
548
558
|
w();
|
|
549
559
|
}
|
|
550
|
-
},
|
|
551
|
-
const
|
|
552
|
-
return e.default_search_condition_config_list.forEach((
|
|
553
|
-
|
|
554
|
-
const m =
|
|
555
|
-
e.base_search_condition_config_list.forEach((
|
|
556
|
-
const
|
|
560
|
+
}, oe = ce(() => {
|
|
561
|
+
const l = {};
|
|
562
|
+
return e.default_search_condition_config_list.forEach((a, d) => {
|
|
563
|
+
l[d] = [];
|
|
564
|
+
const m = a.map((n) => n.field_name);
|
|
565
|
+
e.base_search_condition_config_list.forEach((n) => {
|
|
566
|
+
const _ = n.group.filter(
|
|
557
567
|
(q) => !m.includes(q.field_name)
|
|
558
568
|
), y = {
|
|
559
|
-
value:
|
|
560
|
-
label:
|
|
561
|
-
children:
|
|
569
|
+
value: n.name,
|
|
570
|
+
label: n.name,
|
|
571
|
+
children: _.map((q) => ({
|
|
562
572
|
value: q.field_name,
|
|
563
573
|
label: q.label
|
|
564
574
|
}))
|
|
565
575
|
};
|
|
566
|
-
|
|
576
|
+
l[d].push(y);
|
|
567
577
|
});
|
|
568
|
-
}),
|
|
569
|
-
}), ie = (
|
|
570
|
-
const
|
|
571
|
-
if (
|
|
572
|
-
const [m] =
|
|
578
|
+
}), l;
|
|
579
|
+
}), ie = (l, a) => {
|
|
580
|
+
const d = r.value[l][a.field_name];
|
|
581
|
+
if (d instanceof Array) {
|
|
582
|
+
const [m] = d;
|
|
573
583
|
if (ve(m))
|
|
574
584
|
return !0;
|
|
575
|
-
} else if (ve(
|
|
585
|
+
} else if (ve(d))
|
|
576
586
|
return !0;
|
|
577
587
|
return !1;
|
|
578
|
-
},
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
588
|
+
}, o = (l, a) => {
|
|
589
|
+
const d = [], m = r.value[l][a.field_name];
|
|
590
|
+
if (a.operator === "is_or_not_blank_or_null")
|
|
581
591
|
return I(m === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
|
|
582
|
-
if (D.value[
|
|
583
|
-
return `${se(
|
|
584
|
-
if (m instanceof Array &&
|
|
585
|
-
let
|
|
586
|
-
return
|
|
592
|
+
if (D.value[a.field_name] != null)
|
|
593
|
+
return `${se(a.format, a.operator)} ${D.value[a.field_name]}`;
|
|
594
|
+
if (m instanceof Array && a.field_name_list instanceof Array) {
|
|
595
|
+
let n;
|
|
596
|
+
return a.field_name_list && (m instanceof Array ? n = m.join(",") : n = m), `${se(a.format, a.operator)} ${n}`;
|
|
587
597
|
} else {
|
|
588
|
-
if (m instanceof Array &&
|
|
589
|
-
return m.forEach((
|
|
590
|
-
|
|
591
|
-
|
|
598
|
+
if (m instanceof Array && a.options instanceof Array)
|
|
599
|
+
return m.forEach((n) => {
|
|
600
|
+
a.options.forEach((_) => {
|
|
601
|
+
n == _.value && d.push(_.label);
|
|
592
602
|
});
|
|
593
|
-
}), `${se(
|
|
603
|
+
}), `${se(a.format, a.operator)} ${d.join(
|
|
594
604
|
","
|
|
595
605
|
)}`;
|
|
596
606
|
{
|
|
597
|
-
let
|
|
598
|
-
if (
|
|
599
|
-
|
|
600
|
-
m ==
|
|
607
|
+
let n;
|
|
608
|
+
if (a.options)
|
|
609
|
+
a.options.forEach((_) => {
|
|
610
|
+
m == _.value && (n = _.label);
|
|
601
611
|
});
|
|
602
|
-
else if (
|
|
612
|
+
else if (a.type == "monthpicker" && a.dateFormat)
|
|
603
613
|
if (m instanceof Array) {
|
|
604
|
-
const
|
|
614
|
+
const _ = [];
|
|
605
615
|
m.forEach((y) => {
|
|
606
|
-
y ?
|
|
607
|
-
}),
|
|
616
|
+
y ? _.push(Ce(y).format(a.dateFormat)) : _.push(y);
|
|
617
|
+
}), n = _.join(",");
|
|
608
618
|
} else
|
|
609
|
-
|
|
619
|
+
n = Ce(m).format(a.dateFormat);
|
|
610
620
|
else
|
|
611
|
-
|
|
612
|
-
return `${se(
|
|
621
|
+
n = m;
|
|
622
|
+
return `${se(a.format, a.operator)} ${n}`;
|
|
613
623
|
}
|
|
614
624
|
}
|
|
615
625
|
}, c = () => {
|
|
616
|
-
|
|
617
|
-
},
|
|
626
|
+
u("onShowSearchRender");
|
|
627
|
+
}, s = (l) => l.operator_list_selected ? l.operator_list_selected : l.operator_list ? l.operator_list : [];
|
|
618
628
|
return H(
|
|
619
|
-
() =>
|
|
629
|
+
() => r.value,
|
|
620
630
|
() => {
|
|
621
|
-
|
|
631
|
+
u("onChangeValue", { model: r.value });
|
|
622
632
|
},
|
|
623
633
|
{ deep: !0 }
|
|
624
634
|
), H(
|
|
625
635
|
() => e.default_search_condition_config_list,
|
|
626
636
|
() => {
|
|
627
|
-
var
|
|
628
|
-
if (((
|
|
629
|
-
|
|
637
|
+
var l;
|
|
638
|
+
if (((l = e.default_search_condition_config_list) == null ? void 0 : l.length) == 0) {
|
|
639
|
+
u("update_default_search_condition_config_list", {
|
|
630
640
|
new_list: g.value
|
|
631
641
|
});
|
|
632
642
|
return;
|
|
@@ -643,7 +653,7 @@ const ua = /* @__PURE__ */ Z(ta, [["render", ra], ["__scopeId", "data-v-52b515e0
|
|
|
643
653
|
), H(
|
|
644
654
|
() => e.is_clear_model,
|
|
645
655
|
() => {
|
|
646
|
-
e.is_clear_model && (
|
|
656
|
+
e.is_clear_model && (r.value = {}, w(), u("update:is_clear_model", !1));
|
|
647
657
|
}
|
|
648
658
|
), Ue(() => {
|
|
649
659
|
}), w(), {
|
|
@@ -652,7 +662,7 @@ const ua = /* @__PURE__ */ Z(ta, [["render", ra], ["__scopeId", "data-v-52b515e0
|
|
|
652
662
|
isShowForm: K,
|
|
653
663
|
labelModel: D,
|
|
654
664
|
get_operator_type_map: se,
|
|
655
|
-
condition_model_dict:
|
|
665
|
+
condition_model_dict: r,
|
|
656
666
|
addConditionModal: M,
|
|
657
667
|
handleAddConditions: T,
|
|
658
668
|
handleAddConditionOk: Y,
|
|
@@ -662,34 +672,34 @@ const ua = /* @__PURE__ */ Z(ta, [["render", ra], ["__scopeId", "data-v-52b515e0
|
|
|
662
672
|
handleSearch: x,
|
|
663
673
|
addConditionGroupModal: U,
|
|
664
674
|
handleAddGroupConditionOK: te,
|
|
665
|
-
handleAddGroupConditionCancel:
|
|
675
|
+
handleAddGroupConditionCancel: ne,
|
|
666
676
|
validateInfos: F,
|
|
667
|
-
deleteBtnDict:
|
|
668
|
-
handleMouseEnter:
|
|
677
|
+
deleteBtnDict: t,
|
|
678
|
+
handleMouseEnter: le,
|
|
669
679
|
handleMouseLeave: k,
|
|
670
680
|
handleDeleteFormItem: me,
|
|
671
681
|
handleDelSearch: pe,
|
|
672
|
-
searchItemOptionsDict:
|
|
682
|
+
searchItemOptionsDict: oe,
|
|
673
683
|
onChangeSearchItem: he,
|
|
674
|
-
transferValueFunc:
|
|
684
|
+
transferValueFunc: o,
|
|
675
685
|
isShowSearchTag: ie,
|
|
676
686
|
handleShowSearchRender: c,
|
|
677
687
|
options_eq: E,
|
|
678
|
-
get_operator_list_selected:
|
|
688
|
+
get_operator_list_selected: s,
|
|
679
689
|
is_or_not_blank_or_null_options: V
|
|
680
690
|
};
|
|
681
691
|
}
|
|
682
692
|
});
|
|
683
|
-
const Ae = (e) => (Ie("data-v-
|
|
693
|
+
const Ae = (e) => (Ie("data-v-f8102d16"), e = e(), Ve(), e), fl = /* @__PURE__ */ Ae(() => /* @__PURE__ */ A("span", { class: "expand-btn" }, "展开", -1)), cl = { class: "card" }, ml = {
|
|
684
694
|
key: 0,
|
|
685
695
|
class: "condition-group"
|
|
686
|
-
},
|
|
687
|
-
function
|
|
688
|
-
const
|
|
689
|
-
return
|
|
690
|
-
e.is_massage_default ? R("", !0) : (
|
|
696
|
+
}, pl = { style: { width: "315px", height: "40px" } }, hl = /* @__PURE__ */ Ae(() => /* @__PURE__ */ A("div", { class: "range" }, "~", -1)), vl = { class: "close-icon" }, gl = { class: "search-bar" };
|
|
697
|
+
function yl(e, u, K, D, I, E) {
|
|
698
|
+
const r = C("a-button"), F = C("a-space"), g = C("a-tag"), V = C("close-outlined"), h = C("a-cascader"), f = C("a-tooltip"), v = C("a-select-option"), b = C("a-select"), M = C("field-render-2"), T = C("a-flex"), Y = C("close-circle-outlined"), B = C("a-input-group"), U = C("a-space-compact"), z = C("a-divider"), te = C("add-condition-modal"), ne = C("add-condition-group-modal");
|
|
699
|
+
return i(), $(j, null, [
|
|
700
|
+
e.is_massage_default ? R("", !0) : (i(), O(F, { key: 0 }, {
|
|
691
701
|
default: p(() => [
|
|
692
|
-
e.is_show_normal_search ? (
|
|
702
|
+
e.is_show_normal_search ? (i(), O(r, {
|
|
693
703
|
key: 0,
|
|
694
704
|
type: "link",
|
|
695
705
|
onClick: e.handleShowSearchRender
|
|
@@ -699,10 +709,10 @@ function ya(e, r, K, D, I, E) {
|
|
|
699
709
|
]),
|
|
700
710
|
_: 1
|
|
701
711
|
}, 8, ["onClick"])) : R("", !0),
|
|
702
|
-
e.isShowForm ? (
|
|
712
|
+
e.isShowForm ? (i(), O(r, {
|
|
703
713
|
key: 2,
|
|
704
714
|
type: "link",
|
|
705
|
-
onClick:
|
|
715
|
+
onClick: u[1] || (u[1] = () => {
|
|
706
716
|
e.isShowForm = !1, e.$emit("resize");
|
|
707
717
|
})
|
|
708
718
|
}, {
|
|
@@ -710,15 +720,15 @@ function ya(e, r, K, D, I, E) {
|
|
|
710
720
|
J(" 隐藏 ")
|
|
711
721
|
]),
|
|
712
722
|
_: 1
|
|
713
|
-
})) : (
|
|
723
|
+
})) : (i(), O(r, {
|
|
714
724
|
key: 1,
|
|
715
725
|
type: "link",
|
|
716
|
-
onClick:
|
|
726
|
+
onClick: u[0] || (u[0] = () => {
|
|
717
727
|
e.isShowForm = !0, e.$emit("resize");
|
|
718
728
|
})
|
|
719
729
|
}, {
|
|
720
730
|
default: p(() => [
|
|
721
|
-
|
|
731
|
+
fl
|
|
722
732
|
]),
|
|
723
733
|
_: 1
|
|
724
734
|
}))
|
|
@@ -726,87 +736,87 @@ function ya(e, r, K, D, I, E) {
|
|
|
726
736
|
_: 1
|
|
727
737
|
})),
|
|
728
738
|
re(A("span", null, [
|
|
729
|
-
(
|
|
739
|
+
(i(!0), $(j, null, N(e.default_search_condition_config_list, (x, w) => (i(), $("span", { key: w }, [
|
|
730
740
|
S(g, null, {
|
|
731
741
|
default: p(() => [
|
|
732
742
|
J("条件组" + G(w + 1) + ":", 1)
|
|
733
743
|
]),
|
|
734
744
|
_: 2
|
|
735
745
|
}, 1024),
|
|
736
|
-
(
|
|
737
|
-
key:
|
|
746
|
+
(i(!0), $(j, null, N(x, (t) => (i(), $("span", {
|
|
747
|
+
key: t.field_name
|
|
738
748
|
}, [
|
|
739
749
|
re(S(g, { color: "green" }, {
|
|
740
750
|
default: p(() => [
|
|
741
|
-
J(G(
|
|
751
|
+
J(G(t.label) + ": " + G(e.transferValueFunc(w, t)) + " ", 1),
|
|
742
752
|
S(V, {
|
|
743
753
|
style: { cursor: "pointer", "margin-left": "5px" },
|
|
744
|
-
onClick: (
|
|
754
|
+
onClick: (le) => e.handleDelSearch(w, t.field_name)
|
|
745
755
|
}, null, 8, ["onClick"])
|
|
746
756
|
]),
|
|
747
757
|
_: 2
|
|
748
758
|
}, 1536), [
|
|
749
|
-
[ue, e.isShowSearchTag(w,
|
|
759
|
+
[ue, e.isShowSearchTag(w, t)]
|
|
750
760
|
])
|
|
751
761
|
]))), 128))
|
|
752
762
|
]))), 128))
|
|
753
763
|
], 512), [
|
|
754
764
|
[ue, !e.isShowForm]
|
|
755
765
|
]),
|
|
756
|
-
re(A("div",
|
|
757
|
-
(
|
|
758
|
-
e.default_search_condition_config_list.length > 1 ? (
|
|
766
|
+
re(A("div", cl, [
|
|
767
|
+
(i(!0), $(j, null, N(e.default_search_condition_config_list, (x, w) => (i(), $("div", { key: w }, [
|
|
768
|
+
e.default_search_condition_config_list.length > 1 ? (i(), $("div", ml, " 条件组 " + G(w + 1), 1)) : R("", !0),
|
|
759
769
|
S(F, {
|
|
760
770
|
wrap: !0,
|
|
761
771
|
align: "center",
|
|
762
772
|
size: 0
|
|
763
773
|
}, {
|
|
764
774
|
default: p(() => [
|
|
765
|
-
(
|
|
775
|
+
(i(!0), $(j, null, N(x, (t, le) => (i(), O(U, {
|
|
766
776
|
block: "",
|
|
767
|
-
key:
|
|
777
|
+
key: t.field_name,
|
|
768
778
|
size: "middle",
|
|
769
|
-
onMouseenter: (k) => e.handleMouseEnter(w,
|
|
770
|
-
onMouseleave: (k) => e.handleMouseLeave(w,
|
|
779
|
+
onMouseenter: (k) => e.handleMouseEnter(w, t),
|
|
780
|
+
onMouseleave: (k) => e.handleMouseLeave(w, t)
|
|
771
781
|
}, {
|
|
772
782
|
default: p(() => [
|
|
773
783
|
S(B, { compact: "" }, {
|
|
774
784
|
default: p(() => [
|
|
775
|
-
S(
|
|
776
|
-
title:
|
|
785
|
+
S(f, {
|
|
786
|
+
title: t.label
|
|
777
787
|
}, {
|
|
778
788
|
default: p(() => [
|
|
779
789
|
S(h, {
|
|
780
|
-
value:
|
|
790
|
+
value: t.label,
|
|
781
791
|
style: { width: "125px" },
|
|
782
792
|
options: e.searchItemOptionsDict[w],
|
|
783
793
|
showSearch: "",
|
|
784
794
|
allowClear: !1,
|
|
785
795
|
placeholder: "请选择...",
|
|
786
|
-
onChange: (k) => e.onChangeSearchItem(k, w,
|
|
796
|
+
onChange: (k) => e.onChangeSearchItem(k, w, t, le)
|
|
787
797
|
}, null, 8, ["value", "options", "onChange"])
|
|
788
798
|
]),
|
|
789
799
|
_: 2
|
|
790
800
|
}, 1032, ["title"]),
|
|
791
|
-
S(
|
|
792
|
-
title: e.get_operator_type_map(
|
|
801
|
+
S(f, {
|
|
802
|
+
title: e.get_operator_type_map(t.format, t.operator)
|
|
793
803
|
}, {
|
|
794
804
|
default: p(() => [
|
|
795
|
-
e.get_operator_list_selected(
|
|
805
|
+
e.get_operator_list_selected(t).length > 0 ? (i(), O(b, {
|
|
796
806
|
key: 0,
|
|
797
807
|
dropdownMatchSelectWidth: !1,
|
|
798
|
-
value:
|
|
799
|
-
"onUpdate:value": (k) =>
|
|
800
|
-
onChange: (k) => e.onChangeOperator(k, w,
|
|
808
|
+
value: t.operator,
|
|
809
|
+
"onUpdate:value": (k) => t.operator = k,
|
|
810
|
+
onChange: (k) => e.onChangeOperator(k, w, t),
|
|
801
811
|
style: { width: "100px" }
|
|
802
812
|
}, {
|
|
803
813
|
default: p(() => [
|
|
804
|
-
(
|
|
814
|
+
(i(!0), $(j, null, N(e.get_operator_list_selected(t), (k) => (i(), O(v, {
|
|
805
815
|
value: k,
|
|
806
816
|
key: k
|
|
807
817
|
}, {
|
|
808
818
|
default: p(() => [
|
|
809
|
-
J(G(e.get_operator_type_map(
|
|
819
|
+
J(G(e.get_operator_type_map(t.format, k)), 1)
|
|
810
820
|
]),
|
|
811
821
|
_: 2
|
|
812
822
|
}, 1032, ["value"]))), 128))
|
|
@@ -816,71 +826,89 @@ function ya(e, r, K, D, I, E) {
|
|
|
816
826
|
]),
|
|
817
827
|
_: 2
|
|
818
828
|
}, 1032, ["title"]),
|
|
819
|
-
A("span",
|
|
820
|
-
["
|
|
821
|
-
|
|
822
|
-
|
|
829
|
+
A("span", pl, [
|
|
830
|
+
["is_or_not_blank_or_null", "is_or_not_null"].includes(t.operator) ? (i(), O(M, {
|
|
831
|
+
key: 0,
|
|
832
|
+
is_show_label: !1,
|
|
833
|
+
label: e.labelModel[t.field_name],
|
|
834
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
835
|
+
value: e.condition_model_dict[w][t.field_name],
|
|
836
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name] = k,
|
|
837
|
+
field: {
|
|
838
|
+
...t,
|
|
839
|
+
type: "select",
|
|
840
|
+
mode: "default",
|
|
841
|
+
format: "choices",
|
|
842
|
+
class_name: "str",
|
|
843
|
+
placeholder: ""
|
|
844
|
+
},
|
|
845
|
+
formModel: e.condition_model_dict[w],
|
|
846
|
+
options: e.is_or_not_blank_or_null_options,
|
|
847
|
+
validateInfos: e.validateInfos
|
|
848
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : ["input"].includes(t.format) ? (i(), $(j, { key: 1 }, [
|
|
849
|
+
t.operator === "between" || t.operator === "notbetween" ? (i(), $(j, { key: 0 }, [
|
|
850
|
+
t.type === "datepicker" ? (i(), O(M, {
|
|
823
851
|
key: 0,
|
|
824
852
|
is_show_label: !1,
|
|
825
|
-
label: e.labelModel[
|
|
826
|
-
"onUpdate:label": (k) => e.labelModel[
|
|
827
|
-
value: e.condition_model_dict[w][
|
|
828
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][
|
|
829
|
-
field: { ...
|
|
853
|
+
label: e.labelModel[t.field_name],
|
|
854
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
855
|
+
value: e.condition_model_dict[w][t.field_name],
|
|
856
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name] = k,
|
|
857
|
+
field: { ...t, type: "rangepicker", format: t.dateFormat },
|
|
830
858
|
formModel: e.condition_model_dict[w],
|
|
831
|
-
options:
|
|
859
|
+
options: t.options,
|
|
832
860
|
validateInfos: e.validateInfos
|
|
833
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
861
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : t.type === "monthpicker" ? (i(), O(M, {
|
|
834
862
|
key: 1,
|
|
835
863
|
is_show_label: !1,
|
|
836
|
-
label: e.labelModel[
|
|
837
|
-
"onUpdate:label": (k) => e.labelModel[
|
|
838
|
-
value: e.condition_model_dict[w][
|
|
839
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][
|
|
864
|
+
label: e.labelModel[t.field_name],
|
|
865
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
866
|
+
value: e.condition_model_dict[w][t.field_name],
|
|
867
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name] = k,
|
|
840
868
|
field: {
|
|
841
|
-
...
|
|
869
|
+
...t,
|
|
842
870
|
type: "monthrangepicker"
|
|
843
871
|
},
|
|
844
872
|
formModel: e.condition_model_dict[w],
|
|
845
|
-
options:
|
|
873
|
+
options: t.options,
|
|
846
874
|
validateInfos: e.validateInfos
|
|
847
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (
|
|
875
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (i(), O(T, { key: 2 }, {
|
|
848
876
|
default: p(() => [
|
|
849
877
|
S(M, {
|
|
850
878
|
is_show_label: !1,
|
|
851
|
-
label: e.labelModel[
|
|
852
|
-
"onUpdate:label": (k) => e.labelModel[
|
|
853
|
-
value: e.condition_model_dict[w][
|
|
854
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][
|
|
855
|
-
field:
|
|
879
|
+
label: e.labelModel[t.field_name],
|
|
880
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
881
|
+
value: e.condition_model_dict[w][t.field_name][0],
|
|
882
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name][0] = k,
|
|
883
|
+
field: t,
|
|
856
884
|
formModel: e.condition_model_dict[w],
|
|
857
|
-
options:
|
|
885
|
+
options: t.options,
|
|
858
886
|
validateInfos: e.validateInfos
|
|
859
887
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"]),
|
|
860
|
-
|
|
888
|
+
hl,
|
|
861
889
|
S(M, {
|
|
862
890
|
is_show_label: !1,
|
|
863
|
-
label: e.labelModel[
|
|
864
|
-
"onUpdate:label": (k) => e.labelModel[
|
|
865
|
-
value: e.condition_model_dict[w][
|
|
866
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][
|
|
867
|
-
field:
|
|
891
|
+
label: e.labelModel[t.field_name],
|
|
892
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
893
|
+
value: e.condition_model_dict[w][t.field_name][1],
|
|
894
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name][1] = k,
|
|
895
|
+
field: t,
|
|
868
896
|
formModel: e.condition_model_dict[w],
|
|
869
|
-
options:
|
|
897
|
+
options: t.options,
|
|
870
898
|
validateInfos: e.validateInfos
|
|
871
899
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])
|
|
872
900
|
]),
|
|
873
901
|
_: 2
|
|
874
902
|
}, 1024))
|
|
875
|
-
], 64)) :
|
|
903
|
+
], 64)) : t.operator === "_eq" ? (i(), O(M, {
|
|
876
904
|
key: 1,
|
|
877
905
|
is_show_label: !1,
|
|
878
|
-
label: e.labelModel[
|
|
879
|
-
"onUpdate:label": (k) => e.labelModel[
|
|
880
|
-
value: e.condition_model_dict[w][
|
|
881
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][
|
|
906
|
+
label: e.labelModel[t.field_name],
|
|
907
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
908
|
+
value: e.condition_model_dict[w][t.field_name],
|
|
909
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name] = k,
|
|
882
910
|
field: {
|
|
883
|
-
...
|
|
911
|
+
...t,
|
|
884
912
|
type: "select",
|
|
885
913
|
mode: "default",
|
|
886
914
|
format: "choices",
|
|
@@ -890,81 +918,63 @@ function ya(e, r, K, D, I, E) {
|
|
|
890
918
|
formModel: e.condition_model_dict[w],
|
|
891
919
|
options: e.options_eq,
|
|
892
920
|
validateInfos: e.validateInfos
|
|
893
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
921
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : t.type === "datepicker" || t.type === "monthpicker" ? (i(), O(M, {
|
|
894
922
|
key: 2,
|
|
895
923
|
is_show_label: !1,
|
|
896
|
-
label: e.labelModel[
|
|
897
|
-
"onUpdate:label": (k) => e.labelModel[
|
|
898
|
-
value: e.condition_model_dict[w][
|
|
899
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][
|
|
900
|
-
field: {
|
|
901
|
-
...l,
|
|
902
|
-
type: "select",
|
|
903
|
-
mode: "default",
|
|
904
|
-
format: "choices",
|
|
905
|
-
class_name: "str",
|
|
906
|
-
placeholder: ""
|
|
907
|
-
},
|
|
924
|
+
label: e.labelModel[t.field_name],
|
|
925
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
926
|
+
value: e.condition_model_dict[w][t.field_name],
|
|
927
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name] = k,
|
|
928
|
+
field: { ...t, format: t.dateFormat },
|
|
908
929
|
formModel: e.condition_model_dict[w],
|
|
909
|
-
options:
|
|
930
|
+
options: t.options,
|
|
910
931
|
validateInfos: e.validateInfos
|
|
911
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
932
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (i(), O(M, {
|
|
912
933
|
key: 3,
|
|
913
934
|
is_show_label: !1,
|
|
914
|
-
label: e.labelModel[
|
|
915
|
-
"onUpdate:label": (k) => e.labelModel[
|
|
916
|
-
value: e.condition_model_dict[w][
|
|
917
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][
|
|
918
|
-
field:
|
|
919
|
-
formModel: e.condition_model_dict[w],
|
|
920
|
-
options: l.options,
|
|
921
|
-
validateInfos: e.validateInfos
|
|
922
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (s(), O(M, {
|
|
923
|
-
key: 4,
|
|
924
|
-
is_show_label: !1,
|
|
925
|
-
label: e.labelModel[l.field_name],
|
|
926
|
-
"onUpdate:label": (k) => e.labelModel[l.field_name] = k,
|
|
927
|
-
value: e.condition_model_dict[w][l.field_name],
|
|
928
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][l.field_name] = k,
|
|
929
|
-
field: l,
|
|
935
|
+
label: e.labelModel[t.field_name],
|
|
936
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
937
|
+
value: e.condition_model_dict[w][t.field_name],
|
|
938
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name] = k,
|
|
939
|
+
field: t,
|
|
930
940
|
formModel: e.condition_model_dict[w],
|
|
931
|
-
options:
|
|
941
|
+
options: t.options,
|
|
932
942
|
validateInfos: e.validateInfos
|
|
933
943
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"]))
|
|
934
|
-
], 64)) : ["choices", "remote"].includes(
|
|
935
|
-
|
|
944
|
+
], 64)) : ["choices", "remote"].includes(t.format) ? (i(), $(j, { key: 2 }, [
|
|
945
|
+
t.format === "choices" ? (i(), O(M, {
|
|
936
946
|
key: 0,
|
|
937
947
|
is_show_label: !1,
|
|
938
|
-
label: e.labelModel[
|
|
939
|
-
"onUpdate:label": (k) => e.labelModel[
|
|
940
|
-
value: e.condition_model_dict[w][
|
|
941
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][
|
|
942
|
-
field:
|
|
948
|
+
label: e.labelModel[t.field_name],
|
|
949
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
950
|
+
value: e.condition_model_dict[w][t.field_name],
|
|
951
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name] = k,
|
|
952
|
+
field: t,
|
|
943
953
|
formModel: e.condition_model_dict[w],
|
|
944
|
-
options:
|
|
954
|
+
options: t.options,
|
|
945
955
|
validateInfos: e.validateInfos
|
|
946
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
956
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : t.format === "remote" ? (i(), O(M, {
|
|
947
957
|
key: 1,
|
|
948
958
|
is_show_label: !1,
|
|
949
|
-
label: e.labelModel[
|
|
950
|
-
"onUpdate:label": (k) => e.labelModel[
|
|
951
|
-
value: e.condition_model_dict[w][
|
|
952
|
-
"onUpdate:value": (k) => e.condition_model_dict[w][
|
|
953
|
-
field: { ...
|
|
959
|
+
label: e.labelModel[t.field_name],
|
|
960
|
+
"onUpdate:label": (k) => e.labelModel[t.field_name] = k,
|
|
961
|
+
value: e.condition_model_dict[w][t.field_name],
|
|
962
|
+
"onUpdate:value": (k) => e.condition_model_dict[w][t.field_name] = k,
|
|
963
|
+
field: { ...t, name: t == null ? void 0 : t.field_name },
|
|
954
964
|
formModel: e.condition_model_dict[w],
|
|
955
|
-
options:
|
|
965
|
+
options: t.options,
|
|
956
966
|
validateInfos: e.validateInfos
|
|
957
967
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : R("", !0)
|
|
958
968
|
], 64)) : R("", !0)
|
|
959
969
|
]),
|
|
960
|
-
A("span",
|
|
961
|
-
e.deleteBtnDict[w][
|
|
970
|
+
A("span", vl, [
|
|
971
|
+
e.deleteBtnDict[w][t.field_name] && (e.default_search_condition_config_list[0].length > 1 || e.default_search_condition_config_list.length > 1) && !e.is_massage_default ? (i(), O(f, {
|
|
962
972
|
key: 0,
|
|
963
973
|
title: "删除此条件"
|
|
964
974
|
}, {
|
|
965
975
|
default: p(() => [
|
|
966
976
|
S(Y, {
|
|
967
|
-
onClick: (k) => e.handleDeleteFormItem(w,
|
|
977
|
+
onClick: (k) => e.handleDeleteFormItem(w, t)
|
|
968
978
|
}, null, 8, ["onClick"])
|
|
969
979
|
]),
|
|
970
980
|
_: 2
|
|
@@ -979,7 +989,7 @@ function ya(e, r, K, D, I, E) {
|
|
|
979
989
|
]),
|
|
980
990
|
_: 2
|
|
981
991
|
}, 1024),
|
|
982
|
-
e.default_search_condition_config_list.length > 1 && w != e.default_search_condition_config_list.length - 1 ? (
|
|
992
|
+
e.default_search_condition_config_list.length > 1 && w != e.default_search_condition_config_list.length - 1 ? (i(), O(z, {
|
|
983
993
|
key: 1,
|
|
984
994
|
class: "divider",
|
|
985
995
|
style: { margin: "0" }
|
|
@@ -993,10 +1003,10 @@ function ya(e, r, K, D, I, E) {
|
|
|
993
1003
|
], 512), [
|
|
994
1004
|
[ue, e.isShowForm]
|
|
995
1005
|
]),
|
|
996
|
-
re(A("div",
|
|
1006
|
+
re(A("div", gl, [
|
|
997
1007
|
S(F, null, {
|
|
998
1008
|
default: p(() => [
|
|
999
|
-
S(
|
|
1009
|
+
S(r, {
|
|
1000
1010
|
size: "small",
|
|
1001
1011
|
type: "primary",
|
|
1002
1012
|
onClick: e.handleAddConditions
|
|
@@ -1006,7 +1016,7 @@ function ya(e, r, K, D, I, E) {
|
|
|
1006
1016
|
]),
|
|
1007
1017
|
_: 1
|
|
1008
1018
|
}, 8, ["onClick"]),
|
|
1009
|
-
S(
|
|
1019
|
+
S(r, {
|
|
1010
1020
|
size: "small",
|
|
1011
1021
|
type: "primary",
|
|
1012
1022
|
onClick: e.handleAddGroupCondition
|
|
@@ -1016,7 +1026,7 @@ function ya(e, r, K, D, I, E) {
|
|
|
1016
1026
|
]),
|
|
1017
1027
|
_: 1
|
|
1018
1028
|
}, 8, ["onClick"]),
|
|
1019
|
-
S(
|
|
1029
|
+
S(r, {
|
|
1020
1030
|
size: "small",
|
|
1021
1031
|
type: "primary",
|
|
1022
1032
|
onClick: e.handleSearch
|
|
@@ -1032,7 +1042,7 @@ function ya(e, r, K, D, I, E) {
|
|
|
1032
1042
|
], 512), [
|
|
1033
1043
|
[ue, e.isShowForm && !e.is_massage_default]
|
|
1034
1044
|
]),
|
|
1035
|
-
e.addConditionModal.open ? (
|
|
1045
|
+
e.addConditionModal.open ? (i(), O(te, {
|
|
1036
1046
|
key: 1,
|
|
1037
1047
|
open: e.addConditionModal.open,
|
|
1038
1048
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
@@ -1040,7 +1050,7 @@ function ya(e, r, K, D, I, E) {
|
|
|
1040
1050
|
onOk: e.handleAddConditionOk,
|
|
1041
1051
|
onCancel: e.handleAddConditionCancel
|
|
1042
1052
|
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : R("", !0),
|
|
1043
|
-
e.addConditionGroupModal.open ? (
|
|
1053
|
+
e.addConditionGroupModal.open ? (i(), O(ne, {
|
|
1044
1054
|
key: 2,
|
|
1045
1055
|
open: e.addConditionGroupModal.open,
|
|
1046
1056
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
@@ -1050,7 +1060,7 @@ function ya(e, r, K, D, I, E) {
|
|
|
1050
1060
|
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : R("", !0)
|
|
1051
1061
|
], 64);
|
|
1052
1062
|
}
|
|
1053
|
-
const
|
|
1063
|
+
const va = /* @__PURE__ */ Z(_l, [["render", yl], ["__scopeId", "data-v-f8102d16"]]), bl = X({
|
|
1054
1064
|
name: "FormRender3",
|
|
1055
1065
|
components: {
|
|
1056
1066
|
FieldRender2: Fe
|
|
@@ -1082,7 +1092,7 @@ const vl = /* @__PURE__ */ Z(_a, [["render", ya], ["__scopeId", "data-v-2f0260fd
|
|
|
1082
1092
|
}
|
|
1083
1093
|
},
|
|
1084
1094
|
emits: ["update_model", "update_model"],
|
|
1085
|
-
setup(e, { emit:
|
|
1095
|
+
setup(e, { emit: u }) {
|
|
1086
1096
|
if (e.form.watch)
|
|
1087
1097
|
for (let E in e.form.watch)
|
|
1088
1098
|
H(
|
|
@@ -1094,17 +1104,17 @@ const vl = /* @__PURE__ */ Z(_a, [["render", ya], ["__scopeId", "data-v-2f0260fd
|
|
|
1094
1104
|
return {
|
|
1095
1105
|
validate: () => e.form.validate(),
|
|
1096
1106
|
onUpdateModel: (E) => {
|
|
1097
|
-
|
|
1107
|
+
u("update_model", E);
|
|
1098
1108
|
},
|
|
1099
1109
|
onUpdateName2: (E) => {
|
|
1100
|
-
|
|
1110
|
+
u("update_model", E);
|
|
1101
1111
|
}
|
|
1102
1112
|
};
|
|
1103
1113
|
}
|
|
1104
1114
|
});
|
|
1105
|
-
function
|
|
1106
|
-
const
|
|
1107
|
-
return
|
|
1115
|
+
function wl(e, u, K, D, I, E) {
|
|
1116
|
+
const r = C("field-render-2"), F = C("a-col"), g = C("a-row"), V = C("a-card"), h = C("a-form");
|
|
1117
|
+
return i(), O(h, {
|
|
1108
1118
|
ref: "form",
|
|
1109
1119
|
autocomplete: "off",
|
|
1110
1120
|
model: e.model,
|
|
@@ -1115,7 +1125,7 @@ function wa(e, r, K, D, I, E) {
|
|
|
1115
1125
|
validateTrigger: !1
|
|
1116
1126
|
}, {
|
|
1117
1127
|
default: p(() => [
|
|
1118
|
-
(
|
|
1128
|
+
(i(!0), $(j, null, N(e.form.dynamicFieldList, (f, v) => (i(), O(V, {
|
|
1119
1129
|
key: v,
|
|
1120
1130
|
"body-style": { padding: "10px 10px 0" },
|
|
1121
1131
|
style: { "margin-bottom": "5px" }
|
|
@@ -1126,7 +1136,7 @@ function wa(e, r, K, D, I, E) {
|
|
|
1126
1136
|
type: "flex"
|
|
1127
1137
|
}, {
|
|
1128
1138
|
default: p(() => [
|
|
1129
|
-
(
|
|
1139
|
+
(i(!0), $(j, null, N(f == null ? void 0 : f.children, (b, M) => (i(), O(F, {
|
|
1130
1140
|
key: M,
|
|
1131
1141
|
span: b.is_show_field ? b.span !== void 0 ? b.span : 24 : 0,
|
|
1132
1142
|
offset: b.offset,
|
|
@@ -1134,7 +1144,7 @@ function wa(e, r, K, D, I, E) {
|
|
|
1134
1144
|
pull: b.pull
|
|
1135
1145
|
}, {
|
|
1136
1146
|
default: p(() => [
|
|
1137
|
-
(
|
|
1147
|
+
(i(), O(r, {
|
|
1138
1148
|
value: e.model[b.name],
|
|
1139
1149
|
"onUpdate:value": (T) => e.model[b.name] = T,
|
|
1140
1150
|
is_show_field: b.is_show_field,
|
|
@@ -1157,10 +1167,10 @@ function wa(e, r, K, D, I, E) {
|
|
|
1157
1167
|
]),
|
|
1158
1168
|
_: 2
|
|
1159
1169
|
}, [
|
|
1160
|
-
|
|
1170
|
+
f.group_name && f.group_name !== "默认参数组" ? {
|
|
1161
1171
|
name: "title",
|
|
1162
1172
|
fn: p(() => [
|
|
1163
|
-
J(G(
|
|
1173
|
+
J(G(f.group_name), 1)
|
|
1164
1174
|
]),
|
|
1165
1175
|
key: "0"
|
|
1166
1176
|
} : void 0
|
|
@@ -1169,7 +1179,7 @@ function wa(e, r, K, D, I, E) {
|
|
|
1169
1179
|
_: 1
|
|
1170
1180
|
}, 8, ["model", "rules", "layout"]);
|
|
1171
1181
|
}
|
|
1172
|
-
const
|
|
1182
|
+
const ga = /* @__PURE__ */ Z(bl, [["render", wl], ["__scopeId", "data-v-1f94c291"]]), kl = X({
|
|
1173
1183
|
name: "FormRender",
|
|
1174
1184
|
components: {},
|
|
1175
1185
|
props: {
|
|
@@ -1193,11 +1203,11 @@ const gl = /* @__PURE__ */ Z(ba, [["render", wa], ["__scopeId", "data-v-1f94c291
|
|
|
1193
1203
|
},
|
|
1194
1204
|
setup(e) {
|
|
1195
1205
|
if (e.form.watch)
|
|
1196
|
-
for (const
|
|
1206
|
+
for (const u in e.form.watch)
|
|
1197
1207
|
H(
|
|
1198
|
-
() => e.model[
|
|
1208
|
+
() => e.model[u],
|
|
1199
1209
|
() => {
|
|
1200
|
-
e.form.watch[
|
|
1210
|
+
e.form.watch[u](e.model, e.form);
|
|
1201
1211
|
}
|
|
1202
1212
|
);
|
|
1203
1213
|
},
|
|
@@ -1224,14 +1234,14 @@ const gl = /* @__PURE__ */ Z(ba, [["render", wa], ["__scopeId", "data-v-1f94c291
|
|
|
1224
1234
|
},
|
|
1225
1235
|
created() {
|
|
1226
1236
|
let e = 0;
|
|
1227
|
-
this.form.settings.col && this.form.settings.col.length > 0 && this.form.settings.col.forEach((
|
|
1228
|
-
e = e +
|
|
1237
|
+
this.form.settings.col && this.form.settings.col.length > 0 && this.form.settings.col.forEach((u, K) => {
|
|
1238
|
+
e = e + u, K === 0 ? this.fieldList.push([0, e]) : this.fieldList.push([e - u, e]);
|
|
1229
1239
|
});
|
|
1230
1240
|
}
|
|
1231
1241
|
});
|
|
1232
|
-
function
|
|
1233
|
-
const
|
|
1234
|
-
return
|
|
1242
|
+
function Cl(e, u, K, D, I, E) {
|
|
1243
|
+
const r = C("field-render"), F = C("a-col"), g = C("a-row"), V = C("a-form");
|
|
1244
|
+
return i(), O(V, {
|
|
1235
1245
|
ref: "form",
|
|
1236
1246
|
autocomplete: "off",
|
|
1237
1247
|
model: e.model,
|
|
@@ -1249,7 +1259,7 @@ function Ca(e, r, K, D, I, E) {
|
|
|
1249
1259
|
style: { margin: "0" }
|
|
1250
1260
|
}, {
|
|
1251
1261
|
default: p(() => [
|
|
1252
|
-
e.form.settings.col && e.form.settings.col.length > 0 ? (
|
|
1262
|
+
e.form.settings.col && e.form.settings.col.length > 0 ? (i(!0), $(j, { key: 0 }, N(e.fieldList, (h) => (i(), O(F, {
|
|
1253
1263
|
xl: 24 / e.fieldList.length,
|
|
1254
1264
|
lg: 24,
|
|
1255
1265
|
md: 24,
|
|
@@ -1257,19 +1267,19 @@ function Ca(e, r, K, D, I, E) {
|
|
|
1257
1267
|
xs: 24
|
|
1258
1268
|
}, {
|
|
1259
1269
|
default: p(() => [
|
|
1260
|
-
(
|
|
1261
|
-
value: e.model[
|
|
1262
|
-
"onUpdate:value": (v) => e.model[
|
|
1263
|
-
field:
|
|
1270
|
+
(i(!0), $(j, null, N(e.form.fields.slice(h[0], h[1]), (f) => (i(), O(r, {
|
|
1271
|
+
value: e.model[f.name],
|
|
1272
|
+
"onUpdate:value": (v) => e.model[f.name] = v,
|
|
1273
|
+
field: f,
|
|
1264
1274
|
formModel: e.model,
|
|
1265
|
-
key:
|
|
1275
|
+
key: f.name,
|
|
1266
1276
|
validateInfos: e.validateInfos,
|
|
1267
|
-
options: e.options[
|
|
1277
|
+
options: e.options[f.datasource ? f.datasource : f.name]
|
|
1268
1278
|
}, null, 8, ["value", "onUpdate:value", "field", "formModel", "validateInfos", "options"]))), 128))
|
|
1269
1279
|
]),
|
|
1270
1280
|
_: 2
|
|
1271
1281
|
}, 1032, ["xl"]))), 256)) : R("", !0),
|
|
1272
|
-
!e.form.settings.col || e.form.settings.col.length === 0 ? (
|
|
1282
|
+
!e.form.settings.col || e.form.settings.col.length === 0 ? (i(), O(F, {
|
|
1273
1283
|
key: 1,
|
|
1274
1284
|
xl: 24,
|
|
1275
1285
|
lg: 24,
|
|
@@ -1278,20 +1288,20 @@ function Ca(e, r, K, D, I, E) {
|
|
|
1278
1288
|
xs: 24
|
|
1279
1289
|
}, {
|
|
1280
1290
|
default: p(() => [
|
|
1281
|
-
(
|
|
1282
|
-
h.name2 ? (
|
|
1291
|
+
(i(!0), $(j, null, N(e.form.fields, (h) => (i(), $(j, null, [
|
|
1292
|
+
h.name2 ? (i(), O(r, {
|
|
1283
1293
|
value: e.model[h.name],
|
|
1284
|
-
"onUpdate:value": (
|
|
1294
|
+
"onUpdate:value": (f) => e.model[h.name] = f,
|
|
1285
1295
|
label: e.model[h.name2],
|
|
1286
|
-
"onUpdate:label": (
|
|
1296
|
+
"onUpdate:label": (f) => e.model[h.name2] = f,
|
|
1287
1297
|
field: h,
|
|
1288
1298
|
formModel: e.model,
|
|
1289
1299
|
key: h.name,
|
|
1290
1300
|
validateInfos: e.validateInfos,
|
|
1291
1301
|
options: e.options[h.datasource ? h.datasource : h.name]
|
|
1292
|
-
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (
|
|
1302
|
+
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (i(), O(r, {
|
|
1293
1303
|
value: e.model[h.name],
|
|
1294
|
-
"onUpdate:value": (
|
|
1304
|
+
"onUpdate:value": (f) => e.model[h.name] = f,
|
|
1295
1305
|
field: h,
|
|
1296
1306
|
formModel: e.model,
|
|
1297
1307
|
key: h.name,
|
|
@@ -1309,7 +1319,7 @@ function Ca(e, r, K, D, I, E) {
|
|
|
1309
1319
|
_: 1
|
|
1310
1320
|
}, 8, ["model", "rules", "layout", "label-col", "wrapper-col", "labelAlign"]);
|
|
1311
1321
|
}
|
|
1312
|
-
const
|
|
1322
|
+
const ya = /* @__PURE__ */ Z(kl, [["render", Cl]]), Ol = X({
|
|
1313
1323
|
name: "FormRender2",
|
|
1314
1324
|
components: {},
|
|
1315
1325
|
props: {
|
|
@@ -1333,11 +1343,11 @@ const yl = /* @__PURE__ */ Z(ka, [["render", Ca]]), Oa = X({
|
|
|
1333
1343
|
},
|
|
1334
1344
|
setup(e) {
|
|
1335
1345
|
if (e.form.watch)
|
|
1336
|
-
for (const
|
|
1346
|
+
for (const u in e.form.watch)
|
|
1337
1347
|
H(
|
|
1338
|
-
() => e.model[
|
|
1348
|
+
() => e.model[u],
|
|
1339
1349
|
() => {
|
|
1340
|
-
e.form.watch[
|
|
1350
|
+
e.form.watch[u](e.model, e.form);
|
|
1341
1351
|
}
|
|
1342
1352
|
);
|
|
1343
1353
|
},
|
|
@@ -1363,9 +1373,9 @@ const yl = /* @__PURE__ */ Z(ka, [["render", Ca]]), Oa = X({
|
|
|
1363
1373
|
created() {
|
|
1364
1374
|
}
|
|
1365
1375
|
});
|
|
1366
|
-
function
|
|
1367
|
-
const
|
|
1368
|
-
return
|
|
1376
|
+
function Sl(e, u, K, D, I, E) {
|
|
1377
|
+
const r = C("field-render"), F = C("a-col"), g = C("a-row"), V = C("a-form");
|
|
1378
|
+
return i(), O(V, {
|
|
1369
1379
|
ref: "form",
|
|
1370
1380
|
autocomplete: "off",
|
|
1371
1381
|
model: e.model,
|
|
@@ -1373,17 +1383,17 @@ function Sa(e, r, K, D, I, E) {
|
|
|
1373
1383
|
scrollToFirstError: ""
|
|
1374
1384
|
}, {
|
|
1375
1385
|
default: p(() => [
|
|
1376
|
-
(
|
|
1386
|
+
(i(!0), $(j, null, N(e.form.fieldList, (h) => (i(), O(g, {
|
|
1377
1387
|
gutter: "5",
|
|
1378
1388
|
type: "flex"
|
|
1379
1389
|
}, {
|
|
1380
1390
|
default: p(() => [
|
|
1381
|
-
(
|
|
1382
|
-
span:
|
|
1391
|
+
(i(!0), $(j, null, N(h, (f) => (i(), O(F, {
|
|
1392
|
+
span: f.span
|
|
1383
1393
|
}, {
|
|
1384
1394
|
default: p(() => [
|
|
1385
|
-
(
|
|
1386
|
-
v.name2 ? (
|
|
1395
|
+
(i(!0), $(j, null, N(e.form.fields, (v) => (i(), $(j, null, [
|
|
1396
|
+
v.name2 ? (i(), O(r, {
|
|
1387
1397
|
value: e.model[v.name],
|
|
1388
1398
|
"onUpdate:value": (b) => e.model[v.name] = b,
|
|
1389
1399
|
label: e.model[v.name2],
|
|
@@ -1393,7 +1403,7 @@ function Sa(e, r, K, D, I, E) {
|
|
|
1393
1403
|
key: v.name,
|
|
1394
1404
|
validateInfos: e.validateInfos,
|
|
1395
1405
|
options: e.options[v.datasource ? v.datasource : v.name]
|
|
1396
|
-
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (
|
|
1406
|
+
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (i(), O(r, {
|
|
1397
1407
|
value: e.model[v.name],
|
|
1398
1408
|
"onUpdate:value": (b) => e.model[v.name] = b,
|
|
1399
1409
|
field: v,
|
|
@@ -1413,8 +1423,8 @@ function Sa(e, r, K, D, I, E) {
|
|
|
1413
1423
|
_: 1
|
|
1414
1424
|
}, 8, ["model", "rules"]);
|
|
1415
1425
|
}
|
|
1416
|
-
const
|
|
1417
|
-
async function
|
|
1426
|
+
const ba = /* @__PURE__ */ Z(Ol, [["render", Sl]]);
|
|
1427
|
+
async function El(e) {
|
|
1418
1428
|
return ee().post("/view/create_view_settings", e);
|
|
1419
1429
|
}
|
|
1420
1430
|
async function Ee(e) {
|
|
@@ -1426,22 +1436,22 @@ async function fe(e) {
|
|
|
1426
1436
|
async function $e(e) {
|
|
1427
1437
|
return ee().post("/view/set_view_settings_default", e);
|
|
1428
1438
|
}
|
|
1429
|
-
async function $
|
|
1439
|
+
async function $l(e) {
|
|
1430
1440
|
return ee().post("/view/delete_view_settings", e);
|
|
1431
1441
|
}
|
|
1432
|
-
async function
|
|
1442
|
+
async function Ml(e) {
|
|
1433
1443
|
return ee().post("/view/change_view_settings_sort", e);
|
|
1434
1444
|
}
|
|
1435
|
-
async function
|
|
1445
|
+
async function Ul(e) {
|
|
1436
1446
|
return ee().post("/view/query_view_settings_list", e);
|
|
1437
1447
|
}
|
|
1438
|
-
const Me = "customviewdatauser",
|
|
1448
|
+
const Me = "customviewdatauser", Fl = "view_system_edit", jl = [
|
|
1439
1449
|
{
|
|
1440
1450
|
title: "",
|
|
1441
1451
|
dataIndex: "name",
|
|
1442
1452
|
key: "name"
|
|
1443
1453
|
}
|
|
1444
|
-
],
|
|
1454
|
+
], Al = X({
|
|
1445
1455
|
name: "ViewManage",
|
|
1446
1456
|
components: {
|
|
1447
1457
|
CaretRightOutlined: Je,
|
|
@@ -1489,61 +1499,61 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1489
1499
|
}
|
|
1490
1500
|
},
|
|
1491
1501
|
emits: ["change"],
|
|
1492
|
-
setup(e, { emit:
|
|
1493
|
-
const K = We(), D = He(), I = Ye(), E = I.currentOrg,
|
|
1494
|
-
let h,
|
|
1502
|
+
setup(e, { emit: u }) {
|
|
1503
|
+
const K = We(), D = He(), I = Ye(), E = I.currentOrg, r = I.userid, F = W(I.CHECK_AUTH(Fl)), g = W([]), { t: V } = je();
|
|
1504
|
+
let h, f;
|
|
1495
1505
|
const v = ce(() => {
|
|
1496
|
-
const
|
|
1497
|
-
return
|
|
1506
|
+
const o = g.value.filter((s) => !!s.user_id && s.is_system).map((s) => s).sort((s, l) => s.sort == l.sort ? s.id - l.id : s.sort - l.sort), c = g.value.filter((s) => !!s.user_id && !s.is_system).map((s) => s).sort((s, l) => s.sort == l.sort ? s.id - l.id : s.sort - l.sort);
|
|
1507
|
+
return o.concat(c);
|
|
1498
1508
|
}), b = ce(() => {
|
|
1499
|
-
const
|
|
1500
|
-
return
|
|
1501
|
-
}), M = ce(() => g.value.map((
|
|
1502
|
-
id:
|
|
1509
|
+
const o = g.value.filter((s) => !s.user_id && s.is_system).map((s) => s).sort((s, l) => s.sort == l.sort ? s.id - l.id : s.sort - l.sort), c = g.value.filter((s) => !s.user_id && !s.is_system).map((s) => s).sort((s, l) => s.sort == l.sort ? s.id - l.id : s.sort - l.sort);
|
|
1510
|
+
return o.concat(c);
|
|
1511
|
+
}), M = ce(() => g.value.map((o) => o.name)), T = async ({
|
|
1512
|
+
id: o,
|
|
1503
1513
|
search_model: c,
|
|
1504
|
-
filter_map:
|
|
1505
|
-
sort_fields:
|
|
1506
|
-
group_condition:
|
|
1507
|
-
conditions:
|
|
1514
|
+
filter_map: s,
|
|
1515
|
+
sort_fields: l,
|
|
1516
|
+
group_condition: a,
|
|
1517
|
+
conditions: d,
|
|
1508
1518
|
isShowGeneralFilter: m
|
|
1509
|
-
}) => new Promise((
|
|
1510
|
-
!e.countData && !(h != null && h.countData) && (console.error("无count接口"),
|
|
1511
|
-
const
|
|
1519
|
+
}) => new Promise((n) => {
|
|
1520
|
+
!e.countData && !(h != null && h.countData) && (console.error("无count接口"), n(null));
|
|
1521
|
+
const _ = {
|
|
1512
1522
|
org_id: E.id,
|
|
1513
1523
|
...c,
|
|
1514
|
-
...
|
|
1515
|
-
sort_fields:
|
|
1524
|
+
...s,
|
|
1525
|
+
sort_fields: l
|
|
1516
1526
|
};
|
|
1517
|
-
m && (
|
|
1527
|
+
m && (_.group_condition = a, _.conditions = d), _.required_condition = he(), Qe(_, h != null && h.countData ? h.countData : e.countData).then((y) => {
|
|
1518
1528
|
g.value.forEach((q) => {
|
|
1519
|
-
q.id ==
|
|
1520
|
-
}),
|
|
1529
|
+
q.id == o && (q.num = y);
|
|
1530
|
+
}), n(null);
|
|
1521
1531
|
}).catch((y) => {
|
|
1522
1532
|
console.log("error", y), L.error("获取数据失败, 请刷新页面");
|
|
1523
1533
|
});
|
|
1524
|
-
}), Y = async (
|
|
1525
|
-
for (const c of
|
|
1534
|
+
}), Y = async (o) => {
|
|
1535
|
+
for (const c of o)
|
|
1526
1536
|
try {
|
|
1527
1537
|
await T(c);
|
|
1528
|
-
} catch (
|
|
1529
|
-
console.log("error",
|
|
1538
|
+
} catch (s) {
|
|
1539
|
+
console.log("error", s), L.error("获取数据失败, 请刷新页面");
|
|
1530
1540
|
}
|
|
1531
1541
|
}, B = () => {
|
|
1532
1542
|
Xe({
|
|
1533
1543
|
org_id: E.id,
|
|
1534
|
-
user_id:
|
|
1544
|
+
user_id: r,
|
|
1535
1545
|
app_flag: e.app_flag,
|
|
1536
1546
|
modalType: e.modalType,
|
|
1537
1547
|
sort_fields: ["sort", "create_time"],
|
|
1538
1548
|
is_cache: !1
|
|
1539
|
-
}).then((
|
|
1549
|
+
}).then((o) => {
|
|
1540
1550
|
if (h = ge(
|
|
1541
1551
|
e.app_flag,
|
|
1542
1552
|
e.modalType,
|
|
1543
|
-
|
|
1553
|
+
o.defaultAndServerConfig,
|
|
1544
1554
|
V
|
|
1545
|
-
),
|
|
1546
|
-
window.location.hash = "",
|
|
1555
|
+
), f = o.defaultAndServerConfig, (h == null ? void 0 : h.isView) === !1) {
|
|
1556
|
+
window.location.hash = "", u("change", f, {}, !0, !0);
|
|
1547
1557
|
return;
|
|
1548
1558
|
}
|
|
1549
1559
|
D.set_required_condition(
|
|
@@ -1551,64 +1561,64 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1551
1561
|
h.required_condition
|
|
1552
1562
|
), g.value.length = 0;
|
|
1553
1563
|
let c = [];
|
|
1554
|
-
const
|
|
1555
|
-
|
|
1556
|
-
let
|
|
1557
|
-
|
|
1558
|
-
...
|
|
1559
|
-
search_model:
|
|
1560
|
-
filter_map:
|
|
1561
|
-
sort_fields:
|
|
1564
|
+
const s = [];
|
|
1565
|
+
o && o.system_user_datas && o.system_user_datas.length > 0 && (c = c.concat(o.system_user_datas)), o && o.system_public_datas && o.system_public_datas.length > 0 && (c = c.concat(o.system_public_datas)), o && o.public_datas && o.public_datas.length > 0 && (c = c.concat(o.public_datas)), o && o.user_datas && o.user_datas.length > 0 && (c = c.concat(o.user_datas)), c.forEach((l) => {
|
|
1566
|
+
let a = null, d = null, m = null, n = null;
|
|
1567
|
+
l.data.isShowGeneralFilter ? (a = {}, d = {}, m = l.data.group_condition, n = l.data.conditions) : (a = l.data.search_model, d = l.data.filter_map, m = {}, n = []), g.value.push({
|
|
1568
|
+
...l,
|
|
1569
|
+
search_model: a,
|
|
1570
|
+
filter_map: d,
|
|
1571
|
+
sort_fields: l.data.sort_fields,
|
|
1562
1572
|
group_condition: m,
|
|
1563
|
-
conditions:
|
|
1564
|
-
}),
|
|
1565
|
-
id:
|
|
1566
|
-
isShowGeneralFilter:
|
|
1567
|
-
search_model:
|
|
1568
|
-
filter_map:
|
|
1569
|
-
sort_fields:
|
|
1573
|
+
conditions: n
|
|
1574
|
+
}), s.push({
|
|
1575
|
+
id: l.id,
|
|
1576
|
+
isShowGeneralFilter: l.data.isShowGeneralFilter,
|
|
1577
|
+
search_model: a,
|
|
1578
|
+
filter_map: d,
|
|
1579
|
+
sort_fields: l.data.sort_fields,
|
|
1570
1580
|
group_condition: m,
|
|
1571
|
-
conditions:
|
|
1581
|
+
conditions: n
|
|
1572
1582
|
});
|
|
1573
|
-
}),
|
|
1574
|
-
}).catch((
|
|
1575
|
-
console.log("err",
|
|
1583
|
+
}), s.length > 0 && Y(s), U(null);
|
|
1584
|
+
}).catch((o) => {
|
|
1585
|
+
console.log("err", o), L.error("获取视图失败, 请刷新页面");
|
|
1576
1586
|
});
|
|
1577
|
-
}, U = (
|
|
1578
|
-
var
|
|
1587
|
+
}, U = (o) => {
|
|
1588
|
+
var s;
|
|
1579
1589
|
let c = null;
|
|
1580
|
-
if (
|
|
1581
|
-
const
|
|
1582
|
-
|
|
1590
|
+
if (o ? c = o : window.location.hash && (c = window.location.hash.substring(1)), c) {
|
|
1591
|
+
const l = g.value.filter((a) => a.uid == c);
|
|
1592
|
+
l && l.length > 0 ? u("change", f, { ...l[0], ...l[0].data }, !0, !0) : Ul({
|
|
1583
1593
|
org_id: E.id,
|
|
1584
1594
|
is_active: !0,
|
|
1585
1595
|
view_menu__name: e.menu_flag,
|
|
1586
1596
|
uid: c
|
|
1587
|
-
}).then((
|
|
1588
|
-
if (
|
|
1589
|
-
|
|
1597
|
+
}).then((a) => {
|
|
1598
|
+
if (a && a.data && a.data.length > 0)
|
|
1599
|
+
u(
|
|
1590
1600
|
"change",
|
|
1591
|
-
|
|
1601
|
+
f,
|
|
1592
1602
|
{
|
|
1593
|
-
...
|
|
1594
|
-
...
|
|
1603
|
+
...a.data[0],
|
|
1604
|
+
...a.data[0].data
|
|
1595
1605
|
},
|
|
1596
1606
|
!0,
|
|
1597
1607
|
!1
|
|
1598
1608
|
);
|
|
1599
1609
|
else {
|
|
1600
|
-
const
|
|
1601
|
-
if (
|
|
1602
|
-
window.location.hash =
|
|
1610
|
+
const d = g.value.filter((n) => !n.user_id && n.is_default);
|
|
1611
|
+
if (d && d.length > 0) {
|
|
1612
|
+
window.location.hash = d[0].uid, u("change", f, { ...d[0], ...d[0].data }, !0, !0);
|
|
1603
1613
|
return;
|
|
1604
1614
|
}
|
|
1605
|
-
let m = g.value.sort((
|
|
1615
|
+
let m = g.value.sort((n, _) => n.sort == _.sort ? n.id - _.id : n.sort - _.sort).find((n) => !n.user_id);
|
|
1606
1616
|
if (m && m.uid)
|
|
1607
|
-
window.location.hash = m.uid,
|
|
1608
|
-
else if (m = g.value.sort((
|
|
1609
|
-
window.location.hash = m.uid,
|
|
1617
|
+
window.location.hash = m.uid, u("change", f, { ...m, ...m.data }, !0, !0);
|
|
1618
|
+
else if (m = g.value.sort((n, _) => n.sort == _.sort ? n.id - _.id : n.sort - _.sort).find((n) => n.user_id), m && m.uid)
|
|
1619
|
+
window.location.hash = m.uid, u("change", f, { ...m, ...m.data }, !0, !0);
|
|
1610
1620
|
else {
|
|
1611
|
-
const
|
|
1621
|
+
const n = {
|
|
1612
1622
|
uid: null,
|
|
1613
1623
|
view_menu__flag: e.menu_flag,
|
|
1614
1624
|
column: {},
|
|
@@ -1618,43 +1628,43 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1618
1628
|
filtered_value: {},
|
|
1619
1629
|
sort_orders: []
|
|
1620
1630
|
};
|
|
1621
|
-
|
|
1631
|
+
u("change", f, n, !0, !1), window.location.hash = "";
|
|
1622
1632
|
}
|
|
1623
1633
|
}
|
|
1624
1634
|
});
|
|
1625
1635
|
} else {
|
|
1626
|
-
let
|
|
1627
|
-
if (Se().get(Me) && (
|
|
1628
|
-
window.location.hash =
|
|
1636
|
+
let l = "";
|
|
1637
|
+
if (Se().get(Me) && (l = (s = Se().get(Me)) == null ? void 0 : s[e.menu_flag]), l)
|
|
1638
|
+
window.location.hash = l, U(l);
|
|
1629
1639
|
else {
|
|
1630
|
-
const
|
|
1631
|
-
(
|
|
1640
|
+
const a = g.value.filter(
|
|
1641
|
+
(n) => !n.user_id && n.is_default && !n.is_system
|
|
1632
1642
|
);
|
|
1633
|
-
if (
|
|
1634
|
-
window.location.hash =
|
|
1643
|
+
if (a && a.length > 0) {
|
|
1644
|
+
window.location.hash = a[0].uid, u("change", f, { ...a[0], ...a[0].data }, !0, !0);
|
|
1635
1645
|
return;
|
|
1636
1646
|
}
|
|
1637
|
-
const
|
|
1638
|
-
(
|
|
1647
|
+
const d = g.value.filter(
|
|
1648
|
+
(n) => !n.user_id && n.is_default && n.is_system
|
|
1639
1649
|
);
|
|
1640
|
-
if (
|
|
1641
|
-
window.location.hash =
|
|
1650
|
+
if (d && d.length > 0) {
|
|
1651
|
+
window.location.hash = d[0].uid, u(
|
|
1642
1652
|
"change",
|
|
1643
|
-
|
|
1644
|
-
{ ...
|
|
1653
|
+
f,
|
|
1654
|
+
{ ...d[0], ...d[0].data },
|
|
1645
1655
|
!0,
|
|
1646
1656
|
!0
|
|
1647
1657
|
);
|
|
1648
1658
|
return;
|
|
1649
1659
|
}
|
|
1650
|
-
let m = g.value.sort((
|
|
1660
|
+
let m = g.value.sort((n, _) => n.sort == _.sort ? n.id - _.id : n.sort - _.sort).find((n) => !n.user_id);
|
|
1651
1661
|
if (m && m.uid)
|
|
1652
|
-
window.location.hash = m.uid,
|
|
1653
|
-
else if (m = g.value.sort((
|
|
1654
|
-
window.location.hash = m.uid,
|
|
1662
|
+
window.location.hash = m.uid, u("change", f, { ...m, ...m.data }, !0, !0);
|
|
1663
|
+
else if (m = g.value.sort((n, _) => n.sort == _.sort ? n.id - _.id : n.sort - _.sort).find((n) => n.user_id), m && m.uid)
|
|
1664
|
+
window.location.hash = m.uid, u("change", f, { ...m, ...m.data }, !0, !0);
|
|
1655
1665
|
else {
|
|
1656
1666
|
window.location.hash = "";
|
|
1657
|
-
const
|
|
1667
|
+
const n = {
|
|
1658
1668
|
uid: null,
|
|
1659
1669
|
view_menu__flag: e.menu_flag,
|
|
1660
1670
|
column: {},
|
|
@@ -1664,24 +1674,24 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1664
1674
|
filtered_value: {},
|
|
1665
1675
|
sort_orders: []
|
|
1666
1676
|
};
|
|
1667
|
-
|
|
1677
|
+
u("change", f, n, !0, !1);
|
|
1668
1678
|
}
|
|
1669
1679
|
}
|
|
1670
1680
|
}
|
|
1671
1681
|
};
|
|
1672
1682
|
B();
|
|
1673
|
-
const z = W(["1", "2"]), te = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;",
|
|
1674
|
-
window.location.hash =
|
|
1675
|
-
}, w = ({ updateView:
|
|
1676
|
-
var
|
|
1677
|
-
if (c.name !=
|
|
1683
|
+
const z = W(["1", "2"]), te = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;", ne = (o) => e.currentViewObj && o && o.id === e.currentViewObj.id ? { style: { backgroundColor: "#ddf1ff" } } : { style: {} }, x = (o) => {
|
|
1684
|
+
window.location.hash = o.uid, U(o.uid), oe([o]);
|
|
1685
|
+
}, w = ({ updateView: o, record: c }) => {
|
|
1686
|
+
var s, l, a, d;
|
|
1687
|
+
if (c.name != o.name && M.value.includes(o.name)) {
|
|
1678
1688
|
L.error("视图名称已存在");
|
|
1679
1689
|
return;
|
|
1680
1690
|
}
|
|
1681
1691
|
if (c != null && c.id) {
|
|
1682
|
-
const m = g.value.filter((
|
|
1683
|
-
if ((
|
|
1684
|
-
const
|
|
1692
|
+
const m = g.value.filter((n) => (c == null ? void 0 : c.id) == n.id);
|
|
1693
|
+
if ((s = o.is_submit) != null && s[0]) {
|
|
1694
|
+
const n = {
|
|
1685
1695
|
...m[0].data,
|
|
1686
1696
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
1687
1697
|
filter_map: e.currentViewObj.filter_map,
|
|
@@ -1695,15 +1705,15 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1695
1705
|
group_record: e.currentViewObj.group_record,
|
|
1696
1706
|
default_search_condition_config_list: e.currentViewObj.default_search_condition_config_list
|
|
1697
1707
|
};
|
|
1698
|
-
delete
|
|
1708
|
+
delete n.is_system, Ee({
|
|
1699
1709
|
org_id: E.id,
|
|
1700
1710
|
view_settings_id: c == null ? void 0 : c.id,
|
|
1701
|
-
is_system: (
|
|
1702
|
-
name:
|
|
1703
|
-
data: JSON.stringify(
|
|
1704
|
-
}).then((
|
|
1711
|
+
is_system: (l = o.is_system) == null ? void 0 : l[0],
|
|
1712
|
+
name: o.name,
|
|
1713
|
+
data: JSON.stringify(n)
|
|
1714
|
+
}).then((_) => {
|
|
1705
1715
|
var y;
|
|
1706
|
-
(y =
|
|
1716
|
+
(y = o.is_default) != null && y[0] ? $e({
|
|
1707
1717
|
org_id: E.id,
|
|
1708
1718
|
view_settings_id: c == null ? void 0 : c.id
|
|
1709
1719
|
}).then(() => {
|
|
@@ -1712,8 +1722,8 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1712
1722
|
view_settings_id: c == null ? void 0 : c.id
|
|
1713
1723
|
}).then(() => {
|
|
1714
1724
|
var q;
|
|
1715
|
-
L.success("保存成功"),
|
|
1716
|
-
Q.id ==
|
|
1725
|
+
L.success("保存成功"), _.id == ((q = e.currentViewObj) == null ? void 0 : q.id) ? u("change", f, { ..._, ..._.data }, !1, !0) : g.value.forEach((Q) => {
|
|
1726
|
+
Q.id == _.id && Object.assign(Q, { ..._, ..._.data });
|
|
1717
1727
|
}), B();
|
|
1718
1728
|
});
|
|
1719
1729
|
}) : fe({
|
|
@@ -1721,8 +1731,8 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1721
1731
|
view_settings_id: c == null ? void 0 : c.id
|
|
1722
1732
|
}).then(() => {
|
|
1723
1733
|
var q;
|
|
1724
|
-
L.success("保存成功"),
|
|
1725
|
-
Q.id ==
|
|
1734
|
+
L.success("保存成功"), _.id == ((q = e.currentViewObj) == null ? void 0 : q.id) ? u("change", f, { ..._, ..._.data }, !1, !0) : g.value.forEach((Q) => {
|
|
1735
|
+
Q.id == _.id && Object.assign(Q, { ..._, ..._.data });
|
|
1726
1736
|
}), B();
|
|
1727
1737
|
});
|
|
1728
1738
|
});
|
|
@@ -1730,11 +1740,11 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1730
1740
|
Ee({
|
|
1731
1741
|
org_id: E.id,
|
|
1732
1742
|
view_settings_id: c == null ? void 0 : c.id,
|
|
1733
|
-
is_system: (
|
|
1734
|
-
name:
|
|
1735
|
-
}).then((
|
|
1736
|
-
var
|
|
1737
|
-
(
|
|
1743
|
+
is_system: (a = o.is_system) == null ? void 0 : a[0],
|
|
1744
|
+
name: o.name
|
|
1745
|
+
}).then((n) => {
|
|
1746
|
+
var _;
|
|
1747
|
+
(_ = o.is_default) != null && _[0] ? $e({
|
|
1738
1748
|
org_id: E.id,
|
|
1739
1749
|
view_settings_id: c == null ? void 0 : c.id
|
|
1740
1750
|
}).then(() => {
|
|
@@ -1743,8 +1753,8 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1743
1753
|
view_settings_id: c == null ? void 0 : c.id
|
|
1744
1754
|
}).then(() => {
|
|
1745
1755
|
var y;
|
|
1746
|
-
L.success("保存成功"),
|
|
1747
|
-
q.id ==
|
|
1756
|
+
L.success("保存成功"), n.id == ((y = e.currentViewObj) == null ? void 0 : y.id) ? u("change", f, { ...n, ...n.data }, !1, !0) : g.value.forEach((q) => {
|
|
1757
|
+
q.id == n.id && Object.assign(q, { ...n, ...n.data });
|
|
1748
1758
|
}), B();
|
|
1749
1759
|
});
|
|
1750
1760
|
}) : fe({
|
|
@@ -1752,14 +1762,14 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1752
1762
|
view_settings_id: c == null ? void 0 : c.id
|
|
1753
1763
|
}).then(() => {
|
|
1754
1764
|
var y;
|
|
1755
|
-
L.success("保存成功"),
|
|
1756
|
-
q.id ==
|
|
1765
|
+
L.success("保存成功"), n.id == ((y = e.currentViewObj) == null ? void 0 : y.id) ? u("change", f, { ...n, ...n.data }, !1, !0) : g.value.forEach((q) => {
|
|
1766
|
+
q.id == n.id && Object.assign(q, { ...n, ...n.data });
|
|
1757
1767
|
}), B();
|
|
1758
1768
|
});
|
|
1759
1769
|
});
|
|
1760
1770
|
} else {
|
|
1761
1771
|
let m = {};
|
|
1762
|
-
(
|
|
1772
|
+
(d = o.is_submit) != null && d[0] ? (m = {
|
|
1763
1773
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
1764
1774
|
filter_map: e.currentViewObj.filter_map,
|
|
1765
1775
|
sort_fields: e.currentViewObj.sort_fields,
|
|
@@ -1782,23 +1792,23 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1782
1792
|
conditions: [],
|
|
1783
1793
|
group_condition: {},
|
|
1784
1794
|
group_record: {}
|
|
1785
|
-
},
|
|
1795
|
+
}, El({
|
|
1786
1796
|
org_id: E.id,
|
|
1787
|
-
user_id:
|
|
1788
|
-
name:
|
|
1797
|
+
user_id: o.view_type == "personal" ? r : null,
|
|
1798
|
+
name: o.name,
|
|
1789
1799
|
view_project__flag: K.VITE_APP_VIEW_PROJECT_FLAG,
|
|
1790
1800
|
view_menu__flag: e.menu_flag,
|
|
1791
1801
|
view_menu__name: e.menu_name,
|
|
1792
1802
|
is_system: !1,
|
|
1793
1803
|
data: JSON.stringify(m)
|
|
1794
|
-
}).then((
|
|
1795
|
-
|
|
1804
|
+
}).then((n) => {
|
|
1805
|
+
u("change", f, { ...n, ...n.data }, !0, !0), n.id && (g.value = g.value.concat([
|
|
1796
1806
|
{
|
|
1797
|
-
...
|
|
1807
|
+
...n
|
|
1798
1808
|
}
|
|
1799
1809
|
]), Y([
|
|
1800
1810
|
{
|
|
1801
|
-
id:
|
|
1811
|
+
id: n.id,
|
|
1802
1812
|
search_model: m.search_model,
|
|
1803
1813
|
filter_map: m.filter_map,
|
|
1804
1814
|
sort_fields: m.sort_fields,
|
|
@@ -1806,13 +1816,13 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1806
1816
|
conditions: m.conditions,
|
|
1807
1817
|
isShowGeneralFilter: m.isShowGeneralFilter
|
|
1808
1818
|
}
|
|
1809
|
-
]), window.location.hash =
|
|
1819
|
+
]), window.location.hash = n.uid, U(n.uid));
|
|
1810
1820
|
});
|
|
1811
1821
|
}
|
|
1812
|
-
},
|
|
1813
|
-
let
|
|
1814
|
-
e.currentViewObj.id ==
|
|
1815
|
-
const
|
|
1822
|
+
}, t = (o, c) => {
|
|
1823
|
+
let s = [!1];
|
|
1824
|
+
e.currentViewObj.id == o.id && (s = [!0]);
|
|
1825
|
+
const l = P({
|
|
1816
1826
|
open: !0,
|
|
1817
1827
|
loading: !1,
|
|
1818
1828
|
title: "编辑视图",
|
|
@@ -1854,10 +1864,10 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1854
1864
|
]
|
|
1855
1865
|
}),
|
|
1856
1866
|
model: P({
|
|
1857
|
-
name:
|
|
1858
|
-
is_submit:
|
|
1859
|
-
is_default: [
|
|
1860
|
-
is_system: [
|
|
1867
|
+
name: o.name,
|
|
1868
|
+
is_submit: s,
|
|
1869
|
+
is_default: [o != null && o.is_default ? o == null ? void 0 : o.is_default : !1],
|
|
1870
|
+
is_system: [o != null && o.is_system ? o == null ? void 0 : o.is_system : !1]
|
|
1861
1871
|
})
|
|
1862
1872
|
},
|
|
1863
1873
|
options: {
|
|
@@ -1880,11 +1890,11 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1880
1890
|
}
|
|
1881
1891
|
]
|
|
1882
1892
|
},
|
|
1883
|
-
ok: (
|
|
1884
|
-
w({ updateView:
|
|
1893
|
+
ok: (a) => new Promise(function(d) {
|
|
1894
|
+
w({ updateView: a, record: o }), d(null);
|
|
1885
1895
|
})
|
|
1886
1896
|
});
|
|
1887
|
-
c == "public" && (
|
|
1897
|
+
c == "public" && (l.form.fields.push({
|
|
1888
1898
|
type: "checkbox",
|
|
1889
1899
|
name: "is_default",
|
|
1890
1900
|
label: "",
|
|
@@ -1894,7 +1904,7 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1894
1904
|
valueKey: "value",
|
|
1895
1905
|
defaultValue: [!1],
|
|
1896
1906
|
placeholder: ""
|
|
1897
|
-
}), F.value &&
|
|
1907
|
+
}), F.value && l.form.fields.push({
|
|
1898
1908
|
type: "checkbox",
|
|
1899
1909
|
name: "is_system",
|
|
1900
1910
|
label: "",
|
|
@@ -1904,8 +1914,8 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1904
1914
|
valueKey: "value",
|
|
1905
1915
|
defaultValue: [!1],
|
|
1906
1916
|
placeholder: ""
|
|
1907
|
-
})), _e(
|
|
1908
|
-
},
|
|
1917
|
+
})), _e(l);
|
|
1918
|
+
}, le = (o) => {
|
|
1909
1919
|
const c = P({
|
|
1910
1920
|
open: !0,
|
|
1911
1921
|
loading: !1,
|
|
@@ -1960,7 +1970,7 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1960
1970
|
}),
|
|
1961
1971
|
model: P({
|
|
1962
1972
|
name: null,
|
|
1963
|
-
view_type:
|
|
1973
|
+
view_type: o,
|
|
1964
1974
|
is_submit: [!0]
|
|
1965
1975
|
})
|
|
1966
1976
|
},
|
|
@@ -1976,53 +1986,53 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
1976
1986
|
}
|
|
1977
1987
|
]
|
|
1978
1988
|
},
|
|
1979
|
-
ok: (
|
|
1980
|
-
if (M.value.includes(
|
|
1989
|
+
ok: (s) => new Promise(function(l) {
|
|
1990
|
+
if (M.value.includes(s.name)) {
|
|
1981
1991
|
L.error("视图名称已存在");
|
|
1982
1992
|
return;
|
|
1983
1993
|
}
|
|
1984
|
-
w({ updateView:
|
|
1994
|
+
w({ updateView: s, record: s }), l(null);
|
|
1985
1995
|
})
|
|
1986
1996
|
});
|
|
1987
1997
|
_e(c);
|
|
1988
|
-
}, k = (
|
|
1998
|
+
}, k = (o) => {
|
|
1989
1999
|
const c = P({
|
|
1990
2000
|
open: !0,
|
|
1991
2001
|
component: "ViewEditModal",
|
|
1992
2002
|
compObj: {
|
|
1993
|
-
title:
|
|
1994
|
-
data:
|
|
2003
|
+
title: o == "personal" ? "个人视图管理" : "公共视图管理",
|
|
2004
|
+
data: o == "personal" ? v.value : b.value
|
|
1995
2005
|
},
|
|
1996
|
-
ok: (
|
|
1997
|
-
|
|
2006
|
+
ok: (s) => {
|
|
2007
|
+
s && s.length > 0 ? Ml({
|
|
1998
2008
|
org_id: E.id,
|
|
1999
|
-
view_settings_ids:
|
|
2009
|
+
view_settings_ids: s
|
|
2000
2010
|
}).then(() => {
|
|
2001
2011
|
L.success("保存成功"), B();
|
|
2002
2012
|
}) : (L.success("保存成功"), B());
|
|
2003
2013
|
},
|
|
2004
|
-
cancel: (
|
|
2005
|
-
|
|
2014
|
+
cancel: (s) => {
|
|
2015
|
+
s && B();
|
|
2006
2016
|
}
|
|
2007
2017
|
});
|
|
2008
2018
|
_e(c);
|
|
2009
|
-
}, me = (
|
|
2019
|
+
}, me = (o) => {
|
|
2010
2020
|
let c = "";
|
|
2011
|
-
const
|
|
2012
|
-
|
|
2013
|
-
}, pe = (
|
|
2021
|
+
const s = window.location.href.indexOf("#");
|
|
2022
|
+
s !== -1 ? c = window.location.href.substring(0, s) + "#" + o.uid : c = window.location.href + "#" + o.uid, Ne({ val: c, message: "复制成功" });
|
|
2023
|
+
}, pe = (o) => {
|
|
2014
2024
|
we.confirm({
|
|
2015
|
-
title: () => "确认删除此【" +
|
|
2025
|
+
title: () => "确认删除此【" + o.name + "】" + (o != null && o.user_id ? "个人视图" : "公共视图") + "?",
|
|
2016
2026
|
content: "视图删除后不可恢复,视图下工作项不受影响,是否确认删除?",
|
|
2017
2027
|
icon: () => S(ke),
|
|
2018
2028
|
okText: "确定",
|
|
2019
2029
|
onOk() {
|
|
2020
2030
|
return new Promise((c) => {
|
|
2021
|
-
$
|
|
2031
|
+
$l({
|
|
2022
2032
|
org_id: E.id,
|
|
2023
|
-
view_settings_id:
|
|
2033
|
+
view_settings_id: o == null ? void 0 : o.id
|
|
2024
2034
|
}).then(() => {
|
|
2025
|
-
g.value = g.value.filter((
|
|
2035
|
+
g.value = g.value.filter((s) => s.id != o.id), U(null), L.success("删除成功");
|
|
2026
2036
|
}).finally(() => {
|
|
2027
2037
|
c(null);
|
|
2028
2038
|
});
|
|
@@ -2033,23 +2043,23 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
2033
2043
|
}
|
|
2034
2044
|
});
|
|
2035
2045
|
}, he = () => {
|
|
2036
|
-
const c = ge(e.app_flag, e.modalType, null, !0).required_condition,
|
|
2037
|
-
return c && c.forEach((
|
|
2038
|
-
const
|
|
2039
|
-
|
|
2040
|
-
}),
|
|
2041
|
-
},
|
|
2046
|
+
const c = ge(e.app_flag, e.modalType, null, !0).required_condition, s = {};
|
|
2047
|
+
return c && c.forEach((l) => {
|
|
2048
|
+
const a = D.value_map[l.key];
|
|
2049
|
+
a != null && (s[l.field_name] = a);
|
|
2050
|
+
}), s;
|
|
2051
|
+
}, oe = (o) => {
|
|
2042
2052
|
const c = [];
|
|
2043
|
-
|
|
2044
|
-
let
|
|
2045
|
-
|
|
2046
|
-
id:
|
|
2047
|
-
search_model:
|
|
2048
|
-
filter_map:
|
|
2049
|
-
sort_fields:
|
|
2050
|
-
group_condition:
|
|
2053
|
+
o.forEach((s) => {
|
|
2054
|
+
let l = null, a = null, d = null, m = null;
|
|
2055
|
+
s.data.isShowGeneralFilter ? (l = {}, a = {}, d = s.data.group_condition, m = s.data.conditions) : (l = s.data.search_model, a = s.data.filter_map, d = {}, m = []), c.push({
|
|
2056
|
+
id: s.id,
|
|
2057
|
+
search_model: l,
|
|
2058
|
+
filter_map: a,
|
|
2059
|
+
sort_fields: s.data.sort_fields,
|
|
2060
|
+
group_condition: d,
|
|
2051
2061
|
conditions: m,
|
|
2052
|
-
isShowGeneralFilter:
|
|
2062
|
+
isShowGeneralFilter: s.data.isShowGeneralFilter
|
|
2053
2063
|
});
|
|
2054
2064
|
}), Y(c);
|
|
2055
2065
|
};
|
|
@@ -2063,7 +2073,7 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
2063
2073
|
icon: () => S(ke),
|
|
2064
2074
|
okText: "确定",
|
|
2065
2075
|
onOk() {
|
|
2066
|
-
return new Promise((
|
|
2076
|
+
return new Promise((o) => {
|
|
2067
2077
|
w({
|
|
2068
2078
|
updateView: {
|
|
2069
2079
|
is_submit: [!0],
|
|
@@ -2071,7 +2081,7 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
2071
2081
|
name: e.currentViewObj.name
|
|
2072
2082
|
},
|
|
2073
2083
|
record: e.currentViewObj
|
|
2074
|
-
}),
|
|
2084
|
+
}), o(null);
|
|
2075
2085
|
}).catch(() => console.log("Oops errors!"));
|
|
2076
2086
|
},
|
|
2077
2087
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -2083,7 +2093,7 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
2083
2093
|
() => e.create_num,
|
|
2084
2094
|
// 监听另存为
|
|
2085
2095
|
() => {
|
|
2086
|
-
const
|
|
2096
|
+
const o = P({
|
|
2087
2097
|
open: !0,
|
|
2088
2098
|
loading: !1,
|
|
2089
2099
|
title: "新建视图",
|
|
@@ -2142,77 +2152,77 @@ const Me = "customviewdatauser", Fa = "view_system_edit", ja = [
|
|
|
2142
2152
|
}
|
|
2143
2153
|
]
|
|
2144
2154
|
},
|
|
2145
|
-
ok: (c) => new Promise(function(
|
|
2146
|
-
if (g.value.map((
|
|
2155
|
+
ok: (c) => new Promise(function(s) {
|
|
2156
|
+
if (g.value.map((a) => a.name).includes(c.name)) {
|
|
2147
2157
|
L.error("视图名称已存在");
|
|
2148
2158
|
return;
|
|
2149
2159
|
}
|
|
2150
|
-
w({ updateView: c, record: c }),
|
|
2160
|
+
w({ updateView: c, record: c }), s(null);
|
|
2151
2161
|
})
|
|
2152
2162
|
});
|
|
2153
|
-
_e(
|
|
2163
|
+
_e(o);
|
|
2154
2164
|
}
|
|
2155
2165
|
), H(
|
|
2156
2166
|
() => e.count_num,
|
|
2157
2167
|
// 监听刷新当前视图count
|
|
2158
2168
|
() => {
|
|
2159
|
-
|
|
2169
|
+
oe(g.value);
|
|
2160
2170
|
}
|
|
2161
2171
|
);
|
|
2162
|
-
const ie = (
|
|
2172
|
+
const ie = (o) => {
|
|
2163
2173
|
const c = ge(e.currentViewObj.app_flag, e.modalType, null, !0);
|
|
2164
|
-
c.required_condition && c.required_condition.find((
|
|
2174
|
+
c.required_condition && c.required_condition.find((l) => l.key === o) && B();
|
|
2165
2175
|
};
|
|
2166
2176
|
return Ue(() => {
|
|
2167
2177
|
Oe().on("change", ie);
|
|
2168
2178
|
}), Be(() => {
|
|
2169
2179
|
Oe().off("change", ie);
|
|
2170
2180
|
}), De(() => {
|
|
2171
|
-
|
|
2181
|
+
oe(g.value);
|
|
2172
2182
|
}), {
|
|
2173
2183
|
props: e,
|
|
2174
2184
|
viewKey: z,
|
|
2175
2185
|
customStyle: te,
|
|
2176
|
-
columns:
|
|
2186
|
+
columns: jl,
|
|
2177
2187
|
personData: v,
|
|
2178
2188
|
publicData: b,
|
|
2179
2189
|
is_auth: F,
|
|
2180
|
-
addView:
|
|
2190
|
+
addView: le,
|
|
2181
2191
|
editView: k,
|
|
2182
|
-
customRow:
|
|
2192
|
+
customRow: ne,
|
|
2183
2193
|
changeView: x,
|
|
2184
|
-
handleSubmit:
|
|
2194
|
+
handleSubmit: t,
|
|
2185
2195
|
handleShare: me,
|
|
2186
2196
|
handleDelet: pe
|
|
2187
2197
|
};
|
|
2188
2198
|
}
|
|
2189
2199
|
});
|
|
2190
|
-
const
|
|
2191
|
-
function
|
|
2192
|
-
const
|
|
2193
|
-
return
|
|
2200
|
+
const Il = /* @__PURE__ */ A("span", { style: { "font-weight": "700" } }, "个人视图", -1), Vl = ["onClick"], ql = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, Bl = ["onClick"], Dl = ["onClick"], Kl = ["onClick"], Nl = /* @__PURE__ */ A("span", { style: { "font-weight": "700" } }, "公共视图", -1), Rl = ["onClick"], Tl = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, Gl = ["onClick"], Ll = ["onClick"], Jl = ["onClick"];
|
|
2201
|
+
function zl(e, u, K, D, I, E) {
|
|
2202
|
+
const r = C("caret-right-outlined"), F = C("setting-outlined"), g = C("a-tooltip"), V = C("plus-outlined"), h = C("a-menu-item"), f = C("a-menu"), v = C("a-dropdown"), b = C("a-table"), M = C("a-collapse-panel"), T = C("a-collapse"), Y = C("a-card");
|
|
2203
|
+
return i(), O(Y, {
|
|
2194
2204
|
"body-style": { padding: 0, height: e.height + 96 + "px", overflowY: "auto" }
|
|
2195
2205
|
}, {
|
|
2196
2206
|
default: p(() => [
|
|
2197
2207
|
S(T, {
|
|
2198
2208
|
activeKey: e.viewKey,
|
|
2199
|
-
"onUpdate:activeKey":
|
|
2209
|
+
"onUpdate:activeKey": u[6] || (u[6] = (B) => e.viewKey = B),
|
|
2200
2210
|
bordered: !1,
|
|
2201
2211
|
class: "collapses",
|
|
2202
2212
|
style: { background: "rgb(255, 255, 255)" }
|
|
2203
2213
|
}, {
|
|
2204
2214
|
expandIcon: p(({ isActive: B }) => [
|
|
2205
|
-
S(
|
|
2215
|
+
S(r, {
|
|
2206
2216
|
rotate: B ? 90 : 0
|
|
2207
2217
|
}, null, 8, ["rotate"])
|
|
2208
2218
|
]),
|
|
2209
2219
|
default: p(() => [
|
|
2210
|
-
(
|
|
2220
|
+
(i(), O(M, {
|
|
2211
2221
|
key: "1",
|
|
2212
2222
|
style: de(e.customStyle)
|
|
2213
2223
|
}, {
|
|
2214
2224
|
header: p(() => [
|
|
2215
|
-
|
|
2225
|
+
Il
|
|
2216
2226
|
]),
|
|
2217
2227
|
extra: p(() => [
|
|
2218
2228
|
S(g, null, {
|
|
@@ -2222,7 +2232,7 @@ function za(e, r, K, D, I, E) {
|
|
|
2222
2232
|
default: p(() => [
|
|
2223
2233
|
S(F, {
|
|
2224
2234
|
style: { "margin-right": "10px" },
|
|
2225
|
-
onClick:
|
|
2235
|
+
onClick: u[0] || (u[0] = ae((B) => e.editView("personal"), ["stop"]))
|
|
2226
2236
|
})
|
|
2227
2237
|
]),
|
|
2228
2238
|
_: 1
|
|
@@ -2233,14 +2243,14 @@ function za(e, r, K, D, I, E) {
|
|
|
2233
2243
|
]),
|
|
2234
2244
|
default: p(() => [
|
|
2235
2245
|
S(V, {
|
|
2236
|
-
onClick:
|
|
2246
|
+
onClick: u[1] || (u[1] = ae((B) => e.addView("personal"), ["stop"]))
|
|
2237
2247
|
})
|
|
2238
2248
|
]),
|
|
2239
2249
|
_: 1
|
|
2240
2250
|
})
|
|
2241
2251
|
]),
|
|
2242
2252
|
default: p(() => [
|
|
2243
|
-
e.personData.length > 0 ? (
|
|
2253
|
+
e.personData.length > 0 ? (i(), O(b, {
|
|
2244
2254
|
key: 0,
|
|
2245
2255
|
columns: e.columns,
|
|
2246
2256
|
customRow: e.customRow,
|
|
@@ -2250,7 +2260,7 @@ function za(e, r, K, D, I, E) {
|
|
|
2250
2260
|
size: "small"
|
|
2251
2261
|
}, {
|
|
2252
2262
|
bodyCell: p(({ column: B, record: U }) => [
|
|
2253
|
-
B.dataIndex === "name" ? (
|
|
2263
|
+
B.dataIndex === "name" ? (i(), $("div", {
|
|
2254
2264
|
key: 0,
|
|
2255
2265
|
class: "table",
|
|
2256
2266
|
style: { width: "100%", cursor: "pointer" },
|
|
@@ -2264,7 +2274,7 @@ function za(e, r, K, D, I, E) {
|
|
|
2264
2274
|
overlayStyle: { maxWidth: "200px" }
|
|
2265
2275
|
}, {
|
|
2266
2276
|
default: p(() => [
|
|
2267
|
-
A("div",
|
|
2277
|
+
A("div", ql, G(U.name), 1)
|
|
2268
2278
|
]),
|
|
2269
2279
|
_: 2
|
|
2270
2280
|
}, 1032, ["title"]),
|
|
@@ -2277,14 +2287,14 @@ function za(e, r, K, D, I, E) {
|
|
|
2277
2287
|
}, G(U.num), 5),
|
|
2278
2288
|
S(v, { class: "dropdown" }, {
|
|
2279
2289
|
overlay: p(() => [
|
|
2280
|
-
S(
|
|
2290
|
+
S(f, null, {
|
|
2281
2291
|
default: p(() => [
|
|
2282
|
-
!U.is_system || e.is_auth ? (
|
|
2292
|
+
!U.is_system || e.is_auth ? (i(), O(h, { key: 0 }, {
|
|
2283
2293
|
default: p(() => [
|
|
2284
2294
|
A("a", {
|
|
2285
2295
|
href: "javascript:;",
|
|
2286
2296
|
onClick: (z) => e.handleSubmit(U, "personal")
|
|
2287
|
-
}, " 编辑 ", 8,
|
|
2297
|
+
}, " 编辑 ", 8, Bl)
|
|
2288
2298
|
]),
|
|
2289
2299
|
_: 2
|
|
2290
2300
|
}, 1024)) : R("", !0),
|
|
@@ -2293,16 +2303,16 @@ function za(e, r, K, D, I, E) {
|
|
|
2293
2303
|
A("a", {
|
|
2294
2304
|
href: "javascript:;",
|
|
2295
2305
|
onClick: (z) => e.handleShare(U)
|
|
2296
|
-
}, " 分享视图 ", 8,
|
|
2306
|
+
}, " 分享视图 ", 8, Dl)
|
|
2297
2307
|
]),
|
|
2298
2308
|
_: 2
|
|
2299
2309
|
}, 1024),
|
|
2300
|
-
!U.is_system || e.is_auth ? (
|
|
2310
|
+
!U.is_system || e.is_auth ? (i(), O(h, { key: 1 }, {
|
|
2301
2311
|
default: p(() => [
|
|
2302
2312
|
A("a", {
|
|
2303
2313
|
href: "javascript:;",
|
|
2304
2314
|
onClick: (z) => e.handleDelet(U)
|
|
2305
|
-
}, " 删除 ", 8,
|
|
2315
|
+
}, " 删除 ", 8, Kl)
|
|
2306
2316
|
]),
|
|
2307
2317
|
_: 2
|
|
2308
2318
|
}, 1024)) : R("", !0)
|
|
@@ -2313,25 +2323,25 @@ function za(e, r, K, D, I, E) {
|
|
|
2313
2323
|
default: p(() => [
|
|
2314
2324
|
A("span", {
|
|
2315
2325
|
style: { float: "right", "font-weight": "800" },
|
|
2316
|
-
onClick:
|
|
2326
|
+
onClick: u[2] || (u[2] = ae(() => {
|
|
2317
2327
|
}, ["stop"]))
|
|
2318
2328
|
}, " · · · ")
|
|
2319
2329
|
]),
|
|
2320
2330
|
_: 2
|
|
2321
2331
|
}, 1024)
|
|
2322
|
-
], 8,
|
|
2332
|
+
], 8, Vl)) : R("", !0)
|
|
2323
2333
|
]),
|
|
2324
2334
|
_: 1
|
|
2325
2335
|
}, 8, ["columns", "customRow", "dataSource"])) : R("", !0)
|
|
2326
2336
|
]),
|
|
2327
2337
|
_: 1
|
|
2328
2338
|
}, 8, ["style"])),
|
|
2329
|
-
(
|
|
2339
|
+
(i(), O(M, {
|
|
2330
2340
|
key: "2",
|
|
2331
2341
|
style: de(e.customStyle)
|
|
2332
2342
|
}, {
|
|
2333
2343
|
header: p(() => [
|
|
2334
|
-
|
|
2344
|
+
Nl
|
|
2335
2345
|
]),
|
|
2336
2346
|
extra: p(() => [
|
|
2337
2347
|
S(g, null, {
|
|
@@ -2341,7 +2351,7 @@ function za(e, r, K, D, I, E) {
|
|
|
2341
2351
|
default: p(() => [
|
|
2342
2352
|
S(F, {
|
|
2343
2353
|
style: { "margin-right": "10px" },
|
|
2344
|
-
onClick:
|
|
2354
|
+
onClick: u[3] || (u[3] = ae((B) => e.editView("public"), ["stop"]))
|
|
2345
2355
|
})
|
|
2346
2356
|
]),
|
|
2347
2357
|
_: 1
|
|
@@ -2352,14 +2362,14 @@ function za(e, r, K, D, I, E) {
|
|
|
2352
2362
|
]),
|
|
2353
2363
|
default: p(() => [
|
|
2354
2364
|
S(V, {
|
|
2355
|
-
onClick:
|
|
2365
|
+
onClick: u[4] || (u[4] = ae((B) => e.addView("public"), ["stop"]))
|
|
2356
2366
|
})
|
|
2357
2367
|
]),
|
|
2358
2368
|
_: 1
|
|
2359
2369
|
})
|
|
2360
2370
|
]),
|
|
2361
2371
|
default: p(() => [
|
|
2362
|
-
e.publicData.length > 0 ? (
|
|
2372
|
+
e.publicData.length > 0 ? (i(), O(b, {
|
|
2363
2373
|
key: 0,
|
|
2364
2374
|
columns: e.columns,
|
|
2365
2375
|
customRow: e.customRow,
|
|
@@ -2369,7 +2379,7 @@ function za(e, r, K, D, I, E) {
|
|
|
2369
2379
|
size: "small"
|
|
2370
2380
|
}, {
|
|
2371
2381
|
bodyCell: p(({ column: B, record: U }) => [
|
|
2372
|
-
B.dataIndex === "name" ? (
|
|
2382
|
+
B.dataIndex === "name" ? (i(), $("div", {
|
|
2373
2383
|
key: 0,
|
|
2374
2384
|
class: "table",
|
|
2375
2385
|
style: { width: "100%", cursor: "pointer" },
|
|
@@ -2383,7 +2393,7 @@ function za(e, r, K, D, I, E) {
|
|
|
2383
2393
|
overlayStyle: { maxWidth: "200px" }
|
|
2384
2394
|
}, {
|
|
2385
2395
|
default: p(() => [
|
|
2386
|
-
A("div",
|
|
2396
|
+
A("div", Tl, G(U.name), 1)
|
|
2387
2397
|
]),
|
|
2388
2398
|
_: 2
|
|
2389
2399
|
}, 1032, ["title"]),
|
|
@@ -2396,14 +2406,14 @@ function za(e, r, K, D, I, E) {
|
|
|
2396
2406
|
}, G(U.num), 5),
|
|
2397
2407
|
S(v, { class: "dropdown" }, {
|
|
2398
2408
|
overlay: p(() => [
|
|
2399
|
-
S(
|
|
2409
|
+
S(f, null, {
|
|
2400
2410
|
default: p(() => [
|
|
2401
|
-
!U.is_system || e.is_auth ? (
|
|
2411
|
+
!U.is_system || e.is_auth ? (i(), O(h, { key: 0 }, {
|
|
2402
2412
|
default: p(() => [
|
|
2403
2413
|
A("a", {
|
|
2404
2414
|
href: "javascript:;",
|
|
2405
2415
|
onClick: (z) => e.handleSubmit(U, "public")
|
|
2406
|
-
}, " 编辑 ", 8,
|
|
2416
|
+
}, " 编辑 ", 8, Gl)
|
|
2407
2417
|
]),
|
|
2408
2418
|
_: 2
|
|
2409
2419
|
}, 1024)) : R("", !0),
|
|
@@ -2412,16 +2422,16 @@ function za(e, r, K, D, I, E) {
|
|
|
2412
2422
|
A("a", {
|
|
2413
2423
|
href: "javascript:;",
|
|
2414
2424
|
onClick: (z) => e.handleShare(U)
|
|
2415
|
-
}, " 分享视图 ", 8,
|
|
2425
|
+
}, " 分享视图 ", 8, Ll)
|
|
2416
2426
|
]),
|
|
2417
2427
|
_: 2
|
|
2418
2428
|
}, 1024),
|
|
2419
|
-
!U.is_system || e.is_auth ? (
|
|
2429
|
+
!U.is_system || e.is_auth ? (i(), O(h, { key: 1 }, {
|
|
2420
2430
|
default: p(() => [
|
|
2421
2431
|
A("a", {
|
|
2422
2432
|
href: "javascript:;",
|
|
2423
2433
|
onClick: (z) => e.handleDelet(U)
|
|
2424
|
-
}, " 删除 ", 8,
|
|
2434
|
+
}, " 删除 ", 8, Jl)
|
|
2425
2435
|
]),
|
|
2426
2436
|
_: 2
|
|
2427
2437
|
}, 1024)) : R("", !0)
|
|
@@ -2432,13 +2442,13 @@ function za(e, r, K, D, I, E) {
|
|
|
2432
2442
|
default: p(() => [
|
|
2433
2443
|
A("span", {
|
|
2434
2444
|
style: { float: "right", "font-weight": "800" },
|
|
2435
|
-
onClick:
|
|
2445
|
+
onClick: u[5] || (u[5] = ae(() => {
|
|
2436
2446
|
}, ["stop"]))
|
|
2437
2447
|
}, " · · · ")
|
|
2438
2448
|
]),
|
|
2439
2449
|
_: 2
|
|
2440
2450
|
}, 1024)
|
|
2441
|
-
], 8,
|
|
2451
|
+
], 8, Rl)) : R("", !0)
|
|
2442
2452
|
]),
|
|
2443
2453
|
_: 1
|
|
2444
2454
|
}, 8, ["columns", "customRow", "dataSource"])) : R("", !0)
|
|
@@ -2452,10 +2462,10 @@ function za(e, r, K, D, I, E) {
|
|
|
2452
2462
|
_: 1
|
|
2453
2463
|
}, 8, ["body-style"]);
|
|
2454
2464
|
}
|
|
2455
|
-
const
|
|
2465
|
+
const Pl = /* @__PURE__ */ Z(Al, [["render", zl]]), Wl = X({
|
|
2456
2466
|
name: "SideSearchRender",
|
|
2457
2467
|
components: {
|
|
2458
|
-
ViewManage:
|
|
2468
|
+
ViewManage: Pl
|
|
2459
2469
|
},
|
|
2460
2470
|
props: {
|
|
2461
2471
|
selectObj: {
|
|
@@ -2464,22 +2474,22 @@ const Pa = /* @__PURE__ */ Z(Aa, [["render", za]]), Wa = X({
|
|
|
2464
2474
|
}
|
|
2465
2475
|
},
|
|
2466
2476
|
emits: ["change"],
|
|
2467
|
-
setup(e, { emit:
|
|
2477
|
+
setup(e, { emit: u }) {
|
|
2468
2478
|
return {
|
|
2469
2479
|
props: e,
|
|
2470
2480
|
change: (D, I, E) => {
|
|
2471
|
-
|
|
2481
|
+
u("change", D, I, E);
|
|
2472
2482
|
}
|
|
2473
2483
|
};
|
|
2474
2484
|
}
|
|
2475
2485
|
});
|
|
2476
|
-
function
|
|
2477
|
-
const
|
|
2478
|
-
return
|
|
2486
|
+
function Hl(e, u, K, D, I, E) {
|
|
2487
|
+
const r = C("view-manage"), F = C("a-card");
|
|
2488
|
+
return i(), O(F, {
|
|
2479
2489
|
"body-style": { padding: 0, height: e.selectObj.height + 96 + "px", overflowY: "auto" }
|
|
2480
2490
|
}, {
|
|
2481
2491
|
default: p(() => [
|
|
2482
|
-
S(
|
|
2492
|
+
S(r, {
|
|
2483
2493
|
"select-obj": e.selectObj,
|
|
2484
2494
|
onChange: e.change
|
|
2485
2495
|
}, null, 8, ["select-obj", "onChange"])
|
|
@@ -2487,19 +2497,19 @@ function Ha(e, r, K, D, I, E) {
|
|
|
2487
2497
|
_: 1
|
|
2488
2498
|
}, 8, ["body-style"]);
|
|
2489
2499
|
}
|
|
2490
|
-
const
|
|
2500
|
+
const wa = /* @__PURE__ */ Z(Wl, [["render", Hl]]);
|
|
2491
2501
|
export {
|
|
2492
|
-
|
|
2493
|
-
|
|
2502
|
+
ul as AddConditionGroupModal,
|
|
2503
|
+
Oa as BoldMatcher,
|
|
2494
2504
|
Ke as FieldRender,
|
|
2495
2505
|
Fe as FieldRender2,
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
$
|
|
2506
|
+
ya as FormRender,
|
|
2507
|
+
ba as FormRender2,
|
|
2508
|
+
ga as FormRender3,
|
|
2509
|
+
va as GeneralFilter,
|
|
2510
|
+
Sa as JsonObj,
|
|
2511
|
+
Ea as SearchRender,
|
|
2512
|
+
wa as SideSearchRender,
|
|
2513
|
+
Pl as ViewManage,
|
|
2514
|
+
$a as getFormConfig
|
|
2505
2515
|
};
|