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