liyu-pc-base 1.0.963 → 1.0.968
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 +8 -8
- package/dist/components/remotePages/index.js +1 -1
- package/dist/{components-CXLev0pR.js → components-SsmScdE6.js} +1648 -859
- package/dist/{dbViewConfig-Br4ajLHy.js → dbViewConfig-COtDMORL.js} +1 -1
- package/dist/{detailTablePro-ChuuGoMY.js → detailTablePro-eCf5A9R0.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{remotePages-BnSwpcvU.js → remotePages-3KQLpn_9.js} +1285 -1648
- package/dist/{tablePageHost-DzTPP1M0.js → tablePageHost-i531IwdK.js} +2 -2
- package/package.json +1 -1
|
@@ -5,32 +5,32 @@ import "./RemoteSelect-bjsCKGfS.js";
|
|
|
5
5
|
import { t as f } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
6
|
import { t as p } from "./lodash-CMVwnWxD.js";
|
|
7
7
|
import { getApiData as m } from "./api/api-model.js";
|
|
8
|
-
import {
|
|
8
|
+
import { L as h, O as g, P as _, X as v, f as y, r as b } from "./function-DnoIHo24.js";
|
|
9
9
|
import "./RemoteModal-Ca1pTaYZ.js";
|
|
10
10
|
import "./RemoteSelectPro-BB45o7ie.js";
|
|
11
11
|
import "./JsonStr-JwOPdAYW.js";
|
|
12
12
|
import "./JsonObj-CmylW4Or.js";
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
13
|
+
import { t as x } from "./modal-tools-CZkYEwEr.js";
|
|
14
|
+
import { t as S } from "./FieldRender-D3i6PJTs.js";
|
|
15
15
|
import "./TinymceEditor-RuTN5CLa.js";
|
|
16
|
-
import { t as
|
|
16
|
+
import { t as ee } from "./FieldRender2-DRLebQrC.js";
|
|
17
17
|
import "./SearchRender-DoTo-LB-.js";
|
|
18
18
|
import "./FormRender3-C9K5aHGs.js";
|
|
19
|
-
import { C
|
|
20
|
-
import { o as
|
|
21
|
-
import { i as
|
|
22
|
-
import { gridPageStateSymbol as
|
|
23
|
-
import { Fragment as
|
|
24
|
-
import { Modal as
|
|
25
|
-
import
|
|
26
|
-
import { CaretRightOutlined as
|
|
27
|
-
import { useRoute as
|
|
28
|
-
import { useI18n as
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
19
|
+
import { C, S as w, _ as te, b as ne, t as re, v as ie, x as ae, y as oe } from "./tablePro-BxL8FgEp.js";
|
|
20
|
+
import { o as se, r as T } from "./remotePages-3KQLpn_9.js";
|
|
21
|
+
import { C as ce, S as E, _ as D, a as O, b as k, c as le, d as A, f as ue, g as de, h as fe, i as pe, l as me, m as j, n as he, o as ge, p as _e, r as ve, s as ye, t as M, u as be, v as xe, w as Se, x as Ce, y as we } from "./tablePageHost-i531IwdK.js";
|
|
22
|
+
import { gridPageStateSymbol as Te } from "./components/gridPage/utils.js";
|
|
23
|
+
import { Fragment as N, KeepAlive as Ee, Transition as De, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as z, createVNode as B, defineComponent as V, getCurrentInstance as Oe, h as ke, inject as Ae, markRaw as je, mergeModels as H, mergeProps as Me, nextTick as Ne, normalizeClass as Pe, normalizeStyle as Fe, onActivated as Ie, onBeforeMount as Le, onBeforeUnmount as Re, onDeactivated as ze, onMounted as Be, onUnmounted as Ve, openBlock as U, provide as He, reactive as W, ref as G, renderList as K, renderSlot as Ue, resolveComponent as q, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as J, unref as Y, useModel as Ke, vShow as qe, watch as X, withCtx as Z, withDirectives as Je, withModifiers as Ye } from "vue";
|
|
24
|
+
import { Modal as Xe, message as Q } from "ant-design-vue";
|
|
25
|
+
import Ze from "moment";
|
|
26
|
+
import { CaretRightOutlined as Qe, CloseCircleOutlined as $e, CloseOutlined as et, DeleteOutlined as tt, EditOutlined as nt, ExclamationCircleOutlined as rt, LeftOutlined as it, MenuFoldOutlined as at, MenuUnfoldOutlined as ot, PlusOutlined as st, RightOutlined as ct, SettingOutlined as lt, StarFilled as ut, StarOutlined as dt } from "@ant-design/icons-vue";
|
|
27
|
+
import { useRoute as ft } from "vue-router";
|
|
28
|
+
import { useI18n as pt } from "vue-i18n";
|
|
29
|
+
import mt from "mitt";
|
|
30
|
+
import ht from "element-resize-detector";
|
|
31
|
+
import gt from "interactjs";
|
|
32
32
|
//#region src/components/FormRender/GeneralFilter/AddConditionModal/index.vue?vue&type=script&lang.ts
|
|
33
|
-
var
|
|
33
|
+
var _t = V({
|
|
34
34
|
name: "AddConditionModal",
|
|
35
35
|
props: {
|
|
36
36
|
open: {
|
|
@@ -95,10 +95,10 @@ var Je = z({
|
|
|
95
95
|
handleSubmit: i
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
99
|
-
function
|
|
98
|
+
}), vt = { style: { "font-size": "14px" } }, yt = { style: { color: "#7d8089" } };
|
|
99
|
+
function bt(e, t, n, r, i, a) {
|
|
100
100
|
let o = q("a-checkbox"), s = q("a-space"), c = q("a-tab-pane"), l = q("a-tabs"), u = q("a-modal");
|
|
101
|
-
return U(),
|
|
101
|
+
return U(), F(u, {
|
|
102
102
|
title: "添加过滤条件",
|
|
103
103
|
width: "800px",
|
|
104
104
|
open: e.open,
|
|
@@ -112,27 +112,27 @@ function Ze(e, t, n, r, i, a) {
|
|
|
112
112
|
e.$emit("cancel");
|
|
113
113
|
}
|
|
114
114
|
}, {
|
|
115
|
-
default: Z(() => [
|
|
115
|
+
default: Z(() => [B(l, {
|
|
116
116
|
activeKey: e.activeKey,
|
|
117
117
|
"onUpdate:activeKey": t[0] ||= (t) => e.activeKey = t
|
|
118
118
|
}, {
|
|
119
|
-
default: Z(() => [(U(!0),
|
|
119
|
+
default: Z(() => [(U(!0), L(N, null, K(e.tab_list, (e) => (U(), F(c, {
|
|
120
120
|
class: "my-card",
|
|
121
121
|
key: e.key,
|
|
122
122
|
tab: e.tab_name
|
|
123
123
|
}, {
|
|
124
|
-
default: Z(() => [(U(!0),
|
|
124
|
+
default: Z(() => [(U(!0), L(N, null, K(e.base_search_list, (e) => (U(), L("div", { key: e.name }, [R("div", vt, J(e.name), 1), B(s, {
|
|
125
125
|
wrap: "",
|
|
126
126
|
style: {
|
|
127
127
|
"padding-left": "10px",
|
|
128
128
|
"margin-bottom": "0"
|
|
129
129
|
}
|
|
130
130
|
}, {
|
|
131
|
-
default: Z(() => [(U(!0),
|
|
131
|
+
default: Z(() => [(U(!0), L(N, null, K(e.group, (e) => (U(), L("div", { key: e.field_name }, [B(o, {
|
|
132
132
|
checked: e.checked,
|
|
133
133
|
"onUpdate:checked": (t) => e.checked = t
|
|
134
134
|
}, {
|
|
135
|
-
default: Z(() => [
|
|
135
|
+
default: Z(() => [R("span", yt, J(e.label), 1)]),
|
|
136
136
|
_: 2
|
|
137
137
|
}, 1032, ["checked", "onUpdate:checked"])]))), 128))]),
|
|
138
138
|
_: 2
|
|
@@ -148,7 +148,7 @@ function Ze(e, t, n, r, i, a) {
|
|
|
148
148
|
"onOk"
|
|
149
149
|
]);
|
|
150
150
|
}
|
|
151
|
-
var
|
|
151
|
+
var xt = /*#__PURE__*/ f(_t, [["render", bt], ["__scopeId", "data-v-25d1dc13"]]), St = V({
|
|
152
152
|
name: "AddConditionGroupModal",
|
|
153
153
|
props: {
|
|
154
154
|
open: {
|
|
@@ -226,10 +226,10 @@ var Qe = /*#__PURE__*/ f(Je, [["render", Ze], ["__scopeId", "data-v-25d1dc13"]])
|
|
|
226
226
|
get_operator_list_selected: r
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
}),
|
|
230
|
-
function
|
|
229
|
+
}), Ct = { style: { "font-size": "14px" } }, wt = { style: { color: "#7d8089" } }, Tt = { style: { "font-size": "14px" } }, Et = { style: { color: "#7d8089" } };
|
|
230
|
+
function Dt(e, t, n, r, i, a) {
|
|
231
231
|
let o = q("a-checkbox"), s = q("a-space"), c = q("a-tab-pane"), l = q("a-tabs"), u = q("a-modal");
|
|
232
|
-
return U(),
|
|
232
|
+
return U(), F(u, {
|
|
233
233
|
title: "添加过滤条件组",
|
|
234
234
|
width: "800px",
|
|
235
235
|
open: e.open,
|
|
@@ -243,43 +243,43 @@ function it(e, t, n, r, i, a) {
|
|
|
243
243
|
e.$emit("cancel");
|
|
244
244
|
}
|
|
245
245
|
}, {
|
|
246
|
-
default: Z(() => [(U(!0),
|
|
246
|
+
default: Z(() => [(U(!0), L(N, null, K(e.tab_list, (e) => (U(), F(c, {
|
|
247
247
|
class: "my-card",
|
|
248
248
|
key: e.key,
|
|
249
249
|
tab: e.tab_name
|
|
250
250
|
}, {
|
|
251
|
-
default: Z(() => [(U(!0),
|
|
252
|
-
default: Z(() => [(U(!0),
|
|
251
|
+
default: Z(() => [(U(!0), L(N, null, K(e.base_search_list, (e) => (U(), L("div", { key: e.name }, [R("div", Ct, J(e.name), 1), B(s, { wrap: "" }, {
|
|
252
|
+
default: Z(() => [(U(!0), L(N, null, K(e.group, (e) => (U(), L("div", { key: e.field_name }, [B(o, {
|
|
253
253
|
checked: e.checked,
|
|
254
254
|
"onUpdate:checked": (t) => e.checked = t
|
|
255
255
|
}, {
|
|
256
|
-
default: Z(() => [
|
|
256
|
+
default: Z(() => [R("span", wt, J(e.label), 1)]),
|
|
257
257
|
_: 2
|
|
258
258
|
}, 1032, ["checked", "onUpdate:checked"])]))), 128))]),
|
|
259
259
|
_: 2
|
|
260
260
|
}, 1024)]))), 128))]),
|
|
261
261
|
_: 2
|
|
262
|
-
}, 1032, ["tab"]))), 128)),
|
|
262
|
+
}, 1032, ["tab"]))), 128)), B(l, {
|
|
263
263
|
activeKey: e.activeKey,
|
|
264
264
|
"onUpdate:activeKey": t[0] ||= (t) => e.activeKey = t
|
|
265
265
|
}, {
|
|
266
|
-
default: Z(() => [(U(!0),
|
|
266
|
+
default: Z(() => [(U(!0), L(N, null, K(e.tab_list, (e) => (U(), F(c, {
|
|
267
267
|
class: "my-card",
|
|
268
268
|
key: e.key,
|
|
269
269
|
tab: e.tab_name
|
|
270
270
|
}, {
|
|
271
|
-
default: Z(() => [(U(!0),
|
|
271
|
+
default: Z(() => [(U(!0), L(N, null, K(e.base_search_list, (e) => (U(), L("div", { key: e.name }, [R("div", Tt, J(e.name), 1), B(s, {
|
|
272
272
|
wrap: "",
|
|
273
273
|
style: {
|
|
274
274
|
"padding-left": "10px",
|
|
275
275
|
"margin-bottom": "0"
|
|
276
276
|
}
|
|
277
277
|
}, {
|
|
278
|
-
default: Z(() => [(U(!0),
|
|
278
|
+
default: Z(() => [(U(!0), L(N, null, K(e.group, (e) => (U(), L("div", { key: e.field_name }, [B(o, {
|
|
279
279
|
checked: e.checked,
|
|
280
280
|
"onUpdate:checked": (t) => e.checked = t
|
|
281
281
|
}, {
|
|
282
|
-
default: Z(() => [
|
|
282
|
+
default: Z(() => [R("span", Et, J(e.label), 1)]),
|
|
283
283
|
_: 2
|
|
284
284
|
}, 1032, ["checked", "onUpdate:checked"])]))), 128))]),
|
|
285
285
|
_: 2
|
|
@@ -295,7 +295,7 @@ function it(e, t, n, r, i, a) {
|
|
|
295
295
|
"onOk"
|
|
296
296
|
]);
|
|
297
297
|
}
|
|
298
|
-
var
|
|
298
|
+
var Ot = /*#__PURE__*/ f(St, [["render", Dt], ["__scopeId", "data-v-52b515e0"]]), kt = (e) => ({ options_eq: [
|
|
299
299
|
{
|
|
300
300
|
value: "上月",
|
|
301
301
|
label: "上月"
|
|
@@ -316,7 +316,7 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
316
316
|
value: "期初",
|
|
317
317
|
label: "期初"
|
|
318
318
|
}
|
|
319
|
-
] }),
|
|
319
|
+
] }), At = V({
|
|
320
320
|
name: "GeneralFilter",
|
|
321
321
|
props: {
|
|
322
322
|
base_search_condition_config_list: { type: Array },
|
|
@@ -347,14 +347,14 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
349
|
components: {
|
|
350
|
-
FieldRender2:
|
|
351
|
-
CloseOutlined:
|
|
352
|
-
LeftOutlined:
|
|
353
|
-
RightOutlined:
|
|
354
|
-
FieldRender:
|
|
355
|
-
AddConditionGroupModal:
|
|
356
|
-
AddConditionModal:
|
|
357
|
-
CloseCircleOutlined:
|
|
350
|
+
FieldRender2: ee,
|
|
351
|
+
CloseOutlined: et,
|
|
352
|
+
LeftOutlined: it,
|
|
353
|
+
RightOutlined: ct,
|
|
354
|
+
FieldRender: S,
|
|
355
|
+
AddConditionGroupModal: Ot,
|
|
356
|
+
AddConditionModal: xt,
|
|
357
|
+
CloseCircleOutlined: $e
|
|
358
358
|
},
|
|
359
359
|
emits: [
|
|
360
360
|
"search",
|
|
@@ -366,7 +366,7 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
366
366
|
"update:is_clear_model"
|
|
367
367
|
],
|
|
368
368
|
setup(e, { emit: t }) {
|
|
369
|
-
let n = G(e.is_massage_default), r = G({}), { t: i } =
|
|
369
|
+
let n = G(e.is_massage_default), r = G({}), { t: i } = pt(), { options_eq: a } = kt(i), o = G([]), s = {}, c = G(null), l = G([{
|
|
370
370
|
value: "yes",
|
|
371
371
|
label: i("is_or_not_blank_or_null.yes")
|
|
372
372
|
}, {
|
|
@@ -408,7 +408,7 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
408
408
|
return Array.isArray(t) && e.every((e) => Array.isArray(e));
|
|
409
409
|
}, f = null, p = (e, n, r) => {
|
|
410
410
|
let i = o.value[n][r.field_name];
|
|
411
|
-
if (
|
|
411
|
+
if (O(r).includes("_eq")) {
|
|
412
412
|
if (e == "_eq") {
|
|
413
413
|
o.value[n][r.field_name] = null, f = e, t("onChangeValue", { model: o.value });
|
|
414
414
|
return;
|
|
@@ -417,7 +417,7 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
if (
|
|
420
|
+
if (O(r).includes("not_blank_not_null")) {
|
|
421
421
|
if (e == "not_blank_not_null") {
|
|
422
422
|
o.value[n][r.field_name] = "是", f = e, t("onChangeValue", { model: o.value });
|
|
423
423
|
return;
|
|
@@ -426,7 +426,7 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
426
426
|
return;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
if (
|
|
429
|
+
if (O(r).includes("is_or_not_blank_or_null") || O(r).includes("is_or_not_null")) {
|
|
430
430
|
if (e == "is_or_not_blank_or_null" || e == "is_or_not_null") {
|
|
431
431
|
o.value[n][r.field_name] = null, f = e, t("onChangeValue", { model: o.value });
|
|
432
432
|
return;
|
|
@@ -439,7 +439,7 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
439
439
|
else if (u[e] == 1) {
|
|
440
440
|
if (i instanceof Array) {
|
|
441
441
|
let [e] = o.value[n][r.field_name];
|
|
442
|
-
|
|
442
|
+
_(e) ? o.value[n][r.field_name] = e : o.value[n][r.field_name] = null;
|
|
443
443
|
} else o.value[n][r.field_name] = i || null;
|
|
444
444
|
a.some((e) => e.value === o.value[n][r.field_name]) && (o.value[n][r.field_name] = null);
|
|
445
445
|
} else if (u[e] == 2) {
|
|
@@ -453,7 +453,7 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
453
453
|
a.some((e) => e.value === o.value[n][r.field_name][0]) && (o.value[n][r.field_name] = [null, null]);
|
|
454
454
|
} else o.value[n][r.field_name] = void 0;
|
|
455
455
|
f = e, t("onChangeValue", { model: o.value });
|
|
456
|
-
}, m = W({ open: !1 }),
|
|
456
|
+
}, m = W({ open: !1 }), h = () => {
|
|
457
457
|
m.open = !0;
|
|
458
458
|
}, v = (n) => {
|
|
459
459
|
e.default_search_condition_config_list.forEach((e, t) => {
|
|
@@ -483,9 +483,9 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
483
483
|
b.open = !1;
|
|
484
484
|
}, C = () => {
|
|
485
485
|
n.value = !1, console.log("condition_model_dict.value", o.value), t("search", { model: o.value });
|
|
486
|
-
},
|
|
486
|
+
}, w = (t = !1) => {
|
|
487
487
|
e.base_search_condition_config_list.length != 0 && e.default_search_condition_config_list?.forEach((n, r) => {
|
|
488
|
-
|
|
488
|
+
ne[r] = {}, o.value[r] || (o.value[r] = {}), e.base_search_condition_config_list.forEach((e) => {
|
|
489
489
|
e.group?.forEach((e) => {
|
|
490
490
|
n.forEach((n) => {
|
|
491
491
|
e.field_name == n.field_name && ((o.value[r][n.field_name] == null || t) && (u[n.operator] == 1 ? n.value === void 0 ? o.value[r][n.field_name] = null : o.value[r][n.field_name] = n.value : u[n.operator] == 2 ? n.value === void 0 ? o.value[r][n.field_name] = [null, null] : o.value[r][n.field_name] = n.value : u[n.operator] == 0 && (n.value === void 0 ? o.value[r][n.field_name] = [] : o.value[r][n.field_name] = n.value)), Object.assign(n, {
|
|
@@ -496,12 +496,12 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
496
496
|
});
|
|
497
497
|
});
|
|
498
498
|
});
|
|
499
|
-
},
|
|
500
|
-
|
|
501
|
-
},
|
|
502
|
-
|
|
499
|
+
}, te = () => {
|
|
500
|
+
w(!0);
|
|
501
|
+
}, ne = W({}), re = (e, t) => {
|
|
502
|
+
ne[e][t.field_name] = !0;
|
|
503
503
|
}, ie = (e, t) => {
|
|
504
|
-
|
|
504
|
+
ne[e][t.field_name] = !1;
|
|
505
505
|
}, ae = (n, r) => {
|
|
506
506
|
let i = [];
|
|
507
507
|
e.default_search_condition_config_list.forEach((e, t) => {
|
|
@@ -513,17 +513,17 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
513
513
|
}), t.length > 0 && i.push(t);
|
|
514
514
|
}
|
|
515
515
|
}), t("update_default_search_condition_config_list", { new_list: i });
|
|
516
|
-
},
|
|
516
|
+
}, oe = (e, n) => {
|
|
517
517
|
o.value[e][n] instanceof Array ? o.value[e][n].length = 0 : o.value[e][n] = null, t("onChangeValue", { model: o.value }), t("delSearch", { model: JSON.parse(JSON.stringify(o.value)) });
|
|
518
|
-
},
|
|
518
|
+
}, se = (n, r, i, a) => {
|
|
519
519
|
if (n instanceof Array && n.length > 0) {
|
|
520
520
|
let s = n[n.length - 1], c = null;
|
|
521
521
|
if (e.base_search_condition_config_list.forEach((e) => {
|
|
522
522
|
e.group.forEach((e) => {
|
|
523
523
|
if (e.field_name === s) {
|
|
524
524
|
if (c = JSON.parse(JSON.stringify(e)), c.default_operator) c.operator = c.default_operator;
|
|
525
|
-
else if (
|
|
526
|
-
let [e] =
|
|
525
|
+
else if (O(c).length > 0) {
|
|
526
|
+
let [e] = O(c);
|
|
527
527
|
c.operator = e;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
@@ -536,9 +536,9 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
536
536
|
});
|
|
537
537
|
}), t("update_default_search_condition_config_list", { new_list: n });
|
|
538
538
|
}
|
|
539
|
-
|
|
539
|
+
w();
|
|
540
540
|
}
|
|
541
|
-
},
|
|
541
|
+
}, T = P(() => {
|
|
542
542
|
let t = {};
|
|
543
543
|
return e.default_search_condition_config_list.forEach((n, r) => {
|
|
544
544
|
t[r] = [];
|
|
@@ -555,14 +555,14 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
555
555
|
t[r].push(a);
|
|
556
556
|
});
|
|
557
557
|
}), t;
|
|
558
|
-
}),
|
|
558
|
+
}), ce = (e, t) => {
|
|
559
559
|
let n = o.value[e]?.[t.field_name];
|
|
560
560
|
if (n instanceof Array) {
|
|
561
561
|
let [e] = n;
|
|
562
|
-
if (
|
|
563
|
-
} else if (
|
|
562
|
+
if (_(e)) return !0;
|
|
563
|
+
} else if (_(n)) return !0;
|
|
564
564
|
return !1;
|
|
565
|
-
},
|
|
565
|
+
}, E = (e, t) => {
|
|
566
566
|
let n = [], a = o.value[e]?.[t.field_name];
|
|
567
567
|
if (t.operator === "is_or_not_blank_or_null" || t.operator === "is_or_not_null") return i(a === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
|
|
568
568
|
if (t.operator === "_eq") {
|
|
@@ -573,15 +573,15 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
573
573
|
"昨日",
|
|
574
574
|
"期初"
|
|
575
575
|
].includes(a)) return i(a);
|
|
576
|
-
} else if (r.value[t.field_name] != null) return `${
|
|
576
|
+
} else if (r.value[t.field_name] != null) return `${g(t.format, t.operator)} ${r.value[t.field_name]}`;
|
|
577
577
|
else if (a instanceof Array && t.field_name_list instanceof Array) {
|
|
578
578
|
let e;
|
|
579
|
-
return t.field_name_list && (e = a instanceof Array ? a.join(",") : a), `${
|
|
579
|
+
return t.field_name_list && (e = a instanceof Array ? a.join(",") : a), `${g(t.format, t.operator)} ${e}`;
|
|
580
580
|
} else if (a instanceof Array && t.options instanceof Array) return a.forEach((e) => {
|
|
581
581
|
t.options.forEach((t) => {
|
|
582
582
|
e == t.value && n.push(t.label);
|
|
583
583
|
});
|
|
584
|
-
}), `${
|
|
584
|
+
}), `${g(t.format, t.operator)} ${n.join(",")}`;
|
|
585
585
|
else {
|
|
586
586
|
let e;
|
|
587
587
|
if (t.options) t.options.forEach((t) => {
|
|
@@ -590,15 +590,15 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
590
590
|
else if (t.type == "monthpicker" && t.dateFormat) if (a instanceof Array) {
|
|
591
591
|
let n = [];
|
|
592
592
|
a.forEach((e) => {
|
|
593
|
-
e ? n.push(
|
|
593
|
+
e ? n.push(Ze(e).format(t.dateFormat)) : n.push(e);
|
|
594
594
|
}), e = n.join(",");
|
|
595
|
-
} else e =
|
|
595
|
+
} else e = Ze(a).format(t.dateFormat);
|
|
596
596
|
else e = a;
|
|
597
|
-
return `${
|
|
597
|
+
return `${g(t.format, t.operator)} ${e}`;
|
|
598
598
|
}
|
|
599
|
-
},
|
|
599
|
+
}, D = () => {
|
|
600
600
|
t("onShowSearchRender");
|
|
601
|
-
},
|
|
601
|
+
}, O = (e) => e.operator_list_selected ? e.operator_list_selected : e.operator_list ? e.operator_list : [];
|
|
602
602
|
return X(() => o.value, () => {
|
|
603
603
|
t("onChangeValue", { model: o.value });
|
|
604
604
|
}, { deep: !0 }), X(() => e.default_search_condition_config_list, () => {
|
|
@@ -606,24 +606,24 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
606
606
|
t("update_default_search_condition_config_list", { new_list: c.value });
|
|
607
607
|
return;
|
|
608
608
|
}
|
|
609
|
-
|
|
609
|
+
w();
|
|
610
610
|
}, { deep: !0 }), X(() => e.base_search_condition_config_list, () => {
|
|
611
|
-
|
|
611
|
+
w();
|
|
612
612
|
}, { deep: !0 }), X(() => e.is_clear_model, () => {
|
|
613
|
-
e.is_clear_model && (o.value = {},
|
|
614
|
-
}),
|
|
615
|
-
|
|
616
|
-
}),
|
|
617
|
-
e.eventBus && e.eventBus.off("filterChange",
|
|
613
|
+
e.is_clear_model && (o.value = {}, w(), t("update:is_clear_model", !1));
|
|
614
|
+
}), Be(() => {
|
|
615
|
+
w(), e.eventBus && e.eventBus.on("filterChange", te);
|
|
616
|
+
}), Ve(() => {
|
|
617
|
+
e.eventBus && e.eventBus.off("filterChange", te);
|
|
618
618
|
}), {
|
|
619
619
|
props: e,
|
|
620
620
|
t: i,
|
|
621
621
|
isShowForm: n,
|
|
622
622
|
labelModel: r,
|
|
623
|
-
get_operator_type_map:
|
|
623
|
+
get_operator_type_map: g,
|
|
624
624
|
condition_model_dict: o,
|
|
625
625
|
addConditionModal: m,
|
|
626
|
-
handleAddConditions:
|
|
626
|
+
handleAddConditions: h,
|
|
627
627
|
handleAddConditionOk: v,
|
|
628
628
|
handleAddConditionCancel: y,
|
|
629
629
|
onChangeOperator: p,
|
|
@@ -633,77 +633,77 @@ var at = /*#__PURE__*/ f($e, [["render", it], ["__scopeId", "data-v-52b515e0"]])
|
|
|
633
633
|
handleAddGroupConditionOK: S,
|
|
634
634
|
handleAddGroupConditionCancel: ee,
|
|
635
635
|
validateInfos: s,
|
|
636
|
-
deleteBtnDict:
|
|
637
|
-
handleMouseEnter:
|
|
636
|
+
deleteBtnDict: ne,
|
|
637
|
+
handleMouseEnter: re,
|
|
638
638
|
handleMouseLeave: ie,
|
|
639
639
|
handleDeleteFormItem: ae,
|
|
640
|
-
handleDelSearch:
|
|
641
|
-
searchItemOptionsDict:
|
|
642
|
-
onChangeSearchItem:
|
|
643
|
-
transferValueFunc:
|
|
644
|
-
isShowSearchTag:
|
|
645
|
-
handleShowSearchRender:
|
|
640
|
+
handleDelSearch: oe,
|
|
641
|
+
searchItemOptionsDict: T,
|
|
642
|
+
onChangeSearchItem: se,
|
|
643
|
+
transferValueFunc: E,
|
|
644
|
+
isShowSearchTag: ce,
|
|
645
|
+
handleShowSearchRender: D,
|
|
646
646
|
options_eq: a,
|
|
647
|
-
get_operator_list_selected:
|
|
647
|
+
get_operator_list_selected: O,
|
|
648
648
|
is_or_not_blank_or_null_options: l
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
}),
|
|
651
|
+
}), jt = { class: "expand-btn" }, Mt = {
|
|
652
652
|
key: 1,
|
|
653
653
|
class: "card"
|
|
654
|
-
},
|
|
654
|
+
}, Nt = {
|
|
655
655
|
key: 0,
|
|
656
656
|
class: "condition-group"
|
|
657
|
-
},
|
|
657
|
+
}, Pt = {
|
|
658
658
|
key: 0,
|
|
659
659
|
style: {
|
|
660
660
|
width: "315px",
|
|
661
661
|
height: "40px"
|
|
662
662
|
}
|
|
663
|
-
},
|
|
663
|
+
}, Ft = {
|
|
664
664
|
key: 1,
|
|
665
665
|
class: "close-icon"
|
|
666
|
-
},
|
|
666
|
+
}, It = {
|
|
667
667
|
key: 2,
|
|
668
668
|
class: "search-bar"
|
|
669
669
|
};
|
|
670
|
-
function
|
|
670
|
+
function Lt(e, t, n, r, i, a) {
|
|
671
671
|
let o = q("a-button"), s = q("a-space"), c = q("a-tag"), l = q("close-outlined"), u = q("a-cascader"), d = q("a-tooltip"), f = q("a-select-option"), p = q("a-select"), m = q("field-render-2"), h = q("a-flex"), g = q("close-circle-outlined"), _ = q("a-input-group"), v = q("a-space-compact"), y = q("a-divider"), b = q("add-condition-modal"), x = q("add-condition-group-modal");
|
|
672
|
-
return U(),
|
|
673
|
-
e.is_massage_default ?
|
|
674
|
-
default: Z(() => [e.is_show_normal_search ? (U(),
|
|
672
|
+
return U(), L(N, null, [
|
|
673
|
+
e.is_massage_default ? I("", !0) : (U(), F(s, { key: 0 }, {
|
|
674
|
+
default: Z(() => [e.is_show_normal_search ? (U(), F(o, {
|
|
675
675
|
key: 0,
|
|
676
676
|
type: "link",
|
|
677
677
|
onClick: e.handleShowSearchRender
|
|
678
678
|
}, {
|
|
679
|
-
default: Z(() => [
|
|
679
|
+
default: Z(() => [z(J(e.$t("普通")), 1)]),
|
|
680
680
|
_: 1
|
|
681
|
-
}, 8, ["onClick"])) :
|
|
681
|
+
}, 8, ["onClick"])) : I("", !0), e.isShowForm ? (U(), F(o, {
|
|
682
682
|
key: 2,
|
|
683
683
|
type: "link",
|
|
684
684
|
onClick: t[1] ||= () => {
|
|
685
685
|
e.isShowForm = !1, e.$emit("resize");
|
|
686
686
|
}
|
|
687
687
|
}, {
|
|
688
|
-
default: Z(() => [
|
|
688
|
+
default: Z(() => [z(J(e.$t("隐藏")), 1)]),
|
|
689
689
|
_: 1
|
|
690
|
-
})) : (U(),
|
|
690
|
+
})) : (U(), F(o, {
|
|
691
691
|
key: 1,
|
|
692
692
|
type: "link",
|
|
693
693
|
onClick: t[0] ||= () => {
|
|
694
694
|
e.isShowForm = !0, e.$emit("resize");
|
|
695
695
|
}
|
|
696
696
|
}, {
|
|
697
|
-
default: Z(() => [
|
|
697
|
+
default: Z(() => [R("span", jt, J(e.$t("展开")), 1)]),
|
|
698
698
|
_: 1
|
|
699
699
|
}))]),
|
|
700
700
|
_: 1
|
|
701
701
|
})),
|
|
702
|
-
|
|
703
|
-
default: Z(() => [
|
|
702
|
+
Je(R("span", null, [(U(!0), L(N, null, K(e.default_search_condition_config_list, (t, n) => (U(), L("span", { key: n }, [B(c, null, {
|
|
703
|
+
default: Z(() => [z(J(e.$t("条件组")) + J(n + 1) + ":", 1)]),
|
|
704
704
|
_: 2
|
|
705
|
-
}, 1024), (U(!0),
|
|
706
|
-
default: Z(() => [
|
|
705
|
+
}, 1024), (U(!0), L(N, null, K(t, (t) => (U(), L("span", { key: t.field_name }, [Je(B(c, { color: "green" }, {
|
|
706
|
+
default: Z(() => [z(J(t.label) + ": " + J(e.transferValueFunc(n, t)) + " ", 1), B(l, {
|
|
707
707
|
style: {
|
|
708
708
|
cursor: "pointer",
|
|
709
709
|
"margin-left": "5px"
|
|
@@ -711,25 +711,25 @@ function mt(e, t, n, r, i, a) {
|
|
|
711
711
|
onClick: (r) => e.handleDelSearch(n, t.field_name)
|
|
712
712
|
}, null, 8, ["onClick"])]),
|
|
713
713
|
_: 2
|
|
714
|
-
}, 1536), [[
|
|
715
|
-
e.delayShow || e.isShowForm ?
|
|
716
|
-
e.default_search_condition_config_list.length > 1 ? (U(),
|
|
717
|
-
|
|
714
|
+
}, 1536), [[qe, e.isShowSearchTag(n, t)]])]))), 128))]))), 128))], 512), [[qe, !e.isShowForm]]),
|
|
715
|
+
e.delayShow || e.isShowForm ? Je((U(), L("div", Mt, [(U(!0), L(N, null, K(e.default_search_condition_config_list, (n, r) => (U(), L("div", { key: r }, [
|
|
716
|
+
e.default_search_condition_config_list.length > 1 ? (U(), L("div", Nt, J(e.$t("条件组")) + " " + J(r + 1), 1)) : I("", !0),
|
|
717
|
+
B(s, {
|
|
718
718
|
wrap: !0,
|
|
719
719
|
align: "center",
|
|
720
720
|
size: 0
|
|
721
721
|
}, {
|
|
722
|
-
default: Z(() => [(U(!0),
|
|
722
|
+
default: Z(() => [(U(!0), L(N, null, K(n, (n, i) => (U(), F(v, {
|
|
723
723
|
block: "",
|
|
724
724
|
key: n.field_name,
|
|
725
725
|
size: "middle",
|
|
726
726
|
onMouseenter: (t) => e.handleMouseEnter(r, n),
|
|
727
727
|
onMouseleave: (t) => e.handleMouseLeave(r, n)
|
|
728
728
|
}, {
|
|
729
|
-
default: Z(() => [
|
|
729
|
+
default: Z(() => [B(_, { compact: "" }, {
|
|
730
730
|
default: Z(() => [
|
|
731
|
-
|
|
732
|
-
default: Z(() => [
|
|
731
|
+
B(d, { title: n.label }, {
|
|
732
|
+
default: Z(() => [B(u, {
|
|
733
733
|
value: n.label,
|
|
734
734
|
style: { width: "125px" },
|
|
735
735
|
options: e.searchItemOptionsDict[r],
|
|
@@ -745,8 +745,8 @@ function mt(e, t, n, r, i, a) {
|
|
|
745
745
|
])]),
|
|
746
746
|
_: 2
|
|
747
747
|
}, 1032, ["title"]),
|
|
748
|
-
|
|
749
|
-
default: Z(() => [e.get_operator_list_selected(n).length > 0 ? (U(),
|
|
748
|
+
B(d, { title: e.get_operator_type_map(n.format, n.operator) }, {
|
|
749
|
+
default: Z(() => [e.get_operator_list_selected(n).length > 0 ? (U(), F(p, {
|
|
750
750
|
key: 0,
|
|
751
751
|
dropdownMatchSelectWidth: !1,
|
|
752
752
|
value: n.operator,
|
|
@@ -754,11 +754,11 @@ function mt(e, t, n, r, i, a) {
|
|
|
754
754
|
onChange: (t) => e.onChangeOperator(t, r, n),
|
|
755
755
|
style: { width: "100px" }
|
|
756
756
|
}, {
|
|
757
|
-
default: Z(() => [(U(!0),
|
|
757
|
+
default: Z(() => [(U(!0), L(N, null, K(e.get_operator_list_selected(n), (t) => (U(), F(f, {
|
|
758
758
|
value: t,
|
|
759
759
|
key: t
|
|
760
760
|
}, {
|
|
761
|
-
default: Z(() => [
|
|
761
|
+
default: Z(() => [z(J(e.get_operator_type_map(n.format, t)), 1)]),
|
|
762
762
|
_: 2
|
|
763
763
|
}, 1032, ["value"]))), 128))]),
|
|
764
764
|
_: 2
|
|
@@ -766,10 +766,10 @@ function mt(e, t, n, r, i, a) {
|
|
|
766
766
|
"value",
|
|
767
767
|
"onUpdate:value",
|
|
768
768
|
"onChange"
|
|
769
|
-
])) :
|
|
769
|
+
])) : I("", !0)]),
|
|
770
770
|
_: 2
|
|
771
771
|
}, 1032, ["title"]),
|
|
772
|
-
e.condition_model_dict && e.condition_model_dict[r] ? (U(),
|
|
772
|
+
e.condition_model_dict && e.condition_model_dict[r] ? (U(), L("span", Pt, [["is_or_not_blank_or_null", "is_or_not_null"].includes(n.operator) ? (U(), F(m, {
|
|
773
773
|
key: 0,
|
|
774
774
|
is_show_label: !1,
|
|
775
775
|
label: e.labelModel[n.field_name],
|
|
@@ -796,7 +796,7 @@ function mt(e, t, n, r, i, a) {
|
|
|
796
796
|
"formModel",
|
|
797
797
|
"options",
|
|
798
798
|
"validateInfos"
|
|
799
|
-
])) : ["input"].includes(n.format) ? (U(),
|
|
799
|
+
])) : ["input"].includes(n.format) ? (U(), L(N, { key: 1 }, [n.operator === "between" || n.operator === "notbetween" ? (U(), L(N, { key: 0 }, [n.type === "datepicker" ? (U(), F(m, {
|
|
800
800
|
key: 0,
|
|
801
801
|
is_show_label: !1,
|
|
802
802
|
label: e.labelModel[n.field_name],
|
|
@@ -820,7 +820,7 @@ function mt(e, t, n, r, i, a) {
|
|
|
820
820
|
"formModel",
|
|
821
821
|
"options",
|
|
822
822
|
"validateInfos"
|
|
823
|
-
])) : n.type === "monthpicker" ? (U(),
|
|
823
|
+
])) : n.type === "monthpicker" ? (U(), F(m, {
|
|
824
824
|
key: 1,
|
|
825
825
|
is_show_label: !1,
|
|
826
826
|
label: e.labelModel[n.field_name],
|
|
@@ -844,7 +844,7 @@ function mt(e, t, n, r, i, a) {
|
|
|
844
844
|
"formModel",
|
|
845
845
|
"options",
|
|
846
846
|
"validateInfos"
|
|
847
|
-
])) : n.type === "timepicker" ? (U(),
|
|
847
|
+
])) : n.type === "timepicker" ? (U(), F(m, {
|
|
848
848
|
key: 2,
|
|
849
849
|
is_show_label: !1,
|
|
850
850
|
label: e.labelModel[n.field_name],
|
|
@@ -868,9 +868,9 @@ function mt(e, t, n, r, i, a) {
|
|
|
868
868
|
"formModel",
|
|
869
869
|
"options",
|
|
870
870
|
"validateInfos"
|
|
871
|
-
])) : (U(),
|
|
871
|
+
])) : (U(), F(h, { key: 3 }, {
|
|
872
872
|
default: Z(() => [
|
|
873
|
-
|
|
873
|
+
B(m, {
|
|
874
874
|
is_show_label: !1,
|
|
875
875
|
label: e.labelModel[n.field_name],
|
|
876
876
|
"onUpdate:label": (t) => e.labelModel[n.field_name] = t,
|
|
@@ -890,8 +890,8 @@ function mt(e, t, n, r, i, a) {
|
|
|
890
890
|
"options",
|
|
891
891
|
"validateInfos"
|
|
892
892
|
]),
|
|
893
|
-
t[2] ||=
|
|
894
|
-
|
|
893
|
+
t[2] ||= R("div", { class: "range" }, "~", -1),
|
|
894
|
+
B(m, {
|
|
895
895
|
is_show_label: !1,
|
|
896
896
|
label: e.labelModel[n.field_name],
|
|
897
897
|
"onUpdate:label": (t) => e.labelModel[n.field_name] = t,
|
|
@@ -913,7 +913,7 @@ function mt(e, t, n, r, i, a) {
|
|
|
913
913
|
])
|
|
914
914
|
]),
|
|
915
915
|
_: 2
|
|
916
|
-
}, 1024))], 64)) : n.operator === "_eq" ? (U(),
|
|
916
|
+
}, 1024))], 64)) : n.operator === "_eq" ? (U(), F(m, {
|
|
917
917
|
key: 1,
|
|
918
918
|
is_show_label: !1,
|
|
919
919
|
label: e.labelModel[n.field_name],
|
|
@@ -940,7 +940,7 @@ function mt(e, t, n, r, i, a) {
|
|
|
940
940
|
"formModel",
|
|
941
941
|
"options",
|
|
942
942
|
"validateInfos"
|
|
943
|
-
])) : n.type === "datepicker" || n.type === "monthpicker" || n.type === "timepicker" ? (U(),
|
|
943
|
+
])) : n.type === "datepicker" || n.type === "monthpicker" || n.type === "timepicker" ? (U(), F(m, {
|
|
944
944
|
key: 2,
|
|
945
945
|
is_show_label: !1,
|
|
946
946
|
label: e.labelModel[n.field_name],
|
|
@@ -963,7 +963,7 @@ function mt(e, t, n, r, i, a) {
|
|
|
963
963
|
"formModel",
|
|
964
964
|
"options",
|
|
965
965
|
"validateInfos"
|
|
966
|
-
])) : (U(),
|
|
966
|
+
])) : (U(), F(m, {
|
|
967
967
|
key: 3,
|
|
968
968
|
is_show_label: !1,
|
|
969
969
|
label: e.labelModel[n.field_name],
|
|
@@ -983,7 +983,7 @@ function mt(e, t, n, r, i, a) {
|
|
|
983
983
|
"formModel",
|
|
984
984
|
"options",
|
|
985
985
|
"validateInfos"
|
|
986
|
-
]))], 64)) : ["choices", "remote"].includes(n.format) ? (U(),
|
|
986
|
+
]))], 64)) : ["choices", "remote"].includes(n.format) ? (U(), L(N, { key: 2 }, [n.format === "choices" ? (U(), F(m, {
|
|
987
987
|
key: 0,
|
|
988
988
|
is_show_label: !1,
|
|
989
989
|
label: e.labelModel[n.field_name],
|
|
@@ -1003,7 +1003,7 @@ function mt(e, t, n, r, i, a) {
|
|
|
1003
1003
|
"formModel",
|
|
1004
1004
|
"options",
|
|
1005
1005
|
"validateInfos"
|
|
1006
|
-
])) : n.format === "remote" ? (U(),
|
|
1006
|
+
])) : n.format === "remote" ? (U(), F(m, {
|
|
1007
1007
|
key: 1,
|
|
1008
1008
|
is_show_label: !1,
|
|
1009
1009
|
label: e.labelModel[n.field_name],
|
|
@@ -1026,14 +1026,14 @@ function mt(e, t, n, r, i, a) {
|
|
|
1026
1026
|
"formModel",
|
|
1027
1027
|
"options",
|
|
1028
1028
|
"validateInfos"
|
|
1029
|
-
])) :
|
|
1030
|
-
e.deleteBtnDict && e.deleteBtnDict[r] ? (U(),
|
|
1029
|
+
])) : I("", !0)], 64)) : I("", !0)])) : I("", !0),
|
|
1030
|
+
e.deleteBtnDict && e.deleteBtnDict[r] ? (U(), L("span", Ft, [e.deleteBtnDict[r][n.field_name] && (e.default_search_condition_config_list[0].length > 1 || e.default_search_condition_config_list.length > 1) && !e.is_massage_default ? (U(), F(d, {
|
|
1031
1031
|
key: 0,
|
|
1032
1032
|
title: "删除此条件"
|
|
1033
1033
|
}, {
|
|
1034
|
-
default: Z(() => [
|
|
1034
|
+
default: Z(() => [B(g, { onClick: (t) => e.handleDeleteFormItem(r, n) }, null, 8, ["onClick"])]),
|
|
1035
1035
|
_: 2
|
|
1036
|
-
}, 1024)) :
|
|
1036
|
+
}, 1024)) : I("", !0)])) : I("", !0)
|
|
1037
1037
|
]),
|
|
1038
1038
|
_: 2
|
|
1039
1039
|
}, 1024)]),
|
|
@@ -1041,45 +1041,45 @@ function mt(e, t, n, r, i, a) {
|
|
|
1041
1041
|
}, 1032, ["onMouseenter", "onMouseleave"]))), 128))]),
|
|
1042
1042
|
_: 2
|
|
1043
1043
|
}, 1024),
|
|
1044
|
-
e.default_search_condition_config_list.length > 1 && r != e.default_search_condition_config_list.length - 1 ? (U(),
|
|
1044
|
+
e.default_search_condition_config_list.length > 1 && r != e.default_search_condition_config_list.length - 1 ? (U(), F(y, {
|
|
1045
1045
|
key: 1,
|
|
1046
1046
|
class: "divider",
|
|
1047
1047
|
style: { margin: "0" }
|
|
1048
1048
|
}, {
|
|
1049
|
-
default: Z(() => t[3] ||= [
|
|
1049
|
+
default: Z(() => t[3] ||= [z(" 或 ")]),
|
|
1050
1050
|
_: 1
|
|
1051
|
-
})) :
|
|
1052
|
-
]))), 128))], 512)), [[
|
|
1053
|
-
e.isShowForm && !e.is_massage_default ? (U(),
|
|
1051
|
+
})) : I("", !0)
|
|
1052
|
+
]))), 128))], 512)), [[qe, e.isShowForm]]) : I("", !0),
|
|
1053
|
+
e.isShowForm && !e.is_massage_default ? (U(), L("div", It, [B(s, null, {
|
|
1054
1054
|
default: Z(() => [
|
|
1055
|
-
|
|
1055
|
+
B(o, {
|
|
1056
1056
|
size: "small",
|
|
1057
1057
|
type: "primary",
|
|
1058
1058
|
onClick: e.handleAddConditions
|
|
1059
1059
|
}, {
|
|
1060
|
-
default: Z(() => [
|
|
1060
|
+
default: Z(() => [z(J(e.$t("添加条件")), 1)]),
|
|
1061
1061
|
_: 1
|
|
1062
1062
|
}, 8, ["onClick"]),
|
|
1063
|
-
|
|
1063
|
+
B(o, {
|
|
1064
1064
|
size: "small",
|
|
1065
1065
|
type: "primary",
|
|
1066
1066
|
onClick: e.handleAddGroupCondition
|
|
1067
1067
|
}, {
|
|
1068
|
-
default: Z(() => [
|
|
1068
|
+
default: Z(() => [z(J(e.$t("添加条件组")), 1)]),
|
|
1069
1069
|
_: 1
|
|
1070
1070
|
}, 8, ["onClick"]),
|
|
1071
|
-
|
|
1071
|
+
B(o, {
|
|
1072
1072
|
size: "small",
|
|
1073
1073
|
type: "primary",
|
|
1074
1074
|
onClick: e.handleSearch
|
|
1075
1075
|
}, {
|
|
1076
|
-
default: Z(() => [
|
|
1076
|
+
default: Z(() => [z(J(e.$t("查询")), 1)]),
|
|
1077
1077
|
_: 1
|
|
1078
1078
|
}, 8, ["onClick"])
|
|
1079
1079
|
]),
|
|
1080
1080
|
_: 1
|
|
1081
|
-
})])) :
|
|
1082
|
-
e.addConditionModal.open ? (U(),
|
|
1081
|
+
})])) : I("", !0),
|
|
1082
|
+
e.addConditionModal.open ? (U(), F(b, {
|
|
1083
1083
|
key: 3,
|
|
1084
1084
|
open: e.addConditionModal.open,
|
|
1085
1085
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
@@ -1092,8 +1092,8 @@ function mt(e, t, n, r, i, a) {
|
|
|
1092
1092
|
"base_search_condition_config_list",
|
|
1093
1093
|
"onOk",
|
|
1094
1094
|
"onCancel"
|
|
1095
|
-
])) :
|
|
1096
|
-
e.addConditionGroupModal.open ? (U(),
|
|
1095
|
+
])) : I("", !0),
|
|
1096
|
+
e.addConditionGroupModal.open ? (U(), F(x, {
|
|
1097
1097
|
key: 4,
|
|
1098
1098
|
open: e.addConditionGroupModal.open,
|
|
1099
1099
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
@@ -1106,10 +1106,10 @@ function mt(e, t, n, r, i, a) {
|
|
|
1106
1106
|
"base_search_condition_config_list",
|
|
1107
1107
|
"onOk",
|
|
1108
1108
|
"onCancel"
|
|
1109
|
-
])) :
|
|
1109
|
+
])) : I("", !0)
|
|
1110
1110
|
], 64);
|
|
1111
1111
|
}
|
|
1112
|
-
var
|
|
1112
|
+
var Rt = /*#__PURE__*/ f(At, [["render", Lt], ["__scopeId", "data-v-d12629e4"]]), zt = V({
|
|
1113
1113
|
name: "FormRender",
|
|
1114
1114
|
components: {},
|
|
1115
1115
|
props: {
|
|
@@ -1163,9 +1163,9 @@ var ht = /*#__PURE__*/ f(st, [["render", mt], ["__scopeId", "data-v-d12629e4"]])
|
|
|
1163
1163
|
});
|
|
1164
1164
|
//#endregion
|
|
1165
1165
|
//#region src/components/FormRender/FormRender.vue
|
|
1166
|
-
function
|
|
1166
|
+
function Bt(e, t, n, r, i, a) {
|
|
1167
1167
|
let o = q("field-render"), s = q("a-col"), c = q("a-row"), l = q("a-form");
|
|
1168
|
-
return U(),
|
|
1168
|
+
return U(), F(l, {
|
|
1169
1169
|
ref: "form",
|
|
1170
1170
|
autocomplete: "off",
|
|
1171
1171
|
model: e.model,
|
|
@@ -1177,18 +1177,18 @@ function _t(e, t, n, r, i, a) {
|
|
|
1177
1177
|
labelAlign: e.form.settings.labelAlign,
|
|
1178
1178
|
scrollToFirstError: ""
|
|
1179
1179
|
}, {
|
|
1180
|
-
default: Z(() => [
|
|
1180
|
+
default: Z(() => [B(c, {
|
|
1181
1181
|
gutter: 20,
|
|
1182
1182
|
style: { margin: "0" }
|
|
1183
1183
|
}, {
|
|
1184
|
-
default: Z(() => [e.form.settings.col && e.form.settings.col.length > 0 ? (U(!0),
|
|
1184
|
+
default: Z(() => [e.form.settings.col && e.form.settings.col.length > 0 ? (U(!0), L(N, { key: 0 }, K(e.fieldList, (t) => (U(), F(s, {
|
|
1185
1185
|
xl: 24 / e.fieldList.length,
|
|
1186
1186
|
lg: 24,
|
|
1187
1187
|
md: 24,
|
|
1188
1188
|
sm: 24,
|
|
1189
1189
|
xs: 24
|
|
1190
1190
|
}, {
|
|
1191
|
-
default: Z(() => [(U(!0),
|
|
1191
|
+
default: Z(() => [(U(!0), L(N, null, K(e.form.fields.slice(t[0], t[1]), (t) => (U(), F(o, {
|
|
1192
1192
|
value: e.model[t.name],
|
|
1193
1193
|
"onUpdate:value": (n) => e.model[t.name] = n,
|
|
1194
1194
|
field: t,
|
|
@@ -1205,7 +1205,7 @@ function _t(e, t, n, r, i, a) {
|
|
|
1205
1205
|
"options"
|
|
1206
1206
|
]))), 128))]),
|
|
1207
1207
|
_: 2
|
|
1208
|
-
}, 1032, ["xl"]))), 256)) :
|
|
1208
|
+
}, 1032, ["xl"]))), 256)) : I("", !0), !e.form.settings.col || e.form.settings.col.length === 0 ? (U(), F(s, {
|
|
1209
1209
|
key: 1,
|
|
1210
1210
|
xl: 24,
|
|
1211
1211
|
lg: 24,
|
|
@@ -1213,7 +1213,7 @@ function _t(e, t, n, r, i, a) {
|
|
|
1213
1213
|
sm: 24,
|
|
1214
1214
|
xs: 24
|
|
1215
1215
|
}, {
|
|
1216
|
-
default: Z(() => [(U(!0),
|
|
1216
|
+
default: Z(() => [(U(!0), L(N, null, K(e.form.fields, (t) => (U(), L(N, null, [t.name2 ? (U(), F(o, {
|
|
1217
1217
|
value: e.model[t.name],
|
|
1218
1218
|
"onUpdate:value": (n) => e.model[t.name] = n,
|
|
1219
1219
|
label: e.model[t.name2],
|
|
@@ -1232,7 +1232,7 @@ function _t(e, t, n, r, i, a) {
|
|
|
1232
1232
|
"formModel",
|
|
1233
1233
|
"validateInfos",
|
|
1234
1234
|
"options"
|
|
1235
|
-
])) : (U(),
|
|
1235
|
+
])) : (U(), F(o, {
|
|
1236
1236
|
value: e.model[t.name],
|
|
1237
1237
|
"onUpdate:value": (n) => e.model[t.name] = n,
|
|
1238
1238
|
field: t,
|
|
@@ -1249,7 +1249,7 @@ function _t(e, t, n, r, i, a) {
|
|
|
1249
1249
|
"options"
|
|
1250
1250
|
]))], 64))), 256))]),
|
|
1251
1251
|
_: 1
|
|
1252
|
-
})) :
|
|
1252
|
+
})) : I("", !0)]),
|
|
1253
1253
|
_: 1
|
|
1254
1254
|
})]),
|
|
1255
1255
|
_: 1
|
|
@@ -1262,7 +1262,7 @@ function _t(e, t, n, r, i, a) {
|
|
|
1262
1262
|
"labelAlign"
|
|
1263
1263
|
]);
|
|
1264
1264
|
}
|
|
1265
|
-
var
|
|
1265
|
+
var Vt = /*#__PURE__*/ f(zt, [["render", Bt]]), Ht = V({
|
|
1266
1266
|
name: "FormRender2",
|
|
1267
1267
|
components: {},
|
|
1268
1268
|
props: {
|
|
@@ -1311,21 +1311,21 @@ var vt = /*#__PURE__*/ f(gt, [["render", _t]]), yt = z({
|
|
|
1311
1311
|
});
|
|
1312
1312
|
//#endregion
|
|
1313
1313
|
//#region src/components/FormRender/FormRender2.vue
|
|
1314
|
-
function
|
|
1314
|
+
function Ut(e, t, n, r, i, a) {
|
|
1315
1315
|
let o = q("field-render"), s = q("a-col"), c = q("a-row"), l = q("a-form");
|
|
1316
|
-
return U(),
|
|
1316
|
+
return U(), F(l, {
|
|
1317
1317
|
ref: "form",
|
|
1318
1318
|
autocomplete: "off",
|
|
1319
1319
|
model: e.model,
|
|
1320
1320
|
rules: e.form.rules,
|
|
1321
1321
|
scrollToFirstError: ""
|
|
1322
1322
|
}, {
|
|
1323
|
-
default: Z(() => [(U(!0),
|
|
1323
|
+
default: Z(() => [(U(!0), L(N, null, K(e.form.fieldList, (t) => (U(), F(c, {
|
|
1324
1324
|
gutter: "5",
|
|
1325
1325
|
type: "flex"
|
|
1326
1326
|
}, {
|
|
1327
|
-
default: Z(() => [(U(!0),
|
|
1328
|
-
default: Z(() => [(U(!0),
|
|
1327
|
+
default: Z(() => [(U(!0), L(N, null, K(t, (t) => (U(), F(s, { span: t.span }, {
|
|
1328
|
+
default: Z(() => [(U(!0), L(N, null, K(e.form.fields, (t) => (U(), L(N, null, [t.name2 ? (U(), F(o, {
|
|
1329
1329
|
value: e.model[t.name],
|
|
1330
1330
|
"onUpdate:value": (n) => e.model[t.name] = n,
|
|
1331
1331
|
label: e.model[t.name2],
|
|
@@ -1344,7 +1344,7 @@ function bt(e, t, n, r, i, a) {
|
|
|
1344
1344
|
"formModel",
|
|
1345
1345
|
"validateInfos",
|
|
1346
1346
|
"options"
|
|
1347
|
-
])) : (U(),
|
|
1347
|
+
])) : (U(), F(o, {
|
|
1348
1348
|
value: e.model[t.name],
|
|
1349
1349
|
"onUpdate:value": (n) => e.model[t.name] = n,
|
|
1350
1350
|
field: t,
|
|
@@ -1367,16 +1367,16 @@ function bt(e, t, n, r, i, a) {
|
|
|
1367
1367
|
_: 1
|
|
1368
1368
|
}, 8, ["model", "rules"]);
|
|
1369
1369
|
}
|
|
1370
|
-
var
|
|
1370
|
+
var Wt = /*#__PURE__*/ f(Ht, [["render", Ut]]), Gt = "customviewdatauser", Kt = "view_system_edit", qt = [{
|
|
1371
1371
|
title: "",
|
|
1372
1372
|
dataIndex: "name",
|
|
1373
1373
|
key: "name"
|
|
1374
|
-
}],
|
|
1374
|
+
}], Jt = V({
|
|
1375
1375
|
name: "ViewManage",
|
|
1376
1376
|
components: {
|
|
1377
|
-
CaretRightOutlined:
|
|
1378
|
-
PlusOutlined:
|
|
1379
|
-
SettingOutlined:
|
|
1377
|
+
CaretRightOutlined: Qe,
|
|
1378
|
+
PlusOutlined: st,
|
|
1379
|
+
SettingOutlined: lt
|
|
1380
1380
|
},
|
|
1381
1381
|
props: {
|
|
1382
1382
|
currentViewObj: {
|
|
@@ -1424,13 +1424,13 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1424
1424
|
},
|
|
1425
1425
|
emits: ["change"],
|
|
1426
1426
|
setup(e, { emit: n }) {
|
|
1427
|
-
let r = t(), a = i(), o = d(), l = s(), f = o.currentOrg, p = o.userid, h = G(o.CHECK_AUTH(
|
|
1427
|
+
let r = t(), a = i(), o = d(), l = s(), f = o.currentOrg, p = o.userid, h = G(o.CHECK_AUTH(Kt)), g = G([]), { t: _ } = pt(), v, y = P(() => {
|
|
1428
1428
|
let e = g.value.filter((e) => !!e.user_id && e.is_system).map((e) => e).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort), t = g.value.filter((e) => !!e.user_id && !e.is_system).map((e) => e).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort);
|
|
1429
1429
|
return e.concat(t);
|
|
1430
|
-
}),
|
|
1430
|
+
}), S = P(() => {
|
|
1431
1431
|
let e = g.value.filter((e) => !e.user_id && e.is_system).map((e) => e).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort), t = g.value.filter((e) => !e.user_id && !e.is_system).map((e) => e).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort);
|
|
1432
1432
|
return e.concat(t);
|
|
1433
|
-
}),
|
|
1433
|
+
}), ee = P(() => g.value.map((e) => e.name)), re = (t) => {
|
|
1434
1434
|
let n = [];
|
|
1435
1435
|
for (let r of t) {
|
|
1436
1436
|
let t = [];
|
|
@@ -1444,34 +1444,34 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1444
1444
|
if (e.searchConfigFields?.length) for (let t of e.searchConfigFields) r[t.name] = t;
|
|
1445
1445
|
for (let e of Object.keys(t)) r[e] && (n[e] = t[e]);
|
|
1446
1446
|
return n;
|
|
1447
|
-
},
|
|
1448
|
-
!e.countData && !
|
|
1447
|
+
}, ce = async ({ id: t, search_model: n, filter_map: r, sort_fields: i, group_condition: a, conditions: o, isShowGeneralFilter: s }) => new Promise((c) => {
|
|
1448
|
+
!e.countData && !v?.countData && (console.error("无count接口"), c(null));
|
|
1449
1449
|
let l = {
|
|
1450
1450
|
org_id: f.id,
|
|
1451
1451
|
...se(n || {}),
|
|
1452
1452
|
...r,
|
|
1453
1453
|
sort_fields: i
|
|
1454
1454
|
};
|
|
1455
|
-
s && (l.group_condition = a, l.conditions =
|
|
1455
|
+
s && (l.group_condition = a, l.conditions = re(o)), l.required_condition = ge();
|
|
1456
1456
|
let u = null, d = T(e.app_flag, e.modalType, null, _, {
|
|
1457
1457
|
use_store: !0,
|
|
1458
1458
|
to_i18n: !0,
|
|
1459
1459
|
enable_btn: !1
|
|
1460
1460
|
});
|
|
1461
|
-
d.get_db_alias && (u = d.get_db_alias()), l.db_alias = u, m(l,
|
|
1461
|
+
d.get_db_alias && (u = d.get_db_alias()), l.db_alias = u, m(l, v?.countData ? v.countData : e.countData).then((e) => {
|
|
1462
1462
|
g.value.forEach((n) => {
|
|
1463
1463
|
n.id == t && (n.num = e);
|
|
1464
1464
|
}), c(null);
|
|
1465
1465
|
}).catch((e) => {
|
|
1466
1466
|
console.log("error", e), Q.error(_("获取数据失败, 请刷新页面"));
|
|
1467
1467
|
});
|
|
1468
|
-
}),
|
|
1468
|
+
}), E = async (e) => {
|
|
1469
1469
|
for (let t of e) try {
|
|
1470
|
-
await
|
|
1470
|
+
await ce(t);
|
|
1471
1471
|
} catch (e) {
|
|
1472
1472
|
console.log("error", e), Q.error(_("获取数据失败, 请刷新页面"));
|
|
1473
1473
|
}
|
|
1474
|
-
},
|
|
1474
|
+
}, D = async () => {
|
|
1475
1475
|
let t = await m({
|
|
1476
1476
|
org_id: f.id,
|
|
1477
1477
|
user_id: p,
|
|
@@ -1481,15 +1481,15 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1481
1481
|
sort_fields: ["sort", "create_time"],
|
|
1482
1482
|
is_cache: !1
|
|
1483
1483
|
}, "/view/get_view_settings_for_user");
|
|
1484
|
-
if (
|
|
1484
|
+
if (v = T(e.app_flag, e.modalType, null, _, {
|
|
1485
1485
|
use_store: !0,
|
|
1486
1486
|
to_i18n: !0,
|
|
1487
1487
|
enable_btn: !1
|
|
1488
|
-
}),
|
|
1488
|
+
}), v?.isView === !1) {
|
|
1489
1489
|
window.location.hash = "", n("change", null, {}, !0, !0);
|
|
1490
1490
|
return;
|
|
1491
1491
|
}
|
|
1492
|
-
a.set_required_condition(e.modalType,
|
|
1492
|
+
a.set_required_condition(e.modalType, v.required_condition), g.value.length = 0;
|
|
1493
1493
|
let i = [], o = [];
|
|
1494
1494
|
t && t.system_user_datas && t.system_user_datas.length > 0 && (i = i.concat(t.system_user_datas)), t && t.system_public_datas && t.system_public_datas.length > 0 && (i = i.concat(t.system_public_datas)), t && t.public_datas && t.public_datas.length > 0 && (i = i.concat(t.public_datas)), t && t.user_datas && t.user_datas.length > 0 && (i = i.concat(t.user_datas)), i.forEach((e) => {
|
|
1495
1495
|
let t = null, n = null, r = null, i = null;
|
|
@@ -1509,15 +1509,15 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1509
1509
|
group_condition: r,
|
|
1510
1510
|
conditions: i
|
|
1511
1511
|
});
|
|
1512
|
-
}), o.length > 0 &&
|
|
1513
|
-
},
|
|
1512
|
+
}), o.length > 0 && E(o), O(null);
|
|
1513
|
+
}, O = (t) => {
|
|
1514
1514
|
let r = null;
|
|
1515
1515
|
if (t ? r = t : window.location.hash && (r = window.location.hash.substring(1)), r) {
|
|
1516
1516
|
let t = g.value.filter((e) => e.uid == r);
|
|
1517
1517
|
t && t.length > 0 ? n("change", null, {
|
|
1518
1518
|
...t[0],
|
|
1519
1519
|
...t[0].data
|
|
1520
|
-
}, !0, !0) :
|
|
1520
|
+
}, !0, !0) : ne({
|
|
1521
1521
|
org_id: f.id,
|
|
1522
1522
|
conditions: [[
|
|
1523
1523
|
{
|
|
@@ -1577,7 +1577,7 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1577
1577
|
});
|
|
1578
1578
|
} else {
|
|
1579
1579
|
let t = "";
|
|
1580
|
-
if (c().get("customviewdatauser") && (t = c().get(
|
|
1580
|
+
if (c().get("customviewdatauser") && (t = c().get(Gt)?.[e.menu_flag]), t) window.location.hash = t, O(t);
|
|
1581
1581
|
else {
|
|
1582
1582
|
let t = g.value.filter((e) => !e.user_id && e.is_default && !e.is_system);
|
|
1583
1583
|
if (t && t.length > 0) {
|
|
@@ -1614,9 +1614,9 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1614
1614
|
}, !0, !1)));
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
|
-
},
|
|
1618
|
-
window.location.hash = e.uid,
|
|
1619
|
-
},
|
|
1617
|
+
}, k = G(["1", "2"]), le = (t) => e.currentViewObj && t && t.id === e.currentViewObj.id ? { style: { backgroundColor: "#ddf1ff" } } : { style: {} }, A = (e) => {
|
|
1618
|
+
window.location.hash = e.uid, O(e.uid), _e([e]);
|
|
1619
|
+
}, ue = (e) => {
|
|
1620
1620
|
let t = [];
|
|
1621
1621
|
for (let n of e) {
|
|
1622
1622
|
let e = [];
|
|
@@ -1630,8 +1630,8 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1630
1630
|
t.push(e);
|
|
1631
1631
|
}
|
|
1632
1632
|
return t;
|
|
1633
|
-
},
|
|
1634
|
-
if (i.name != t.name &&
|
|
1633
|
+
}, de = ({ updateView: t, record: i }) => {
|
|
1634
|
+
if (i.name != t.name && ee.value.includes(t.name)) {
|
|
1635
1635
|
Q.error(_("视图名称已存在"));
|
|
1636
1636
|
return;
|
|
1637
1637
|
}
|
|
@@ -1653,20 +1653,20 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1653
1653
|
conditions: e.currentViewObj.conditions,
|
|
1654
1654
|
group_condition: e.currentViewObj.group_condition,
|
|
1655
1655
|
group_record: e.currentViewObj.group_record,
|
|
1656
|
-
default_search_condition_config_list:
|
|
1656
|
+
default_search_condition_config_list: ue(e.currentViewObj.default_search_condition_config_list)
|
|
1657
1657
|
};
|
|
1658
|
-
delete a.is_system,
|
|
1658
|
+
delete a.is_system, C({
|
|
1659
1659
|
org_id: f.id,
|
|
1660
1660
|
view_settings_id: i?.id,
|
|
1661
1661
|
is_system: t.is_system?.[0],
|
|
1662
1662
|
name: t.name,
|
|
1663
1663
|
data: JSON.stringify(a)
|
|
1664
1664
|
}).then((r) => {
|
|
1665
|
-
t.is_default?.[0] ?
|
|
1665
|
+
t.is_default?.[0] ? w({
|
|
1666
1666
|
org_id: f.id,
|
|
1667
1667
|
view_settings_id: i?.id
|
|
1668
1668
|
}).then(() => {
|
|
1669
|
-
|
|
1669
|
+
ae({
|
|
1670
1670
|
org_id: f.id,
|
|
1671
1671
|
view_settings_id: i?.id
|
|
1672
1672
|
}).then(() => {
|
|
@@ -1678,9 +1678,9 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1678
1678
|
...r,
|
|
1679
1679
|
...r.data
|
|
1680
1680
|
});
|
|
1681
|
-
}),
|
|
1681
|
+
}), D();
|
|
1682
1682
|
});
|
|
1683
|
-
}) :
|
|
1683
|
+
}) : ae({
|
|
1684
1684
|
org_id: f.id,
|
|
1685
1685
|
view_settings_id: i?.id
|
|
1686
1686
|
}).then(() => {
|
|
@@ -1692,20 +1692,20 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1692
1692
|
...r,
|
|
1693
1693
|
...r.data
|
|
1694
1694
|
});
|
|
1695
|
-
}),
|
|
1695
|
+
}), D();
|
|
1696
1696
|
});
|
|
1697
1697
|
});
|
|
1698
|
-
} else
|
|
1698
|
+
} else C({
|
|
1699
1699
|
org_id: f.id,
|
|
1700
1700
|
view_settings_id: i?.id,
|
|
1701
1701
|
is_system: t.is_system?.[0],
|
|
1702
1702
|
name: t.name
|
|
1703
1703
|
}).then((r) => {
|
|
1704
|
-
t.is_default?.[0] ?
|
|
1704
|
+
t.is_default?.[0] ? w({
|
|
1705
1705
|
org_id: f.id,
|
|
1706
1706
|
view_settings_id: i?.id
|
|
1707
1707
|
}).then(() => {
|
|
1708
|
-
|
|
1708
|
+
ae({
|
|
1709
1709
|
org_id: f.id,
|
|
1710
1710
|
view_settings_id: i?.id
|
|
1711
1711
|
}).then(() => {
|
|
@@ -1717,9 +1717,9 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1717
1717
|
...r,
|
|
1718
1718
|
...r.data
|
|
1719
1719
|
});
|
|
1720
|
-
}),
|
|
1720
|
+
}), D();
|
|
1721
1721
|
});
|
|
1722
|
-
}) :
|
|
1722
|
+
}) : ae({
|
|
1723
1723
|
org_id: f.id,
|
|
1724
1724
|
view_settings_id: i?.id
|
|
1725
1725
|
}).then(() => {
|
|
@@ -1731,7 +1731,7 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1731
1731
|
...r,
|
|
1732
1732
|
...r.data
|
|
1733
1733
|
});
|
|
1734
|
-
}),
|
|
1734
|
+
}), D();
|
|
1735
1735
|
});
|
|
1736
1736
|
});
|
|
1737
1737
|
} else {
|
|
@@ -1750,7 +1750,7 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1750
1750
|
conditions: e.currentViewObj.conditions,
|
|
1751
1751
|
group_condition: e.currentViewObj.group_condition,
|
|
1752
1752
|
group_record: e.currentViewObj.group_record,
|
|
1753
|
-
default_search_condition_config_list:
|
|
1753
|
+
default_search_condition_config_list: ue(e.currentViewObj.default_search_condition_config_list)
|
|
1754
1754
|
}, delete i.is_system) : i = {
|
|
1755
1755
|
column: {},
|
|
1756
1756
|
search_model: {},
|
|
@@ -1762,7 +1762,7 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1762
1762
|
conditions: [],
|
|
1763
1763
|
group_condition: {},
|
|
1764
1764
|
group_record: {}
|
|
1765
|
-
},
|
|
1765
|
+
}, ie({
|
|
1766
1766
|
org_id: f.id,
|
|
1767
1767
|
user_id: t.view_type == "personal" ? p : null,
|
|
1768
1768
|
name: t.name,
|
|
@@ -1775,7 +1775,7 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1775
1775
|
n("change", null, {
|
|
1776
1776
|
...e,
|
|
1777
1777
|
...e.data
|
|
1778
|
-
}, !0, !0), e.id && (g.value = g.value.concat([{ ...e }]),
|
|
1778
|
+
}, !0, !0), e.id && (g.value = g.value.concat([{ ...e }]), E([{
|
|
1779
1779
|
id: e.id,
|
|
1780
1780
|
search_model: i.search_model,
|
|
1781
1781
|
filter_map: i.filter_map,
|
|
@@ -1783,10 +1783,10 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1783
1783
|
group_condition: i.group_condition,
|
|
1784
1784
|
conditions: i.conditions,
|
|
1785
1785
|
isShowGeneralFilter: i.isShowGeneralFilter
|
|
1786
|
-
}]), window.location.hash = e.uid,
|
|
1786
|
+
}]), window.location.hash = e.uid, O(e.uid));
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
|
-
},
|
|
1789
|
+
}, fe = (t, n) => {
|
|
1790
1790
|
let r = [!1];
|
|
1791
1791
|
e.currentViewObj.id == t.id && (r = [!0]);
|
|
1792
1792
|
let i = W({
|
|
@@ -1845,7 +1845,7 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1845
1845
|
}]
|
|
1846
1846
|
},
|
|
1847
1847
|
ok: (e) => new Promise(function(n) {
|
|
1848
|
-
|
|
1848
|
+
de({
|
|
1849
1849
|
updateView: e,
|
|
1850
1850
|
record: t
|
|
1851
1851
|
}), n(null);
|
|
@@ -1871,9 +1871,9 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1871
1871
|
valueKey: "value",
|
|
1872
1872
|
defaultValue: [!1],
|
|
1873
1873
|
placeholder: ""
|
|
1874
|
-
})),
|
|
1875
|
-
},
|
|
1876
|
-
|
|
1874
|
+
})), x(i);
|
|
1875
|
+
}, pe = (e) => {
|
|
1876
|
+
x(W({
|
|
1877
1877
|
open: !0,
|
|
1878
1878
|
loading: !1,
|
|
1879
1879
|
title: _("新建视图"),
|
|
@@ -1941,55 +1941,55 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1941
1941
|
}]
|
|
1942
1942
|
},
|
|
1943
1943
|
ok: (e) => new Promise(function(t) {
|
|
1944
|
-
if (
|
|
1944
|
+
if (ee.value.includes(e.name)) {
|
|
1945
1945
|
Q.error(_("视图名称已存在"));
|
|
1946
1946
|
return;
|
|
1947
1947
|
}
|
|
1948
|
-
|
|
1948
|
+
de({
|
|
1949
1949
|
updateView: e,
|
|
1950
1950
|
record: e
|
|
1951
1951
|
}), t(null);
|
|
1952
1952
|
})
|
|
1953
1953
|
}));
|
|
1954
|
-
},
|
|
1955
|
-
|
|
1954
|
+
}, me = (e) => {
|
|
1955
|
+
x(W({
|
|
1956
1956
|
open: !0,
|
|
1957
1957
|
component: "ViewEditModal",
|
|
1958
1958
|
compObj: {
|
|
1959
1959
|
title: _(e == "personal" ? "个人视图管理" : "公共视图管理"),
|
|
1960
|
-
data: e == "personal" ?
|
|
1960
|
+
data: e == "personal" ? y.value : S.value
|
|
1961
1961
|
},
|
|
1962
1962
|
ok: (e) => {
|
|
1963
|
-
e && e.length > 0 ?
|
|
1963
|
+
e && e.length > 0 ? te({
|
|
1964
1964
|
org_id: f.id,
|
|
1965
1965
|
view_settings_ids: e
|
|
1966
1966
|
}).then(() => {
|
|
1967
|
-
Q.success(_("保存成功")),
|
|
1968
|
-
}) : (Q.success(_("保存成功")),
|
|
1967
|
+
Q.success(_("保存成功")), D();
|
|
1968
|
+
}) : (Q.success(_("保存成功")), D());
|
|
1969
1969
|
},
|
|
1970
1970
|
cancel: (e) => {
|
|
1971
|
-
e &&
|
|
1971
|
+
e && D();
|
|
1972
1972
|
}
|
|
1973
1973
|
}));
|
|
1974
|
-
},
|
|
1974
|
+
}, j = (e) => {
|
|
1975
1975
|
let t = "", n = window.location.href.indexOf("#");
|
|
1976
|
-
t = n === -1 ? window.location.href + "#" + e.uid : window.location.href.substring(0, n) + "#" + e.uid,
|
|
1976
|
+
t = n === -1 ? window.location.href + "#" + e.uid : window.location.href.substring(0, n) + "#" + e.uid, b({
|
|
1977
1977
|
val: t,
|
|
1978
1978
|
message: _("复制成功")
|
|
1979
1979
|
});
|
|
1980
|
-
},
|
|
1981
|
-
|
|
1980
|
+
}, he = (e) => {
|
|
1981
|
+
Xe.confirm({
|
|
1982
1982
|
title: () => `${_("确认删除此")}【${e.name}】${e?.user_id ? _("个人视图") : _("公共视图")}?`,
|
|
1983
1983
|
content: _("视图删除后不可恢复,视图下工作项不受影响,是否确认删除?"),
|
|
1984
|
-
icon: () =>
|
|
1984
|
+
icon: () => B(rt),
|
|
1985
1985
|
okText: _("确定"),
|
|
1986
1986
|
onOk() {
|
|
1987
1987
|
return new Promise((t) => {
|
|
1988
|
-
|
|
1988
|
+
oe({
|
|
1989
1989
|
org_id: f.id,
|
|
1990
1990
|
view_settings_id: e?.id
|
|
1991
1991
|
}).then(() => {
|
|
1992
|
-
g.value = g.value.filter((t) => t.id != e.id),
|
|
1992
|
+
g.value = g.value.filter((t) => t.id != e.id), O(null), Q.success(_("删除成功"));
|
|
1993
1993
|
}).finally(() => {
|
|
1994
1994
|
t(null);
|
|
1995
1995
|
});
|
|
@@ -1997,7 +1997,7 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
1997
1997
|
},
|
|
1998
1998
|
onCancel() {}
|
|
1999
1999
|
});
|
|
2000
|
-
},
|
|
2000
|
+
}, ge = () => {
|
|
2001
2001
|
let t = T(e.app_flag, e.modalType, null, _, {
|
|
2002
2002
|
use_store: !0,
|
|
2003
2003
|
to_i18n: !0,
|
|
@@ -2007,7 +2007,7 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
2007
2007
|
let t = a.value_map[e.key];
|
|
2008
2008
|
t != null && (n[e.field_name] = t);
|
|
2009
2009
|
}), n;
|
|
2010
|
-
},
|
|
2010
|
+
}, _e = (e) => {
|
|
2011
2011
|
let t = [];
|
|
2012
2012
|
e.forEach((e) => {
|
|
2013
2013
|
let n = null, r = null, i = null, a = null;
|
|
@@ -2020,17 +2020,17 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
2020
2020
|
conditions: a,
|
|
2021
2021
|
isShowGeneralFilter: e.data.isShowGeneralFilter
|
|
2022
2022
|
});
|
|
2023
|
-
}),
|
|
2023
|
+
}), E(t);
|
|
2024
2024
|
};
|
|
2025
2025
|
X(() => e.current_num, () => {
|
|
2026
|
-
|
|
2026
|
+
Xe.confirm({
|
|
2027
2027
|
title: () => _("确定覆盖视图吗?"),
|
|
2028
2028
|
content: _("当前视图原有的数据会被覆盖"),
|
|
2029
|
-
icon: () =>
|
|
2029
|
+
icon: () => B(rt),
|
|
2030
2030
|
okText: _("确定"),
|
|
2031
2031
|
onOk() {
|
|
2032
2032
|
return new Promise((t) => {
|
|
2033
|
-
|
|
2033
|
+
de({
|
|
2034
2034
|
updateView: {
|
|
2035
2035
|
is_submit: [!0],
|
|
2036
2036
|
is_system: [e.currentViewObj.is_system],
|
|
@@ -2043,7 +2043,7 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
2043
2043
|
onCancel() {}
|
|
2044
2044
|
});
|
|
2045
2045
|
}), X(() => e.create_num, () => {
|
|
2046
|
-
|
|
2046
|
+
x(W({
|
|
2047
2047
|
open: !0,
|
|
2048
2048
|
loading: !1,
|
|
2049
2049
|
title: _("新建视图"),
|
|
@@ -2101,91 +2101,91 @@ var xt = /*#__PURE__*/ f(yt, [["render", bt]]), St = "customviewdatauser", Ct =
|
|
|
2101
2101
|
Q.error(_("视图名称已存在"));
|
|
2102
2102
|
return;
|
|
2103
2103
|
}
|
|
2104
|
-
|
|
2104
|
+
de({
|
|
2105
2105
|
updateView: e,
|
|
2106
2106
|
record: e
|
|
2107
2107
|
}), t(null);
|
|
2108
2108
|
})
|
|
2109
2109
|
}));
|
|
2110
2110
|
}), X(() => e.count_num, () => {
|
|
2111
|
-
|
|
2111
|
+
_e(g.value);
|
|
2112
2112
|
});
|
|
2113
|
-
let
|
|
2113
|
+
let ve = (t) => {
|
|
2114
2114
|
let n = T(e.currentViewObj.app_flag, e.modalType, null, _, {
|
|
2115
2115
|
use_store: !0,
|
|
2116
2116
|
to_i18n: !0,
|
|
2117
2117
|
enable_btn: !1
|
|
2118
2118
|
});
|
|
2119
|
-
n.required_condition && n.required_condition.find((e) => e.key === t) &&
|
|
2119
|
+
n.required_condition && n.required_condition.find((e) => e.key === t) && D();
|
|
2120
2120
|
};
|
|
2121
|
-
return
|
|
2122
|
-
|
|
2123
|
-
}),
|
|
2124
|
-
u().off("change",
|
|
2125
|
-
}),
|
|
2126
|
-
|
|
2121
|
+
return Be(() => {
|
|
2122
|
+
D(), u().on("change", ve);
|
|
2123
|
+
}), Ve(() => {
|
|
2124
|
+
u().off("change", ve);
|
|
2125
|
+
}), Ie(() => {
|
|
2126
|
+
_e(g.value);
|
|
2127
2127
|
}), {
|
|
2128
2128
|
props: e,
|
|
2129
|
-
viewKey:
|
|
2129
|
+
viewKey: k,
|
|
2130
2130
|
customStyle: "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;",
|
|
2131
|
-
columns:
|
|
2132
|
-
personData:
|
|
2133
|
-
publicData:
|
|
2131
|
+
columns: qt,
|
|
2132
|
+
personData: y,
|
|
2133
|
+
publicData: S,
|
|
2134
2134
|
is_auth: h,
|
|
2135
|
-
addView:
|
|
2136
|
-
editView:
|
|
2137
|
-
customRow:
|
|
2138
|
-
changeView:
|
|
2139
|
-
handleSubmit:
|
|
2140
|
-
handleShare:
|
|
2141
|
-
handleDelet:
|
|
2135
|
+
addView: pe,
|
|
2136
|
+
editView: me,
|
|
2137
|
+
customRow: le,
|
|
2138
|
+
changeView: A,
|
|
2139
|
+
handleSubmit: fe,
|
|
2140
|
+
handleShare: j,
|
|
2141
|
+
handleDelet: he,
|
|
2142
2142
|
appStore: l
|
|
2143
2143
|
};
|
|
2144
2144
|
}
|
|
2145
|
-
}),
|
|
2145
|
+
}), Yt = { style: { "font-weight": "700" } }, Xt = ["onClick"], Zt = { style: {
|
|
2146
2146
|
"max-width": "130px",
|
|
2147
2147
|
float: "left",
|
|
2148
2148
|
"white-space": "nowrap",
|
|
2149
2149
|
overflow: "hidden"
|
|
2150
|
-
} },
|
|
2150
|
+
} }, Qt = ["onClick"], $t = ["onClick"], en = ["onClick"], tn = { style: { "font-weight": "700" } }, nn = ["onClick"], rn = { style: {
|
|
2151
2151
|
"max-width": "130px",
|
|
2152
2152
|
float: "left",
|
|
2153
2153
|
"white-space": "nowrap",
|
|
2154
2154
|
overflow: "hidden"
|
|
2155
|
-
} },
|
|
2156
|
-
function
|
|
2155
|
+
} }, an = ["onClick"], on = ["onClick"], sn = ["onClick"];
|
|
2156
|
+
function cn(e, t, n, r, i, a) {
|
|
2157
2157
|
let o = q("caret-right-outlined"), s = q("setting-outlined"), c = q("a-tooltip"), l = q("plus-outlined"), u = q("a-menu-item"), d = q("a-menu"), f = q("a-dropdown"), p = q("a-table"), m = q("a-collapse-panel"), h = q("a-collapse"), g = q("a-card");
|
|
2158
|
-
return U(),
|
|
2158
|
+
return U(), F(g, { "body-style": {
|
|
2159
2159
|
padding: 0,
|
|
2160
2160
|
height: e.height + 87 + "px",
|
|
2161
2161
|
overflowY: "auto"
|
|
2162
2162
|
} }, {
|
|
2163
|
-
default: Z(() => [
|
|
2163
|
+
default: Z(() => [B(h, {
|
|
2164
2164
|
activeKey: e.viewKey,
|
|
2165
2165
|
"onUpdate:activeKey": t[6] ||= (t) => e.viewKey = t,
|
|
2166
2166
|
bordered: !1,
|
|
2167
2167
|
class: "collapses",
|
|
2168
2168
|
style: { background: "rgb(255, 255, 255)" }
|
|
2169
2169
|
}, {
|
|
2170
|
-
expandIcon: Z(({ isActive: e }) => [
|
|
2171
|
-
default: Z(() => [(U(),
|
|
2170
|
+
expandIcon: Z(({ isActive: e }) => [B(o, { rotate: e ? 90 : 0 }, null, 8, ["rotate"])]),
|
|
2171
|
+
default: Z(() => [(U(), F(m, {
|
|
2172
2172
|
key: "1",
|
|
2173
|
-
style:
|
|
2173
|
+
style: Fe(e.customStyle)
|
|
2174
2174
|
}, {
|
|
2175
|
-
header: Z(() => [
|
|
2176
|
-
extra: Z(() => [
|
|
2177
|
-
title: Z(() => [
|
|
2178
|
-
default: Z(() => [
|
|
2175
|
+
header: Z(() => [R("span", Yt, J(e.$t("个人视图")), 1)]),
|
|
2176
|
+
extra: Z(() => [B(c, null, {
|
|
2177
|
+
title: Z(() => [z(J(e.$t("个人视图管理")), 1)]),
|
|
2178
|
+
default: Z(() => [B(s, {
|
|
2179
2179
|
style: { "margin-right": "10px" },
|
|
2180
|
-
onClick: t[0] ||=
|
|
2180
|
+
onClick: t[0] ||= Ye((t) => e.editView("personal"), ["stop"])
|
|
2181
2181
|
})]),
|
|
2182
2182
|
_: 1
|
|
2183
|
-
}),
|
|
2184
|
-
title: Z(() => [
|
|
2185
|
-
default: Z(() => [
|
|
2183
|
+
}), B(c, null, {
|
|
2184
|
+
title: Z(() => [z(J(e.$t("新建个人视图")), 1)]),
|
|
2185
|
+
default: Z(() => [B(l, { onClick: t[1] ||= Ye((t) => e.addView("personal"), ["stop"]) })]),
|
|
2186
2186
|
_: 1
|
|
2187
2187
|
})]),
|
|
2188
|
-
default: Z(() => [e.personData.length > 0 ? (U(),
|
|
2188
|
+
default: Z(() => [e.personData.length > 0 ? (U(), F(p, {
|
|
2189
2189
|
key: 0,
|
|
2190
2190
|
columns: e.columns,
|
|
2191
2191
|
customRow: e.customRow,
|
|
@@ -2194,7 +2194,7 @@ function Rt(e, t, n, r, i, a) {
|
|
|
2194
2194
|
showHeader: !1,
|
|
2195
2195
|
size: "small"
|
|
2196
2196
|
}, {
|
|
2197
|
-
bodyCell: Z(({ column: n, record: r }) => [n.dataIndex === "name" ? (U(),
|
|
2197
|
+
bodyCell: Z(({ column: n, record: r }) => [n.dataIndex === "name" ? (U(), L("div", {
|
|
2198
2198
|
key: 0,
|
|
2199
2199
|
class: "table",
|
|
2200
2200
|
style: {
|
|
@@ -2203,85 +2203,85 @@ function Rt(e, t, n, r, i, a) {
|
|
|
2203
2203
|
},
|
|
2204
2204
|
onClick: (t) => e.changeView(r)
|
|
2205
2205
|
}, [
|
|
2206
|
-
|
|
2206
|
+
B(c, {
|
|
2207
2207
|
title: r.name,
|
|
2208
2208
|
color: e.appStore.primaryColor,
|
|
2209
2209
|
placement: "left",
|
|
2210
2210
|
destroyTooltipOnHide: !0,
|
|
2211
2211
|
overlayStyle: { maxWidth: "200px" }
|
|
2212
2212
|
}, {
|
|
2213
|
-
default: Z(() => [
|
|
2213
|
+
default: Z(() => [R("div", Zt, J(r.name), 1)]),
|
|
2214
2214
|
_: 2
|
|
2215
2215
|
}, 1032, ["title", "color"]),
|
|
2216
|
-
|
|
2216
|
+
R("span", {
|
|
2217
2217
|
class: "num",
|
|
2218
|
-
style:
|
|
2218
|
+
style: Fe([{ float: "right" }, e.currentViewObj.id === r.id ? {
|
|
2219
2219
|
color: "#1890ff",
|
|
2220
2220
|
fontWeight: "bold"
|
|
2221
2221
|
} : {}])
|
|
2222
2222
|
}, J(r.num), 5),
|
|
2223
|
-
|
|
2224
|
-
overlay: Z(() => [
|
|
2223
|
+
B(f, { class: "dropdown" }, {
|
|
2224
|
+
overlay: Z(() => [B(d, null, {
|
|
2225
2225
|
default: Z(() => [
|
|
2226
|
-
!r.is_system || e.is_auth ? (U(),
|
|
2227
|
-
default: Z(() => [
|
|
2226
|
+
!r.is_system || e.is_auth ? (U(), F(u, { key: 0 }, {
|
|
2227
|
+
default: Z(() => [R("a", {
|
|
2228
2228
|
href: "javascript:;",
|
|
2229
2229
|
onClick: (t) => e.handleSubmit(r, "personal")
|
|
2230
|
-
}, J(e.$t("编辑")), 9,
|
|
2230
|
+
}, J(e.$t("编辑")), 9, Qt)]),
|
|
2231
2231
|
_: 2
|
|
2232
|
-
}, 1024)) :
|
|
2233
|
-
|
|
2234
|
-
default: Z(() => [
|
|
2232
|
+
}, 1024)) : I("", !0),
|
|
2233
|
+
B(u, null, {
|
|
2234
|
+
default: Z(() => [R("a", {
|
|
2235
2235
|
href: "javascript:;",
|
|
2236
2236
|
onClick: (t) => e.handleShare(r)
|
|
2237
|
-
}, J(e.$t("分享视图")), 9,
|
|
2237
|
+
}, J(e.$t("分享视图")), 9, $t)]),
|
|
2238
2238
|
_: 2
|
|
2239
2239
|
}, 1024),
|
|
2240
|
-
!r.is_system || e.is_auth ? (U(),
|
|
2241
|
-
default: Z(() => [
|
|
2240
|
+
!r.is_system || e.is_auth ? (U(), F(u, { key: 1 }, {
|
|
2241
|
+
default: Z(() => [R("a", {
|
|
2242
2242
|
href: "javascript:;",
|
|
2243
2243
|
onClick: (t) => e.handleDelet(r)
|
|
2244
|
-
}, J(e.$t("删除")), 9,
|
|
2244
|
+
}, J(e.$t("删除")), 9, en)]),
|
|
2245
2245
|
_: 2
|
|
2246
|
-
}, 1024)) :
|
|
2246
|
+
}, 1024)) : I("", !0)
|
|
2247
2247
|
]),
|
|
2248
2248
|
_: 2
|
|
2249
2249
|
}, 1024)]),
|
|
2250
|
-
default: Z(() => [
|
|
2250
|
+
default: Z(() => [R("span", {
|
|
2251
2251
|
style: {
|
|
2252
2252
|
float: "right",
|
|
2253
2253
|
"font-weight": "800"
|
|
2254
2254
|
},
|
|
2255
|
-
onClick: t[2] ||=
|
|
2255
|
+
onClick: t[2] ||= Ye(() => {}, ["stop"])
|
|
2256
2256
|
}, " · · · ")]),
|
|
2257
2257
|
_: 2
|
|
2258
2258
|
}, 1024)
|
|
2259
|
-
], 8,
|
|
2259
|
+
], 8, Xt)) : I("", !0)]),
|
|
2260
2260
|
_: 1
|
|
2261
2261
|
}, 8, [
|
|
2262
2262
|
"columns",
|
|
2263
2263
|
"customRow",
|
|
2264
2264
|
"dataSource"
|
|
2265
|
-
])) :
|
|
2265
|
+
])) : I("", !0)]),
|
|
2266
2266
|
_: 1
|
|
2267
|
-
}, 8, ["style"])), (U(),
|
|
2267
|
+
}, 8, ["style"])), (U(), F(m, {
|
|
2268
2268
|
key: "2",
|
|
2269
|
-
style:
|
|
2269
|
+
style: Fe(e.customStyle)
|
|
2270
2270
|
}, {
|
|
2271
|
-
header: Z(() => [
|
|
2272
|
-
extra: Z(() => [
|
|
2273
|
-
title: Z(() => [
|
|
2274
|
-
default: Z(() => [
|
|
2271
|
+
header: Z(() => [R("span", tn, J(e.$t("公共视图")), 1)]),
|
|
2272
|
+
extra: Z(() => [B(c, null, {
|
|
2273
|
+
title: Z(() => [z(J(e.$t("公共视图管理")), 1)]),
|
|
2274
|
+
default: Z(() => [B(s, {
|
|
2275
2275
|
style: { "margin-right": "10px" },
|
|
2276
|
-
onClick: t[3] ||=
|
|
2276
|
+
onClick: t[3] ||= Ye((t) => e.editView("public"), ["stop"])
|
|
2277
2277
|
})]),
|
|
2278
2278
|
_: 1
|
|
2279
|
-
}),
|
|
2280
|
-
title: Z(() => [
|
|
2281
|
-
default: Z(() => [
|
|
2279
|
+
}), B(c, null, {
|
|
2280
|
+
title: Z(() => [z(J(e.$t("新建公共视图")), 1)]),
|
|
2281
|
+
default: Z(() => [B(l, { onClick: t[4] ||= Ye((t) => e.addView("public"), ["stop"]) })]),
|
|
2282
2282
|
_: 1
|
|
2283
2283
|
})]),
|
|
2284
|
-
default: Z(() => [e.publicData.length > 0 ? (U(),
|
|
2284
|
+
default: Z(() => [e.publicData.length > 0 ? (U(), F(p, {
|
|
2285
2285
|
key: 0,
|
|
2286
2286
|
columns: e.columns,
|
|
2287
2287
|
customRow: e.customRow,
|
|
@@ -2290,7 +2290,7 @@ function Rt(e, t, n, r, i, a) {
|
|
|
2290
2290
|
showHeader: !1,
|
|
2291
2291
|
size: "small"
|
|
2292
2292
|
}, {
|
|
2293
|
-
bodyCell: Z(({ column: n, record: r }) => [n.dataIndex === "name" ? (U(),
|
|
2293
|
+
bodyCell: Z(({ column: n, record: r }) => [n.dataIndex === "name" ? (U(), L("div", {
|
|
2294
2294
|
key: 0,
|
|
2295
2295
|
class: "table",
|
|
2296
2296
|
style: {
|
|
@@ -2299,66 +2299,66 @@ function Rt(e, t, n, r, i, a) {
|
|
|
2299
2299
|
},
|
|
2300
2300
|
onClick: (t) => e.changeView(r)
|
|
2301
2301
|
}, [
|
|
2302
|
-
|
|
2302
|
+
B(c, {
|
|
2303
2303
|
title: r.name,
|
|
2304
2304
|
color: e.appStore.primaryColor,
|
|
2305
2305
|
placement: "left",
|
|
2306
2306
|
destroyTooltipOnHide: !0,
|
|
2307
2307
|
overlayStyle: { maxWidth: "200px" }
|
|
2308
2308
|
}, {
|
|
2309
|
-
default: Z(() => [
|
|
2309
|
+
default: Z(() => [R("div", rn, J(r.name), 1)]),
|
|
2310
2310
|
_: 2
|
|
2311
2311
|
}, 1032, ["title", "color"]),
|
|
2312
|
-
|
|
2312
|
+
R("span", {
|
|
2313
2313
|
class: "num",
|
|
2314
|
-
style:
|
|
2314
|
+
style: Fe([{ float: "right" }, e.currentViewObj.id === r.id ? {
|
|
2315
2315
|
color: "#1890ff",
|
|
2316
2316
|
fontWeight: "bold"
|
|
2317
2317
|
} : {}])
|
|
2318
2318
|
}, J(r.num), 5),
|
|
2319
|
-
|
|
2320
|
-
overlay: Z(() => [
|
|
2319
|
+
B(f, { class: "dropdown" }, {
|
|
2320
|
+
overlay: Z(() => [B(d, null, {
|
|
2321
2321
|
default: Z(() => [
|
|
2322
|
-
!r.is_system || e.is_auth ? (U(),
|
|
2323
|
-
default: Z(() => [
|
|
2322
|
+
!r.is_system || e.is_auth ? (U(), F(u, { key: 0 }, {
|
|
2323
|
+
default: Z(() => [R("a", {
|
|
2324
2324
|
href: "javascript:;",
|
|
2325
2325
|
onClick: (t) => e.handleSubmit(r, "public")
|
|
2326
|
-
}, J(e.$t("编辑")), 9,
|
|
2326
|
+
}, J(e.$t("编辑")), 9, an)]),
|
|
2327
2327
|
_: 2
|
|
2328
|
-
}, 1024)) :
|
|
2329
|
-
|
|
2330
|
-
default: Z(() => [
|
|
2328
|
+
}, 1024)) : I("", !0),
|
|
2329
|
+
B(u, null, {
|
|
2330
|
+
default: Z(() => [R("a", {
|
|
2331
2331
|
href: "javascript:;",
|
|
2332
2332
|
onClick: (t) => e.handleShare(r)
|
|
2333
|
-
}, J(e.$t("分享视图")), 9,
|
|
2333
|
+
}, J(e.$t("分享视图")), 9, on)]),
|
|
2334
2334
|
_: 2
|
|
2335
2335
|
}, 1024),
|
|
2336
|
-
!r.is_system || e.is_auth ? (U(),
|
|
2337
|
-
default: Z(() => [
|
|
2336
|
+
!r.is_system || e.is_auth ? (U(), F(u, { key: 1 }, {
|
|
2337
|
+
default: Z(() => [R("a", {
|
|
2338
2338
|
href: "javascript:;",
|
|
2339
2339
|
onClick: (t) => e.handleDelet(r)
|
|
2340
|
-
}, J(e.$t("删除")), 9,
|
|
2340
|
+
}, J(e.$t("删除")), 9, sn)]),
|
|
2341
2341
|
_: 2
|
|
2342
|
-
}, 1024)) :
|
|
2342
|
+
}, 1024)) : I("", !0)
|
|
2343
2343
|
]),
|
|
2344
2344
|
_: 2
|
|
2345
2345
|
}, 1024)]),
|
|
2346
|
-
default: Z(() => [
|
|
2346
|
+
default: Z(() => [R("span", {
|
|
2347
2347
|
style: {
|
|
2348
2348
|
float: "right",
|
|
2349
2349
|
"font-weight": "800"
|
|
2350
2350
|
},
|
|
2351
|
-
onClick: t[5] ||=
|
|
2351
|
+
onClick: t[5] ||= Ye(() => {}, ["stop"])
|
|
2352
2352
|
}, " · · · ")]),
|
|
2353
2353
|
_: 2
|
|
2354
2354
|
}, 1024)
|
|
2355
|
-
], 8,
|
|
2355
|
+
], 8, nn)) : I("", !0)]),
|
|
2356
2356
|
_: 1
|
|
2357
2357
|
}, 8, [
|
|
2358
2358
|
"columns",
|
|
2359
2359
|
"customRow",
|
|
2360
2360
|
"dataSource"
|
|
2361
|
-
])) :
|
|
2361
|
+
])) : I("", !0)]),
|
|
2362
2362
|
_: 1
|
|
2363
2363
|
}, 8, ["style"]))]),
|
|
2364
2364
|
_: 1
|
|
@@ -2366,9 +2366,9 @@ function Rt(e, t, n, r, i, a) {
|
|
|
2366
2366
|
_: 1
|
|
2367
2367
|
}, 8, ["body-style"]);
|
|
2368
2368
|
}
|
|
2369
|
-
var
|
|
2369
|
+
var ln = /*#__PURE__*/ f(Jt, [["render", cn]]), un = V({
|
|
2370
2370
|
name: "SideSearchRender",
|
|
2371
|
-
components: { ViewManage:
|
|
2371
|
+
components: { ViewManage: ln },
|
|
2372
2372
|
props: { selectObj: {
|
|
2373
2373
|
type: Object,
|
|
2374
2374
|
required: !0
|
|
@@ -2385,54 +2385,54 @@ var zt = /*#__PURE__*/ f(Tt, [["render", Rt]]), Bt = z({
|
|
|
2385
2385
|
});
|
|
2386
2386
|
//#endregion
|
|
2387
2387
|
//#region src/components/SideSearchRender/SideSearchRender.vue
|
|
2388
|
-
function
|
|
2388
|
+
function dn(e, t, n, r, i, a) {
|
|
2389
2389
|
let o = q("view-manage"), s = q("a-card");
|
|
2390
|
-
return U(),
|
|
2390
|
+
return U(), F(s, { "body-style": {
|
|
2391
2391
|
padding: 0,
|
|
2392
2392
|
height: e.selectObj.height + 96 + "px",
|
|
2393
2393
|
overflowY: "auto"
|
|
2394
2394
|
} }, {
|
|
2395
|
-
default: Z(() => [
|
|
2395
|
+
default: Z(() => [B(o, {
|
|
2396
2396
|
"select-obj": e.selectObj,
|
|
2397
2397
|
onChange: e.change
|
|
2398
2398
|
}, null, 8, ["select-obj", "onChange"])]),
|
|
2399
2399
|
_: 1
|
|
2400
2400
|
}, 8, ["body-style"]);
|
|
2401
2401
|
}
|
|
2402
|
-
var
|
|
2402
|
+
var fn = /*#__PURE__*/ f(un, [["render", dn]]), pn = Symbol("fullLayoutState"), mn = /*#__PURE__*/ f(/* @__PURE__ */ V({
|
|
2403
2403
|
__name: "fullLayout",
|
|
2404
2404
|
setup(e) {
|
|
2405
|
-
let t =
|
|
2406
|
-
return
|
|
2405
|
+
let t = Ge(null);
|
|
2406
|
+
return He(pn, { fullLayoutRef: t }), (e, n) => (U(), L("div", {
|
|
2407
2407
|
ref_key: "fullLayoutRef",
|
|
2408
2408
|
ref: t,
|
|
2409
2409
|
class: "full-layout"
|
|
2410
|
-
}, [
|
|
2410
|
+
}, [Ue(e.$slots, "default", {}, void 0, !0)], 512));
|
|
2411
2411
|
}
|
|
2412
|
-
}), [["__scopeId", "data-v-97777e2d"]]),
|
|
2413
|
-
function
|
|
2412
|
+
}), [["__scopeId", "data-v-97777e2d"]]), hn = "auto";
|
|
2413
|
+
function gn() {
|
|
2414
2414
|
return typeof document < "u";
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function _n() {
|
|
2417
2417
|
return typeof window < "u";
|
|
2418
2418
|
}
|
|
2419
|
-
function
|
|
2420
|
-
return
|
|
2419
|
+
function vn() {
|
|
2420
|
+
return gn() ? document.dir === void 0 ? document.getElementsByTagName("html")[0].getAttribute("dir") : document.dir : hn;
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2423
|
-
if (!
|
|
2422
|
+
function yn(e, t) {
|
|
2423
|
+
if (!_n) {
|
|
2424
2424
|
t();
|
|
2425
2425
|
return;
|
|
2426
2426
|
}
|
|
2427
2427
|
window.addEventListener(e, t);
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2430
|
-
|
|
2429
|
+
function bn(e, t) {
|
|
2430
|
+
_n && window.removeEventListener(e, t);
|
|
2431
2431
|
}
|
|
2432
2432
|
//#endregion
|
|
2433
2433
|
//#region src/components/grid-layout/helpers/utils.ts
|
|
2434
|
-
var $ = (e) => typeof e == "number" ? e : parseFloat(e) || 0,
|
|
2435
|
-
function
|
|
2434
|
+
var $ = (e) => typeof e == "number" ? e : parseFloat(e) || 0, xn = (e) => typeof e == "string" && (e.includes("px") || e.includes("calc") || e.includes("grow") || e.includes("%"));
|
|
2435
|
+
function Sn(e) {
|
|
2436
2436
|
let t = 0;
|
|
2437
2437
|
for (let n = 0, r = e.length; n < r; n++) {
|
|
2438
2438
|
let r = e[n], i = r.y ?? 0, a = r.h ?? 0, o = $(i) + $(a);
|
|
@@ -2440,69 +2440,69 @@ function Qt(e) {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
return t;
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2443
|
+
function Cn(e) {
|
|
2444
2444
|
return JSON.parse(JSON.stringify(e));
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2446
|
+
function wn(e) {
|
|
2447
2447
|
let t = Array(e.length);
|
|
2448
|
-
for (let n = 0, r = e.length; n < r; n++) t[n] =
|
|
2448
|
+
for (let n = 0, r = e.length; n < r; n++) t[n] = Cn(e[n]);
|
|
2449
2449
|
return t;
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2451
|
+
function Tn(e, t) {
|
|
2452
2452
|
if (e === t) return !1;
|
|
2453
2453
|
let n = $(e.x), r = $(e.y), i = $(e.w), a = $(e.h), o = $(t.x), s = $(t.y), c = $(t.w), l = $(t.h);
|
|
2454
2454
|
return !(n + i <= o || n >= o + c || r + a <= s || r >= s + l);
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2457
|
-
let n =
|
|
2456
|
+
function En(e, t) {
|
|
2457
|
+
let n = Mn(e), r = zn(e), i = Array(e.length);
|
|
2458
2458
|
for (let a = 0, o = r.length; a < o; a++) {
|
|
2459
2459
|
let o = r[a];
|
|
2460
|
-
o.static || (o =
|
|
2460
|
+
o.static || (o = Dn(n, o, t), n.push(o)), i[e.indexOf(o)] = o, o.moved = !1;
|
|
2461
2461
|
}
|
|
2462
2462
|
return i;
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2465
|
-
if (n && !
|
|
2464
|
+
function Dn(e, t, n) {
|
|
2465
|
+
if (n && !xn(t.y) && t.top_i === void 0 && t.left_i === void 0) for (; $(t.y) > 0 && !An(e, t);) t.y = $(t.y) - 1;
|
|
2466
2466
|
let r = {};
|
|
2467
|
-
for (; (r =
|
|
2467
|
+
for (; (r = An(e, t)) && !(xn(t.y) || t.top_i !== void 0 || t.left_i !== void 0);) t.y = $(r.y) + $(r.h);
|
|
2468
2468
|
return t;
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2471
|
-
let n =
|
|
2470
|
+
function On(e, t) {
|
|
2471
|
+
let n = Mn(e);
|
|
2472
2472
|
for (let r = 0, i = e.length; r < i; r++) {
|
|
2473
2473
|
let i = e[r], a = $(i.x), o = $(i.w);
|
|
2474
|
-
if (a + o > t.cols && !
|
|
2475
|
-
else for (;
|
|
2474
|
+
if (a + o > t.cols && !xn(i.x) && !xn(i.w) && i.left_i === void 0 && (i.x = t.cols - o), a < 0 && !xn(i.x) && i.left_i === void 0 && (i.x = 0, i.w = t.cols), !i.static) n.push(i);
|
|
2475
|
+
else for (; An(n, i) && !(xn(i.y) || i.top_i !== void 0 || i.left_i !== void 0);) i.y = $(i.y) + 1;
|
|
2476
2476
|
}
|
|
2477
2477
|
return e;
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2479
|
+
function kn(e, t) {
|
|
2480
2480
|
for (let n = 0, r = e.length; n < r; n++) if (e[n].i === t) return e[n];
|
|
2481
2481
|
}
|
|
2482
|
-
function
|
|
2483
|
-
for (let n = 0, r = e.length; n < r; n++) if (
|
|
2482
|
+
function An(e, t) {
|
|
2483
|
+
for (let n = 0, r = e.length; n < r; n++) if (Tn(e[n], t)) return e[n];
|
|
2484
2484
|
}
|
|
2485
|
-
function
|
|
2486
|
-
return e.filter((e) =>
|
|
2485
|
+
function jn(e, t) {
|
|
2486
|
+
return e.filter((e) => Tn(e, t));
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2488
|
+
function Mn(e) {
|
|
2489
2489
|
return e.filter((e) => e.static);
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function Nn(e, t, n, r, i, a = !1) {
|
|
2492
2492
|
if (t.static) return e;
|
|
2493
2493
|
let o = t.x, s = t.y, c = r && $(t.y) > r;
|
|
2494
2494
|
typeof n == "number" && (t.x = n), typeof r == "number" && (t.y = r), t.moved = !0;
|
|
2495
|
-
let l =
|
|
2495
|
+
let l = zn(e);
|
|
2496
2496
|
c && (l = l.reverse());
|
|
2497
|
-
let u =
|
|
2497
|
+
let u = jn(l, t);
|
|
2498
2498
|
if (a && u.length) return t.x = o, t.y = s, t.moved = !1, e;
|
|
2499
2499
|
for (let n = 0, r = u.length; n < r; n++) {
|
|
2500
2500
|
let r = u[n];
|
|
2501
|
-
r.moved || $(t.y) > $(r.y) && $(t.y) - $(r.y) > $(r.h) / 4 || (e = r.static ?
|
|
2501
|
+
r.moved || $(t.y) > $(r.y) && $(t.y) - $(r.y) > $(r.h) / 4 || (e = r.static ? Pn(e, r, t, i) : Pn(e, t, r, i));
|
|
2502
2502
|
}
|
|
2503
2503
|
return e;
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function Pn(e, t, n, r) {
|
|
2506
2506
|
if (r) {
|
|
2507
2507
|
let r = {
|
|
2508
2508
|
x: n.x,
|
|
@@ -2511,11 +2511,11 @@ function dn(e, t, n, r) {
|
|
|
2511
2511
|
h: n.h,
|
|
2512
2512
|
i: "-1"
|
|
2513
2513
|
};
|
|
2514
|
-
if (r.y = Math.max($(t.y) - $(n.h), 0), !
|
|
2514
|
+
if (r.y = Math.max($(t.y) - $(n.h), 0), !An(e, r)) return Nn(e, n, void 0, r.y, !1);
|
|
2515
2515
|
}
|
|
2516
|
-
return
|
|
2516
|
+
return Nn(e, n, void 0, $(n.y) + 1, !1);
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function Fn(e, t, n, r) {
|
|
2519
2519
|
let i = typeof t == "number" ? t + "px" : t, a = typeof e == "number" ? (e < 0 ? 0 : e) + "px" : e, o = "translate3d(" + i + "," + a + ", 0)";
|
|
2520
2520
|
return {
|
|
2521
2521
|
transform: o,
|
|
@@ -2528,7 +2528,7 @@ function fn(e, t, n, r) {
|
|
|
2528
2528
|
position: "absolute"
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2531
|
+
function In(e, t, n, r) {
|
|
2532
2532
|
let i = typeof t == "number" ? t * -1 + "px" : "calc(" + t + " * -1)", a = typeof e == "number" ? (e < 0 ? 0 : e) + "px" : e, o = "translate3d(" + i + "," + a + ", 0)";
|
|
2533
2533
|
return {
|
|
2534
2534
|
transform: o,
|
|
@@ -2541,7 +2541,7 @@ function pn(e, t, n, r) {
|
|
|
2541
2541
|
position: "absolute"
|
|
2542
2542
|
};
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2544
|
+
function Ln(e, t, n, r) {
|
|
2545
2545
|
return {
|
|
2546
2546
|
top: typeof e == "number" ? e + "px" : e,
|
|
2547
2547
|
left: typeof t == "number" ? t + "px" : t,
|
|
@@ -2550,7 +2550,7 @@ function mn(e, t, n, r) {
|
|
|
2550
2550
|
position: "absolute"
|
|
2551
2551
|
};
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function Rn(e, t, n, r) {
|
|
2554
2554
|
return {
|
|
2555
2555
|
top: typeof e == "number" ? e + "px" : e,
|
|
2556
2556
|
right: typeof t == "number" ? t + "px" : t,
|
|
@@ -2559,13 +2559,13 @@ function hn(e, t, n, r) {
|
|
|
2559
2559
|
position: "absolute"
|
|
2560
2560
|
};
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2562
|
+
function zn(e) {
|
|
2563
2563
|
return [...e].sort((e, t) => {
|
|
2564
2564
|
let n = $(e.x), r = $(e.y), i = $(t.x), a = $(t.y);
|
|
2565
2565
|
return r === a && n === i ? 0 : r > a || r === a && n > i ? 1 : -1;
|
|
2566
2566
|
});
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function Bn(e, t = "Layout") {
|
|
2569
2569
|
let n = [
|
|
2570
2570
|
"x",
|
|
2571
2571
|
"y",
|
|
@@ -2586,24 +2586,24 @@ function _n(e, t = "Layout") {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
//#endregion
|
|
2588
2588
|
//#region src/components/grid-layout/helpers/responsive-utils.ts
|
|
2589
|
-
function
|
|
2589
|
+
function Vn(e) {
|
|
2590
2590
|
return Object.keys(e).sort((t, n) => e[t] - e[n]);
|
|
2591
2591
|
}
|
|
2592
|
-
function
|
|
2593
|
-
let n =
|
|
2592
|
+
function Hn(e, t) {
|
|
2593
|
+
let n = Vn(e), r = n[0];
|
|
2594
2594
|
for (let i = 1, a = n.length; i < a; i++) {
|
|
2595
2595
|
let a = n[i];
|
|
2596
2596
|
t > e[a] && (r = a);
|
|
2597
2597
|
}
|
|
2598
2598
|
return r;
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2600
|
+
function Un(e, t) {
|
|
2601
2601
|
if (!t[e]) throw Error("ResponsiveGridLayout: `cols` entry for breakpoint " + e + " is missing!");
|
|
2602
2602
|
return t[e];
|
|
2603
2603
|
}
|
|
2604
|
-
function
|
|
2605
|
-
if (t[r]) return
|
|
2606
|
-
let s = e, c =
|
|
2604
|
+
function Wn(e, t, n, r, i, a, o) {
|
|
2605
|
+
if (t[r]) return wn(t[r]);
|
|
2606
|
+
let s = e, c = Vn(n), l = c.slice(c.indexOf(r));
|
|
2607
2607
|
for (let e = 0, n = l.length; e < n; e++) {
|
|
2608
2608
|
let n = l[e];
|
|
2609
2609
|
if (t[n]) {
|
|
@@ -2611,11 +2611,11 @@ function xn(e, t, n, r, i, a, o) {
|
|
|
2611
2611
|
break;
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
|
-
return s =
|
|
2614
|
+
return s = wn(s || []), En(On(s, { cols: a }), o);
|
|
2615
2615
|
}
|
|
2616
2616
|
//#endregion
|
|
2617
2617
|
//#region src/components/grid-layout/helpers/draggable-utils.ts
|
|
2618
|
-
function
|
|
2618
|
+
function Gn(e) {
|
|
2619
2619
|
let t = e.target.offsetParent || document.body, n = t === document.body ? {
|
|
2620
2620
|
left: 0,
|
|
2621
2621
|
top: 0
|
|
@@ -2625,14 +2625,14 @@ function Sn(e) {
|
|
|
2625
2625
|
y: e.clientY + t.scrollTop - n.top
|
|
2626
2626
|
};
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2629
|
-
return
|
|
2628
|
+
function Kn(e) {
|
|
2629
|
+
return Gn(e);
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function qn(e) {
|
|
2632
2632
|
return typeof e == "number" && !isNaN(e);
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2635
|
-
return
|
|
2634
|
+
function Jn(e, t, n, r) {
|
|
2635
|
+
return qn(e) ? {
|
|
2636
2636
|
deltaX: n - e,
|
|
2637
2637
|
deltaY: r - t,
|
|
2638
2638
|
lastX: e,
|
|
@@ -2650,7 +2650,7 @@ function Tn(e, t, n, r) {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
//#endregion
|
|
2652
2652
|
//#region src/components/grid-layout/components/grid-item.vue
|
|
2653
|
-
var
|
|
2653
|
+
var Yn = /* @__PURE__ */ V({
|
|
2654
2654
|
name: "GridItem",
|
|
2655
2655
|
__name: "grid-item",
|
|
2656
2656
|
props: {
|
|
@@ -2691,26 +2691,26 @@ var En = /* @__PURE__ */ z({
|
|
|
2691
2691
|
"moved"
|
|
2692
2692
|
],
|
|
2693
2693
|
setup(e, { expose: t, emit: n }) {
|
|
2694
|
-
let r = e, i = n, a =
|
|
2695
|
-
"vue-resizable":
|
|
2694
|
+
let r = e, i = n, a = Ae("eventBus"), o = Ae("usePercentages", !1), s = Ae("layout"), c = G(null), l = G(null), u = G(1), d = G(100), f = G(100), p = G(10), m = G([10, 10]), h = G(Infinity), g = G(null), _ = G(null), v = G(!0), y = G(!1), b = G(null), x = G(!1), S = G(null), ee = G(NaN), C = G(NaN), w = G(NaN), te = G(NaN), ne = G({}), re = G(!1), ie = G(!1), ae = G(!1), oe = G(null), se = G(null), T = G(null), ce = G(null), E = G(r.x), D = G(r.y), O = G(r.w), k = G(r.h), le = G(null), A = (e) => typeof e == "number" ? e : parseFloat(e) || 0, ue = (e, t) => e == null ? "0%" : typeof e == "number" ? e + "%" : e.endsWith("%") || e.endsWith("px") || e.includes("calc") ? e : e === "grow" ? t === void 0 ? "100%" : `calc(100% - ${typeof t == "number" ? t + "%" : t})` : e.includes("%") || e.includes("px") || e.includes("calc") ? e : e + "%", de = P(() => r.usePercentages === null ? o : r.usePercentages), fe = P(() => _.value && !r.static), pe = P(() => (g.value || _.value) && !r.static), me = P(() => navigator.userAgent.toLowerCase().indexOf("android") !== -1), j = P(() => Oe()?.parent?.proxy?.isMirrored ? !re.value : re.value), he = P(() => ({
|
|
2695
|
+
"vue-resizable": fe.value,
|
|
2696
2696
|
static: r.static,
|
|
2697
2697
|
resizing: x.value,
|
|
2698
2698
|
"vue-draggable-dragging": y.value,
|
|
2699
2699
|
cssTransforms: v.value,
|
|
2700
|
-
"render-rtl":
|
|
2700
|
+
"render-rtl": j.value,
|
|
2701
2701
|
"disable-userselect": y.value,
|
|
2702
|
-
"no-touch":
|
|
2703
|
-
})),
|
|
2704
|
-
if (
|
|
2702
|
+
"no-touch": me.value && pe.value
|
|
2703
|
+
})), ge = P(() => j.value ? "vue-resizable-handle vue-rtl-resizable-handle" : "vue-resizable-handle"), _e = () => (d.value - (m.value[0] || 10) * (u.value + 1)) / u.value, ve = (e, t, n, r) => {
|
|
2704
|
+
if (de.value) {
|
|
2705
2705
|
let i = {
|
|
2706
|
-
width:
|
|
2707
|
-
height:
|
|
2708
|
-
top:
|
|
2706
|
+
width: ue(n, e),
|
|
2707
|
+
height: ue(r, t),
|
|
2708
|
+
top: ue(t)
|
|
2709
2709
|
};
|
|
2710
|
-
return
|
|
2710
|
+
return j.value ? i.right = ue(e) : i.left = ue(e), i;
|
|
2711
2711
|
}
|
|
2712
|
-
let i =
|
|
2713
|
-
return a =
|
|
2712
|
+
let i = _e(), a = null, o = A(e), s = A(t), c = A(n), l = A(r);
|
|
2713
|
+
return a = j.value ? {
|
|
2714
2714
|
right: typeof e == "string" && (e.includes("calc") || e.includes("px")) ? e : Math.round(i * o + (o + 1) * m.value[0]),
|
|
2715
2715
|
top: typeof t == "string" && (t.includes("calc") || t.includes("px")) ? t : Math.round(p.value * s + (s + 1) * m.value[1]),
|
|
2716
2716
|
width: typeof n == "string" && (n.includes("calc") || n.includes("px")) ? n : c === Infinity ? c : Math.round(i * c + Math.max(0, c - 1) * m.value[0]),
|
|
@@ -2721,31 +2721,31 @@ var En = /* @__PURE__ */ z({
|
|
|
2721
2721
|
width: typeof n == "string" && (n.includes("calc") || n.includes("px")) ? n : c === Infinity ? c : Math.round(i * c + Math.max(0, c - 1) * m.value[0]),
|
|
2722
2722
|
height: typeof r == "string" && (r.includes("calc") || r.includes("px")) ? r : l === Infinity ? l : Math.round(p.value * l + Math.max(0, l - 1) * m.value[1])
|
|
2723
2723
|
}, a;
|
|
2724
|
-
},
|
|
2724
|
+
}, ye = (e, t) => {
|
|
2725
2725
|
if (!s) return 0;
|
|
2726
2726
|
let n = s.find((t) => t.i === e);
|
|
2727
2727
|
if (!n) return 0;
|
|
2728
2728
|
if (t === "y") {
|
|
2729
2729
|
if (n.top_i !== void 0 && n.top_i !== null) {
|
|
2730
2730
|
let e = s.find((e) => e.i === n.top_i);
|
|
2731
|
-
return `calc(${
|
|
2731
|
+
return `calc(${ue(ye(n.top_i, "y"))} + ${ue(e?.h ?? 0)})`;
|
|
2732
2732
|
}
|
|
2733
2733
|
return n.y ?? 0;
|
|
2734
2734
|
} else {
|
|
2735
2735
|
if (n.left_i !== void 0 && n.left_i !== null) {
|
|
2736
2736
|
let e = s.find((e) => e.i === n.left_i);
|
|
2737
|
-
return `calc(${
|
|
2737
|
+
return `calc(${ue(ye(n.left_i, "x"))} + ${ue(e?.w ?? 0)})`;
|
|
2738
2738
|
}
|
|
2739
2739
|
return n.x ?? 0;
|
|
2740
2740
|
}
|
|
2741
|
-
},
|
|
2742
|
-
if (
|
|
2741
|
+
}, M = () => {
|
|
2742
|
+
if (de.value) E.value = r.x, O.value = r.w;
|
|
2743
2743
|
else {
|
|
2744
|
-
let e =
|
|
2745
|
-
e + t > u.value ? (
|
|
2744
|
+
let e = A(r.x), t = A(r.w);
|
|
2745
|
+
e + t > u.value ? (E.value = 0, O.value = t > u.value ? u.value : t) : (E.value = r.x, O.value = r.w);
|
|
2746
2746
|
}
|
|
2747
|
-
let e =
|
|
2748
|
-
y.value && (e.top = b.value.top, typeof e.top == "number" && (e.top += "px"),
|
|
2747
|
+
let e = ve(ye(String(r.i), "x"), ye(String(r.i), "y"), O.value, k.value);
|
|
2748
|
+
y.value && (e.top = b.value.top, typeof e.top == "number" && (e.top += "px"), j.value ? (e.right = b.value.left, typeof e.right == "number" && (e.right += "px")) : (e.left = b.value.left, typeof e.left == "number" && (e.left += "px"))), x.value && (e.width = S.value.width, typeof e.width == "number" && (e.width += "px"), e.height = S.value.height, typeof e.height == "number" && (e.height += "px"));
|
|
2749
2749
|
let t = null;
|
|
2750
2750
|
if (v.value && (y.value || x.value)) {
|
|
2751
2751
|
let n = (e, t) => {
|
|
@@ -2759,8 +2759,8 @@ var En = /* @__PURE__ */ z({
|
|
|
2759
2759
|
}
|
|
2760
2760
|
return parseFloat(e) || 0;
|
|
2761
2761
|
}, r = n(e.top, f.value), i = n(e.width, d.value), a = n(e.height, f.value);
|
|
2762
|
-
t =
|
|
2763
|
-
} else t = v.value && !
|
|
2762
|
+
t = j.value ? In(r, n(e.right, d.value), i, a) : Fn(r, n(e.left, d.value), i, a);
|
|
2763
|
+
} else t = v.value && !de.value ? j.value ? In(e.top, e.right, e.width, e.height) : Fn(e.top, e.left, e.width, e.height) : j.value ? Rn(e.top, e.right, e.width, e.height) : Ln(e.top, e.left, e.width, e.height);
|
|
2764
2764
|
for (let e of [
|
|
2765
2765
|
"top",
|
|
2766
2766
|
"left",
|
|
@@ -2768,11 +2768,11 @@ var En = /* @__PURE__ */ z({
|
|
|
2768
2768
|
"width",
|
|
2769
2769
|
"height"
|
|
2770
2770
|
]) t[e] !== void 0 && typeof t[e] == "number" && (t[e] += "px");
|
|
2771
|
-
|
|
2772
|
-
},
|
|
2771
|
+
ne.value = t;
|
|
2772
|
+
}, be = () => {
|
|
2773
2773
|
let e = {};
|
|
2774
2774
|
for (let t of ["width", "height"]) {
|
|
2775
|
-
let n =
|
|
2775
|
+
let n = ne.value[t];
|
|
2776
2776
|
if (typeof n == "string" && (n.includes("calc") || n.includes("%"))) if (c.value) n = t === "width" ? c.value.offsetWidth + "px" : c.value.offsetHeight + "px";
|
|
2777
2777
|
else return;
|
|
2778
2778
|
let r = String(n).match(/^(\d+(\.\d+)?)px$/);
|
|
@@ -2780,35 +2780,35 @@ var En = /* @__PURE__ */ z({
|
|
|
2780
2780
|
e[t] = r[1];
|
|
2781
2781
|
}
|
|
2782
2782
|
i("container-resized", r.i, r.h, r.w, e.height, e.width);
|
|
2783
|
-
},
|
|
2784
|
-
if (
|
|
2783
|
+
}, xe = (e, t) => {
|
|
2784
|
+
if (de.value) {
|
|
2785
2785
|
let n = t / d.value * 100, r = e / f.value * 100;
|
|
2786
|
-
return n = Math.max(Math.min(n, 100 -
|
|
2786
|
+
return n = Math.max(Math.min(n, 100 - A(O.value)), 0), r = Math.max(Math.min(r, 100 - A(k.value)), 0), {
|
|
2787
2787
|
x: n,
|
|
2788
2788
|
y: r
|
|
2789
2789
|
};
|
|
2790
2790
|
}
|
|
2791
|
-
let n =
|
|
2792
|
-
return r = Math.max(Math.min(r, u.value -
|
|
2791
|
+
let n = _e(), r = Math.round((t - m.value[0]) / (n + m.value[0])), i = Math.round((e - m.value[1]) / (p.value + m.value[1]));
|
|
2792
|
+
return r = Math.max(Math.min(r, u.value - A(O.value)), 0), i = Math.max(Math.min(i, h.value - A(k.value)), 0), {
|
|
2793
2793
|
x: r,
|
|
2794
2794
|
y: i
|
|
2795
2795
|
};
|
|
2796
|
-
},
|
|
2797
|
-
if (
|
|
2796
|
+
}, Se = (e, t, n = !1) => {
|
|
2797
|
+
if (de.value) {
|
|
2798
2798
|
let n = t / d.value * 100, r = e / f.value * 100;
|
|
2799
|
-
return n = Math.max(Math.min(n, 100 -
|
|
2799
|
+
return n = Math.max(Math.min(n, 100 - A(E.value)), 0), r = Math.max(Math.min(r, 100 - A(D.value)), 0), {
|
|
2800
2800
|
w: n,
|
|
2801
2801
|
h: r
|
|
2802
2802
|
};
|
|
2803
2803
|
}
|
|
2804
|
-
let r =
|
|
2805
|
-
return a = n ? Math.ceil((e + m.value[1]) / (p.value + m.value[1])) : Math.round((e + m.value[1]) / (p.value + m.value[1])), i = Math.max(Math.min(i, u.value -
|
|
2804
|
+
let r = _e(), i = Math.round((t + m.value[0]) / (r + m.value[0])), a = 0;
|
|
2805
|
+
return a = n ? Math.ceil((e + m.value[1]) / (p.value + m.value[1])) : Math.round((e + m.value[1]) / (p.value + m.value[1])), i = Math.max(Math.min(i, u.value - A(E.value)), 0), a = Math.max(Math.min(a, h.value - A(D.value)), 0), {
|
|
2806
2806
|
w: i,
|
|
2807
2807
|
h: a
|
|
2808
2808
|
};
|
|
2809
|
-
},
|
|
2809
|
+
}, Ce = (e) => {
|
|
2810
2810
|
if (r.static || x.value) return;
|
|
2811
|
-
let t =
|
|
2811
|
+
let t = Kn(e);
|
|
2812
2812
|
if (t === null) return;
|
|
2813
2813
|
let { x: n, y: o } = t, s = {
|
|
2814
2814
|
top: 0,
|
|
@@ -2816,42 +2816,42 @@ var En = /* @__PURE__ */ z({
|
|
|
2816
2816
|
};
|
|
2817
2817
|
switch (e.type) {
|
|
2818
2818
|
case "dragstart": {
|
|
2819
|
-
|
|
2819
|
+
T.value = E.value, ce.value = D.value;
|
|
2820
2820
|
let t = e.target.offsetParent.getBoundingClientRect(), n = e.target.getBoundingClientRect();
|
|
2821
|
-
|
|
2821
|
+
j.value ? s.left = (n.right - t.right) * -1 : s.left = n.left - t.left, s.top = n.top - t.top, b.value = s, y.value = !0;
|
|
2822
2822
|
break;
|
|
2823
2823
|
}
|
|
2824
2824
|
case "dragend": {
|
|
2825
2825
|
if (!y.value) return;
|
|
2826
2826
|
let t = e.target.offsetParent.getBoundingClientRect(), n = e.target.getBoundingClientRect();
|
|
2827
|
-
|
|
2827
|
+
j.value ? s.left = (n.right - t.right) * -1 : s.left = n.left - t.left, s.top = n.top - t.top, b.value = null, y.value = !1;
|
|
2828
2828
|
break;
|
|
2829
2829
|
}
|
|
2830
2830
|
case "dragmove": {
|
|
2831
|
-
let e =
|
|
2832
|
-
|
|
2831
|
+
let e = Jn(ee.value, C.value, n, o);
|
|
2832
|
+
j.value ? s.left = b.value.left - e.deltaX : s.left = b.value.left + e.deltaX, s.top = b.value.top + e.deltaY, b.value = s;
|
|
2833
2833
|
break;
|
|
2834
2834
|
}
|
|
2835
2835
|
}
|
|
2836
|
-
let c =
|
|
2837
|
-
ee.value = n, C.value = o, (
|
|
2836
|
+
let c = xe(s.top, s.left);
|
|
2837
|
+
ee.value = n, C.value = o, (A(E.value) !== c.x || A(D.value) !== c.y) && i("move", r.i, c.x, c.y), e.type === "dragend" && (A(T.value) !== c.x || A(ce.value) !== c.y) && i("moved", r.i, c.x, c.y), de.value ? a.emit("dragEvent", {
|
|
2838
2838
|
eventType: e.type,
|
|
2839
2839
|
i: r.i,
|
|
2840
2840
|
x: c.x,
|
|
2841
2841
|
y: c.y,
|
|
2842
|
-
h:
|
|
2843
|
-
w:
|
|
2842
|
+
h: k.value,
|
|
2843
|
+
w: O.value
|
|
2844
2844
|
}) : a.emit("dragEvent", {
|
|
2845
2845
|
eventType: e.type,
|
|
2846
2846
|
i: r.i,
|
|
2847
2847
|
x: c.x,
|
|
2848
2848
|
y: c.y,
|
|
2849
|
-
h:
|
|
2850
|
-
w:
|
|
2849
|
+
h: A(k.value),
|
|
2850
|
+
w: A(O.value)
|
|
2851
2851
|
});
|
|
2852
|
-
},
|
|
2852
|
+
}, we = (e) => {
|
|
2853
2853
|
if (r.static) return;
|
|
2854
|
-
let t =
|
|
2854
|
+
let t = Kn(e);
|
|
2855
2855
|
if (t == null) return;
|
|
2856
2856
|
let { x: n, y: o } = t, s = {
|
|
2857
2857
|
width: 0,
|
|
@@ -2859,46 +2859,46 @@ var En = /* @__PURE__ */ z({
|
|
|
2859
2859
|
}, c = null;
|
|
2860
2860
|
switch (e.type) {
|
|
2861
2861
|
case "resizestart": {
|
|
2862
|
-
|
|
2862
|
+
oe.value = O.value, se.value = k.value, c = ve(E.value, D.value, O.value, k.value);
|
|
2863
2863
|
let e = (e, t) => typeof e == "number" ? e : typeof e == "string" ? e.endsWith("%") ? parseFloat(e) / 100 * t : e.endsWith("px") ? parseFloat(e) : parseFloat(e) || 0 : 0;
|
|
2864
2864
|
s.width = e(c.width, d.value), s.height = e(c.height, f.value), S.value = s, x.value = !0;
|
|
2865
2865
|
break;
|
|
2866
2866
|
}
|
|
2867
2867
|
case "resizemove": {
|
|
2868
|
-
let e =
|
|
2869
|
-
|
|
2868
|
+
let e = Jn(w.value, te.value, n, o);
|
|
2869
|
+
j.value ? s.width = S.value.width - e.deltaX : s.width = S.value.width + e.deltaX, s.height = S.value.height + e.deltaY, S.value = s;
|
|
2870
2870
|
break;
|
|
2871
2871
|
}
|
|
2872
2872
|
case "resizeend": {
|
|
2873
|
-
c =
|
|
2873
|
+
c = ve(E.value, D.value, O.value, k.value);
|
|
2874
2874
|
let e = (e, t) => typeof e == "number" ? e : typeof e == "string" ? e.endsWith("%") ? parseFloat(e) / 100 * t : e.endsWith("px") ? parseFloat(e) : parseFloat(e) || 0 : 0;
|
|
2875
2875
|
s.width = e(c.width, d.value), s.height = e(c.height, f.value), S.value = null, x.value = !1;
|
|
2876
2876
|
break;
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
|
-
let l =
|
|
2880
|
-
|
|
2879
|
+
let l = Se(s.height, s.width);
|
|
2880
|
+
de.value || (l.w < r.minW && (l.w = r.minW), l.w > r.maxW && (l.w = r.maxW), l.h < r.minH && (l.h = r.minH), l.h > r.maxH && (l.h = r.maxH), l.h < 1 && (l.h = 1), l.w < 1 && (l.w = 1)), w.value = n, te.value = o, (A(O.value) !== l.w || A(k.value) !== l.h) && i("resize", r.i, l.h, l.w, s.height, s.width), e.type === "resizeend" && (A(oe.value) !== l.w || A(se.value) !== l.h) && i("resized", r.i, l.h, l.w, s.height, s.width), a.emit("resizeEvent", {
|
|
2881
2881
|
eventType: e.type,
|
|
2882
2882
|
i: r.i,
|
|
2883
|
-
x:
|
|
2884
|
-
y:
|
|
2883
|
+
x: A(E.value),
|
|
2884
|
+
y: A(D.value),
|
|
2885
2885
|
h: l.h,
|
|
2886
2886
|
w: l.w
|
|
2887
2887
|
});
|
|
2888
|
-
},
|
|
2889
|
-
if ((
|
|
2888
|
+
}, Te = () => {
|
|
2889
|
+
if ((le.value === null || le.value === void 0) && (le.value = gt(c.value)), g.value && !r.static) {
|
|
2890
2890
|
let e = {
|
|
2891
2891
|
ignoreFrom: r.dragIgnoreFrom,
|
|
2892
2892
|
allowFrom: r.dragAllowFrom
|
|
2893
2893
|
};
|
|
2894
|
-
|
|
2895
|
-
|
|
2894
|
+
le.value.draggable(e), ie.value || (ie.value = !0, le.value.on("dragstart dragmove dragend", (e) => {
|
|
2895
|
+
Ce(e);
|
|
2896
2896
|
}));
|
|
2897
|
-
} else
|
|
2898
|
-
},
|
|
2899
|
-
if ((
|
|
2897
|
+
} else le.value.draggable({ enabled: !1 });
|
|
2898
|
+
}, N = () => {
|
|
2899
|
+
if ((le.value === null || le.value === void 0) && (le.value = gt(c.value)), _.value && !r.static) {
|
|
2900
2900
|
let e, t;
|
|
2901
|
-
if (
|
|
2901
|
+
if (de.value) e = {
|
|
2902
2902
|
width: r.maxW / 100 * d.value,
|
|
2903
2903
|
height: r.maxH / 100 * f.value
|
|
2904
2904
|
}, t = {
|
|
@@ -2906,7 +2906,7 @@ var En = /* @__PURE__ */ z({
|
|
|
2906
2906
|
height: r.minH / 100 * f.value
|
|
2907
2907
|
};
|
|
2908
2908
|
else {
|
|
2909
|
-
let n =
|
|
2909
|
+
let n = ve(0, 0, r.maxW, r.maxH), i = ve(0, 0, r.minW, r.minH);
|
|
2910
2910
|
e = {
|
|
2911
2911
|
width: parseFloat(n.width),
|
|
2912
2912
|
height: parseFloat(n.height)
|
|
@@ -2919,8 +2919,8 @@ var En = /* @__PURE__ */ z({
|
|
|
2919
2919
|
preserveAspectRatio: !0,
|
|
2920
2920
|
edges: {
|
|
2921
2921
|
left: !1,
|
|
2922
|
-
right: "." +
|
|
2923
|
-
bottom: "." +
|
|
2922
|
+
right: "." + ge.value,
|
|
2923
|
+
bottom: "." + ge.value,
|
|
2924
2924
|
top: !1
|
|
2925
2925
|
},
|
|
2926
2926
|
ignoreFrom: r.resizeIgnoreFrom,
|
|
@@ -2929,103 +2929,103 @@ var En = /* @__PURE__ */ z({
|
|
|
2929
2929
|
max: e
|
|
2930
2930
|
}
|
|
2931
2931
|
};
|
|
2932
|
-
|
|
2933
|
-
|
|
2932
|
+
le.value.resizable(n), ae.value || (ae.value = !0, le.value.on("resizestart resizemove resizeend", (e) => {
|
|
2933
|
+
we(e);
|
|
2934
2934
|
}));
|
|
2935
|
-
} else
|
|
2936
|
-
},
|
|
2935
|
+
} else le.value.resizable({ enabled: !1 });
|
|
2936
|
+
}, Ee = (e, t) => {
|
|
2937
2937
|
d.value = e || 100, t != null && (u.value = t), c.value && c.value.parentElement && (f.value = c.value.parentElement.offsetHeight || 100);
|
|
2938
|
-
},
|
|
2939
|
-
|
|
2940
|
-
},
|
|
2941
|
-
if (
|
|
2942
|
-
let e = c.value.firstElementChild.getBoundingClientRect(), t =
|
|
2943
|
-
|
|
2938
|
+
}, De = () => {
|
|
2939
|
+
M();
|
|
2940
|
+
}, F = () => {
|
|
2941
|
+
if (oe.value = O.value, se.value = k.value, c.value && c.value.firstElementChild) {
|
|
2942
|
+
let e = c.value.firstElementChild.getBoundingClientRect(), t = Se(e.height, e.width, !0);
|
|
2943
|
+
de.value || (t.w < r.minW && (t.w = r.minW), t.w > r.maxW && (t.w = r.maxW), t.h < r.minH && (t.h = r.minH), t.h > r.maxH && (t.h = r.maxH), t.h < 1 && (t.h = 1), t.w < 1 && (t.w = 1)), (A(O.value) !== t.w || A(k.value) !== t.h) && i("resize", r.i, t.h, t.w, e.height, e.width), (A(oe.value) !== t.w || A(se.value) !== t.h) && (i("resized", r.i, t.h, t.w, e.height, e.width), a.emit("resizeEvent", {
|
|
2944
2944
|
eventType: "resizeend",
|
|
2945
2945
|
i: r.i,
|
|
2946
|
-
x:
|
|
2947
|
-
y:
|
|
2946
|
+
x: A(E.value),
|
|
2947
|
+
y: A(D.value),
|
|
2948
2948
|
h: t.h,
|
|
2949
2949
|
w: t.w
|
|
2950
2950
|
}));
|
|
2951
2951
|
}
|
|
2952
|
-
},
|
|
2953
|
-
|
|
2954
|
-
},
|
|
2955
|
-
|
|
2956
|
-
},
|
|
2952
|
+
}, R = (e) => {
|
|
2953
|
+
Ee(e);
|
|
2954
|
+
}, z = () => {
|
|
2955
|
+
De();
|
|
2956
|
+
}, B = (e) => {
|
|
2957
2957
|
r.isDraggable === null && (g.value = e);
|
|
2958
|
-
},
|
|
2958
|
+
}, V = (e) => {
|
|
2959
2959
|
r.isResizable === null && (_.value = e);
|
|
2960
|
-
},
|
|
2960
|
+
}, ke = (e) => {
|
|
2961
2961
|
p.value = e;
|
|
2962
|
-
},
|
|
2962
|
+
}, je = (e) => {
|
|
2963
2963
|
h.value = e;
|
|
2964
|
-
},
|
|
2965
|
-
|
|
2966
|
-
},
|
|
2964
|
+
}, H = () => {
|
|
2965
|
+
re.value = vn() === "rtl", De();
|
|
2966
|
+
}, Me = (e) => {
|
|
2967
2967
|
u.value = parseInt(e, 10);
|
|
2968
2968
|
};
|
|
2969
|
-
return
|
|
2970
|
-
let e =
|
|
2971
|
-
u.value = e.colNum, p.value = e.rowHeight, d.value = e.width !== null && e.width !== 0 ? e.width : 100, m.value = e.margin === void 0 ? [10, 10] : e.margin, h.value = e.maxRows, c.value && c.value.parentElement && (f.value = c.value.parentElement.offsetHeight || 100, d.value === 100 && (d.value = c.value.parentElement.offsetWidth || 100)), r.isDraggable === null ? g.value = e.isDraggable : g.value = r.isDraggable, r.isResizable === null ? _.value = e.isResizable : _.value = r.isResizable, v.value = e.useCssTransforms, a.on("updateWidth",
|
|
2972
|
-
}),
|
|
2973
|
-
a.off("updateWidth",
|
|
2969
|
+
return Be(() => {
|
|
2970
|
+
let e = Oe()?.parent?.proxy;
|
|
2971
|
+
u.value = e.colNum, p.value = e.rowHeight, d.value = e.width !== null && e.width !== 0 ? e.width : 100, m.value = e.margin === void 0 ? [10, 10] : e.margin, h.value = e.maxRows, c.value && c.value.parentElement && (f.value = c.value.parentElement.offsetHeight || 100, d.value === 100 && (d.value = c.value.parentElement.offsetWidth || 100)), r.isDraggable === null ? g.value = e.isDraggable : g.value = r.isDraggable, r.isResizable === null ? _.value = e.isResizable : _.value = r.isResizable, v.value = e.useCssTransforms, a.on("updateWidth", R), a.on("compact", z), a.on("setDraggable", B), a.on("setResizable", V), a.on("setRowHeight", ke), a.on("setMaxRows", je), a.on("directionchange", H), a.on("setColNum", Me), re.value = vn() === "rtl", M();
|
|
2972
|
+
}), Re(() => {
|
|
2973
|
+
a.off("updateWidth", R), a.off("compact", z), a.off("setDraggable", B), a.off("setResizable", V), a.off("setRowHeight", ke), a.off("setMaxRows", je), a.off("directionchange", H), a.off("setColNum", Me), le.value && le.value.unset();
|
|
2974
2974
|
}), X(() => r.isDraggable, () => {
|
|
2975
2975
|
g.value = r.isDraggable;
|
|
2976
2976
|
}), X(() => r.static, () => {
|
|
2977
|
-
|
|
2977
|
+
Te(), N();
|
|
2978
2978
|
}), X(g, () => {
|
|
2979
|
-
|
|
2979
|
+
Te();
|
|
2980
2980
|
}), X(() => r.isResizable, () => {
|
|
2981
2981
|
_.value = r.isResizable;
|
|
2982
2982
|
}), X(_, () => {
|
|
2983
|
-
|
|
2983
|
+
N();
|
|
2984
2984
|
}), X(p, () => {
|
|
2985
|
-
|
|
2985
|
+
M(), be();
|
|
2986
2986
|
}), X(u, () => {
|
|
2987
|
-
|
|
2987
|
+
N(), M(), be();
|
|
2988
2988
|
}), X(d, () => {
|
|
2989
|
-
|
|
2989
|
+
N(), M(), be();
|
|
2990
2990
|
}), X(f, () => {
|
|
2991
|
-
|
|
2991
|
+
N(), M(), be();
|
|
2992
2992
|
}), X(() => r.x, (e) => {
|
|
2993
|
-
|
|
2993
|
+
E.value = e, M();
|
|
2994
2994
|
}), X(() => r.y, (e) => {
|
|
2995
|
-
|
|
2995
|
+
D.value = e, M();
|
|
2996
2996
|
}), X(() => r.h, (e) => {
|
|
2997
|
-
|
|
2997
|
+
k.value = e, M();
|
|
2998
2998
|
}), X(() => r.w, (e) => {
|
|
2999
|
-
|
|
3000
|
-
}), X(
|
|
3001
|
-
|
|
2999
|
+
O.value = e, M();
|
|
3000
|
+
}), X(j, () => {
|
|
3001
|
+
N(), M();
|
|
3002
3002
|
}), X(() => r.minH, () => {
|
|
3003
|
-
|
|
3003
|
+
N();
|
|
3004
3004
|
}), X(() => r.maxH, () => {
|
|
3005
|
-
|
|
3005
|
+
N();
|
|
3006
3006
|
}), X(() => r.minW, () => {
|
|
3007
|
-
|
|
3007
|
+
N();
|
|
3008
3008
|
}), X(() => r.maxW, () => {
|
|
3009
|
-
|
|
3010
|
-
}), X(() =>
|
|
3011
|
-
!e || e[0] === m.value[0] && e[1] === m.value[1] || (m.value = e.map((e) => Number(e)),
|
|
3009
|
+
N();
|
|
3010
|
+
}), X(() => Oe()?.parent?.proxy?.margin, (e) => {
|
|
3011
|
+
!e || e[0] === m.value[0] && e[1] === m.value[1] || (m.value = e.map((e) => Number(e)), M(), be());
|
|
3012
3012
|
}), t({
|
|
3013
|
-
autoSize:
|
|
3014
|
-
compact:
|
|
3015
|
-
updateWidth:
|
|
3016
|
-
}), (e, t) => (U(),
|
|
3013
|
+
autoSize: F,
|
|
3014
|
+
compact: De,
|
|
3015
|
+
updateWidth: Ee
|
|
3016
|
+
}), (e, t) => (U(), L("div", {
|
|
3017
3017
|
ref_key: "item",
|
|
3018
3018
|
ref: c,
|
|
3019
|
-
class:
|
|
3020
|
-
style:
|
|
3021
|
-
}, [
|
|
3019
|
+
class: Pe(["vue-grid-item", he.value]),
|
|
3020
|
+
style: Fe(ne.value)
|
|
3021
|
+
}, [Ue(e.$slots, "default"), fe.value ? (U(), L("span", {
|
|
3022
3022
|
key: 0,
|
|
3023
3023
|
ref_key: "handle",
|
|
3024
3024
|
ref: l,
|
|
3025
|
-
class:
|
|
3026
|
-
}, null, 2)) :
|
|
3025
|
+
class: Pe(ge.value)
|
|
3026
|
+
}, null, 2)) : I("", !0)], 6));
|
|
3027
3027
|
}
|
|
3028
|
-
}),
|
|
3028
|
+
}), Xn = /* @__PURE__ */ V({
|
|
3029
3029
|
name: "GridLayout",
|
|
3030
3030
|
__name: "grid-layout",
|
|
3031
3031
|
props: {
|
|
@@ -3096,8 +3096,8 @@ var En = /* @__PURE__ */ z({
|
|
|
3096
3096
|
"breakpoint-changed"
|
|
3097
3097
|
],
|
|
3098
3098
|
setup(e, { expose: t, emit: n }) {
|
|
3099
|
-
let r = e, i = n, a =
|
|
3100
|
-
|
|
3099
|
+
let r = e, i = n, a = mt();
|
|
3100
|
+
He("eventBus", a), He("usePercentages", r.usePercentages), He("layout", r.layout);
|
|
3101
3101
|
let o = G(null), s = G(null), c = G(null), l = G({}), u = G(0), d = G(!1), f = W({
|
|
3102
3102
|
x: 0,
|
|
3103
3103
|
y: 0,
|
|
@@ -3110,28 +3110,28 @@ var En = /* @__PURE__ */ z({
|
|
|
3110
3110
|
o.value !== null && o.value !== void 0 && (c.value = o.value.offsetWidth), a.emit("resizeEvent", {});
|
|
3111
3111
|
}, b = () => {
|
|
3112
3112
|
if (r.usePercentages) return "100%";
|
|
3113
|
-
if (r.autoSize) return
|
|
3113
|
+
if (r.autoSize) return Sn(r.layout) * (r.rowHeight + r.margin[1]) + r.margin[1] + "px";
|
|
3114
3114
|
}, x = (e, t, n, o, s, l) => {
|
|
3115
|
-
let u =
|
|
3115
|
+
let u = kn(r.layout, String(t));
|
|
3116
3116
|
u ??= {
|
|
3117
3117
|
x: 0,
|
|
3118
3118
|
y: 0,
|
|
3119
3119
|
w: 0,
|
|
3120
3120
|
h: 0,
|
|
3121
3121
|
i: String(t)
|
|
3122
|
-
}, e === "dragmove" || e === "dragstart" ? (f.i = t, f.x = u.x, f.y = u.y, f.w = l, f.h = s,
|
|
3122
|
+
}, e === "dragmove" || e === "dragstart" ? (f.i = t, f.x = u.x, f.y = u.y, f.w = l, f.h = s, Ne(() => {
|
|
3123
3123
|
d.value = !0;
|
|
3124
|
-
}), a.emit("updateWidth", c.value)) :
|
|
3124
|
+
}), a.emit("updateWidth", c.value)) : Ne(() => {
|
|
3125
3125
|
d.value = !1;
|
|
3126
|
-
}),
|
|
3126
|
+
}), Nn(r.layout, u, n, o, !0, r.preventCollision), En(r.layout, r.verticalCompact), a.emit("compact"), v(), e === "dragend" && i("layout-updated", r.layout);
|
|
3127
3127
|
}, S = () => {
|
|
3128
3128
|
if (!c.value) return;
|
|
3129
|
-
let e =
|
|
3130
|
-
m.value != null && !p.value[m.value] && (p.value[m.value] =
|
|
3131
|
-
let n =
|
|
3132
|
-
p.value[e] = n, m.value !== e && i("breakpoint-changed", e, n), i("update:layout", n), m.value = e, a.emit("setColNum",
|
|
3129
|
+
let e = Hn(r.breakpoints, c.value), t = Un(e, r.cols);
|
|
3130
|
+
m.value != null && !p.value[m.value] && (p.value[m.value] = wn(r.layout));
|
|
3131
|
+
let n = Wn(h.value, p.value, r.breakpoints, e, m.value, t, r.verticalCompact);
|
|
3132
|
+
p.value[e] = n, m.value !== e && i("breakpoint-changed", e, n), i("update:layout", n), m.value = e, a.emit("setColNum", Un(e, r.cols));
|
|
3133
3133
|
}, ee = (e, t, n, o, s, l) => {
|
|
3134
|
-
let u =
|
|
3134
|
+
let u = kn(r.layout, String(t));
|
|
3135
3135
|
u ??= {
|
|
3136
3136
|
h: 0,
|
|
3137
3137
|
w: 0,
|
|
@@ -3141,7 +3141,7 @@ var En = /* @__PURE__ */ z({
|
|
|
3141
3141
|
};
|
|
3142
3142
|
let p = !1;
|
|
3143
3143
|
if (r.preventCollision) {
|
|
3144
|
-
let e =
|
|
3144
|
+
let e = jn(r.layout, {
|
|
3145
3145
|
...u,
|
|
3146
3146
|
w: l,
|
|
3147
3147
|
h: s
|
|
@@ -3153,36 +3153,36 @@ var En = /* @__PURE__ */ z({
|
|
|
3153
3153
|
}), Number.isFinite(t) && (u.w = t - u.x), Number.isFinite(n) && (u.h = n - u.y);
|
|
3154
3154
|
}
|
|
3155
3155
|
}
|
|
3156
|
-
p || (u.w = l, u.h = s), e === "resizestart" || e === "resizemove" ? (f.i = t, f.x = n, f.y = o, f.w = u.w, f.h = u.h,
|
|
3156
|
+
p || (u.w = l, u.h = s), e === "resizestart" || e === "resizemove" ? (f.i = t, f.x = n, f.y = o, f.w = u.w, f.h = u.h, Ne(() => {
|
|
3157
3157
|
d.value = !0;
|
|
3158
|
-
}), a.emit("updateWidth", c.value)) :
|
|
3158
|
+
}), a.emit("updateWidth", c.value)) : Ne(() => {
|
|
3159
3159
|
d.value = !1;
|
|
3160
|
-
}), r.responsive && S(),
|
|
3160
|
+
}), r.responsive && S(), En(r.layout, r.verticalCompact), a.emit("compact"), v(), e === "resizeend" && i("layout-updated", r.layout);
|
|
3161
3161
|
}, C = () => {
|
|
3162
3162
|
p.value = Object.assign({}, r.responsiveLayouts);
|
|
3163
|
-
},
|
|
3163
|
+
}, w = (e, t) => {
|
|
3164
3164
|
let n = e.filter((e) => !t.some((t) => e.i === t.i)), r = t.filter((t) => !e.some((e) => t.i === e.i));
|
|
3165
3165
|
return n.concat(r);
|
|
3166
|
-
},
|
|
3166
|
+
}, te = () => {
|
|
3167
3167
|
if (r.layout !== void 0 && h.value !== null) {
|
|
3168
3168
|
if (r.layout.length !== h.value.length) {
|
|
3169
|
-
let e =
|
|
3169
|
+
let e = w(r.layout, h.value);
|
|
3170
3170
|
e.length > 0 && (r.layout.length > h.value.length ? h.value = h.value.concat(e) : h.value = h.value.filter((t) => !e.some((e) => t.i === e.i))), u.value = r.layout.length, C();
|
|
3171
3171
|
}
|
|
3172
|
-
r.usePercentages,
|
|
3172
|
+
r.usePercentages, En(r.layout, r.verticalCompact), a.emit("updateWidth", c.value), v(), i("layout-updated", r.layout);
|
|
3173
3173
|
}
|
|
3174
|
-
},
|
|
3174
|
+
}, ne = ({ eventType: e, i: t, x: n, y: r, h: i, w: a }) => {
|
|
3175
3175
|
ee(e, t, n, r, i, a);
|
|
3176
|
-
},
|
|
3176
|
+
}, re = ({ eventType: e, i: t, x: n, y: r, h: i, w: a }) => {
|
|
3177
3177
|
x(e, t, n, r, i, a);
|
|
3178
3178
|
};
|
|
3179
|
-
return
|
|
3179
|
+
return Le(() => {
|
|
3180
3180
|
i("layout-before-mount", r.layout);
|
|
3181
|
-
}),
|
|
3182
|
-
a.on("resizeEvent",
|
|
3183
|
-
|
|
3184
|
-
y(), C(),
|
|
3185
|
-
g.value =
|
|
3181
|
+
}), Be(() => {
|
|
3182
|
+
a.on("resizeEvent", ne), a.on("dragEvent", re), i("layout-created", r.layout), i("layout-mounted", r.layout), Ne(() => {
|
|
3183
|
+
Bn(r.layout), h.value = r.layout, r.usePercentages, Ne(() => {
|
|
3184
|
+
y(), C(), yn("resize", y), En(r.layout, r.verticalCompact), i("layout-updated", r.layout), v(), Ne(() => {
|
|
3185
|
+
g.value = ht({
|
|
3186
3186
|
strategy: "scroll",
|
|
3187
3187
|
callOnAdd: !1
|
|
3188
3188
|
}), g.value.listenTo(o.value, () => {
|
|
@@ -3191,18 +3191,18 @@ var En = /* @__PURE__ */ z({
|
|
|
3191
3191
|
});
|
|
3192
3192
|
});
|
|
3193
3193
|
});
|
|
3194
|
-
}),
|
|
3195
|
-
a.off("resizeEvent",
|
|
3194
|
+
}), Re(() => {
|
|
3195
|
+
a.off("resizeEvent", ne), a.off("dragEvent", re), bn("resize", y), g.value && o.value && g.value.uninstall(o.value);
|
|
3196
3196
|
}), X(c, (e, t) => {
|
|
3197
|
-
|
|
3198
|
-
a.emit("updateWidth", c.value), t === null &&
|
|
3197
|
+
Ne(() => {
|
|
3198
|
+
a.emit("updateWidth", c.value), t === null && Ne(() => {
|
|
3199
3199
|
i("layout-ready", r.layout);
|
|
3200
3200
|
}), v();
|
|
3201
3201
|
});
|
|
3202
3202
|
}), X(() => r.layout.length, () => {
|
|
3203
|
-
|
|
3203
|
+
te();
|
|
3204
3204
|
}), X(() => r.layout, () => {
|
|
3205
|
-
|
|
3205
|
+
te();
|
|
3206
3206
|
}), X(() => r.colNum, (e) => {
|
|
3207
3207
|
a.emit("setColNum", e);
|
|
3208
3208
|
}), X(() => r.rowHeight, () => {
|
|
@@ -3217,12 +3217,12 @@ var En = /* @__PURE__ */ z({
|
|
|
3217
3217
|
a.emit("setMaxRows", r.maxRows);
|
|
3218
3218
|
}), X(() => r.margin, () => {
|
|
3219
3219
|
v();
|
|
3220
|
-
}), t({ getLayoutEl: _ }), (e, t) => (U(),
|
|
3220
|
+
}), t({ getLayoutEl: _ }), (e, t) => (U(), L("div", {
|
|
3221
3221
|
ref_key: "item",
|
|
3222
3222
|
ref: o,
|
|
3223
3223
|
class: "vue-grid-layout",
|
|
3224
|
-
style:
|
|
3225
|
-
}, [
|
|
3224
|
+
style: Fe(l.value)
|
|
3225
|
+
}, [Ue(e.$slots, "default"), Je(B(Yn, {
|
|
3226
3226
|
ref_key: "gridItem",
|
|
3227
3227
|
ref: s,
|
|
3228
3228
|
class: "vue-grid-placeholder",
|
|
@@ -3237,16 +3237,16 @@ var En = /* @__PURE__ */ z({
|
|
|
3237
3237
|
"w",
|
|
3238
3238
|
"h",
|
|
3239
3239
|
"i"
|
|
3240
|
-
]), [[
|
|
3240
|
+
]), [[qe, d.value]])], 4));
|
|
3241
3241
|
}
|
|
3242
|
-
}),
|
|
3242
|
+
}), Zn = { class: "item-content" }, Qn = {
|
|
3243
3243
|
key: 1,
|
|
3244
3244
|
class: "text"
|
|
3245
|
-
},
|
|
3245
|
+
}, $n = /*#__PURE__*/ f(/* @__PURE__ */ V({
|
|
3246
3246
|
__name: "gridView",
|
|
3247
3247
|
props: { config: {} },
|
|
3248
3248
|
setup(e) {
|
|
3249
|
-
let t = e, n =
|
|
3249
|
+
let t = e, n = P(() => {
|
|
3250
3250
|
let e = {};
|
|
3251
3251
|
return t.config.items.map((t, n) => {
|
|
3252
3252
|
let r = t.key;
|
|
@@ -3257,8 +3257,8 @@ var En = /* @__PURE__ */ z({
|
|
|
3257
3257
|
config: t
|
|
3258
3258
|
};
|
|
3259
3259
|
});
|
|
3260
|
-
}), r =
|
|
3261
|
-
return
|
|
3260
|
+
}), r = P(() => !!t.config.isBorder);
|
|
3261
|
+
return Be(() => {}), (e, t) => (U(), F(Y(Xn), {
|
|
3262
3262
|
layout: n.value,
|
|
3263
3263
|
"onUpdate:layout": t[0] ||= (e) => n.value = e,
|
|
3264
3264
|
"is-draggable": e.config.isDraggable,
|
|
@@ -3268,7 +3268,7 @@ var En = /* @__PURE__ */ z({
|
|
|
3268
3268
|
"use-css-transforms": "",
|
|
3269
3269
|
"use-percentages": !0
|
|
3270
3270
|
}, {
|
|
3271
|
-
default: Z(() => [(U(!0),
|
|
3271
|
+
default: Z(() => [(U(!0), L(N, null, K(n.value, (t) => (U(), F(Y(Yn), {
|
|
3272
3272
|
x: t.x,
|
|
3273
3273
|
y: t.y,
|
|
3274
3274
|
w: t.w,
|
|
@@ -3276,17 +3276,17 @@ var En = /* @__PURE__ */ z({
|
|
|
3276
3276
|
i: t.i,
|
|
3277
3277
|
key: t.i,
|
|
3278
3278
|
dragAllowFrom: "span",
|
|
3279
|
-
class:
|
|
3279
|
+
class: Pe({
|
|
3280
3280
|
item: !0,
|
|
3281
3281
|
border: r.value
|
|
3282
3282
|
}),
|
|
3283
|
-
style:
|
|
3283
|
+
style: Fe({ padding: e.config.itemPadding || "0" })
|
|
3284
3284
|
}, {
|
|
3285
|
-
default: Z(() => [
|
|
3285
|
+
default: Z(() => [R("div", Zn, [t.config.component ? (U(), F(We(t.config.component), Me({
|
|
3286
3286
|
key: 0,
|
|
3287
3287
|
itemKey: t.config.key,
|
|
3288
3288
|
ref_for: !0
|
|
3289
|
-
}, t.config.props || {}), null, 16, ["itemKey"])) : (U(),
|
|
3289
|
+
}, t.config.props || {}), null, 16, ["itemKey"])) : (U(), L("span", Qn, "Layout: " + J(t.i), 1))])]),
|
|
3290
3290
|
_: 2
|
|
3291
3291
|
}, 1032, [
|
|
3292
3292
|
"x",
|
|
@@ -3304,69 +3304,69 @@ var En = /* @__PURE__ */ z({
|
|
|
3304
3304
|
"is-resizable"
|
|
3305
3305
|
]));
|
|
3306
3306
|
}
|
|
3307
|
-
}), [["__scopeId", "data-v-668f099b"]]),
|
|
3308
|
-
if (Object.keys(
|
|
3307
|
+
}), [["__scopeId", "data-v-668f099b"]]), er = {}, tr = async (e) => {
|
|
3308
|
+
if (Object.keys(er).length > 0) return er[e] ? (await er[e]()).default : (await er.default()).default;
|
|
3309
3309
|
let t = /* #__PURE__ */ Object.assign({ "/src/components/gridPage/config/default/default.ts": () => import("./default-DmCqrYQi.js") }), n = a("gridPage");
|
|
3310
3310
|
Object.assign(t, n);
|
|
3311
3311
|
for (let e in t) {
|
|
3312
3312
|
let n = e.split("/"), r = n[n.length - 1].replace(".ts", "");
|
|
3313
|
-
|
|
3313
|
+
er[r] = t[e];
|
|
3314
3314
|
}
|
|
3315
|
-
return
|
|
3316
|
-
},
|
|
3317
|
-
if (e.items) for (let t of e.items) t.component &&=
|
|
3318
|
-
},
|
|
3319
|
-
let r = (await
|
|
3315
|
+
return er[e] ? (await er[e]()).default : (await er.default()).default;
|
|
3316
|
+
}, nr = (e) => {
|
|
3317
|
+
if (e.items) for (let t of e.items) t.component &&= je(t.component);
|
|
3318
|
+
}, rr = async (e, { context: t, eventBus: n }) => {
|
|
3319
|
+
let r = (await tr(e))({
|
|
3320
3320
|
menu_flag: e,
|
|
3321
3321
|
context: t,
|
|
3322
3322
|
eventBus: n
|
|
3323
3323
|
});
|
|
3324
|
-
return
|
|
3325
|
-
},
|
|
3324
|
+
return nr(r), { config: r };
|
|
3325
|
+
}, ir = { class: "grid-page-content" }, ar = /* @__PURE__ */ V({
|
|
3326
3326
|
__name: "gridPage",
|
|
3327
3327
|
setup(e) {
|
|
3328
|
-
let t =
|
|
3329
|
-
a.value = o[o.length - 1],
|
|
3328
|
+
let t = ft(), n = G(null), r = G({}), i = mt(), a = G(""), o = t.path.split("/");
|
|
3329
|
+
a.value = o[o.length - 1], He(Te, {
|
|
3330
3330
|
context: r,
|
|
3331
3331
|
eventBus: i
|
|
3332
|
-
}),
|
|
3333
|
-
n.value = (await
|
|
3332
|
+
}), Be(async () => {
|
|
3333
|
+
n.value = (await rr(a.value, {
|
|
3334
3334
|
context: r.value,
|
|
3335
3335
|
eventBus: i
|
|
3336
3336
|
})).config, n.value.onMounted && await n.value.onMounted(r.value, i);
|
|
3337
|
-
}),
|
|
3337
|
+
}), Ve(() => {
|
|
3338
3338
|
n.value.onUnmounted && n.value.onUnmounted(r.value, i);
|
|
3339
3339
|
});
|
|
3340
|
-
let s =
|
|
3340
|
+
let s = P(() => {
|
|
3341
3341
|
if (n.value?.minWidth != null) return n.value.minWidth;
|
|
3342
|
-
}), c =
|
|
3342
|
+
}), c = P(() => {
|
|
3343
3343
|
if (n.value?.minHeight != null) return n.value.minHeight;
|
|
3344
3344
|
});
|
|
3345
|
-
return (e, t) => (U(),
|
|
3346
|
-
default: Z(() => [
|
|
3345
|
+
return (e, t) => (U(), F(mn, null, {
|
|
3346
|
+
default: Z(() => [R("div", {
|
|
3347
3347
|
class: "grid-page-wraper",
|
|
3348
|
-
style:
|
|
3348
|
+
style: Fe({
|
|
3349
3349
|
minWidth: s.value,
|
|
3350
3350
|
minHeight: c.value
|
|
3351
3351
|
})
|
|
3352
|
-
}, [
|
|
3352
|
+
}, [R("div", ir, [n.value ? (U(), F($n, {
|
|
3353
3353
|
key: 0,
|
|
3354
3354
|
config: n.value
|
|
3355
|
-
}, null, 8, ["config"])) :
|
|
3355
|
+
}, null, 8, ["config"])) : I("", !0)])], 4)]),
|
|
3356
3356
|
_: 1
|
|
3357
3357
|
}));
|
|
3358
3358
|
}
|
|
3359
|
-
}),
|
|
3359
|
+
}), or = { class: "remote-page-shell" }, sr = /*#__PURE__*/ f(/* @__PURE__ */ V({
|
|
3360
3360
|
__name: "index",
|
|
3361
3361
|
setup(e) {
|
|
3362
|
-
let t =
|
|
3362
|
+
let t = ft(), n = i(), r = t.path.split("/"), a = {
|
|
3363
3363
|
app_flag: r[r.length - 2],
|
|
3364
3364
|
modalType: r[r.length - 1]
|
|
3365
|
-
}, o = G(null), s =
|
|
3365
|
+
}, o = G(null), s = P(() => o.value?.pageConfig ?? null), c = () => {
|
|
3366
3366
|
s.value?.required_condition && n.set_required_condition(a.modalType, s.value.required_condition);
|
|
3367
3367
|
};
|
|
3368
|
-
return X(s, c),
|
|
3369
|
-
default: Z(() => [
|
|
3368
|
+
return X(s, c), Ie(c), (e, t) => (U(), F(mn, null, {
|
|
3369
|
+
default: Z(() => [R("div", or, [B(M, {
|
|
3370
3370
|
ref_key: "hostRef",
|
|
3371
3371
|
ref: o,
|
|
3372
3372
|
app_flag: a.app_flag,
|
|
@@ -3375,7 +3375,7 @@ var En = /* @__PURE__ */ z({
|
|
|
3375
3375
|
_: 1
|
|
3376
3376
|
}));
|
|
3377
3377
|
}
|
|
3378
|
-
}), [["__scopeId", "data-v-1a19f1c4"]]),
|
|
3378
|
+
}), [["__scopeId", "data-v-1a19f1c4"]]), cr = { class: "view-item-container" }, lr = { class: "view-name-container" }, ur = { class: "view-name" }, dr = /*#__PURE__*/ f(/* @__PURE__ */ V({
|
|
3379
3379
|
__name: "viewConfigCell",
|
|
3380
3380
|
props: {
|
|
3381
3381
|
fetchViews: { type: Function },
|
|
@@ -3385,14 +3385,14 @@ var En = /* @__PURE__ */ z({
|
|
|
3385
3385
|
setViewData: { type: Function }
|
|
3386
3386
|
},
|
|
3387
3387
|
setup(e) {
|
|
3388
|
-
let { t } =
|
|
3388
|
+
let { t } = pt(), n = e, r = d().currentOrg, i = (e) => {
|
|
3389
3389
|
n.currentView?.id !== e.id && (n.setCurrentView(e), n.setViewData(e.data));
|
|
3390
3390
|
}, a = async (e) => {
|
|
3391
3391
|
try {
|
|
3392
|
-
await
|
|
3392
|
+
await w({
|
|
3393
3393
|
org_id: r.id,
|
|
3394
3394
|
view_settings_id: e.id
|
|
3395
|
-
}), await
|
|
3395
|
+
}), await ae({
|
|
3396
3396
|
org_id: r.id,
|
|
3397
3397
|
view_settings_id: e.id
|
|
3398
3398
|
}), Q.success(t("设置默认成功")), n.fetchViews();
|
|
@@ -3434,7 +3434,7 @@ var En = /* @__PURE__ */ z({
|
|
|
3434
3434
|
value: !0
|
|
3435
3435
|
}] },
|
|
3436
3436
|
ok: async (i) => {
|
|
3437
|
-
await
|
|
3437
|
+
await C({
|
|
3438
3438
|
org_id: r.id,
|
|
3439
3439
|
view_settings_id: e.id,
|
|
3440
3440
|
name: i.name,
|
|
@@ -3451,14 +3451,14 @@ var En = /* @__PURE__ */ z({
|
|
|
3451
3451
|
labelKey: "name",
|
|
3452
3452
|
valueKey: "value",
|
|
3453
3453
|
defaultValue: [!1]
|
|
3454
|
-
}),
|
|
3454
|
+
}), x(i);
|
|
3455
3455
|
}, s = (e) => {
|
|
3456
|
-
|
|
3456
|
+
Xe.confirm({
|
|
3457
3457
|
title: t("确认删除视图?"),
|
|
3458
3458
|
content: t("视图删除后不可恢复,是否确认删除?"),
|
|
3459
|
-
icon:
|
|
3459
|
+
icon: B(rt),
|
|
3460
3460
|
onOk: async () => {
|
|
3461
|
-
await
|
|
3461
|
+
await oe({
|
|
3462
3462
|
org_id: r.id,
|
|
3463
3463
|
view_settings_id: e.id
|
|
3464
3464
|
}), Q.success(t("删除成功")), n.fetchViews();
|
|
@@ -3467,69 +3467,69 @@ var En = /* @__PURE__ */ z({
|
|
|
3467
3467
|
};
|
|
3468
3468
|
return (e, t) => {
|
|
3469
3469
|
let n = q("a-tag"), r = q("a-tooltip"), c = q("a-button");
|
|
3470
|
-
return U(),
|
|
3470
|
+
return U(), L("div", cr, [R("div", {
|
|
3471
3471
|
class: "view-item-row",
|
|
3472
3472
|
onClick: t[0] ||= (t) => i(e.record)
|
|
3473
|
-
}, [
|
|
3474
|
-
default: Z(() => [
|
|
3473
|
+
}, [B(r, { title: e.record.name }, {
|
|
3474
|
+
default: Z(() => [R("div", lr, [R("span", ur, J(e.record.name), 1), e.record.is_default ? (U(), F(n, {
|
|
3475
3475
|
key: 0,
|
|
3476
3476
|
color: "blue",
|
|
3477
3477
|
size: "small",
|
|
3478
3478
|
class: "view-default-tag"
|
|
3479
3479
|
}, {
|
|
3480
|
-
default: Z(() => [
|
|
3480
|
+
default: Z(() => [z(J(e.$t("默认")), 1)]),
|
|
3481
3481
|
_: 1
|
|
3482
|
-
})) :
|
|
3482
|
+
})) : I("", !0)])]),
|
|
3483
3483
|
_: 1
|
|
3484
|
-
}, 8, ["title"]), e.record.num ? (U(),
|
|
3484
|
+
}, 8, ["title"]), e.record.num ? (U(), L("span", {
|
|
3485
3485
|
key: 0,
|
|
3486
3486
|
class: "view-num",
|
|
3487
|
-
style:
|
|
3487
|
+
style: Fe([{ float: "right" }, e.currentView?.id === e.record.id ? {
|
|
3488
3488
|
color: "#1890ff",
|
|
3489
3489
|
fontWeight: "bold"
|
|
3490
3490
|
} : {}])
|
|
3491
|
-
}, [
|
|
3492
|
-
default: Z(() => [
|
|
3491
|
+
}, [B(r, { title: e.record.num }, {
|
|
3492
|
+
default: Z(() => [z(J(e.record.num), 1)]),
|
|
3493
3493
|
_: 1
|
|
3494
|
-
}, 8, ["title"])], 4)) :
|
|
3494
|
+
}, 8, ["title"])], 4)) : I("", !0)]), R("div", { class: Pe({
|
|
3495
3495
|
"view-actions": !0,
|
|
3496
3496
|
current: e.currentView?.id === e.record.id
|
|
3497
3497
|
}) }, [
|
|
3498
|
-
|
|
3499
|
-
default: Z(() => [
|
|
3498
|
+
B(r, { title: e.$t("设为默认") }, {
|
|
3499
|
+
default: Z(() => [B(c, {
|
|
3500
3500
|
type: "text",
|
|
3501
3501
|
size: "small",
|
|
3502
3502
|
onClick: t[1] ||= (t) => a(e.record)
|
|
3503
3503
|
}, {
|
|
3504
|
-
icon: Z(() => [e.record.is_default ? (U(),
|
|
3504
|
+
icon: Z(() => [e.record.is_default ? (U(), F(Y(ut), {
|
|
3505
3505
|
key: 0,
|
|
3506
3506
|
style: { color: "#fadb14" }
|
|
3507
|
-
})) : (U(),
|
|
3507
|
+
})) : (U(), F(Y(dt), { key: 1 }))]),
|
|
3508
3508
|
_: 1
|
|
3509
3509
|
})]),
|
|
3510
3510
|
_: 1
|
|
3511
3511
|
}, 8, ["title"]),
|
|
3512
|
-
|
|
3512
|
+
B(c, {
|
|
3513
3513
|
type: "text",
|
|
3514
3514
|
size: "small",
|
|
3515
3515
|
onClick: t[2] ||= (t) => o(e.record)
|
|
3516
3516
|
}, {
|
|
3517
|
-
icon: Z(() => [
|
|
3517
|
+
icon: Z(() => [B(Y(nt))]),
|
|
3518
3518
|
_: 1
|
|
3519
3519
|
}),
|
|
3520
|
-
|
|
3520
|
+
B(c, {
|
|
3521
3521
|
type: "text",
|
|
3522
3522
|
size: "small",
|
|
3523
3523
|
danger: "",
|
|
3524
3524
|
onClick: t[3] ||= (t) => s(e.record)
|
|
3525
3525
|
}, {
|
|
3526
|
-
icon: Z(() => [
|
|
3526
|
+
icon: Z(() => [B(Y(tt))]),
|
|
3527
3527
|
_: 1
|
|
3528
3528
|
})
|
|
3529
3529
|
], 2)]);
|
|
3530
3530
|
};
|
|
3531
3531
|
}
|
|
3532
|
-
}), [["__scopeId", "data-v-a52010ca"]]),
|
|
3532
|
+
}), [["__scopeId", "data-v-a52010ca"]]), fr = { style: { "font-weight": "700" } }, pr = { style: { "font-weight": "700" } }, mr = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;", hr = /* @__PURE__ */ V({
|
|
3533
3533
|
__name: "viewsConfig",
|
|
3534
3534
|
props: {
|
|
3535
3535
|
view_key: {
|
|
@@ -3554,7 +3554,7 @@ var En = /* @__PURE__ */ z({
|
|
|
3554
3554
|
}
|
|
3555
3555
|
},
|
|
3556
3556
|
setup(e) {
|
|
3557
|
-
let t = e, n = G(["personal", "public"]), { t: r } =
|
|
3557
|
+
let t = e, n = G(["personal", "public"]), { t: r } = pt(), i = d(), a = i.currentOrg, o = i.userid, s = (e) => t.tableProState?.setViewData(e), c = () => t.tableProState?.getViewData(), l = P(() => t.tableProState?.viewDataList || []), u = () => t.tableProState?.fetchViews(), f = P({
|
|
3558
3558
|
get: () => t.tableProState?.currentView,
|
|
3559
3559
|
set: (e) => {
|
|
3560
3560
|
t.tableProState.currentView = e;
|
|
@@ -3564,7 +3564,7 @@ var En = /* @__PURE__ */ z({
|
|
|
3564
3564
|
}, m = [{
|
|
3565
3565
|
dataIndex: "name",
|
|
3566
3566
|
key: "name"
|
|
3567
|
-
}], h =
|
|
3567
|
+
}], h = P(() => [f.value?.id]), g = P(() => (l.value || []).filter((e) => !!e.user_id).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort)), _ = P(() => (l.value || []).filter((e) => !e.user_id).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort)), v = (e) => {
|
|
3568
3568
|
let n = W({
|
|
3569
3569
|
open: !0,
|
|
3570
3570
|
loading: !1,
|
|
@@ -3608,7 +3608,7 @@ var En = /* @__PURE__ */ z({
|
|
|
3608
3608
|
}]
|
|
3609
3609
|
},
|
|
3610
3610
|
ok: async (n) => {
|
|
3611
|
-
let i = e || n.view_type || "personal", s = await
|
|
3611
|
+
let i = e || n.view_type || "personal", s = await ie({
|
|
3612
3612
|
org_id: a.id,
|
|
3613
3613
|
user_id: i === "personal" ? o : null,
|
|
3614
3614
|
name: n.name,
|
|
@@ -3640,9 +3640,9 @@ var En = /* @__PURE__ */ z({
|
|
|
3640
3640
|
labelKey: "name",
|
|
3641
3641
|
valueKey: "value",
|
|
3642
3642
|
defaultValue: [!1]
|
|
3643
|
-
}),
|
|
3644
|
-
},
|
|
3645
|
-
|
|
3643
|
+
}), x(n);
|
|
3644
|
+
}, y = (e) => {
|
|
3645
|
+
x(W({
|
|
3646
3646
|
open: !0,
|
|
3647
3647
|
component: "ViewEditModal",
|
|
3648
3648
|
compObj: {
|
|
@@ -3650,7 +3650,7 @@ var En = /* @__PURE__ */ z({
|
|
|
3650
3650
|
data: e == "personal" ? g.value : _.value
|
|
3651
3651
|
},
|
|
3652
3652
|
ok: (e) => {
|
|
3653
|
-
e && e.length > 0 ?
|
|
3653
|
+
e && e.length > 0 ? te({
|
|
3654
3654
|
org_id: a.id,
|
|
3655
3655
|
view_settings_ids: e
|
|
3656
3656
|
}).then(() => {
|
|
@@ -3664,36 +3664,36 @@ var En = /* @__PURE__ */ z({
|
|
|
3664
3664
|
};
|
|
3665
3665
|
return X(() => t.tableProState?.currentView, (e) => {
|
|
3666
3666
|
e && (window.location.hash = `${t.hashPrefix}${e.uid}`);
|
|
3667
|
-
}),
|
|
3667
|
+
}), Be(() => {
|
|
3668
3668
|
u();
|
|
3669
3669
|
}), (e, t) => {
|
|
3670
3670
|
let r = q("a-tooltip"), i = q("s-table"), a = q("a-collapse-panel"), o = q("a-collapse");
|
|
3671
|
-
return U(),
|
|
3671
|
+
return U(), F(o, {
|
|
3672
3672
|
activeKey: n.value,
|
|
3673
3673
|
"onUpdate:activeKey": t[4] ||= (e) => n.value = e,
|
|
3674
3674
|
bordered: !1,
|
|
3675
3675
|
class: "collapses",
|
|
3676
3676
|
style: { background: "rgb(255, 255, 255)" }
|
|
3677
3677
|
}, {
|
|
3678
|
-
expandIcon: Z(({ isActive: e }) => [
|
|
3679
|
-
default: Z(() => [
|
|
3678
|
+
expandIcon: Z(({ isActive: e }) => [B(Y(Qe), { rotate: e ? 90 : 0 }, null, 8, ["rotate"])]),
|
|
3679
|
+
default: Z(() => [B(a, {
|
|
3680
3680
|
key: "personal",
|
|
3681
|
-
style:
|
|
3681
|
+
style: mr
|
|
3682
3682
|
}, {
|
|
3683
|
-
header: Z(() => [
|
|
3684
|
-
extra: Z(() => [
|
|
3685
|
-
title: Z(() => [
|
|
3686
|
-
default: Z(() => [
|
|
3683
|
+
header: Z(() => [R("span", fr, J(e.$t("个人视图")), 1)]),
|
|
3684
|
+
extra: Z(() => [B(r, null, {
|
|
3685
|
+
title: Z(() => [z(J(e.$t("个人视图管理")), 1)]),
|
|
3686
|
+
default: Z(() => [B(Y(lt), {
|
|
3687
3687
|
style: { "margin-right": "10px" },
|
|
3688
|
-
onClick: t[0] ||=
|
|
3688
|
+
onClick: t[0] ||= Ye((e) => y("personal"), ["stop"])
|
|
3689
3689
|
})]),
|
|
3690
3690
|
_: 1
|
|
3691
|
-
}),
|
|
3692
|
-
title: Z(() => [
|
|
3693
|
-
default: Z(() => [
|
|
3691
|
+
}), B(r, null, {
|
|
3692
|
+
title: Z(() => [z(J(e.$t("新建个人视图")), 1)]),
|
|
3693
|
+
default: Z(() => [B(Y(st), { onClick: t[1] ||= Ye((e) => v("personal"), ["stop"]) })]),
|
|
3694
3694
|
_: 1
|
|
3695
3695
|
})]),
|
|
3696
|
-
default: Z(() => [g.value?.length > 0 ? (U(),
|
|
3696
|
+
default: Z(() => [g.value?.length > 0 ? (U(), F(i, {
|
|
3697
3697
|
key: 0,
|
|
3698
3698
|
selectedRowKeys: h.value,
|
|
3699
3699
|
columns: m,
|
|
@@ -3704,35 +3704,35 @@ var En = /* @__PURE__ */ z({
|
|
|
3704
3704
|
"row-key": "id",
|
|
3705
3705
|
"range-selection": !1
|
|
3706
3706
|
}, {
|
|
3707
|
-
bodyCell: Z(({ column: e, record: t }) => [e.dataIndex === "name" ? (U(),
|
|
3707
|
+
bodyCell: Z(({ column: e, record: t }) => [e.dataIndex === "name" ? (U(), F(dr, {
|
|
3708
3708
|
key: 0,
|
|
3709
3709
|
fetchViews: u,
|
|
3710
3710
|
record: t,
|
|
3711
3711
|
currentView: f.value,
|
|
3712
3712
|
setViewData: s,
|
|
3713
3713
|
setCurrentView: p
|
|
3714
|
-
}, null, 8, ["record", "currentView"])) :
|
|
3714
|
+
}, null, 8, ["record", "currentView"])) : I("", !0)]),
|
|
3715
3715
|
_: 1
|
|
3716
|
-
}, 8, ["selectedRowKeys", "dataSource"])) :
|
|
3716
|
+
}, 8, ["selectedRowKeys", "dataSource"])) : I("", !0)]),
|
|
3717
3717
|
_: 1
|
|
3718
|
-
}),
|
|
3718
|
+
}), B(a, {
|
|
3719
3719
|
key: "public",
|
|
3720
|
-
style:
|
|
3720
|
+
style: mr
|
|
3721
3721
|
}, {
|
|
3722
|
-
header: Z(() => [
|
|
3723
|
-
extra: Z(() => [
|
|
3724
|
-
title: Z(() => [
|
|
3725
|
-
default: Z(() => [
|
|
3722
|
+
header: Z(() => [R("span", pr, J(e.$t("公共视图")), 1)]),
|
|
3723
|
+
extra: Z(() => [B(r, null, {
|
|
3724
|
+
title: Z(() => [z(J(e.$t("公共视图管理")), 1)]),
|
|
3725
|
+
default: Z(() => [B(Y(lt), {
|
|
3726
3726
|
style: { "margin-right": "10px" },
|
|
3727
|
-
onClick: t[2] ||=
|
|
3727
|
+
onClick: t[2] ||= Ye((e) => y("public"), ["stop"])
|
|
3728
3728
|
})]),
|
|
3729
3729
|
_: 1
|
|
3730
|
-
}),
|
|
3731
|
-
title: Z(() => [
|
|
3732
|
-
default: Z(() => [
|
|
3730
|
+
}), B(r, null, {
|
|
3731
|
+
title: Z(() => [z(J(e.$t("新建公共视图")), 1)]),
|
|
3732
|
+
default: Z(() => [B(Y(st), { onClick: t[3] ||= Ye((e) => v("public"), ["stop"]) })]),
|
|
3733
3733
|
_: 1
|
|
3734
3734
|
})]),
|
|
3735
|
-
default: Z(() => [_.value?.length > 0 ? (U(),
|
|
3735
|
+
default: Z(() => [_.value?.length > 0 ? (U(), F(i, {
|
|
3736
3736
|
key: 0,
|
|
3737
3737
|
selectedRowKeys: h.value,
|
|
3738
3738
|
columns: m,
|
|
@@ -3743,28 +3743,28 @@ var En = /* @__PURE__ */ z({
|
|
|
3743
3743
|
"row-key": "id",
|
|
3744
3744
|
"range-selection": !1
|
|
3745
3745
|
}, {
|
|
3746
|
-
bodyCell: Z(({ column: e, record: t }) => [e.dataIndex === "name" ? (U(),
|
|
3746
|
+
bodyCell: Z(({ column: e, record: t }) => [e.dataIndex === "name" ? (U(), F(dr, {
|
|
3747
3747
|
key: 0,
|
|
3748
3748
|
fetchViews: u,
|
|
3749
3749
|
record: t,
|
|
3750
3750
|
currentView: f.value,
|
|
3751
3751
|
setViewData: s,
|
|
3752
3752
|
setCurrentView: p
|
|
3753
|
-
}, null, 8, ["record", "currentView"])) :
|
|
3753
|
+
}, null, 8, ["record", "currentView"])) : I("", !0)]),
|
|
3754
3754
|
_: 1
|
|
3755
|
-
}, 8, ["selectedRowKeys", "dataSource"])) :
|
|
3755
|
+
}, 8, ["selectedRowKeys", "dataSource"])) : I("", !0)]),
|
|
3756
3756
|
_: 1
|
|
3757
3757
|
})]),
|
|
3758
3758
|
_: 1
|
|
3759
3759
|
}, 8, ["activeKey"]);
|
|
3760
3760
|
};
|
|
3761
3761
|
}
|
|
3762
|
-
}),
|
|
3762
|
+
}), gr = {
|
|
3763
3763
|
key: 0,
|
|
3764
3764
|
class: "config-container"
|
|
3765
|
-
},
|
|
3765
|
+
}, _r = /*#__PURE__*/ f(/* @__PURE__ */ V({
|
|
3766
3766
|
__name: "leftLayout",
|
|
3767
|
-
props: /*@__PURE__*/
|
|
3767
|
+
props: /*@__PURE__*/ H({
|
|
3768
3768
|
open: {
|
|
3769
3769
|
type: Boolean,
|
|
3770
3770
|
default: !0
|
|
@@ -3785,13 +3785,13 @@ var En = /* @__PURE__ */ z({
|
|
|
3785
3785
|
tableMode: {},
|
|
3786
3786
|
tableModeModifiers: {}
|
|
3787
3787
|
}),
|
|
3788
|
-
emits: /*@__PURE__*/
|
|
3788
|
+
emits: /*@__PURE__*/ H([
|
|
3789
3789
|
"update:open",
|
|
3790
3790
|
"columnsChange",
|
|
3791
3791
|
"update:tableMode"
|
|
3792
3792
|
], ["update:tableMode"]),
|
|
3793
3793
|
setup(e, { emit: t }) {
|
|
3794
|
-
let n = e, r = t, i =
|
|
3794
|
+
let n = e, r = t, i = P(() => n.pageConfig?.enable_view_types || []), a = Ke(e, "tableMode"), o = P({
|
|
3795
3795
|
get: () => {
|
|
3796
3796
|
if (!n.pageConfig?.enable_view_types?.length) return;
|
|
3797
3797
|
let e = n.tableMode || n.pageConfig?.default_view_type || "normal";
|
|
@@ -3804,19 +3804,19 @@ var En = /* @__PURE__ */ z({
|
|
|
3804
3804
|
X(() => n.tableMode, (e) => {
|
|
3805
3805
|
e === "pivot" ? o.value = "pivot" : e === "pivot_charts" ? o.value = "pivot_charts" : o.value = "normal";
|
|
3806
3806
|
}, { immediate: !0 });
|
|
3807
|
-
let s =
|
|
3807
|
+
let s = Ae("tableProStateProxy"), c = P(() => `table_pro_${s.value?.config?.key}`);
|
|
3808
3808
|
return (t, n) => {
|
|
3809
3809
|
let r = q("a-tab-pane"), l = q("a-tabs");
|
|
3810
|
-
return e.open ? (U(),
|
|
3810
|
+
return e.open ? (U(), L("div", gr, [B(l, {
|
|
3811
3811
|
activeKey: o.value,
|
|
3812
3812
|
"onUpdate:activeKey": n[0] ||= (e) => o.value = e
|
|
3813
3813
|
}, {
|
|
3814
3814
|
default: Z(() => [
|
|
3815
|
-
i.value.includes("normal") ? (U(),
|
|
3815
|
+
i.value.includes("normal") ? (U(), F(r, {
|
|
3816
3816
|
key: "normal",
|
|
3817
3817
|
tab: "标准"
|
|
3818
3818
|
}, {
|
|
3819
|
-
default: Z(() => [Y(s)?.config && a.value === "normal" ? (U(),
|
|
3819
|
+
default: Z(() => [Y(s)?.config && a.value === "normal" ? (U(), F(hr, {
|
|
3820
3820
|
key: 0,
|
|
3821
3821
|
view_key: c.value,
|
|
3822
3822
|
view_flag_name: Y(s).config.title,
|
|
@@ -3828,14 +3828,14 @@ var En = /* @__PURE__ */ z({
|
|
|
3828
3828
|
"view_flag_name",
|
|
3829
3829
|
"tableProState",
|
|
3830
3830
|
"eventBus"
|
|
3831
|
-
])) :
|
|
3831
|
+
])) : I("", !0)]),
|
|
3832
3832
|
_: 1
|
|
3833
|
-
})) :
|
|
3834
|
-
i.value.includes("pivot") ? (U(),
|
|
3833
|
+
})) : I("", !0),
|
|
3834
|
+
i.value.includes("pivot") ? (U(), F(r, {
|
|
3835
3835
|
key: "pivot",
|
|
3836
3836
|
tab: "透视表"
|
|
3837
3837
|
}, {
|
|
3838
|
-
default: Z(() => [Y(s)?.config && a.value === "pivot" ? (U(),
|
|
3838
|
+
default: Z(() => [Y(s)?.config && a.value === "pivot" ? (U(), F(hr, {
|
|
3839
3839
|
key: 0,
|
|
3840
3840
|
view_key: c.value,
|
|
3841
3841
|
view_flag_name: Y(s).config.title,
|
|
@@ -3847,14 +3847,14 @@ var En = /* @__PURE__ */ z({
|
|
|
3847
3847
|
"view_flag_name",
|
|
3848
3848
|
"tableProState",
|
|
3849
3849
|
"eventBus"
|
|
3850
|
-
])) :
|
|
3850
|
+
])) : I("", !0)]),
|
|
3851
3851
|
_: 1
|
|
3852
|
-
})) :
|
|
3853
|
-
i.value.includes("pivot_charts") ? (U(),
|
|
3852
|
+
})) : I("", !0),
|
|
3853
|
+
i.value.includes("pivot_charts") ? (U(), F(r, {
|
|
3854
3854
|
key: "pivot_charts",
|
|
3855
3855
|
tab: "透视图"
|
|
3856
3856
|
}, {
|
|
3857
|
-
default: Z(() => [Y(s)?.config && a.value === "pivot_charts" ? (U(),
|
|
3857
|
+
default: Z(() => [Y(s)?.config && a.value === "pivot_charts" ? (U(), F(hr, {
|
|
3858
3858
|
key: 0,
|
|
3859
3859
|
view_key: c.value,
|
|
3860
3860
|
view_flag_name: Y(s).config.title,
|
|
@@ -3866,18 +3866,18 @@ var En = /* @__PURE__ */ z({
|
|
|
3866
3866
|
"view_flag_name",
|
|
3867
3867
|
"tableProState",
|
|
3868
3868
|
"eventBus"
|
|
3869
|
-
])) :
|
|
3869
|
+
])) : I("", !0)]),
|
|
3870
3870
|
_: 1
|
|
3871
|
-
})) :
|
|
3871
|
+
})) : I("", !0)
|
|
3872
3872
|
]),
|
|
3873
3873
|
_: 1
|
|
3874
|
-
}, 8, ["activeKey"])])) :
|
|
3874
|
+
}, 8, ["activeKey"])])) : I("", !0);
|
|
3875
3875
|
};
|
|
3876
3876
|
}
|
|
3877
|
-
}), [["__scopeId", "data-v-0e9c2a9c"]]),
|
|
3877
|
+
}), [["__scopeId", "data-v-0e9c2a9c"]]), vr = {
|
|
3878
3878
|
key: 0,
|
|
3879
3879
|
class: "global-filter-loading"
|
|
3880
|
-
},
|
|
3880
|
+
}, yr = 1e3, br = /*#__PURE__*/ f(/* @__PURE__ */ V({
|
|
3881
3881
|
__name: "FilterLoading",
|
|
3882
3882
|
props: { visible: {
|
|
3883
3883
|
type: Boolean,
|
|
@@ -3891,36 +3891,36 @@ var En = /* @__PURE__ */ z({
|
|
|
3891
3891
|
}, 500);
|
|
3892
3892
|
else {
|
|
3893
3893
|
if (i && clearTimeout(i), !n.value) return;
|
|
3894
|
-
let e =
|
|
3894
|
+
let e = yr - (Date.now() - r.value);
|
|
3895
3895
|
e > 0 ? setTimeout(() => {
|
|
3896
3896
|
n.value = !1;
|
|
3897
3897
|
}, e) : n.value = !1;
|
|
3898
3898
|
}
|
|
3899
3899
|
}), (e, t) => {
|
|
3900
3900
|
let r = q("a-spin");
|
|
3901
|
-
return n.value ? (U(),
|
|
3901
|
+
return n.value ? (U(), L("div", vr, [B(r, { size: "large" }), t[0] ||= R("div", { class: "global-filter-loading__text" }, "数据定位中,请稍候……", -1)])) : I("", !0);
|
|
3902
3902
|
};
|
|
3903
3903
|
}
|
|
3904
|
-
}), [["__scopeId", "data-v-94fc86dc"]]),
|
|
3904
|
+
}), [["__scopeId", "data-v-94fc86dc"]]), xr = /* @__PURE__ */ e({ default: () => Sr }), Sr = (e, { model_app: t }) => ({
|
|
3905
3905
|
head_btn_list: [],
|
|
3906
3906
|
default_search_condition_config_list: [],
|
|
3907
3907
|
condition_group_config_list: [],
|
|
3908
3908
|
advanced_base_conditions: []
|
|
3909
|
-
}),
|
|
3909
|
+
}), Cr = p(), wr = "db_view", Tr = /* @__PURE__ */ "btn_list.head_btn_list.is_selection.rowSelection.is_pagination.pageSize.page_size_options.customCell.customRow.customHeaderCell.isView.default_hide_view.enable_view_types.default_view_type.view_display_type.pivot_table_max_records.advanced_base_conditions.default_search_condition_config_list.condition_group_config_list.base_search_condition_config_list.baseColumns.rowKey.default_column_field.required_condition.refresh_type.i18n.detailConfigs".split("."), Er = (e) => {
|
|
3910
3910
|
let t = {};
|
|
3911
3911
|
if (!e) return t;
|
|
3912
|
-
for (let n of
|
|
3912
|
+
for (let n of Tr) e[n] !== void 0 && (t[n] = e[n]);
|
|
3913
3913
|
return t;
|
|
3914
|
-
},
|
|
3915
|
-
if (Object.keys(
|
|
3916
|
-
let e = /* #__PURE__ */ Object.assign({ "/src/components/sql_db_view/configs/demo/example.ts":
|
|
3914
|
+
}, Dr = {}, Or = () => {
|
|
3915
|
+
if (Object.keys(Dr).length > 0) return;
|
|
3916
|
+
let e = /* #__PURE__ */ Object.assign({ "/src/components/sql_db_view/configs/demo/example.ts": xr }), t = a("sql_db_view");
|
|
3917
3917
|
Object.assign(e, t), Object.keys(e).forEach((t) => {
|
|
3918
3918
|
let n = t.split("/"), r = n[n.length - 1].replace(".ts", "");
|
|
3919
|
-
r.endsWith("-config") || (
|
|
3919
|
+
r.endsWith("-config") || (Dr[r] = e[t].default);
|
|
3920
3920
|
});
|
|
3921
|
-
},
|
|
3921
|
+
}, kr = (e, t) => {
|
|
3922
3922
|
if (!t) return e;
|
|
3923
|
-
let n = (0,
|
|
3923
|
+
let n = (0, Cr.cloneDeep)(e || []), r = /* @__PURE__ */ new Map();
|
|
3924
3924
|
n.forEach((e, t) => {
|
|
3925
3925
|
delete e._key, r.set(e.name, t);
|
|
3926
3926
|
});
|
|
@@ -3930,23 +3930,23 @@ var En = /* @__PURE__ */ z({
|
|
|
3930
3930
|
let t = r.get(e.name);
|
|
3931
3931
|
if (t !== void 0) {
|
|
3932
3932
|
let r = n[t];
|
|
3933
|
-
e.children && r.children && (r.children =
|
|
3934
|
-
let i = (0,
|
|
3933
|
+
e.children && r.children && (r.children = kr(r.children, e.children));
|
|
3934
|
+
let i = (0, Cr.cloneDeep)(e);
|
|
3935
3935
|
delete i.children, Object.assign(r, i);
|
|
3936
3936
|
} else {
|
|
3937
|
-
let t = (0,
|
|
3938
|
-
n.push(t), t.children &&=
|
|
3937
|
+
let t = (0, Cr.cloneDeep)(e);
|
|
3938
|
+
n.push(t), t.children &&= kr([], t.children);
|
|
3939
3939
|
}
|
|
3940
3940
|
}), n;
|
|
3941
|
-
},
|
|
3942
|
-
btn_list:
|
|
3943
|
-
head_btn_list:
|
|
3944
|
-
},
|
|
3945
|
-
let n = (0,
|
|
3941
|
+
}, Ar = {
|
|
3942
|
+
btn_list: kr,
|
|
3943
|
+
head_btn_list: kr
|
|
3944
|
+
}, jr = (e, t) => {
|
|
3945
|
+
let n = (0, Cr.cloneDeep)(e);
|
|
3946
3946
|
Object.keys(t).forEach((r) => {
|
|
3947
|
-
|
|
3947
|
+
Ar[r] ? n[r] = Ar[r](e[r], t[r]) : n[r] = t[r];
|
|
3948
3948
|
}), Object.assign(e, n);
|
|
3949
|
-
},
|
|
3949
|
+
}, Mr = { baseColumns: (e) => {
|
|
3950
3950
|
if (!e || !Array.isArray(e)) return e;
|
|
3951
3951
|
let t = r(), i = n();
|
|
3952
3952
|
for (let n of e) if (n.cellComponent && !n.formatExcelValue) {
|
|
@@ -3957,28 +3957,28 @@ var En = /* @__PURE__ */ z({
|
|
|
3957
3957
|
}
|
|
3958
3958
|
}
|
|
3959
3959
|
return e;
|
|
3960
|
-
} },
|
|
3960
|
+
} }, Nr = (e) => {
|
|
3961
3961
|
Object.keys(e).forEach((t) => {
|
|
3962
|
-
|
|
3962
|
+
Mr[t] && (e[t] = Mr[t](e[t]));
|
|
3963
3963
|
});
|
|
3964
|
-
},
|
|
3965
|
-
queryData: `/${
|
|
3966
|
-
countData: `/${
|
|
3967
|
-
queryConditionGroupData: `/${
|
|
3968
|
-
getData: `/${
|
|
3969
|
-
fieldSearchConfigUrl: `/${
|
|
3970
|
-
obtainColumnDataUrl: `/${
|
|
3971
|
-
pivotTableUrl: `/${
|
|
3972
|
-
pivotChartsUrl: `/${
|
|
3973
|
-
}),
|
|
3964
|
+
}, Pr = (e) => ({
|
|
3965
|
+
queryData: `/${wr}/sqlview_query_${e}_list`,
|
|
3966
|
+
countData: `/${wr}/sqlview_query_${e}_count`,
|
|
3967
|
+
queryConditionGroupData: `/${wr}/sqlview_query_${e}_group`,
|
|
3968
|
+
getData: `/${wr}/sqlview_get_${e}`,
|
|
3969
|
+
fieldSearchConfigUrl: `/${wr}/sqlview_obtain_${e}_field_search_config`,
|
|
3970
|
+
obtainColumnDataUrl: `/${wr}/sqlview_obtain_${e}_column_data`,
|
|
3971
|
+
pivotTableUrl: `/${wr}/sqlview_query_${e}_pivot_table_rust`,
|
|
3972
|
+
pivotChartsUrl: `/${wr}/sqlview_query_${e}_pivot_charts_rust`
|
|
3973
|
+
}), Fr = async (e, n, r, i) => {
|
|
3974
3974
|
let { to_i18n: a = !0 } = i || {};
|
|
3975
|
-
|
|
3975
|
+
Or();
|
|
3976
3976
|
let o = e.split("-")[1], s = t(), [c, l] = await Promise.all([m({
|
|
3977
3977
|
org_id: n,
|
|
3978
3978
|
flag: o
|
|
3979
|
-
}, `/${
|
|
3979
|
+
}, `/${wr}/get_page_config`, !1, { skip_error: !0 }), m({
|
|
3980
3980
|
org_id: n,
|
|
3981
|
-
flag: `${
|
|
3981
|
+
flag: `${wr}-${o}_config`
|
|
3982
3982
|
}, "/sys/get_global_custom_data_by_flag_without_org_id")]), u = {
|
|
3983
3983
|
is_selection: !1,
|
|
3984
3984
|
rowSelection: {
|
|
@@ -4025,14 +4025,14 @@ var En = /* @__PURE__ */ z({
|
|
|
4025
4025
|
btn_list: null,
|
|
4026
4026
|
head_btn_list: null
|
|
4027
4027
|
};
|
|
4028
|
-
Object.assign(u,
|
|
4029
|
-
let d = (0,
|
|
4030
|
-
f &&
|
|
4028
|
+
Object.assign(u, Er(c || {})), Object.assign(u, Er(l || {}));
|
|
4029
|
+
let d = (0, Cr.cloneDeep)(u), f = Dr[o] || Dr[e];
|
|
4030
|
+
f && jr(d, Er((0, Cr.cloneDeep)(f(r, { model_app: wr })))), Nr(d);
|
|
4031
4031
|
let p = d;
|
|
4032
|
-
return a && s.VITE_APP_ENABLE_ZH_EN && (p =
|
|
4033
|
-
},
|
|
4032
|
+
return a && s.VITE_APP_ENABLE_ZH_EN && (p = se(d, r, e)), p;
|
|
4033
|
+
}, Ir = { class: "table-wrapper" }, Lr = { class: "filter-message" }, Rr = { key: 0 }, zr = { key: 0 }, Br = { key: 0 }, Vr = "写操作,执行前应先与用户确认意图", Hr = "no-view", Ur = /*#__PURE__*/ f(/* @__PURE__ */ V({
|
|
4034
4034
|
__name: "rightTable",
|
|
4035
|
-
props: /*@__PURE__*/
|
|
4035
|
+
props: /*@__PURE__*/ H({
|
|
4036
4036
|
eventBus: { default: null },
|
|
4037
4037
|
pageConfig: { default: null },
|
|
4038
4038
|
modalType: {},
|
|
@@ -4043,25 +4043,27 @@ var En = /* @__PURE__ */ z({
|
|
|
4043
4043
|
leftOpen: { default: !0 },
|
|
4044
4044
|
leftOpenModifiers: {}
|
|
4045
4045
|
}),
|
|
4046
|
-
emits: /*@__PURE__*/
|
|
4046
|
+
emits: /*@__PURE__*/ H(["changeMode"], ["update:leftOpen"]),
|
|
4047
4047
|
setup(e, { expose: n, emit: r }) {
|
|
4048
|
-
let i = G(null), a = G(null), o = G(null), s = e, c = r, l = d(), { t: u } =
|
|
4049
|
-
|
|
4050
|
-
i.value =
|
|
4051
|
-
}),
|
|
4052
|
-
|
|
4053
|
-
|
|
4048
|
+
let i = G(null), a = G(null), o = G(null), s = e, c = r, l = d(), { t: u } = pt(), f = ft(), p = G(null), g = G(null), _ = G(null), b = G(""), x = G([]), S = G(""), ee = G(!1), te = P(() => s.tableMode === "pivot" ? g.value : s.tableMode === "pivot_charts" ? _.value : p.value), ne = Ke(e, "leftOpen");
|
|
4049
|
+
Be(() => {
|
|
4050
|
+
i.value = lt("normal"), a.value = lt("pivot"), o.value = lt("pivot_charts"), je();
|
|
4051
|
+
}), Ie(() => {
|
|
4052
|
+
je();
|
|
4053
|
+
}), ze(() => Ae()), Ve(() => Ae()), X(() => s.tableMode, async (e) => {
|
|
4054
|
+
await Ne();
|
|
4055
|
+
let t = e === "pivot" ? "pivot:" : e === "pivot_charts" ? "pivotcharts:" : "", n = te.value?.currentView?.uid || "";
|
|
4054
4056
|
window.location.hash = `${t}${n}`;
|
|
4055
4057
|
});
|
|
4056
|
-
let
|
|
4057
|
-
|
|
4058
|
-
},
|
|
4058
|
+
let se = () => {
|
|
4059
|
+
ne.value = !ne.value;
|
|
4060
|
+
}, T = P(() => s.pageConfig?.isView && !["top_tag", "top_tag_flat"].includes(s.view_display_type)), he = (e) => e === "pivot" ? g : e === "pivot_charts" ? _ : p, M = (e) => `table_pro_${e === "pivot" ? "pivot-" : e === "pivot_charts" ? "pivotcharts-" : ""}sql_db_view-${s.modalType}`, Te = async (e) => {
|
|
4059
4061
|
try {
|
|
4060
4062
|
let n = t(), r = await m({
|
|
4061
4063
|
user_id: l.userid,
|
|
4062
4064
|
org_id: l.currentOrg?.id,
|
|
4063
4065
|
view_project__flag: n.VITE_APP_VIEW_PROJECT_FLAG,
|
|
4064
|
-
view_menu__flag:
|
|
4066
|
+
view_menu__flag: M(e),
|
|
4065
4067
|
sort_fields: ["sort", "create_time"],
|
|
4066
4068
|
is_cache: !1
|
|
4067
4069
|
}, "/view/get_view_settings_for_user", !1, { skip_error: !0 });
|
|
@@ -4083,33 +4085,661 @@ var En = /* @__PURE__ */ z({
|
|
|
4083
4085
|
} catch (e) {
|
|
4084
4086
|
return console.error("按 view_key 拉取视图列表失败", e), [];
|
|
4085
4087
|
}
|
|
4086
|
-
},
|
|
4088
|
+
}, De = async (e) => {
|
|
4087
4089
|
let t = e?.length ? e : [
|
|
4088
4090
|
"normal",
|
|
4089
4091
|
"pivot",
|
|
4090
4092
|
"pivot_charts"
|
|
4091
|
-
], n = await Promise.all(t.map((e) =>
|
|
4093
|
+
], n = await Promise.all(t.map((e) => Te(e))), r = {};
|
|
4092
4094
|
return t.forEach((e, t) => {
|
|
4093
4095
|
r[e] = n[t];
|
|
4094
4096
|
}), r;
|
|
4095
|
-
},
|
|
4097
|
+
}, V = async (e, t) => {
|
|
4096
4098
|
if (!e || !e.uid) return;
|
|
4097
|
-
let n =
|
|
4099
|
+
let n = he(t).value;
|
|
4098
4100
|
if (t !== s.tableMode) {
|
|
4099
4101
|
c("changeMode", t);
|
|
4100
|
-
for (let e = 0; e < 30 && (await
|
|
4102
|
+
for (let e = 0; e < 30 && (await Ne(), n = he(t).value, !n); e++);
|
|
4101
4103
|
}
|
|
4102
4104
|
n && (n.currentView = e, await n.setViewData(e.data));
|
|
4103
4105
|
let r = t === "pivot" ? "pivot:" : t === "pivot_charts" ? "pivotcharts:" : "";
|
|
4104
4106
|
window.location.hash = `${r}${e.uid}`;
|
|
4105
|
-
},
|
|
4107
|
+
}, Oe = [], Ae = () => {
|
|
4108
|
+
Oe.forEach((e) => e()), Oe.length = 0;
|
|
4109
|
+
}, je = () => {
|
|
4110
|
+
Ae(), Oe.push(h({
|
|
4111
|
+
name: "view_capability",
|
|
4112
|
+
toolName: "page_view_capability",
|
|
4113
|
+
label: "判断页面能否配置视图",
|
|
4114
|
+
description: "判断当前页面是否支持指定类型视图,返回支持结果、页面标识、启用的视图类型、权限与现有视图数量。",
|
|
4115
|
+
promptGuidelines: ["view_type 可选;省略时返回全部支持情况", "supported=false 时按 reason 如实告知用户,不要继续执行视图操作"],
|
|
4116
|
+
parameters: A,
|
|
4117
|
+
execute: Ue
|
|
4118
|
+
}), h({
|
|
4119
|
+
name: "view_config_data",
|
|
4120
|
+
toolName: "page_view_config_data",
|
|
4121
|
+
label: "获取视图配置所需数据",
|
|
4122
|
+
description: "获取当前页面配置指定类型视图所需的基础数据:字段清单、搜索字段、当前视图配置、现有视图列表与样例数据。",
|
|
4123
|
+
promptGuidelines: ["构造 view_data 前必须先调用", "返回的 columns / search_config 是字段名与枚举的唯一依据"],
|
|
4124
|
+
parameters: ue,
|
|
4125
|
+
execute: We
|
|
4126
|
+
}), h({
|
|
4127
|
+
name: "view_get",
|
|
4128
|
+
toolName: "page_view_get",
|
|
4129
|
+
label: "读取已有视图配置",
|
|
4130
|
+
description: "读取指定类型下单个已有视图的完整配置,用于复用旧视图或向用户说明已有视图内容。",
|
|
4131
|
+
promptGuidelines: ["uid 或 name 至少提供一个(uid 优先)"],
|
|
4132
|
+
parameters: j,
|
|
4133
|
+
execute: Ge
|
|
4134
|
+
}), h({
|
|
4135
|
+
name: "view_config",
|
|
4136
|
+
toolName: "page_view_config",
|
|
4137
|
+
aliases: ["view_add", "page_view_add"],
|
|
4138
|
+
label: "配置视图",
|
|
4139
|
+
description: "应用指定类型的视图配置。支持保存为新视图(apply_mode=create)或仅临时应用到当前页面(apply_mode=temporary)。",
|
|
4140
|
+
promptGuidelines: [
|
|
4141
|
+
"apply_mode=create 时 name 必填,会真实创建视图",
|
|
4142
|
+
"apply_mode=temporary 时不要传 name,仅临时作用于当前页面",
|
|
4143
|
+
`visibility 可选 personal(默认)/public。${Vr}`
|
|
4144
|
+
],
|
|
4145
|
+
parameters: _e,
|
|
4146
|
+
timeoutMs: 6e4,
|
|
4147
|
+
write: !0,
|
|
4148
|
+
execute: qe
|
|
4149
|
+
}), h({
|
|
4150
|
+
name: "view_update",
|
|
4151
|
+
toolName: "page_view_update",
|
|
4152
|
+
label: "更新视图配置",
|
|
4153
|
+
description: "覆盖更新某个已有视图的完整配置数据。宿主会先校验格式,再弹窗请用户确认。",
|
|
4154
|
+
promptGuidelines: ["uid 或 name 至少提供一个(uid 优先)", `覆盖不可撤销。${Vr}`],
|
|
4155
|
+
parameters: D,
|
|
4156
|
+
timeoutMs: 6e4,
|
|
4157
|
+
write: !0,
|
|
4158
|
+
execute: et
|
|
4159
|
+
}), h({
|
|
4160
|
+
name: "view_patch",
|
|
4161
|
+
toolName: "page_view_patch",
|
|
4162
|
+
aliases: ["view_patch_update"],
|
|
4163
|
+
label: "增量更新视图数据",
|
|
4164
|
+
description: "只提交要改的部分,对视图数据做增量(局部)更新:columns 逐列、searchGroups 逐条件、pivotConfig 逐子键,未写到的键/列/字段保持当前值。target=current(默认)只临时作用到当前页面,不落库;target=view 增量落库到已有视图;target=new 以「当前页面配置 + patch」新建视图。",
|
|
4165
|
+
promptGuidelines: [
|
|
4166
|
+
"只要列数到几十列就算「列多」,调整列/条件时一律优先用本能力,不要用 view_config 枚举全量列",
|
|
4167
|
+
"「只看某几列」用 columns_scope=\"only\" + patch.columns,不要枚举其余列",
|
|
4168
|
+
"patch 只写要改的字段;要把列恢复页面默认用 unset_columns,要删掉整个顶层键用 unset",
|
|
4169
|
+
"基座里的历史/已删除字段会被自动剔除(见返回的 pruned_fields),不要把非法字段写进 unset_columns",
|
|
4170
|
+
"若返回 dropped_column_overrides 非空,说明有列回到了页面默认显隐,回复用户时要如实说明丢了哪些列",
|
|
4171
|
+
"可先用 dry_run=true 预览(changed_keys / visible_columns / preview)",
|
|
4172
|
+
"target=current 是临时预览、不落库,可直接执行",
|
|
4173
|
+
`target=view / new 会写库(覆盖视图 / 新建视图),必须先与用户确认。${Vr}`
|
|
4174
|
+
],
|
|
4175
|
+
parameters: fe,
|
|
4176
|
+
timeoutMs: 6e4,
|
|
4177
|
+
write: !0,
|
|
4178
|
+
execute: it
|
|
4179
|
+
}), h({
|
|
4180
|
+
name: "view_goto",
|
|
4181
|
+
toolName: "page_view_goto",
|
|
4182
|
+
label: "跳转到已有视图",
|
|
4183
|
+
description: "切换到指定类型的已有视图,并立即把该视图配置应用到当前页面。",
|
|
4184
|
+
promptGuidelines: ["uid 或 name 至少提供一个(uid 优先)"],
|
|
4185
|
+
parameters: j,
|
|
4186
|
+
execute: Je
|
|
4187
|
+
}), h({
|
|
4188
|
+
name: "view_rename",
|
|
4189
|
+
toolName: "page_view_rename",
|
|
4190
|
+
label: "重命名视图",
|
|
4191
|
+
description: "重命名指定类型下的某个已有视图。",
|
|
4192
|
+
promptGuidelines: [Vr],
|
|
4193
|
+
parameters: de,
|
|
4194
|
+
write: !0,
|
|
4195
|
+
execute: Ye
|
|
4196
|
+
}), h({
|
|
4197
|
+
name: "view_delete",
|
|
4198
|
+
toolName: "page_view_delete",
|
|
4199
|
+
label: "删除视图",
|
|
4200
|
+
description: "删除指定类型下的某个已有视图。删除后不可恢复。",
|
|
4201
|
+
promptGuidelines: ["删除前必须和用户明确确认"],
|
|
4202
|
+
parameters: j,
|
|
4203
|
+
write: !0,
|
|
4204
|
+
execute: Ze
|
|
4205
|
+
}), h({
|
|
4206
|
+
name: "view_set_default",
|
|
4207
|
+
toolName: "page_view_set_default",
|
|
4208
|
+
label: "设为默认视图",
|
|
4209
|
+
description: "把指定类型下的某个已有视图设为默认视图。",
|
|
4210
|
+
promptGuidelines: [Vr],
|
|
4211
|
+
parameters: j,
|
|
4212
|
+
write: !0,
|
|
4213
|
+
execute: Qe
|
|
4214
|
+
})), Oe.push(v({
|
|
4215
|
+
label: "条件查询",
|
|
4216
|
+
sendDirect: !1,
|
|
4217
|
+
prompt: "请根据下面的查询条件,不创建或保存视图,直接在当前页面进行数据查询展示(view_config,apply_mode=temporary,view_type=normal):\n"
|
|
4218
|
+
}), v({
|
|
4219
|
+
label: "新建标准视图",
|
|
4220
|
+
sendDirect: !1,
|
|
4221
|
+
prompt: "请帮我新建一个标准视图。先调用页面能力获取视图配置所需数据(view_type=normal),再按下面的要求创建并应用到当前页面(apply_mode=create):\n"
|
|
4222
|
+
}), v({
|
|
4223
|
+
label: "新建透视表",
|
|
4224
|
+
sendDirect: !1,
|
|
4225
|
+
prompt: "请帮我新建一个透视表视图。先调用页面能力获取视图配置所需数据(view_type=pivot),再按下面的行/列/值及汇总方式要求创建并应用(apply_mode=create):\n"
|
|
4226
|
+
}), v({
|
|
4227
|
+
label: "新建透视图",
|
|
4228
|
+
sendDirect: !1,
|
|
4229
|
+
prompt: "请帮我新建一个透视图视图。先调用页面能力获取视图配置所需数据(view_type=pivot_charts),再按下面的维度/值/图表类型要求创建并应用(apply_mode=create):\n"
|
|
4230
|
+
}));
|
|
4231
|
+
}, H = (e) => ({
|
|
4232
|
+
ok: !1,
|
|
4233
|
+
error: e
|
|
4234
|
+
}), Me = () => !!s.modalType.split("-")[1], Pe = () => f.query?.customTitle || f.meta.title || "", Fe = async (e) => {
|
|
4235
|
+
let t = he(e).value, n = await He(e);
|
|
4236
|
+
return {
|
|
4237
|
+
view_type: e,
|
|
4238
|
+
columns: s.pageConfig.baseColumns || [],
|
|
4239
|
+
search_config: st(),
|
|
4240
|
+
current_view_data: t?.currentView?.data || null,
|
|
4241
|
+
view_list: n.map((e) => ({
|
|
4242
|
+
id: e.id,
|
|
4243
|
+
uid: e.uid,
|
|
4244
|
+
name: e.name,
|
|
4245
|
+
is_default: e.is_default,
|
|
4246
|
+
user_id: e.user_id,
|
|
4247
|
+
is_system: e.is_system
|
|
4248
|
+
})),
|
|
4249
|
+
sample_rows: t ? (t.dataSource || []).slice(0, 5) : [],
|
|
4250
|
+
base_conditions: s.pageConfig.advanced_base_conditions || []
|
|
4251
|
+
};
|
|
4252
|
+
}, Le = async (e) => {
|
|
4253
|
+
for (let t = 0; t < 30; t++) {
|
|
4254
|
+
await Ne();
|
|
4255
|
+
let t = he(e).value;
|
|
4256
|
+
if (t) return t;
|
|
4257
|
+
}
|
|
4258
|
+
return null;
|
|
4259
|
+
}, Re = async (e, t) => {
|
|
4260
|
+
let n = k(t, e), r = he(e).value;
|
|
4261
|
+
if (e !== s.tableMode && (c("changeMode", e), r = await Le(e)), !r) return H("目标表格实例未就绪,请稍后重试");
|
|
4262
|
+
r.currentView = {
|
|
4263
|
+
id: Hr,
|
|
4264
|
+
uid: "",
|
|
4265
|
+
name: "临时配置",
|
|
4266
|
+
is_temporary: !0,
|
|
4267
|
+
data: n
|
|
4268
|
+
}, await r.setViewData(n);
|
|
4269
|
+
let i = e === "pivot" ? "pivot:" : e === "pivot_charts" ? "pivotcharts:" : "";
|
|
4270
|
+
return window.location.hash = `${i}`, {
|
|
4271
|
+
ok: !0,
|
|
4272
|
+
data: {
|
|
4273
|
+
mode: "temporary",
|
|
4274
|
+
applied: !0,
|
|
4275
|
+
view_type: e
|
|
4276
|
+
}
|
|
4277
|
+
};
|
|
4278
|
+
}, He = async (e) => {
|
|
4279
|
+
let t = he(e).value;
|
|
4280
|
+
if (t) {
|
|
4281
|
+
if ((!t.viewDataList || t.viewDataList.length === 0) && t.fetchViews) try {
|
|
4282
|
+
await t.fetchViews();
|
|
4283
|
+
} catch {}
|
|
4284
|
+
return t.viewDataList || [];
|
|
4285
|
+
}
|
|
4286
|
+
return Te(e);
|
|
4287
|
+
}, W = async (e, t, n) => {
|
|
4288
|
+
let r = await He(e), i = xe(r, t, n);
|
|
4289
|
+
if (!i) {
|
|
4290
|
+
let e = r.map((e) => e.name).join("、");
|
|
4291
|
+
return {
|
|
4292
|
+
error: `未找到视图「${n || t}」${e ? `,现有视图:${e}` : ""}`,
|
|
4293
|
+
list: r
|
|
4294
|
+
};
|
|
4295
|
+
}
|
|
4296
|
+
return {
|
|
4297
|
+
ref: he(e).value,
|
|
4298
|
+
view: i,
|
|
4299
|
+
list: r
|
|
4300
|
+
};
|
|
4301
|
+
}, Ue = async (e) => {
|
|
4302
|
+
let t = e?.view_type;
|
|
4303
|
+
if (t !== void 0 && !we(t)) return H(`未知视图类型: ${t}(可选: normal / pivot / pivot_charts)`);
|
|
4304
|
+
let n = s.pageConfig.enable_view_types || [
|
|
4305
|
+
"normal",
|
|
4306
|
+
"pivot",
|
|
4307
|
+
"pivot_charts"
|
|
4308
|
+
], r = (t ? [t] : n).map((e) => {
|
|
4309
|
+
let t = !!s.pageConfig.isView && n.includes(e), r = "";
|
|
4310
|
+
return s.pageConfig.isView ? n.includes(e) ? Me() || (t = !1, r = "该页面 view_flag 无法解析,数据接口不可用") : (t = !1, r = `该页面未启用「${e}」类型视图`) : (t = !1, r = "该页面未启用视图(isView=false)"), {
|
|
4311
|
+
view_type: e,
|
|
4312
|
+
supported: t,
|
|
4313
|
+
reason: r
|
|
4314
|
+
};
|
|
4315
|
+
}), i = t || "normal";
|
|
4316
|
+
return {
|
|
4317
|
+
ok: !0,
|
|
4318
|
+
data: {
|
|
4319
|
+
is_view_page: !!s.pageConfig.isView,
|
|
4320
|
+
supported: t ? r[0].supported : r.some((e) => e.supported),
|
|
4321
|
+
results: r,
|
|
4322
|
+
page: {
|
|
4323
|
+
app_flag: "db_view",
|
|
4324
|
+
modalType: s.modalType,
|
|
4325
|
+
title: Pe(),
|
|
4326
|
+
tableMode: s.tableMode,
|
|
4327
|
+
enable_view_types: n,
|
|
4328
|
+
view_key: M(i)
|
|
4329
|
+
},
|
|
4330
|
+
auth: {
|
|
4331
|
+
can_create_personal: !0,
|
|
4332
|
+
can_create_public: !0,
|
|
4333
|
+
can_create_system: !0
|
|
4334
|
+
},
|
|
4335
|
+
view_count: (await He(i)).length
|
|
4336
|
+
}
|
|
4337
|
+
};
|
|
4338
|
+
}, We = async (e) => {
|
|
4339
|
+
let t = e?.view_type;
|
|
4340
|
+
return we(t) ? Me() ? {
|
|
4341
|
+
ok: !0,
|
|
4342
|
+
data: await Fe(t)
|
|
4343
|
+
} : H("该页面 view_flag 无法解析,数据接口不可用") : H("view_type 必填: normal | pivot | pivot_charts");
|
|
4344
|
+
}, Ge = async (e) => {
|
|
4345
|
+
let t = e?.view_type, { uid: n, name: r } = e || {};
|
|
4346
|
+
if (!we(t)) return H("view_type 必填: normal | pivot | pivot_charts");
|
|
4347
|
+
let i = await W(t, n, r);
|
|
4348
|
+
if (i.error) return H(i.error);
|
|
4349
|
+
let a = i.view;
|
|
4350
|
+
return {
|
|
4351
|
+
ok: !0,
|
|
4352
|
+
data: { view: {
|
|
4353
|
+
id: a.id,
|
|
4354
|
+
uid: a.uid,
|
|
4355
|
+
name: a.name,
|
|
4356
|
+
is_default: a.is_default,
|
|
4357
|
+
user_id: a.user_id,
|
|
4358
|
+
is_system: a.is_system,
|
|
4359
|
+
data: a.data
|
|
4360
|
+
} }
|
|
4361
|
+
};
|
|
4362
|
+
}, qe = async (e) => {
|
|
4363
|
+
let { view_type: n, name: r, view_data: i, is_system: a, activate: o, apply_mode: c = "create" } = e || {};
|
|
4364
|
+
if (!we(n)) return H("view_type 必填: normal | pivot | pivot_charts");
|
|
4365
|
+
let u = Ce({
|
|
4366
|
+
view_type: n,
|
|
4367
|
+
name: r,
|
|
4368
|
+
view_data: i,
|
|
4369
|
+
is_system: a,
|
|
4370
|
+
apply_mode: c
|
|
4371
|
+
}, {
|
|
4372
|
+
columns: s.pageConfig.baseColumns || [],
|
|
4373
|
+
search_config: st()
|
|
4374
|
+
});
|
|
4375
|
+
if (!u.valid) return H(u.error);
|
|
4376
|
+
if (c === "temporary") return Re(n, i);
|
|
4377
|
+
let d = e?.visibility === "public" ? "public" : "personal", f = k(i, n), p = t(), m;
|
|
4378
|
+
try {
|
|
4379
|
+
m = await ie({
|
|
4380
|
+
org_id: l.currentOrg?.id,
|
|
4381
|
+
user_id: a || d === "public" ? null : l.userid,
|
|
4382
|
+
name: String(r).trim(),
|
|
4383
|
+
view_project__flag: p.VITE_APP_VIEW_PROJECT_FLAG,
|
|
4384
|
+
view_menu__flag: M(n),
|
|
4385
|
+
view_menu__name: Pe(),
|
|
4386
|
+
is_system: !!a,
|
|
4387
|
+
data: f
|
|
4388
|
+
});
|
|
4389
|
+
} catch (e) {
|
|
4390
|
+
return H(`创建视图失败: ${e?.message || e || "未知错误"}`);
|
|
4391
|
+
}
|
|
4392
|
+
let h = he(n).value;
|
|
4393
|
+
if (h?.fetchViews) try {
|
|
4394
|
+
await h.fetchViews();
|
|
4395
|
+
} catch {}
|
|
4396
|
+
return o !== !1 && await V(xe(h?.viewDataList || [], m?.uid, r) || {
|
|
4397
|
+
...m || {},
|
|
4398
|
+
uid: m?.uid || "",
|
|
4399
|
+
name: String(r).trim(),
|
|
4400
|
+
data: f
|
|
4401
|
+
}, n), {
|
|
4402
|
+
ok: !0,
|
|
4403
|
+
data: {
|
|
4404
|
+
mode: "create",
|
|
4405
|
+
id: m?.id,
|
|
4406
|
+
uid: m?.uid,
|
|
4407
|
+
name: String(r).trim()
|
|
4408
|
+
}
|
|
4409
|
+
};
|
|
4410
|
+
}, Je = async (e) => {
|
|
4411
|
+
let { view_type: t, uid: n, name: r } = e || {};
|
|
4412
|
+
if (!we(t)) return H("view_type 必填: normal | pivot | pivot_charts");
|
|
4413
|
+
let i = await W(t, n, r);
|
|
4414
|
+
return i.error ? H(i.error) : (await V(i.view, t), {
|
|
4415
|
+
ok: !0,
|
|
4416
|
+
data: { view: {
|
|
4417
|
+
id: i.view.id,
|
|
4418
|
+
uid: i.view.uid,
|
|
4419
|
+
name: i.view.name
|
|
4420
|
+
} }
|
|
4421
|
+
});
|
|
4422
|
+
}, Ye = async (e) => {
|
|
4423
|
+
let t = e?.view_type, { uid: n, name: r, new_name: i } = e || {};
|
|
4424
|
+
if (!we(t)) return H("view_type 必填: normal | pivot | pivot_charts");
|
|
4425
|
+
if (typeof i != "string" || !i.trim()) return H("new_name 不能为空");
|
|
4426
|
+
let a = await W(t, n, r);
|
|
4427
|
+
if (a.error) return H(a.error);
|
|
4428
|
+
try {
|
|
4429
|
+
await C({
|
|
4430
|
+
org_id: l.currentOrg?.id,
|
|
4431
|
+
view_settings_id: a.view.id,
|
|
4432
|
+
name: String(i).trim()
|
|
4433
|
+
});
|
|
4434
|
+
} catch (e) {
|
|
4435
|
+
return H(`重命名失败: ${e?.message || e || "未知错误"}`);
|
|
4436
|
+
}
|
|
4437
|
+
if (a.ref?.fetchViews) try {
|
|
4438
|
+
await a.ref.fetchViews();
|
|
4439
|
+
} catch {}
|
|
4440
|
+
let o = a.ref?.currentView;
|
|
4441
|
+
return o && o.id === a.view.id && (o.name = String(i).trim()), {
|
|
4442
|
+
ok: !0,
|
|
4443
|
+
data: {
|
|
4444
|
+
id: a.view.id,
|
|
4445
|
+
uid: a.view.uid,
|
|
4446
|
+
name: String(i).trim()
|
|
4447
|
+
}
|
|
4448
|
+
};
|
|
4449
|
+
}, Ze = async (e) => {
|
|
4450
|
+
let t = e?.view_type, { uid: n, name: r } = e || {};
|
|
4451
|
+
if (!we(t)) return H("view_type 必填: normal | pivot | pivot_charts");
|
|
4452
|
+
let i = await W(t, n, r);
|
|
4453
|
+
if (i.error) return H(i.error);
|
|
4454
|
+
try {
|
|
4455
|
+
await oe({
|
|
4456
|
+
org_id: l.currentOrg?.id,
|
|
4457
|
+
view_settings_id: i.view.id
|
|
4458
|
+
});
|
|
4459
|
+
} catch (e) {
|
|
4460
|
+
return H(`删除失败: ${e?.message || e || "未知错误"}`);
|
|
4461
|
+
}
|
|
4462
|
+
if (i.ref?.fetchViews) try {
|
|
4463
|
+
await i.ref.fetchViews();
|
|
4464
|
+
} catch {}
|
|
4465
|
+
let a = i.ref?.currentView;
|
|
4466
|
+
return a && a.id === i.view.id && (i.ref.currentView = null, await i.ref.setViewData(null)), {
|
|
4467
|
+
ok: !0,
|
|
4468
|
+
data: {
|
|
4469
|
+
id: i.view.id,
|
|
4470
|
+
uid: i.view.uid,
|
|
4471
|
+
name: i.view.name
|
|
4472
|
+
}
|
|
4473
|
+
};
|
|
4474
|
+
}, Qe = async (e) => {
|
|
4475
|
+
let t = e?.view_type, { uid: n, name: r } = e || {};
|
|
4476
|
+
if (!we(t)) return H("view_type 必填: normal | pivot | pivot_charts");
|
|
4477
|
+
let i = await W(t, n, r);
|
|
4478
|
+
if (i.error) return H(i.error);
|
|
4479
|
+
try {
|
|
4480
|
+
await w({
|
|
4481
|
+
org_id: l.currentOrg?.id,
|
|
4482
|
+
view_settings_id: i.view.id
|
|
4483
|
+
}), await ae({
|
|
4484
|
+
org_id: l.currentOrg?.id,
|
|
4485
|
+
view_settings_id: i.view.id
|
|
4486
|
+
});
|
|
4487
|
+
} catch (e) {
|
|
4488
|
+
return H(`设置默认失败: ${e?.message || e || "未知错误"}`);
|
|
4489
|
+
}
|
|
4490
|
+
if (i.ref?.fetchViews) try {
|
|
4491
|
+
await i.ref.fetchViews();
|
|
4492
|
+
} catch {}
|
|
4493
|
+
return {
|
|
4494
|
+
ok: !0,
|
|
4495
|
+
data: {
|
|
4496
|
+
id: i.view.id,
|
|
4497
|
+
uid: i.view.uid,
|
|
4498
|
+
name: i.view.name
|
|
4499
|
+
}
|
|
4500
|
+
};
|
|
4501
|
+
}, $e = (e) => new Promise((t) => {
|
|
4502
|
+
Xe.confirm({
|
|
4503
|
+
title: "确定覆盖视图吗?",
|
|
4504
|
+
content: `视图「${e.name}」原有的数据会被新配置覆盖`,
|
|
4505
|
+
icon: ke(rt),
|
|
4506
|
+
okText: "确定",
|
|
4507
|
+
cancelText: "取消",
|
|
4508
|
+
onOk: () => t(!0),
|
|
4509
|
+
onCancel: () => t(!1)
|
|
4510
|
+
});
|
|
4511
|
+
}), et = async (e) => {
|
|
4512
|
+
let { view_type: t, view_data: n, is_system: r } = e || {}, { uid: i, name: a } = e || {};
|
|
4513
|
+
if (!we(t)) return H("view_type 必填: normal | pivot | pivot_charts");
|
|
4514
|
+
let o = await W(t, i, a);
|
|
4515
|
+
if (o.error) return H(o.error);
|
|
4516
|
+
let c = E(t, n, {
|
|
4517
|
+
columns: s.pageConfig.baseColumns || [],
|
|
4518
|
+
search_config: st()
|
|
4519
|
+
});
|
|
4520
|
+
if (!c.valid) return H(c.error);
|
|
4521
|
+
if (r !== void 0 && typeof r != "boolean") return H("is_system 必须是布尔值");
|
|
4522
|
+
if (!await $e(o.view)) return {
|
|
4523
|
+
ok: !1,
|
|
4524
|
+
error: "用户取消了更新视图"
|
|
4525
|
+
};
|
|
4526
|
+
let u = k(n, t);
|
|
4527
|
+
try {
|
|
4528
|
+
await C({
|
|
4529
|
+
org_id: l.currentOrg?.id,
|
|
4530
|
+
view_settings_id: o.view.id,
|
|
4531
|
+
...r === void 0 ? {} : { is_system: !!r },
|
|
4532
|
+
data: u
|
|
4533
|
+
});
|
|
4534
|
+
} catch (e) {
|
|
4535
|
+
return H(`更新视图失败: ${e?.message || e || "未知错误"}`);
|
|
4536
|
+
}
|
|
4537
|
+
if (o.ref?.fetchViews) try {
|
|
4538
|
+
await o.ref.fetchViews();
|
|
4539
|
+
} catch {}
|
|
4540
|
+
let d = o.ref?.currentView;
|
|
4541
|
+
return d && d.id === o.view.id && o.ref && (o.ref.currentView = {
|
|
4542
|
+
...d,
|
|
4543
|
+
data: u
|
|
4544
|
+
}, await o.ref.setViewData(u)), {
|
|
4545
|
+
ok: !0,
|
|
4546
|
+
data: {
|
|
4547
|
+
id: o.view.id,
|
|
4548
|
+
uid: o.view.uid,
|
|
4549
|
+
name: o.view.name
|
|
4550
|
+
}
|
|
4551
|
+
};
|
|
4552
|
+
}, tt = (e) => !!e && typeof e == "object" && !Array.isArray(e), nt = (e, t) => {
|
|
4553
|
+
if (e.columns !== void 0 && e.columns !== null) {
|
|
4554
|
+
if (!tt(e.columns)) return "patch.columns 必须是对象(字段名 -> 列配置)";
|
|
4555
|
+
for (let n of Object.keys(e.columns)) {
|
|
4556
|
+
if (!t.has(n)) return `patch.columns 含不存在的字段「${n}」,合法字段: ${[...t].join(", ")}`;
|
|
4557
|
+
let r = e.columns[n];
|
|
4558
|
+
if (tt(r) && r.checked !== void 0 && typeof r.checked != "boolean") return `patch.columns.${n}.checked 必须是布尔值`;
|
|
4559
|
+
}
|
|
4560
|
+
}
|
|
4561
|
+
if (e.sortedList !== void 0 && e.sortedList !== null) {
|
|
4562
|
+
if (!Array.isArray(e.sortedList)) return "patch.sortedList 必须是数组: [{ key: dataIndex, order: ascend | descend }]";
|
|
4563
|
+
for (let n of e.sortedList) {
|
|
4564
|
+
if (!tt(n) || !n.key) return "patch.sortedList 每项必须是对象且带 key";
|
|
4565
|
+
if (!t.has(n.key)) return `排序字段「${n.key}」不存在`;
|
|
4566
|
+
if (n.order !== void 0 && !["ascend", "descend"].includes(n.order)) return `排序方向 ${n.order} 非法(可选: ascend/descend)`;
|
|
4567
|
+
}
|
|
4568
|
+
}
|
|
4569
|
+
return e.tableSize !== void 0 && e.tableSize !== null && ![
|
|
4570
|
+
"small",
|
|
4571
|
+
"middle",
|
|
4572
|
+
"default"
|
|
4573
|
+
].includes(e.tableSize) ? `patch.tableSize 非法: ${e.tableSize}(可选: small/middle/default)` : e.refreshType !== void 0 && e.refreshType !== null && ![
|
|
4574
|
+
"手动",
|
|
4575
|
+
"5s",
|
|
4576
|
+
"10s",
|
|
4577
|
+
"30s"
|
|
4578
|
+
].includes(e.refreshType) ? `patch.refreshType 非法: ${e.refreshType}(可选: 手动/5s/10s/30s)` : "";
|
|
4579
|
+
}, it = async (e) => {
|
|
4580
|
+
let n = e?.view_type ?? s.tableMode;
|
|
4581
|
+
if (!we(n)) return H("view_type 必填: normal | pivot | pivot_charts");
|
|
4582
|
+
let r = e?.target || "current";
|
|
4583
|
+
if (![
|
|
4584
|
+
"current",
|
|
4585
|
+
"view",
|
|
4586
|
+
"new"
|
|
4587
|
+
].includes(r)) return H("target 只能是 current / view / new");
|
|
4588
|
+
let i = e?.columns_scope || "merge";
|
|
4589
|
+
if (!["merge", "only"].includes(i)) return H("columns_scope 只能是 merge / only");
|
|
4590
|
+
let a = e?.patch;
|
|
4591
|
+
if (a != null && !tt(a)) return H("patch 必须是对象(只写要改的部分,与 view_data 同构)");
|
|
4592
|
+
let o = a || {}, c = e?.unset || [], u = e?.unset_columns || [];
|
|
4593
|
+
if (Object.keys(o).length === 0 && c.length === 0 && u.length === 0) return H("没有要改动的内容:请提供 patch,或 unset / unset_columns 中的至少一项");
|
|
4594
|
+
let d = s.pageConfig.baseColumns || [], f = new Set(ye(d)), p = nt(o, f);
|
|
4595
|
+
if (p) return H(p);
|
|
4596
|
+
let m = he(n).value, h = {}, g = null;
|
|
4597
|
+
if (r === "view") {
|
|
4598
|
+
if (!e?.uid && !e?.name) return H("target=view 时 uid 或 name 至少提供一个(uid 优先)");
|
|
4599
|
+
let t = await W(n, e?.uid, e?.name);
|
|
4600
|
+
if (t.error) return H(t.error);
|
|
4601
|
+
g = t.view, h = g.data || {};
|
|
4602
|
+
} else if (h = (m?.getViewData ? m.getViewData() : null) || m?.currentView?.data || {}, r === "new" && !String(e?.name ?? "").trim()) return H("target=new 时 name(新视图名称)不能为空");
|
|
4603
|
+
let _ = le(h, {
|
|
4604
|
+
patch: o,
|
|
4605
|
+
unset: c,
|
|
4606
|
+
unsetColumns: u,
|
|
4607
|
+
columnsScopeOnly: i === "only",
|
|
4608
|
+
currentColumns: d,
|
|
4609
|
+
validColumnKeys: f,
|
|
4610
|
+
validSearchFieldNames: st().map((e) => e.field_name).filter(Boolean),
|
|
4611
|
+
pruneInvalid: e?.prune_invalid_fields !== !1
|
|
4612
|
+
}), v = k(_.viewData, n), y = E(n, v, {
|
|
4613
|
+
columns: d,
|
|
4614
|
+
search_config: st()
|
|
4615
|
+
}, { allowEmptyColumns: !0 });
|
|
4616
|
+
if (!y.valid) return H(ve(y.error, _.prunedFields));
|
|
4617
|
+
if (pe(d, v.columns).length === 0) return H("增量合并后没有任何可见列,请检查 patch.columns / columns_scope / unset_columns(避免把列的 checked 全部写成 false)");
|
|
4618
|
+
n === "normal" && tt(v.columns) && (v.columns = be(d, v.columns));
|
|
4619
|
+
let b = {
|
|
4620
|
+
changed_keys: ge(h, v),
|
|
4621
|
+
...O(v, d, { changedColumnKeys: Object.keys(o.columns || {}) }),
|
|
4622
|
+
column_order_stamped: !0,
|
|
4623
|
+
notes: _.notes,
|
|
4624
|
+
pruned_fields: _.prunedFields,
|
|
4625
|
+
dropped_column_overrides: _.droppedColumnOverrides,
|
|
4626
|
+
dropped_column_override_count: _.droppedColumnOverrideCount,
|
|
4627
|
+
ignored_unset_columns: _.ignoredUnsetColumns
|
|
4628
|
+
};
|
|
4629
|
+
if (e?.dry_run) {
|
|
4630
|
+
let e = Array.from(/* @__PURE__ */ new Set([
|
|
4631
|
+
...b.changed_keys,
|
|
4632
|
+
...Object.keys(o),
|
|
4633
|
+
...c,
|
|
4634
|
+
...u.length > 0 || i === "only" ? ["columns"] : []
|
|
4635
|
+
]));
|
|
4636
|
+
return {
|
|
4637
|
+
ok: !0,
|
|
4638
|
+
data: {
|
|
4639
|
+
target: r,
|
|
4640
|
+
view_type: n,
|
|
4641
|
+
dry_run: !0,
|
|
4642
|
+
applied: !1,
|
|
4643
|
+
...b,
|
|
4644
|
+
preview: me(v, e)
|
|
4645
|
+
}
|
|
4646
|
+
};
|
|
4647
|
+
}
|
|
4648
|
+
if (r === "current") {
|
|
4649
|
+
let e = await Re(n, v);
|
|
4650
|
+
return e && e.ok === !1 ? e : {
|
|
4651
|
+
ok: !0,
|
|
4652
|
+
data: {
|
|
4653
|
+
target: r,
|
|
4654
|
+
view_type: n,
|
|
4655
|
+
applied: !0,
|
|
4656
|
+
mode: "temporary",
|
|
4657
|
+
...b
|
|
4658
|
+
}
|
|
4659
|
+
};
|
|
4660
|
+
}
|
|
4661
|
+
if (r === "view") {
|
|
4662
|
+
if (!await $e(g)) return H("用户取消了增量更新视图");
|
|
4663
|
+
try {
|
|
4664
|
+
await C({
|
|
4665
|
+
org_id: l.currentOrg?.id,
|
|
4666
|
+
view_settings_id: g.id,
|
|
4667
|
+
data: v
|
|
4668
|
+
});
|
|
4669
|
+
} catch (e) {
|
|
4670
|
+
return H(`增量更新视图失败: ${e?.message || e || "未知错误"}`);
|
|
4671
|
+
}
|
|
4672
|
+
let e = he(n).value;
|
|
4673
|
+
if (e?.fetchViews) try {
|
|
4674
|
+
await e.fetchViews();
|
|
4675
|
+
} catch {}
|
|
4676
|
+
let t = e?.currentView;
|
|
4677
|
+
return t && t.id === g.id && e && (e.currentView = {
|
|
4678
|
+
...t,
|
|
4679
|
+
data: v
|
|
4680
|
+
}, await e.setViewData(v)), {
|
|
4681
|
+
ok: !0,
|
|
4682
|
+
data: {
|
|
4683
|
+
target: r,
|
|
4684
|
+
view_type: n,
|
|
4685
|
+
applied: !0,
|
|
4686
|
+
view: {
|
|
4687
|
+
id: g.id,
|
|
4688
|
+
uid: g.uid,
|
|
4689
|
+
name: g.name
|
|
4690
|
+
},
|
|
4691
|
+
...b
|
|
4692
|
+
}
|
|
4693
|
+
};
|
|
4694
|
+
}
|
|
4695
|
+
let x = e?.visibility === "public" ? "public" : "personal", S = String(e?.name).trim(), ee = t(), w;
|
|
4696
|
+
try {
|
|
4697
|
+
w = await ie({
|
|
4698
|
+
org_id: l.currentOrg?.id,
|
|
4699
|
+
user_id: e?.is_system || x === "public" ? null : l.userid,
|
|
4700
|
+
name: S,
|
|
4701
|
+
view_project__flag: ee.VITE_APP_VIEW_PROJECT_FLAG,
|
|
4702
|
+
view_menu__flag: M(n),
|
|
4703
|
+
view_menu__name: Pe(),
|
|
4704
|
+
is_system: !!e?.is_system,
|
|
4705
|
+
data: v
|
|
4706
|
+
});
|
|
4707
|
+
} catch (e) {
|
|
4708
|
+
return H(`创建视图失败: ${e?.message || e || "未知错误"}`);
|
|
4709
|
+
}
|
|
4710
|
+
let te = he(n).value;
|
|
4711
|
+
if (te?.fetchViews) try {
|
|
4712
|
+
await te.fetchViews();
|
|
4713
|
+
} catch {}
|
|
4714
|
+
return e?.activate !== !1 && await V(xe(te?.viewDataList || [], w?.uid, S) || {
|
|
4715
|
+
...w || {},
|
|
4716
|
+
uid: w?.uid || "",
|
|
4717
|
+
name: S,
|
|
4718
|
+
data: v
|
|
4719
|
+
}, n), {
|
|
4720
|
+
ok: !0,
|
|
4721
|
+
data: {
|
|
4722
|
+
target: r,
|
|
4723
|
+
view_type: n,
|
|
4724
|
+
applied: !0,
|
|
4725
|
+
is_new: !0,
|
|
4726
|
+
view: {
|
|
4727
|
+
id: w?.id,
|
|
4728
|
+
uid: w?.uid,
|
|
4729
|
+
name: S,
|
|
4730
|
+
visibility: x
|
|
4731
|
+
},
|
|
4732
|
+
...b
|
|
4733
|
+
}
|
|
4734
|
+
};
|
|
4735
|
+
}, st = () => {
|
|
4106
4736
|
let e = [];
|
|
4107
4737
|
for (let t of s.pageConfig.base_search_condition_config_list || []) for (let n of t.group || []) e.push({
|
|
4108
4738
|
...n,
|
|
4109
4739
|
group_name: t.name
|
|
4110
4740
|
});
|
|
4111
4741
|
return e;
|
|
4112
|
-
},
|
|
4742
|
+
}, ct = () => {
|
|
4113
4743
|
let e = {};
|
|
4114
4744
|
f.query?.query_json && (e = JSON.parse(f.query?.query_json));
|
|
4115
4745
|
let t = JSON.parse(JSON.stringify({
|
|
@@ -4132,13 +4762,13 @@ var En = /* @__PURE__ */ z({
|
|
|
4132
4762
|
n[e] = t[e];
|
|
4133
4763
|
}), n;
|
|
4134
4764
|
} else return t;
|
|
4135
|
-
},
|
|
4765
|
+
}, lt = (e) => {
|
|
4136
4766
|
let t = e === "normal", n = e === "pivot", r = e === "pivot_charts", i = "", a = "";
|
|
4137
4767
|
n ? (i = "pivot-", a = "pivot:") : r && (i = "pivotcharts-", a = "pivotcharts:");
|
|
4138
|
-
let o =
|
|
4768
|
+
let o = st(), c = [];
|
|
4139
4769
|
for (let e of s.pageConfig.default_search_condition_config_list || []) {
|
|
4140
4770
|
let t = {
|
|
4141
|
-
id:
|
|
4771
|
+
id: y(),
|
|
4142
4772
|
conditions: [],
|
|
4143
4773
|
viewSearchConfig: {}
|
|
4144
4774
|
};
|
|
@@ -4156,7 +4786,7 @@ var En = /* @__PURE__ */ z({
|
|
|
4156
4786
|
let d = "";
|
|
4157
4787
|
window.location.hash && (d = window.location.hash.substring(1), a ? d = d.startsWith(a) ? d.substring(a.length) : "" : (d.startsWith("pivot:") || d.startsWith("pivotcharts:")) && (d = ""));
|
|
4158
4788
|
let p = null, m = {}, h = [];
|
|
4159
|
-
Object.entries(
|
|
4789
|
+
Object.entries(ct()).forEach(([e, t]) => {
|
|
4160
4790
|
Array.isArray(t) || (t = [t]), h.push({
|
|
4161
4791
|
field_name: e,
|
|
4162
4792
|
operator: "in",
|
|
@@ -4170,7 +4800,7 @@ var En = /* @__PURE__ */ z({
|
|
|
4170
4800
|
}, {
|
|
4171
4801
|
op: "and",
|
|
4172
4802
|
children: h
|
|
4173
|
-
}] : s.pageConfig.advanced_base_conditions?.length > 0 ? p = s.pageConfig.advanced_base_conditions : h.length > 0 && (p = h),
|
|
4803
|
+
}] : s.pageConfig.advanced_base_conditions?.length > 0 ? p = s.pageConfig.advanced_base_conditions : h.length > 0 && (p = h), b.value && (m.filter_id_key = b.value);
|
|
4174
4804
|
let g = (s.pageConfig.baseColumns || []).filter((e) => e.dataIndex !== "action").map((e) => {
|
|
4175
4805
|
if (e.width == null) {
|
|
4176
4806
|
let { width: t, ...n } = e;
|
|
@@ -4186,7 +4816,7 @@ var En = /* @__PURE__ */ z({
|
|
|
4186
4816
|
fixed: "right",
|
|
4187
4817
|
cellComponent: "action"
|
|
4188
4818
|
});
|
|
4189
|
-
let
|
|
4819
|
+
let _ = Pr(s.modalType.split("-")[1]);
|
|
4190
4820
|
return {
|
|
4191
4821
|
key: `${i}sql_db_view-${s.modalType}`,
|
|
4192
4822
|
title: f.query?.customTitle || f.meta.title || "",
|
|
@@ -4195,22 +4825,22 @@ var En = /* @__PURE__ */ z({
|
|
|
4195
4825
|
search_type: "advanced",
|
|
4196
4826
|
is_selection: s.pageConfig.is_selection,
|
|
4197
4827
|
is_pagination: s.pageConfig.is_pagination,
|
|
4198
|
-
list_url:
|
|
4828
|
+
list_url: _.queryData,
|
|
4199
4829
|
setting_mode: "drawer",
|
|
4200
4830
|
setting_drawer_width: s.setting_drawer_width,
|
|
4201
|
-
pivot_charts_url:
|
|
4202
|
-
pivot_table_url:
|
|
4831
|
+
pivot_charts_url: _.pivotChartsUrl,
|
|
4832
|
+
pivot_table_url: _.pivotTableUrl,
|
|
4203
4833
|
pivot_table_max_records: s.pageConfig.pivot_table_max_records,
|
|
4204
4834
|
search_config: o,
|
|
4205
4835
|
columns: g,
|
|
4206
4836
|
rowKey: s.pageConfig.rowKey || "id",
|
|
4207
4837
|
show_current_view: !0,
|
|
4208
4838
|
enable_custom_filter: !0,
|
|
4209
|
-
query_field_search_config_url:
|
|
4839
|
+
query_field_search_config_url: _.fieldSearchConfigUrl,
|
|
4210
4840
|
enable_advanced_search_multigroups: !0,
|
|
4211
4841
|
default_advanced_search_multigroups: c,
|
|
4212
4842
|
condition_group_config_list: s.pageConfig.condition_group_config_list || [],
|
|
4213
|
-
query_group_url:
|
|
4843
|
+
query_group_url: _.queryConditionGroupData,
|
|
4214
4844
|
refreshType: s.pageConfig.refresh_type,
|
|
4215
4845
|
pageSize: s.pageConfig.pageSize,
|
|
4216
4846
|
pageSizeOptions: s.pageConfig.page_size_options,
|
|
@@ -4221,7 +4851,7 @@ var En = /* @__PURE__ */ z({
|
|
|
4221
4851
|
head_btn_list: s.pageConfig.head_btn_list || [],
|
|
4222
4852
|
batch_update_list: [],
|
|
4223
4853
|
required_condition: s.pageConfig.required_condition,
|
|
4224
|
-
count_url: t ?
|
|
4854
|
+
count_url: t ? _.countData : void 0,
|
|
4225
4855
|
customRow: s.pageConfig.customRow || void 0,
|
|
4226
4856
|
customHeaderCell: s.pageConfig.customHeaderCell || void 0,
|
|
4227
4857
|
customCell: s.pageConfig.customCell || void 0,
|
|
@@ -4235,96 +4865,97 @@ var En = /* @__PURE__ */ z({
|
|
|
4235
4865
|
api_fields: null,
|
|
4236
4866
|
modalType: s.modalType,
|
|
4237
4867
|
app_flag: "db_view",
|
|
4238
|
-
getData:
|
|
4868
|
+
getData: _.getData,
|
|
4239
4869
|
pageConfig: s.pageConfig
|
|
4240
4870
|
}
|
|
4241
4871
|
};
|
|
4242
|
-
},
|
|
4243
|
-
|
|
4244
|
-
},
|
|
4245
|
-
|
|
4872
|
+
}, ut = () => {
|
|
4873
|
+
ee.value = !0;
|
|
4874
|
+
}, dt = (e) => {
|
|
4875
|
+
ee.value = !1, e ? (b.value = e.filter_id_key, x.value = e.filterList, S.value = e.matchValueLabel, i.value = lt("normal"), c("changeMode", "normal"), Ne(() => {
|
|
4246
4876
|
p.value.currentView = { id: "no-view" }, p.value.setViewData(null);
|
|
4247
4877
|
})) : Q.error("数据定位失败,请重试");
|
|
4248
|
-
},
|
|
4249
|
-
|
|
4878
|
+
}, mt = () => {
|
|
4879
|
+
b.value = "", i.value = lt("normal");
|
|
4250
4880
|
};
|
|
4251
4881
|
return n({
|
|
4252
4882
|
tableProRef: p,
|
|
4253
|
-
pivotTableRef:
|
|
4254
|
-
pivotChartsRef:
|
|
4255
|
-
activeTableRef:
|
|
4256
|
-
|
|
4257
|
-
|
|
4883
|
+
pivotTableRef: g,
|
|
4884
|
+
pivotChartsRef: _,
|
|
4885
|
+
activeTableRef: te,
|
|
4886
|
+
getPageMeta: Fe,
|
|
4887
|
+
fetchAllModeViews: De,
|
|
4888
|
+
activateView: V
|
|
4258
4889
|
}), (e, t) => {
|
|
4259
4890
|
let n = q("a-tag"), r = q("a-alert");
|
|
4260
|
-
return U(),
|
|
4891
|
+
return U(), L("div", Ir, [(U(), F(Ee, null, [i.value && e.tableMode === "normal" ? (U(), L(N, { key: 0 }, [b.value ? (U(), F(r, {
|
|
4261
4892
|
key: 0,
|
|
4262
4893
|
type: "warning",
|
|
4263
4894
|
closable: "",
|
|
4264
4895
|
"show-icon": "",
|
|
4265
|
-
onClose:
|
|
4896
|
+
onClose: mt
|
|
4266
4897
|
}, {
|
|
4267
|
-
message: Z(() => [
|
|
4268
|
-
default: Z(() => [
|
|
4898
|
+
message: Z(() => [R("div", Lr, [(U(!0), L(N, null, K(x.value, (e) => (U(), L("span", { key: e.label }, [z(J(e.label) + ": ", 1), B(n, null, {
|
|
4899
|
+
default: Z(() => [z(J(e.value), 1)]),
|
|
4269
4900
|
_: 2
|
|
4270
|
-
}, 1024)]))), 128)),
|
|
4271
|
-
default: Z(() => [
|
|
4901
|
+
}, 1024)]))), 128)), R("span", null, [t[0] ||= z(" 值字段: "), B(n, null, {
|
|
4902
|
+
default: Z(() => [z(J(S.value), 1)]),
|
|
4272
4903
|
_: 1
|
|
4273
|
-
})])]), t[1] ||=
|
|
4904
|
+
})])]), t[1] ||= R("div", null, " 当前数据已通过透视表定位,此功能为临时过滤,不会被视图记录。关闭可恢复原始数据。 ", -1)]),
|
|
4274
4905
|
_: 1
|
|
4275
|
-
})) :
|
|
4906
|
+
})) : I("", !0), B(re, {
|
|
4276
4907
|
config: i.value,
|
|
4277
4908
|
ref_key: "tableProRef",
|
|
4278
4909
|
ref: p,
|
|
4279
4910
|
eventBus: e.eventBus
|
|
4280
4911
|
}, {
|
|
4281
|
-
header_bar_before_title: Z(() => [
|
|
4912
|
+
header_bar_before_title: Z(() => [T.value ? (U(), L("div", Rr, [R("div", {
|
|
4282
4913
|
class: "toggle-button",
|
|
4283
|
-
onClick:
|
|
4284
|
-
}, [
|
|
4914
|
+
onClick: se
|
|
4915
|
+
}, [ne.value ? (U(), F(Y(at), { key: 0 })) : (U(), F(Y(ot), { key: 1 }))])])) : I("", !0)]),
|
|
4285
4916
|
_: 1
|
|
4286
|
-
}, 8, ["config", "eventBus"])], 64)) : a.value && e.tableMode === "pivot" ? (U(),
|
|
4917
|
+
}, 8, ["config", "eventBus"])], 64)) : a.value && e.tableMode === "pivot" ? (U(), F(Se, {
|
|
4287
4918
|
key: 1,
|
|
4288
4919
|
config: a.value,
|
|
4289
4920
|
ref_key: "pivotTableRef",
|
|
4290
|
-
ref:
|
|
4921
|
+
ref: g,
|
|
4291
4922
|
eventBus: e.eventBus,
|
|
4292
|
-
onFilterForIdKeyStart:
|
|
4293
|
-
onFilterForIdKey:
|
|
4923
|
+
onFilterForIdKeyStart: ut,
|
|
4924
|
+
onFilterForIdKey: dt
|
|
4294
4925
|
}, {
|
|
4295
|
-
header_bar_before_title: Z(() => [
|
|
4926
|
+
header_bar_before_title: Z(() => [T.value ? (U(), L("div", zr, [R("div", {
|
|
4296
4927
|
class: "toggle-button",
|
|
4297
|
-
onClick:
|
|
4298
|
-
}, [
|
|
4928
|
+
onClick: se
|
|
4929
|
+
}, [ne.value ? (U(), F(Y(at), { key: 0 })) : (U(), F(Y(ot), { key: 1 }))])])) : I("", !0)]),
|
|
4299
4930
|
_: 1
|
|
4300
|
-
}, 8, ["config", "eventBus"])) : o.value && e.tableMode === "pivot_charts" ? (U(),
|
|
4931
|
+
}, 8, ["config", "eventBus"])) : o.value && e.tableMode === "pivot_charts" ? (U(), F(ce, {
|
|
4301
4932
|
key: 2,
|
|
4302
4933
|
config: o.value,
|
|
4303
4934
|
ref_key: "pivotChartsRef",
|
|
4304
|
-
ref:
|
|
4935
|
+
ref: _,
|
|
4305
4936
|
eventBus: e.eventBus
|
|
4306
4937
|
}, {
|
|
4307
|
-
header_bar_before_title: Z(() => [
|
|
4938
|
+
header_bar_before_title: Z(() => [T.value ? (U(), L("div", Br, [R("div", {
|
|
4308
4939
|
class: "toggle-button",
|
|
4309
|
-
onClick:
|
|
4310
|
-
}, [
|
|
4940
|
+
onClick: se
|
|
4941
|
+
}, [ne.value ? (U(), F(Y(at), { key: 0 })) : (U(), F(Y(ot), { key: 1 }))])])) : I("", !0)]),
|
|
4311
4942
|
_: 1
|
|
4312
|
-
}, 8, ["config", "eventBus"])) :
|
|
4943
|
+
}, 8, ["config", "eventBus"])) : I("", !0)], 1024)), B(br, { visible: ee.value }, null, 8, ["visible"])]);
|
|
4313
4944
|
};
|
|
4314
4945
|
}
|
|
4315
|
-
}), [["__scopeId", "data-v-
|
|
4946
|
+
}), [["__scopeId", "data-v-d6cba4cc"]]), Wr = {
|
|
4316
4947
|
key: 0,
|
|
4317
4948
|
class: "pri-page"
|
|
4318
|
-
},
|
|
4949
|
+
}, Gr = {
|
|
4319
4950
|
key: 0,
|
|
4320
4951
|
class: "top-view-bar"
|
|
4321
|
-
},
|
|
4952
|
+
}, Kr = { class: "pri-wrapper" }, qr = {
|
|
4322
4953
|
key: 0,
|
|
4323
4954
|
class: "left-slide-outer"
|
|
4324
|
-
},
|
|
4955
|
+
}, Jr = { class: "left-wrapper" }, Yr = /*#__PURE__*/ f(/* @__PURE__ */ V({
|
|
4325
4956
|
__name: "index",
|
|
4326
4957
|
setup(e) {
|
|
4327
|
-
let t = G(!0), n = G(!1), r = G(null), a =
|
|
4958
|
+
let t = G(!0), n = G(!1), r = G(null), a = mt(), s = G("normal"), c = d(), u = G(null), { t: f } = pt(), p = G(1e3), m = G(null), h = G(0), { collapsed: g } = o()(), _ = W({
|
|
4328
4959
|
open: !1,
|
|
4329
4960
|
component: null,
|
|
4330
4961
|
width: 0,
|
|
@@ -4335,14 +4966,14 @@ var En = /* @__PURE__ */ z({
|
|
|
4335
4966
|
lastMenuCollapsed: !0
|
|
4336
4967
|
}), v = () => {
|
|
4337
4968
|
m.value && (h.value = m.value.getBoundingClientRect().left);
|
|
4338
|
-
}, y =
|
|
4969
|
+
}, y = ft(), b = i(), x = {
|
|
4339
4970
|
modalType: y.path.split("/").pop() || "",
|
|
4340
4971
|
modalName: ""
|
|
4341
|
-
}, S =
|
|
4972
|
+
}, S = P(() => r.value?.activeTableRef), ee = G(null);
|
|
4342
4973
|
X(S, (e) => {
|
|
4343
4974
|
e && (ee.value = e);
|
|
4344
4975
|
});
|
|
4345
|
-
let C =
|
|
4976
|
+
let C = P(() => S.value || ee.value), w = P(() => C.value?.settingOpen), te = P(() => !!u.value?.isView && ["top_tag", "top_tag_flat"].includes(u.value?.view_display_type)), ne = [
|
|
4346
4977
|
{
|
|
4347
4978
|
value: "normal",
|
|
4348
4979
|
label: "标准"
|
|
@@ -4355,41 +4986,41 @@ var En = /* @__PURE__ */ z({
|
|
|
4355
4986
|
value: "pivot_charts",
|
|
4356
4987
|
label: "透视图"
|
|
4357
4988
|
}
|
|
4358
|
-
],
|
|
4989
|
+
], re = P(() => {
|
|
4359
4990
|
let e = u.value?.enable_view_types || [];
|
|
4360
|
-
return
|
|
4361
|
-
}), ie =
|
|
4362
|
-
|
|
4991
|
+
return ne.filter((t) => e.includes(t.value));
|
|
4992
|
+
}), ie = P(() => s.value === "pivot" ? "pivot:" : s.value === "pivot_charts" ? "pivotcharts:" : "");
|
|
4993
|
+
He("tableProStateProxy", C);
|
|
4363
4994
|
let ae = async () => {
|
|
4364
|
-
u.value = await
|
|
4995
|
+
u.value = await Fr(x.modalType, c.currentOrg.id, f, { to_i18n: !0 }), u.value?.isView ? u.value?.default_hide_view ? t.value = !1 : t.value = !0 : t.value = !1, u.value?.required_condition && b.set_required_condition(x.modalType, u.value.required_condition);
|
|
4365
4996
|
let e = window.location.hash.substring(1), n;
|
|
4366
4997
|
e && (n = e.startsWith("pivotcharts:") ? "pivot_charts" : e.startsWith("pivot:") ? "pivot" : "normal"), u.value?.enable_view_types?.length ? (n = n || u.value?.default_view_type || "normal", u.value?.enable_view_types?.includes(n) || (n = u.value?.enable_view_types[0])) : n = void 0, s.value = n;
|
|
4367
|
-
}, T = () => {
|
|
4368
|
-
ae(), C.value?.init();
|
|
4369
4998
|
}, oe = () => {
|
|
4999
|
+
ae(), C.value?.init();
|
|
5000
|
+
}, se = () => {
|
|
4370
5001
|
C.value?.refresh();
|
|
4371
|
-
},
|
|
5002
|
+
}, T = ({ key: e, cmpObj: n }) => {
|
|
4372
5003
|
let r = u?.value?.detailConfigs?.[e];
|
|
4373
5004
|
r ? (_.component = r.component, _.width = r.width || 500, _.title = r.title || "详情", _.cmpObj = n, _.extra = r.extra ?? null, _.open || (_.open = !0, _.lastLeftOpen = t.value, _.lastMenuCollapsed = g.value, t.value = !1, g.value = !0)) : console.warn(`detailConfigItem not found, key: ${e}`);
|
|
4374
|
-
},
|
|
5005
|
+
}, ce = () => {
|
|
4375
5006
|
a.emit("local_refresh");
|
|
4376
5007
|
};
|
|
4377
|
-
return
|
|
4378
|
-
l()?.on("refresh",
|
|
5008
|
+
return Be(async () => {
|
|
5009
|
+
l()?.on("refresh", se), l()?.on("reset_and_reload", oe), l()?.on("local_refresh", ce), a.on("show_detail", T), l()?.on("show_detail", T), await ae(), n.value = !0, Ne(() => {
|
|
4379
5010
|
v();
|
|
4380
5011
|
});
|
|
4381
|
-
}),
|
|
4382
|
-
l()?.off("refresh",
|
|
4383
|
-
}),
|
|
4384
|
-
u.value?.required_condition && b.set_required_condition(x.modalType, u.value.required_condition), l()?.off("refresh",
|
|
4385
|
-
}),
|
|
4386
|
-
l()?.off("refresh",
|
|
5012
|
+
}), Ve(() => {
|
|
5013
|
+
l()?.off("refresh", se), l()?.off("reset_and_reload", oe), l()?.off("local_refresh", ce), a.off("show_detail", T), l()?.off("show_detail", T);
|
|
5014
|
+
}), Ie(() => {
|
|
5015
|
+
u.value?.required_condition && b.set_required_condition(x.modalType, u.value.required_condition), l()?.off("refresh", se), l()?.off("reset_and_reload", oe), l()?.off("local_refresh", ce), a.off("show_detail", T), l()?.off("show_detail", T), l()?.on("refresh", se), l()?.on("reset_and_reload", oe), l()?.on("local_refresh", ce), a.on("show_detail", T), l()?.on("show_detail", T);
|
|
5016
|
+
}), ze(() => {
|
|
5017
|
+
l()?.off("refresh", se), l()?.off("reset_and_reload", oe), l()?.off("local_refresh", ce), a.off("show_detail", T), l()?.off("show_detail", T);
|
|
4387
5018
|
}), X(() => _.open, (e, n) => {
|
|
4388
5019
|
e != n && !e && (t.value = _.lastLeftOpen, g.value = _.lastMenuCollapsed);
|
|
4389
5020
|
}), (e, i) => {
|
|
4390
5021
|
let o = q("a-radio-button"), c = q("a-radio-group"), l = q("a-drawer");
|
|
4391
|
-
return U(),
|
|
4392
|
-
default: Z(() => [n.value ? (U(),
|
|
5022
|
+
return U(), L(N, null, [B(mn, null, {
|
|
5023
|
+
default: Z(() => [n.value ? (U(), L("div", Wr, [te.value && re.value.length ? (U(), L("div", Gr, [u.value?.view_display_type === "top_tag" && re.value.length > 1 ? (U(), F(c, {
|
|
4393
5024
|
key: 0,
|
|
4394
5025
|
value: s.value,
|
|
4395
5026
|
"onUpdate:value": i[0] ||= (e) => s.value = e,
|
|
@@ -4397,15 +5028,15 @@ var En = /* @__PURE__ */ z({
|
|
|
4397
5028
|
"button-style": "solid",
|
|
4398
5029
|
class: "view-type-group"
|
|
4399
5030
|
}, {
|
|
4400
|
-
default: Z(() => [(U(!0),
|
|
5031
|
+
default: Z(() => [(U(!0), L(N, null, K(re.value, (t) => (U(), F(o, {
|
|
4401
5032
|
key: t.value,
|
|
4402
5033
|
value: t.value
|
|
4403
5034
|
}, {
|
|
4404
|
-
default: Z(() => [
|
|
5035
|
+
default: Z(() => [z(J(e.$t(t.label)), 1)]),
|
|
4405
5036
|
_: 2
|
|
4406
5037
|
}, 1032, ["value"]))), 128))]),
|
|
4407
5038
|
_: 1
|
|
4408
|
-
}, 8, ["value"])) :
|
|
5039
|
+
}, 8, ["value"])) : I("", !0), C.value ? (U(), F(he, {
|
|
4409
5040
|
key: 1,
|
|
4410
5041
|
tableProState: C.value,
|
|
4411
5042
|
view_type: s.value,
|
|
@@ -4425,8 +5056,8 @@ var En = /* @__PURE__ */ z({
|
|
|
4425
5056
|
"view_key",
|
|
4426
5057
|
"view_flag_name",
|
|
4427
5058
|
"hashPrefix"
|
|
4428
|
-
])) :
|
|
4429
|
-
default: Z(() => [t.value && !
|
|
5059
|
+
])) : I("", !0)])) : I("", !0), R("div", Kr, [B(De, { name: "left-slide" }, {
|
|
5060
|
+
default: Z(() => [t.value && !te.value ? (U(), L("div", qr, [R("div", Jr, [B(_r, {
|
|
4430
5061
|
pageConfig: u.value,
|
|
4431
5062
|
open: t.value,
|
|
4432
5063
|
"onUpdate:open": i[2] ||= (e) => t.value = e,
|
|
@@ -4438,21 +5069,21 @@ var En = /* @__PURE__ */ z({
|
|
|
4438
5069
|
"open",
|
|
4439
5070
|
"eventBus",
|
|
4440
5071
|
"tableMode"
|
|
4441
|
-
])])])) :
|
|
5072
|
+
])])])) : I("", !0)]),
|
|
4442
5073
|
_: 1
|
|
4443
|
-
}),
|
|
5074
|
+
}), R("div", {
|
|
4444
5075
|
class: "right-wrapper",
|
|
4445
5076
|
ref_key: "rightWrapperRef",
|
|
4446
5077
|
ref: m
|
|
4447
5078
|
}, [
|
|
4448
|
-
|
|
4449
|
-
class:
|
|
4450
|
-
style:
|
|
5079
|
+
R("div", {
|
|
5080
|
+
class: Pe(["left-space", { "setting-open": w.value }]),
|
|
5081
|
+
style: Fe({
|
|
4451
5082
|
"--x": `${h.value}px`,
|
|
4452
5083
|
"--drawer_width": `${p.value}px`
|
|
4453
5084
|
})
|
|
4454
5085
|
}, null, 6),
|
|
4455
|
-
|
|
5086
|
+
B(Ur, {
|
|
4456
5087
|
pageConfig: u.value,
|
|
4457
5088
|
modalType: x.modalType,
|
|
4458
5089
|
ref_key: "rightTableRef",
|
|
@@ -4473,13 +5104,13 @@ var En = /* @__PURE__ */ z({
|
|
|
4473
5104
|
"tableMode",
|
|
4474
5105
|
"view_display_type"
|
|
4475
5106
|
]),
|
|
4476
|
-
|
|
4477
|
-
class:
|
|
4478
|
-
style:
|
|
5107
|
+
R("div", {
|
|
5108
|
+
class: Pe(["right-space", { "detail-open": _.open }]),
|
|
5109
|
+
style: Fe({ "--detail_width": `${_.width}px` })
|
|
4479
5110
|
}, null, 6)
|
|
4480
|
-
], 512)])])) :
|
|
5111
|
+
], 512)])])) : I("", !0)]),
|
|
4481
5112
|
_: 1
|
|
4482
|
-
}), _.open ? (U(),
|
|
5113
|
+
}), _.open ? (U(), F(l, {
|
|
4483
5114
|
key: 0,
|
|
4484
5115
|
title: _.title,
|
|
4485
5116
|
width: _.width,
|
|
@@ -4489,7 +5120,7 @@ var En = /* @__PURE__ */ z({
|
|
|
4489
5120
|
mask: !1,
|
|
4490
5121
|
push: !1
|
|
4491
5122
|
}, {
|
|
4492
|
-
default: Z(() => [(U(),
|
|
5123
|
+
default: Z(() => [(U(), F(We(_.component), {
|
|
4493
5124
|
cmpObj: _.cmpObj,
|
|
4494
5125
|
extra: _.extra
|
|
4495
5126
|
}, null, 8, ["cmpObj", "extra"]))]),
|
|
@@ -4498,9 +5129,167 @@ var En = /* @__PURE__ */ z({
|
|
|
4498
5129
|
"title",
|
|
4499
5130
|
"width",
|
|
4500
5131
|
"open"
|
|
4501
|
-
])) :
|
|
5132
|
+
])) : I("", !0)], 64);
|
|
5133
|
+
};
|
|
5134
|
+
}
|
|
5135
|
+
}), [["__scopeId", "data-v-896f8d6e"]]), Xr = { class: "ai-agent-files" }, Zr = { class: "files-tree-panel" }, Qr = { class: "tree-node-title" }, $r = { class: "node-icon" }, ei = ["title"], ti = {
|
|
5136
|
+
key: 0,
|
|
5137
|
+
class: "node-badge"
|
|
5138
|
+
}, ni = {
|
|
5139
|
+
key: 1,
|
|
5140
|
+
class: "node-size"
|
|
5141
|
+
}, ri = { class: "files-preview-panel" }, ii = { class: "preview-header" }, ai = ["title"], oi = { class: "file-size" }, si = ["href"], ci = {
|
|
5142
|
+
key: 0,
|
|
5143
|
+
class: "text-preview"
|
|
5144
|
+
}, li = {
|
|
5145
|
+
key: 1,
|
|
5146
|
+
class: "binary-tip"
|
|
5147
|
+
}, ui = ["href"], di = "/ai_agent_files", fi = 2 * 1024 * 1024, pi = /*#__PURE__*/ f(/* @__PURE__ */ V({
|
|
5148
|
+
__name: "index",
|
|
5149
|
+
props: {
|
|
5150
|
+
record: { default: () => ({}) },
|
|
5151
|
+
modalType: { default: "" },
|
|
5152
|
+
height: { default: 1e3 },
|
|
5153
|
+
app_flag: { default: "" },
|
|
5154
|
+
eventBus: { default: () => ({}) }
|
|
5155
|
+
},
|
|
5156
|
+
setup(e) {
|
|
5157
|
+
let t = /* @__PURE__ */ new Set(/* @__PURE__ */ "md.markdown.txt.log.json.xml.yml.yaml.csv.tsv.html.htm.css.js.mjs.ts.tsx.jsx.vue.py.sql.sh.ini.conf.cfg.env.properties.java.go.rs.toml".split(".")), n = G(!1), r = G([]), i = G(!1), a = G(""), o = G([]), s = G([]), c = G(null), l = G(!1), u = G(null), d = (e) => {
|
|
5158
|
+
let t = e.lastIndexOf(".");
|
|
5159
|
+
return t >= 0 ? e.slice(t + 1).toLowerCase() : "";
|
|
5160
|
+
}, f = (e) => t.has(d(e)), p = (e) => e == null ? "" : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : e < 1024 * 1024 * 1024 ? `${(e / 1024 / 1024).toFixed(1)} MB` : `${(e / 1024 / 1024 / 1024).toFixed(1)} GB`, m = (e, t) => `${di}/file?path=${encodeURIComponent(e)}${t ? "&download=1" : ""}`, h = (e, t) => {
|
|
5161
|
+
if (!t) return e;
|
|
5162
|
+
let n = [];
|
|
5163
|
+
for (let r of e) if (r.type === "dir") {
|
|
5164
|
+
let e = h(r.children || [], t);
|
|
5165
|
+
(e.length || r.name.toLowerCase().includes(t)) && n.push({
|
|
5166
|
+
...r,
|
|
5167
|
+
children: e.length ? e : r.children
|
|
5168
|
+
});
|
|
5169
|
+
} else r.name.toLowerCase().includes(t) && n.push(r);
|
|
5170
|
+
return n;
|
|
5171
|
+
}, g = P(() => h(r.value, a.value.trim().toLowerCase())), _ = (e) => {
|
|
5172
|
+
o.value = e.filter((e) => e.type === "dir").map((e) => e.path);
|
|
5173
|
+
}, v = async () => {
|
|
5174
|
+
n.value = !0;
|
|
5175
|
+
try {
|
|
5176
|
+
let e = await fetch(`${di}/tree`);
|
|
5177
|
+
if (!e.ok) throw Error(`HTTP ${e.status}`);
|
|
5178
|
+
let t = await e.json();
|
|
5179
|
+
r.value = t.children || [], i.value = !!t.truncated, _(r.value);
|
|
5180
|
+
} catch (e) {
|
|
5181
|
+
Q.error(`加载文件树失败: ${e instanceof Error ? e.message : String(e)}`);
|
|
5182
|
+
} finally {
|
|
5183
|
+
n.value = !1;
|
|
5184
|
+
}
|
|
5185
|
+
}, y = async (e) => {
|
|
5186
|
+
if (u.value = null, !(!f(e.name) || (e.size ?? 0) > fi)) {
|
|
5187
|
+
l.value = !0;
|
|
5188
|
+
try {
|
|
5189
|
+
let t = await fetch(m(e.path));
|
|
5190
|
+
if (!t.ok) throw Error(`HTTP ${t.status}`);
|
|
5191
|
+
u.value = await t.text();
|
|
5192
|
+
} catch (e) {
|
|
5193
|
+
Q.error(`加载文件内容失败: ${e instanceof Error ? e.message : String(e)}`);
|
|
5194
|
+
} finally {
|
|
5195
|
+
l.value = !1;
|
|
5196
|
+
}
|
|
5197
|
+
}
|
|
5198
|
+
}, b = (e, t) => {
|
|
5199
|
+
let n = t?.node?.dataRef || t?.node;
|
|
5200
|
+
!n || n.type !== "file" || (c.value = n, y(n));
|
|
5201
|
+
}, x = (e) => {
|
|
5202
|
+
o.value = e;
|
|
5203
|
+
};
|
|
5204
|
+
return Be(() => {
|
|
5205
|
+
v();
|
|
5206
|
+
}), (e, t) => {
|
|
5207
|
+
let r = q("a-input-search"), d = q("a-tag"), h = q("a-tree"), _ = q("a-empty"), v = q("a-spin"), y = q("a-button");
|
|
5208
|
+
return U(), F(mn, null, {
|
|
5209
|
+
default: Z(() => [R("div", Xr, [R("div", Zr, [
|
|
5210
|
+
B(r, {
|
|
5211
|
+
value: a.value,
|
|
5212
|
+
"onUpdate:value": t[0] ||= (e) => a.value = e,
|
|
5213
|
+
placeholder: "搜索文件名",
|
|
5214
|
+
"allow-clear": "",
|
|
5215
|
+
size: "small",
|
|
5216
|
+
class: "tree-search"
|
|
5217
|
+
}, null, 8, ["value"]),
|
|
5218
|
+
i.value ? (U(), F(d, {
|
|
5219
|
+
key: 0,
|
|
5220
|
+
color: "warning",
|
|
5221
|
+
class: "truncated-tag"
|
|
5222
|
+
}, {
|
|
5223
|
+
default: Z(() => t[1] ||= [z("文件数过多,目录树已截断")]),
|
|
5224
|
+
_: 1
|
|
5225
|
+
})) : I("", !0),
|
|
5226
|
+
B(v, { spinning: n.value }, {
|
|
5227
|
+
default: Z(() => [g.value.length ? (U(), F(h, {
|
|
5228
|
+
key: 0,
|
|
5229
|
+
"tree-data": g.value,
|
|
5230
|
+
"field-names": {
|
|
5231
|
+
title: "name",
|
|
5232
|
+
key: "path",
|
|
5233
|
+
children: "children"
|
|
5234
|
+
},
|
|
5235
|
+
"expanded-keys": o.value,
|
|
5236
|
+
"selected-keys": s.value,
|
|
5237
|
+
"block-node": "",
|
|
5238
|
+
onSelect: b,
|
|
5239
|
+
onExpand: x
|
|
5240
|
+
}, {
|
|
5241
|
+
title: Z(({ dataRef: e }) => [R("span", Qr, [
|
|
5242
|
+
R("span", $r, J(e.type === "dir" ? "📁" : "📄"), 1),
|
|
5243
|
+
R("span", {
|
|
5244
|
+
class: "node-name",
|
|
5245
|
+
title: e.name
|
|
5246
|
+
}, J(e.name), 9, ei),
|
|
5247
|
+
e.type === "file" && f(e.name) ? (U(), L("span", ti, "可预览")) : I("", !0),
|
|
5248
|
+
e.type === "file" ? (U(), L("span", ni, J(p(e.size)), 1)) : I("", !0)
|
|
5249
|
+
])]),
|
|
5250
|
+
_: 1
|
|
5251
|
+
}, 8, [
|
|
5252
|
+
"tree-data",
|
|
5253
|
+
"expanded-keys",
|
|
5254
|
+
"selected-keys"
|
|
5255
|
+
])) : n.value ? I("", !0) : (U(), F(_, {
|
|
5256
|
+
key: 1,
|
|
5257
|
+
description: "暂无文件",
|
|
5258
|
+
class: "tree-empty"
|
|
5259
|
+
}))]),
|
|
5260
|
+
_: 1
|
|
5261
|
+
}, 8, ["spinning"])
|
|
5262
|
+
]), R("div", ri, [c.value ? (U(), L(N, { key: 0 }, [R("div", ii, [
|
|
5263
|
+
R("span", {
|
|
5264
|
+
class: "file-name",
|
|
5265
|
+
title: c.value.path
|
|
5266
|
+
}, J(c.value.name), 9, ai),
|
|
5267
|
+
R("span", oi, J(p(c.value.size)), 1),
|
|
5268
|
+
R("a", { href: m(c.value.path, !0) }, [B(y, {
|
|
5269
|
+
size: "small",
|
|
5270
|
+
type: "primary"
|
|
5271
|
+
}, {
|
|
5272
|
+
default: Z(() => t[2] ||= [z("下载")]),
|
|
5273
|
+
_: 1
|
|
5274
|
+
})], 8, si)
|
|
5275
|
+
]), B(v, {
|
|
5276
|
+
spinning: l.value,
|
|
5277
|
+
"wrapper-class-name": "preview-spin"
|
|
5278
|
+
}, {
|
|
5279
|
+
default: Z(() => [u.value === null ? (U(), L("div", li, [t[4] ||= R("p", null, "二进制文件,不支持在线预览", -1), R("a", { href: m(c.value.path, !0) }, [B(y, { type: "primary" }, {
|
|
5280
|
+
default: Z(() => t[3] ||= [z("下载文件")]),
|
|
5281
|
+
_: 1
|
|
5282
|
+
})], 8, ui)])) : (U(), L("pre", ci, J(u.value), 1))]),
|
|
5283
|
+
_: 1
|
|
5284
|
+
}, 8, ["spinning"])], 64)) : (U(), F(_, {
|
|
5285
|
+
key: 1,
|
|
5286
|
+
description: "选择左侧文件查看内容",
|
|
5287
|
+
class: "preview-empty"
|
|
5288
|
+
}))])])]),
|
|
5289
|
+
_: 1
|
|
5290
|
+
});
|
|
4502
5291
|
};
|
|
4503
5292
|
}
|
|
4504
|
-
}), [["__scopeId", "data-v-
|
|
5293
|
+
}), [["__scopeId", "data-v-ee32d124"]]);
|
|
4505
5294
|
//#endregion
|
|
4506
|
-
export {
|
|
5295
|
+
export { mn as a, Wt as c, Ot as d, ar as i, Vt as l, Yr as n, fn as o, sr as r, ln as s, pi as t, Rt as u };
|