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