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