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