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