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