liyu-pc-base 1.0.324 → 1.0.326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.js +1580 -1545
- package/dist/components/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as be, ref as A, resolveComponent as D, openBlock as v, createBlock as z, withCtx as E, createVNode as W, createElementBlock as U, Fragment as x, renderList as oe, createElementVNode as ee, toDisplayString as N, reactive as he, computed as me, watch as L, onMounted as Oe, onUnmounted as Pe, createTextVNode as ge, createCommentVNode as Z, withDirectives as Ft, vShow as Rt, onActivated as Kt, normalizeStyle as Se, withModifiers as Re, shallowRef as Jt, provide as Ve, nextTick as ke, renderSlot as Ze, inject as Ne, getCurrentInstance as Ge, onBeforeUnmount as It, normalizeClass as Ye, onBeforeMount as Yt, unref as dt, resolveDynamicComponent as Xt, mergeProps as Qt, markRaw as Zt } from "vue";
|
|
2
2
|
import xt from "../FieldRender-751b1121.js";
|
|
3
|
-
import { _ as
|
|
4
|
-
import { message as
|
|
5
|
-
import { get_operator_type_map as
|
|
3
|
+
import { _ as $e } from "../_plugin-vue_export-helper-dad06003.js";
|
|
4
|
+
import { message as ve, Modal as ft } from "ant-design-vue";
|
|
5
|
+
import { get_operator_type_map as ze, isNotEmpty as Ke, copyValue as el } from "../utils/function.js";
|
|
6
6
|
import { CloseOutlined as tl, LeftOutlined as ll, RightOutlined as al, CloseCircleOutlined as nl, CaretRightOutlined as ol, PlusOutlined as sl, SettingOutlined as il, ExclamationCircleOutlined as ct } from "@ant-design/icons-vue";
|
|
7
7
|
import { useI18n as jt } from "vue-i18n";
|
|
8
8
|
import _t from "moment";
|
|
@@ -52,7 +52,7 @@ import "emmet";
|
|
|
52
52
|
import "../utils/hooks/useFetchData.js";
|
|
53
53
|
import "../utils/hooks/useTableColumn.js";
|
|
54
54
|
import "scroll-into-view-if-needed";
|
|
55
|
-
const wl =
|
|
55
|
+
const wl = be({
|
|
56
56
|
name: "AddConditionModal",
|
|
57
57
|
props: {
|
|
58
58
|
open: {
|
|
@@ -74,56 +74,56 @@ const wl = ge({
|
|
|
74
74
|
},
|
|
75
75
|
emits: ["ok", "cancel"],
|
|
76
76
|
setup(e, { emit: l }) {
|
|
77
|
-
const
|
|
78
|
-
e.default_search_condition_config_list.forEach((
|
|
79
|
-
const
|
|
77
|
+
const r = A("condition_tab_0"), t = A([]);
|
|
78
|
+
e.default_search_condition_config_list.forEach((n, S) => {
|
|
79
|
+
const $ = JSON.parse(
|
|
80
80
|
JSON.stringify(e.base_search_condition_config_list)
|
|
81
81
|
);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
$ && $.forEach((M) => {
|
|
83
|
+
M.group.forEach((u) => {
|
|
84
|
+
n.forEach((g) => {
|
|
85
|
+
u.field_name == g.field_name && (u.operator = g.operator, u.checked = !0);
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
}), t.value.push({
|
|
89
89
|
tab_name: `条件组${S + 1}`,
|
|
90
90
|
key: `condition_tab_${S}`,
|
|
91
|
-
base_search_list:
|
|
91
|
+
base_search_list: $
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
|
-
const
|
|
95
|
-
|
|
94
|
+
const y = (n) => {
|
|
95
|
+
n.preventDefault();
|
|
96
96
|
const S = [];
|
|
97
|
-
t.value.forEach((
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
if (
|
|
102
|
-
if (!
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
105
|
-
const [
|
|
106
|
-
|
|
97
|
+
t.value.forEach(($) => {
|
|
98
|
+
const M = [];
|
|
99
|
+
$.base_search_list.forEach((u) => {
|
|
100
|
+
u.group.forEach((g) => {
|
|
101
|
+
if (g.checked) {
|
|
102
|
+
if (!g.operator) {
|
|
103
|
+
const h = d(g);
|
|
104
|
+
if (h.length > 0) {
|
|
105
|
+
const [F] = h;
|
|
106
|
+
g.operator = F;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
M.push(g);
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
|
-
}), S.push(
|
|
112
|
+
}), S.push(M);
|
|
113
113
|
}), l("ok", { new_list: S });
|
|
114
|
-
},
|
|
114
|
+
}, d = (n) => n.operator_list_selected ? n.operator_list_selected : n.operator_list ? n.operator_list : [];
|
|
115
115
|
return {
|
|
116
116
|
props: e,
|
|
117
|
-
activeKey:
|
|
117
|
+
activeKey: r,
|
|
118
118
|
tab_list: t,
|
|
119
|
-
handleSubmit:
|
|
119
|
+
handleSubmit: y
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
const kl = { style: { "font-size": "14px" } }, Cl = { style: { color: "#7d8089" } };
|
|
124
|
-
function El(e, l,
|
|
125
|
-
const
|
|
126
|
-
return
|
|
124
|
+
function El(e, l, r, t, y, d) {
|
|
125
|
+
const n = D("a-checkbox"), S = D("a-space"), $ = D("a-tab-pane"), M = D("a-tabs"), u = D("a-modal");
|
|
126
|
+
return v(), z(u, {
|
|
127
127
|
title: "添加过滤条件",
|
|
128
128
|
width: "800px",
|
|
129
129
|
open: e.open,
|
|
@@ -138,35 +138,35 @@ function El(e, l, o, t, w, i) {
|
|
|
138
138
|
})
|
|
139
139
|
}, {
|
|
140
140
|
default: E(() => [
|
|
141
|
-
|
|
141
|
+
W(M, {
|
|
142
142
|
activeKey: e.activeKey,
|
|
143
|
-
"onUpdate:activeKey": l[0] || (l[0] = (
|
|
143
|
+
"onUpdate:activeKey": l[0] || (l[0] = (g) => e.activeKey = g)
|
|
144
144
|
}, {
|
|
145
145
|
default: E(() => [
|
|
146
|
-
(
|
|
146
|
+
(v(!0), U(x, null, oe(e.tab_list, (g) => (v(), z($, {
|
|
147
147
|
class: "my-card",
|
|
148
|
-
key:
|
|
149
|
-
tab:
|
|
148
|
+
key: g.key,
|
|
149
|
+
tab: g.tab_name
|
|
150
150
|
}, {
|
|
151
151
|
default: E(() => [
|
|
152
|
-
(
|
|
153
|
-
key:
|
|
152
|
+
(v(!0), U(x, null, oe(g.base_search_list, (h) => (v(), U("div", {
|
|
153
|
+
key: h.name
|
|
154
154
|
}, [
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
ee("div", kl, N(h.name), 1),
|
|
156
|
+
W(S, {
|
|
157
157
|
wrap: "",
|
|
158
158
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
159
159
|
}, {
|
|
160
160
|
default: E(() => [
|
|
161
|
-
(
|
|
162
|
-
key:
|
|
161
|
+
(v(!0), U(x, null, oe(h.group, (F) => (v(), U("div", {
|
|
162
|
+
key: F.field_name
|
|
163
163
|
}, [
|
|
164
|
-
|
|
165
|
-
checked:
|
|
166
|
-
"onUpdate:checked": (
|
|
164
|
+
W(n, {
|
|
165
|
+
checked: F.checked,
|
|
166
|
+
"onUpdate:checked": (R) => F.checked = R
|
|
167
167
|
}, {
|
|
168
168
|
default: E(() => [
|
|
169
|
-
|
|
169
|
+
ee("span", Cl, N(F.label), 1)
|
|
170
170
|
]),
|
|
171
171
|
_: 2
|
|
172
172
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -185,7 +185,7 @@ function El(e, l, o, t, w, i) {
|
|
|
185
185
|
_: 1
|
|
186
186
|
}, 8, ["open", "confirmLoading", "onOk"]);
|
|
187
187
|
}
|
|
188
|
-
const Sl = /* @__PURE__ */
|
|
188
|
+
const Sl = /* @__PURE__ */ $e(wl, [["render", El], ["__scopeId", "data-v-25d1dc13"]]), Ml = be({
|
|
189
189
|
name: "AddConditionGroupModal",
|
|
190
190
|
props: {
|
|
191
191
|
open: {
|
|
@@ -207,67 +207,67 @@ const Sl = /* @__PURE__ */ Se(wl, [["render", El], ["__scopeId", "data-v-25d1dc1
|
|
|
207
207
|
},
|
|
208
208
|
emits: ["ok", "cancel"],
|
|
209
209
|
setup(e, { emit: l }) {
|
|
210
|
-
var M
|
|
211
|
-
const
|
|
212
|
-
(
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
210
|
+
var $, M;
|
|
211
|
+
const r = A([]), t = (u) => u.operator_list_selected ? u.operator_list_selected : u.operator_list ? u.operator_list : [];
|
|
212
|
+
($ = e.default_search_condition_config_list) == null || $.forEach((u, g) => {
|
|
213
|
+
const h = JSON.parse(JSON.stringify(e.base_search_condition_config_list));
|
|
214
|
+
h && h.forEach((F) => {
|
|
215
|
+
F.group.forEach((R) => {
|
|
216
|
+
u.forEach((K) => {
|
|
217
|
+
R.field_name == K.field_name && (R.checked = !0);
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
|
-
}),
|
|
221
|
-
tab_name: `条件组${
|
|
222
|
-
key: `condition_tab_${
|
|
223
|
-
base_search_list:
|
|
220
|
+
}), r.value.push({
|
|
221
|
+
tab_name: `条件组${g + 1}`,
|
|
222
|
+
key: `condition_tab_${g}`,
|
|
223
|
+
base_search_list: h
|
|
224
224
|
});
|
|
225
225
|
});
|
|
226
|
-
const
|
|
227
|
-
e.base_search_condition_config_list.forEach((
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
if (
|
|
232
|
-
const [
|
|
233
|
-
|
|
226
|
+
const y = ((M = e.default_search_condition_config_list) == null ? void 0 : M.length) || 0, d = [];
|
|
227
|
+
e.base_search_condition_config_list.forEach((u) => {
|
|
228
|
+
const g = [];
|
|
229
|
+
u.group.forEach((h) => {
|
|
230
|
+
const F = t(h);
|
|
231
|
+
if (h.default_operator && (h.operator = h.default_operator), F.includes(h.operator) || (h.operator = null), !h.operator && F.length > 0) {
|
|
232
|
+
const [K] = F;
|
|
233
|
+
h.operator = K;
|
|
234
234
|
}
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
}),
|
|
238
|
-
name:
|
|
239
|
-
group:
|
|
235
|
+
const R = { ...h, checked: !1 };
|
|
236
|
+
g.push(R);
|
|
237
|
+
}), d.push({
|
|
238
|
+
name: u.name,
|
|
239
|
+
group: g
|
|
240
240
|
});
|
|
241
|
-
}),
|
|
242
|
-
tab_name: `条件组${
|
|
243
|
-
key: `condition_tab_${
|
|
244
|
-
base_search_list:
|
|
241
|
+
}), r.value.push({
|
|
242
|
+
tab_name: `条件组${y + 1}`,
|
|
243
|
+
key: `condition_tab_${y}`,
|
|
244
|
+
base_search_list: d
|
|
245
245
|
});
|
|
246
|
-
const
|
|
246
|
+
const n = A(`condition_tab_${y}`);
|
|
247
247
|
return {
|
|
248
248
|
props: e,
|
|
249
|
-
activeKey:
|
|
250
|
-
tab_list:
|
|
251
|
-
handleSubmit: (
|
|
252
|
-
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
249
|
+
activeKey: n,
|
|
250
|
+
tab_list: r,
|
|
251
|
+
handleSubmit: (u) => {
|
|
252
|
+
u.preventDefault();
|
|
253
|
+
const g = [];
|
|
254
|
+
r.value.forEach((h) => {
|
|
255
|
+
const F = [];
|
|
256
|
+
h.base_search_list.forEach((R) => {
|
|
257
|
+
R.group.forEach((K) => {
|
|
258
|
+
K.checked && F.push(K);
|
|
259
259
|
});
|
|
260
|
-
}),
|
|
261
|
-
}),
|
|
260
|
+
}), F.length > 0 && g.push(F);
|
|
261
|
+
}), g.length == 0 ? (ve.error("新增条件组未增加新的字段,自动取消"), l("cancel")) : l("ok", { new_list: g });
|
|
262
262
|
},
|
|
263
263
|
get_operator_list_selected: t
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
|
-
const
|
|
268
|
-
function Il(e, l,
|
|
269
|
-
const
|
|
270
|
-
return
|
|
267
|
+
const $l = { style: { "font-size": "14px" } }, Ol = { style: { color: "#7d8089" } }, Fl = { style: { "font-size": "14px" } }, Rl = { style: { color: "#7d8089" } };
|
|
268
|
+
function Il(e, l, r, t, y, d) {
|
|
269
|
+
const n = D("a-checkbox"), S = D("a-space"), $ = D("a-tab-pane"), M = D("a-tabs"), u = D("a-modal");
|
|
270
|
+
return v(), z(u, {
|
|
271
271
|
title: "添加过滤条件组",
|
|
272
272
|
width: "800px",
|
|
273
273
|
open: e.open,
|
|
@@ -282,27 +282,27 @@ function Il(e, l, o, t, w, i) {
|
|
|
282
282
|
})
|
|
283
283
|
}, {
|
|
284
284
|
default: E(() => [
|
|
285
|
-
(
|
|
285
|
+
(v(!0), U(x, null, oe(e.tab_list, (g) => (v(), z($, {
|
|
286
286
|
class: "my-card",
|
|
287
|
-
key:
|
|
288
|
-
tab:
|
|
287
|
+
key: g.key,
|
|
288
|
+
tab: g.tab_name
|
|
289
289
|
}, {
|
|
290
290
|
default: E(() => [
|
|
291
|
-
(
|
|
292
|
-
key:
|
|
291
|
+
(v(!0), U(x, null, oe(g.base_search_list, (h) => (v(), U("div", {
|
|
292
|
+
key: h.name
|
|
293
293
|
}, [
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
ee("div", $l, N(h.name), 1),
|
|
295
|
+
W(S, { wrap: "" }, {
|
|
296
296
|
default: E(() => [
|
|
297
|
-
(
|
|
298
|
-
key:
|
|
297
|
+
(v(!0), U(x, null, oe(h.group, (F) => (v(), U("div", {
|
|
298
|
+
key: F.field_name
|
|
299
299
|
}, [
|
|
300
|
-
|
|
301
|
-
checked:
|
|
302
|
-
"onUpdate:checked": (
|
|
300
|
+
W(n, {
|
|
301
|
+
checked: F.checked,
|
|
302
|
+
"onUpdate:checked": (R) => F.checked = R
|
|
303
303
|
}, {
|
|
304
304
|
default: E(() => [
|
|
305
|
-
|
|
305
|
+
ee("span", Ol, N(F.label), 1)
|
|
306
306
|
]),
|
|
307
307
|
_: 2
|
|
308
308
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -314,35 +314,35 @@ function Il(e, l, o, t, w, i) {
|
|
|
314
314
|
]),
|
|
315
315
|
_: 2
|
|
316
316
|
}, 1032, ["tab"]))), 128)),
|
|
317
|
-
|
|
317
|
+
W(M, {
|
|
318
318
|
activeKey: e.activeKey,
|
|
319
|
-
"onUpdate:activeKey": l[0] || (l[0] = (
|
|
319
|
+
"onUpdate:activeKey": l[0] || (l[0] = (g) => e.activeKey = g)
|
|
320
320
|
}, {
|
|
321
321
|
default: E(() => [
|
|
322
|
-
(
|
|
322
|
+
(v(!0), U(x, null, oe(e.tab_list, (g) => (v(), z($, {
|
|
323
323
|
class: "my-card",
|
|
324
|
-
key:
|
|
325
|
-
tab:
|
|
324
|
+
key: g.key,
|
|
325
|
+
tab: g.tab_name
|
|
326
326
|
}, {
|
|
327
327
|
default: E(() => [
|
|
328
|
-
(
|
|
329
|
-
key:
|
|
328
|
+
(v(!0), U(x, null, oe(g.base_search_list, (h) => (v(), U("div", {
|
|
329
|
+
key: h.name
|
|
330
330
|
}, [
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
ee("div", Fl, N(h.name), 1),
|
|
332
|
+
W(S, {
|
|
333
333
|
wrap: "",
|
|
334
334
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
335
335
|
}, {
|
|
336
336
|
default: E(() => [
|
|
337
|
-
(
|
|
338
|
-
key:
|
|
337
|
+
(v(!0), U(x, null, oe(h.group, (F) => (v(), U("div", {
|
|
338
|
+
key: F.field_name
|
|
339
339
|
}, [
|
|
340
|
-
|
|
341
|
-
checked:
|
|
342
|
-
"onUpdate:checked": (
|
|
340
|
+
W(n, {
|
|
341
|
+
checked: F.checked,
|
|
342
|
+
"onUpdate:checked": (R) => F.checked = R
|
|
343
343
|
}, {
|
|
344
344
|
default: E(() => [
|
|
345
|
-
|
|
345
|
+
ee("span", Rl, N(F.label), 1)
|
|
346
346
|
]),
|
|
347
347
|
_: 2
|
|
348
348
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -361,7 +361,7 @@ function Il(e, l, o, t, w, i) {
|
|
|
361
361
|
_: 1
|
|
362
362
|
}, 8, ["open", "confirmLoading", "onOk"]);
|
|
363
363
|
}
|
|
364
|
-
const jl = /* @__PURE__ */
|
|
364
|
+
const jl = /* @__PURE__ */ $e(Ml, [["render", Il], ["__scopeId", "data-v-52b515e0"]]), Al = (e) => ({
|
|
365
365
|
options_eq: [
|
|
366
366
|
{ value: "上月", label: "上月" },
|
|
367
367
|
{ value: "本月", label: "本月" },
|
|
@@ -369,7 +369,7 @@ const jl = /* @__PURE__ */ Se($l, [["render", Il], ["__scopeId", "data-v-52b515e
|
|
|
369
369
|
{ value: "昨日", label: "昨日" },
|
|
370
370
|
{ value: "期初", label: "期初" }
|
|
371
371
|
]
|
|
372
|
-
}), zl =
|
|
372
|
+
}), zl = be({
|
|
373
373
|
name: "GeneralFilter",
|
|
374
374
|
props: {
|
|
375
375
|
base_search_condition_config_list: {
|
|
@@ -419,14 +419,14 @@ const jl = /* @__PURE__ */ Se($l, [["render", Il], ["__scopeId", "data-v-52b515e
|
|
|
419
419
|
"update:is_clear_model"
|
|
420
420
|
],
|
|
421
421
|
setup(e, { emit: l }) {
|
|
422
|
-
const
|
|
423
|
-
{ value: "yes", label:
|
|
424
|
-
{ value: "no", label:
|
|
422
|
+
const r = A(e.is_massage_default), t = A({}), { t: y } = jt(), { options_eq: d } = Al(), n = A([]), S = {}, $ = A(null), M = A([
|
|
423
|
+
{ value: "yes", label: y("is_or_not_blank_or_null.yes") },
|
|
424
|
+
{ value: "no", label: y("is_or_not_blank_or_null.no") }
|
|
425
425
|
]);
|
|
426
|
-
|
|
426
|
+
$.value || ($.value = JSON.parse(
|
|
427
427
|
JSON.stringify(e.default_search_condition_config_list)
|
|
428
428
|
));
|
|
429
|
-
const
|
|
429
|
+
const u = {
|
|
430
430
|
between: 2,
|
|
431
431
|
gt: 1,
|
|
432
432
|
lt: 1,
|
|
@@ -455,298 +455,298 @@ const jl = /* @__PURE__ */ Se($l, [["render", Il], ["__scopeId", "data-v-52b515e
|
|
|
455
455
|
json_list_is_blank_is_null: 1,
|
|
456
456
|
is_or_not_blank_or_null: 1,
|
|
457
457
|
is_or_not_null: 1
|
|
458
|
-
},
|
|
459
|
-
const [
|
|
460
|
-
return Array.isArray(
|
|
458
|
+
}, g = (o) => {
|
|
459
|
+
const [a] = [o];
|
|
460
|
+
return Array.isArray(a) && o.every((i) => Array.isArray(i));
|
|
461
461
|
};
|
|
462
|
-
let
|
|
463
|
-
const
|
|
464
|
-
const
|
|
465
|
-
if (
|
|
466
|
-
if (
|
|
467
|
-
|
|
462
|
+
let h = null;
|
|
463
|
+
const F = (o, a, i) => {
|
|
464
|
+
const c = n.value[a][i.field_name];
|
|
465
|
+
if (s(i).includes("_eq")) {
|
|
466
|
+
if (o == "_eq") {
|
|
467
|
+
n.value[a][i.field_name] = null, h = o, l("onChangeValue", { model: n.value });
|
|
468
468
|
return;
|
|
469
|
-
} else if (
|
|
470
|
-
|
|
469
|
+
} else if (h == "_eq") {
|
|
470
|
+
n.value[a][i.field_name] = null, h = o, l("onChangeValue", { model: n.value });
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
if (
|
|
475
|
-
if (
|
|
476
|
-
|
|
474
|
+
if (s(i).includes("not_blank_not_null")) {
|
|
475
|
+
if (o == "not_blank_not_null") {
|
|
476
|
+
n.value[a][i.field_name] = "是", h = o, l("onChangeValue", { model: n.value });
|
|
477
477
|
return;
|
|
478
|
-
} else if (
|
|
479
|
-
|
|
478
|
+
} else if (h == "not_blank_not_null") {
|
|
479
|
+
n.value[a][i.field_name] = null, h = o, l("onChangeValue", { model: n.value });
|
|
480
480
|
return;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
if (
|
|
484
|
-
if (
|
|
485
|
-
|
|
483
|
+
if (s(i).includes("is_or_not_blank_or_null") || s(i).includes("is_or_not_null")) {
|
|
484
|
+
if (o == "is_or_not_blank_or_null" || o == "is_or_not_null") {
|
|
485
|
+
n.value[a][i.field_name] = null, h = o, l("onChangeValue", { model: n.value });
|
|
486
486
|
return;
|
|
487
|
-
} else if (
|
|
488
|
-
|
|
487
|
+
} else if (h == "is_or_not_blank_or_null" || h == "is_or_not_null") {
|
|
488
|
+
n.value[a][i.field_name] = null, h = o, l("onChangeValue", { model: n.value });
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
if (
|
|
493
|
-
|
|
494
|
-
else if (
|
|
495
|
-
if (
|
|
496
|
-
const [
|
|
497
|
-
Ke(
|
|
492
|
+
if (c instanceof Array && g(c))
|
|
493
|
+
n.value[a][i.field_name] = null;
|
|
494
|
+
else if (u[o] == 1) {
|
|
495
|
+
if (c instanceof Array) {
|
|
496
|
+
const [p] = n.value[a][i.field_name];
|
|
497
|
+
Ke(p) ? n.value[a][i.field_name] = p : n.value[a][i.field_name] = null;
|
|
498
498
|
} else
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
(
|
|
502
|
-
) && (
|
|
503
|
-
} else if (
|
|
504
|
-
if (
|
|
505
|
-
const [
|
|
506
|
-
|
|
507
|
-
} else if (
|
|
508
|
-
const
|
|
509
|
-
|
|
499
|
+
n.value[a][i.field_name] = c || null;
|
|
500
|
+
d.some(
|
|
501
|
+
(p) => p.value === n.value[a][i.field_name]
|
|
502
|
+
) && (n.value[a][i.field_name] = null);
|
|
503
|
+
} else if (u[o] == 2) {
|
|
504
|
+
if (n.value[a][i.field_name] instanceof Array) {
|
|
505
|
+
const [p, _] = n.value[a][i.field_name];
|
|
506
|
+
n.value[a][i.field_name] = [p, _];
|
|
507
|
+
} else if (n.value[a][i.field_name]) {
|
|
508
|
+
const p = n.value[a][i.field_name];
|
|
509
|
+
n.value[a][i.field_name] = [p, null];
|
|
510
510
|
} else
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
(
|
|
514
|
-
) && (
|
|
511
|
+
n.value[a][i.field_name] = [null, null];
|
|
512
|
+
d.some(
|
|
513
|
+
(p) => p.value === n.value[a][i.field_name][0]
|
|
514
|
+
) && (n.value[a][i.field_name] = [null, null]);
|
|
515
515
|
}
|
|
516
|
-
|
|
517
|
-
},
|
|
516
|
+
h = o, l("onChangeValue", { model: n.value });
|
|
517
|
+
}, R = he({
|
|
518
518
|
open: !1
|
|
519
|
-
}),
|
|
520
|
-
|
|
521
|
-
},
|
|
522
|
-
e.default_search_condition_config_list.forEach((
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
519
|
+
}), K = () => {
|
|
520
|
+
R.open = !0;
|
|
521
|
+
}, se = (o) => {
|
|
522
|
+
e.default_search_condition_config_list.forEach((a, i) => {
|
|
523
|
+
o.new_list.forEach((c, w) => {
|
|
524
|
+
i == w && a.forEach((p) => {
|
|
525
|
+
c.forEach((_) => {
|
|
526
|
+
p.field_name == _.field_name && (_.value = p.value, _.operator = p.operator);
|
|
527
527
|
});
|
|
528
528
|
});
|
|
529
529
|
});
|
|
530
|
-
}), l("update_default_search_condition_config_list", { new_list:
|
|
531
|
-
},
|
|
532
|
-
|
|
533
|
-
},
|
|
530
|
+
}), l("update_default_search_condition_config_list", { new_list: o.new_list }), R.open = !1;
|
|
531
|
+
}, X = () => {
|
|
532
|
+
R.open = !1;
|
|
533
|
+
}, q = he({
|
|
534
534
|
open: !1
|
|
535
|
-
}),
|
|
536
|
-
|
|
537
|
-
},
|
|
538
|
-
e.default_search_condition_config_list.forEach((
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
535
|
+
}), G = () => {
|
|
536
|
+
q.open = !0;
|
|
537
|
+
}, ae = (o) => {
|
|
538
|
+
e.default_search_condition_config_list.forEach((a, i) => {
|
|
539
|
+
o.new_list.forEach((c, w) => {
|
|
540
|
+
i == w && a.forEach((p) => {
|
|
541
|
+
c.forEach((_) => {
|
|
542
|
+
p.field_name == _.field_name && (_.value = p.value, _.operator = p.operator);
|
|
543
543
|
});
|
|
544
544
|
});
|
|
545
545
|
});
|
|
546
|
-
}), l("update_default_search_condition_config_list", { new_list:
|
|
547
|
-
},
|
|
548
|
-
|
|
549
|
-
},
|
|
550
|
-
|
|
551
|
-
},
|
|
552
|
-
var
|
|
553
|
-
e.base_search_condition_config_list.length != 0 && ((
|
|
554
|
-
_e[
|
|
555
|
-
var
|
|
556
|
-
(
|
|
557
|
-
|
|
558
|
-
|
|
546
|
+
}), l("update_default_search_condition_config_list", { new_list: o.new_list }), q.open = !1;
|
|
547
|
+
}, pe = () => {
|
|
548
|
+
q.open = !1;
|
|
549
|
+
}, de = () => {
|
|
550
|
+
r.value = !1, console.log("condition_model_dict.value", n.value), l("search", { model: n.value });
|
|
551
|
+
}, I = (o = !1) => {
|
|
552
|
+
var a;
|
|
553
|
+
e.base_search_condition_config_list.length != 0 && ((a = e.default_search_condition_config_list) == null || a.forEach((i, c) => {
|
|
554
|
+
_e[c] = {}, n.value[c] || (n.value[c] = {}), e.base_search_condition_config_list.forEach((w) => {
|
|
555
|
+
var p;
|
|
556
|
+
(p = w.group) == null || p.forEach((_) => {
|
|
557
|
+
i.forEach((C) => {
|
|
558
|
+
_.field_name == C.field_name && ((n.value[c][C.field_name] == null || o) && (u[C.operator] == 1 ? C.value !== void 0 ? n.value[c][C.field_name] = C.value : n.value[c][C.field_name] = null : u[C.operator] == 2 ? C.value !== void 0 ? n.value[c][C.field_name] = C.value : n.value[c][C.field_name] = [null, null] : u[C.operator] == 0 && (C.value !== void 0 ? n.value[c][C.field_name] = C.value : n.value[c][C.field_name] = [])), Object.assign(C, { ..._, operator: C.operator }), C.operator == "eq" && C.mode != "default" ? (_.mode = "default", Object.assign(C, { model: "default" })) : ["in", "notin"].includes(C.operator) && C.mode != "multiple" && (_.mode = "multiple", Object.assign(C, { model: "multiple" })));
|
|
559
559
|
});
|
|
560
560
|
});
|
|
561
561
|
});
|
|
562
562
|
}));
|
|
563
|
-
},
|
|
564
|
-
|
|
565
|
-
}, _e =
|
|
566
|
-
_e[
|
|
567
|
-
},
|
|
568
|
-
_e[
|
|
569
|
-
},
|
|
570
|
-
const
|
|
571
|
-
e.default_search_condition_config_list.forEach((
|
|
572
|
-
if (
|
|
573
|
-
|
|
563
|
+
}, f = () => {
|
|
564
|
+
I(!0);
|
|
565
|
+
}, _e = he({}), O = (o, a) => {
|
|
566
|
+
_e[o][a.field_name] = !0;
|
|
567
|
+
}, Ce = (o, a) => {
|
|
568
|
+
_e[o][a.field_name] = !1;
|
|
569
|
+
}, we = (o, a) => {
|
|
570
|
+
const i = [];
|
|
571
|
+
e.default_search_condition_config_list.forEach((c, w) => {
|
|
572
|
+
if (w !== o)
|
|
573
|
+
i.push(c);
|
|
574
574
|
else {
|
|
575
|
-
const
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}),
|
|
575
|
+
const p = [];
|
|
576
|
+
c.forEach((_) => {
|
|
577
|
+
_.field_name !== a.field_name && p.push(_);
|
|
578
|
+
}), p.length > 0 && i.push(p);
|
|
579
579
|
}
|
|
580
|
-
}), l("update_default_search_condition_config_list", { new_list:
|
|
581
|
-
},
|
|
582
|
-
|
|
583
|
-
}, Q = (
|
|
584
|
-
if (
|
|
585
|
-
const
|
|
586
|
-
let
|
|
587
|
-
if (e.base_search_condition_config_list.forEach((
|
|
588
|
-
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
591
|
-
|
|
592
|
-
else if (p
|
|
593
|
-
const [
|
|
594
|
-
|
|
580
|
+
}), l("update_default_search_condition_config_list", { new_list: i });
|
|
581
|
+
}, T = (o, a) => {
|
|
582
|
+
n.value[o][a] instanceof Array ? n.value[o][a].length = 0 : n.value[o][a] = null, l("onChangeValue", { model: n.value }), l("delSearch", { model: JSON.parse(JSON.stringify(n.value)) });
|
|
583
|
+
}, Q = (o, a, i, c) => {
|
|
584
|
+
if (o instanceof Array && o.length > 0) {
|
|
585
|
+
const w = o[o.length - 1];
|
|
586
|
+
let p = null;
|
|
587
|
+
if (e.base_search_condition_config_list.forEach((_) => {
|
|
588
|
+
_.group.forEach((C) => {
|
|
589
|
+
if (C.field_name === w) {
|
|
590
|
+
if (p = JSON.parse(JSON.stringify(C)), p.default_operator)
|
|
591
|
+
p.operator = p.default_operator;
|
|
592
|
+
else if (s(p).length > 0) {
|
|
593
|
+
const [re] = s(p);
|
|
594
|
+
p.operator = re;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
});
|
|
598
|
-
}),
|
|
599
|
-
const
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
598
|
+
}), p) {
|
|
599
|
+
const _ = JSON.parse(JSON.stringify(e.default_search_condition_config_list));
|
|
600
|
+
_.forEach((C, re) => {
|
|
601
|
+
re === a && C.forEach((ue, le) => {
|
|
602
|
+
ue.field_name == i.field_name && le == c && (C.splice(le, 1, p), delete n.value[a][ue.field_name]);
|
|
603
603
|
});
|
|
604
604
|
}), l("update_default_search_condition_config_list", {
|
|
605
|
-
new_list:
|
|
605
|
+
new_list: _
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
|
-
|
|
608
|
+
I();
|
|
609
609
|
}
|
|
610
|
-
},
|
|
611
|
-
const
|
|
612
|
-
return e.default_search_condition_config_list.forEach((
|
|
613
|
-
|
|
614
|
-
const
|
|
615
|
-
e.base_search_condition_config_list.forEach((
|
|
616
|
-
const
|
|
617
|
-
(
|
|
618
|
-
),
|
|
619
|
-
value:
|
|
620
|
-
label:
|
|
621
|
-
children:
|
|
622
|
-
value:
|
|
623
|
-
label:
|
|
610
|
+
}, te = me(() => {
|
|
611
|
+
const o = {};
|
|
612
|
+
return e.default_search_condition_config_list.forEach((a, i) => {
|
|
613
|
+
o[i] = [];
|
|
614
|
+
const c = a.map((w) => w.field_name);
|
|
615
|
+
e.base_search_condition_config_list.forEach((w) => {
|
|
616
|
+
const p = w.group.filter(
|
|
617
|
+
(C) => !c.includes(C.field_name)
|
|
618
|
+
), _ = {
|
|
619
|
+
value: w.name,
|
|
620
|
+
label: w.name,
|
|
621
|
+
children: p.map((C) => ({
|
|
622
|
+
value: C.field_name,
|
|
623
|
+
label: C.label
|
|
624
624
|
}))
|
|
625
625
|
};
|
|
626
|
-
|
|
626
|
+
o[i].push(_);
|
|
627
627
|
});
|
|
628
|
-
}),
|
|
629
|
-
}),
|
|
630
|
-
var
|
|
631
|
-
const
|
|
632
|
-
if (
|
|
633
|
-
const [
|
|
634
|
-
if (Ke(
|
|
628
|
+
}), o;
|
|
629
|
+
}), fe = (o, a) => {
|
|
630
|
+
var c;
|
|
631
|
+
const i = (c = n.value[o]) == null ? void 0 : c[a.field_name];
|
|
632
|
+
if (i instanceof Array) {
|
|
633
|
+
const [w] = i;
|
|
634
|
+
if (Ke(w))
|
|
635
635
|
return !0;
|
|
636
|
-
} else if (Ke(
|
|
636
|
+
} else if (Ke(i))
|
|
637
637
|
return !0;
|
|
638
638
|
return !1;
|
|
639
|
-
},
|
|
640
|
-
var
|
|
641
|
-
const
|
|
642
|
-
if (
|
|
643
|
-
return
|
|
644
|
-
if (
|
|
645
|
-
if (["上月", "本月", "今日", "昨日", "期初"].includes(
|
|
646
|
-
return
|
|
639
|
+
}, ne = (o, a) => {
|
|
640
|
+
var w;
|
|
641
|
+
const i = [], c = (w = n.value[o]) == null ? void 0 : w[a.field_name];
|
|
642
|
+
if (a.operator === "is_or_not_blank_or_null" || a.operator === "is_or_not_null")
|
|
643
|
+
return y(c === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
|
|
644
|
+
if (a.operator === "_eq") {
|
|
645
|
+
if (["上月", "本月", "今日", "昨日", "期初"].includes(c))
|
|
646
|
+
return y(c);
|
|
647
647
|
} else {
|
|
648
|
-
if (t.value[
|
|
649
|
-
return `${
|
|
650
|
-
if (
|
|
651
|
-
let
|
|
652
|
-
return
|
|
648
|
+
if (t.value[a.field_name] != null)
|
|
649
|
+
return `${ze(a.format, a.operator)} ${t.value[a.field_name]}`;
|
|
650
|
+
if (c instanceof Array && a.field_name_list instanceof Array) {
|
|
651
|
+
let p;
|
|
652
|
+
return a.field_name_list && (c instanceof Array ? p = c.join(",") : p = c), `${ze(a.format, a.operator)} ${p}`;
|
|
653
653
|
} else {
|
|
654
|
-
if (
|
|
655
|
-
return
|
|
656
|
-
|
|
657
|
-
|
|
654
|
+
if (c instanceof Array && a.options instanceof Array)
|
|
655
|
+
return c.forEach((p) => {
|
|
656
|
+
a.options.forEach((_) => {
|
|
657
|
+
p == _.value && i.push(_.label);
|
|
658
658
|
});
|
|
659
|
-
}), `${
|
|
659
|
+
}), `${ze(a.format, a.operator)} ${i.join(
|
|
660
660
|
","
|
|
661
661
|
)}`;
|
|
662
662
|
{
|
|
663
|
-
let
|
|
664
|
-
if (
|
|
665
|
-
|
|
666
|
-
|
|
663
|
+
let p;
|
|
664
|
+
if (a.options)
|
|
665
|
+
a.options.forEach((_) => {
|
|
666
|
+
c == _.value && (p = _.label);
|
|
667
667
|
});
|
|
668
|
-
else if (
|
|
669
|
-
if (
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}),
|
|
668
|
+
else if (a.type == "monthpicker" && a.dateFormat)
|
|
669
|
+
if (c instanceof Array) {
|
|
670
|
+
const _ = [];
|
|
671
|
+
c.forEach((C) => {
|
|
672
|
+
C ? _.push(_t(C).format(a.dateFormat)) : _.push(C);
|
|
673
|
+
}), p = _.join(",");
|
|
674
674
|
} else
|
|
675
|
-
|
|
675
|
+
p = _t(c).format(a.dateFormat);
|
|
676
676
|
else
|
|
677
|
-
|
|
678
|
-
return `${
|
|
677
|
+
p = c;
|
|
678
|
+
return `${ze(a.format, a.operator)} ${p}`;
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
},
|
|
682
|
+
}, ie = () => {
|
|
683
683
|
l("onShowSearchRender");
|
|
684
|
-
},
|
|
685
|
-
return
|
|
686
|
-
() =>
|
|
684
|
+
}, s = (o) => o.operator_list_selected ? o.operator_list_selected : o.operator_list ? o.operator_list : [];
|
|
685
|
+
return L(
|
|
686
|
+
() => n.value,
|
|
687
687
|
() => {
|
|
688
|
-
l("onChangeValue", { model:
|
|
688
|
+
l("onChangeValue", { model: n.value });
|
|
689
689
|
},
|
|
690
690
|
{ deep: !0 }
|
|
691
|
-
),
|
|
691
|
+
), L(
|
|
692
692
|
() => e.default_search_condition_config_list,
|
|
693
693
|
() => {
|
|
694
|
-
var
|
|
695
|
-
if (((
|
|
694
|
+
var o;
|
|
695
|
+
if (((o = e.default_search_condition_config_list) == null ? void 0 : o.length) == 0) {
|
|
696
696
|
l("update_default_search_condition_config_list", {
|
|
697
|
-
new_list:
|
|
697
|
+
new_list: $.value
|
|
698
698
|
});
|
|
699
699
|
return;
|
|
700
700
|
}
|
|
701
|
-
|
|
701
|
+
I();
|
|
702
702
|
},
|
|
703
703
|
{ deep: !0 }
|
|
704
|
-
),
|
|
704
|
+
), L(
|
|
705
705
|
() => e.base_search_condition_config_list,
|
|
706
706
|
() => {
|
|
707
|
-
|
|
707
|
+
I();
|
|
708
708
|
},
|
|
709
709
|
{ deep: !0 }
|
|
710
|
-
),
|
|
710
|
+
), L(
|
|
711
711
|
() => e.is_clear_model,
|
|
712
712
|
() => {
|
|
713
|
-
e.is_clear_model && (
|
|
713
|
+
e.is_clear_model && (n.value = {}, I(), l("update:is_clear_model", !1));
|
|
714
714
|
}
|
|
715
|
-
),
|
|
716
|
-
|
|
715
|
+
), Oe(() => {
|
|
716
|
+
I(), e.eventBus && e.eventBus.on("filterChange", f);
|
|
717
717
|
}), Pe(() => {
|
|
718
|
-
e.eventBus && e.eventBus.off("filterChange",
|
|
718
|
+
e.eventBus && e.eventBus.off("filterChange", f);
|
|
719
719
|
}), {
|
|
720
720
|
props: e,
|
|
721
|
-
t:
|
|
722
|
-
isShowForm:
|
|
721
|
+
t: y,
|
|
722
|
+
isShowForm: r,
|
|
723
723
|
labelModel: t,
|
|
724
|
-
get_operator_type_map:
|
|
725
|
-
condition_model_dict:
|
|
726
|
-
addConditionModal:
|
|
727
|
-
handleAddConditions:
|
|
728
|
-
handleAddConditionOk:
|
|
729
|
-
handleAddConditionCancel:
|
|
730
|
-
onChangeOperator:
|
|
731
|
-
handleAddGroupCondition:
|
|
732
|
-
handleSearch:
|
|
733
|
-
addConditionGroupModal:
|
|
734
|
-
handleAddGroupConditionOK:
|
|
735
|
-
handleAddGroupConditionCancel:
|
|
724
|
+
get_operator_type_map: ze,
|
|
725
|
+
condition_model_dict: n,
|
|
726
|
+
addConditionModal: R,
|
|
727
|
+
handleAddConditions: K,
|
|
728
|
+
handleAddConditionOk: se,
|
|
729
|
+
handleAddConditionCancel: X,
|
|
730
|
+
onChangeOperator: F,
|
|
731
|
+
handleAddGroupCondition: G,
|
|
732
|
+
handleSearch: de,
|
|
733
|
+
addConditionGroupModal: q,
|
|
734
|
+
handleAddGroupConditionOK: ae,
|
|
735
|
+
handleAddGroupConditionCancel: pe,
|
|
736
736
|
validateInfos: S,
|
|
737
737
|
deleteBtnDict: _e,
|
|
738
|
-
handleMouseEnter:
|
|
739
|
-
handleMouseLeave:
|
|
740
|
-
handleDeleteFormItem:
|
|
741
|
-
handleDelSearch:
|
|
742
|
-
searchItemOptionsDict:
|
|
738
|
+
handleMouseEnter: O,
|
|
739
|
+
handleMouseLeave: Ce,
|
|
740
|
+
handleDeleteFormItem: we,
|
|
741
|
+
handleDelSearch: T,
|
|
742
|
+
searchItemOptionsDict: te,
|
|
743
743
|
onChangeSearchItem: Q,
|
|
744
|
-
transferValueFunc:
|
|
745
|
-
isShowSearchTag:
|
|
746
|
-
handleShowSearchRender:
|
|
747
|
-
options_eq:
|
|
748
|
-
get_operator_list_selected:
|
|
749
|
-
is_or_not_blank_or_null_options:
|
|
744
|
+
transferValueFunc: ne,
|
|
745
|
+
isShowSearchTag: fe,
|
|
746
|
+
handleShowSearchRender: ie,
|
|
747
|
+
options_eq: d,
|
|
748
|
+
get_operator_list_selected: s,
|
|
749
|
+
is_or_not_blank_or_null_options: M
|
|
750
750
|
};
|
|
751
751
|
}
|
|
752
752
|
});
|
|
@@ -766,22 +766,22 @@ const Bl = { class: "expand-btn" }, Vl = { key: 1 }, Ul = {
|
|
|
766
766
|
key: 3,
|
|
767
767
|
class: "search-bar"
|
|
768
768
|
};
|
|
769
|
-
function Hl(e, l,
|
|
770
|
-
const
|
|
771
|
-
return
|
|
772
|
-
e.is_massage_default ?
|
|
769
|
+
function Hl(e, l, r, t, y, d) {
|
|
770
|
+
const n = D("a-button"), S = D("a-space"), $ = D("a-tag"), M = D("close-outlined"), u = D("a-cascader"), g = D("a-tooltip"), h = D("a-select-option"), F = D("a-select"), R = D("field-render-2"), K = D("a-flex"), se = D("close-circle-outlined"), X = D("a-input-group"), q = D("a-space-compact"), G = D("a-divider"), ae = D("add-condition-modal"), pe = D("add-condition-group-modal");
|
|
771
|
+
return v(), U(x, null, [
|
|
772
|
+
e.is_massage_default ? Z("", !0) : (v(), z(S, { key: 0 }, {
|
|
773
773
|
default: E(() => [
|
|
774
|
-
e.is_show_normal_search ? (
|
|
774
|
+
e.is_show_normal_search ? (v(), z(n, {
|
|
775
775
|
key: 0,
|
|
776
776
|
type: "link",
|
|
777
777
|
onClick: e.handleShowSearchRender
|
|
778
778
|
}, {
|
|
779
779
|
default: E(() => [
|
|
780
|
-
|
|
780
|
+
ge(N(e.$t("普通")), 1)
|
|
781
781
|
]),
|
|
782
782
|
_: 1
|
|
783
|
-
}, 8, ["onClick"])) :
|
|
784
|
-
e.isShowForm ? (
|
|
783
|
+
}, 8, ["onClick"])) : Z("", !0),
|
|
784
|
+
e.isShowForm ? (v(), z(n, {
|
|
785
785
|
key: 2,
|
|
786
786
|
type: "link",
|
|
787
787
|
onClick: l[1] || (l[1] = () => {
|
|
@@ -789,10 +789,10 @@ function Hl(e, l, o, t, w, i) {
|
|
|
789
789
|
})
|
|
790
790
|
}, {
|
|
791
791
|
default: E(() => [
|
|
792
|
-
|
|
792
|
+
ge(N(e.$t("隐藏")), 1)
|
|
793
793
|
]),
|
|
794
794
|
_: 1
|
|
795
|
-
})) : (
|
|
795
|
+
})) : (v(), z(n, {
|
|
796
796
|
key: 1,
|
|
797
797
|
type: "link",
|
|
798
798
|
onClick: l[0] || (l[0] = () => {
|
|
@@ -800,272 +800,272 @@ function Hl(e, l, o, t, w, i) {
|
|
|
800
800
|
})
|
|
801
801
|
}, {
|
|
802
802
|
default: E(() => [
|
|
803
|
-
|
|
803
|
+
ee("span", Bl, N(e.$t("展开")), 1)
|
|
804
804
|
]),
|
|
805
805
|
_: 1
|
|
806
806
|
}))
|
|
807
807
|
]),
|
|
808
808
|
_: 1
|
|
809
809
|
})),
|
|
810
|
-
e.isShowForm ?
|
|
811
|
-
(
|
|
812
|
-
|
|
810
|
+
e.isShowForm ? Z("", !0) : (v(), U("span", Vl, [
|
|
811
|
+
(v(!0), U(x, null, oe(e.default_search_condition_config_list, (de, I) => (v(), U("span", { key: I }, [
|
|
812
|
+
W($, null, {
|
|
813
813
|
default: E(() => [
|
|
814
|
-
|
|
814
|
+
ge(N(e.$t("条件组")) + N(I + 1) + ":", 1)
|
|
815
815
|
]),
|
|
816
816
|
_: 2
|
|
817
817
|
}, 1024),
|
|
818
|
-
(
|
|
819
|
-
key:
|
|
818
|
+
(v(!0), U(x, null, oe(de, (f) => (v(), U("span", {
|
|
819
|
+
key: f.field_name
|
|
820
820
|
}, [
|
|
821
|
-
Ft(
|
|
821
|
+
Ft(W($, { color: "green" }, {
|
|
822
822
|
default: E(() => [
|
|
823
|
-
|
|
824
|
-
|
|
823
|
+
ge(N(f.label) + ": " + N(e.transferValueFunc(I, f)) + " ", 1),
|
|
824
|
+
W(M, {
|
|
825
825
|
style: { cursor: "pointer", "margin-left": "5px" },
|
|
826
|
-
onClick: (_e) => e.handleDelSearch(
|
|
826
|
+
onClick: (_e) => e.handleDelSearch(I, f.field_name)
|
|
827
827
|
}, null, 8, ["onClick"])
|
|
828
828
|
]),
|
|
829
829
|
_: 2
|
|
830
830
|
}, 1536), [
|
|
831
|
-
[Rt, e.isShowSearchTag(
|
|
831
|
+
[Rt, e.isShowSearchTag(I, f)]
|
|
832
832
|
])
|
|
833
833
|
]))), 128))
|
|
834
834
|
]))), 128))
|
|
835
835
|
])),
|
|
836
|
-
e.isShowForm ? (
|
|
837
|
-
(
|
|
838
|
-
e.default_search_condition_config_list.length > 1 ? (
|
|
839
|
-
|
|
836
|
+
e.isShowForm ? (v(), U("div", Ul, [
|
|
837
|
+
(v(!0), U(x, null, oe(e.default_search_condition_config_list, (de, I) => (v(), U("div", { key: I }, [
|
|
838
|
+
e.default_search_condition_config_list.length > 1 ? (v(), U("div", Dl, N(e.$t("条件组")) + " " + N(I + 1), 1)) : Z("", !0),
|
|
839
|
+
W(S, {
|
|
840
840
|
wrap: !0,
|
|
841
841
|
align: "center",
|
|
842
842
|
size: 0
|
|
843
843
|
}, {
|
|
844
844
|
default: E(() => [
|
|
845
|
-
(
|
|
845
|
+
(v(!0), U(x, null, oe(de, (f, _e) => (v(), z(q, {
|
|
846
846
|
block: "",
|
|
847
|
-
key:
|
|
847
|
+
key: f.field_name,
|
|
848
848
|
size: "middle",
|
|
849
|
-
onMouseenter: (
|
|
850
|
-
onMouseleave: (
|
|
849
|
+
onMouseenter: (O) => e.handleMouseEnter(I, f),
|
|
850
|
+
onMouseleave: (O) => e.handleMouseLeave(I, f)
|
|
851
851
|
}, {
|
|
852
852
|
default: E(() => [
|
|
853
|
-
|
|
853
|
+
W(X, { compact: "" }, {
|
|
854
854
|
default: E(() => [
|
|
855
|
-
|
|
856
|
-
title:
|
|
855
|
+
W(g, {
|
|
856
|
+
title: f.label
|
|
857
857
|
}, {
|
|
858
858
|
default: E(() => [
|
|
859
|
-
|
|
860
|
-
value:
|
|
859
|
+
W(u, {
|
|
860
|
+
value: f.label,
|
|
861
861
|
style: { width: "125px" },
|
|
862
|
-
options: e.searchItemOptionsDict[
|
|
862
|
+
options: e.searchItemOptionsDict[I],
|
|
863
863
|
showSearch: "",
|
|
864
864
|
allowClear: !1,
|
|
865
865
|
placeholder: e.$t("请选择..."),
|
|
866
|
-
onChange: (
|
|
866
|
+
onChange: (O) => e.onChangeSearchItem(O, I, f, _e)
|
|
867
867
|
}, null, 8, ["value", "options", "placeholder", "onChange"])
|
|
868
868
|
]),
|
|
869
869
|
_: 2
|
|
870
870
|
}, 1032, ["title"]),
|
|
871
|
-
|
|
872
|
-
title: e.get_operator_type_map(
|
|
871
|
+
W(g, {
|
|
872
|
+
title: e.get_operator_type_map(f.format, f.operator)
|
|
873
873
|
}, {
|
|
874
874
|
default: E(() => [
|
|
875
|
-
e.get_operator_list_selected(
|
|
875
|
+
e.get_operator_list_selected(f).length > 0 ? (v(), z(F, {
|
|
876
876
|
key: 0,
|
|
877
877
|
dropdownMatchSelectWidth: !1,
|
|
878
|
-
value:
|
|
879
|
-
"onUpdate:value": (
|
|
880
|
-
onChange: (
|
|
878
|
+
value: f.operator,
|
|
879
|
+
"onUpdate:value": (O) => f.operator = O,
|
|
880
|
+
onChange: (O) => e.onChangeOperator(O, I, f),
|
|
881
881
|
style: { width: "100px" }
|
|
882
882
|
}, {
|
|
883
883
|
default: E(() => [
|
|
884
|
-
(
|
|
885
|
-
value:
|
|
886
|
-
key:
|
|
884
|
+
(v(!0), U(x, null, oe(e.get_operator_list_selected(f), (O) => (v(), z(h, {
|
|
885
|
+
value: O,
|
|
886
|
+
key: O
|
|
887
887
|
}, {
|
|
888
888
|
default: E(() => [
|
|
889
|
-
|
|
889
|
+
ge(N(e.get_operator_type_map(f.format, O)), 1)
|
|
890
890
|
]),
|
|
891
891
|
_: 2
|
|
892
892
|
}, 1032, ["value"]))), 128))
|
|
893
893
|
]),
|
|
894
894
|
_: 2
|
|
895
|
-
}, 1032, ["value", "onUpdate:value", "onChange"])) :
|
|
895
|
+
}, 1032, ["value", "onUpdate:value", "onChange"])) : Z("", !0)
|
|
896
896
|
]),
|
|
897
897
|
_: 2
|
|
898
898
|
}, 1032, ["title"]),
|
|
899
|
-
e.condition_model_dict && e.condition_model_dict[
|
|
900
|
-
["is_or_not_blank_or_null", "is_or_not_null"].includes(
|
|
899
|
+
e.condition_model_dict && e.condition_model_dict[I] ? (v(), U("span", Wl, [
|
|
900
|
+
["is_or_not_blank_or_null", "is_or_not_null"].includes(f.operator) ? (v(), z(R, {
|
|
901
901
|
key: 0,
|
|
902
902
|
is_show_label: !1,
|
|
903
|
-
label: e.labelModel[
|
|
904
|
-
"onUpdate:label": (
|
|
905
|
-
value: e.condition_model_dict[
|
|
906
|
-
"onUpdate:value": (
|
|
903
|
+
label: e.labelModel[f.field_name],
|
|
904
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
905
|
+
value: e.condition_model_dict[I][f.field_name],
|
|
906
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name] = O,
|
|
907
907
|
field: {
|
|
908
|
-
...
|
|
908
|
+
...f,
|
|
909
909
|
type: "select",
|
|
910
910
|
mode: "default",
|
|
911
911
|
format: "choices",
|
|
912
912
|
class_name: "str",
|
|
913
913
|
placeholder: ""
|
|
914
914
|
},
|
|
915
|
-
formModel: e.condition_model_dict[
|
|
915
|
+
formModel: e.condition_model_dict[I],
|
|
916
916
|
options: e.is_or_not_blank_or_null_options,
|
|
917
917
|
validateInfos: e.validateInfos
|
|
918
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : ["input"].includes(
|
|
919
|
-
|
|
920
|
-
|
|
918
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : ["input"].includes(f.format) ? (v(), U(x, { key: 1 }, [
|
|
919
|
+
f.operator === "between" || f.operator === "notbetween" ? (v(), U(x, { key: 0 }, [
|
|
920
|
+
f.type === "datepicker" ? (v(), z(R, {
|
|
921
921
|
key: 0,
|
|
922
922
|
is_show_label: !1,
|
|
923
|
-
label: e.labelModel[
|
|
924
|
-
"onUpdate:label": (
|
|
925
|
-
value: e.condition_model_dict[
|
|
926
|
-
"onUpdate:value": (
|
|
927
|
-
field: { ...
|
|
928
|
-
formModel: e.condition_model_dict[
|
|
929
|
-
options:
|
|
923
|
+
label: e.labelModel[f.field_name],
|
|
924
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
925
|
+
value: e.condition_model_dict[I][f.field_name],
|
|
926
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name] = O,
|
|
927
|
+
field: { ...f, type: "rangepicker", format: f.dateFormat },
|
|
928
|
+
formModel: e.condition_model_dict[I],
|
|
929
|
+
options: f.options,
|
|
930
930
|
validateInfos: e.validateInfos
|
|
931
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
931
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : f.type === "monthpicker" ? (v(), z(R, {
|
|
932
932
|
key: 1,
|
|
933
933
|
is_show_label: !1,
|
|
934
|
-
label: e.labelModel[
|
|
935
|
-
"onUpdate:label": (
|
|
936
|
-
value: e.condition_model_dict[
|
|
937
|
-
"onUpdate:value": (
|
|
934
|
+
label: e.labelModel[f.field_name],
|
|
935
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
936
|
+
value: e.condition_model_dict[I][f.field_name],
|
|
937
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name] = O,
|
|
938
938
|
field: {
|
|
939
|
-
...
|
|
939
|
+
...f,
|
|
940
940
|
type: "monthrangepicker",
|
|
941
|
-
format:
|
|
941
|
+
format: f.dateFormat
|
|
942
942
|
},
|
|
943
|
-
formModel: e.condition_model_dict[
|
|
944
|
-
options:
|
|
943
|
+
formModel: e.condition_model_dict[I],
|
|
944
|
+
options: f.options,
|
|
945
945
|
validateInfos: e.validateInfos
|
|
946
|
-
}, 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"])) : f.type === "timepicker" ? (v(), z(R, {
|
|
947
947
|
key: 2,
|
|
948
948
|
is_show_label: !1,
|
|
949
|
-
label: e.labelModel[
|
|
950
|
-
"onUpdate:label": (
|
|
951
|
-
value: e.condition_model_dict[
|
|
952
|
-
"onUpdate:value": (
|
|
949
|
+
label: e.labelModel[f.field_name],
|
|
950
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
951
|
+
value: e.condition_model_dict[I][f.field_name],
|
|
952
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name] = O,
|
|
953
953
|
field: {
|
|
954
|
-
...
|
|
954
|
+
...f,
|
|
955
955
|
type: "timerangepicker",
|
|
956
|
-
format:
|
|
956
|
+
format: f.dateFormat
|
|
957
957
|
},
|
|
958
|
-
formModel: e.condition_model_dict[
|
|
959
|
-
options:
|
|
958
|
+
formModel: e.condition_model_dict[I],
|
|
959
|
+
options: f.options,
|
|
960
960
|
validateInfos: e.validateInfos
|
|
961
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (
|
|
961
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (v(), z(K, { key: 3 }, {
|
|
962
962
|
default: E(() => [
|
|
963
|
-
|
|
963
|
+
W(R, {
|
|
964
964
|
is_show_label: !1,
|
|
965
|
-
label: e.labelModel[
|
|
966
|
-
"onUpdate:label": (
|
|
967
|
-
value: e.condition_model_dict[
|
|
968
|
-
"onUpdate:value": (
|
|
969
|
-
field:
|
|
970
|
-
formModel: e.condition_model_dict[
|
|
971
|
-
options:
|
|
965
|
+
label: e.labelModel[f.field_name],
|
|
966
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
967
|
+
value: e.condition_model_dict[I][f.field_name][0],
|
|
968
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name][0] = O,
|
|
969
|
+
field: f,
|
|
970
|
+
formModel: e.condition_model_dict[I],
|
|
971
|
+
options: f.options,
|
|
972
972
|
validateInfos: e.validateInfos
|
|
973
973
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"]),
|
|
974
|
-
l[2] || (l[2] =
|
|
975
|
-
|
|
974
|
+
l[2] || (l[2] = ee("div", { class: "range" }, "~", -1)),
|
|
975
|
+
W(R, {
|
|
976
976
|
is_show_label: !1,
|
|
977
|
-
label: e.labelModel[
|
|
978
|
-
"onUpdate:label": (
|
|
979
|
-
value: e.condition_model_dict[
|
|
980
|
-
"onUpdate:value": (
|
|
981
|
-
field:
|
|
982
|
-
formModel: e.condition_model_dict[
|
|
983
|
-
options:
|
|
977
|
+
label: e.labelModel[f.field_name],
|
|
978
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
979
|
+
value: e.condition_model_dict[I][f.field_name][1],
|
|
980
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name][1] = O,
|
|
981
|
+
field: f,
|
|
982
|
+
formModel: e.condition_model_dict[I],
|
|
983
|
+
options: f.options,
|
|
984
984
|
validateInfos: e.validateInfos
|
|
985
985
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])
|
|
986
986
|
]),
|
|
987
987
|
_: 2
|
|
988
988
|
}, 1024))
|
|
989
|
-
], 64)) :
|
|
989
|
+
], 64)) : f.operator === "_eq" ? (v(), z(R, {
|
|
990
990
|
key: 1,
|
|
991
991
|
is_show_label: !1,
|
|
992
|
-
label: e.labelModel[
|
|
993
|
-
"onUpdate:label": (
|
|
994
|
-
value: e.condition_model_dict[
|
|
995
|
-
"onUpdate:value": (
|
|
992
|
+
label: e.labelModel[f.field_name],
|
|
993
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
994
|
+
value: e.condition_model_dict[I][f.field_name],
|
|
995
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name] = O,
|
|
996
996
|
field: {
|
|
997
|
-
...
|
|
997
|
+
...f,
|
|
998
998
|
type: "select",
|
|
999
999
|
mode: "default",
|
|
1000
1000
|
format: "choices",
|
|
1001
1001
|
class_name: "str",
|
|
1002
1002
|
placeholder: ""
|
|
1003
1003
|
},
|
|
1004
|
-
formModel: e.condition_model_dict[
|
|
1004
|
+
formModel: e.condition_model_dict[I],
|
|
1005
1005
|
options: e.options_eq,
|
|
1006
1006
|
validateInfos: e.validateInfos
|
|
1007
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
1007
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : f.type === "datepicker" || f.type === "monthpicker" || f.type === "timepicker" ? (v(), z(R, {
|
|
1008
1008
|
key: 2,
|
|
1009
1009
|
is_show_label: !1,
|
|
1010
|
-
label: e.labelModel[
|
|
1011
|
-
"onUpdate:label": (
|
|
1012
|
-
value: e.condition_model_dict[
|
|
1013
|
-
"onUpdate:value": (
|
|
1014
|
-
field: { ...
|
|
1015
|
-
formModel: e.condition_model_dict[
|
|
1016
|
-
options:
|
|
1010
|
+
label: e.labelModel[f.field_name],
|
|
1011
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
1012
|
+
value: e.condition_model_dict[I][f.field_name],
|
|
1013
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name] = O,
|
|
1014
|
+
field: { ...f, format: f.dateFormat },
|
|
1015
|
+
formModel: e.condition_model_dict[I],
|
|
1016
|
+
options: f.options,
|
|
1017
1017
|
validateInfos: e.validateInfos
|
|
1018
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (
|
|
1018
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (v(), z(R, {
|
|
1019
1019
|
key: 3,
|
|
1020
1020
|
is_show_label: !1,
|
|
1021
|
-
label: e.labelModel[
|
|
1022
|
-
"onUpdate:label": (
|
|
1023
|
-
value: e.condition_model_dict[
|
|
1024
|
-
"onUpdate:value": (
|
|
1025
|
-
field:
|
|
1026
|
-
formModel: e.condition_model_dict[
|
|
1027
|
-
options:
|
|
1021
|
+
label: e.labelModel[f.field_name],
|
|
1022
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
1023
|
+
value: e.condition_model_dict[I][f.field_name],
|
|
1024
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name] = O,
|
|
1025
|
+
field: f,
|
|
1026
|
+
formModel: e.condition_model_dict[I],
|
|
1027
|
+
options: f.options,
|
|
1028
1028
|
validateInfos: e.validateInfos
|
|
1029
1029
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"]))
|
|
1030
|
-
], 64)) : ["choices", "remote"].includes(
|
|
1031
|
-
|
|
1030
|
+
], 64)) : ["choices", "remote"].includes(f.format) ? (v(), U(x, { key: 2 }, [
|
|
1031
|
+
f.format === "choices" ? (v(), z(R, {
|
|
1032
1032
|
key: 0,
|
|
1033
1033
|
is_show_label: !1,
|
|
1034
|
-
label: e.labelModel[
|
|
1035
|
-
"onUpdate:label": (
|
|
1036
|
-
value: e.condition_model_dict[
|
|
1037
|
-
"onUpdate:value": (
|
|
1038
|
-
field:
|
|
1039
|
-
formModel: e.condition_model_dict[
|
|
1040
|
-
options:
|
|
1034
|
+
label: e.labelModel[f.field_name],
|
|
1035
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
1036
|
+
value: e.condition_model_dict[I][f.field_name],
|
|
1037
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name] = O,
|
|
1038
|
+
field: f,
|
|
1039
|
+
formModel: e.condition_model_dict[I],
|
|
1040
|
+
options: f.options,
|
|
1041
1041
|
validateInfos: e.validateInfos
|
|
1042
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
1042
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : f.format === "remote" ? (v(), z(R, {
|
|
1043
1043
|
key: 1,
|
|
1044
1044
|
is_show_label: !1,
|
|
1045
|
-
label: e.labelModel[
|
|
1046
|
-
"onUpdate:label": (
|
|
1047
|
-
value: e.condition_model_dict[
|
|
1048
|
-
"onUpdate:value": (
|
|
1049
|
-
field: { ...
|
|
1050
|
-
formModel: e.condition_model_dict[
|
|
1051
|
-
options:
|
|
1045
|
+
label: e.labelModel[f.field_name],
|
|
1046
|
+
"onUpdate:label": (O) => e.labelModel[f.field_name] = O,
|
|
1047
|
+
value: e.condition_model_dict[I][f.field_name],
|
|
1048
|
+
"onUpdate:value": (O) => e.condition_model_dict[I][f.field_name] = O,
|
|
1049
|
+
field: { ...f, name: f == null ? void 0 : f.field_name },
|
|
1050
|
+
formModel: e.condition_model_dict[I],
|
|
1051
|
+
options: f.options,
|
|
1052
1052
|
validateInfos: e.validateInfos
|
|
1053
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
1054
|
-
], 64)) :
|
|
1055
|
-
])) :
|
|
1056
|
-
e.deleteBtnDict && e.deleteBtnDict[
|
|
1057
|
-
e.deleteBtnDict[
|
|
1053
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : Z("", !0)
|
|
1054
|
+
], 64)) : Z("", !0)
|
|
1055
|
+
])) : Z("", !0),
|
|
1056
|
+
e.deleteBtnDict && e.deleteBtnDict[I] ? (v(), U("span", ql, [
|
|
1057
|
+
e.deleteBtnDict[I][f.field_name] && (e.default_search_condition_config_list[0].length > 1 || e.default_search_condition_config_list.length > 1) && !e.is_massage_default ? (v(), z(g, {
|
|
1058
1058
|
key: 0,
|
|
1059
1059
|
title: "删除此条件"
|
|
1060
1060
|
}, {
|
|
1061
1061
|
default: E(() => [
|
|
1062
|
-
|
|
1063
|
-
onClick: (
|
|
1062
|
+
W(se, {
|
|
1063
|
+
onClick: (O) => e.handleDeleteFormItem(I, f)
|
|
1064
1064
|
}, null, 8, ["onClick"])
|
|
1065
1065
|
]),
|
|
1066
1066
|
_: 2
|
|
1067
|
-
}, 1024)) :
|
|
1068
|
-
])) :
|
|
1067
|
+
}, 1024)) : Z("", !0)
|
|
1068
|
+
])) : Z("", !0)
|
|
1069
1069
|
]),
|
|
1070
1070
|
_: 2
|
|
1071
1071
|
}, 1024)
|
|
@@ -1075,74 +1075,74 @@ function Hl(e, l, o, t, w, i) {
|
|
|
1075
1075
|
]),
|
|
1076
1076
|
_: 2
|
|
1077
1077
|
}, 1024),
|
|
1078
|
-
e.default_search_condition_config_list.length > 1 &&
|
|
1078
|
+
e.default_search_condition_config_list.length > 1 && I != e.default_search_condition_config_list.length - 1 ? (v(), z(G, {
|
|
1079
1079
|
key: 1,
|
|
1080
1080
|
class: "divider",
|
|
1081
1081
|
style: { margin: "0" }
|
|
1082
1082
|
}, {
|
|
1083
1083
|
default: E(() => l[3] || (l[3] = [
|
|
1084
|
-
|
|
1084
|
+
ge(" 或 ")
|
|
1085
1085
|
])),
|
|
1086
1086
|
_: 1
|
|
1087
|
-
})) :
|
|
1087
|
+
})) : Z("", !0)
|
|
1088
1088
|
]))), 128))
|
|
1089
|
-
])) :
|
|
1090
|
-
e.isShowForm && !e.is_massage_default ? (
|
|
1091
|
-
|
|
1089
|
+
])) : Z("", !0),
|
|
1090
|
+
e.isShowForm && !e.is_massage_default ? (v(), U("div", Pl, [
|
|
1091
|
+
W(S, null, {
|
|
1092
1092
|
default: E(() => [
|
|
1093
|
-
|
|
1093
|
+
W(n, {
|
|
1094
1094
|
size: "small",
|
|
1095
1095
|
type: "primary",
|
|
1096
1096
|
onClick: e.handleAddConditions
|
|
1097
1097
|
}, {
|
|
1098
1098
|
default: E(() => [
|
|
1099
|
-
|
|
1099
|
+
ge(N(e.$t("添加条件")), 1)
|
|
1100
1100
|
]),
|
|
1101
1101
|
_: 1
|
|
1102
1102
|
}, 8, ["onClick"]),
|
|
1103
|
-
|
|
1103
|
+
W(n, {
|
|
1104
1104
|
size: "small",
|
|
1105
1105
|
type: "primary",
|
|
1106
1106
|
onClick: e.handleAddGroupCondition
|
|
1107
1107
|
}, {
|
|
1108
1108
|
default: E(() => [
|
|
1109
|
-
|
|
1109
|
+
ge(N(e.$t("添加条件组")), 1)
|
|
1110
1110
|
]),
|
|
1111
1111
|
_: 1
|
|
1112
1112
|
}, 8, ["onClick"]),
|
|
1113
|
-
|
|
1113
|
+
W(n, {
|
|
1114
1114
|
size: "small",
|
|
1115
1115
|
type: "primary",
|
|
1116
1116
|
onClick: e.handleSearch
|
|
1117
1117
|
}, {
|
|
1118
1118
|
default: E(() => [
|
|
1119
|
-
|
|
1119
|
+
ge(N(e.$t("查询")), 1)
|
|
1120
1120
|
]),
|
|
1121
1121
|
_: 1
|
|
1122
1122
|
}, 8, ["onClick"])
|
|
1123
1123
|
]),
|
|
1124
1124
|
_: 1
|
|
1125
1125
|
})
|
|
1126
|
-
])) :
|
|
1127
|
-
e.addConditionModal.open ? (
|
|
1126
|
+
])) : Z("", !0),
|
|
1127
|
+
e.addConditionModal.open ? (v(), z(ae, {
|
|
1128
1128
|
key: 4,
|
|
1129
1129
|
open: e.addConditionModal.open,
|
|
1130
1130
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
1131
1131
|
base_search_condition_config_list: e.base_search_condition_config_list,
|
|
1132
1132
|
onOk: e.handleAddConditionOk,
|
|
1133
1133
|
onCancel: e.handleAddConditionCancel
|
|
1134
|
-
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) :
|
|
1135
|
-
e.addConditionGroupModal.open ? (
|
|
1134
|
+
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : Z("", !0),
|
|
1135
|
+
e.addConditionGroupModal.open ? (v(), z(pe, {
|
|
1136
1136
|
key: 5,
|
|
1137
1137
|
open: e.addConditionGroupModal.open,
|
|
1138
1138
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
1139
1139
|
base_search_condition_config_list: e.base_search_condition_config_list,
|
|
1140
1140
|
onOk: e.handleAddGroupConditionOK,
|
|
1141
1141
|
onCancel: e.handleAddGroupConditionCancel
|
|
1142
|
-
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) :
|
|
1142
|
+
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : Z("", !0)
|
|
1143
1143
|
], 64);
|
|
1144
1144
|
}
|
|
1145
|
-
const In = /* @__PURE__ */
|
|
1145
|
+
const In = /* @__PURE__ */ $e(zl, [["render", Hl], ["__scopeId", "data-v-e5319275"]]), Ll = be({
|
|
1146
1146
|
name: "FormRender",
|
|
1147
1147
|
components: {},
|
|
1148
1148
|
props: {
|
|
@@ -1167,7 +1167,7 @@ const In = /* @__PURE__ */ Se(zl, [["render", Hl], ["__scopeId", "data-v-e531927
|
|
|
1167
1167
|
setup(e) {
|
|
1168
1168
|
if (e.form.watch)
|
|
1169
1169
|
for (const l in e.form.watch)
|
|
1170
|
-
|
|
1170
|
+
L(
|
|
1171
1171
|
() => e.model[l],
|
|
1172
1172
|
() => {
|
|
1173
1173
|
e.form.watch[l](e.model, e.form);
|
|
@@ -1197,14 +1197,14 @@ const In = /* @__PURE__ */ Se(zl, [["render", Hl], ["__scopeId", "data-v-e531927
|
|
|
1197
1197
|
},
|
|
1198
1198
|
created() {
|
|
1199
1199
|
let e = 0;
|
|
1200
|
-
this.form.settings.col && this.form.settings.col.length > 0 && this.form.settings.col.forEach((l,
|
|
1201
|
-
e = e + l,
|
|
1200
|
+
this.form.settings.col && this.form.settings.col.length > 0 && this.form.settings.col.forEach((l, r) => {
|
|
1201
|
+
e = e + l, r === 0 ? this.fieldList.push([0, e]) : this.fieldList.push([e - l, e]);
|
|
1202
1202
|
});
|
|
1203
1203
|
}
|
|
1204
1204
|
});
|
|
1205
|
-
function Tl(e, l,
|
|
1206
|
-
const
|
|
1207
|
-
return
|
|
1205
|
+
function Tl(e, l, r, t, y, d) {
|
|
1206
|
+
const n = D("field-render"), S = D("a-col"), $ = D("a-row"), M = D("a-form");
|
|
1207
|
+
return v(), z(M, {
|
|
1208
1208
|
ref: "form",
|
|
1209
1209
|
autocomplete: "off",
|
|
1210
1210
|
model: e.model,
|
|
@@ -1217,12 +1217,12 @@ function Tl(e, l, o, t, w, i) {
|
|
|
1217
1217
|
scrollToFirstError: ""
|
|
1218
1218
|
}, {
|
|
1219
1219
|
default: E(() => [
|
|
1220
|
-
|
|
1220
|
+
W($, {
|
|
1221
1221
|
gutter: 20,
|
|
1222
1222
|
style: { margin: "0" }
|
|
1223
1223
|
}, {
|
|
1224
1224
|
default: E(() => [
|
|
1225
|
-
e.form.settings.col && e.form.settings.col.length > 0 ? (
|
|
1225
|
+
e.form.settings.col && e.form.settings.col.length > 0 ? (v(!0), U(x, { key: 0 }, oe(e.fieldList, (u) => (v(), z(S, {
|
|
1226
1226
|
xl: 24 / e.fieldList.length,
|
|
1227
1227
|
lg: 24,
|
|
1228
1228
|
md: 24,
|
|
@@ -1230,19 +1230,19 @@ function Tl(e, l, o, t, w, i) {
|
|
|
1230
1230
|
xs: 24
|
|
1231
1231
|
}, {
|
|
1232
1232
|
default: E(() => [
|
|
1233
|
-
(
|
|
1234
|
-
value: e.model[
|
|
1235
|
-
"onUpdate:value": (
|
|
1236
|
-
field:
|
|
1233
|
+
(v(!0), U(x, null, oe(e.form.fields.slice(u[0], u[1]), (g) => (v(), z(n, {
|
|
1234
|
+
value: e.model[g.name],
|
|
1235
|
+
"onUpdate:value": (h) => e.model[g.name] = h,
|
|
1236
|
+
field: g,
|
|
1237
1237
|
formModel: e.model,
|
|
1238
|
-
key:
|
|
1238
|
+
key: g.name,
|
|
1239
1239
|
validateInfos: e.validateInfos,
|
|
1240
|
-
options: e.options[
|
|
1240
|
+
options: e.options[g.datasource ? g.datasource : g.name]
|
|
1241
1241
|
}, null, 8, ["value", "onUpdate:value", "field", "formModel", "validateInfos", "options"]))), 128))
|
|
1242
1242
|
]),
|
|
1243
1243
|
_: 2
|
|
1244
|
-
}, 1032, ["xl"]))), 256)) :
|
|
1245
|
-
!e.form.settings.col || e.form.settings.col.length === 0 ? (
|
|
1244
|
+
}, 1032, ["xl"]))), 256)) : Z("", !0),
|
|
1245
|
+
!e.form.settings.col || e.form.settings.col.length === 0 ? (v(), z(S, {
|
|
1246
1246
|
key: 1,
|
|
1247
1247
|
xl: 24,
|
|
1248
1248
|
lg: 24,
|
|
@@ -1251,30 +1251,30 @@ function Tl(e, l, o, t, w, i) {
|
|
|
1251
1251
|
xs: 24
|
|
1252
1252
|
}, {
|
|
1253
1253
|
default: E(() => [
|
|
1254
|
-
(
|
|
1255
|
-
|
|
1256
|
-
value: e.model[
|
|
1257
|
-
"onUpdate:value": (
|
|
1258
|
-
label: e.model[
|
|
1259
|
-
"onUpdate:label": (
|
|
1260
|
-
field:
|
|
1254
|
+
(v(!0), U(x, null, oe(e.form.fields, (u) => (v(), U(x, null, [
|
|
1255
|
+
u.name2 ? (v(), z(n, {
|
|
1256
|
+
value: e.model[u.name],
|
|
1257
|
+
"onUpdate:value": (g) => e.model[u.name] = g,
|
|
1258
|
+
label: e.model[u.name2],
|
|
1259
|
+
"onUpdate:label": (g) => e.model[u.name2] = g,
|
|
1260
|
+
field: u,
|
|
1261
1261
|
formModel: e.model,
|
|
1262
|
-
key:
|
|
1262
|
+
key: u.name,
|
|
1263
1263
|
validateInfos: e.validateInfos,
|
|
1264
|
-
options: e.options[
|
|
1265
|
-
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (
|
|
1266
|
-
value: e.model[
|
|
1267
|
-
"onUpdate:value": (
|
|
1268
|
-
field:
|
|
1264
|
+
options: e.options[u.datasource ? u.datasource : u.name]
|
|
1265
|
+
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (v(), z(n, {
|
|
1266
|
+
value: e.model[u.name],
|
|
1267
|
+
"onUpdate:value": (g) => e.model[u.name] = g,
|
|
1268
|
+
field: u,
|
|
1269
1269
|
formModel: e.model,
|
|
1270
|
-
key:
|
|
1270
|
+
key: u.name,
|
|
1271
1271
|
validateInfos: e.validateInfos,
|
|
1272
|
-
options: e.options[
|
|
1272
|
+
options: e.options[u.datasource ? u.datasource : u.name]
|
|
1273
1273
|
}, null, 8, ["value", "onUpdate:value", "field", "formModel", "validateInfos", "options"]))
|
|
1274
1274
|
], 64))), 256))
|
|
1275
1275
|
]),
|
|
1276
1276
|
_: 1
|
|
1277
|
-
})) :
|
|
1277
|
+
})) : Z("", !0)
|
|
1278
1278
|
]),
|
|
1279
1279
|
_: 1
|
|
1280
1280
|
})
|
|
@@ -1282,7 +1282,7 @@ function Tl(e, l, o, t, w, i) {
|
|
|
1282
1282
|
_: 1
|
|
1283
1283
|
}, 8, ["model", "rules", "layout", "label-col", "wrapper-col", "labelAlign"]);
|
|
1284
1284
|
}
|
|
1285
|
-
const jn = /* @__PURE__ */
|
|
1285
|
+
const jn = /* @__PURE__ */ $e(Ll, [["render", Tl]]), Nl = be({
|
|
1286
1286
|
name: "FormRender2",
|
|
1287
1287
|
components: {},
|
|
1288
1288
|
props: {
|
|
@@ -1307,7 +1307,7 @@ const jn = /* @__PURE__ */ Se(Ll, [["render", Tl]]), Nl = ge({
|
|
|
1307
1307
|
setup(e) {
|
|
1308
1308
|
if (e.form.watch)
|
|
1309
1309
|
for (const l in e.form.watch)
|
|
1310
|
-
|
|
1310
|
+
L(
|
|
1311
1311
|
() => e.model[l],
|
|
1312
1312
|
() => {
|
|
1313
1313
|
e.form.watch[l](e.model, e.form);
|
|
@@ -1336,9 +1336,9 @@ const jn = /* @__PURE__ */ Se(Ll, [["render", Tl]]), Nl = ge({
|
|
|
1336
1336
|
created() {
|
|
1337
1337
|
}
|
|
1338
1338
|
});
|
|
1339
|
-
function Gl(e, l,
|
|
1340
|
-
const
|
|
1341
|
-
return
|
|
1339
|
+
function Gl(e, l, r, t, y, d) {
|
|
1340
|
+
const n = D("field-render"), S = D("a-col"), $ = D("a-row"), M = D("a-form");
|
|
1341
|
+
return v(), z(M, {
|
|
1342
1342
|
ref: "form",
|
|
1343
1343
|
autocomplete: "off",
|
|
1344
1344
|
model: e.model,
|
|
@@ -1346,34 +1346,34 @@ function Gl(e, l, o, t, w, i) {
|
|
|
1346
1346
|
scrollToFirstError: ""
|
|
1347
1347
|
}, {
|
|
1348
1348
|
default: E(() => [
|
|
1349
|
-
(
|
|
1349
|
+
(v(!0), U(x, null, oe(e.form.fieldList, (u) => (v(), z($, {
|
|
1350
1350
|
gutter: "5",
|
|
1351
1351
|
type: "flex"
|
|
1352
1352
|
}, {
|
|
1353
1353
|
default: E(() => [
|
|
1354
|
-
(
|
|
1355
|
-
span:
|
|
1354
|
+
(v(!0), U(x, null, oe(u, (g) => (v(), z(S, {
|
|
1355
|
+
span: g.span
|
|
1356
1356
|
}, {
|
|
1357
1357
|
default: E(() => [
|
|
1358
|
-
(
|
|
1359
|
-
|
|
1360
|
-
value: e.model[
|
|
1361
|
-
"onUpdate:value": (
|
|
1362
|
-
label: e.model[
|
|
1363
|
-
"onUpdate:label": (
|
|
1364
|
-
field:
|
|
1358
|
+
(v(!0), U(x, null, oe(e.form.fields, (h) => (v(), U(x, null, [
|
|
1359
|
+
h.name2 ? (v(), z(n, {
|
|
1360
|
+
value: e.model[h.name],
|
|
1361
|
+
"onUpdate:value": (F) => e.model[h.name] = F,
|
|
1362
|
+
label: e.model[h.name2],
|
|
1363
|
+
"onUpdate:label": (F) => e.model[h.name2] = F,
|
|
1364
|
+
field: h,
|
|
1365
1365
|
formModel: e.model,
|
|
1366
|
-
key:
|
|
1366
|
+
key: h.name,
|
|
1367
1367
|
validateInfos: e.validateInfos,
|
|
1368
|
-
options: e.options[
|
|
1369
|
-
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (
|
|
1370
|
-
value: e.model[
|
|
1371
|
-
"onUpdate:value": (
|
|
1372
|
-
field:
|
|
1368
|
+
options: e.options[h.datasource ? h.datasource : h.name]
|
|
1369
|
+
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (v(), z(n, {
|
|
1370
|
+
value: e.model[h.name],
|
|
1371
|
+
"onUpdate:value": (F) => e.model[h.name] = F,
|
|
1372
|
+
field: h,
|
|
1373
1373
|
formModel: e.model,
|
|
1374
|
-
key:
|
|
1374
|
+
key: h.name,
|
|
1375
1375
|
validateInfos: e.validateInfos,
|
|
1376
|
-
options: e.options[
|
|
1376
|
+
options: e.options[h.datasource ? h.datasource : h.name]
|
|
1377
1377
|
}, null, 8, ["value", "onUpdate:value", "field", "formModel", "validateInfos", "options"]))
|
|
1378
1378
|
], 64))), 256))
|
|
1379
1379
|
]),
|
|
@@ -1386,13 +1386,13 @@ function Gl(e, l, o, t, w, i) {
|
|
|
1386
1386
|
_: 1
|
|
1387
1387
|
}, 8, ["model", "rules"]);
|
|
1388
1388
|
}
|
|
1389
|
-
const An = /* @__PURE__ */
|
|
1389
|
+
const An = /* @__PURE__ */ $e(Nl, [["render", Gl]]), bt = "customviewdatauser", Kl = "view_system_edit", Jl = [
|
|
1390
1390
|
{
|
|
1391
1391
|
title: "",
|
|
1392
1392
|
dataIndex: "name",
|
|
1393
1393
|
key: "name"
|
|
1394
1394
|
}
|
|
1395
|
-
], Yl =
|
|
1395
|
+
], Yl = be({
|
|
1396
1396
|
name: "ViewManage",
|
|
1397
1397
|
components: {
|
|
1398
1398
|
CaretRightOutlined: ol,
|
|
@@ -1437,54 +1437,80 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1437
1437
|
},
|
|
1438
1438
|
app_flag: {
|
|
1439
1439
|
type: String
|
|
1440
|
+
},
|
|
1441
|
+
allBaseConfigMap: {
|
|
1442
|
+
type: Object,
|
|
1443
|
+
required: !0
|
|
1444
|
+
},
|
|
1445
|
+
searchConfigFields: {
|
|
1446
|
+
type: Array,
|
|
1447
|
+
required: !0
|
|
1440
1448
|
}
|
|
1441
1449
|
},
|
|
1442
1450
|
emits: ["change"],
|
|
1443
1451
|
setup(e, { emit: l }) {
|
|
1444
|
-
const
|
|
1445
|
-
let
|
|
1446
|
-
const
|
|
1447
|
-
const
|
|
1448
|
-
return
|
|
1449
|
-
}),
|
|
1450
|
-
const
|
|
1451
|
-
return
|
|
1452
|
-
}),
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1452
|
+
const r = _l(), t = ml(), y = pl(), d = At(), n = y.currentOrg, S = y.userid, $ = A(y.CHECK_AUTH(Kl)), M = A([]), { t: u } = jt();
|
|
1453
|
+
let g;
|
|
1454
|
+
const h = me(() => {
|
|
1455
|
+
const s = M.value.filter((a) => !!a.user_id && a.is_system).map((a) => a).sort((a, i) => a.sort == i.sort ? a.id - i.id : a.sort - i.sort), o = M.value.filter((a) => !!a.user_id && !a.is_system).map((a) => a).sort((a, i) => a.sort == i.sort ? a.id - i.id : a.sort - i.sort);
|
|
1456
|
+
return s.concat(o);
|
|
1457
|
+
}), F = me(() => {
|
|
1458
|
+
const s = M.value.filter((a) => !a.user_id && a.is_system).map((a) => a).sort((a, i) => a.sort == i.sort ? a.id - i.id : a.sort - i.sort), o = M.value.filter((a) => !a.user_id && !a.is_system).map((a) => a).sort((a, i) => a.sort == i.sort ? a.id - i.id : a.sort - i.sort);
|
|
1459
|
+
return s.concat(o);
|
|
1460
|
+
}), R = me(() => M.value.map((s) => s.name)), K = (s) => {
|
|
1461
|
+
const o = [];
|
|
1462
|
+
for (const a of s) {
|
|
1463
|
+
const i = [];
|
|
1464
|
+
for (const c of a)
|
|
1465
|
+
e.allBaseConfigMap[c.field_name] && i.push(c);
|
|
1466
|
+
i.length > 0 && o.push(i);
|
|
1467
|
+
}
|
|
1468
|
+
return o;
|
|
1469
|
+
}, se = (s) => {
|
|
1470
|
+
var i;
|
|
1471
|
+
const o = {}, a = {};
|
|
1472
|
+
if ((i = e.searchConfigFields) != null && i.length)
|
|
1473
|
+
for (const c of e.searchConfigFields)
|
|
1474
|
+
a[c.name] = c;
|
|
1475
|
+
for (const c of Object.keys(s))
|
|
1476
|
+
a[c] && (o[c] = s[c]);
|
|
1477
|
+
return o;
|
|
1478
|
+
}, X = async ({
|
|
1479
|
+
id: s,
|
|
1480
|
+
search_model: o,
|
|
1481
|
+
filter_map: a,
|
|
1482
|
+
sort_fields: i,
|
|
1483
|
+
group_condition: c,
|
|
1484
|
+
conditions: w,
|
|
1485
|
+
isShowGeneralFilter: p
|
|
1486
|
+
}) => new Promise((_) => {
|
|
1487
|
+
!e.countData && !(g != null && g.countData) && (console.error("无count接口"), _(null));
|
|
1488
|
+
const C = {
|
|
1489
|
+
org_id: n.id,
|
|
1490
|
+
...se(o || {}),
|
|
1491
|
+
...a,
|
|
1492
|
+
sort_fields: i
|
|
1467
1493
|
};
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
}),
|
|
1472
|
-
}).catch((
|
|
1473
|
-
console.log("error",
|
|
1494
|
+
p && (C.group_condition = c, C.conditions = K(w)), C.required_condition = fe(), gt(C, g != null && g.countData ? g.countData : e.countData).then((re) => {
|
|
1495
|
+
M.value.forEach((ue) => {
|
|
1496
|
+
ue.id == s && (ue.num = re);
|
|
1497
|
+
}), _(null);
|
|
1498
|
+
}).catch((re) => {
|
|
1499
|
+
console.log("error", re), ve.error(u("获取数据失败, 请刷新页面"));
|
|
1474
1500
|
});
|
|
1475
|
-
}),
|
|
1476
|
-
for (const
|
|
1501
|
+
}), q = async (s) => {
|
|
1502
|
+
for (const o of s)
|
|
1477
1503
|
try {
|
|
1478
|
-
await X(
|
|
1479
|
-
} catch (
|
|
1480
|
-
console.log("error",
|
|
1504
|
+
await X(o);
|
|
1505
|
+
} catch (a) {
|
|
1506
|
+
console.log("error", a), ve.error(u("获取数据失败, 请刷新页面"));
|
|
1481
1507
|
}
|
|
1482
|
-
},
|
|
1483
|
-
const
|
|
1508
|
+
}, G = async () => {
|
|
1509
|
+
const s = await gt(
|
|
1484
1510
|
{
|
|
1485
|
-
org_id:
|
|
1511
|
+
org_id: n.id,
|
|
1486
1512
|
user_id: S,
|
|
1487
|
-
view_project__flag:
|
|
1513
|
+
view_project__flag: r.VITE_APP_VIEW_PROJECT_FLAG,
|
|
1488
1514
|
view_menu__flag: e.modalType,
|
|
1489
1515
|
history_id: null,
|
|
1490
1516
|
sort_fields: ["sort", "create_time"],
|
|
@@ -1492,46 +1518,46 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1492
1518
|
},
|
|
1493
1519
|
"/view/get_view_settings_for_user"
|
|
1494
1520
|
);
|
|
1495
|
-
if (
|
|
1521
|
+
if (g = Je(e.app_flag, e.modalType, null, u, {
|
|
1496
1522
|
use_store: !0,
|
|
1497
1523
|
to_i18n: !0,
|
|
1498
1524
|
enable_btn: !1
|
|
1499
|
-
}), (
|
|
1525
|
+
}), (g == null ? void 0 : g.isView) === !1) {
|
|
1500
1526
|
window.location.hash = "", l("change", null, {}, !0, !0);
|
|
1501
1527
|
return;
|
|
1502
1528
|
}
|
|
1503
1529
|
t.set_required_condition(
|
|
1504
1530
|
e.modalType,
|
|
1505
|
-
|
|
1506
|
-
),
|
|
1507
|
-
let
|
|
1508
|
-
const
|
|
1509
|
-
|
|
1510
|
-
let
|
|
1511
|
-
|
|
1512
|
-
...
|
|
1513
|
-
search_model:
|
|
1514
|
-
filter_map:
|
|
1515
|
-
sort_fields:
|
|
1516
|
-
group_condition:
|
|
1517
|
-
conditions:
|
|
1518
|
-
}),
|
|
1519
|
-
id:
|
|
1520
|
-
isShowGeneralFilter:
|
|
1521
|
-
search_model:
|
|
1522
|
-
filter_map:
|
|
1523
|
-
sort_fields:
|
|
1524
|
-
group_condition:
|
|
1525
|
-
conditions:
|
|
1531
|
+
g.required_condition
|
|
1532
|
+
), M.value.length = 0;
|
|
1533
|
+
let o = [];
|
|
1534
|
+
const a = [];
|
|
1535
|
+
s && s.system_user_datas && s.system_user_datas.length > 0 && (o = o.concat(s.system_user_datas)), s && s.system_public_datas && s.system_public_datas.length > 0 && (o = o.concat(s.system_public_datas)), s && s.public_datas && s.public_datas.length > 0 && (o = o.concat(s.public_datas)), s && s.user_datas && s.user_datas.length > 0 && (o = o.concat(s.user_datas)), o.forEach((i) => {
|
|
1536
|
+
let c = null, w = null, p = null, _ = null;
|
|
1537
|
+
i.data.isShowGeneralFilter ? (c = {}, w = {}, p = i.data.group_condition, _ = i.data.conditions) : (c = i.data.search_model, w = i.data.filter_map, p = {}, _ = []), M.value.push({
|
|
1538
|
+
...i,
|
|
1539
|
+
search_model: c,
|
|
1540
|
+
filter_map: w,
|
|
1541
|
+
sort_fields: i.data.sort_fields,
|
|
1542
|
+
group_condition: p,
|
|
1543
|
+
conditions: _
|
|
1544
|
+
}), a.push({
|
|
1545
|
+
id: i.id,
|
|
1546
|
+
isShowGeneralFilter: i.data.isShowGeneralFilter,
|
|
1547
|
+
search_model: c,
|
|
1548
|
+
filter_map: w,
|
|
1549
|
+
sort_fields: i.data.sort_fields,
|
|
1550
|
+
group_condition: p,
|
|
1551
|
+
conditions: _
|
|
1526
1552
|
});
|
|
1527
|
-
}),
|
|
1528
|
-
},
|
|
1529
|
-
var
|
|
1530
|
-
let
|
|
1531
|
-
if (
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1534
|
-
org_id:
|
|
1553
|
+
}), a.length > 0 && q(a), ae(null);
|
|
1554
|
+
}, ae = (s) => {
|
|
1555
|
+
var a;
|
|
1556
|
+
let o = null;
|
|
1557
|
+
if (s ? o = s : window.location.hash && (o = window.location.hash.substring(1)), o) {
|
|
1558
|
+
const i = M.value.filter((c) => c.uid == o);
|
|
1559
|
+
i && i.length > 0 ? l("change", null, { ...i[0], ...i[0].data }, !0, !0) : ul({
|
|
1560
|
+
org_id: n.id,
|
|
1535
1561
|
conditions: [
|
|
1536
1562
|
[
|
|
1537
1563
|
{
|
|
@@ -1551,37 +1577,37 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1551
1577
|
{
|
|
1552
1578
|
field_name: "uid",
|
|
1553
1579
|
operator: "eq",
|
|
1554
|
-
value: [
|
|
1580
|
+
value: [o],
|
|
1555
1581
|
format: "input",
|
|
1556
1582
|
class_name: "str"
|
|
1557
1583
|
}
|
|
1558
1584
|
]
|
|
1559
1585
|
]
|
|
1560
|
-
}).then((
|
|
1561
|
-
if (
|
|
1586
|
+
}).then((c) => {
|
|
1587
|
+
if (c && c.data && c.data.length > 0)
|
|
1562
1588
|
l(
|
|
1563
1589
|
"change",
|
|
1564
1590
|
null,
|
|
1565
1591
|
{
|
|
1566
|
-
...
|
|
1567
|
-
...
|
|
1592
|
+
...c.data[0],
|
|
1593
|
+
...c.data[0].data
|
|
1568
1594
|
},
|
|
1569
1595
|
!0,
|
|
1570
1596
|
!1
|
|
1571
1597
|
);
|
|
1572
1598
|
else {
|
|
1573
|
-
const
|
|
1574
|
-
if (
|
|
1575
|
-
window.location.hash =
|
|
1599
|
+
const w = M.value.filter((_) => !_.user_id && _.is_default);
|
|
1600
|
+
if (w && w.length > 0) {
|
|
1601
|
+
window.location.hash = w[0].uid, l("change", null, { ...w[0], ...w[0].data }, !0, !0);
|
|
1576
1602
|
return;
|
|
1577
1603
|
}
|
|
1578
|
-
let
|
|
1579
|
-
if (
|
|
1580
|
-
window.location.hash =
|
|
1581
|
-
else if (
|
|
1582
|
-
window.location.hash =
|
|
1604
|
+
let p = M.value.sort((_, C) => _.sort == C.sort ? _.id - C.id : _.sort - C.sort).find((_) => !_.user_id);
|
|
1605
|
+
if (p && p.uid)
|
|
1606
|
+
window.location.hash = p.uid, l("change", null, { ...p, ...p.data }, !0, !0);
|
|
1607
|
+
else if (p = M.value.sort((_, C) => _.sort == C.sort ? _.id - C.id : _.sort - C.sort).find((_) => _.user_id), p && p.uid)
|
|
1608
|
+
window.location.hash = p.uid, l("change", null, { ...p, ...p.data }, !0, !0);
|
|
1583
1609
|
else {
|
|
1584
|
-
const
|
|
1610
|
+
const _ = {
|
|
1585
1611
|
uid: null,
|
|
1586
1612
|
view_menu__flag: e.menu_flag,
|
|
1587
1613
|
column: {},
|
|
@@ -1591,37 +1617,37 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1591
1617
|
filtered_value: {},
|
|
1592
1618
|
sort_orders: []
|
|
1593
1619
|
};
|
|
1594
|
-
l("change", null,
|
|
1620
|
+
l("change", null, _, !0, !1), window.location.hash = "";
|
|
1595
1621
|
}
|
|
1596
1622
|
}
|
|
1597
1623
|
});
|
|
1598
1624
|
} else {
|
|
1599
|
-
let
|
|
1600
|
-
if (vt().get(bt) && (
|
|
1601
|
-
window.location.hash =
|
|
1625
|
+
let i = "";
|
|
1626
|
+
if (vt().get(bt) && (i = (a = vt().get(bt)) == null ? void 0 : a[e.menu_flag]), i)
|
|
1627
|
+
window.location.hash = i, ae(i);
|
|
1602
1628
|
else {
|
|
1603
|
-
const
|
|
1604
|
-
(
|
|
1629
|
+
const c = M.value.filter(
|
|
1630
|
+
(_) => !_.user_id && _.is_default && !_.is_system
|
|
1605
1631
|
);
|
|
1606
|
-
if (
|
|
1607
|
-
window.location.hash =
|
|
1632
|
+
if (c && c.length > 0) {
|
|
1633
|
+
window.location.hash = c[0].uid, l("change", null, { ...c[0], ...c[0].data }, !0, !0);
|
|
1608
1634
|
return;
|
|
1609
1635
|
}
|
|
1610
|
-
const
|
|
1611
|
-
(
|
|
1636
|
+
const w = M.value.filter(
|
|
1637
|
+
(_) => !_.user_id && _.is_default && _.is_system
|
|
1612
1638
|
);
|
|
1613
|
-
if (
|
|
1614
|
-
window.location.hash =
|
|
1639
|
+
if (w && w.length > 0) {
|
|
1640
|
+
window.location.hash = w[0].uid, l("change", null, { ...w[0], ...w[0].data }, !0, !0);
|
|
1615
1641
|
return;
|
|
1616
1642
|
}
|
|
1617
|
-
let
|
|
1618
|
-
if (
|
|
1619
|
-
window.location.hash =
|
|
1620
|
-
else if (
|
|
1621
|
-
window.location.hash =
|
|
1643
|
+
let p = M.value.sort((_, C) => _.sort == C.sort ? _.id - C.id : _.sort - C.sort).find((_) => !_.user_id);
|
|
1644
|
+
if (p && p.uid)
|
|
1645
|
+
window.location.hash = p.uid, l("change", null, { ...p, ...p.data }, !0, !0);
|
|
1646
|
+
else if (p = M.value.sort((_, C) => _.sort == C.sort ? _.id - C.id : _.sort - C.sort).find((_) => _.user_id), p && p.uid)
|
|
1647
|
+
window.location.hash = p.uid, l("change", null, { ...p, ...p.data }, !0, !0);
|
|
1622
1648
|
else {
|
|
1623
1649
|
window.location.hash = "";
|
|
1624
|
-
const
|
|
1650
|
+
const _ = {
|
|
1625
1651
|
uid: null,
|
|
1626
1652
|
view_menu__flag: e.menu_flag,
|
|
1627
1653
|
column: {},
|
|
@@ -1631,23 +1657,38 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1631
1657
|
filtered_value: {},
|
|
1632
1658
|
sort_orders: []
|
|
1633
1659
|
};
|
|
1634
|
-
l("change", null,
|
|
1660
|
+
l("change", null, _, !0, !1);
|
|
1635
1661
|
}
|
|
1636
1662
|
}
|
|
1637
1663
|
}
|
|
1638
|
-
},
|
|
1639
|
-
window.location.hash =
|
|
1640
|
-
},
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1664
|
+
}, pe = A(["1", "2"]), de = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;", I = (s) => e.currentViewObj && s && s.id === e.currentViewObj.id ? { style: { backgroundColor: "#ddf1ff" } } : { style: {} }, f = (s) => {
|
|
1665
|
+
window.location.hash = s.uid, ae(s.uid), ne([s]);
|
|
1666
|
+
}, _e = (s) => {
|
|
1667
|
+
const o = [];
|
|
1668
|
+
for (const a of s) {
|
|
1669
|
+
const i = [];
|
|
1670
|
+
for (const c of a)
|
|
1671
|
+
i.push({
|
|
1672
|
+
field_name: c.field_name,
|
|
1673
|
+
format: c.format,
|
|
1674
|
+
operator: c.operator,
|
|
1675
|
+
class_name: c.class_name,
|
|
1676
|
+
value: c.value
|
|
1677
|
+
});
|
|
1678
|
+
o.push(i);
|
|
1679
|
+
}
|
|
1680
|
+
return o;
|
|
1681
|
+
}, O = ({ updateView: s, record: o }) => {
|
|
1682
|
+
var a, i, c, w;
|
|
1683
|
+
if (o.name != s.name && R.value.includes(s.name)) {
|
|
1684
|
+
ve.error(u("视图名称已存在"));
|
|
1644
1685
|
return;
|
|
1645
1686
|
}
|
|
1646
|
-
if (
|
|
1647
|
-
const
|
|
1648
|
-
if ((
|
|
1649
|
-
const
|
|
1650
|
-
...
|
|
1687
|
+
if (o != null && o.id) {
|
|
1688
|
+
const p = M.value.filter((_) => (o == null ? void 0 : o.id) == _.id);
|
|
1689
|
+
if ((a = s.is_submit) != null && a[0]) {
|
|
1690
|
+
const _ = {
|
|
1691
|
+
...p[0].data,
|
|
1651
1692
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
1652
1693
|
filter_map: e.currentViewObj.filter_map,
|
|
1653
1694
|
sort_fields: e.currentViewObj.sort_fields,
|
|
@@ -1658,73 +1699,75 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1658
1699
|
conditions: e.currentViewObj.conditions,
|
|
1659
1700
|
group_condition: e.currentViewObj.group_condition,
|
|
1660
1701
|
group_record: e.currentViewObj.group_record,
|
|
1661
|
-
default_search_condition_config_list:
|
|
1702
|
+
default_search_condition_config_list: _e(
|
|
1703
|
+
e.currentViewObj.default_search_condition_config_list
|
|
1704
|
+
)
|
|
1662
1705
|
};
|
|
1663
|
-
delete
|
|
1664
|
-
org_id:
|
|
1665
|
-
view_settings_id:
|
|
1666
|
-
is_system: (
|
|
1667
|
-
name:
|
|
1668
|
-
data: JSON.stringify(
|
|
1669
|
-
}).then((
|
|
1670
|
-
var
|
|
1671
|
-
(
|
|
1672
|
-
org_id:
|
|
1673
|
-
view_settings_id:
|
|
1706
|
+
delete _.is_system, mt({
|
|
1707
|
+
org_id: n.id,
|
|
1708
|
+
view_settings_id: o == null ? void 0 : o.id,
|
|
1709
|
+
is_system: (i = s.is_system) == null ? void 0 : i[0],
|
|
1710
|
+
name: s.name,
|
|
1711
|
+
data: JSON.stringify(_)
|
|
1712
|
+
}).then((C) => {
|
|
1713
|
+
var re;
|
|
1714
|
+
(re = s.is_default) != null && re[0] ? pt({
|
|
1715
|
+
org_id: n.id,
|
|
1716
|
+
view_settings_id: o == null ? void 0 : o.id
|
|
1674
1717
|
}).then(() => {
|
|
1675
1718
|
De({
|
|
1676
|
-
org_id:
|
|
1677
|
-
view_settings_id:
|
|
1719
|
+
org_id: n.id,
|
|
1720
|
+
view_settings_id: o == null ? void 0 : o.id
|
|
1678
1721
|
}).then(() => {
|
|
1679
|
-
var
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
}),
|
|
1722
|
+
var ue;
|
|
1723
|
+
ve.success(u("保存成功")), C.id == ((ue = e.currentViewObj) == null ? void 0 : ue.id) ? l("change", null, { ...C, ...C.data }, !1, !0) : M.value.forEach((le) => {
|
|
1724
|
+
le.id == C.id && Object.assign(le, { ...C, ...C.data });
|
|
1725
|
+
}), G();
|
|
1683
1726
|
});
|
|
1684
1727
|
}) : De({
|
|
1685
|
-
org_id:
|
|
1686
|
-
view_settings_id:
|
|
1728
|
+
org_id: n.id,
|
|
1729
|
+
view_settings_id: o == null ? void 0 : o.id
|
|
1687
1730
|
}).then(() => {
|
|
1688
|
-
var
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
}),
|
|
1731
|
+
var ue;
|
|
1732
|
+
ve.success(u("保存成功")), C.id == ((ue = e.currentViewObj) == null ? void 0 : ue.id) ? l("change", null, { ...C, ...C.data }, !1, !0) : M.value.forEach((le) => {
|
|
1733
|
+
le.id == C.id && Object.assign(le, { ...C, ...C.data });
|
|
1734
|
+
}), G();
|
|
1692
1735
|
});
|
|
1693
1736
|
});
|
|
1694
1737
|
} else
|
|
1695
1738
|
mt({
|
|
1696
|
-
org_id:
|
|
1697
|
-
view_settings_id:
|
|
1698
|
-
is_system: (
|
|
1699
|
-
name:
|
|
1700
|
-
}).then((
|
|
1701
|
-
var
|
|
1702
|
-
(
|
|
1703
|
-
org_id:
|
|
1704
|
-
view_settings_id:
|
|
1739
|
+
org_id: n.id,
|
|
1740
|
+
view_settings_id: o == null ? void 0 : o.id,
|
|
1741
|
+
is_system: (c = s.is_system) == null ? void 0 : c[0],
|
|
1742
|
+
name: s.name
|
|
1743
|
+
}).then((_) => {
|
|
1744
|
+
var C;
|
|
1745
|
+
(C = s.is_default) != null && C[0] ? pt({
|
|
1746
|
+
org_id: n.id,
|
|
1747
|
+
view_settings_id: o == null ? void 0 : o.id
|
|
1705
1748
|
}).then(() => {
|
|
1706
1749
|
De({
|
|
1707
|
-
org_id:
|
|
1708
|
-
view_settings_id:
|
|
1750
|
+
org_id: n.id,
|
|
1751
|
+
view_settings_id: o == null ? void 0 : o.id
|
|
1709
1752
|
}).then(() => {
|
|
1710
|
-
var
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
}),
|
|
1753
|
+
var re;
|
|
1754
|
+
ve.success(u("保存成功")), _.id == ((re = e.currentViewObj) == null ? void 0 : re.id) ? l("change", null, { ..._, ..._.data }, !1, !0) : M.value.forEach((ue) => {
|
|
1755
|
+
ue.id == _.id && Object.assign(ue, { ..._, ..._.data });
|
|
1756
|
+
}), G();
|
|
1714
1757
|
});
|
|
1715
1758
|
}) : De({
|
|
1716
|
-
org_id:
|
|
1717
|
-
view_settings_id:
|
|
1759
|
+
org_id: n.id,
|
|
1760
|
+
view_settings_id: o == null ? void 0 : o.id
|
|
1718
1761
|
}).then(() => {
|
|
1719
|
-
var
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
}),
|
|
1762
|
+
var re;
|
|
1763
|
+
ve.success(u("保存成功")), _.id == ((re = e.currentViewObj) == null ? void 0 : re.id) ? l("change", null, { ..._, ..._.data }, !1, !0) : M.value.forEach((ue) => {
|
|
1764
|
+
ue.id == _.id && Object.assign(ue, { ..._, ..._.data });
|
|
1765
|
+
}), G();
|
|
1723
1766
|
});
|
|
1724
1767
|
});
|
|
1725
1768
|
} else {
|
|
1726
|
-
let
|
|
1727
|
-
(
|
|
1769
|
+
let p = {};
|
|
1770
|
+
(w = s.is_submit) != null && w[0] ? (p = {
|
|
1728
1771
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
1729
1772
|
filter_map: e.currentViewObj.filter_map,
|
|
1730
1773
|
sort_fields: e.currentViewObj.sort_fields,
|
|
@@ -1735,8 +1778,10 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1735
1778
|
conditions: e.currentViewObj.conditions,
|
|
1736
1779
|
group_condition: e.currentViewObj.group_condition,
|
|
1737
1780
|
group_record: e.currentViewObj.group_record,
|
|
1738
|
-
default_search_condition_config_list:
|
|
1739
|
-
|
|
1781
|
+
default_search_condition_config_list: _e(
|
|
1782
|
+
e.currentViewObj.default_search_condition_config_list
|
|
1783
|
+
)
|
|
1784
|
+
}, delete p.is_system) : p = {
|
|
1740
1785
|
column: {},
|
|
1741
1786
|
search_model: {},
|
|
1742
1787
|
filter_map: {},
|
|
@@ -1748,39 +1793,39 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1748
1793
|
group_condition: {},
|
|
1749
1794
|
group_record: {}
|
|
1750
1795
|
}, dl({
|
|
1751
|
-
org_id:
|
|
1752
|
-
user_id:
|
|
1753
|
-
name:
|
|
1754
|
-
view_project__flag:
|
|
1796
|
+
org_id: n.id,
|
|
1797
|
+
user_id: s.view_type == "personal" ? S : null,
|
|
1798
|
+
name: s.name,
|
|
1799
|
+
view_project__flag: r.VITE_APP_VIEW_PROJECT_FLAG,
|
|
1755
1800
|
view_menu__flag: e.menu_flag,
|
|
1756
1801
|
view_menu__name: e.menu_name,
|
|
1757
1802
|
is_system: !1,
|
|
1758
|
-
data: JSON.stringify(
|
|
1759
|
-
}).then((
|
|
1760
|
-
l("change", null, { ...
|
|
1803
|
+
data: JSON.stringify(p)
|
|
1804
|
+
}).then((_) => {
|
|
1805
|
+
l("change", null, { ..._, ..._.data }, !0, !0), _.id && (M.value = M.value.concat([
|
|
1761
1806
|
{
|
|
1762
|
-
...
|
|
1807
|
+
..._
|
|
1763
1808
|
}
|
|
1764
|
-
]),
|
|
1809
|
+
]), q([
|
|
1765
1810
|
{
|
|
1766
|
-
id:
|
|
1767
|
-
search_model:
|
|
1768
|
-
filter_map:
|
|
1769
|
-
sort_fields:
|
|
1770
|
-
group_condition:
|
|
1771
|
-
conditions:
|
|
1772
|
-
isShowGeneralFilter:
|
|
1811
|
+
id: _.id,
|
|
1812
|
+
search_model: p.search_model,
|
|
1813
|
+
filter_map: p.filter_map,
|
|
1814
|
+
sort_fields: p.sort_fields,
|
|
1815
|
+
group_condition: p.group_condition,
|
|
1816
|
+
conditions: p.conditions,
|
|
1817
|
+
isShowGeneralFilter: p.isShowGeneralFilter
|
|
1773
1818
|
}
|
|
1774
|
-
]), window.location.hash =
|
|
1819
|
+
]), window.location.hash = _.uid, ae(_.uid));
|
|
1775
1820
|
});
|
|
1776
1821
|
}
|
|
1777
|
-
},
|
|
1778
|
-
let
|
|
1779
|
-
e.currentViewObj.id ==
|
|
1780
|
-
const
|
|
1822
|
+
}, Ce = (s, o) => {
|
|
1823
|
+
let a = [!1];
|
|
1824
|
+
e.currentViewObj.id == s.id && (a = [!0]);
|
|
1825
|
+
const i = he({
|
|
1781
1826
|
open: !0,
|
|
1782
1827
|
loading: !1,
|
|
1783
|
-
title:
|
|
1828
|
+
title: u("编辑视图"),
|
|
1784
1829
|
form: {
|
|
1785
1830
|
settings: {
|
|
1786
1831
|
labelAlign: "right",
|
|
@@ -1791,12 +1836,12 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1791
1836
|
{
|
|
1792
1837
|
type: "input",
|
|
1793
1838
|
name: "name",
|
|
1794
|
-
label:
|
|
1839
|
+
label: u("视图名称"),
|
|
1795
1840
|
disabled: !1,
|
|
1796
1841
|
allowClear: !0,
|
|
1797
1842
|
inputType: "text",
|
|
1798
1843
|
defaultValue: "",
|
|
1799
|
-
placeholder:
|
|
1844
|
+
placeholder: u("请输入视图名称")
|
|
1800
1845
|
},
|
|
1801
1846
|
{
|
|
1802
1847
|
type: "checkbox",
|
|
@@ -1810,46 +1855,46 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1810
1855
|
placeholder: ""
|
|
1811
1856
|
}
|
|
1812
1857
|
],
|
|
1813
|
-
rules:
|
|
1858
|
+
rules: he({
|
|
1814
1859
|
name: [
|
|
1815
1860
|
{
|
|
1816
1861
|
required: !0,
|
|
1817
|
-
message:
|
|
1862
|
+
message: u("请输入视图名称")
|
|
1818
1863
|
}
|
|
1819
1864
|
]
|
|
1820
1865
|
}),
|
|
1821
|
-
model:
|
|
1822
|
-
name:
|
|
1823
|
-
is_submit:
|
|
1824
|
-
is_default: [
|
|
1825
|
-
is_system: [
|
|
1866
|
+
model: he({
|
|
1867
|
+
name: s.name,
|
|
1868
|
+
is_submit: a,
|
|
1869
|
+
is_default: [s != null && s.is_default ? s == null ? void 0 : s.is_default : !1],
|
|
1870
|
+
is_system: [s != null && s.is_system ? s == null ? void 0 : s.is_system : !1]
|
|
1826
1871
|
})
|
|
1827
1872
|
},
|
|
1828
1873
|
options: {
|
|
1829
1874
|
is_submit: [
|
|
1830
1875
|
{
|
|
1831
|
-
name:
|
|
1876
|
+
name: u("将当前过滤条件、排序、显示属性、视图和分组等设置更新到该视图中"),
|
|
1832
1877
|
value: !0
|
|
1833
1878
|
}
|
|
1834
1879
|
],
|
|
1835
1880
|
is_default: [
|
|
1836
1881
|
{
|
|
1837
|
-
name:
|
|
1882
|
+
name: u("设为默认视图"),
|
|
1838
1883
|
value: !0
|
|
1839
1884
|
}
|
|
1840
1885
|
],
|
|
1841
1886
|
is_system: [
|
|
1842
1887
|
{
|
|
1843
|
-
name:
|
|
1888
|
+
name: u("设为系统视图"),
|
|
1844
1889
|
value: !0
|
|
1845
1890
|
}
|
|
1846
1891
|
]
|
|
1847
1892
|
},
|
|
1848
|
-
ok: (
|
|
1849
|
-
|
|
1893
|
+
ok: (c) => new Promise(function(w) {
|
|
1894
|
+
O({ updateView: c, record: s }), w(null);
|
|
1850
1895
|
})
|
|
1851
1896
|
});
|
|
1852
|
-
|
|
1897
|
+
o == "public" && (i.form.fields.push({
|
|
1853
1898
|
type: "checkbox",
|
|
1854
1899
|
name: "is_default",
|
|
1855
1900
|
label: "",
|
|
@@ -1859,7 +1904,7 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1859
1904
|
valueKey: "value",
|
|
1860
1905
|
defaultValue: [!1],
|
|
1861
1906
|
placeholder: ""
|
|
1862
|
-
}),
|
|
1907
|
+
}), $.value && i.form.fields.push({
|
|
1863
1908
|
type: "checkbox",
|
|
1864
1909
|
name: "is_system",
|
|
1865
1910
|
label: "",
|
|
@@ -1869,12 +1914,12 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1869
1914
|
valueKey: "value",
|
|
1870
1915
|
defaultValue: [!1],
|
|
1871
1916
|
placeholder: ""
|
|
1872
|
-
})), We(
|
|
1873
|
-
},
|
|
1874
|
-
const
|
|
1917
|
+
})), We(i);
|
|
1918
|
+
}, we = (s) => {
|
|
1919
|
+
const o = he({
|
|
1875
1920
|
open: !0,
|
|
1876
1921
|
loading: !1,
|
|
1877
|
-
title:
|
|
1922
|
+
title: u("新建视图"),
|
|
1878
1923
|
form: {
|
|
1879
1924
|
settings: {
|
|
1880
1925
|
labelAlign: "right",
|
|
@@ -1885,17 +1930,17 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1885
1930
|
{
|
|
1886
1931
|
type: "input",
|
|
1887
1932
|
name: "name",
|
|
1888
|
-
label:
|
|
1933
|
+
label: u("视图名称"),
|
|
1889
1934
|
disabled: !1,
|
|
1890
1935
|
allowClear: !0,
|
|
1891
1936
|
inputType: "text",
|
|
1892
1937
|
defaultValue: "",
|
|
1893
|
-
placeholder:
|
|
1938
|
+
placeholder: u("请输入视图名称")
|
|
1894
1939
|
},
|
|
1895
1940
|
{
|
|
1896
1941
|
type: "radio",
|
|
1897
1942
|
name: "view_type",
|
|
1898
|
-
label:
|
|
1943
|
+
label: u("视图可见范围"),
|
|
1899
1944
|
disabled: !1,
|
|
1900
1945
|
allowClear: !0,
|
|
1901
1946
|
labelKey: "name",
|
|
@@ -1915,81 +1960,81 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1915
1960
|
placeholder: ""
|
|
1916
1961
|
}
|
|
1917
1962
|
],
|
|
1918
|
-
rules:
|
|
1963
|
+
rules: he({
|
|
1919
1964
|
name: [
|
|
1920
1965
|
{
|
|
1921
1966
|
required: !0,
|
|
1922
|
-
message:
|
|
1967
|
+
message: u("请输入视图名称")
|
|
1923
1968
|
}
|
|
1924
1969
|
]
|
|
1925
1970
|
}),
|
|
1926
|
-
model:
|
|
1971
|
+
model: he({
|
|
1927
1972
|
name: null,
|
|
1928
|
-
view_type:
|
|
1973
|
+
view_type: s,
|
|
1929
1974
|
is_submit: [!0]
|
|
1930
1975
|
})
|
|
1931
1976
|
},
|
|
1932
1977
|
options: {
|
|
1933
1978
|
view_type: [
|
|
1934
|
-
{ name:
|
|
1935
|
-
{ name:
|
|
1979
|
+
{ name: u("个人视图(仅自己可见)"), value: "personal" },
|
|
1980
|
+
{ name: u("公共视图(项目成员均可见)"), value: "public" }
|
|
1936
1981
|
],
|
|
1937
1982
|
is_submit: [
|
|
1938
1983
|
{
|
|
1939
|
-
name:
|
|
1984
|
+
name: u("将当前过滤条件、排序、显示属性、视图和分组等设置更新到该视图中"),
|
|
1940
1985
|
value: !0
|
|
1941
1986
|
}
|
|
1942
1987
|
]
|
|
1943
1988
|
},
|
|
1944
|
-
ok: (
|
|
1945
|
-
if (
|
|
1946
|
-
|
|
1989
|
+
ok: (a) => new Promise(function(i) {
|
|
1990
|
+
if (R.value.includes(a.name)) {
|
|
1991
|
+
ve.error(u("视图名称已存在"));
|
|
1947
1992
|
return;
|
|
1948
1993
|
}
|
|
1949
|
-
|
|
1994
|
+
O({ updateView: a, record: a }), i(null);
|
|
1950
1995
|
})
|
|
1951
1996
|
});
|
|
1952
|
-
We(
|
|
1953
|
-
},
|
|
1954
|
-
const
|
|
1997
|
+
We(o);
|
|
1998
|
+
}, T = (s) => {
|
|
1999
|
+
const o = he({
|
|
1955
2000
|
open: !0,
|
|
1956
2001
|
component: "ViewEditModal",
|
|
1957
2002
|
compObj: {
|
|
1958
|
-
title:
|
|
1959
|
-
data:
|
|
2003
|
+
title: s == "personal" ? u("个人视图管理") : u("公共视图管理"),
|
|
2004
|
+
data: s == "personal" ? h.value : F.value
|
|
1960
2005
|
},
|
|
1961
|
-
ok: (
|
|
1962
|
-
|
|
1963
|
-
org_id:
|
|
1964
|
-
view_settings_ids:
|
|
2006
|
+
ok: (a) => {
|
|
2007
|
+
a && a.length > 0 ? fl({
|
|
2008
|
+
org_id: n.id,
|
|
2009
|
+
view_settings_ids: a
|
|
1965
2010
|
}).then(() => {
|
|
1966
|
-
|
|
1967
|
-
}) : (
|
|
2011
|
+
ve.success(u("保存成功")), G();
|
|
2012
|
+
}) : (ve.success(u("保存成功")), G());
|
|
1968
2013
|
},
|
|
1969
|
-
cancel: (
|
|
1970
|
-
|
|
2014
|
+
cancel: (a) => {
|
|
2015
|
+
a && G();
|
|
1971
2016
|
}
|
|
1972
2017
|
});
|
|
1973
|
-
We(
|
|
1974
|
-
},
|
|
1975
|
-
let
|
|
1976
|
-
const
|
|
1977
|
-
|
|
1978
|
-
},
|
|
2018
|
+
We(o);
|
|
2019
|
+
}, Q = (s) => {
|
|
2020
|
+
let o = "";
|
|
2021
|
+
const a = window.location.href.indexOf("#");
|
|
2022
|
+
a !== -1 ? o = window.location.href.substring(0, a) + "#" + s.uid : o = window.location.href + "#" + s.uid, el({ val: o, message: u("复制成功") });
|
|
2023
|
+
}, te = (s) => {
|
|
1979
2024
|
ft.confirm({
|
|
1980
|
-
title: () => `${
|
|
1981
|
-
content:
|
|
1982
|
-
icon: () =>
|
|
1983
|
-
okText:
|
|
2025
|
+
title: () => `${u("确认删除此")}【${s.name}】${s != null && s.user_id ? u("个人视图") : u("公共视图")}?`,
|
|
2026
|
+
content: u("视图删除后不可恢复,视图下工作项不受影响,是否确认删除?"),
|
|
2027
|
+
icon: () => W(ct),
|
|
2028
|
+
okText: u("确定"),
|
|
1984
2029
|
onOk() {
|
|
1985
|
-
return new Promise((
|
|
2030
|
+
return new Promise((o) => {
|
|
1986
2031
|
cl({
|
|
1987
|
-
org_id:
|
|
1988
|
-
view_settings_id:
|
|
2032
|
+
org_id: n.id,
|
|
2033
|
+
view_settings_id: s == null ? void 0 : s.id
|
|
1989
2034
|
}).then(() => {
|
|
1990
|
-
|
|
2035
|
+
M.value = M.value.filter((a) => a.id != s.id), ae(null), ve.success(u("删除成功"));
|
|
1991
2036
|
}).finally(() => {
|
|
1992
|
-
|
|
2037
|
+
o(null);
|
|
1993
2038
|
});
|
|
1994
2039
|
}).catch(() => console.log("Oops errors!"));
|
|
1995
2040
|
},
|
|
@@ -1997,50 +2042,50 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
1997
2042
|
onCancel() {
|
|
1998
2043
|
}
|
|
1999
2044
|
});
|
|
2000
|
-
},
|
|
2001
|
-
const
|
|
2045
|
+
}, fe = () => {
|
|
2046
|
+
const o = Je(e.app_flag, e.modalType, null, u, {
|
|
2002
2047
|
use_store: !0,
|
|
2003
2048
|
to_i18n: !0,
|
|
2004
2049
|
enable_btn: !1
|
|
2005
|
-
}).required_condition,
|
|
2006
|
-
return
|
|
2007
|
-
const
|
|
2008
|
-
|
|
2009
|
-
}),
|
|
2010
|
-
},
|
|
2011
|
-
const
|
|
2012
|
-
|
|
2013
|
-
let
|
|
2014
|
-
|
|
2015
|
-
id:
|
|
2016
|
-
search_model:
|
|
2017
|
-
filter_map:
|
|
2018
|
-
sort_fields:
|
|
2019
|
-
group_condition:
|
|
2020
|
-
conditions:
|
|
2021
|
-
isShowGeneralFilter:
|
|
2050
|
+
}).required_condition, a = {};
|
|
2051
|
+
return o && o.forEach((i) => {
|
|
2052
|
+
const c = t.value_map[i.key];
|
|
2053
|
+
c != null && (a[i.field_name] = c);
|
|
2054
|
+
}), a;
|
|
2055
|
+
}, ne = (s) => {
|
|
2056
|
+
const o = [];
|
|
2057
|
+
s.forEach((a) => {
|
|
2058
|
+
let i = null, c = null, w = null, p = null;
|
|
2059
|
+
a.data.isShowGeneralFilter ? (i = {}, c = {}, w = a.data.group_condition, p = a.data.conditions) : (i = a.data.search_model, c = a.data.filter_map, w = {}, p = []), o.push({
|
|
2060
|
+
id: a.id,
|
|
2061
|
+
search_model: i,
|
|
2062
|
+
filter_map: c,
|
|
2063
|
+
sort_fields: a.data.sort_fields,
|
|
2064
|
+
group_condition: w,
|
|
2065
|
+
conditions: p,
|
|
2066
|
+
isShowGeneralFilter: a.data.isShowGeneralFilter
|
|
2022
2067
|
});
|
|
2023
|
-
}),
|
|
2068
|
+
}), q(o);
|
|
2024
2069
|
};
|
|
2025
|
-
|
|
2070
|
+
L(
|
|
2026
2071
|
() => e.current_num,
|
|
2027
2072
|
// 监听保存当前视图
|
|
2028
2073
|
() => {
|
|
2029
2074
|
ft.confirm({
|
|
2030
|
-
title: () =>
|
|
2031
|
-
content:
|
|
2032
|
-
icon: () =>
|
|
2033
|
-
okText:
|
|
2075
|
+
title: () => u("确定覆盖视图吗?"),
|
|
2076
|
+
content: u("当前视图原有的数据会被覆盖"),
|
|
2077
|
+
icon: () => W(ct),
|
|
2078
|
+
okText: u("确定"),
|
|
2034
2079
|
onOk() {
|
|
2035
|
-
return new Promise((
|
|
2036
|
-
|
|
2080
|
+
return new Promise((s) => {
|
|
2081
|
+
O({
|
|
2037
2082
|
updateView: {
|
|
2038
2083
|
is_submit: [!0],
|
|
2039
2084
|
is_system: [e.currentViewObj.is_system],
|
|
2040
2085
|
name: e.currentViewObj.name
|
|
2041
2086
|
},
|
|
2042
2087
|
record: e.currentViewObj
|
|
2043
|
-
}),
|
|
2088
|
+
}), s(null);
|
|
2044
2089
|
}).catch(() => console.log("Oops errors!"));
|
|
2045
2090
|
},
|
|
2046
2091
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -2048,14 +2093,14 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
2048
2093
|
}
|
|
2049
2094
|
});
|
|
2050
2095
|
}
|
|
2051
|
-
),
|
|
2096
|
+
), L(
|
|
2052
2097
|
() => e.create_num,
|
|
2053
2098
|
// 监听另存为
|
|
2054
2099
|
() => {
|
|
2055
|
-
const
|
|
2100
|
+
const s = he({
|
|
2056
2101
|
open: !0,
|
|
2057
2102
|
loading: !1,
|
|
2058
|
-
title:
|
|
2103
|
+
title: u("新建视图"),
|
|
2059
2104
|
form: {
|
|
2060
2105
|
settings: {
|
|
2061
2106
|
labelAlign: "right",
|
|
@@ -2066,17 +2111,17 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
2066
2111
|
{
|
|
2067
2112
|
type: "input",
|
|
2068
2113
|
name: "name",
|
|
2069
|
-
label:
|
|
2114
|
+
label: u("视图名称"),
|
|
2070
2115
|
disabled: !1,
|
|
2071
2116
|
allowClear: !0,
|
|
2072
2117
|
inputType: "text",
|
|
2073
2118
|
defaultValue: "",
|
|
2074
|
-
placeholder:
|
|
2119
|
+
placeholder: u("请输入视图名称")
|
|
2075
2120
|
},
|
|
2076
2121
|
{
|
|
2077
2122
|
type: "radio",
|
|
2078
2123
|
name: "view_type",
|
|
2079
|
-
label:
|
|
2124
|
+
label: u("视图可见范围"),
|
|
2080
2125
|
disabled: !1,
|
|
2081
2126
|
allowClear: !0,
|
|
2082
2127
|
labelKey: "name",
|
|
@@ -2085,15 +2130,15 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
2085
2130
|
placeholder: ""
|
|
2086
2131
|
}
|
|
2087
2132
|
],
|
|
2088
|
-
rules:
|
|
2133
|
+
rules: he({
|
|
2089
2134
|
name: [
|
|
2090
2135
|
{
|
|
2091
2136
|
required: !0,
|
|
2092
|
-
message:
|
|
2137
|
+
message: u("请输入视图名称")
|
|
2093
2138
|
}
|
|
2094
2139
|
]
|
|
2095
2140
|
}),
|
|
2096
|
-
model:
|
|
2141
|
+
model: he({
|
|
2097
2142
|
name: null,
|
|
2098
2143
|
view_type: "personal",
|
|
2099
2144
|
is_submit: [!0]
|
|
@@ -2101,120 +2146,120 @@ const An = /* @__PURE__ */ Se(Nl, [["render", Gl]]), bt = "customviewdatauser",
|
|
|
2101
2146
|
},
|
|
2102
2147
|
options: {
|
|
2103
2148
|
view_type: [
|
|
2104
|
-
{ name:
|
|
2105
|
-
{ name:
|
|
2149
|
+
{ name: u("个人视图(仅自己可见)"), value: "personal" },
|
|
2150
|
+
{ name: u("公共视图(项目成员均可见)"), value: "public" }
|
|
2106
2151
|
],
|
|
2107
2152
|
is_submit: [
|
|
2108
2153
|
{
|
|
2109
|
-
name:
|
|
2154
|
+
name: u("将当前过滤条件、排序、显示属性、视图和分组等设置更新到该视图中"),
|
|
2110
2155
|
value: !0
|
|
2111
2156
|
}
|
|
2112
2157
|
]
|
|
2113
2158
|
},
|
|
2114
|
-
ok: (
|
|
2115
|
-
if (
|
|
2116
|
-
|
|
2159
|
+
ok: (o) => new Promise(function(a) {
|
|
2160
|
+
if (M.value.map((c) => c.name).includes(o.name)) {
|
|
2161
|
+
ve.error(u("视图名称已存在"));
|
|
2117
2162
|
return;
|
|
2118
2163
|
}
|
|
2119
|
-
|
|
2164
|
+
O({ updateView: o, record: o }), a(null);
|
|
2120
2165
|
})
|
|
2121
2166
|
});
|
|
2122
|
-
We(
|
|
2167
|
+
We(s);
|
|
2123
2168
|
}
|
|
2124
|
-
),
|
|
2169
|
+
), L(
|
|
2125
2170
|
() => e.count_num,
|
|
2126
2171
|
// 监听刷新当前视图count
|
|
2127
2172
|
() => {
|
|
2128
|
-
|
|
2173
|
+
ne(M.value);
|
|
2129
2174
|
}
|
|
2130
2175
|
);
|
|
2131
|
-
const
|
|
2132
|
-
const
|
|
2176
|
+
const ie = (s) => {
|
|
2177
|
+
const o = Je(e.currentViewObj.app_flag, e.modalType, null, u, {
|
|
2133
2178
|
use_store: !0,
|
|
2134
2179
|
to_i18n: !0,
|
|
2135
2180
|
enable_btn: !1
|
|
2136
2181
|
});
|
|
2137
|
-
|
|
2182
|
+
o.required_condition && o.required_condition.find((i) => i.key === s) && G();
|
|
2138
2183
|
};
|
|
2139
|
-
return
|
|
2140
|
-
|
|
2184
|
+
return Oe(() => {
|
|
2185
|
+
G(), ht().on("change", ie);
|
|
2141
2186
|
}), Pe(() => {
|
|
2142
|
-
ht().off("change",
|
|
2187
|
+
ht().off("change", ie);
|
|
2143
2188
|
}), Kt(() => {
|
|
2144
|
-
|
|
2189
|
+
ne(M.value);
|
|
2145
2190
|
}), {
|
|
2146
2191
|
props: e,
|
|
2147
|
-
viewKey:
|
|
2148
|
-
customStyle:
|
|
2192
|
+
viewKey: pe,
|
|
2193
|
+
customStyle: de,
|
|
2149
2194
|
columns: Jl,
|
|
2150
|
-
personData:
|
|
2151
|
-
publicData:
|
|
2152
|
-
is_auth:
|
|
2153
|
-
addView:
|
|
2154
|
-
editView:
|
|
2155
|
-
customRow:
|
|
2156
|
-
changeView:
|
|
2157
|
-
handleSubmit:
|
|
2158
|
-
handleShare:
|
|
2159
|
-
handleDelet:
|
|
2160
|
-
appStore:
|
|
2195
|
+
personData: h,
|
|
2196
|
+
publicData: F,
|
|
2197
|
+
is_auth: $,
|
|
2198
|
+
addView: we,
|
|
2199
|
+
editView: T,
|
|
2200
|
+
customRow: I,
|
|
2201
|
+
changeView: f,
|
|
2202
|
+
handleSubmit: Ce,
|
|
2203
|
+
handleShare: Q,
|
|
2204
|
+
handleDelet: te,
|
|
2205
|
+
appStore: d
|
|
2161
2206
|
};
|
|
2162
2207
|
}
|
|
2163
2208
|
});
|
|
2164
2209
|
const Xl = { style: { "font-weight": "700" } }, Ql = ["onClick"], Zl = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, xl = ["onClick"], ea = ["onClick"], ta = ["onClick"], la = { style: { "font-weight": "700" } }, aa = ["onClick"], na = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, oa = ["onClick"], sa = ["onClick"], ia = ["onClick"];
|
|
2165
|
-
function ra(e, l,
|
|
2166
|
-
const
|
|
2167
|
-
return
|
|
2210
|
+
function ra(e, l, r, t, y, d) {
|
|
2211
|
+
const n = D("caret-right-outlined"), S = D("setting-outlined"), $ = D("a-tooltip"), M = D("plus-outlined"), u = D("a-menu-item"), g = D("a-menu"), h = D("a-dropdown"), F = D("a-table"), R = D("a-collapse-panel"), K = D("a-collapse"), se = D("a-card");
|
|
2212
|
+
return v(), z(se, {
|
|
2168
2213
|
"body-style": { padding: 0, height: e.height + 87 + "px", overflowY: "auto" }
|
|
2169
2214
|
}, {
|
|
2170
2215
|
default: E(() => [
|
|
2171
|
-
|
|
2216
|
+
W(K, {
|
|
2172
2217
|
activeKey: e.viewKey,
|
|
2173
|
-
"onUpdate:activeKey": l[6] || (l[6] = (
|
|
2218
|
+
"onUpdate:activeKey": l[6] || (l[6] = (X) => e.viewKey = X),
|
|
2174
2219
|
bordered: !1,
|
|
2175
2220
|
class: "collapses",
|
|
2176
2221
|
style: { background: "rgb(255, 255, 255)" }
|
|
2177
2222
|
}, {
|
|
2178
|
-
expandIcon: E(({ isActive:
|
|
2179
|
-
|
|
2180
|
-
rotate:
|
|
2223
|
+
expandIcon: E(({ isActive: X }) => [
|
|
2224
|
+
W(n, {
|
|
2225
|
+
rotate: X ? 90 : 0
|
|
2181
2226
|
}, null, 8, ["rotate"])
|
|
2182
2227
|
]),
|
|
2183
2228
|
default: E(() => [
|
|
2184
|
-
(
|
|
2229
|
+
(v(), z(R, {
|
|
2185
2230
|
key: "1",
|
|
2186
|
-
style:
|
|
2231
|
+
style: Se(e.customStyle)
|
|
2187
2232
|
}, {
|
|
2188
2233
|
header: E(() => [
|
|
2189
|
-
|
|
2234
|
+
ee("span", Xl, N(e.$t("个人视图")), 1)
|
|
2190
2235
|
]),
|
|
2191
2236
|
extra: E(() => [
|
|
2192
|
-
|
|
2237
|
+
W($, null, {
|
|
2193
2238
|
title: E(() => [
|
|
2194
|
-
|
|
2239
|
+
ge(N(e.$t("个人视图管理")), 1)
|
|
2195
2240
|
]),
|
|
2196
2241
|
default: E(() => [
|
|
2197
|
-
|
|
2242
|
+
W(S, {
|
|
2198
2243
|
style: { "margin-right": "10px" },
|
|
2199
|
-
onClick: l[0] || (l[0] =
|
|
2244
|
+
onClick: l[0] || (l[0] = Re((X) => e.editView("personal"), ["stop"]))
|
|
2200
2245
|
})
|
|
2201
2246
|
]),
|
|
2202
2247
|
_: 1
|
|
2203
2248
|
}),
|
|
2204
|
-
|
|
2249
|
+
W($, null, {
|
|
2205
2250
|
title: E(() => [
|
|
2206
|
-
|
|
2251
|
+
ge(N(e.$t("新建个人视图")), 1)
|
|
2207
2252
|
]),
|
|
2208
2253
|
default: E(() => [
|
|
2209
|
-
|
|
2210
|
-
onClick: l[1] || (l[1] =
|
|
2254
|
+
W(M, {
|
|
2255
|
+
onClick: l[1] || (l[1] = Re((X) => e.addView("personal"), ["stop"]))
|
|
2211
2256
|
})
|
|
2212
2257
|
]),
|
|
2213
2258
|
_: 1
|
|
2214
2259
|
})
|
|
2215
2260
|
]),
|
|
2216
2261
|
default: E(() => [
|
|
2217
|
-
e.personData.length > 0 ? (
|
|
2262
|
+
e.personData.length > 0 ? (v(), z(F, {
|
|
2218
2263
|
key: 0,
|
|
2219
2264
|
columns: e.columns,
|
|
2220
2265
|
customRow: e.customRow,
|
|
@@ -2223,117 +2268,117 @@ function ra(e, l, o, t, w, i) {
|
|
|
2223
2268
|
showHeader: !1,
|
|
2224
2269
|
size: "small"
|
|
2225
2270
|
}, {
|
|
2226
|
-
bodyCell: E(({ column:
|
|
2227
|
-
|
|
2271
|
+
bodyCell: E(({ column: X, record: q }) => [
|
|
2272
|
+
X.dataIndex === "name" ? (v(), U("div", {
|
|
2228
2273
|
key: 0,
|
|
2229
2274
|
class: "table",
|
|
2230
2275
|
style: { width: "100%", cursor: "pointer" },
|
|
2231
|
-
onClick: (
|
|
2276
|
+
onClick: (G) => e.changeView(q)
|
|
2232
2277
|
}, [
|
|
2233
|
-
|
|
2234
|
-
title:
|
|
2278
|
+
W($, {
|
|
2279
|
+
title: q.name,
|
|
2235
2280
|
color: e.appStore.primaryColor,
|
|
2236
2281
|
placement: "left",
|
|
2237
2282
|
destroyTooltipOnHide: !0,
|
|
2238
2283
|
overlayStyle: { maxWidth: "200px" }
|
|
2239
2284
|
}, {
|
|
2240
2285
|
default: E(() => [
|
|
2241
|
-
|
|
2286
|
+
ee("div", Zl, N(q.name), 1)
|
|
2242
2287
|
]),
|
|
2243
2288
|
_: 2
|
|
2244
2289
|
}, 1032, ["title", "color"]),
|
|
2245
|
-
|
|
2290
|
+
ee("span", {
|
|
2246
2291
|
class: "num",
|
|
2247
|
-
style:
|
|
2292
|
+
style: Se([
|
|
2248
2293
|
{ float: "right" },
|
|
2249
|
-
e.currentViewObj.id ===
|
|
2294
|
+
e.currentViewObj.id === q.id ? { color: "#1890ff", fontWeight: "bold" } : {}
|
|
2250
2295
|
])
|
|
2251
|
-
},
|
|
2252
|
-
|
|
2296
|
+
}, N(q.num), 5),
|
|
2297
|
+
W(h, { class: "dropdown" }, {
|
|
2253
2298
|
overlay: E(() => [
|
|
2254
|
-
|
|
2299
|
+
W(g, null, {
|
|
2255
2300
|
default: E(() => [
|
|
2256
|
-
!
|
|
2301
|
+
!q.is_system || e.is_auth ? (v(), z(u, { key: 0 }, {
|
|
2257
2302
|
default: E(() => [
|
|
2258
|
-
|
|
2303
|
+
ee("a", {
|
|
2259
2304
|
href: "javascript:;",
|
|
2260
|
-
onClick: (
|
|
2261
|
-
},
|
|
2305
|
+
onClick: (G) => e.handleSubmit(q, "personal")
|
|
2306
|
+
}, N(e.$t("编辑")), 9, xl)
|
|
2262
2307
|
]),
|
|
2263
2308
|
_: 2
|
|
2264
|
-
}, 1024)) :
|
|
2265
|
-
|
|
2309
|
+
}, 1024)) : Z("", !0),
|
|
2310
|
+
W(u, null, {
|
|
2266
2311
|
default: E(() => [
|
|
2267
|
-
|
|
2312
|
+
ee("a", {
|
|
2268
2313
|
href: "javascript:;",
|
|
2269
|
-
onClick: (
|
|
2270
|
-
},
|
|
2314
|
+
onClick: (G) => e.handleShare(q)
|
|
2315
|
+
}, N(e.$t("分享视图")), 9, ea)
|
|
2271
2316
|
]),
|
|
2272
2317
|
_: 2
|
|
2273
2318
|
}, 1024),
|
|
2274
|
-
!
|
|
2319
|
+
!q.is_system || e.is_auth ? (v(), z(u, { key: 1 }, {
|
|
2275
2320
|
default: E(() => [
|
|
2276
|
-
|
|
2321
|
+
ee("a", {
|
|
2277
2322
|
href: "javascript:;",
|
|
2278
|
-
onClick: (
|
|
2279
|
-
},
|
|
2323
|
+
onClick: (G) => e.handleDelet(q)
|
|
2324
|
+
}, N(e.$t("删除")), 9, ta)
|
|
2280
2325
|
]),
|
|
2281
2326
|
_: 2
|
|
2282
|
-
}, 1024)) :
|
|
2327
|
+
}, 1024)) : Z("", !0)
|
|
2283
2328
|
]),
|
|
2284
2329
|
_: 2
|
|
2285
2330
|
}, 1024)
|
|
2286
2331
|
]),
|
|
2287
2332
|
default: E(() => [
|
|
2288
|
-
|
|
2333
|
+
ee("span", {
|
|
2289
2334
|
style: { float: "right", "font-weight": "800" },
|
|
2290
|
-
onClick: l[2] || (l[2] =
|
|
2335
|
+
onClick: l[2] || (l[2] = Re(() => {
|
|
2291
2336
|
}, ["stop"]))
|
|
2292
2337
|
}, " · · · ")
|
|
2293
2338
|
]),
|
|
2294
2339
|
_: 2
|
|
2295
2340
|
}, 1024)
|
|
2296
|
-
], 8, Ql)) :
|
|
2341
|
+
], 8, Ql)) : Z("", !0)
|
|
2297
2342
|
]),
|
|
2298
2343
|
_: 1
|
|
2299
|
-
}, 8, ["columns", "customRow", "dataSource"])) :
|
|
2344
|
+
}, 8, ["columns", "customRow", "dataSource"])) : Z("", !0)
|
|
2300
2345
|
]),
|
|
2301
2346
|
_: 1
|
|
2302
2347
|
}, 8, ["style"])),
|
|
2303
|
-
(
|
|
2348
|
+
(v(), z(R, {
|
|
2304
2349
|
key: "2",
|
|
2305
|
-
style:
|
|
2350
|
+
style: Se(e.customStyle)
|
|
2306
2351
|
}, {
|
|
2307
2352
|
header: E(() => [
|
|
2308
|
-
|
|
2353
|
+
ee("span", la, N(e.$t("公共视图")), 1)
|
|
2309
2354
|
]),
|
|
2310
2355
|
extra: E(() => [
|
|
2311
|
-
|
|
2356
|
+
W($, null, {
|
|
2312
2357
|
title: E(() => [
|
|
2313
|
-
|
|
2358
|
+
ge(N(e.$t("公共视图管理")), 1)
|
|
2314
2359
|
]),
|
|
2315
2360
|
default: E(() => [
|
|
2316
|
-
|
|
2361
|
+
W(S, {
|
|
2317
2362
|
style: { "margin-right": "10px" },
|
|
2318
|
-
onClick: l[3] || (l[3] =
|
|
2363
|
+
onClick: l[3] || (l[3] = Re((X) => e.editView("public"), ["stop"]))
|
|
2319
2364
|
})
|
|
2320
2365
|
]),
|
|
2321
2366
|
_: 1
|
|
2322
2367
|
}),
|
|
2323
|
-
|
|
2368
|
+
W($, null, {
|
|
2324
2369
|
title: E(() => [
|
|
2325
|
-
|
|
2370
|
+
ge(N(e.$t("新建公共视图")), 1)
|
|
2326
2371
|
]),
|
|
2327
2372
|
default: E(() => [
|
|
2328
|
-
|
|
2329
|
-
onClick: l[4] || (l[4] =
|
|
2373
|
+
W(M, {
|
|
2374
|
+
onClick: l[4] || (l[4] = Re((X) => e.addView("public"), ["stop"]))
|
|
2330
2375
|
})
|
|
2331
2376
|
]),
|
|
2332
2377
|
_: 1
|
|
2333
2378
|
})
|
|
2334
2379
|
]),
|
|
2335
2380
|
default: E(() => [
|
|
2336
|
-
e.publicData.length > 0 ? (
|
|
2381
|
+
e.publicData.length > 0 ? (v(), z(F, {
|
|
2337
2382
|
key: 0,
|
|
2338
2383
|
columns: e.columns,
|
|
2339
2384
|
customRow: e.customRow,
|
|
@@ -2342,80 +2387,80 @@ function ra(e, l, o, t, w, i) {
|
|
|
2342
2387
|
showHeader: !1,
|
|
2343
2388
|
size: "small"
|
|
2344
2389
|
}, {
|
|
2345
|
-
bodyCell: E(({ column:
|
|
2346
|
-
|
|
2390
|
+
bodyCell: E(({ column: X, record: q }) => [
|
|
2391
|
+
X.dataIndex === "name" ? (v(), U("div", {
|
|
2347
2392
|
key: 0,
|
|
2348
2393
|
class: "table",
|
|
2349
2394
|
style: { width: "100%", cursor: "pointer" },
|
|
2350
|
-
onClick: (
|
|
2395
|
+
onClick: (G) => e.changeView(q)
|
|
2351
2396
|
}, [
|
|
2352
|
-
|
|
2353
|
-
title:
|
|
2397
|
+
W($, {
|
|
2398
|
+
title: q.name,
|
|
2354
2399
|
color: e.appStore.primaryColor,
|
|
2355
2400
|
placement: "left",
|
|
2356
2401
|
destroyTooltipOnHide: !0,
|
|
2357
2402
|
overlayStyle: { maxWidth: "200px" }
|
|
2358
2403
|
}, {
|
|
2359
2404
|
default: E(() => [
|
|
2360
|
-
|
|
2405
|
+
ee("div", na, N(q.name), 1)
|
|
2361
2406
|
]),
|
|
2362
2407
|
_: 2
|
|
2363
2408
|
}, 1032, ["title", "color"]),
|
|
2364
|
-
|
|
2409
|
+
ee("span", {
|
|
2365
2410
|
class: "num",
|
|
2366
|
-
style:
|
|
2411
|
+
style: Se([
|
|
2367
2412
|
{ float: "right" },
|
|
2368
|
-
e.currentViewObj.id ===
|
|
2413
|
+
e.currentViewObj.id === q.id ? { color: "#1890ff", fontWeight: "bold" } : {}
|
|
2369
2414
|
])
|
|
2370
|
-
},
|
|
2371
|
-
|
|
2415
|
+
}, N(q.num), 5),
|
|
2416
|
+
W(h, { class: "dropdown" }, {
|
|
2372
2417
|
overlay: E(() => [
|
|
2373
|
-
|
|
2418
|
+
W(g, null, {
|
|
2374
2419
|
default: E(() => [
|
|
2375
|
-
!
|
|
2420
|
+
!q.is_system || e.is_auth ? (v(), z(u, { key: 0 }, {
|
|
2376
2421
|
default: E(() => [
|
|
2377
|
-
|
|
2422
|
+
ee("a", {
|
|
2378
2423
|
href: "javascript:;",
|
|
2379
|
-
onClick: (
|
|
2380
|
-
},
|
|
2424
|
+
onClick: (G) => e.handleSubmit(q, "public")
|
|
2425
|
+
}, N(e.$t("编辑")), 9, oa)
|
|
2381
2426
|
]),
|
|
2382
2427
|
_: 2
|
|
2383
|
-
}, 1024)) :
|
|
2384
|
-
|
|
2428
|
+
}, 1024)) : Z("", !0),
|
|
2429
|
+
W(u, null, {
|
|
2385
2430
|
default: E(() => [
|
|
2386
|
-
|
|
2431
|
+
ee("a", {
|
|
2387
2432
|
href: "javascript:;",
|
|
2388
|
-
onClick: (
|
|
2389
|
-
},
|
|
2433
|
+
onClick: (G) => e.handleShare(q)
|
|
2434
|
+
}, N(e.$t("分享视图")), 9, sa)
|
|
2390
2435
|
]),
|
|
2391
2436
|
_: 2
|
|
2392
2437
|
}, 1024),
|
|
2393
|
-
!
|
|
2438
|
+
!q.is_system || e.is_auth ? (v(), z(u, { key: 1 }, {
|
|
2394
2439
|
default: E(() => [
|
|
2395
|
-
|
|
2440
|
+
ee("a", {
|
|
2396
2441
|
href: "javascript:;",
|
|
2397
|
-
onClick: (
|
|
2398
|
-
},
|
|
2442
|
+
onClick: (G) => e.handleDelet(q)
|
|
2443
|
+
}, N(e.$t("删除")), 9, ia)
|
|
2399
2444
|
]),
|
|
2400
2445
|
_: 2
|
|
2401
|
-
}, 1024)) :
|
|
2446
|
+
}, 1024)) : Z("", !0)
|
|
2402
2447
|
]),
|
|
2403
2448
|
_: 2
|
|
2404
2449
|
}, 1024)
|
|
2405
2450
|
]),
|
|
2406
2451
|
default: E(() => [
|
|
2407
|
-
|
|
2452
|
+
ee("span", {
|
|
2408
2453
|
style: { float: "right", "font-weight": "800" },
|
|
2409
|
-
onClick: l[5] || (l[5] =
|
|
2454
|
+
onClick: l[5] || (l[5] = Re(() => {
|
|
2410
2455
|
}, ["stop"]))
|
|
2411
2456
|
}, " · · · ")
|
|
2412
2457
|
]),
|
|
2413
2458
|
_: 2
|
|
2414
2459
|
}, 1024)
|
|
2415
|
-
], 8, aa)) :
|
|
2460
|
+
], 8, aa)) : Z("", !0)
|
|
2416
2461
|
]),
|
|
2417
2462
|
_: 1
|
|
2418
|
-
}, 8, ["columns", "customRow", "dataSource"])) :
|
|
2463
|
+
}, 8, ["columns", "customRow", "dataSource"])) : Z("", !0)
|
|
2419
2464
|
]),
|
|
2420
2465
|
_: 1
|
|
2421
2466
|
}, 8, ["style"]))
|
|
@@ -2426,7 +2471,7 @@ function ra(e, l, o, t, w, i) {
|
|
|
2426
2471
|
_: 1
|
|
2427
2472
|
}, 8, ["body-style"]);
|
|
2428
2473
|
}
|
|
2429
|
-
const ua = /* @__PURE__ */
|
|
2474
|
+
const ua = /* @__PURE__ */ $e(Yl, [["render", ra]]), da = be({
|
|
2430
2475
|
name: "SideSearchRender",
|
|
2431
2476
|
components: {
|
|
2432
2477
|
ViewManage: ua
|
|
@@ -2441,19 +2486,19 @@ const ua = /* @__PURE__ */ Se(Yl, [["render", ra]]), da = ge({
|
|
|
2441
2486
|
setup(e, { emit: l }) {
|
|
2442
2487
|
return {
|
|
2443
2488
|
props: e,
|
|
2444
|
-
change: (t,
|
|
2445
|
-
l("change", t,
|
|
2489
|
+
change: (t, y, d) => {
|
|
2490
|
+
l("change", t, y, d);
|
|
2446
2491
|
}
|
|
2447
2492
|
};
|
|
2448
2493
|
}
|
|
2449
2494
|
});
|
|
2450
|
-
function fa(e, l,
|
|
2451
|
-
const
|
|
2452
|
-
return
|
|
2495
|
+
function fa(e, l, r, t, y, d) {
|
|
2496
|
+
const n = D("view-manage"), S = D("a-card");
|
|
2497
|
+
return v(), z(S, {
|
|
2453
2498
|
"body-style": { padding: 0, height: e.selectObj.height + 96 + "px", overflowY: "auto" }
|
|
2454
2499
|
}, {
|
|
2455
2500
|
default: E(() => [
|
|
2456
|
-
|
|
2501
|
+
W(n, {
|
|
2457
2502
|
"select-obj": e.selectObj,
|
|
2458
2503
|
onChange: e.change
|
|
2459
2504
|
}, null, 8, ["select-obj", "onChange"])
|
|
@@ -2461,45 +2506,45 @@ function fa(e, l, o, t, w, i) {
|
|
|
2461
2506
|
_: 1
|
|
2462
2507
|
}, 8, ["body-style"]);
|
|
2463
2508
|
}
|
|
2464
|
-
const zn = /* @__PURE__ */
|
|
2509
|
+
const zn = /* @__PURE__ */ $e(da, [["render", fa]]), ca = Symbol("fullLayoutState"), _a = /* @__PURE__ */ be({
|
|
2465
2510
|
__name: "fullLayout",
|
|
2466
2511
|
setup(e) {
|
|
2467
|
-
const l = At(),
|
|
2468
|
-
|
|
2469
|
-
fullLayoutRef:
|
|
2512
|
+
const l = At(), r = Jt(null), t = A(0);
|
|
2513
|
+
Ve(ca, {
|
|
2514
|
+
fullLayoutRef: r
|
|
2470
2515
|
});
|
|
2471
|
-
const
|
|
2472
|
-
const
|
|
2473
|
-
if (
|
|
2474
|
-
const S =
|
|
2516
|
+
const y = () => {
|
|
2517
|
+
const n = r.value;
|
|
2518
|
+
if (n) {
|
|
2519
|
+
const S = n.getBoundingClientRect().top;
|
|
2475
2520
|
t.value = S;
|
|
2476
2521
|
}
|
|
2477
|
-
},
|
|
2478
|
-
return
|
|
2479
|
-
window.addEventListener("resize",
|
|
2522
|
+
}, d = vl.debounce(y, 100);
|
|
2523
|
+
return Oe(() => {
|
|
2524
|
+
window.addEventListener("resize", d), y();
|
|
2480
2525
|
}), Pe(() => {
|
|
2481
|
-
window.removeEventListener("resize",
|
|
2482
|
-
}),
|
|
2526
|
+
window.removeEventListener("resize", y);
|
|
2527
|
+
}), L(
|
|
2483
2528
|
() => l.multiTab,
|
|
2484
2529
|
() => {
|
|
2485
|
-
|
|
2486
|
-
|
|
2530
|
+
ke(() => {
|
|
2531
|
+
y();
|
|
2487
2532
|
});
|
|
2488
2533
|
}
|
|
2489
|
-
),
|
|
2534
|
+
), L(
|
|
2490
2535
|
() => l.layout,
|
|
2491
2536
|
() => {
|
|
2492
|
-
|
|
2493
|
-
|
|
2537
|
+
ke(() => {
|
|
2538
|
+
y();
|
|
2494
2539
|
});
|
|
2495
2540
|
}
|
|
2496
|
-
), (
|
|
2541
|
+
), (n, S) => (v(), U("div", {
|
|
2497
2542
|
ref_key: "fullLayoutRef",
|
|
2498
|
-
ref:
|
|
2543
|
+
ref: r,
|
|
2499
2544
|
class: "full-layout",
|
|
2500
|
-
style:
|
|
2545
|
+
style: Se({ "--current-top": t.value + "px" })
|
|
2501
2546
|
}, [
|
|
2502
|
-
Ze(
|
|
2547
|
+
Ze(n.$slots, "default")
|
|
2503
2548
|
], 4));
|
|
2504
2549
|
}
|
|
2505
2550
|
});
|
|
@@ -2523,11 +2568,11 @@ function ha(e, l) {
|
|
|
2523
2568
|
function va(e, l) {
|
|
2524
2569
|
Bt && window.removeEventListener(e, l);
|
|
2525
2570
|
}
|
|
2526
|
-
const
|
|
2571
|
+
const J = (e) => typeof e == "number" ? e : parseFloat(e) || 0, Ie = (e) => typeof e == "string" && (e.includes("px") || e.includes("calc") || e.includes("grow") || e.includes("%"));
|
|
2527
2572
|
function ga(e) {
|
|
2528
2573
|
let l = 0;
|
|
2529
|
-
for (let
|
|
2530
|
-
const
|
|
2574
|
+
for (let r = 0, t = e.length; r < t; r++) {
|
|
2575
|
+
const y = e[r], d = y.y ?? 0, n = y.h ?? 0, S = J(d) + J(n);
|
|
2531
2576
|
S > l && (l = S);
|
|
2532
2577
|
}
|
|
2533
2578
|
return l;
|
|
@@ -2537,230 +2582,228 @@ function ya(e) {
|
|
|
2537
2582
|
}
|
|
2538
2583
|
function Xe(e) {
|
|
2539
2584
|
const l = Array(e.length);
|
|
2540
|
-
for (let
|
|
2541
|
-
l[
|
|
2585
|
+
for (let r = 0, t = e.length; r < t; r++)
|
|
2586
|
+
l[r] = ya(e[r]);
|
|
2542
2587
|
return l;
|
|
2543
2588
|
}
|
|
2544
2589
|
function Vt(e, l) {
|
|
2545
2590
|
if (e === l)
|
|
2546
2591
|
return !1;
|
|
2547
|
-
const
|
|
2548
|
-
return !(
|
|
2592
|
+
const r = J(e.x), t = J(e.y), y = J(e.w), d = J(e.h), n = J(l.x), S = J(l.y), $ = J(l.w), M = J(l.h);
|
|
2593
|
+
return !(r + y <= n || r >= n + $ || t + d <= S || t >= S + M);
|
|
2549
2594
|
}
|
|
2550
|
-
function
|
|
2551
|
-
const
|
|
2552
|
-
for (let
|
|
2553
|
-
let S = t[
|
|
2554
|
-
S.static || (S = ba(
|
|
2595
|
+
function Be(e, l) {
|
|
2596
|
+
const r = Dt(e), t = Wt(e), y = Array(e.length);
|
|
2597
|
+
for (let d = 0, n = t.length; d < n; d++) {
|
|
2598
|
+
let S = t[d];
|
|
2599
|
+
S.static || (S = ba(r, S, l), r.push(S)), y[e.indexOf(S)] = S, S.moved = !1;
|
|
2555
2600
|
}
|
|
2556
|
-
return
|
|
2601
|
+
return y;
|
|
2557
2602
|
}
|
|
2558
|
-
function ba(e, l,
|
|
2559
|
-
if (
|
|
2560
|
-
for (;
|
|
2561
|
-
l.y =
|
|
2603
|
+
function ba(e, l, r) {
|
|
2604
|
+
if (r && !Ie(l.y) && l.top_i === void 0 && l.left_i === void 0)
|
|
2605
|
+
for (; J(l.y) > 0 && !qe(e, l); )
|
|
2606
|
+
l.y = J(l.y) - 1;
|
|
2562
2607
|
let t = {};
|
|
2563
|
-
for (; (t = qe(e, l)) && !(
|
|
2564
|
-
l.y =
|
|
2608
|
+
for (; (t = qe(e, l)) && !(Ie(l.y) || l.top_i !== void 0 || l.left_i !== void 0); )
|
|
2609
|
+
l.y = J(t.y) + J(t.h);
|
|
2565
2610
|
return l;
|
|
2566
2611
|
}
|
|
2567
2612
|
function wa(e, l) {
|
|
2568
|
-
const
|
|
2569
|
-
for (let t = 0,
|
|
2570
|
-
const
|
|
2571
|
-
if (
|
|
2572
|
-
|
|
2613
|
+
const r = Dt(e);
|
|
2614
|
+
for (let t = 0, y = e.length; t < y; t++) {
|
|
2615
|
+
const d = e[t], n = J(d.x), S = J(d.w);
|
|
2616
|
+
if (n + S > l.cols && !Ie(d.x) && !Ie(d.w) && d.left_i === void 0 && (d.x = l.cols - S), n < 0 && !Ie(d.x) && d.left_i === void 0 && (d.x = 0, d.w = l.cols), !d.static)
|
|
2617
|
+
r.push(d);
|
|
2573
2618
|
else
|
|
2574
|
-
for (; qe(
|
|
2575
|
-
|
|
2619
|
+
for (; qe(r, d) && !(Ie(d.y) || d.top_i !== void 0 || d.left_i !== void 0); )
|
|
2620
|
+
d.y = J(d.y) + 1;
|
|
2576
2621
|
}
|
|
2577
2622
|
return e;
|
|
2578
2623
|
}
|
|
2579
2624
|
function kt(e, l) {
|
|
2580
|
-
for (let
|
|
2581
|
-
if (e[
|
|
2582
|
-
return e[
|
|
2625
|
+
for (let r = 0, t = e.length; r < t; r++)
|
|
2626
|
+
if (e[r].i === l)
|
|
2627
|
+
return e[r];
|
|
2583
2628
|
}
|
|
2584
2629
|
function qe(e, l) {
|
|
2585
|
-
for (let
|
|
2586
|
-
if (Vt(e[
|
|
2587
|
-
return e[
|
|
2630
|
+
for (let r = 0, t = e.length; r < t; r++)
|
|
2631
|
+
if (Vt(e[r], l))
|
|
2632
|
+
return e[r];
|
|
2588
2633
|
}
|
|
2589
2634
|
function Ut(e, l) {
|
|
2590
|
-
return e.filter((
|
|
2635
|
+
return e.filter((r) => Vt(r, l));
|
|
2591
2636
|
}
|
|
2592
2637
|
function Dt(e) {
|
|
2593
2638
|
return e.filter((l) => l.static);
|
|
2594
2639
|
}
|
|
2595
|
-
function Qe(e, l,
|
|
2640
|
+
function Qe(e, l, r, t, y, d = !1) {
|
|
2596
2641
|
if (l.static)
|
|
2597
2642
|
return e;
|
|
2598
|
-
const
|
|
2599
|
-
typeof
|
|
2600
|
-
let
|
|
2601
|
-
|
|
2602
|
-
const
|
|
2603
|
-
if (
|
|
2604
|
-
return l.x =
|
|
2605
|
-
for (let
|
|
2606
|
-
const
|
|
2607
|
-
|
|
2643
|
+
const n = l.x, S = l.y, $ = t && J(l.y) > t;
|
|
2644
|
+
typeof r == "number" && (l.x = r), typeof t == "number" && (l.y = t), l.moved = !0;
|
|
2645
|
+
let M = Wt(e);
|
|
2646
|
+
$ && (M = M.reverse());
|
|
2647
|
+
const u = Ut(M, l);
|
|
2648
|
+
if (d && u.length)
|
|
2649
|
+
return l.x = n, l.y = S, l.moved = !1, e;
|
|
2650
|
+
for (let g = 0, h = u.length; g < h; g++) {
|
|
2651
|
+
const F = u[g];
|
|
2652
|
+
F.moved || J(l.y) > J(F.y) && J(l.y) - J(F.y) > J(F.h) / 4 || (F.static ? e = Ct(e, F, l, y) : e = Ct(e, l, F, y));
|
|
2608
2653
|
}
|
|
2609
2654
|
return e;
|
|
2610
2655
|
}
|
|
2611
|
-
function Ct(e, l,
|
|
2656
|
+
function Ct(e, l, r, t) {
|
|
2612
2657
|
if (t) {
|
|
2613
|
-
const
|
|
2614
|
-
x:
|
|
2615
|
-
y:
|
|
2616
|
-
w:
|
|
2617
|
-
h:
|
|
2658
|
+
const d = {
|
|
2659
|
+
x: r.x,
|
|
2660
|
+
y: r.y,
|
|
2661
|
+
w: r.w,
|
|
2662
|
+
h: r.h,
|
|
2618
2663
|
i: "-1"
|
|
2619
2664
|
};
|
|
2620
|
-
if (
|
|
2621
|
-
return Qe(e,
|
|
2665
|
+
if (d.y = Math.max(J(l.y) - J(r.h), 0), !qe(e, d))
|
|
2666
|
+
return Qe(e, r, void 0, d.y, !1);
|
|
2622
2667
|
}
|
|
2623
2668
|
return Qe(
|
|
2624
2669
|
e,
|
|
2625
|
-
|
|
2670
|
+
r,
|
|
2626
2671
|
void 0,
|
|
2627
|
-
|
|
2672
|
+
J(r.y) + 1,
|
|
2628
2673
|
!1
|
|
2629
2674
|
);
|
|
2630
2675
|
}
|
|
2631
|
-
function Et(e, l,
|
|
2632
|
-
const
|
|
2676
|
+
function Et(e, l, r, t) {
|
|
2677
|
+
const y = typeof l == "number" ? l + "px" : l, d = typeof e == "number" ? (e < 0 ? 0 : e) + "px" : e, n = "translate3d(" + y + "," + d + ", 0)";
|
|
2633
2678
|
return {
|
|
2634
|
-
transform:
|
|
2635
|
-
WebkitTransform:
|
|
2636
|
-
MozTransform:
|
|
2637
|
-
msTransform:
|
|
2638
|
-
OTransform:
|
|
2639
|
-
width: typeof
|
|
2679
|
+
transform: n,
|
|
2680
|
+
WebkitTransform: n,
|
|
2681
|
+
MozTransform: n,
|
|
2682
|
+
msTransform: n,
|
|
2683
|
+
OTransform: n,
|
|
2684
|
+
width: typeof r == "number" ? r + "px" : r,
|
|
2640
2685
|
height: typeof t == "number" ? t + "px" : t,
|
|
2641
2686
|
position: "absolute"
|
|
2642
2687
|
};
|
|
2643
2688
|
}
|
|
2644
|
-
function St(e, l,
|
|
2645
|
-
const
|
|
2689
|
+
function St(e, l, r, t) {
|
|
2690
|
+
const y = typeof l == "number" ? l * -1 + "px" : "calc(" + l + " * -1)", d = typeof e == "number" ? (e < 0 ? 0 : e) + "px" : e, n = "translate3d(" + y + "," + d + ", 0)";
|
|
2646
2691
|
return {
|
|
2647
|
-
transform:
|
|
2648
|
-
WebkitTransform:
|
|
2649
|
-
MozTransform:
|
|
2650
|
-
msTransform:
|
|
2651
|
-
OTransform:
|
|
2652
|
-
width: typeof
|
|
2692
|
+
transform: n,
|
|
2693
|
+
WebkitTransform: n,
|
|
2694
|
+
MozTransform: n,
|
|
2695
|
+
msTransform: n,
|
|
2696
|
+
OTransform: n,
|
|
2697
|
+
width: typeof r == "number" ? r + "px" : r,
|
|
2653
2698
|
height: typeof t == "number" ? t + "px" : t,
|
|
2654
2699
|
position: "absolute"
|
|
2655
2700
|
};
|
|
2656
2701
|
}
|
|
2657
|
-
function ka(e, l,
|
|
2702
|
+
function ka(e, l, r, t) {
|
|
2658
2703
|
return {
|
|
2659
2704
|
top: typeof e == "number" ? e + "px" : e,
|
|
2660
2705
|
left: typeof l == "number" ? l + "px" : l,
|
|
2661
|
-
width: typeof
|
|
2706
|
+
width: typeof r == "number" ? r + "px" : r,
|
|
2662
2707
|
height: typeof t == "number" ? t + "px" : t,
|
|
2663
2708
|
position: "absolute"
|
|
2664
2709
|
};
|
|
2665
2710
|
}
|
|
2666
|
-
function Ca(e, l,
|
|
2711
|
+
function Ca(e, l, r, t) {
|
|
2667
2712
|
return {
|
|
2668
2713
|
top: typeof e == "number" ? e + "px" : e,
|
|
2669
2714
|
right: typeof l == "number" ? l + "px" : l,
|
|
2670
|
-
width: typeof
|
|
2715
|
+
width: typeof r == "number" ? r + "px" : r,
|
|
2671
2716
|
height: typeof t == "number" ? t + "px" : t,
|
|
2672
2717
|
position: "absolute"
|
|
2673
2718
|
};
|
|
2674
2719
|
}
|
|
2675
2720
|
function Wt(e) {
|
|
2676
|
-
return [...e].sort((l,
|
|
2677
|
-
const t =
|
|
2678
|
-
return
|
|
2721
|
+
return [...e].sort((l, r) => {
|
|
2722
|
+
const t = J(l.x), y = J(l.y), d = J(r.x), n = J(r.y);
|
|
2723
|
+
return y === n && t === d ? 0 : y > n || y === n && t > d ? 1 : -1;
|
|
2679
2724
|
});
|
|
2680
2725
|
}
|
|
2681
2726
|
function Ea(e, l = "Layout") {
|
|
2682
|
-
const
|
|
2727
|
+
const r = ["x", "y", "w", "h"];
|
|
2683
2728
|
if (!Array.isArray(e))
|
|
2684
2729
|
throw new Error(l + " must be an array!");
|
|
2685
|
-
for (let t = 0,
|
|
2686
|
-
const
|
|
2687
|
-
for (let
|
|
2688
|
-
const S =
|
|
2689
|
-
if (S === "y" && "top_i" in
|
|
2730
|
+
for (let t = 0, y = e.length; t < y; t++) {
|
|
2731
|
+
const d = e[t];
|
|
2732
|
+
for (let n = 0; n < r.length; n++) {
|
|
2733
|
+
const S = r[n];
|
|
2734
|
+
if (S === "y" && "top_i" in d || S === "x" && "left_i" in d)
|
|
2690
2735
|
continue;
|
|
2691
|
-
const
|
|
2692
|
-
if (typeof
|
|
2693
|
-
debugger;
|
|
2736
|
+
const $ = d[S];
|
|
2737
|
+
if (typeof $ != "number" && typeof $ != "string")
|
|
2694
2738
|
throw new Error(
|
|
2695
|
-
"VueGridLayout: " + l + "[" + t + "]." +
|
|
2739
|
+
"VueGridLayout: " + l + "[" + t + "]." + r[n] + " must be a number or string!"
|
|
2696
2740
|
);
|
|
2697
|
-
}
|
|
2698
2741
|
}
|
|
2699
|
-
if (
|
|
2742
|
+
if (d.static !== void 0 && typeof d.static != "boolean")
|
|
2700
2743
|
throw new Error("VueGridLayout: " + l + "[" + t + "].static must be a boolean!");
|
|
2701
2744
|
}
|
|
2702
2745
|
}
|
|
2703
2746
|
function qt(e) {
|
|
2704
|
-
return Object.keys(e).sort((
|
|
2747
|
+
return Object.keys(e).sort((r, t) => e[r] - e[t]);
|
|
2705
2748
|
}
|
|
2706
2749
|
function Sa(e, l) {
|
|
2707
|
-
const
|
|
2708
|
-
let t =
|
|
2709
|
-
for (let
|
|
2710
|
-
const
|
|
2711
|
-
l > e[
|
|
2750
|
+
const r = qt(e);
|
|
2751
|
+
let t = r[0];
|
|
2752
|
+
for (let y = 1, d = r.length; y < d; y++) {
|
|
2753
|
+
const n = r[y];
|
|
2754
|
+
l > e[n] && (t = n);
|
|
2712
2755
|
}
|
|
2713
2756
|
return t;
|
|
2714
2757
|
}
|
|
2715
|
-
function
|
|
2758
|
+
function Mt(e, l) {
|
|
2716
2759
|
if (!l[e])
|
|
2717
2760
|
throw new Error(
|
|
2718
2761
|
"ResponsiveGridLayout: `cols` entry for breakpoint " + e + " is missing!"
|
|
2719
2762
|
);
|
|
2720
2763
|
return l[e];
|
|
2721
2764
|
}
|
|
2722
|
-
function
|
|
2765
|
+
function Ma(e, l, r, t, y, d, n) {
|
|
2723
2766
|
if (l[t])
|
|
2724
2767
|
return Xe(l[t]);
|
|
2725
2768
|
let S = e;
|
|
2726
|
-
const
|
|
2727
|
-
for (let
|
|
2728
|
-
const
|
|
2729
|
-
if (l[
|
|
2730
|
-
S = l[
|
|
2769
|
+
const $ = qt(r), M = $.slice($.indexOf(t));
|
|
2770
|
+
for (let u = 0, g = M.length; u < g; u++) {
|
|
2771
|
+
const h = M[u];
|
|
2772
|
+
if (l[h]) {
|
|
2773
|
+
S = l[h];
|
|
2731
2774
|
break;
|
|
2732
2775
|
}
|
|
2733
2776
|
}
|
|
2734
|
-
return S = Xe(S || []),
|
|
2777
|
+
return S = Xe(S || []), Be(wa(S, { cols: d }), n);
|
|
2735
2778
|
}
|
|
2736
|
-
function
|
|
2737
|
-
const l = e.target.offsetParent || document.body,
|
|
2738
|
-
return { x: t, y
|
|
2779
|
+
function $a(e) {
|
|
2780
|
+
const l = e.target.offsetParent || document.body, r = l === document.body ? { left: 0, top: 0 } : l.getBoundingClientRect(), t = e.clientX + l.scrollLeft - r.left, y = e.clientY + l.scrollTop - r.top;
|
|
2781
|
+
return { x: t, y };
|
|
2739
2782
|
}
|
|
2740
|
-
function
|
|
2741
|
-
return
|
|
2783
|
+
function $t(e) {
|
|
2784
|
+
return $a(e);
|
|
2742
2785
|
}
|
|
2743
2786
|
function Oa(e) {
|
|
2744
2787
|
return typeof e == "number" && !isNaN(e);
|
|
2745
2788
|
}
|
|
2746
|
-
function Ot(e, l,
|
|
2789
|
+
function Ot(e, l, r, t) {
|
|
2747
2790
|
return Oa(e) ? {
|
|
2748
|
-
deltaX:
|
|
2791
|
+
deltaX: r - e,
|
|
2749
2792
|
deltaY: t - l,
|
|
2750
2793
|
lastX: e,
|
|
2751
2794
|
lastY: l,
|
|
2752
|
-
x:
|
|
2795
|
+
x: r,
|
|
2753
2796
|
y: t
|
|
2754
2797
|
} : {
|
|
2755
2798
|
deltaX: 0,
|
|
2756
2799
|
deltaY: 0,
|
|
2757
|
-
lastX:
|
|
2800
|
+
lastX: r,
|
|
2758
2801
|
lastY: t,
|
|
2759
|
-
x:
|
|
2802
|
+
x: r,
|
|
2760
2803
|
y: t
|
|
2761
2804
|
};
|
|
2762
2805
|
}
|
|
2763
|
-
const Pt = /* @__PURE__ */
|
|
2806
|
+
const Pt = /* @__PURE__ */ be({
|
|
2764
2807
|
name: "GridItem",
|
|
2765
2808
|
__name: "grid-item",
|
|
2766
2809
|
props: {
|
|
@@ -2782,246 +2825,246 @@ const Pt = /* @__PURE__ */ ge({
|
|
|
2782
2825
|
usePercentages: { type: Boolean, default: null }
|
|
2783
2826
|
},
|
|
2784
2827
|
emits: ["container-resized", "resize", "resized", "move", "moved"],
|
|
2785
|
-
setup(e, { expose: l, emit:
|
|
2786
|
-
const t = e,
|
|
2787
|
-
var
|
|
2788
|
-
const
|
|
2789
|
-
return
|
|
2790
|
-
}), Ht =
|
|
2791
|
-
"vue-resizable":
|
|
2828
|
+
setup(e, { expose: l, emit: r }) {
|
|
2829
|
+
const t = e, y = r, d = Ne("eventBus"), n = Ne("usePercentages", !1), S = Ne("layout"), $ = A(null), M = A(null), u = A(1), g = A(100), h = A(100), F = A(10), R = A([10, 10]), K = A(1 / 0), se = A(null), X = A(null), q = A(!0), G = A(!1), ae = A(null), pe = A(!1), de = A(null), I = A(NaN), f = A(NaN), _e = A(NaN), O = A(NaN), Ce = A({}), we = A(!1), T = A(!1), Q = A(!1), te = A(null), fe = A(null), ne = A(null), ie = A(null), s = A(t.x), o = A(t.y), a = A(t.w), i = A(t.h), c = A(null), w = (m) => typeof m == "number" ? m : parseFloat(m) || 0, p = (m, b) => m == null ? "0%" : typeof m == "number" ? m + "%" : m.endsWith("%") || m.endsWith("px") || m.includes("calc") ? m : m === "grow" ? b !== void 0 ? `calc(100% - ${typeof b == "number" ? b + "%" : b})` : "100%" : m.includes("%") || m.includes("px") || m.includes("calc") ? m : m + "%", _ = me(() => t.usePercentages !== null ? t.usePercentages : n), C = me(() => X.value && !t.static), re = me(() => (se.value || X.value) && !t.static), ue = me(() => navigator.userAgent.toLowerCase().indexOf("android") !== -1), le = me(() => {
|
|
2830
|
+
var k;
|
|
2831
|
+
const m = Ge(), b = (k = m == null ? void 0 : m.parent) == null ? void 0 : k.proxy;
|
|
2832
|
+
return b != null && b.isMirrored ? !we.value : we.value;
|
|
2833
|
+
}), Ht = me(() => ({
|
|
2834
|
+
"vue-resizable": C.value,
|
|
2792
2835
|
static: t.static,
|
|
2793
|
-
resizing:
|
|
2794
|
-
"vue-draggable-dragging":
|
|
2795
|
-
cssTransforms:
|
|
2796
|
-
"render-rtl":
|
|
2797
|
-
"disable-userselect":
|
|
2798
|
-
"no-touch":
|
|
2799
|
-
})), He =
|
|
2800
|
-
if (
|
|
2801
|
-
const
|
|
2802
|
-
width:
|
|
2803
|
-
height:
|
|
2804
|
-
top:
|
|
2836
|
+
resizing: pe.value,
|
|
2837
|
+
"vue-draggable-dragging": G.value,
|
|
2838
|
+
cssTransforms: q.value,
|
|
2839
|
+
"render-rtl": le.value,
|
|
2840
|
+
"disable-userselect": G.value,
|
|
2841
|
+
"no-touch": ue.value && re.value
|
|
2842
|
+
})), He = me(() => le.value ? "vue-resizable-handle vue-rtl-resizable-handle" : "vue-resizable-handle"), Le = () => (g.value - (R.value[0] || 10) * (u.value + 1)) / u.value, je = (m, b, k, B) => {
|
|
2843
|
+
if (_.value) {
|
|
2844
|
+
const Fe = {
|
|
2845
|
+
width: p(k, m),
|
|
2846
|
+
height: p(B, b),
|
|
2847
|
+
top: p(b)
|
|
2805
2848
|
};
|
|
2806
|
-
return
|
|
2849
|
+
return le.value ? Fe.right = p(m) : Fe.left = p(m), Fe;
|
|
2807
2850
|
}
|
|
2808
|
-
const
|
|
2809
|
-
let
|
|
2810
|
-
const
|
|
2811
|
-
return
|
|
2812
|
-
right: typeof
|
|
2813
|
-
top: typeof
|
|
2814
|
-
width: typeof
|
|
2815
|
-
height: typeof
|
|
2816
|
-
} :
|
|
2817
|
-
left: typeof
|
|
2818
|
-
top: typeof
|
|
2819
|
-
width: typeof
|
|
2820
|
-
height: typeof
|
|
2821
|
-
},
|
|
2822
|
-
}, Ue = (
|
|
2851
|
+
const j = Le();
|
|
2852
|
+
let P = null;
|
|
2853
|
+
const V = w(m), Y = w(b), H = w(k), ce = w(B);
|
|
2854
|
+
return le.value ? P = {
|
|
2855
|
+
right: typeof m == "string" && (m.includes("calc") || m.includes("px")) ? m : Math.round(j * V + (V + 1) * R.value[0]),
|
|
2856
|
+
top: typeof b == "string" && (b.includes("calc") || b.includes("px")) ? b : Math.round(F.value * Y + (Y + 1) * R.value[1]),
|
|
2857
|
+
width: typeof k == "string" && (k.includes("calc") || k.includes("px")) ? k : H === 1 / 0 ? H : Math.round(j * H + Math.max(0, H - 1) * R.value[0]),
|
|
2858
|
+
height: typeof B == "string" && (B.includes("calc") || B.includes("px")) ? B : ce === 1 / 0 ? ce : Math.round(F.value * ce + Math.max(0, ce - 1) * R.value[1])
|
|
2859
|
+
} : P = {
|
|
2860
|
+
left: typeof m == "string" && (m.includes("calc") || m.includes("px")) ? m : Math.round(j * V + (V + 1) * R.value[0]),
|
|
2861
|
+
top: typeof b == "string" && (b.includes("calc") || b.includes("px")) ? b : Math.round(F.value * Y + (Y + 1) * R.value[1]),
|
|
2862
|
+
width: typeof k == "string" && (k.includes("calc") || k.includes("px")) ? k : H === 1 / 0 ? H : Math.round(j * H + Math.max(0, H - 1) * R.value[0]),
|
|
2863
|
+
height: typeof B == "string" && (B.includes("calc") || B.includes("px")) ? B : ce === 1 / 0 ? ce : Math.round(F.value * ce + Math.max(0, ce - 1) * R.value[1])
|
|
2864
|
+
}, P;
|
|
2865
|
+
}, Ue = (m, b) => {
|
|
2823
2866
|
if (!S)
|
|
2824
2867
|
return 0;
|
|
2825
|
-
const
|
|
2826
|
-
if (!
|
|
2868
|
+
const k = S.find((B) => B.i === m);
|
|
2869
|
+
if (!k)
|
|
2827
2870
|
return 0;
|
|
2828
|
-
if (
|
|
2829
|
-
if (
|
|
2830
|
-
const
|
|
2831
|
-
return `calc(${
|
|
2871
|
+
if (b === "y") {
|
|
2872
|
+
if (k.top_i !== void 0 && k.top_i !== null) {
|
|
2873
|
+
const B = S.find((P) => P.i === k.top_i), j = Ue(k.top_i, "y");
|
|
2874
|
+
return `calc(${p(j)} + ${p((B == null ? void 0 : B.h) ?? 0)})`;
|
|
2832
2875
|
}
|
|
2833
|
-
return
|
|
2876
|
+
return k.y ?? 0;
|
|
2834
2877
|
} else {
|
|
2835
|
-
if (
|
|
2836
|
-
const
|
|
2837
|
-
return `calc(${
|
|
2878
|
+
if (k.left_i !== void 0 && k.left_i !== null) {
|
|
2879
|
+
const B = S.find((P) => P.i === k.left_i), j = Ue(k.left_i, "x");
|
|
2880
|
+
return `calc(${p(j)} + ${p((B == null ? void 0 : B.w) ?? 0)})`;
|
|
2838
2881
|
}
|
|
2839
|
-
return
|
|
2882
|
+
return k.x ?? 0;
|
|
2840
2883
|
}
|
|
2841
|
-
},
|
|
2842
|
-
if (
|
|
2843
|
-
|
|
2884
|
+
}, ye = () => {
|
|
2885
|
+
if (_.value)
|
|
2886
|
+
s.value = t.x, a.value = t.w;
|
|
2844
2887
|
else {
|
|
2845
|
-
const
|
|
2846
|
-
|
|
2888
|
+
const j = w(t.x), P = w(t.w);
|
|
2889
|
+
j + P > u.value ? (s.value = 0, a.value = P > u.value ? u.value : P) : (s.value = t.x, a.value = t.w);
|
|
2847
2890
|
}
|
|
2848
|
-
const
|
|
2849
|
-
|
|
2850
|
-
let
|
|
2851
|
-
if (
|
|
2852
|
-
const
|
|
2853
|
-
if (typeof
|
|
2854
|
-
return
|
|
2855
|
-
if (typeof
|
|
2891
|
+
const m = Ue(String(t.i), "x"), b = Ue(String(t.i), "y"), k = je(m, b, a.value, i.value);
|
|
2892
|
+
G.value && (k.top = ae.value.top, typeof k.top == "number" && (k.top += "px"), le.value ? (k.right = ae.value.left, typeof k.right == "number" && (k.right += "px")) : (k.left = ae.value.left, typeof k.left == "number" && (k.left += "px"))), pe.value && (k.width = de.value.width, typeof k.width == "number" && (k.width += "px"), k.height = de.value.height, typeof k.height == "number" && (k.height += "px"));
|
|
2893
|
+
let B = null;
|
|
2894
|
+
if (q.value && (G.value || pe.value)) {
|
|
2895
|
+
const j = (H, ce) => {
|
|
2896
|
+
if (typeof H == "number")
|
|
2897
|
+
return H;
|
|
2898
|
+
if (typeof H != "string")
|
|
2856
2899
|
return 0;
|
|
2857
|
-
if (
|
|
2858
|
-
return parseFloat(
|
|
2859
|
-
if (
|
|
2860
|
-
return parseFloat(
|
|
2861
|
-
if (
|
|
2862
|
-
const
|
|
2863
|
-
if (
|
|
2864
|
-
return
|
|
2900
|
+
if (H.endsWith("%"))
|
|
2901
|
+
return parseFloat(H) / 100 * ce;
|
|
2902
|
+
if (H.endsWith("px"))
|
|
2903
|
+
return parseFloat(H);
|
|
2904
|
+
if (H.includes("calc") && H.includes("100%")) {
|
|
2905
|
+
const Fe = H.split("-");
|
|
2906
|
+
if (Fe.length > 1)
|
|
2907
|
+
return ce - j(Fe[1].trim().replace(")", ""), ce);
|
|
2865
2908
|
}
|
|
2866
|
-
return parseFloat(
|
|
2867
|
-
},
|
|
2868
|
-
if (
|
|
2869
|
-
const
|
|
2870
|
-
|
|
2909
|
+
return parseFloat(H) || 0;
|
|
2910
|
+
}, P = j(k.top, h.value), V = j(k.width, g.value), Y = j(k.height, h.value);
|
|
2911
|
+
if (le.value) {
|
|
2912
|
+
const H = j(k.right, g.value);
|
|
2913
|
+
B = St(P, H, V, Y);
|
|
2871
2914
|
} else {
|
|
2872
|
-
const
|
|
2873
|
-
|
|
2915
|
+
const H = j(k.left, g.value);
|
|
2916
|
+
B = Et(P, H, V, Y);
|
|
2874
2917
|
}
|
|
2875
2918
|
} else
|
|
2876
|
-
|
|
2877
|
-
for (const
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
},
|
|
2881
|
-
const
|
|
2882
|
-
for (const
|
|
2883
|
-
let
|
|
2884
|
-
if (typeof
|
|
2885
|
-
if (
|
|
2886
|
-
|
|
2919
|
+
q.value && !_.value ? le.value ? B = St(k.top, k.right, k.width, k.height) : B = Et(k.top, k.left, k.width, k.height) : le.value ? B = Ca(k.top, k.right, k.width, k.height) : B = ka(k.top, k.left, k.width, k.height);
|
|
2920
|
+
for (const j of ["top", "left", "right", "width", "height"])
|
|
2921
|
+
B[j] !== void 0 && typeof B[j] == "number" && (B[j] += "px");
|
|
2922
|
+
Ce.value = B;
|
|
2923
|
+
}, Ae = () => {
|
|
2924
|
+
const m = {};
|
|
2925
|
+
for (const b of ["width", "height"]) {
|
|
2926
|
+
let k = Ce.value[b];
|
|
2927
|
+
if (typeof k == "string" && (k.includes("calc") || k.includes("%")))
|
|
2928
|
+
if ($.value)
|
|
2929
|
+
k = b === "width" ? $.value.offsetWidth + "px" : $.value.offsetHeight + "px";
|
|
2887
2930
|
else
|
|
2888
2931
|
return;
|
|
2889
|
-
const
|
|
2890
|
-
if (!
|
|
2932
|
+
const B = String(k).match(/^(\d+(\.\d+)?)px$/);
|
|
2933
|
+
if (!B)
|
|
2891
2934
|
return;
|
|
2892
|
-
|
|
2935
|
+
m[b] = B[1];
|
|
2893
2936
|
}
|
|
2894
|
-
|
|
2895
|
-
}, Lt = (
|
|
2896
|
-
if (
|
|
2897
|
-
let
|
|
2898
|
-
return
|
|
2937
|
+
y("container-resized", t.i, t.h, t.w, m.height, m.width);
|
|
2938
|
+
}, Lt = (m, b) => {
|
|
2939
|
+
if (_.value) {
|
|
2940
|
+
let P = b / g.value * 100, V = m / h.value * 100;
|
|
2941
|
+
return P = Math.max(Math.min(P, 100 - w(a.value)), 0), V = Math.max(Math.min(V, 100 - w(i.value)), 0), { x: P, y: V };
|
|
2899
2942
|
}
|
|
2900
|
-
const
|
|
2901
|
-
let
|
|
2902
|
-
return
|
|
2903
|
-
}, xe = (
|
|
2904
|
-
if (
|
|
2905
|
-
let
|
|
2906
|
-
return
|
|
2943
|
+
const k = Le();
|
|
2944
|
+
let B = Math.round((b - R.value[0]) / (k + R.value[0])), j = Math.round((m - R.value[1]) / (F.value + R.value[1]));
|
|
2945
|
+
return B = Math.max(Math.min(B, u.value - w(a.value)), 0), j = Math.max(Math.min(j, K.value - w(i.value)), 0), { x: B, y: j };
|
|
2946
|
+
}, xe = (m, b, k = !1) => {
|
|
2947
|
+
if (_.value) {
|
|
2948
|
+
let V = b / g.value * 100, Y = m / h.value * 100;
|
|
2949
|
+
return V = Math.max(Math.min(V, 100 - w(s.value)), 0), Y = Math.max(Math.min(Y, 100 - w(o.value)), 0), { w: V, h: Y };
|
|
2907
2950
|
}
|
|
2908
|
-
const
|
|
2909
|
-
let
|
|
2910
|
-
return
|
|
2911
|
-
}, Tt = (
|
|
2912
|
-
if (t.static ||
|
|
2951
|
+
const B = Le();
|
|
2952
|
+
let j = Math.round((b + R.value[0]) / (B + R.value[0])), P = 0;
|
|
2953
|
+
return k ? P = Math.ceil((m + R.value[1]) / (F.value + R.value[1])) : P = Math.round((m + R.value[1]) / (F.value + R.value[1])), j = Math.max(Math.min(j, u.value - w(s.value)), 0), P = Math.max(Math.min(P, K.value - w(o.value)), 0), { w: j, h: P };
|
|
2954
|
+
}, Tt = (m) => {
|
|
2955
|
+
if (t.static || pe.value)
|
|
2913
2956
|
return;
|
|
2914
|
-
const
|
|
2915
|
-
if (
|
|
2957
|
+
const b = $t(m);
|
|
2958
|
+
if (b === null)
|
|
2916
2959
|
return;
|
|
2917
|
-
const { x:
|
|
2918
|
-
switch (
|
|
2960
|
+
const { x: k, y: B } = b, j = { top: 0, left: 0 };
|
|
2961
|
+
switch (m.type) {
|
|
2919
2962
|
case "dragstart": {
|
|
2920
|
-
|
|
2921
|
-
const
|
|
2922
|
-
|
|
2963
|
+
ne.value = s.value, ie.value = o.value;
|
|
2964
|
+
const V = m.target.offsetParent.getBoundingClientRect(), Y = m.target.getBoundingClientRect();
|
|
2965
|
+
le.value ? j.left = (Y.right - V.right) * -1 : j.left = Y.left - V.left, j.top = Y.top - V.top, ae.value = j, G.value = !0;
|
|
2923
2966
|
break;
|
|
2924
2967
|
}
|
|
2925
2968
|
case "dragend": {
|
|
2926
|
-
if (!
|
|
2969
|
+
if (!G.value)
|
|
2927
2970
|
return;
|
|
2928
|
-
const
|
|
2929
|
-
|
|
2971
|
+
const V = m.target.offsetParent.getBoundingClientRect(), Y = m.target.getBoundingClientRect();
|
|
2972
|
+
le.value ? j.left = (Y.right - V.right) * -1 : j.left = Y.left - V.left, j.top = Y.top - V.top, ae.value = null, G.value = !1;
|
|
2930
2973
|
break;
|
|
2931
2974
|
}
|
|
2932
2975
|
case "dragmove": {
|
|
2933
|
-
const
|
|
2934
|
-
|
|
2976
|
+
const V = Ot(I.value, f.value, k, B);
|
|
2977
|
+
le.value ? j.left = ae.value.left - V.deltaX : j.left = ae.value.left + V.deltaX, j.top = ae.value.top + V.deltaY, ae.value = j;
|
|
2935
2978
|
break;
|
|
2936
2979
|
}
|
|
2937
2980
|
}
|
|
2938
|
-
let
|
|
2939
|
-
|
|
2940
|
-
eventType:
|
|
2981
|
+
let P = Lt(j.top, j.left);
|
|
2982
|
+
I.value = k, f.value = B, (w(s.value) !== P.x || w(o.value) !== P.y) && y("move", t.i, P.x, P.y), m.type === "dragend" && (w(ne.value) !== P.x || w(ie.value) !== P.y) && y("moved", t.i, P.x, P.y), _.value ? d.emit("dragEvent", {
|
|
2983
|
+
eventType: m.type,
|
|
2941
2984
|
i: t.i,
|
|
2942
|
-
x:
|
|
2943
|
-
y:
|
|
2944
|
-
h:
|
|
2945
|
-
w:
|
|
2946
|
-
}) :
|
|
2947
|
-
eventType:
|
|
2985
|
+
x: P.x,
|
|
2986
|
+
y: P.y,
|
|
2987
|
+
h: i.value,
|
|
2988
|
+
w: a.value
|
|
2989
|
+
}) : d.emit("dragEvent", {
|
|
2990
|
+
eventType: m.type,
|
|
2948
2991
|
i: t.i,
|
|
2949
|
-
x:
|
|
2950
|
-
y:
|
|
2951
|
-
h:
|
|
2952
|
-
w:
|
|
2992
|
+
x: P.x,
|
|
2993
|
+
y: P.y,
|
|
2994
|
+
h: w(i.value),
|
|
2995
|
+
w: w(a.value)
|
|
2953
2996
|
});
|
|
2954
|
-
}, Nt = (
|
|
2997
|
+
}, Nt = (m) => {
|
|
2955
2998
|
if (t.static)
|
|
2956
2999
|
return;
|
|
2957
|
-
const
|
|
2958
|
-
if (
|
|
3000
|
+
const b = $t(m);
|
|
3001
|
+
if (b == null)
|
|
2959
3002
|
return;
|
|
2960
|
-
const { x:
|
|
2961
|
-
let
|
|
2962
|
-
switch (
|
|
3003
|
+
const { x: k, y: B } = b, j = { width: 0, height: 0 };
|
|
3004
|
+
let P = null;
|
|
3005
|
+
switch (m.type) {
|
|
2963
3006
|
case "resizestart": {
|
|
2964
|
-
|
|
2965
|
-
const
|
|
2966
|
-
|
|
3007
|
+
te.value = a.value, fe.value = i.value, P = je(s.value, o.value, a.value, i.value);
|
|
3008
|
+
const Y = (H, ce) => typeof H == "number" ? H : typeof H != "string" ? 0 : H.endsWith("%") ? parseFloat(H) / 100 * ce : H.endsWith("px") ? parseFloat(H) : parseFloat(H) || 0;
|
|
3009
|
+
j.width = Y(P.width, g.value), j.height = Y(P.height, h.value), de.value = j, pe.value = !0;
|
|
2967
3010
|
break;
|
|
2968
3011
|
}
|
|
2969
3012
|
case "resizemove": {
|
|
2970
|
-
const
|
|
2971
|
-
|
|
3013
|
+
const Y = Ot(_e.value, O.value, k, B);
|
|
3014
|
+
le.value ? j.width = de.value.width - Y.deltaX : j.width = de.value.width + Y.deltaX, j.height = de.value.height + Y.deltaY, de.value = j;
|
|
2972
3015
|
break;
|
|
2973
3016
|
}
|
|
2974
3017
|
case "resizeend": {
|
|
2975
|
-
|
|
2976
|
-
const
|
|
2977
|
-
|
|
3018
|
+
P = je(s.value, o.value, a.value, i.value);
|
|
3019
|
+
const Y = (H, ce) => typeof H == "number" ? H : typeof H != "string" ? 0 : H.endsWith("%") ? parseFloat(H) / 100 * ce : H.endsWith("px") ? parseFloat(H) : parseFloat(H) || 0;
|
|
3020
|
+
j.width = Y(P.width, g.value), j.height = Y(P.height, h.value), de.value = null, pe.value = !1;
|
|
2978
3021
|
break;
|
|
2979
3022
|
}
|
|
2980
3023
|
}
|
|
2981
|
-
const
|
|
2982
|
-
|
|
2983
|
-
eventType:
|
|
3024
|
+
const V = xe(j.height, j.width);
|
|
3025
|
+
_.value || (V.w < t.minW && (V.w = t.minW), V.w > t.maxW && (V.w = t.maxW), V.h < t.minH && (V.h = t.minH), V.h > t.maxH && (V.h = t.maxH), V.h < 1 && (V.h = 1), V.w < 1 && (V.w = 1)), _e.value = k, O.value = B, (w(a.value) !== V.w || w(i.value) !== V.h) && y("resize", t.i, V.h, V.w, j.height, j.width), m.type === "resizeend" && (w(te.value) !== V.w || w(fe.value) !== V.h) && y("resized", t.i, V.h, V.w, j.height, j.width), d.emit("resizeEvent", {
|
|
3026
|
+
eventType: m.type,
|
|
2984
3027
|
i: t.i,
|
|
2985
|
-
x:
|
|
2986
|
-
y:
|
|
2987
|
-
h:
|
|
2988
|
-
w:
|
|
3028
|
+
x: w(s.value),
|
|
3029
|
+
y: w(o.value),
|
|
3030
|
+
h: V.h,
|
|
3031
|
+
w: V.w
|
|
2989
3032
|
});
|
|
2990
3033
|
}, et = () => {
|
|
2991
|
-
if ((
|
|
2992
|
-
const
|
|
3034
|
+
if ((c.value === null || c.value === void 0) && (c.value = yt($.value)), se.value && !t.static) {
|
|
3035
|
+
const m = {
|
|
2993
3036
|
ignoreFrom: t.dragIgnoreFrom,
|
|
2994
3037
|
allowFrom: t.dragAllowFrom
|
|
2995
3038
|
};
|
|
2996
|
-
|
|
2997
|
-
Tt(
|
|
3039
|
+
c.value.draggable(m), T.value || (T.value = !0, c.value.on("dragstart dragmove dragend", (b) => {
|
|
3040
|
+
Tt(b);
|
|
2998
3041
|
}));
|
|
2999
3042
|
} else
|
|
3000
|
-
|
|
3043
|
+
c.value.draggable({
|
|
3001
3044
|
enabled: !1
|
|
3002
3045
|
});
|
|
3003
|
-
},
|
|
3004
|
-
if ((
|
|
3005
|
-
let
|
|
3006
|
-
if (
|
|
3007
|
-
|
|
3008
|
-
width: t.maxW / 100 *
|
|
3009
|
-
height: t.maxH / 100 *
|
|
3010
|
-
},
|
|
3011
|
-
width: t.minW / 100 *
|
|
3012
|
-
height: t.minH / 100 *
|
|
3046
|
+
}, Ee = () => {
|
|
3047
|
+
if ((c.value === null || c.value === void 0) && (c.value = yt($.value)), X.value && !t.static) {
|
|
3048
|
+
let m, b;
|
|
3049
|
+
if (_.value)
|
|
3050
|
+
m = {
|
|
3051
|
+
width: t.maxW / 100 * g.value,
|
|
3052
|
+
height: t.maxH / 100 * h.value
|
|
3053
|
+
}, b = {
|
|
3054
|
+
width: t.minW / 100 * g.value,
|
|
3055
|
+
height: t.minH / 100 * h.value
|
|
3013
3056
|
};
|
|
3014
3057
|
else {
|
|
3015
|
-
const
|
|
3016
|
-
|
|
3017
|
-
width: parseFloat(
|
|
3018
|
-
height: parseFloat(
|
|
3019
|
-
},
|
|
3020
|
-
width: parseFloat(
|
|
3021
|
-
height: parseFloat(
|
|
3058
|
+
const B = je(0, 0, t.maxW, t.maxH), j = je(0, 0, t.minW, t.minH);
|
|
3059
|
+
m = {
|
|
3060
|
+
width: parseFloat(B.width),
|
|
3061
|
+
height: parseFloat(B.height)
|
|
3062
|
+
}, b = {
|
|
3063
|
+
width: parseFloat(j.width),
|
|
3064
|
+
height: parseFloat(j.height)
|
|
3022
3065
|
};
|
|
3023
3066
|
}
|
|
3024
|
-
const
|
|
3067
|
+
const k = {
|
|
3025
3068
|
preserveAspectRatio: !0,
|
|
3026
3069
|
edges: {
|
|
3027
3070
|
left: !1,
|
|
@@ -3031,157 +3074,155 @@ const Pt = /* @__PURE__ */ ge({
|
|
|
3031
3074
|
},
|
|
3032
3075
|
ignoreFrom: t.resizeIgnoreFrom,
|
|
3033
3076
|
restrictSize: {
|
|
3034
|
-
min:
|
|
3035
|
-
max:
|
|
3077
|
+
min: b,
|
|
3078
|
+
max: m
|
|
3036
3079
|
}
|
|
3037
3080
|
};
|
|
3038
|
-
|
|
3039
|
-
Nt(
|
|
3081
|
+
c.value.resizable(k), Q.value || (Q.value = !0, c.value.on("resizestart resizemove resizeend", (B) => {
|
|
3082
|
+
Nt(B);
|
|
3040
3083
|
}));
|
|
3041
3084
|
} else
|
|
3042
|
-
|
|
3085
|
+
c.value.resizable({
|
|
3043
3086
|
enabled: !1
|
|
3044
3087
|
});
|
|
3045
|
-
}, tt = (
|
|
3046
|
-
|
|
3088
|
+
}, tt = (m, b) => {
|
|
3089
|
+
g.value = m || 100, b != null && (u.value = b), $.value && $.value.parentElement && (h.value = $.value.parentElement.offsetHeight || 100);
|
|
3047
3090
|
}, Te = () => {
|
|
3048
|
-
|
|
3091
|
+
ye();
|
|
3049
3092
|
}, Gt = () => {
|
|
3050
|
-
if (
|
|
3051
|
-
const
|
|
3052
|
-
|
|
3093
|
+
if (te.value = a.value, fe.value = i.value, $.value && $.value.firstElementChild) {
|
|
3094
|
+
const m = $.value.firstElementChild.getBoundingClientRect(), b = xe(m.height, m.width, !0);
|
|
3095
|
+
_.value || (b.w < t.minW && (b.w = t.minW), b.w > t.maxW && (b.w = t.maxW), b.h < t.minH && (b.h = t.minH), b.h > t.maxH && (b.h = t.maxH), b.h < 1 && (b.h = 1), b.w < 1 && (b.w = 1)), (w(a.value) !== b.w || w(i.value) !== b.h) && y("resize", t.i, b.h, b.w, m.height, m.width), (w(te.value) !== b.w || w(fe.value) !== b.h) && (y("resized", t.i, b.h, b.w, m.height, m.width), d.emit("resizeEvent", {
|
|
3053
3096
|
eventType: "resizeend",
|
|
3054
3097
|
i: t.i,
|
|
3055
|
-
x:
|
|
3056
|
-
y:
|
|
3057
|
-
h:
|
|
3058
|
-
w:
|
|
3098
|
+
x: w(s.value),
|
|
3099
|
+
y: w(o.value),
|
|
3100
|
+
h: b.h,
|
|
3101
|
+
w: b.w
|
|
3059
3102
|
}));
|
|
3060
3103
|
}
|
|
3061
|
-
}, lt = (
|
|
3062
|
-
tt(
|
|
3104
|
+
}, lt = (m) => {
|
|
3105
|
+
tt(m);
|
|
3063
3106
|
}, at = () => {
|
|
3064
3107
|
Te();
|
|
3065
|
-
}, nt = (
|
|
3066
|
-
t.isDraggable === null && (
|
|
3067
|
-
}, ot = (
|
|
3068
|
-
t.isResizable === null && (
|
|
3069
|
-
}, st = (
|
|
3070
|
-
|
|
3071
|
-
}, it = (
|
|
3072
|
-
|
|
3108
|
+
}, nt = (m) => {
|
|
3109
|
+
t.isDraggable === null && (se.value = m);
|
|
3110
|
+
}, ot = (m) => {
|
|
3111
|
+
t.isResizable === null && (X.value = m);
|
|
3112
|
+
}, st = (m) => {
|
|
3113
|
+
F.value = m;
|
|
3114
|
+
}, it = (m) => {
|
|
3115
|
+
K.value = m;
|
|
3073
3116
|
}, rt = () => {
|
|
3074
|
-
|
|
3075
|
-
}, ut = (
|
|
3076
|
-
|
|
3117
|
+
we.value = wt() === "rtl", Te();
|
|
3118
|
+
}, ut = (m) => {
|
|
3119
|
+
u.value = parseInt(m, 10);
|
|
3077
3120
|
};
|
|
3078
|
-
return
|
|
3079
|
-
var
|
|
3080
|
-
const
|
|
3081
|
-
|
|
3121
|
+
return Oe(() => {
|
|
3122
|
+
var k;
|
|
3123
|
+
const m = Ge(), b = (k = m == null ? void 0 : m.parent) == null ? void 0 : k.proxy;
|
|
3124
|
+
u.value = b.colNum, F.value = b.rowHeight, g.value = b.width !== null && b.width !== 0 ? b.width : 100, R.value = b.margin !== void 0 ? b.margin : [10, 10], K.value = b.maxRows, $.value && $.value.parentElement && (h.value = $.value.parentElement.offsetHeight || 100, g.value === 100 && (g.value = $.value.parentElement.offsetWidth || 100)), t.isDraggable === null ? se.value = b.isDraggable : se.value = t.isDraggable, t.isResizable === null ? X.value = b.isResizable : X.value = t.isResizable, q.value = b.useCssTransforms, d.on("updateWidth", lt), d.on("compact", at), d.on("setDraggable", nt), d.on("setResizable", ot), d.on("setRowHeight", st), d.on("setMaxRows", it), d.on("directionchange", rt), d.on("setColNum", ut), we.value = wt() === "rtl", ye();
|
|
3082
3125
|
}), It(() => {
|
|
3083
|
-
|
|
3084
|
-
}),
|
|
3126
|
+
d.off("updateWidth", lt), d.off("compact", at), d.off("setDraggable", nt), d.off("setResizable", ot), d.off("setRowHeight", st), d.off("setMaxRows", it), d.off("directionchange", rt), d.off("setColNum", ut), c.value && c.value.unset();
|
|
3127
|
+
}), L(
|
|
3085
3128
|
() => t.isDraggable,
|
|
3086
3129
|
() => {
|
|
3087
|
-
|
|
3130
|
+
se.value = t.isDraggable;
|
|
3088
3131
|
}
|
|
3089
|
-
),
|
|
3132
|
+
), L(
|
|
3090
3133
|
() => t.static,
|
|
3091
3134
|
() => {
|
|
3092
|
-
et(),
|
|
3135
|
+
et(), Ee();
|
|
3093
3136
|
}
|
|
3094
|
-
),
|
|
3137
|
+
), L(se, () => {
|
|
3095
3138
|
et();
|
|
3096
|
-
}),
|
|
3139
|
+
}), L(
|
|
3097
3140
|
() => t.isResizable,
|
|
3098
3141
|
() => {
|
|
3099
|
-
|
|
3142
|
+
X.value = t.isResizable;
|
|
3100
3143
|
}
|
|
3101
|
-
),
|
|
3102
|
-
|
|
3103
|
-
}),
|
|
3104
|
-
|
|
3105
|
-
}),
|
|
3106
|
-
|
|
3107
|
-
}),
|
|
3108
|
-
|
|
3109
|
-
}),
|
|
3110
|
-
|
|
3111
|
-
}),
|
|
3144
|
+
), L(X, () => {
|
|
3145
|
+
Ee();
|
|
3146
|
+
}), L(F, () => {
|
|
3147
|
+
ye(), Ae();
|
|
3148
|
+
}), L(u, () => {
|
|
3149
|
+
Ee(), ye(), Ae();
|
|
3150
|
+
}), L(g, () => {
|
|
3151
|
+
Ee(), ye(), Ae();
|
|
3152
|
+
}), L(h, () => {
|
|
3153
|
+
Ee(), ye(), Ae();
|
|
3154
|
+
}), L(
|
|
3112
3155
|
() => t.x,
|
|
3113
|
-
(
|
|
3114
|
-
|
|
3156
|
+
(m) => {
|
|
3157
|
+
s.value = m, ye();
|
|
3115
3158
|
}
|
|
3116
|
-
),
|
|
3159
|
+
), L(
|
|
3117
3160
|
() => t.y,
|
|
3118
|
-
(
|
|
3119
|
-
|
|
3161
|
+
(m) => {
|
|
3162
|
+
o.value = m, ye();
|
|
3120
3163
|
}
|
|
3121
|
-
),
|
|
3164
|
+
), L(
|
|
3122
3165
|
() => t.h,
|
|
3123
|
-
(
|
|
3124
|
-
|
|
3125
|
-
debugger;
|
|
3126
|
-
ve();
|
|
3166
|
+
(m) => {
|
|
3167
|
+
i.value = m, ye();
|
|
3127
3168
|
}
|
|
3128
|
-
),
|
|
3169
|
+
), L(
|
|
3129
3170
|
() => t.w,
|
|
3130
|
-
(
|
|
3131
|
-
|
|
3171
|
+
(m) => {
|
|
3172
|
+
a.value = m, ye();
|
|
3132
3173
|
}
|
|
3133
|
-
),
|
|
3134
|
-
|
|
3135
|
-
}),
|
|
3174
|
+
), L(le, () => {
|
|
3175
|
+
Ee(), ye();
|
|
3176
|
+
}), L(
|
|
3136
3177
|
() => t.minH,
|
|
3137
3178
|
() => {
|
|
3138
|
-
|
|
3179
|
+
Ee();
|
|
3139
3180
|
}
|
|
3140
|
-
),
|
|
3181
|
+
), L(
|
|
3141
3182
|
() => t.maxH,
|
|
3142
3183
|
() => {
|
|
3143
|
-
|
|
3184
|
+
Ee();
|
|
3144
3185
|
}
|
|
3145
|
-
),
|
|
3186
|
+
), L(
|
|
3146
3187
|
() => t.minW,
|
|
3147
3188
|
() => {
|
|
3148
|
-
|
|
3189
|
+
Ee();
|
|
3149
3190
|
}
|
|
3150
|
-
),
|
|
3191
|
+
), L(
|
|
3151
3192
|
() => t.maxW,
|
|
3152
3193
|
() => {
|
|
3153
|
-
|
|
3194
|
+
Ee();
|
|
3154
3195
|
}
|
|
3155
|
-
),
|
|
3196
|
+
), L(
|
|
3156
3197
|
() => {
|
|
3157
|
-
var
|
|
3158
|
-
const
|
|
3159
|
-
return
|
|
3198
|
+
var k;
|
|
3199
|
+
const m = Ge(), b = (k = m == null ? void 0 : m.parent) == null ? void 0 : k.proxy;
|
|
3200
|
+
return b == null ? void 0 : b.margin;
|
|
3160
3201
|
},
|
|
3161
|
-
(
|
|
3162
|
-
!
|
|
3202
|
+
(m) => {
|
|
3203
|
+
!m || m[0] === R.value[0] && m[1] === R.value[1] || (R.value = m.map((b) => Number(b)), ye(), Ae());
|
|
3163
3204
|
}
|
|
3164
3205
|
), l({
|
|
3165
3206
|
autoSize: Gt,
|
|
3166
3207
|
compact: Te,
|
|
3167
3208
|
updateWidth: tt
|
|
3168
|
-
}), (
|
|
3209
|
+
}), (m, b) => (v(), U("div", {
|
|
3169
3210
|
ref_key: "item",
|
|
3170
|
-
ref:
|
|
3211
|
+
ref: $,
|
|
3171
3212
|
class: Ye(["vue-grid-item", Ht.value]),
|
|
3172
|
-
style: Ce
|
|
3213
|
+
style: Se(Ce.value)
|
|
3173
3214
|
}, [
|
|
3174
|
-
Ze(
|
|
3175
|
-
|
|
3215
|
+
Ze(m.$slots, "default"),
|
|
3216
|
+
C.value ? (v(), U("span", {
|
|
3176
3217
|
key: 0,
|
|
3177
3218
|
ref_key: "handle",
|
|
3178
|
-
ref:
|
|
3219
|
+
ref: M,
|
|
3179
3220
|
class: Ye(He.value)
|
|
3180
|
-
}, null, 2)) :
|
|
3221
|
+
}, null, 2)) : Z("", !0)
|
|
3181
3222
|
], 6));
|
|
3182
3223
|
}
|
|
3183
3224
|
});
|
|
3184
|
-
const Fa = /* @__PURE__ */
|
|
3225
|
+
const Fa = /* @__PURE__ */ be({
|
|
3185
3226
|
name: "GridLayout",
|
|
3186
3227
|
__name: "grid-layout",
|
|
3187
3228
|
props: {
|
|
@@ -3204,180 +3245,174 @@ const Fa = /* @__PURE__ */ ge({
|
|
|
3204
3245
|
usePercentages: { type: Boolean, default: !1 }
|
|
3205
3246
|
},
|
|
3206
3247
|
emits: ["layout-created", "layout-mounted", "layout-before-mount", "layout-updated", "layout-ready", "update:layout", "breakpoint-changed"],
|
|
3207
|
-
setup(e, { expose: l, emit:
|
|
3208
|
-
const t = e,
|
|
3209
|
-
|
|
3210
|
-
const
|
|
3248
|
+
setup(e, { expose: l, emit: r }) {
|
|
3249
|
+
const t = e, y = r, d = zt();
|
|
3250
|
+
Ve("eventBus", d), Ve("usePercentages", t.usePercentages), Ve("layout", t.layout);
|
|
3251
|
+
const n = A(null), S = A(null), $ = A(null), M = A({}), u = A(0), g = A(!1), h = he({
|
|
3211
3252
|
x: 0,
|
|
3212
3253
|
y: 0,
|
|
3213
3254
|
w: 0,
|
|
3214
3255
|
h: 0,
|
|
3215
3256
|
i: -1
|
|
3216
|
-
}),
|
|
3217
|
-
|
|
3218
|
-
height:
|
|
3219
|
-
}, t.usePercentages && (
|
|
3220
|
-
},
|
|
3221
|
-
|
|
3222
|
-
},
|
|
3257
|
+
}), F = A({}), R = A(null), K = A(null), se = A(null), X = () => n.value, q = () => {
|
|
3258
|
+
M.value = {
|
|
3259
|
+
height: ae()
|
|
3260
|
+
}, t.usePercentages && (M.value.width = "100%");
|
|
3261
|
+
}, G = () => {
|
|
3262
|
+
n.value !== null && n.value !== void 0 && ($.value = n.value.offsetWidth), d.emit("resizeEvent", {});
|
|
3263
|
+
}, ae = () => {
|
|
3223
3264
|
if (t.usePercentages)
|
|
3224
3265
|
return "100%";
|
|
3225
3266
|
if (t.autoSize)
|
|
3226
3267
|
return ga(t.layout) * (t.rowHeight + t.margin[1]) + t.margin[1] + "px";
|
|
3227
|
-
},
|
|
3228
|
-
let
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
v.value = !1;
|
|
3237
|
-
});
|
|
3238
|
-
Qe(t.layout, p, ae, c, !0, t.preventCollision), ze(t.layout, t.verticalCompact), i.emit("compact"), H(), K === "dragend" && w("layout-updated", t.layout);
|
|
3239
|
-
}, ie = () => {
|
|
3240
|
-
if (!M.value)
|
|
3268
|
+
}, pe = (T, Q, te, fe, ne, ie) => {
|
|
3269
|
+
let s = kt(t.layout, String(Q));
|
|
3270
|
+
s == null && (s = { x: 0, y: 0, w: 0, h: 0, i: String(Q) }), T === "dragmove" || T === "dragstart" ? (h.i = Q, h.x = s.x, h.y = s.y, h.w = ie, h.h = ne, ke(() => {
|
|
3271
|
+
g.value = !0;
|
|
3272
|
+
}), d.emit("updateWidth", $.value)) : ke(() => {
|
|
3273
|
+
g.value = !1;
|
|
3274
|
+
}), Qe(t.layout, s, te, fe, !0, t.preventCollision), Be(t.layout, t.verticalCompact), d.emit("compact"), q(), T === "dragend" && y("layout-updated", t.layout);
|
|
3275
|
+
}, de = () => {
|
|
3276
|
+
if (!$.value)
|
|
3241
3277
|
return;
|
|
3242
|
-
const
|
|
3243
|
-
|
|
3244
|
-
const
|
|
3245
|
-
|
|
3246
|
-
|
|
3278
|
+
const T = Sa(t.breakpoints, $.value), Q = Mt(T, t.cols);
|
|
3279
|
+
R.value != null && !F.value[R.value] && (F.value[R.value] = Xe(t.layout));
|
|
3280
|
+
const te = Ma(
|
|
3281
|
+
K.value,
|
|
3282
|
+
F.value,
|
|
3247
3283
|
t.breakpoints,
|
|
3248
|
-
|
|
3249
|
-
|
|
3284
|
+
T,
|
|
3285
|
+
R.value,
|
|
3250
3286
|
Q,
|
|
3251
3287
|
t.verticalCompact
|
|
3252
3288
|
);
|
|
3253
|
-
|
|
3254
|
-
},
|
|
3255
|
-
let
|
|
3256
|
-
|
|
3257
|
-
let
|
|
3289
|
+
F.value[T] = te, R.value !== T && y("breakpoint-changed", T, te), y("update:layout", te), R.value = T, d.emit("setColNum", Mt(T, t.cols));
|
|
3290
|
+
}, I = (T, Q, te, fe, ne, ie) => {
|
|
3291
|
+
let s = kt(t.layout, String(Q));
|
|
3292
|
+
s == null && (s = { h: 0, w: 0, x: 0, y: 0, i: String(Q) });
|
|
3293
|
+
let o = !1;
|
|
3258
3294
|
if (t.preventCollision) {
|
|
3259
|
-
const
|
|
3260
|
-
(
|
|
3295
|
+
const a = Ut(t.layout, { ...s, w: ie, h: ne }).filter(
|
|
3296
|
+
(i) => i.i !== s.i
|
|
3261
3297
|
);
|
|
3262
|
-
if (
|
|
3263
|
-
let
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
}), Number.isFinite(
|
|
3298
|
+
if (o = a.length > 0, o) {
|
|
3299
|
+
let i = 1 / 0, c = 1 / 0;
|
|
3300
|
+
a.forEach((w) => {
|
|
3301
|
+
w.x > s.x && (i = Math.min(i, w.x)), w.y > s.y && (c = Math.min(c, w.y));
|
|
3302
|
+
}), Number.isFinite(i) && (s.w = i - s.x), Number.isFinite(c) && (s.h = c - s.y);
|
|
3267
3303
|
}
|
|
3268
3304
|
}
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
}),
|
|
3272
|
-
|
|
3273
|
-
}), t.responsive &&
|
|
3274
|
-
},
|
|
3275
|
-
|
|
3276
|
-
}, _e = (
|
|
3277
|
-
const
|
|
3278
|
-
return
|
|
3279
|
-
},
|
|
3280
|
-
if (t.layout !== void 0 &&
|
|
3281
|
-
if (t.layout.length !==
|
|
3282
|
-
const
|
|
3283
|
-
|
|
3305
|
+
o || (s.w = ie, s.h = ne), T === "resizestart" || T === "resizemove" ? (h.i = Q, h.x = te, h.y = fe, h.w = s.w, h.h = s.h, ke(() => {
|
|
3306
|
+
g.value = !0;
|
|
3307
|
+
}), d.emit("updateWidth", $.value)) : ke(() => {
|
|
3308
|
+
g.value = !1;
|
|
3309
|
+
}), t.responsive && de(), Be(t.layout, t.verticalCompact), d.emit("compact"), q(), T === "resizeend" && y("layout-updated", t.layout);
|
|
3310
|
+
}, f = () => {
|
|
3311
|
+
F.value = Object.assign({}, t.responsiveLayouts);
|
|
3312
|
+
}, _e = (T, Q) => {
|
|
3313
|
+
const te = T.filter((ne) => !Q.some((ie) => ne.i === ie.i)), fe = Q.filter((ne) => !T.some((ie) => ne.i === ie.i));
|
|
3314
|
+
return te.concat(fe);
|
|
3315
|
+
}, O = () => {
|
|
3316
|
+
if (t.layout !== void 0 && K.value !== null) {
|
|
3317
|
+
if (t.layout.length !== K.value.length) {
|
|
3318
|
+
const T = _e(t.layout, K.value);
|
|
3319
|
+
T.length > 0 && (t.layout.length > K.value.length ? K.value = K.value.concat(T) : K.value = K.value.filter((Q) => !T.some((te) => Q.i === te.i))), u.value = t.layout.length, f();
|
|
3284
3320
|
}
|
|
3285
|
-
t.usePercentages,
|
|
3321
|
+
t.usePercentages, Be(t.layout, t.verticalCompact), d.emit("updateWidth", $.value), q(), y("layout-updated", t.layout);
|
|
3286
3322
|
}
|
|
3287
|
-
},
|
|
3288
|
-
|
|
3289
|
-
},
|
|
3290
|
-
|
|
3291
|
-
ce(K, Q, ae, c, y, g);
|
|
3323
|
+
}, Ce = ({ eventType: T, i: Q, x: te, y: fe, h: ne, w: ie }) => {
|
|
3324
|
+
I(T, Q, te, fe, ne, ie);
|
|
3325
|
+
}, we = ({ eventType: T, i: Q, x: te, y: fe, h: ne, w: ie }) => {
|
|
3326
|
+
pe(T, Q, te, fe, ne, ie);
|
|
3292
3327
|
};
|
|
3293
3328
|
return Yt(() => {
|
|
3294
|
-
|
|
3295
|
-
}),
|
|
3296
|
-
|
|
3297
|
-
Ea(t.layout),
|
|
3298
|
-
|
|
3299
|
-
|
|
3329
|
+
y("layout-before-mount", t.layout);
|
|
3330
|
+
}), Oe(() => {
|
|
3331
|
+
d.on("resizeEvent", Ce), d.on("dragEvent", we), y("layout-created", t.layout), y("layout-mounted", t.layout), ke(() => {
|
|
3332
|
+
Ea(t.layout), K.value = t.layout, t.usePercentages, ke(() => {
|
|
3333
|
+
G(), f(), ha("resize", G), Be(t.layout, t.verticalCompact), y("layout-updated", t.layout), q(), ke(() => {
|
|
3334
|
+
se.value = gl({
|
|
3300
3335
|
strategy: "scroll",
|
|
3301
3336
|
callOnAdd: !1
|
|
3302
|
-
}),
|
|
3303
|
-
|
|
3337
|
+
}), se.value.listenTo(n.value, () => {
|
|
3338
|
+
G();
|
|
3304
3339
|
});
|
|
3305
3340
|
});
|
|
3306
3341
|
});
|
|
3307
3342
|
});
|
|
3308
3343
|
}), It(() => {
|
|
3309
|
-
|
|
3310
|
-
}),
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
}),
|
|
3344
|
+
d.off("resizeEvent", Ce), d.off("dragEvent", we), va("resize", G), se.value && n.value && se.value.uninstall(n.value);
|
|
3345
|
+
}), L($, (T, Q) => {
|
|
3346
|
+
ke(() => {
|
|
3347
|
+
d.emit("updateWidth", $.value), Q === null && ke(() => {
|
|
3348
|
+
y("layout-ready", t.layout);
|
|
3349
|
+
}), q();
|
|
3315
3350
|
});
|
|
3316
|
-
}),
|
|
3351
|
+
}), L(
|
|
3317
3352
|
() => t.layout.length,
|
|
3318
3353
|
() => {
|
|
3319
|
-
|
|
3354
|
+
O();
|
|
3320
3355
|
}
|
|
3321
|
-
),
|
|
3356
|
+
), L(
|
|
3322
3357
|
() => t.layout,
|
|
3323
3358
|
() => {
|
|
3324
|
-
|
|
3359
|
+
O();
|
|
3325
3360
|
}
|
|
3326
|
-
),
|
|
3361
|
+
), L(
|
|
3327
3362
|
() => t.colNum,
|
|
3328
|
-
(
|
|
3329
|
-
|
|
3363
|
+
(T) => {
|
|
3364
|
+
d.emit("setColNum", T);
|
|
3330
3365
|
}
|
|
3331
|
-
),
|
|
3366
|
+
), L(
|
|
3332
3367
|
() => t.rowHeight,
|
|
3333
3368
|
() => {
|
|
3334
|
-
|
|
3369
|
+
d.emit("setRowHeight", t.rowHeight);
|
|
3335
3370
|
}
|
|
3336
|
-
),
|
|
3371
|
+
), L(
|
|
3337
3372
|
() => t.isDraggable,
|
|
3338
3373
|
() => {
|
|
3339
|
-
|
|
3374
|
+
d.emit("setDraggable", t.isDraggable);
|
|
3340
3375
|
}
|
|
3341
|
-
),
|
|
3376
|
+
), L(
|
|
3342
3377
|
() => t.isResizable,
|
|
3343
3378
|
() => {
|
|
3344
|
-
|
|
3379
|
+
d.emit("setResizable", t.isResizable);
|
|
3345
3380
|
}
|
|
3346
|
-
),
|
|
3381
|
+
), L(
|
|
3347
3382
|
() => t.responsive,
|
|
3348
3383
|
() => {
|
|
3349
|
-
t.responsive || (
|
|
3384
|
+
t.responsive || (y("update:layout", K.value), d.emit("setColNum", t.colNum)), G();
|
|
3350
3385
|
}
|
|
3351
|
-
),
|
|
3386
|
+
), L(
|
|
3352
3387
|
() => t.maxRows,
|
|
3353
3388
|
() => {
|
|
3354
|
-
|
|
3389
|
+
d.emit("setMaxRows", t.maxRows);
|
|
3355
3390
|
}
|
|
3356
|
-
),
|
|
3391
|
+
), L(
|
|
3357
3392
|
() => t.margin,
|
|
3358
3393
|
() => {
|
|
3359
|
-
|
|
3394
|
+
q();
|
|
3360
3395
|
}
|
|
3361
3396
|
), l({
|
|
3362
|
-
getLayoutEl:
|
|
3363
|
-
}), (
|
|
3397
|
+
getLayoutEl: X
|
|
3398
|
+
}), (T, Q) => (v(), U("div", {
|
|
3364
3399
|
ref_key: "item",
|
|
3365
|
-
ref:
|
|
3400
|
+
ref: n,
|
|
3366
3401
|
class: "vue-grid-layout",
|
|
3367
|
-
style:
|
|
3402
|
+
style: Se(M.value)
|
|
3368
3403
|
}, [
|
|
3369
|
-
Ze(
|
|
3370
|
-
Ft(
|
|
3404
|
+
Ze(T.$slots, "default"),
|
|
3405
|
+
Ft(W(Pt, {
|
|
3371
3406
|
ref_key: "gridItem",
|
|
3372
3407
|
ref: S,
|
|
3373
3408
|
class: "vue-grid-placeholder",
|
|
3374
|
-
x:
|
|
3375
|
-
y:
|
|
3376
|
-
w:
|
|
3377
|
-
h:
|
|
3378
|
-
i:
|
|
3409
|
+
x: h.x,
|
|
3410
|
+
y: h.y,
|
|
3411
|
+
w: h.w,
|
|
3412
|
+
h: h.h,
|
|
3413
|
+
i: h.i
|
|
3379
3414
|
}, null, 8, ["x", "y", "w", "h", "i"]), [
|
|
3380
|
-
[Rt,
|
|
3415
|
+
[Rt, g.value]
|
|
3381
3416
|
])
|
|
3382
3417
|
], 4));
|
|
3383
3418
|
}
|
|
@@ -3385,55 +3420,55 @@ const Fa = /* @__PURE__ */ ge({
|
|
|
3385
3420
|
const Ra = { class: "item-content" }, Ia = {
|
|
3386
3421
|
key: 1,
|
|
3387
3422
|
class: "text"
|
|
3388
|
-
}, ja = /* @__PURE__ */
|
|
3423
|
+
}, ja = /* @__PURE__ */ be({
|
|
3389
3424
|
__name: "gridView",
|
|
3390
3425
|
props: {
|
|
3391
3426
|
config: {}
|
|
3392
3427
|
},
|
|
3393
3428
|
setup(e) {
|
|
3394
|
-
const l = e,
|
|
3395
|
-
const
|
|
3396
|
-
return l.config.items.map((
|
|
3397
|
-
let S =
|
|
3398
|
-
if (S || (S = `index_${
|
|
3429
|
+
const l = e, r = me(() => {
|
|
3430
|
+
const y = {};
|
|
3431
|
+
return l.config.items.map((d, n) => {
|
|
3432
|
+
let S = d.key;
|
|
3433
|
+
if (S || (S = `index_${n}`), y[S])
|
|
3399
3434
|
throw new Error("key: ${i}重复");
|
|
3400
3435
|
return {
|
|
3401
|
-
...
|
|
3436
|
+
...d.layout,
|
|
3402
3437
|
i: S,
|
|
3403
|
-
config:
|
|
3438
|
+
config: d
|
|
3404
3439
|
};
|
|
3405
3440
|
});
|
|
3406
|
-
}), t =
|
|
3407
|
-
return
|
|
3408
|
-
}), (
|
|
3409
|
-
layout:
|
|
3410
|
-
"onUpdate:layout":
|
|
3411
|
-
"is-draggable":
|
|
3412
|
-
"is-resizable":
|
|
3441
|
+
}), t = me(() => !!l.config.isBorder);
|
|
3442
|
+
return Oe(() => {
|
|
3443
|
+
}), (y, d) => (v(), z(dt(Fa), {
|
|
3444
|
+
layout: r.value,
|
|
3445
|
+
"onUpdate:layout": d[0] || (d[0] = (n) => r.value = n),
|
|
3446
|
+
"is-draggable": y.config.isDraggable,
|
|
3447
|
+
"is-resizable": y.config.isResizable,
|
|
3413
3448
|
"is-mirrored": !1,
|
|
3414
3449
|
"vertical-compact": !1,
|
|
3415
3450
|
"use-css-transforms": "",
|
|
3416
3451
|
"use-percentages": !0
|
|
3417
3452
|
}, {
|
|
3418
3453
|
default: E(() => [
|
|
3419
|
-
(
|
|
3420
|
-
x:
|
|
3421
|
-
y:
|
|
3422
|
-
w:
|
|
3423
|
-
h:
|
|
3424
|
-
i:
|
|
3425
|
-
key:
|
|
3454
|
+
(v(!0), U(x, null, oe(r.value, (n) => (v(), z(dt(Pt), {
|
|
3455
|
+
x: n.x,
|
|
3456
|
+
y: n.y,
|
|
3457
|
+
w: n.w,
|
|
3458
|
+
h: n.h,
|
|
3459
|
+
i: n.i,
|
|
3460
|
+
key: n.i,
|
|
3426
3461
|
dragAllowFrom: "span",
|
|
3427
3462
|
class: Ye({ item: !0, border: t.value }),
|
|
3428
|
-
style:
|
|
3463
|
+
style: Se({ padding: y.config.itemPadding || "0" })
|
|
3429
3464
|
}, {
|
|
3430
3465
|
default: E(() => [
|
|
3431
|
-
|
|
3432
|
-
|
|
3466
|
+
ee("div", Ra, [
|
|
3467
|
+
n.config.component ? (v(), z(Xt(n.config.component), Qt({
|
|
3433
3468
|
key: 0,
|
|
3434
|
-
itemKey:
|
|
3469
|
+
itemKey: n.config.key,
|
|
3435
3470
|
ref_for: !0
|
|
3436
|
-
},
|
|
3471
|
+
}, n.config.props || {}), null, 16, ["itemKey"])) : (v(), U("span", Ia, "Layout: " + N(n.i), 1))
|
|
3437
3472
|
])
|
|
3438
3473
|
]),
|
|
3439
3474
|
_: 2
|
|
@@ -3443,57 +3478,57 @@ const Ra = { class: "item-content" }, Ia = {
|
|
|
3443
3478
|
}, 8, ["layout", "is-draggable", "is-resizable"]));
|
|
3444
3479
|
}
|
|
3445
3480
|
});
|
|
3446
|
-
const Aa = /* @__PURE__ */
|
|
3447
|
-
if (Object.keys(
|
|
3448
|
-
return
|
|
3481
|
+
const Aa = /* @__PURE__ */ $e(ja, [["__scopeId", "data-v-668f099b"]]), Me = {}, za = async (e) => {
|
|
3482
|
+
if (Object.keys(Me).length > 0)
|
|
3483
|
+
return Me[e] ? (await Me[e]()).default : (await Me.default()).default;
|
|
3449
3484
|
const l = /* @__PURE__ */ Object.assign({
|
|
3450
3485
|
"/src/components/gridPage/config/default/default.ts": () => import("../default-4aafb7d0.js")
|
|
3451
|
-
}),
|
|
3452
|
-
Object.assign(l,
|
|
3486
|
+
}), r = hl("gridPage");
|
|
3487
|
+
Object.assign(l, r);
|
|
3453
3488
|
for (const t in l) {
|
|
3454
|
-
const
|
|
3455
|
-
|
|
3489
|
+
const y = t.split("/"), d = y[y.length - 1].replace(".ts", "");
|
|
3490
|
+
Me[d] = l[t];
|
|
3456
3491
|
}
|
|
3457
|
-
return
|
|
3492
|
+
return Me[e] ? (await Me[e]()).default : (await Me.default()).default;
|
|
3458
3493
|
}, Ba = (e) => {
|
|
3459
3494
|
if (e.items)
|
|
3460
3495
|
for (const l of e.items)
|
|
3461
3496
|
l.component && (l.component = Zt(l.component));
|
|
3462
3497
|
}, Va = async (e) => {
|
|
3463
|
-
const
|
|
3464
|
-
return Ba(
|
|
3465
|
-
}, Ua = { class: "grid-page-content" }, Bn = /* @__PURE__ */
|
|
3498
|
+
const r = (await za(e))({ menu_flag: e });
|
|
3499
|
+
return Ba(r), { config: r };
|
|
3500
|
+
}, Ua = { class: "grid-page-content" }, Bn = /* @__PURE__ */ be({
|
|
3466
3501
|
__name: "gridPage",
|
|
3467
3502
|
setup(e) {
|
|
3468
|
-
const l = bl(),
|
|
3469
|
-
|
|
3503
|
+
const l = bl(), r = A(null), t = A({}), y = zt(), d = A(""), n = l.path.split("/");
|
|
3504
|
+
d.value = n[n.length - 1], Ve(yl, {
|
|
3470
3505
|
context: t,
|
|
3471
|
-
eventBus:
|
|
3472
|
-
}),
|
|
3473
|
-
|
|
3506
|
+
eventBus: y
|
|
3507
|
+
}), Oe(async () => {
|
|
3508
|
+
r.value = (await Va(d.value)).config, r.value.onMounted && await r.value.onMounted(t.value, y);
|
|
3474
3509
|
}), Pe(() => {
|
|
3475
|
-
|
|
3510
|
+
r.value.onUnmounted && r.value.onUnmounted(t.value, y);
|
|
3476
3511
|
});
|
|
3477
|
-
const S =
|
|
3478
|
-
var
|
|
3479
|
-
if (((
|
|
3480
|
-
return
|
|
3481
|
-
}),
|
|
3482
|
-
var
|
|
3483
|
-
if (((
|
|
3484
|
-
return
|
|
3512
|
+
const S = me(() => {
|
|
3513
|
+
var M;
|
|
3514
|
+
if (((M = r.value) == null ? void 0 : M.minWidth) != null)
|
|
3515
|
+
return r.value.minWidth;
|
|
3516
|
+
}), $ = me(() => {
|
|
3517
|
+
var M;
|
|
3518
|
+
if (((M = r.value) == null ? void 0 : M.minHeight) != null)
|
|
3519
|
+
return r.value.minHeight;
|
|
3485
3520
|
});
|
|
3486
|
-
return (
|
|
3521
|
+
return (M, u) => (v(), z(_a, null, {
|
|
3487
3522
|
default: E(() => [
|
|
3488
|
-
|
|
3523
|
+
ee("div", {
|
|
3489
3524
|
class: "grid-page-wraper",
|
|
3490
|
-
style:
|
|
3525
|
+
style: Se({ minWidth: S.value, minHeight: $.value })
|
|
3491
3526
|
}, [
|
|
3492
|
-
|
|
3493
|
-
|
|
3527
|
+
ee("div", Ua, [
|
|
3528
|
+
r.value ? (v(), z(Aa, {
|
|
3494
3529
|
key: 0,
|
|
3495
|
-
config:
|
|
3496
|
-
}, null, 8, ["config"])) :
|
|
3530
|
+
config: r.value
|
|
3531
|
+
}, null, 8, ["config"])) : Z("", !0)
|
|
3497
3532
|
])
|
|
3498
3533
|
], 4)
|
|
3499
3534
|
]),
|