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