liyu-pc-base 1.0.792 → 1.0.796
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/{FieldRender-DXt6hpsg.js → FieldRender-BPwD192W.js} +1 -1
- package/dist/{FieldRender-DXt6hpsg.js.map → FieldRender-BPwD192W.js.map} +1 -1
- package/dist/{FieldRender2-BdZggFWN.js → FieldRender2-8M4uTXFI.js} +2 -2
- package/dist/{FieldRender2-BdZggFWN.js.map → FieldRender2-8M4uTXFI.js.map} +1 -1
- package/dist/{FormRender3--OnHVRGF.js → FormRender3-DwciF_F4.js} +1 -1
- package/dist/{FormRender3--OnHVRGF.js.map → FormRender3-DwciF_F4.js.map} +1 -1
- package/dist/{RemoteSelectPro-DZ7yuOWu.js → RemoteSelectPro-BZKHySkV.js} +2 -2
- package/dist/{RemoteSelectPro-DZ7yuOWu.js.map → RemoteSelectPro-BZKHySkV.js.map} +1 -1
- package/dist/{SearchRender-C-7OQyQ_.js → SearchRender-ByIxdJ4H.js} +1 -1
- package/dist/{SearchRender-C-7OQyQ_.js.map → SearchRender-ByIxdJ4H.js.map} +1 -1
- package/dist/api/typing.js +31 -2
- package/dist/api/typing.js.map +1 -1
- package/dist/components/index.js +6 -6
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-C9uILWbK.js → tableModal-D5Gq8U5r.js} +1 -1
- package/dist/{tableModal-C9uILWbK.js.map → tableModal-D5Gq8U5r.js.map} +1 -1
- package/dist/{tablePro-B1eK8IkE.js → tablePro-BdNvEm1_.js} +409 -430
- package/dist/tablePro-BdNvEm1_.js.map +1 -0
- package/package.json +1 -1
- package/dist/tablePro-B1eK8IkE.js.map +0 -1
|
@@ -6,33 +6,33 @@ import { t as c } from "./RemoteCascader-CGdD6rUw.js";
|
|
|
6
6
|
import { t as l } from "./lodash-CC0qDxjV.js";
|
|
7
7
|
import { getApiData as u } from "./api/api-model.js";
|
|
8
8
|
import { I as d, N as f, P as p, S as m, c as h, f as g, r as _, t as v, x as y } from "./function-BPdgB84k.js";
|
|
9
|
-
import { ConditionOperatorMap as b } from "./api/typing.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { a as
|
|
20
|
-
import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as
|
|
21
|
-
import { Modal as
|
|
22
|
-
import { debounce as
|
|
9
|
+
import { ConditionOperatorMap as b, operator_params_count as x } from "./api/typing.js";
|
|
10
|
+
import { t as ee } from "./RemoteModal-LBD1h5AF.js";
|
|
11
|
+
import { n as S, r as C, t as w } from "./RemoteSelectPro-BZKHySkV.js";
|
|
12
|
+
import { t as te } from "./RemoteFilterSelect-BCv2zIHS.js";
|
|
13
|
+
import { t as T } from "./AttributeNomTable-HiLsOuv9.js";
|
|
14
|
+
import { t as ne } from "./AttributeTable-BeZnyj9P.js";
|
|
15
|
+
import { t as re } from "./JsonStr-Bx2WI6jK.js";
|
|
16
|
+
import { t as ie } from "./JsonObj-DIlhMCbj.js";
|
|
17
|
+
import { t as E } from "./RemoteText-BVqSMfSl.js";
|
|
18
|
+
import { t as ae } from "./modal-tools-CrXdI5sg.js";
|
|
19
|
+
import { a as oe, c as se, f as ce, i as le, l as ue, n as de, o as fe, r as pe, s as me, t as he, u as ge } from "./TinymceEditor-VlIMhy_4.js";
|
|
20
|
+
import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as _e, createTextVNode as N, createVNode as P, defineComponent as F, guardReactiveProps as ve, h as ye, inject as be, mergeModels as xe, mergeProps as Se, normalizeClass as I, normalizeProps as Ce, normalizeStyle as L, onActivated as we, onBeforeUnmount as Te, onDeactivated as Ee, onMounted as De, onUnmounted as Oe, openBlock as R, provide as ke, reactive as Ae, ref as z, renderList as B, renderSlot as je, resolveComponent as V, resolveDynamicComponent as Me, toDisplayString as H, unref as U, useAttrs as W, useModel as Ne, watch as G, withCtx as K, withModifiers as q } from "vue";
|
|
21
|
+
import { Modal as Pe, message as Fe } from "ant-design-vue";
|
|
22
|
+
import { debounce as Ie, isArray as Le, isEqual as Re } from "lodash-es";
|
|
23
23
|
import J from "moment";
|
|
24
|
-
import
|
|
25
|
-
import { AlignLeftOutlined as
|
|
26
|
-
import { useRoute as
|
|
27
|
-
import { useI18n as
|
|
28
|
-
import
|
|
29
|
-
import { useResizeObserver as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
24
|
+
import ze from "dayjs";
|
|
25
|
+
import { AlignLeftOutlined as Be, BarsOutlined as Ve, CalculatorOutlined as He, CloseOutlined as Ue, ColumnHeightOutlined as We, CopyOutlined as Ge, DatabaseOutlined as Ke, DeleteOutlined as qe, DownloadOutlined as Je, EditOutlined as Ye, ExclamationCircleOutlined as Xe, FilterFilled as Ze, FullscreenExitOutlined as Qe, FullscreenOutlined as $e, FunctionOutlined as et, InfoCircleOutlined as tt, LeftOutlined as nt, LoadingOutlined as rt, PlusOutlined as it, ReloadOutlined as at, RightOutlined as ot, SaveOutlined as st, SearchOutlined as ct, SettingOutlined as lt, StarFilled as ut, StarOutlined as dt, SwapOutlined as ft } from "@ant-design/icons-vue";
|
|
26
|
+
import { useRoute as pt, useRouter as Y } from "vue-router";
|
|
27
|
+
import { useI18n as X } from "vue-i18n";
|
|
28
|
+
import mt from "mitt";
|
|
29
|
+
import { useResizeObserver as ht } from "@vueuse/core";
|
|
30
|
+
import gt from "screenfull";
|
|
31
|
+
import _t from "handlebars";
|
|
32
32
|
//#region src/components/FormRender/SmallTableSerarchField.vue?vue&type=script&lang.ts
|
|
33
|
-
var Z = l(),
|
|
33
|
+
var Z = l(), vt = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), yt = (e, t = "YYYY-MM-DD HH:mm:ss") => J(e, t, !0).isValid(), bt = (e, t = "HH:mm:ss") => J(e, t, !0).isValid(), xt = F({
|
|
34
34
|
name: "FieldRender2",
|
|
35
|
-
methods: { isArray:
|
|
35
|
+
methods: { isArray: Le },
|
|
36
36
|
props: {
|
|
37
37
|
field: {
|
|
38
38
|
type: Object,
|
|
@@ -106,12 +106,12 @@ var Z = l(), _t = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), vt = (e, t = "
|
|
|
106
106
|
})) : n = p(e) && typeof e == "string" ? Number(e) : e : t == "str" ? p(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
107
107
|
p(e) && typeof e == "number" ? n.push(e.toString()) : n.push(e);
|
|
108
108
|
})) : n = p(e) && typeof e == "number" ? e.toString() : e : t == "date" ? p(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
109
|
-
|
|
110
|
-
})) : n =
|
|
111
|
-
|
|
112
|
-
})) : n =
|
|
113
|
-
|
|
114
|
-
})) : n =
|
|
109
|
+
vt(e) && typeof e == "string" ? n.push(J(e, "YYYY-MM-DD")) : n.push(e);
|
|
110
|
+
})) : n = vt(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? p(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
111
|
+
yt(e) && typeof e == "string" ? n.push(J(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
112
|
+
})) : n = yt(e) && typeof e == "string" ? J(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? p(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
113
|
+
bt(e) && typeof e == "string" ? n.push(J(e, "HH:mm:ss")) : n.push(e);
|
|
114
|
+
})) : n = bt(e) && typeof e == "string" ? J(e, "HH:mm:ss") : e : t == "float" ? p(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
115
115
|
p(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
116
116
|
})) : n = p(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (p(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
117
117
|
p(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
@@ -120,7 +120,7 @@ var Z = l(), _t = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), vt = (e, t = "
|
|
|
120
120
|
t("update:is_edit", o.value);
|
|
121
121
|
}, c = () => {
|
|
122
122
|
t("add");
|
|
123
|
-
}, l =
|
|
123
|
+
}, l = Ie(() => {
|
|
124
124
|
let r = a.value, o = [];
|
|
125
125
|
for (let t in e.field?.conditions) {
|
|
126
126
|
let n = e.field?.conditions[t], r = [];
|
|
@@ -128,7 +128,7 @@ var Z = l(), _t = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), vt = (e, t = "
|
|
|
128
128
|
let a = n[t], o = e.formModel[a.watchKey], s;
|
|
129
129
|
s = a.class_name ? i(a.value, a.class_name) : a.value;
|
|
130
130
|
let c, l;
|
|
131
|
-
s instanceof Array && ([c, l] = s), a.operator == "lt" ? typeof c == "number" ? f(o) ? r.push(!1) : o < c ? r.push(!0) : r.push(!1) :
|
|
131
|
+
s instanceof Array && ([c, l] = s), a.operator == "lt" ? typeof c == "number" ? f(o) ? r.push(!1) : o < c ? r.push(!0) : r.push(!1) : vt(c) && (f(o) ? r.push(!1) : J(o).isBefore(J(c)) ? r.push(!0) : r.push(!1)) : a.operator == "lte" ? typeof c == "number" ? f(o) ? r.push(!1) : o <= c ? r.push(!0) : r.push(!1) : vt(c) && (f(o) ? r.push(!1) : J(o).isBefore(J(c)) || J(o).isSame(J(c)) ? r.push(!0) : r.push(!1)) : a.operator == "gt" ? typeof c == "number" ? f(o) ? r.push(!1) : o > c ? r.push(!0) : r.push(!1) : vt(c) && (f(o) ? r.push(!1) : J(o).isAfter(J(c)) ? r.push(!0) : r.push(!1)) : a.operator == "gte" ? typeof c == "number" ? f(o) ? r.push(!1) : o >= c ? r.push(!0) : r.push(!1) : vt(c) && (f(o) ? r.push(!1) : J(o).isAfter(J(c)) || J(o).isSame(J(c)) ? r.push(!0) : r.push(!1)) : a.operator == "between" ? typeof c == "number" && typeof l == "number" && c && l ? f(o) ? r.push(!1) : o >= c && o <= l ? r.push(!0) : r.push(!1) : vt(c) && (f(o) ? r.push(!1) : (J(o).isAfter(J(c)) || J(o).isSame(J(c))) && (J(o).isBefore(J(l)) || J(o).isSame(J(l))) ? r.push(!0) : r.push(!1)) : a.operator == "notbetween" ? typeof c == "number" && typeof l == "number" && c && l ? f(o) ? r.push(!1) : o < c || o > l ? r.push(!0) : r.push(!1) : vt(c) && (f(o) ? r.push(!1) : J(o).isBefore(J(c)) || J(o).isAfter(J(l)) ? r.push(!0) : r.push(!1)) : a.operator == "in" ? o instanceof Array ? s.filter((e) => o.includes(e)).length > 0 ? r.push(!0) : r.push(!1) : (typeof o == "string" || typeof o == "number" || f(o)) && (s.find((e) => o == e) ? r.push(!0) : r.push(!1)) : a.operator == "eq" ? o === c ? r.push(!0) : r.push(!1) : a.operator == "contains" ? o.toString().indexOf(c) > -1 ? r.push(!0) : r.push(!1) : a.operator == "startswith" ? o.toString().startsWith(c) ? r.push(!0) : r.push(!1) : a.operator == "notin" ? o instanceof Array ? s.filter((e) => o.includes(e)).length > 0 ? r.push(!0) : r.push(!1) : (typeof o == "string" || typeof o == "number" || f(o)) && (s.find((e) => o == e) ? r.push(!1) : r.push(!0)) : a.operator == "notcontains" ? o.toString().indexOf(c) == -1 ? r.push(!0) : r.push(!1) : a.operator == "_eq" || (a.operator == "json_list_not_blank_not_null" ? o ? r.push(!0) : r.push(!1) : a.operator == "json_list_is_blank_is_null" || a.operator == "not_eq" ? o ? r.push(!1) : r.push(!0) : a.operator == "not_blank_not_null" && (o ? r.push(!0) : r.push(!1)));
|
|
132
132
|
}
|
|
133
133
|
o.push(r);
|
|
134
134
|
}
|
|
@@ -144,7 +144,7 @@ var Z = l(), _t = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), vt = (e, t = "
|
|
|
144
144
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name })));
|
|
145
145
|
}, 300), u = z(""), d = z(e.label);
|
|
146
146
|
G(() => u.value, (n, r) => {
|
|
147
|
-
if (!
|
|
147
|
+
if (!Re(n, r) && (t("update:value", n), e.field.name2)) {
|
|
148
148
|
let r;
|
|
149
149
|
if (e.field.type === "radio") r = e.options.find((t) => t[e.field.valueKey ? e.field.valueKey : "value"] == n)?.[e.field.labelKey ? e.field.labelKey : "label"];
|
|
150
150
|
else if (e.field.type === "checkbox" && n && n.length >= 0) {
|
|
@@ -154,7 +154,7 @@ var Z = l(), _t = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), vt = (e, t = "
|
|
|
154
154
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
155
155
|
});
|
|
156
156
|
}), r = t.toString();
|
|
157
|
-
} else if (e.field.type === "select") if (
|
|
157
|
+
} else if (e.field.type === "select") if (Le(n)) {
|
|
158
158
|
let t = [];
|
|
159
159
|
e.options.forEach((r) => {
|
|
160
160
|
n.forEach((n) => {
|
|
@@ -187,10 +187,10 @@ var Z = l(), _t = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), vt = (e, t = "
|
|
|
187
187
|
});
|
|
188
188
|
}, { deep: !0 }), G(() => [e.conditionsVisibleNum, e.isUseConditions], () => {
|
|
189
189
|
e.field?.conditions && e.isUseConditions ? l() : (a.value = !0, t("update:is_show_field", a.value));
|
|
190
|
-
}),
|
|
190
|
+
}), De(() => {
|
|
191
191
|
e.field?.conditions instanceof Array && e.field?.conditions.length > 0 ? l() : (a.value = !0, t("update:is_show_field", a.value)), a.value || (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name }));
|
|
192
192
|
});
|
|
193
|
-
let { t: m } =
|
|
193
|
+
let { t: m } = X();
|
|
194
194
|
return {
|
|
195
195
|
t: m,
|
|
196
196
|
is_show_field: a,
|
|
@@ -203,70 +203,70 @@ var Z = l(), _t = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), vt = (e, t = "
|
|
|
203
203
|
};
|
|
204
204
|
},
|
|
205
205
|
components: {
|
|
206
|
-
IconSelect:
|
|
207
|
-
RichTextEditor:
|
|
208
|
-
Upload:
|
|
209
|
-
RemoteCascaderPro:
|
|
210
|
-
RemoteTreeSelectPro:
|
|
211
|
-
RemoteSelectPro:
|
|
212
|
-
RemoteComplete:
|
|
213
|
-
AttributeTable:
|
|
214
|
-
AttributeNomTable:
|
|
215
|
-
RemoteFilterSelect:
|
|
216
|
-
RemoteModal:
|
|
206
|
+
IconSelect: le,
|
|
207
|
+
RichTextEditor: oe,
|
|
208
|
+
Upload: fe,
|
|
209
|
+
RemoteCascaderPro: me,
|
|
210
|
+
RemoteTreeSelectPro: se,
|
|
211
|
+
RemoteSelectPro: w,
|
|
212
|
+
RemoteComplete: ue,
|
|
213
|
+
AttributeTable: ne,
|
|
214
|
+
AttributeNomTable: T,
|
|
215
|
+
RemoteFilterSelect: te,
|
|
216
|
+
RemoteModal: ee,
|
|
217
217
|
RemoteSelect: o,
|
|
218
218
|
RemoteCascader: c,
|
|
219
|
-
RemoteTreeSelect:
|
|
220
|
-
RemoteTable:
|
|
221
|
-
JsonStr:
|
|
222
|
-
JsonObj:
|
|
223
|
-
RemoteText:
|
|
224
|
-
RemoteTablePro:
|
|
225
|
-
PlusOutlined:
|
|
226
|
-
MonthPicker:
|
|
227
|
-
MonthRangePicker:
|
|
228
|
-
CodeEditor:
|
|
229
|
-
TinymceEditor:
|
|
219
|
+
RemoteTreeSelect: C,
|
|
220
|
+
RemoteTable: S,
|
|
221
|
+
JsonStr: re,
|
|
222
|
+
JsonObj: ie,
|
|
223
|
+
RemoteText: E,
|
|
224
|
+
RemoteTablePro: ge,
|
|
225
|
+
PlusOutlined: it,
|
|
226
|
+
MonthPicker: pe,
|
|
227
|
+
MonthRangePicker: de,
|
|
228
|
+
CodeEditor: ce,
|
|
229
|
+
TinymceEditor: he
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
231
|
+
}), St = {
|
|
232
232
|
key: 0,
|
|
233
233
|
style: {
|
|
234
234
|
height: "62px",
|
|
235
235
|
width: "200px"
|
|
236
236
|
}
|
|
237
|
-
},
|
|
237
|
+
}, Ct = { key: 1 }, wt = { key: 0 }, Tt = { key: 1 }, Et = {
|
|
238
238
|
key: 3,
|
|
239
239
|
style: {
|
|
240
240
|
height: "30px",
|
|
241
241
|
position: "relative"
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, Dt = { style: {
|
|
244
244
|
position: "absolute",
|
|
245
245
|
bottom: "0",
|
|
246
246
|
padding: "0",
|
|
247
247
|
margin: "0",
|
|
248
248
|
"font-weight": "bolder",
|
|
249
249
|
"font-size": "17px"
|
|
250
|
-
} },
|
|
251
|
-
function
|
|
250
|
+
} }, Ot = { key: 0 }, kt = { key: 0 }, At = { key: 0 }, jt = { key: 0 }, Mt = { key: 0 }, Nt = { key: 0 }, Pt = { key: 0 }, Ft = { key: 0 };
|
|
251
|
+
function It(e, t, n, r, i, a) {
|
|
252
252
|
let o = V("a-tag"), s = V("a-rate"), c = V("a-input"), l = V("a-input-number"), u = V("a-select-option"), d = V("a-select"), f = V("a-cascader"), p = V("remote-cascader"), m = V("remote-cascader-pro"), h = V("month-picker"), g = V("a-date-picker"), _ = V("a-range-picker"), v = V("month-range-picker"), y = V("a-time-picker"), b = V("a-time-range-picker"), x = V("a-radio"), ee = V("a-radio-group"), S = V("a-checkbox"), C = V("a-checkbox-group"), w = V("a-tree-select"), te = V("remote-filter-select"), T = V("remote-select"), ne = V("remote-select-pro"), re = V("remote-complete"), ie = V("remote-tree-select"), E = V("remote-tree-select-pro"), ae = V("remote-modal"), oe = V("remote-table"), se = V("remote-text"), ce = V("a-divider");
|
|
253
253
|
return R(), j(D, null, [e.field.type !== "divider" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (R(), j(D, { key: 0 }, [
|
|
254
|
-
|
|
255
|
-
e.field.type === "kong" ? (R(), j("div",
|
|
256
|
-
e.field.type === "tag" ? (R(), j("div",
|
|
254
|
+
je(e.$slots, "default", {}, void 0, !0),
|
|
255
|
+
e.field.type === "kong" ? (R(), j("div", St)) : A("", !0),
|
|
256
|
+
e.field.type === "tag" ? (R(), j("div", Ct, [e.field.content && e.field.content(e.field, e.model) || e.model ? (R(), k(o, {
|
|
257
257
|
key: 0,
|
|
258
258
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
259
259
|
style: L(e.field.style),
|
|
260
260
|
onClick: t[0] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
261
261
|
}, {
|
|
262
|
-
default: K(() => [e.field.content ? (R(), j("span",
|
|
262
|
+
default: K(() => [e.field.content ? (R(), j("span", wt, H(e.field.content(e.field, e.model)), 1)) : (R(), j("span", Tt, H(e.model), 1))]),
|
|
263
263
|
_: 1
|
|
264
264
|
}, 8, ["color", "style"])) : A("", !0)])) : A("", !0),
|
|
265
265
|
e.field.type === "kong_title" ? (R(), j("div", {
|
|
266
266
|
key: 2,
|
|
267
267
|
style: L("height: " + e.field.height + "px")
|
|
268
268
|
}, null, 4)) : A("", !0),
|
|
269
|
-
e.field.type === "title" ? (R(), j("div",
|
|
269
|
+
e.field.type === "title" ? (R(), j("div", Et, [M("span", Dt, H(e.field.name), 1)])) : A("", !0),
|
|
270
270
|
e.field.type === "rate" ? (R(), k(s, {
|
|
271
271
|
key: 4,
|
|
272
272
|
value: e.model,
|
|
@@ -292,25 +292,25 @@ function Ft(e, t, n, r, i, a) {
|
|
|
292
292
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
293
293
|
size: "small",
|
|
294
294
|
style: L(`width: ${e.field_width}px`)
|
|
295
|
-
},
|
|
295
|
+
}, _e({ _: 2 }, [
|
|
296
296
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
297
297
|
name: "prefix",
|
|
298
|
-
fn: K(() => [e.field?.prefix ? (R(), j("span",
|
|
298
|
+
fn: K(() => [e.field?.prefix ? (R(), j("span", Ot, H(e.field.prefix), 1)) : A("", !0), e.field?.prefixIcon ? (R(), k(Me(e.field?.prefixIcon), { key: 1 })) : A("", !0)]),
|
|
299
299
|
key: "0"
|
|
300
300
|
} : void 0,
|
|
301
301
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
302
302
|
name: "suffix",
|
|
303
|
-
fn: K(() => [e.field?.suffix ? (R(), j("span",
|
|
303
|
+
fn: K(() => [e.field?.suffix ? (R(), j("span", kt, H(e.field.suffix), 1)) : A("", !0), e.field?.suffixIcon ? (R(), k(Me(e.field?.suffixIcon), { key: 1 })) : A("", !0)]),
|
|
304
304
|
key: "1"
|
|
305
305
|
} : void 0,
|
|
306
306
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
307
307
|
name: "addonBefore",
|
|
308
|
-
fn: K(() => [e.field?.addonBefore ? (R(), j("span",
|
|
308
|
+
fn: K(() => [e.field?.addonBefore ? (R(), j("span", At, H(e.field.addonBefore), 1)) : A("", !0), e.field?.addonBeforeIcon ? (R(), k(Me(e.field?.addonBeforeIcon), { key: 1 })) : A("", !0)]),
|
|
309
309
|
key: "2"
|
|
310
310
|
} : void 0,
|
|
311
311
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
312
312
|
name: "addonAfter",
|
|
313
|
-
fn: K(() => [e.field?.addonAfter ? (R(), j("span",
|
|
313
|
+
fn: K(() => [e.field?.addonAfter ? (R(), j("span", jt, H(e.field.addonAfter), 1)) : A("", !0), e.field?.addonAfterIcon ? (R(), k(Me(e.field?.addonAfterIcon), { key: 1 })) : A("", !0)]),
|
|
314
314
|
key: "3"
|
|
315
315
|
} : void 0
|
|
316
316
|
]), 1032, [
|
|
@@ -367,25 +367,25 @@ function Ft(e, t, n, r, i, a) {
|
|
|
367
367
|
step: e.field.step,
|
|
368
368
|
size: "small",
|
|
369
369
|
style: L(`width: ${e.field_width}px`)
|
|
370
|
-
},
|
|
370
|
+
}, _e({ _: 2 }, [
|
|
371
371
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
372
372
|
name: "prefix",
|
|
373
|
-
fn: K(() => [e.field?.prefix ? (R(), j("span",
|
|
373
|
+
fn: K(() => [e.field?.prefix ? (R(), j("span", Mt, H(e.field.prefix), 1)) : A("", !0), e.field?.prefixIcon ? (R(), k(Me(e.field?.prefixIcon), { key: 1 })) : A("", !0)]),
|
|
374
374
|
key: "0"
|
|
375
375
|
} : void 0,
|
|
376
376
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
377
377
|
name: "suffix",
|
|
378
|
-
fn: K(() => [e.field?.suffix ? (R(), j("span",
|
|
378
|
+
fn: K(() => [e.field?.suffix ? (R(), j("span", Nt, H(e.field.suffix), 1)) : A("", !0), e.field?.suffixIcon ? (R(), k(Me(e.field?.suffixIcon), { key: 1 })) : A("", !0)]),
|
|
379
379
|
key: "1"
|
|
380
380
|
} : void 0,
|
|
381
381
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
382
382
|
name: "addonBefore",
|
|
383
|
-
fn: K(() => [e.field?.addonBefore ? (R(), j("span",
|
|
383
|
+
fn: K(() => [e.field?.addonBefore ? (R(), j("span", Pt, H(e.field.addonBefore), 1)) : A("", !0), e.field?.addonBeforeIcon ? (R(), k(Me(e.field?.addonBeforeIcon), { key: 1 })) : A("", !0)]),
|
|
384
384
|
key: "2"
|
|
385
385
|
} : void 0,
|
|
386
386
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
387
387
|
name: "addonAfter",
|
|
388
|
-
fn: K(() => [e.field?.addonAfter ? (R(), j("span",
|
|
388
|
+
fn: K(() => [e.field?.addonAfter ? (R(), j("span", Ft, H(e.field.addonAfter), 1)) : A("", !0), e.field?.addonAfterIcon ? (R(), k(Me(e.field?.addonAfterIcon), { key: 1 })) : A("", !0)]),
|
|
389
389
|
key: "3"
|
|
390
390
|
} : void 0
|
|
391
391
|
]), 1032, [
|
|
@@ -1214,56 +1214,56 @@ function Ft(e, t, n, r, i, a) {
|
|
|
1214
1214
|
_: 1
|
|
1215
1215
|
}, 8, ["orientation"])) : A("", !0)], 64);
|
|
1216
1216
|
}
|
|
1217
|
-
var
|
|
1217
|
+
var Lt = /*#__PURE__*/ s(xt, [["render", It], ["__scopeId", "data-v-168ff853"]]);
|
|
1218
1218
|
//#endregion
|
|
1219
1219
|
//#region src/api/view-model.ts
|
|
1220
|
-
async function
|
|
1220
|
+
async function Rt(e) {
|
|
1221
1221
|
return r().post("/view/create_view_settings", e);
|
|
1222
1222
|
}
|
|
1223
|
-
async function
|
|
1223
|
+
async function zt(e) {
|
|
1224
1224
|
return r().post("/view/update_view_settings", e);
|
|
1225
1225
|
}
|
|
1226
|
-
async function
|
|
1226
|
+
async function Bt(e) {
|
|
1227
1227
|
return r().post("/view/refresh_view_settings_cache", e);
|
|
1228
1228
|
}
|
|
1229
|
-
async function
|
|
1229
|
+
async function Vt(e) {
|
|
1230
1230
|
return r().post("/view/set_view_settings_default", e);
|
|
1231
1231
|
}
|
|
1232
|
-
async function
|
|
1232
|
+
async function Ht(e) {
|
|
1233
1233
|
return r().post("/view/delete_view_settings", e);
|
|
1234
1234
|
}
|
|
1235
|
-
async function
|
|
1235
|
+
async function Ut(e) {
|
|
1236
1236
|
return r().post("/view/get_view_settings_for_user", e);
|
|
1237
1237
|
}
|
|
1238
|
-
async function
|
|
1238
|
+
async function Wt(e) {
|
|
1239
1239
|
return r().post("/view/change_view_settings_sort", e);
|
|
1240
1240
|
}
|
|
1241
|
-
async function
|
|
1241
|
+
async function Gt(e) {
|
|
1242
1242
|
return r().post("/view/query_view_settings_list", e);
|
|
1243
1243
|
}
|
|
1244
1244
|
//#endregion
|
|
1245
1245
|
//#region src/utils/dom.ts
|
|
1246
|
-
function
|
|
1246
|
+
function Kt(e, t) {
|
|
1247
1247
|
if (!e) return t;
|
|
1248
1248
|
let n;
|
|
1249
1249
|
return n = typeof e == "function" ? e() : "value" in e ? e.value?.$el : e, n;
|
|
1250
1250
|
}
|
|
1251
1251
|
//#endregion
|
|
1252
1252
|
//#region src/utils/hooks/useFullscreen.ts
|
|
1253
|
-
var
|
|
1253
|
+
var qt = (e) => {
|
|
1254
1254
|
let { onExitFull: t, onFull: n } = e || {}, r = z(null), i = z(t), a = z(n), o = z(!1), s = () => {
|
|
1255
|
-
if (
|
|
1256
|
-
let { isFullscreen: e } =
|
|
1257
|
-
e ? a.value && a.value() : (
|
|
1255
|
+
if (gt.isEnabled) {
|
|
1256
|
+
let { isFullscreen: e } = gt;
|
|
1257
|
+
e ? a.value && a.value() : (gt.off("change", s), i.value && i.value()), o.value = e;
|
|
1258
1258
|
}
|
|
1259
1259
|
}, c = () => {
|
|
1260
|
-
let e =
|
|
1261
|
-
e &&
|
|
1260
|
+
let e = Kt(r);
|
|
1261
|
+
e && gt.isEnabled && (gt.request(e), gt.on("change", s));
|
|
1262
1262
|
}, l = () => {
|
|
1263
|
-
o.value &&
|
|
1263
|
+
o.value && gt.isEnabled && gt.exit();
|
|
1264
1264
|
};
|
|
1265
|
-
return
|
|
1266
|
-
|
|
1265
|
+
return Oe(() => {
|
|
1266
|
+
gt.isEnabled && gt.off("change", s);
|
|
1267
1267
|
}), [
|
|
1268
1268
|
r,
|
|
1269
1269
|
o,
|
|
@@ -1275,7 +1275,7 @@ var Kt = (e) => {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
];
|
|
1278
|
-
},
|
|
1278
|
+
}, Jt = b, Yt = [
|
|
1279
1279
|
{
|
|
1280
1280
|
value: "上月",
|
|
1281
1281
|
label: "上月"
|
|
@@ -1296,29 +1296,8 @@ var Kt = (e) => {
|
|
|
1296
1296
|
value: "期初",
|
|
1297
1297
|
label: "期初"
|
|
1298
1298
|
}
|
|
1299
|
-
],
|
|
1300
|
-
|
|
1301
|
-
gt: 1,
|
|
1302
|
-
lt: 1,
|
|
1303
|
-
gte: 1,
|
|
1304
|
-
lte: 1,
|
|
1305
|
-
in: 0,
|
|
1306
|
-
eq: 1,
|
|
1307
|
-
_eq: 1,
|
|
1308
|
-
contains: 1,
|
|
1309
|
-
icontains: 1,
|
|
1310
|
-
startswith: 1,
|
|
1311
|
-
notbetween: 2,
|
|
1312
|
-
notin: 0,
|
|
1313
|
-
notcontains: 1,
|
|
1314
|
-
not_eq: 1,
|
|
1315
|
-
not_blank_not_null: 1,
|
|
1316
|
-
json_list_not_blank_not_null: 1,
|
|
1317
|
-
json_list_is_blank_is_null: 1,
|
|
1318
|
-
is_or_not_blank_or_null: 1,
|
|
1319
|
-
is_or_not_null: 1
|
|
1320
|
-
}, Xt = (e, t) => Yt[e], Zt = (e) => e?.default_operator ? e.default_operator : e?.operator_list instanceof Array && e.operator_list.length > 0 ? e.operator_list[0] : "eq", Qt = Symbol("tableProState"), $t = () => ye(Qt), en = async (e, r, i, a) => {
|
|
1321
|
-
let o = n().userid, s = await Ht({
|
|
1299
|
+
], Xt = (e, t) => x[e], Zt = (e) => e?.default_operator ? e.default_operator : e?.operator_list instanceof Array && e.operator_list.length > 0 ? e.operator_list[0] : "eq", Qt = Symbol("tableProState"), $t = () => be(Qt), en = async (e, r, i, a) => {
|
|
1300
|
+
let o = n().userid, s = await Ut({
|
|
1322
1301
|
user_id: o,
|
|
1323
1302
|
view_project__flag: t().VITE_APP_VIEW_PROJECT_FLAG,
|
|
1324
1303
|
view_menu__flag: e,
|
|
@@ -1567,7 +1546,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
1567
1546
|
},
|
|
1568
1547
|
emits: ["update:searchConditions", "change"],
|
|
1569
1548
|
setup(e, { emit: t }) {
|
|
1570
|
-
let n = e, r = t, { t: i } =
|
|
1549
|
+
let n = e, r = t, { t: i } = X(), a = z([]), o = async (e, t, r) => {
|
|
1571
1550
|
let a = [], o;
|
|
1572
1551
|
if (t === "is_or_not_blank_or_null" || t === "is_or_not_null") return i(r === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
|
|
1573
1552
|
if (t === "_eq") {
|
|
@@ -1582,9 +1561,9 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
1582
1561
|
e.options.forEach((e) => {
|
|
1583
1562
|
t == e.value && a.push(e.label || e.name);
|
|
1584
1563
|
});
|
|
1585
|
-
}), n.searchType === "advanced" ? `${
|
|
1564
|
+
}), n.searchType === "advanced" ? `${Jt[t]} ${a.join(",")}` : a.join(",")) : (e.options.forEach((e) => {
|
|
1586
1565
|
r == e.value && (o = e.label);
|
|
1587
|
-
}), n.searchType === "advanced" ? `${
|
|
1566
|
+
}), n.searchType === "advanced" ? `${Jt[t]} ${o}` : o);
|
|
1588
1567
|
else if (e.type == "monthpicker" && e.dateFormat) {
|
|
1589
1568
|
if (r instanceof Array) {
|
|
1590
1569
|
let t = [];
|
|
@@ -1592,7 +1571,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
1592
1571
|
n ? t.push(J(n).format(e.dateFormat)) : t.push(n);
|
|
1593
1572
|
}), o = t.join(",");
|
|
1594
1573
|
} else o = J(r).format(e.dateFormat);
|
|
1595
|
-
return n.searchType === "advanced" ? `${
|
|
1574
|
+
return n.searchType === "advanced" ? `${Jt[t]} ${o}` : o;
|
|
1596
1575
|
} else if (e.type === "remoteselectpro") {
|
|
1597
1576
|
let i = await cn(r, {
|
|
1598
1577
|
postUrl: e.postUrl,
|
|
@@ -1603,8 +1582,8 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
1603
1582
|
labelSpace: e.labelSpace,
|
|
1604
1583
|
queryType: e.queryType
|
|
1605
1584
|
});
|
|
1606
|
-
return n.searchType === "advanced" ? `${
|
|
1607
|
-
} else return r instanceof Array ? (r = r.map((e) => e instanceof Boolean ? e ? "是" : "否" : e), r = r.join(",")) : r instanceof Boolean && (r = r ? "是" : "否"), n.searchType === "advanced" ? `${
|
|
1585
|
+
return n.searchType === "advanced" ? `${Jt[t]} ${i}` : i;
|
|
1586
|
+
} else return r instanceof Array ? (r = r.map((e) => e instanceof Boolean ? e ? "是" : "否" : e), r = r.join(",")) : r instanceof Boolean && (r = r ? "是" : "否"), n.searchType === "advanced" ? `${Jt[t]} ${r}` : r;
|
|
1608
1587
|
}, s = async () => {
|
|
1609
1588
|
let e = {};
|
|
1610
1589
|
for (let t of n.searchConditions) e[t.field_name] = {
|
|
@@ -1631,7 +1610,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
1631
1610
|
}, l = () => {
|
|
1632
1611
|
n.eventBus.emit("refresh");
|
|
1633
1612
|
};
|
|
1634
|
-
return
|
|
1613
|
+
return De(() => {
|
|
1635
1614
|
s();
|
|
1636
1615
|
}), G(() => n.searchConditions, s), G(() => n.searchConfig, s), G(() => n.searchType, s), (e, t) => {
|
|
1637
1616
|
let n = V("a-tag"), r = V("RedoOutlined"), i = V("a-button");
|
|
@@ -1672,7 +1651,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
1672
1651
|
},
|
|
1673
1652
|
emits: ["update:open", "change"],
|
|
1674
1653
|
setup(e, { emit: t }) {
|
|
1675
|
-
let n = e, r = t, { t: i } =
|
|
1654
|
+
let n = e, r = t, { t: i } = X(), a = z(!1), o = z(""), s = z(""), c = z([]), l = z([]), u = z([]), d = [{
|
|
1676
1655
|
title: i("字段名称"),
|
|
1677
1656
|
dataIndex: "label",
|
|
1678
1657
|
key: "label",
|
|
@@ -1836,7 +1815,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
1836
1815
|
disabled: c.value.length === 0,
|
|
1837
1816
|
onClick: y
|
|
1838
1817
|
}, {
|
|
1839
|
-
icon: K(() => [P(U(
|
|
1818
|
+
icon: K(() => [P(U(ot))]),
|
|
1840
1819
|
_: 1
|
|
1841
1820
|
}, 8, ["disabled"]), P(i, {
|
|
1842
1821
|
type: "primary",
|
|
@@ -1844,7 +1823,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
1844
1823
|
disabled: l.value.length === 0,
|
|
1845
1824
|
onClick: b
|
|
1846
1825
|
}, {
|
|
1847
|
-
icon: K(() => [P(U(
|
|
1826
|
+
icon: K(() => [P(U(nt))]),
|
|
1848
1827
|
_: 1
|
|
1849
1828
|
}, 8, ["disabled"])]),
|
|
1850
1829
|
M("div", _n, [M("div", vn, [N(H(e.$t("已选字段")) + " ", 1), P(n, {
|
|
@@ -1923,7 +1902,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
1923
1902
|
},
|
|
1924
1903
|
emits: ["update:searchConditions", "change"],
|
|
1925
1904
|
setup(e, { emit: t }) {
|
|
1926
|
-
let n = e, r = t, { t: i } =
|
|
1905
|
+
let n = e, r = t, { t: i } = X(), a = z({}), o = z({}), s = z([{
|
|
1927
1906
|
value: "yes",
|
|
1928
1907
|
label: i("is_or_not_blank_or_null.yes")
|
|
1929
1908
|
}, {
|
|
@@ -2038,14 +2017,14 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2038
2017
|
value: e,
|
|
2039
2018
|
key: e
|
|
2040
2019
|
}, {
|
|
2041
|
-
default: K(() => [P(r, { title: U(
|
|
2042
|
-
default: K(() => [N(H(U(
|
|
2020
|
+
default: K(() => [P(r, { title: U(Jt)[e] }, {
|
|
2021
|
+
default: K(() => [N(H(U(Jt)[e]), 1)]),
|
|
2043
2022
|
_: 2
|
|
2044
2023
|
}, 1032, ["title"])]),
|
|
2045
2024
|
_: 2
|
|
2046
2025
|
}, 1032, ["value"]))), 128))]),
|
|
2047
2026
|
_: 2
|
|
2048
|
-
}, 1032, ["value", "onChange"])) : A("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(c.operator) ? (R(), k(
|
|
2027
|
+
}, 1032, ["value", "onChange"])) : A("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(c.operator) ? (R(), k(Lt, {
|
|
2049
2028
|
key: 1,
|
|
2050
2029
|
is_show_label: !1,
|
|
2051
2030
|
label: c.field_name,
|
|
@@ -2072,7 +2051,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2072
2051
|
"validateInfos",
|
|
2073
2052
|
"onUpdate:value",
|
|
2074
2053
|
"field_width"
|
|
2075
|
-
])) : c.operator === "between" || c.operator === "notbetween" ? (R(), j(D, { key: 2 }, [c.type === "datepicker" ? (R(), k(
|
|
2054
|
+
])) : c.operator === "between" || c.operator === "notbetween" ? (R(), j(D, { key: 2 }, [c.type === "datepicker" ? (R(), k(Lt, {
|
|
2076
2055
|
key: 0,
|
|
2077
2056
|
is_show_label: !1,
|
|
2078
2057
|
label: c.field_name,
|
|
@@ -2094,7 +2073,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2094
2073
|
"validateInfos",
|
|
2095
2074
|
"field_width",
|
|
2096
2075
|
"onUpdate:value"
|
|
2097
|
-
])) : c.type === "monthpicker" ? (R(), k(
|
|
2076
|
+
])) : c.type === "monthpicker" ? (R(), k(Lt, {
|
|
2098
2077
|
key: 1,
|
|
2099
2078
|
is_show_label: !1,
|
|
2100
2079
|
label: c.field_name,
|
|
@@ -2116,7 +2095,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2116
2095
|
"field_width",
|
|
2117
2096
|
"onUpdate:value"
|
|
2118
2097
|
])) : (R(), j(D, { key: 2 }, [
|
|
2119
|
-
P(
|
|
2098
|
+
P(Lt, {
|
|
2120
2099
|
is_show_label: !1,
|
|
2121
2100
|
label: c.field_name,
|
|
2122
2101
|
value: c.value?.[0],
|
|
@@ -2137,7 +2116,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2137
2116
|
"onUpdate:value"
|
|
2138
2117
|
]),
|
|
2139
2118
|
n[0] ||= M("span", { class: "range" }, "~", -1),
|
|
2140
|
-
P(
|
|
2119
|
+
P(Lt, {
|
|
2141
2120
|
is_show_label: !1,
|
|
2142
2121
|
label: c.field_name,
|
|
2143
2122
|
value: c.value?.[1],
|
|
@@ -2157,7 +2136,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2157
2136
|
"field_width",
|
|
2158
2137
|
"onUpdate:value"
|
|
2159
2138
|
])
|
|
2160
|
-
], 64))], 64)) : c.operator === "_eq" ? (R(), k(
|
|
2139
|
+
], 64))], 64)) : c.operator === "_eq" ? (R(), k(Lt, {
|
|
2161
2140
|
key: 3,
|
|
2162
2141
|
is_show_label: !1,
|
|
2163
2142
|
label: c.field_name,
|
|
@@ -2171,7 +2150,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2171
2150
|
placeholder: ""
|
|
2172
2151
|
},
|
|
2173
2152
|
formModel: a.value,
|
|
2174
|
-
options: U(
|
|
2153
|
+
options: U(Yt),
|
|
2175
2154
|
validateInfos: o.value,
|
|
2176
2155
|
field_width: c.field_width,
|
|
2177
2156
|
"onUpdate:value": (e) => d(c.field_name, "value", e)
|
|
@@ -2184,7 +2163,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2184
2163
|
"validateInfos",
|
|
2185
2164
|
"field_width",
|
|
2186
2165
|
"onUpdate:value"
|
|
2187
|
-
])) : c.type === "datepicker" || c.type === "monthpicker" ? (R(), k(
|
|
2166
|
+
])) : c.type === "datepicker" || c.type === "monthpicker" ? (R(), k(Lt, {
|
|
2188
2167
|
key: 4,
|
|
2189
2168
|
is_show_label: !1,
|
|
2190
2169
|
label: c.field_name,
|
|
@@ -2207,7 +2186,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2207
2186
|
"validateInfos",
|
|
2208
2187
|
"field_width",
|
|
2209
2188
|
"onUpdate:value"
|
|
2210
|
-
])) : (R(), k(
|
|
2189
|
+
])) : (R(), k(Lt, {
|
|
2211
2190
|
key: 5,
|
|
2212
2191
|
is_show_label: !1,
|
|
2213
2192
|
label: c.field_name,
|
|
@@ -2299,7 +2278,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2299
2278
|
"change"
|
|
2300
2279
|
],
|
|
2301
2280
|
setup(e, { emit: t }) {
|
|
2302
|
-
let n = e, r = t, { t: i } =
|
|
2281
|
+
let n = e, r = t, { t: i } = X(), a = z(!1), o = z(!1), { config: s } = $t(), c = (e) => {
|
|
2303
2282
|
r("update:searchConditions", e);
|
|
2304
2283
|
}, l = () => {
|
|
2305
2284
|
r("change");
|
|
@@ -2308,7 +2287,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2308
2287
|
}, d = (e) => {
|
|
2309
2288
|
r("viewSearchConfigChange", e);
|
|
2310
2289
|
}, f = O(() => n.searchDisplayType || "hide");
|
|
2311
|
-
return
|
|
2290
|
+
return De(() => {
|
|
2312
2291
|
["show", "show_no_hide"].includes(f.value) && (a.value = !0);
|
|
2313
2292
|
}), (t, n) => {
|
|
2314
2293
|
let r = V("a-button"), i = V("SettingOutlined"), p = V("a-tooltip");
|
|
@@ -2454,7 +2433,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2454
2433
|
},
|
|
2455
2434
|
emits: ["update:searchGroups", "change"],
|
|
2456
2435
|
setup(e, { emit: t }) {
|
|
2457
|
-
let n = e, r = t, { t: i } =
|
|
2436
|
+
let n = e, r = t, { t: i } = X(), a = z(!1), o = z({}), { config: s } = $t(), c = () => {
|
|
2458
2437
|
n.eventBus.emit("refresh");
|
|
2459
2438
|
}, l = () => {
|
|
2460
2439
|
let e = n.searchGroups[0]?.viewSearchConfig || {}, t = Object.keys(e).reduce((t, n) => (t[n] = { ...e[n] }, t), {});
|
|
@@ -2483,7 +2462,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2483
2462
|
conditions: t
|
|
2484
2463
|
} : n)), c();
|
|
2485
2464
|
}, h = O(() => n.searchDisplayType || "hide");
|
|
2486
|
-
return
|
|
2465
|
+
return De(() => {
|
|
2487
2466
|
["show", "show_no_hide"].includes(h.value) && (a.value = !0);
|
|
2488
2467
|
}), (t, n) => {
|
|
2489
2468
|
let r = V("a-button"), i = V("SettingOutlined"), g = V("a-tooltip"), _ = V("DeleteOutlined"), v = V("PlusOutlined");
|
|
@@ -2645,7 +2624,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2645
2624
|
"update:searchConditions"
|
|
2646
2625
|
],
|
|
2647
2626
|
setup(e, { emit: t }) {
|
|
2648
|
-
let n = e, r = t, { t: i } =
|
|
2627
|
+
let n = e, r = t, { t: i } = X(), a = z({}), o = z({}), s = z([{
|
|
2649
2628
|
value: "yes",
|
|
2650
2629
|
label: i("is_or_not_blank_or_null.yes")
|
|
2651
2630
|
}, {
|
|
@@ -2735,11 +2714,11 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2735
2714
|
value: e,
|
|
2736
2715
|
key: e
|
|
2737
2716
|
}, {
|
|
2738
|
-
default: K(() => [N(H(U(
|
|
2717
|
+
default: K(() => [N(H(U(Jt)[e]), 1)]),
|
|
2739
2718
|
_: 2
|
|
2740
2719
|
}, 1032, ["value"]))), 128))]),
|
|
2741
2720
|
_: 1
|
|
2742
|
-
}, 8, ["value"])) : A("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(c.value.operator) ? (R(), k(
|
|
2721
|
+
}, 8, ["value"])) : A("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(c.value.operator) ? (R(), k(Lt, {
|
|
2743
2722
|
key: 1,
|
|
2744
2723
|
is_show_label: !1,
|
|
2745
2724
|
label: e.column.dataIndex,
|
|
@@ -2765,7 +2744,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2765
2744
|
"options",
|
|
2766
2745
|
"validateInfos",
|
|
2767
2746
|
"field_width"
|
|
2768
|
-
])) : ["between", "notbetween"].includes(c.value.operator) ? (R(), j(D, { key: 2 }, [c.value.type === "datepicker" ? (R(), k(
|
|
2747
|
+
])) : ["between", "notbetween"].includes(c.value.operator) ? (R(), j(D, { key: 2 }, [c.value.type === "datepicker" ? (R(), k(Lt, {
|
|
2769
2748
|
key: 0,
|
|
2770
2749
|
is_show_label: !1,
|
|
2771
2750
|
label: e.column.dataIndex,
|
|
@@ -2786,7 +2765,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2786
2765
|
"formModel",
|
|
2787
2766
|
"validateInfos",
|
|
2788
2767
|
"field_width"
|
|
2789
|
-
])) : c.value.type === "monthpicker" ? (R(), k(
|
|
2768
|
+
])) : c.value.type === "monthpicker" ? (R(), k(Lt, {
|
|
2790
2769
|
key: 1,
|
|
2791
2770
|
is_show_label: !1,
|
|
2792
2771
|
label: e.column.dataIndex,
|
|
@@ -2807,7 +2786,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2807
2786
|
"validateInfos",
|
|
2808
2787
|
"field_width"
|
|
2809
2788
|
])) : (R(), j(D, { key: 2 }, [
|
|
2810
|
-
P(
|
|
2789
|
+
P(Lt, {
|
|
2811
2790
|
is_show_label: !1,
|
|
2812
2791
|
label: e.column.dataIndex,
|
|
2813
2792
|
value: l.value?.[0],
|
|
@@ -2833,7 +2812,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2833
2812
|
"line-height": "24px"
|
|
2834
2813
|
}
|
|
2835
2814
|
}, " ~ ", -1),
|
|
2836
|
-
P(
|
|
2815
|
+
P(Lt, {
|
|
2837
2816
|
is_show_label: !1,
|
|
2838
2817
|
label: e.column.dataIndex,
|
|
2839
2818
|
value: l.value?.[1],
|
|
@@ -2852,7 +2831,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2852
2831
|
"validateInfos",
|
|
2853
2832
|
"field_width"
|
|
2854
2833
|
])
|
|
2855
|
-
], 64))], 64)) : c.value.operator === "_eq" ? (R(), k(
|
|
2834
|
+
], 64))], 64)) : c.value.operator === "_eq" ? (R(), k(Lt, {
|
|
2856
2835
|
key: 3,
|
|
2857
2836
|
is_show_label: !1,
|
|
2858
2837
|
label: e.column.dataIndex,
|
|
@@ -2866,7 +2845,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2866
2845
|
placeholder: ""
|
|
2867
2846
|
},
|
|
2868
2847
|
formModel: a.value,
|
|
2869
|
-
options: U(
|
|
2848
|
+
options: U(Yt),
|
|
2870
2849
|
validateInfos: o.value,
|
|
2871
2850
|
field_width: c.value.field_width || 155,
|
|
2872
2851
|
"onUpdate:value": n[6] ||= (e) => u("value", e)
|
|
@@ -2878,7 +2857,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2878
2857
|
"options",
|
|
2879
2858
|
"validateInfos",
|
|
2880
2859
|
"field_width"
|
|
2881
|
-
])) : c.value.type === "datepicker" || c.value.type === "monthpicker" ? (R(), k(
|
|
2860
|
+
])) : c.value.type === "datepicker" || c.value.type === "monthpicker" ? (R(), k(Lt, {
|
|
2882
2861
|
key: 4,
|
|
2883
2862
|
is_show_label: !1,
|
|
2884
2863
|
label: e.column.dataIndex,
|
|
@@ -2900,7 +2879,7 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2900
2879
|
"options",
|
|
2901
2880
|
"validateInfos",
|
|
2902
2881
|
"field_width"
|
|
2903
|
-
])) : (R(), k(
|
|
2882
|
+
])) : (R(), k(Lt, {
|
|
2904
2883
|
key: 5,
|
|
2905
2884
|
is_show_label: !1,
|
|
2906
2885
|
label: e.column.dataIndex,
|
|
@@ -2935,8 +2914,8 @@ var dn = { class: "search-summary" }, fn = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
|
2935
2914
|
} },
|
|
2936
2915
|
emits: ["change"],
|
|
2937
2916
|
setup(e, { emit: t }) {
|
|
2938
|
-
let { t: n } =
|
|
2939
|
-
|
|
2917
|
+
let { t: n } = X(), r = z(""), i = z(null), a = z(500);
|
|
2918
|
+
ht(i, (e) => {
|
|
2940
2919
|
let t = e[0].contentRect.height;
|
|
2941
2920
|
t > 0 && (a.value = t);
|
|
2942
2921
|
});
|
|
@@ -4796,15 +4775,15 @@ Object.freeze({
|
|
|
4796
4775
|
//#region src/components/tablePro/func.ts
|
|
4797
4776
|
var Li = (e) => {
|
|
4798
4777
|
if (e == null || e === "") return null;
|
|
4799
|
-
if (e instanceof Date) return
|
|
4778
|
+
if (e instanceof Date) return ze(e);
|
|
4800
4779
|
if (typeof e == "number") {
|
|
4801
4780
|
if (!isFinite(e)) return null;
|
|
4802
|
-
let t =
|
|
4781
|
+
let t = ze(e < 0xe8d4a51000 ? e * 1e3 : e);
|
|
4803
4782
|
return t.isValid() ? t : null;
|
|
4804
4783
|
}
|
|
4805
4784
|
let t = String(e).trim();
|
|
4806
4785
|
if (!t) return null;
|
|
4807
|
-
let n =
|
|
4786
|
+
let n = ze(t.includes("T") ? t.replace("T", " ").slice(0, 19) : t);
|
|
4808
4787
|
return n.isValid() ? n : null;
|
|
4809
4788
|
}, Ri = (e) => Math.floor(e.month() / 3) + 1, zi = [
|
|
4810
4789
|
{
|
|
@@ -5067,7 +5046,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5067
5046
|
"change"
|
|
5068
5047
|
],
|
|
5069
5048
|
setup(e, { emit: t }) {
|
|
5070
|
-
let n = e, r = t, i =
|
|
5049
|
+
let n = e, r = t, i = W(), a = O(() => {
|
|
5071
5050
|
let e = {};
|
|
5072
5051
|
for (let [t, n] of Object.entries(i)) t === "onChange" || t === "onUpdate:value" || t === "onUpdate:modelValue" || (e[t] = n);
|
|
5073
5052
|
return e;
|
|
@@ -5080,16 +5059,16 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5080
5059
|
let c = (e) => {
|
|
5081
5060
|
o.value = e, s(e);
|
|
5082
5061
|
};
|
|
5083
|
-
return
|
|
5062
|
+
return Te(() => {
|
|
5084
5063
|
s.cancel();
|
|
5085
5064
|
}), (e, t) => {
|
|
5086
5065
|
let n = V("a-input");
|
|
5087
|
-
return R(), k(n,
|
|
5066
|
+
return R(), k(n, Se(a.value, {
|
|
5088
5067
|
value: o.value,
|
|
5089
5068
|
"onUpdate:value": c
|
|
5090
|
-
}),
|
|
5069
|
+
}), _e({ _: 2 }, [B(e.$slots, (t, n) => ({
|
|
5091
5070
|
name: n,
|
|
5092
|
-
fn: K((t) => [
|
|
5071
|
+
fn: K((t) => [je(e.$slots, n, Ce(ve(t)))])
|
|
5093
5072
|
}))]), 1040, ["value"]);
|
|
5094
5073
|
};
|
|
5095
5074
|
}
|
|
@@ -5237,7 +5216,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5237
5216
|
display: ":",
|
|
5238
5217
|
label: "三目:分隔真/假值"
|
|
5239
5218
|
}
|
|
5240
|
-
], p = f.filter((e) => e.value !== "?" && e.value !== ":"), m =
|
|
5219
|
+
], p = f.filter((e) => e.value !== "?" && e.value !== ":"), m = be("vfLocalDrag", z(null)), h = z(-1), g = z(null), _ = z(""), v = z(""), y = z(!1), b = z(null), x = O(() => {
|
|
5241
5220
|
if (!b.value) return "";
|
|
5242
5221
|
let e = y.value ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
5243
5222
|
try {
|
|
@@ -5333,9 +5312,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5333
5312
|
id: e.id,
|
|
5334
5313
|
name: e.label
|
|
5335
5314
|
};
|
|
5336
|
-
},
|
|
5315
|
+
}, _e = () => {
|
|
5337
5316
|
m.value = null, h.value = -1, g.value = null;
|
|
5338
|
-
},
|
|
5317
|
+
}, F = (e) => {
|
|
5339
5318
|
let t = e.currentTarget, n = Array.from(t.querySelectorAll(".vee-token"));
|
|
5340
5319
|
if (n.length === 0) return 0;
|
|
5341
5320
|
let r = e.clientY, i = n.map((e) => e.getBoundingClientRect()), a = [];
|
|
@@ -5375,9 +5354,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5375
5354
|
top: o.top + a,
|
|
5376
5355
|
height: o.height
|
|
5377
5356
|
};
|
|
5378
|
-
},
|
|
5357
|
+
}, ye = (e) => {
|
|
5379
5358
|
if (!m.value) return;
|
|
5380
|
-
let t = e.currentTarget, n =
|
|
5359
|
+
let t = e.currentTarget, n = F(e);
|
|
5381
5360
|
h.value = n, g.value = ve(t, n);
|
|
5382
5361
|
}, xe = (e) => {
|
|
5383
5362
|
let t = e.currentTarget, n = e.relatedTarget;
|
|
@@ -5535,7 +5514,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5535
5514
|
class: "vee-op-btn",
|
|
5536
5515
|
draggable: "true",
|
|
5537
5516
|
onDragstart: (t) => le(e.value),
|
|
5538
|
-
onDragend:
|
|
5517
|
+
onDragend: _e,
|
|
5539
5518
|
onClick: (t) => ke(e.value),
|
|
5540
5519
|
title: e.label
|
|
5541
5520
|
}, {
|
|
@@ -5551,7 +5530,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5551
5530
|
class: "vee-op-btn",
|
|
5552
5531
|
draggable: "true",
|
|
5553
5532
|
onDragstart: t[0] ||= (e) => le("()"),
|
|
5554
|
-
onDragend:
|
|
5533
|
+
onDragend: _e,
|
|
5555
5534
|
onClick: t[1] ||= (e) => ke("()"),
|
|
5556
5535
|
title: e.$t("括号(成对插入)")
|
|
5557
5536
|
}, {
|
|
@@ -5563,7 +5542,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5563
5542
|
class: "vee-op-btn",
|
|
5564
5543
|
draggable: "true",
|
|
5565
5544
|
onDragstart: t[2] ||= (e) => le("?:"),
|
|
5566
|
-
onDragend:
|
|
5545
|
+
onDragend: _e,
|
|
5567
5546
|
onClick: t[3] ||= (e) => ke("?:"),
|
|
5568
5547
|
title: e.$t("三目:条件 ? 真值 : 假值(成对插入)")
|
|
5569
5548
|
}, {
|
|
@@ -5576,7 +5555,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5576
5555
|
draggable: "true",
|
|
5577
5556
|
onClick: t[4] ||= (e) => W("true"),
|
|
5578
5557
|
onDragstart: t[5] ||= (e) => fe("true"),
|
|
5579
|
-
onDragend:
|
|
5558
|
+
onDragend: _e
|
|
5580
5559
|
}, {
|
|
5581
5560
|
default: K(() => t[14] ||= [N(" true ")]),
|
|
5582
5561
|
_: 1
|
|
@@ -5587,7 +5566,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5587
5566
|
draggable: "true",
|
|
5588
5567
|
onClick: t[6] ||= (e) => W("false"),
|
|
5589
5568
|
onDragstart: t[7] ||= (e) => fe("false"),
|
|
5590
|
-
onDragend:
|
|
5569
|
+
onDragend: _e
|
|
5591
5570
|
}, {
|
|
5592
5571
|
default: K(() => t[15] ||= [N(" false ")]),
|
|
5593
5572
|
_: 1
|
|
@@ -5596,7 +5575,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5596
5575
|
M("div", {
|
|
5597
5576
|
draggable: w.value,
|
|
5598
5577
|
onDragstart: ue,
|
|
5599
|
-
onDragend:
|
|
5578
|
+
onDragend: _e,
|
|
5600
5579
|
class: I({ "vee-op-item": w.value })
|
|
5601
5580
|
}, [P(r, {
|
|
5602
5581
|
value: _.value,
|
|
@@ -5619,7 +5598,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5619
5598
|
M("div", {
|
|
5620
5599
|
draggable: te.value,
|
|
5621
5600
|
onDragstart: de,
|
|
5622
|
-
onDragend:
|
|
5601
|
+
onDragend: _e,
|
|
5623
5602
|
class: I({ "vee-op-item": te.value })
|
|
5624
5603
|
}, [P(r, {
|
|
5625
5604
|
value: v.value,
|
|
@@ -5643,7 +5622,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5643
5622
|
class: I(["vee-date-row", { "vee-op-item": ee.value }]),
|
|
5644
5623
|
draggable: ee.value,
|
|
5645
5624
|
onDragstart: Me,
|
|
5646
|
-
onDragend:
|
|
5625
|
+
onDragend: _e
|
|
5647
5626
|
}, [
|
|
5648
5627
|
M("span", sa, H(e.$t("带时间")) + ":", 1),
|
|
5649
5628
|
P(a, {
|
|
@@ -5690,7 +5669,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5690
5669
|
class: "vee-subexpr-chip",
|
|
5691
5670
|
draggable: "true",
|
|
5692
5671
|
onDragstart: (e) => me(t),
|
|
5693
|
-
onDragend:
|
|
5672
|
+
onDragend: _e,
|
|
5694
5673
|
onClick: (e) => Ce(t.id),
|
|
5695
5674
|
title: e.$t("点击或拖拽引用子表达式") + ":" + t.name
|
|
5696
5675
|
}, H(t.name), 41, ua))), 128))])) : A("", !0),
|
|
@@ -5699,7 +5678,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5699
5678
|
class: "vee-value-chip",
|
|
5700
5679
|
draggable: "true",
|
|
5701
5680
|
onDragstart: (e) => he(t),
|
|
5702
|
-
onDragend:
|
|
5681
|
+
onDragend: _e,
|
|
5703
5682
|
onClick: (e) => we(t.id),
|
|
5704
5683
|
title: e.$t("点击或拖拽引用聚合后的值字段") + ":" + t.label
|
|
5705
5684
|
}, H(t.label), 41, pa))), 128))])) : A("", !0),
|
|
@@ -5708,13 +5687,13 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5708
5687
|
class: "vee-agg-chip",
|
|
5709
5688
|
draggable: "true",
|
|
5710
5689
|
onDragstart: (e) => ge(t),
|
|
5711
|
-
onDragend:
|
|
5690
|
+
onDragend: _e,
|
|
5712
5691
|
onClick: (e) => Te(t.id),
|
|
5713
5692
|
title: e.$t("点击或拖拽引用其它聚合计算值(后端递归展开)") + ":" + t.label
|
|
5714
5693
|
}, H(t.label), 41, ga))), 128))])) : A("", !0),
|
|
5715
5694
|
M("div", {
|
|
5716
5695
|
class: I(["vee-canvas", { "drag-over": h.value >= 0 }]),
|
|
5717
|
-
onDragover: q(
|
|
5696
|
+
onDragover: q(ye, ["prevent"]),
|
|
5718
5697
|
onDragleave: xe,
|
|
5719
5698
|
onDrop: q(Se, ["stop"])
|
|
5720
5699
|
}, [
|
|
@@ -5724,8 +5703,8 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5724
5703
|
class: I(["vee-token", oe(e)]),
|
|
5725
5704
|
draggable: "true",
|
|
5726
5705
|
onDragstart: q((e) => pe(t), ["stop"]),
|
|
5727
|
-
onDragend:
|
|
5728
|
-
}, [N(H(ae(e)) + " ", 1), P(U(
|
|
5706
|
+
onDragend: _e
|
|
5707
|
+
}, [N(H(ae(e)) + " ", 1), P(U(Ue), {
|
|
5729
5708
|
class: "vee-token-remove",
|
|
5730
5709
|
onClick: q((e) => Oe(t), ["stop"])
|
|
5731
5710
|
}, null, 8, ["onClick"])], 42, va))), 128)),
|
|
@@ -5768,7 +5747,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5768
5747
|
emits: ["update:modelValue", "change"],
|
|
5769
5748
|
setup(e, { expose: t, emit: n }) {
|
|
5770
5749
|
let r = e, i = n, a = z(null);
|
|
5771
|
-
|
|
5750
|
+
ke("vfLocalDrag", a);
|
|
5772
5751
|
let o = O(() => {
|
|
5773
5752
|
let e = r.subExpressions || [];
|
|
5774
5753
|
return r.modelValue?.id ? e.filter((e) => e.id !== r.modelValue.id) : e;
|
|
@@ -5840,7 +5819,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5840
5819
|
"allow-clear": "",
|
|
5841
5820
|
placeholder: e.$t("搜索字段")
|
|
5842
5821
|
}, {
|
|
5843
|
-
prefix: K(() => [P(U(
|
|
5822
|
+
prefix: K(() => [P(U(ct))]),
|
|
5844
5823
|
_: 1
|
|
5845
5824
|
}, 8, ["value", "placeholder"]),
|
|
5846
5825
|
M("div", Ea, [(R(!0), j(D, null, B(d.value, (e) => (R(), j("div", {
|
|
@@ -5851,7 +5830,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5851
5830
|
onDragstart: (t) => e.isLeaf ? p(e.option) : void 0,
|
|
5852
5831
|
onDragend: (t) => e.isLeaf ? m() : void 0,
|
|
5853
5832
|
title: e.isLeaf ? `${e.option.label}(${e.option.field})` : e.option.label
|
|
5854
|
-
}, [e.isLeaf ? (R(), k(U(
|
|
5833
|
+
}, [e.isLeaf ? (R(), k(U(Ke), {
|
|
5855
5834
|
key: 0,
|
|
5856
5835
|
class: "se-field-icon"
|
|
5857
5836
|
})) : (R(), j("span", Oa)), M("span", ka, H(e.isLeaf ? `${e.option.label}(${e.option.field})` : e.option.label), 1)], 46, Da))), 128)), d.value.length === 0 ? (R(), j("div", Aa, H(e.$t("未找到匹配字段")), 1)) : A("", !0)])
|
|
@@ -5899,7 +5878,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5899
5878
|
emits: ["update:modelValue", "change"],
|
|
5900
5879
|
setup(e, { expose: t, emit: n }) {
|
|
5901
5880
|
let r = e, i = n, a = z(null);
|
|
5902
|
-
|
|
5881
|
+
ke("vfLocalDrag", a);
|
|
5903
5882
|
let o = z((0, Z.cloneDeep)(r.modelValue));
|
|
5904
5883
|
G(() => r.modelValue, (e) => {
|
|
5905
5884
|
e && (o.value = (0, Z.cloneDeep)(e), o.value.totalAggregationMode || (o.value.totalAggregationMode = "sum_leaf"));
|
|
@@ -5956,7 +5935,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5956
5935
|
class: "ac-search",
|
|
5957
5936
|
placeholder: e.$t("搜索值字段")
|
|
5958
5937
|
}, {
|
|
5959
|
-
prefix: K(() => [P(U(
|
|
5938
|
+
prefix: K(() => [P(U(ct))]),
|
|
5960
5939
|
_: 1
|
|
5961
5940
|
}, 8, ["value", "placeholder"]),
|
|
5962
5941
|
M("div", Ra, [(R(!0), j(D, null, B(d.value, (e) => (R(), j("div", {
|
|
@@ -5966,7 +5945,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5966
5945
|
onDragstart: (t) => _(e),
|
|
5967
5946
|
onDragend: y,
|
|
5968
5947
|
title: e.label
|
|
5969
|
-
}, [P(U(
|
|
5948
|
+
}, [P(U(Ke), { class: "ac-field-icon" }), M("span", Ba, H(e.label), 1)], 40, za))), 128)), d.value.length === 0 ? (R(), j("div", Va, H(e.$t("暂无可选值字段")), 1)) : A("", !0)]),
|
|
5970
5949
|
M("div", Ha, H(e.$t("聚合计算值")), 1),
|
|
5971
5950
|
P(n, {
|
|
5972
5951
|
value: f.value,
|
|
@@ -5976,7 +5955,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5976
5955
|
class: "ac-search",
|
|
5977
5956
|
placeholder: e.$t("搜索聚合计算值")
|
|
5978
5957
|
}, {
|
|
5979
|
-
prefix: K(() => [P(U(
|
|
5958
|
+
prefix: K(() => [P(U(ct))]),
|
|
5980
5959
|
_: 1
|
|
5981
5960
|
}, 8, ["value", "placeholder"]),
|
|
5982
5961
|
M("div", Ua, [(R(!0), j(D, null, B(m.value, (e) => (R(), j("div", {
|
|
@@ -5986,7 +5965,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
5986
5965
|
onDragstart: (t) => v(e),
|
|
5987
5966
|
onDragend: y,
|
|
5988
5967
|
title: e.label
|
|
5989
|
-
}, [P(U(
|
|
5968
|
+
}, [P(U(He), { class: "ac-field-icon ac-agg-icon" }), M("span", Ga, H(e.label), 1)], 40, Wa))), 128)), m.value.length === 0 ? (R(), j("div", Ka, H(e.$t("暂无可引用聚合计算值(可先添加其它聚合计算值,再互相嵌套引用)")), 1)) : A("", !0)])
|
|
5990
5969
|
]), M("div", qa, [
|
|
5991
5970
|
M("div", Ja, [M("span", Ya, H(e.$t("名称")), 1), P(n, {
|
|
5992
5971
|
value: o.value.name,
|
|
@@ -6137,7 +6116,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6137
6116
|
"openValueConfig"
|
|
6138
6117
|
],
|
|
6139
6118
|
setup(e, { expose: t, emit: n }) {
|
|
6140
|
-
let r = e, i = n, a = z(""), o = z(null), s = z(""), c = z(""), l = z(-1), u = z(-1), d = z(null), f = z(null), p =
|
|
6119
|
+
let r = e, i = n, a = z(""), o = z(null), s = z(""), c = z(""), l = z(-1), u = z(-1), d = z(null), f = z(null), p = Ae(/* @__PURE__ */ new Set()), m = (e) => {
|
|
6141
6120
|
p.clear(), [...e.rows || [], ...e.columns || []].forEach((e) => {
|
|
6142
6121
|
e.id && e.label && p.add(e.id);
|
|
6143
6122
|
});
|
|
@@ -6350,11 +6329,11 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6350
6329
|
field: e.field,
|
|
6351
6330
|
label: e.label,
|
|
6352
6331
|
contentMap: e.contentMap
|
|
6353
|
-
}),
|
|
6332
|
+
}), _e = (e) => ({
|
|
6354
6333
|
id: g(),
|
|
6355
6334
|
fields: [ge(e)],
|
|
6356
6335
|
linkType: "_"
|
|
6357
|
-
}),
|
|
6336
|
+
}), F = (e, t) => {
|
|
6358
6337
|
o.value = {
|
|
6359
6338
|
kind: "pool",
|
|
6360
6339
|
field: t
|
|
@@ -6389,7 +6368,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6389
6368
|
pos: n.clientY < r.top + r.height / 2 ? "before" : "after"
|
|
6390
6369
|
};
|
|
6391
6370
|
}
|
|
6392
|
-
|
|
6371
|
+
ke(o), c.value = "", l.value = -1, d.value = null, s.value = "";
|
|
6393
6372
|
return;
|
|
6394
6373
|
}
|
|
6395
6374
|
c.value = e, l.value = t, d.value = null, f.value = null, s.value = "";
|
|
@@ -6398,7 +6377,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6398
6377
|
let t = o.value;
|
|
6399
6378
|
if (t) {
|
|
6400
6379
|
if (t.kind === "pool") {
|
|
6401
|
-
let n =
|
|
6380
|
+
let n = _e(t.field);
|
|
6402
6381
|
_.value[e].push(n);
|
|
6403
6382
|
} else if (t.kind === "group") {
|
|
6404
6383
|
let n = Te(t.zone, t.groupId);
|
|
@@ -6435,23 +6414,23 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6435
6414
|
}
|
|
6436
6415
|
}, Oe = (e, t) => {
|
|
6437
6416
|
o.value && (t.preventDefault(), Se(e), je(e, t));
|
|
6438
|
-
},
|
|
6417
|
+
}, ke = (e) => {
|
|
6439
6418
|
let t = f.value;
|
|
6440
6419
|
t && e && t.zone === e.zone && t.refIndex === e.refIndex && t.pos === e.pos || !t && !e || (f.value = e);
|
|
6441
6420
|
}, je = (e, t) => {
|
|
6442
6421
|
if (!o.value) {
|
|
6443
|
-
|
|
6422
|
+
ke(null);
|
|
6444
6423
|
return;
|
|
6445
6424
|
}
|
|
6446
6425
|
c.value = "", l.value = -1, d.value = null;
|
|
6447
6426
|
let n = t.currentTarget, r = Array.from(n.querySelectorAll(".pivot-dim-group"));
|
|
6448
6427
|
if (r.length === 0) {
|
|
6449
|
-
|
|
6428
|
+
ke(null);
|
|
6450
6429
|
return;
|
|
6451
6430
|
}
|
|
6452
6431
|
let i = t.clientY;
|
|
6453
6432
|
if (i < r[0].getBoundingClientRect().top) {
|
|
6454
|
-
|
|
6433
|
+
ke({
|
|
6455
6434
|
zone: e,
|
|
6456
6435
|
refIndex: 0,
|
|
6457
6436
|
pos: "before"
|
|
@@ -6459,7 +6438,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6459
6438
|
return;
|
|
6460
6439
|
}
|
|
6461
6440
|
if (i > r[r.length - 1].getBoundingClientRect().bottom) {
|
|
6462
|
-
|
|
6441
|
+
ke({
|
|
6463
6442
|
zone: e,
|
|
6464
6443
|
refIndex: r.length - 1,
|
|
6465
6444
|
pos: "after"
|
|
@@ -6469,7 +6448,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6469
6448
|
for (let t = 0; t < r.length - 1; t++) {
|
|
6470
6449
|
let n = r[t].getBoundingClientRect(), a = r[t + 1].getBoundingClientRect();
|
|
6471
6450
|
if (i >= n.bottom && i <= a.top) {
|
|
6472
|
-
|
|
6451
|
+
ke({
|
|
6473
6452
|
zone: e,
|
|
6474
6453
|
refIndex: t,
|
|
6475
6454
|
pos: "after"
|
|
@@ -6477,7 +6456,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6477
6456
|
return;
|
|
6478
6457
|
}
|
|
6479
6458
|
}
|
|
6480
|
-
|
|
6459
|
+
ke(null);
|
|
6481
6460
|
}, Me = (e, t) => {
|
|
6482
6461
|
let n = o.value, r = f.value;
|
|
6483
6462
|
if (!n || !r || r.zone !== e) {
|
|
@@ -6486,7 +6465,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6486
6465
|
}
|
|
6487
6466
|
let i = r.pos === "before" ? r.refIndex : r.refIndex + 1;
|
|
6488
6467
|
if (n.kind === "pool") {
|
|
6489
|
-
let t =
|
|
6468
|
+
let t = _e(n.field);
|
|
6490
6469
|
_.value[e].splice(i, 0, t);
|
|
6491
6470
|
} else if (n.kind === "group") {
|
|
6492
6471
|
let t = Te(n.zone, n.groupId);
|
|
@@ -6593,7 +6572,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6593
6572
|
filter: []
|
|
6594
6573
|
};
|
|
6595
6574
|
_.value.values.push(t), X();
|
|
6596
|
-
},
|
|
6575
|
+
}, Re = () => {
|
|
6597
6576
|
let e = {
|
|
6598
6577
|
id: `value_${Date.now()}_${Math.random().toString(36).slice(2, 6)}`,
|
|
6599
6578
|
field: "",
|
|
@@ -6604,16 +6583,16 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6604
6583
|
filter: []
|
|
6605
6584
|
};
|
|
6606
6585
|
_.value.values.push(e), X(), mt(e);
|
|
6607
|
-
},
|
|
6586
|
+
}, J = (e, t) => {
|
|
6608
6587
|
_.value[e].splice(t, 1), X();
|
|
6609
6588
|
}, ze = (e, t, n) => {
|
|
6610
6589
|
let r = _.value[e][t];
|
|
6611
6590
|
r.fields.splice(n, 1), r.fields.length === 0 && _.value[e].splice(t, 1), X();
|
|
6612
|
-
},
|
|
6591
|
+
}, Be = (e) => {
|
|
6613
6592
|
_.value.values.splice(e, 1), X();
|
|
6614
6593
|
}, We = () => {
|
|
6615
6594
|
X();
|
|
6616
|
-
},
|
|
6595
|
+
}, Ge = z(!1), qe = z(-1), Je = z({
|
|
6617
6596
|
id: "",
|
|
6618
6597
|
name: "",
|
|
6619
6598
|
expression: []
|
|
@@ -6629,13 +6608,13 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6629
6608
|
id: g(),
|
|
6630
6609
|
name: "",
|
|
6631
6610
|
expression: []
|
|
6632
|
-
},
|
|
6611
|
+
}, Ge.value = !0;
|
|
6633
6612
|
}, Ze = (e) => {
|
|
6634
|
-
qe.value = e, Je.value = (0, Z.cloneDeep)(_.value.subExpressions[e]),
|
|
6613
|
+
qe.value = e, Je.value = (0, Z.cloneDeep)(_.value.subExpressions[e]), Ge.value = !0;
|
|
6635
6614
|
}, Qe = () => {
|
|
6636
6615
|
let e = Je.value;
|
|
6637
|
-
!e.name || !e.name.trim() || (qe.value >= 0 ? _.value.subExpressions[qe.value] = (0, Z.cloneDeep)(e) : _.value.subExpressions.push((0, Z.cloneDeep)(e)),
|
|
6638
|
-
},
|
|
6616
|
+
!e.name || !e.name.trim() || (qe.value >= 0 ? _.value.subExpressions[qe.value] = (0, Z.cloneDeep)(e) : _.value.subExpressions.push((0, Z.cloneDeep)(e)), Ge.value = !1, X());
|
|
6617
|
+
}, $e = (e) => {
|
|
6639
6618
|
_.value.subExpressions.splice(e, 1), X();
|
|
6640
6619
|
}, nt = z(!1), rt = O(() => r.settingDrawerWidth ?? "700px"), it = O(() => r.settingDrawerPlacement ?? "right"), at = z(-1), ot = z({
|
|
6641
6620
|
id: "",
|
|
@@ -6663,7 +6642,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6663
6642
|
expression: [],
|
|
6664
6643
|
totalAggregationMode: "sum_leaf"
|
|
6665
6644
|
}, nt.value = !0;
|
|
6666
|
-
},
|
|
6645
|
+
}, dt = (e) => {
|
|
6667
6646
|
at.value = e, ot.value = (0, Z.cloneDeep)(_.value.aggComputedValues[e]), ot.value.totalAggregationMode || (ot.value.totalAggregationMode = "sum_leaf"), nt.value = !0;
|
|
6668
6647
|
}, pt = () => {
|
|
6669
6648
|
let e = ot.value;
|
|
@@ -6698,11 +6677,11 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6698
6677
|
class: I(["pivot-field-item", { "pivot-field-group": !e.isLeaf }]),
|
|
6699
6678
|
style: L({ paddingLeft: `${8 + e.depth * 16}px` }),
|
|
6700
6679
|
draggable: e.isLeaf,
|
|
6701
|
-
onDragstart: (t) => e.isLeaf ?
|
|
6680
|
+
onDragstart: (t) => e.isLeaf ? F(t, e.option) : void 0,
|
|
6702
6681
|
onDragend: (t) => e.isLeaf ? be() : void 0,
|
|
6703
6682
|
onDblclick: (t) => e.isLeaf ? Le(e.option) : void 0
|
|
6704
6683
|
}, [
|
|
6705
|
-
M("span", so, [e.isLeaf ? (R(), k(U(
|
|
6684
|
+
M("span", so, [e.isLeaf ? (R(), k(U(Ke), { key: 0 })) : (R(), j("span", co))]),
|
|
6706
6685
|
P(r, { title: e.isLeaf ? e.option.label + "(" + e.option.field + ")" : e.option.label }, {
|
|
6707
6686
|
default: K(() => [M("span", lo, H(e.isLeaf ? `${e.option.label}(${e.option.field})` : e.option.label), 1)]),
|
|
6708
6687
|
_: 2
|
|
@@ -6715,8 +6694,8 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6715
6694
|
onDragover: t[7] ||= q((e) => Oe("columns", e), ["prevent"]),
|
|
6716
6695
|
onDragleave: Ce,
|
|
6717
6696
|
onDrop: t[8] ||= q((e) => Me("columns", e), ["stop"])
|
|
6718
|
-
}, [M("div", mo, [M("span", ho, [P(U(
|
|
6719
|
-
default: K(() => [P(U(
|
|
6697
|
+
}, [M("div", mo, [M("span", ho, [P(U(ft)), N(" " + H(e.$t("列")), 1)]), P(r, { title: e.$t("拖拽字段到此处作为列维度;拖入已有维度组可追加字段") }, {
|
|
6698
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
6720
6699
|
_: 1
|
|
6721
6700
|
}, 8, ["title"])]), M("div", go, [(R(!0), j(D, null, B(_.value.columns, (n, r) => (R(), j("div", {
|
|
6722
6701
|
key: n.id,
|
|
@@ -6762,9 +6741,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6762
6741
|
"onUpdate:value",
|
|
6763
6742
|
"placeholder"
|
|
6764
6743
|
]),
|
|
6765
|
-
P(U(
|
|
6744
|
+
P(U(Ue), {
|
|
6766
6745
|
class: "pivot-group-remove",
|
|
6767
|
-
onClick: q((e) =>
|
|
6746
|
+
onClick: q((e) => J("columns", r), ["stop"])
|
|
6768
6747
|
}, null, 8, ["onClick"])
|
|
6769
6748
|
]),
|
|
6770
6749
|
M("div", yo, [(R(!0), j(D, null, B(n.fields, (a, o) => (R(), j("div", {
|
|
@@ -6799,7 +6778,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6799
6778
|
"options",
|
|
6800
6779
|
"placeholder"
|
|
6801
6780
|
]),
|
|
6802
|
-
P(U(
|
|
6781
|
+
P(U(Ue), {
|
|
6803
6782
|
class: "pivot-chip-remove",
|
|
6804
6783
|
onClick: q((e) => ze("columns", r, o), ["stop"])
|
|
6805
6784
|
}, null, 8, ["onClick"])
|
|
@@ -6864,8 +6843,8 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6864
6843
|
onDragover: t[15] ||= q((e) => Oe("rows", e), ["prevent"]),
|
|
6865
6844
|
onDragleave: Ce,
|
|
6866
6845
|
onDrop: t[16] ||= q((e) => Me("rows", e), ["stop"])
|
|
6867
|
-
}, [M("div", To, [M("span", Eo, [P(U(
|
|
6868
|
-
default: K(() => [P(U(
|
|
6846
|
+
}, [M("div", To, [M("span", Eo, [P(U(Ve)), N(" " + H(e.$t("行")), 1)]), P(r, { title: e.$t("拖拽字段到此处作为行维度;拖入已有维度组可追加字段") }, {
|
|
6847
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
6869
6848
|
_: 1
|
|
6870
6849
|
}, 8, ["title"])]), M("div", Do, [(R(!0), j(D, null, B(_.value.rows, (n, r) => (R(), j("div", {
|
|
6871
6850
|
key: n.id,
|
|
@@ -6911,9 +6890,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6911
6890
|
"onUpdate:value",
|
|
6912
6891
|
"placeholder"
|
|
6913
6892
|
]),
|
|
6914
|
-
P(U(
|
|
6893
|
+
P(U(Ue), {
|
|
6915
6894
|
class: "pivot-group-remove",
|
|
6916
|
-
onClick: q((e) =>
|
|
6895
|
+
onClick: q((e) => J("rows", r), ["stop"])
|
|
6917
6896
|
}, null, 8, ["onClick"])
|
|
6918
6897
|
]),
|
|
6919
6898
|
M("div", Ao, [(R(!0), j(D, null, B(n.fields, (a, o) => (R(), j("div", {
|
|
@@ -6948,7 +6927,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
6948
6927
|
"options",
|
|
6949
6928
|
"placeholder"
|
|
6950
6929
|
]),
|
|
6951
|
-
P(U(
|
|
6930
|
+
P(U(Ue), {
|
|
6952
6931
|
class: "pivot-chip-remove",
|
|
6953
6932
|
onClick: q((e) => ze("rows", r, o), ["stop"])
|
|
6954
6933
|
}, null, 8, ["onClick"])
|
|
@@ -7013,15 +6992,15 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7013
6992
|
onDragover: t[22] ||= q((e) => Se("values"), ["prevent"]),
|
|
7014
6993
|
onDragleave: Ce,
|
|
7015
6994
|
onDrop: q(Ie, ["stop"])
|
|
7016
|
-
}, [M("div", Io, [M("span", Lo, [P(U(
|
|
6995
|
+
}, [M("div", Io, [M("span", Lo, [P(U(He)), N(" " + H(e.$t("值")), 1)]), M("div", Ro, [P(o, {
|
|
7017
6996
|
type: "link",
|
|
7018
6997
|
size: "small",
|
|
7019
|
-
onClick:
|
|
6998
|
+
onClick: Re
|
|
7020
6999
|
}, {
|
|
7021
7000
|
default: K(() => [N(H(e.$t("添加值字段")), 1)]),
|
|
7022
7001
|
_: 1
|
|
7023
7002
|
}), P(r, { title: e.$t("拖拽字段到此处作为值,双击字段可快速添加,也可点击添加值字段直接进入高级配置") }, {
|
|
7024
|
-
default: K(() => [P(U(
|
|
7003
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
7025
7004
|
_: 1
|
|
7026
7005
|
}, 8, ["title"])])]), M("div", zo, [(R(!0), j(D, null, B(_.value.values, (n, a) => (R(), j("div", {
|
|
7027
7006
|
key: n.id,
|
|
@@ -7056,9 +7035,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7056
7035
|
default: K(() => t[46] ||= [N(" 高级配置 ")]),
|
|
7057
7036
|
_: 2
|
|
7058
7037
|
}, 1032, ["onClick"]),
|
|
7059
|
-
P(U(
|
|
7038
|
+
P(U(Ue), {
|
|
7060
7039
|
class: "pivot-zone-item-remove",
|
|
7061
|
-
onClick: (e) =>
|
|
7040
|
+
onClick: (e) => Be(a)
|
|
7062
7041
|
}, null, 8, ["onClick"])
|
|
7063
7042
|
]),
|
|
7064
7043
|
M("div", Ho, [P(Qi, {
|
|
@@ -7125,7 +7104,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7125
7104
|
}, 1032, ["title"])
|
|
7126
7105
|
])
|
|
7127
7106
|
], 42, Bo))), 128)), _.value.values.length === 0 ? (R(), j("div", qo, H(e.$t("拖拽字段到此处")), 1)) : A("", !0)])], 34),
|
|
7128
|
-
M("div", Jo, [M("div", Yo, [M("span", Xo, [P(U(
|
|
7107
|
+
M("div", Jo, [M("div", Yo, [M("span", Xo, [P(U(et)), N(" " + H(e.$t("子表达式")), 1)]), M("div", Zo, [P(o, {
|
|
7129
7108
|
type: "link",
|
|
7130
7109
|
size: "small",
|
|
7131
7110
|
onClick: Xe
|
|
@@ -7133,7 +7112,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7133
7112
|
default: K(() => [N(H(e.$t("添加子表达式")), 1)]),
|
|
7134
7113
|
_: 1
|
|
7135
7114
|
}), P(r, { title: e.$t("子表达式是可复用的表达式片段,可在值字段表达式/过滤条件中以名称引用,后端递归内联展开") }, {
|
|
7136
|
-
default: K(() => [P(U(
|
|
7115
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
7137
7116
|
_: 1
|
|
7138
7117
|
}, 8, ["title"])])]), M("div", Qo, [(R(!0), j(D, null, B(_.value.subExpressions, (t, n) => (R(), j("div", {
|
|
7139
7118
|
key: t.id,
|
|
@@ -7145,9 +7124,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7145
7124
|
}, {
|
|
7146
7125
|
default: K(() => [N(H(e.$t("编辑")), 1)]),
|
|
7147
7126
|
_: 2
|
|
7148
|
-
}, 1032, ["onClick"]), P(U(
|
|
7127
|
+
}, 1032, ["onClick"]), P(U(Ue), {
|
|
7149
7128
|
class: "pivot-zone-item-remove",
|
|
7150
|
-
onClick: (e) =>
|
|
7129
|
+
onClick: (e) => $e(n)
|
|
7151
7130
|
}, null, 8, ["onClick"])])]), P(Qi, {
|
|
7152
7131
|
valueField: Ye(t),
|
|
7153
7132
|
"field-options": C.value,
|
|
@@ -7158,7 +7137,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7158
7137
|
"sub-expressions"
|
|
7159
7138
|
])]))), 128)), _.value.subExpressions.length ? A("", !0) : (R(), j("div", ns, H(e.$t("暂无子表达式,点击「添加子表达式」创建可复用的表达式片段")), 1))])])
|
|
7160
7139
|
])]),
|
|
7161
|
-
M("div", rs, [M("div", is, [M("span", as, [P(U(
|
|
7140
|
+
M("div", rs, [M("div", is, [M("span", as, [P(U(He)), N(" " + H(e.$t("聚合计算值")), 1)]), M("div", os, [P(o, {
|
|
7162
7141
|
type: "link",
|
|
7163
7142
|
size: "small",
|
|
7164
7143
|
onClick: ut
|
|
@@ -7166,7 +7145,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7166
7145
|
default: K(() => [N(H(e.$t("添加聚合计算值")), 1)]),
|
|
7167
7146
|
_: 1
|
|
7168
7147
|
}), P(r, { title: e.$t("对聚合后的值字段再次求表达式,产生新列;可引用已配置的值字段(含隐藏字段)与其它聚合计算值(嵌套引用,最多 50 层),不可引用子表达式") }, {
|
|
7169
|
-
default: K(() => [P(U(
|
|
7148
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
7170
7149
|
_: 1
|
|
7171
7150
|
}, 8, ["title"])])]), M("div", ss, [(R(!0), j(D, null, B(_.value.aggComputedValues, (n, r) => (R(), j("div", {
|
|
7172
7151
|
key: n.id,
|
|
@@ -7187,11 +7166,11 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7187
7166
|
]), M("span", ls, [P(o, {
|
|
7188
7167
|
type: "link",
|
|
7189
7168
|
size: "small",
|
|
7190
|
-
onClick: (e) =>
|
|
7169
|
+
onClick: (e) => dt(r)
|
|
7191
7170
|
}, {
|
|
7192
7171
|
default: K(() => [N(H(e.$t("编辑表达式")), 1)]),
|
|
7193
7172
|
_: 2
|
|
7194
|
-
}, 1032, ["onClick"]), P(U(
|
|
7173
|
+
}, 1032, ["onClick"]), P(U(Ue), {
|
|
7195
7174
|
class: "pivot-zone-item-remove",
|
|
7196
7175
|
onClick: (e) => Y(r)
|
|
7197
7176
|
}, null, 8, ["onClick"])])]),
|
|
@@ -7348,13 +7327,13 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7348
7327
|
}, null, 8, ["checked"]), M("span", null, H(e.$t("行合计")), 1)])) : A("", !0)
|
|
7349
7328
|
])]),
|
|
7350
7329
|
P(b, {
|
|
7351
|
-
open:
|
|
7352
|
-
"onUpdate:open": t[37] ||= (e) =>
|
|
7330
|
+
open: Ge.value,
|
|
7331
|
+
"onUpdate:open": t[37] ||= (e) => Ge.value = e,
|
|
7353
7332
|
title: qe.value >= 0 ? e.$t("编辑子表达式") : e.$t("添加子表达式"),
|
|
7354
7333
|
width: "900px",
|
|
7355
7334
|
"body-style": { height: "calc(100vh - 250px)" },
|
|
7356
7335
|
onOk: Qe,
|
|
7357
|
-
onCancel: t[38] ||= (e) =>
|
|
7336
|
+
onCancel: t[38] ||= (e) => Ge.value = !1
|
|
7358
7337
|
}, {
|
|
7359
7338
|
footer: K(() => [P(o, {
|
|
7360
7339
|
type: "primary",
|
|
@@ -7363,11 +7342,11 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7363
7342
|
}, {
|
|
7364
7343
|
default: K(() => [N(H(e.$t("确定")), 1)]),
|
|
7365
7344
|
_: 1
|
|
7366
|
-
}, 8, ["disabled"]), P(o, { onClick: t[36] ||= (e) =>
|
|
7345
|
+
}, 8, ["disabled"]), P(o, { onClick: t[36] ||= (e) => Ge.value = !1 }, {
|
|
7367
7346
|
default: K(() => [N(H(e.$t("取消")), 1)]),
|
|
7368
7347
|
_: 1
|
|
7369
7348
|
})]),
|
|
7370
|
-
default: K(() => [
|
|
7349
|
+
default: K(() => [Ge.value ? (R(), k(Pa, {
|
|
7371
7350
|
key: 0,
|
|
7372
7351
|
modelValue: Je.value,
|
|
7373
7352
|
"onUpdate:modelValue": t[35] ||= (e) => Je.value = e,
|
|
@@ -7527,7 +7506,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7527
7506
|
"openValueConfig"
|
|
7528
7507
|
],
|
|
7529
7508
|
setup(e, { expose: t, emit: n }) {
|
|
7530
|
-
let r = e, i = n, a = z(""), o = z(null), s = z(""), c = z(""), l = z(-1), u = z(-1), d = z(null), f = z(null), p =
|
|
7509
|
+
let r = e, i = n, a = z(""), o = z(null), s = z(""), c = z(""), l = z(-1), u = z(-1), d = z(null), f = z(null), p = Ae(/* @__PURE__ */ new Set()), m = (e) => {
|
|
7531
7510
|
p.clear(), [...e.series || [], ...e.category || []].forEach((e) => {
|
|
7532
7511
|
e.id && e.label && p.add(e.id);
|
|
7533
7512
|
});
|
|
@@ -7732,12 +7711,12 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7732
7711
|
id: g(),
|
|
7733
7712
|
fields: [he(e)],
|
|
7734
7713
|
linkType: "_"
|
|
7735
|
-
}),
|
|
7714
|
+
}), _e = (e, t) => {
|
|
7736
7715
|
o.value = {
|
|
7737
7716
|
kind: "pool",
|
|
7738
7717
|
field: t
|
|
7739
7718
|
}, e.dataTransfer && (e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", t.field));
|
|
7740
|
-
},
|
|
7719
|
+
}, F = (e, t, n) => {
|
|
7741
7720
|
o.value = {
|
|
7742
7721
|
kind: "group",
|
|
7743
7722
|
zone: n,
|
|
@@ -7812,11 +7791,11 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7812
7791
|
be(), Y();
|
|
7813
7792
|
}
|
|
7814
7793
|
}, De = (e, t) => {
|
|
7815
|
-
o.value && (t.preventDefault(), xe(e),
|
|
7794
|
+
o.value && (t.preventDefault(), xe(e), ke(e, t));
|
|
7816
7795
|
}, Oe = (e) => {
|
|
7817
7796
|
let t = f.value;
|
|
7818
7797
|
t && e && t.zone === e.zone && t.refIndex === e.refIndex && t.pos === e.pos || !t && !e || (f.value = e);
|
|
7819
|
-
},
|
|
7798
|
+
}, ke = (e, t) => {
|
|
7820
7799
|
if (!o.value) {
|
|
7821
7800
|
Oe(null);
|
|
7822
7801
|
return;
|
|
@@ -7973,14 +7952,14 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7973
7952
|
_.value.values.push(t), Y();
|
|
7974
7953
|
}, Le = (e, t) => {
|
|
7975
7954
|
_.value[e].splice(t, 1), Y();
|
|
7976
|
-
},
|
|
7955
|
+
}, Re = (e, t, n) => {
|
|
7977
7956
|
let r = _.value[e][t];
|
|
7978
7957
|
r.fields.splice(n, 1), r.fields.length === 0 && _.value[e].splice(t, 1), Y();
|
|
7979
|
-
},
|
|
7958
|
+
}, J = (e) => {
|
|
7980
7959
|
_.value.values.splice(e, 1), Y();
|
|
7981
7960
|
}, ze = () => {
|
|
7982
7961
|
Y();
|
|
7983
|
-
},
|
|
7962
|
+
}, Be = z(!1), We = z(-1), Ge = z({
|
|
7984
7963
|
id: "",
|
|
7985
7964
|
name: "",
|
|
7986
7965
|
expression: []
|
|
@@ -7992,19 +7971,19 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
7992
7971
|
expression: e.expression || [],
|
|
7993
7972
|
filter: []
|
|
7994
7973
|
}), Je = () => {
|
|
7995
|
-
We.value = -1,
|
|
7974
|
+
We.value = -1, Ge.value = {
|
|
7996
7975
|
id: g(),
|
|
7997
7976
|
name: "",
|
|
7998
7977
|
expression: []
|
|
7999
|
-
},
|
|
7978
|
+
}, Be.value = !0;
|
|
8000
7979
|
}, Ye = (e) => {
|
|
8001
|
-
We.value = e,
|
|
7980
|
+
We.value = e, Ge.value = (0, Z.cloneDeep)(_.value.subExpressions[e]), Be.value = !0;
|
|
8002
7981
|
}, Xe = () => {
|
|
8003
|
-
let e =
|
|
8004
|
-
!e.name || !e.name.trim() || (We.value >= 0 ? _.value.subExpressions[We.value] = (0, Z.cloneDeep)(e) : _.value.subExpressions.push((0, Z.cloneDeep)(e)),
|
|
7982
|
+
let e = Ge.value;
|
|
7983
|
+
!e.name || !e.name.trim() || (We.value >= 0 ? _.value.subExpressions[We.value] = (0, Z.cloneDeep)(e) : _.value.subExpressions.push((0, Z.cloneDeep)(e)), Be.value = !1, Y());
|
|
8005
7984
|
}, Ze = (e) => {
|
|
8006
7985
|
_.value.subExpressions.splice(e, 1), Y();
|
|
8007
|
-
}, Qe = z(!1),
|
|
7986
|
+
}, Qe = z(!1), $e = O(() => r.settingDrawerWidth ?? "700px"), nt = O(() => r.settingDrawerPlacement ?? "right"), rt = z(-1), it = z({
|
|
8008
7987
|
id: "",
|
|
8009
7988
|
name: "",
|
|
8010
7989
|
expression: []
|
|
@@ -8033,7 +8012,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8033
8012
|
}, ut = () => {
|
|
8034
8013
|
let e = it.value;
|
|
8035
8014
|
!e.name || !e.name.trim() || (rt.value >= 0 ? _.value.aggComputedValues[rt.value] = (0, Z.cloneDeep)(e) : _.value.aggComputedValues.push((0, Z.cloneDeep)(e)), Qe.value = !1, Y());
|
|
8036
|
-
},
|
|
8015
|
+
}, dt = (e) => {
|
|
8037
8016
|
_.value.aggComputedValues.splice(e, 1), Y();
|
|
8038
8017
|
}, pt = (e) => !e.useExpression || !e.expression || e.expression.length === 0 ? !1 : !un(e.expression).valid, Y = () => {
|
|
8039
8018
|
ee = !0;
|
|
@@ -8063,11 +8042,11 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8063
8042
|
class: I(["pivot-field-item", { "pivot-field-group": !e.isLeaf }]),
|
|
8064
8043
|
style: L({ paddingLeft: `${8 + e.depth * 16}px` }),
|
|
8065
8044
|
draggable: e.isLeaf,
|
|
8066
|
-
onDragstart: (t) => e.isLeaf ?
|
|
8045
|
+
onDragstart: (t) => e.isLeaf ? _e(t, e.option) : void 0,
|
|
8067
8046
|
onDragend: (t) => e.isLeaf ? ye() : void 0,
|
|
8068
8047
|
onDblclick: (t) => e.isLeaf ? Ie(e.option) : void 0
|
|
8069
8048
|
}, [
|
|
8070
|
-
M("span", Ps, [e.isLeaf ? (R(), k(U(
|
|
8049
|
+
M("span", Ps, [e.isLeaf ? (R(), k(U(Ke), { key: 0 })) : (R(), j("span", Fs))]),
|
|
8071
8050
|
P(r, { title: e.isLeaf ? e.option.label + "(" + e.option.field + ")" : e.option.label }, {
|
|
8072
8051
|
default: K(() => [M("span", Is, H(e.isLeaf ? `${e.option.label}(${e.option.field})` : e.option.label), 1)]),
|
|
8073
8052
|
_: 2
|
|
@@ -8080,8 +8059,8 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8080
8059
|
onDragover: t[7] ||= q((e) => De("category", e), ["prevent"]),
|
|
8081
8060
|
onDragleave: Se,
|
|
8082
8061
|
onDrop: t[8] ||= q((e) => je("category", e), ["stop"])
|
|
8083
|
-
}, [M("div", Bs, [M("span", Vs, [P(U(
|
|
8084
|
-
default: K(() => [P(U(
|
|
8062
|
+
}, [M("div", Bs, [M("span", Vs, [P(U(Ve)), N(" " + H(e.$t("轴(类别)")), 1)]), P(r, { title: e.$t("拖拽字段到此处作为X轴(类别)维度;拖入已有维度组可追加字段") }, {
|
|
8063
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
8085
8064
|
_: 1
|
|
8086
8065
|
}, 8, ["title"])]), M("div", Hs, [(R(!0), j(D, null, B(_.value.category, (n, r) => (R(), j("div", {
|
|
8087
8066
|
key: n.id,
|
|
@@ -8091,7 +8070,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8091
8070
|
"drop-group-after": f.value && f.value.zone === "category" && f.value.refIndex === r && f.value.pos === "after"
|
|
8092
8071
|
}]),
|
|
8093
8072
|
draggable: "true",
|
|
8094
|
-
onDragstart: (e) =>
|
|
8073
|
+
onDragstart: (e) => F(e, n, "category"),
|
|
8095
8074
|
onDragend: ye,
|
|
8096
8075
|
onDragover: q((e) => Ce("category", r, e), ["prevent", "stop"]),
|
|
8097
8076
|
onDrop: q((e) => Ee("category", r, e), ["stop"])
|
|
@@ -8127,7 +8106,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8127
8106
|
"onUpdate:value",
|
|
8128
8107
|
"placeholder"
|
|
8129
8108
|
]),
|
|
8130
|
-
P(U(
|
|
8109
|
+
P(U(Ue), {
|
|
8131
8110
|
class: "pivot-group-remove",
|
|
8132
8111
|
onClick: q((e) => Le("category", r), ["stop"])
|
|
8133
8112
|
}, null, 8, ["onClick"])
|
|
@@ -8164,9 +8143,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8164
8143
|
"options",
|
|
8165
8144
|
"placeholder"
|
|
8166
8145
|
]),
|
|
8167
|
-
P(U(
|
|
8146
|
+
P(U(Ue), {
|
|
8168
8147
|
class: "pivot-chip-remove",
|
|
8169
|
-
onClick: q((e) =>
|
|
8148
|
+
onClick: q((e) => Re("category", r, o), ["stop"])
|
|
8170
8149
|
}, null, 8, ["onClick"])
|
|
8171
8150
|
], 42, Ks))), 128))]),
|
|
8172
8151
|
M("div", Js, [
|
|
@@ -8229,8 +8208,8 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8229
8208
|
onDragover: t[15] ||= q((e) => De("series", e), ["prevent"]),
|
|
8230
8209
|
onDragleave: Se,
|
|
8231
8210
|
onDrop: t[16] ||= q((e) => je("series", e), ["stop"])
|
|
8232
|
-
}, [M("div", Zs, [M("span", Qs, [P(U(
|
|
8233
|
-
default: K(() => [P(U(
|
|
8211
|
+
}, [M("div", Zs, [M("span", Qs, [P(U(ft)), N(" " + H(e.$t("图例(系列)")), 1)]), P(r, { title: e.$t("拖拽字段到此处作为图例(系列)维度;拖入已有维度组可追加字段") }, {
|
|
8212
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
8234
8213
|
_: 1
|
|
8235
8214
|
}, 8, ["title"])]), M("div", $s, [(R(!0), j(D, null, B(_.value.series, (n, r) => (R(), j("div", {
|
|
8236
8215
|
key: n.id,
|
|
@@ -8240,7 +8219,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8240
8219
|
"drop-group-after": f.value && f.value.zone === "series" && f.value.refIndex === r && f.value.pos === "after"
|
|
8241
8220
|
}]),
|
|
8242
8221
|
draggable: "true",
|
|
8243
|
-
onDragstart: (e) =>
|
|
8222
|
+
onDragstart: (e) => F(e, n, "series"),
|
|
8244
8223
|
onDragend: ye,
|
|
8245
8224
|
onDragover: q((e) => Ce("series", r, e), ["prevent", "stop"]),
|
|
8246
8225
|
onDrop: q((e) => Ee("series", r, e), ["stop"])
|
|
@@ -8276,7 +8255,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8276
8255
|
"onUpdate:value",
|
|
8277
8256
|
"placeholder"
|
|
8278
8257
|
]),
|
|
8279
|
-
P(U(
|
|
8258
|
+
P(U(Ue), {
|
|
8280
8259
|
class: "pivot-group-remove",
|
|
8281
8260
|
onClick: q((e) => Le("series", r), ["stop"])
|
|
8282
8261
|
}, null, 8, ["onClick"])
|
|
@@ -8313,9 +8292,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8313
8292
|
"options",
|
|
8314
8293
|
"placeholder"
|
|
8315
8294
|
]),
|
|
8316
|
-
P(U(
|
|
8295
|
+
P(U(Ue), {
|
|
8317
8296
|
class: "pivot-chip-remove",
|
|
8318
|
-
onClick: q((e) =>
|
|
8297
|
+
onClick: q((e) => Re("series", r, o), ["stop"])
|
|
8319
8298
|
}, null, 8, ["onClick"])
|
|
8320
8299
|
], 42, rc))), 128))]),
|
|
8321
8300
|
M("div", ac, [
|
|
@@ -8378,8 +8357,8 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8378
8357
|
onDragover: t[22] ||= q((e) => xe("values"), ["prevent"]),
|
|
8379
8358
|
onDragleave: Se,
|
|
8380
8359
|
onDrop: q(Fe, ["stop"])
|
|
8381
|
-
}, [M("div", cc, [M("span", lc, [P(U(
|
|
8382
|
-
default: K(() => [P(U(
|
|
8360
|
+
}, [M("div", cc, [M("span", lc, [P(U(He)), N(" " + H(e.$t("值")), 1)]), P(r, { title: e.$t("拖拽字段到此处作为值,双击字段可快速添加") }, {
|
|
8361
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
8383
8362
|
_: 1
|
|
8384
8363
|
}, 8, ["title"])]), M("div", uc, [(R(!0), j(D, null, B(_.value.values, (n, a) => (R(), j("div", {
|
|
8385
8364
|
key: n.id,
|
|
@@ -8415,9 +8394,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8415
8394
|
default: K(() => t[39] ||= [N(" 高级配置 ")]),
|
|
8416
8395
|
_: 2
|
|
8417
8396
|
}, 1032, ["onClick"]),
|
|
8418
|
-
P(U(
|
|
8397
|
+
P(U(Ue), {
|
|
8419
8398
|
class: "pivot-zone-item-remove",
|
|
8420
|
-
onClick: (e) =>
|
|
8399
|
+
onClick: (e) => J(a)
|
|
8421
8400
|
}, null, 8, ["onClick"])
|
|
8422
8401
|
]),
|
|
8423
8402
|
M("div", pc, [P(Qi, {
|
|
@@ -8484,7 +8463,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8484
8463
|
}, 1032, ["title"])
|
|
8485
8464
|
])
|
|
8486
8465
|
], 42, dc))), 128)), _.value.values.length === 0 ? (R(), j("div", vc, H(e.$t("拖拽字段到此处")), 1)) : A("", !0)])], 34),
|
|
8487
|
-
M("div", yc, [M("div", bc, [M("span", xc, [P(U(
|
|
8466
|
+
M("div", yc, [M("div", bc, [M("span", xc, [P(U(et)), N(" " + H(e.$t("子表达式")), 1)]), M("div", Sc, [P(o, {
|
|
8488
8467
|
type: "link",
|
|
8489
8468
|
size: "small",
|
|
8490
8469
|
onClick: Je
|
|
@@ -8492,7 +8471,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8492
8471
|
default: K(() => [N(H(e.$t("添加子表达式")), 1)]),
|
|
8493
8472
|
_: 1
|
|
8494
8473
|
}), P(r, { title: e.$t("子表达式是可复用的表达式片段,可在值字段表达式/过滤条件中以名称引用,后端递归内联展开") }, {
|
|
8495
|
-
default: K(() => [P(U(
|
|
8474
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
8496
8475
|
_: 1
|
|
8497
8476
|
}, 8, ["title"])])]), M("div", Cc, [(R(!0), j(D, null, B(_.value.subExpressions, (t, n) => (R(), j("div", {
|
|
8498
8477
|
key: t.id,
|
|
@@ -8504,7 +8483,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8504
8483
|
}, {
|
|
8505
8484
|
default: K(() => [N(H(e.$t("编辑")), 1)]),
|
|
8506
8485
|
_: 2
|
|
8507
|
-
}, 1032, ["onClick"]), P(U(
|
|
8486
|
+
}, 1032, ["onClick"]), P(U(Ue), {
|
|
8508
8487
|
class: "pivot-zone-item-remove",
|
|
8509
8488
|
onClick: (e) => Ze(n)
|
|
8510
8489
|
}, null, 8, ["onClick"])])]), P(Qi, {
|
|
@@ -8517,7 +8496,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8517
8496
|
"sub-expressions"
|
|
8518
8497
|
])]))), 128)), _.value.subExpressions.length ? A("", !0) : (R(), j("div", Dc, H(e.$t("暂无子表达式,点击「添加子表达式」创建可复用的表达式片段")), 1))])])
|
|
8519
8498
|
])]),
|
|
8520
|
-
M("div", Oc, [M("div", kc, [M("span", Ac, [P(U(
|
|
8499
|
+
M("div", Oc, [M("div", kc, [M("span", Ac, [P(U(He)), N(" " + H(e.$t("聚合计算值")), 1)]), M("div", jc, [P(o, {
|
|
8521
8500
|
type: "link",
|
|
8522
8501
|
size: "small",
|
|
8523
8502
|
onClick: ct
|
|
@@ -8525,7 +8504,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8525
8504
|
default: K(() => [N(H(e.$t("添加聚合计算值")), 1)]),
|
|
8526
8505
|
_: 1
|
|
8527
8506
|
}), P(r, { title: e.$t("对聚合后的值字段再次求表达式,产生新列;可引用已配置的值字段(含隐藏字段)与其它聚合计算值(嵌套引用,最多 50 层),不可引用子表达式") }, {
|
|
8528
|
-
default: K(() => [P(U(
|
|
8507
|
+
default: K(() => [P(U(tt), { class: "pivot-zone-tip" })]),
|
|
8529
8508
|
_: 1
|
|
8530
8509
|
}, 8, ["title"])])]), M("div", Mc, [(R(!0), j(D, null, B(_.value.aggComputedValues, (n, r) => (R(), j("div", {
|
|
8531
8510
|
key: n.id,
|
|
@@ -8550,9 +8529,9 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8550
8529
|
}, {
|
|
8551
8530
|
default: K(() => [N(H(e.$t("编辑表达式")), 1)]),
|
|
8552
8531
|
_: 2
|
|
8553
|
-
}, 1032, ["onClick"]), P(U(
|
|
8532
|
+
}, 1032, ["onClick"]), P(U(Ue), {
|
|
8554
8533
|
class: "pivot-zone-item-remove",
|
|
8555
|
-
onClick: (e) =>
|
|
8534
|
+
onClick: (e) => dt(r)
|
|
8556
8535
|
}, null, 8, ["onClick"])])]),
|
|
8557
8536
|
M("div", Fc, [P(i, {
|
|
8558
8537
|
value: n.formatFun,
|
|
@@ -8650,29 +8629,29 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8650
8629
|
_: 1
|
|
8651
8630
|
})]),
|
|
8652
8631
|
P(x, {
|
|
8653
|
-
open:
|
|
8654
|
-
"onUpdate:open": t[30] ||= (e) =>
|
|
8632
|
+
open: Be.value,
|
|
8633
|
+
"onUpdate:open": t[30] ||= (e) => Be.value = e,
|
|
8655
8634
|
title: We.value >= 0 ? e.$t("编辑子表达式") : e.$t("添加子表达式"),
|
|
8656
8635
|
width: "900px",
|
|
8657
8636
|
"body-style": { height: "calc(100vh - 250px)" },
|
|
8658
8637
|
onOk: Xe,
|
|
8659
|
-
onCancel: t[31] ||= (e) =>
|
|
8638
|
+
onCancel: t[31] ||= (e) => Be.value = !1
|
|
8660
8639
|
}, {
|
|
8661
8640
|
footer: K(() => [P(o, {
|
|
8662
8641
|
type: "primary",
|
|
8663
|
-
disabled: !
|
|
8642
|
+
disabled: !Ge.value.name || !Ge.value.name.trim(),
|
|
8664
8643
|
onClick: Xe
|
|
8665
8644
|
}, {
|
|
8666
8645
|
default: K(() => [N(H(e.$t("确定")), 1)]),
|
|
8667
8646
|
_: 1
|
|
8668
|
-
}, 8, ["disabled"]), P(o, { onClick: t[29] ||= (e) =>
|
|
8647
|
+
}, 8, ["disabled"]), P(o, { onClick: t[29] ||= (e) => Be.value = !1 }, {
|
|
8669
8648
|
default: K(() => [N(H(e.$t("取消")), 1)]),
|
|
8670
8649
|
_: 1
|
|
8671
8650
|
})]),
|
|
8672
|
-
default: K(() => [
|
|
8651
|
+
default: K(() => [Be.value ? (R(), k(Pa, {
|
|
8673
8652
|
key: 0,
|
|
8674
|
-
modelValue:
|
|
8675
|
-
"onUpdate:modelValue": t[28] ||= (e) =>
|
|
8653
|
+
modelValue: Ge.value,
|
|
8654
|
+
"onUpdate:modelValue": t[28] ||= (e) => Ge.value = e,
|
|
8676
8655
|
"field-options": C.value,
|
|
8677
8656
|
"sub-expressions": _.value.subExpressions
|
|
8678
8657
|
}, null, 8, [
|
|
@@ -8687,7 +8666,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8687
8666
|
open: Qe.value,
|
|
8688
8667
|
"onUpdate:open": t[34] ||= (e) => Qe.value = e,
|
|
8689
8668
|
title: rt.value >= 0 ? e.$t("编辑聚合计算值") : e.$t("添加聚合计算值"),
|
|
8690
|
-
width:
|
|
8669
|
+
width: $e.value,
|
|
8691
8670
|
placement: nt.value,
|
|
8692
8671
|
push: !1,
|
|
8693
8672
|
mask: !1
|
|
@@ -8761,22 +8740,22 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8761
8740
|
let { currentView: t, getViewData: n, isViewChange: r, userid: i, view_project__flag: a, view_menu__flag: o, view_menu__name: s, fetchViews: c, is_auth: l, t: u } = e;
|
|
8762
8741
|
return {
|
|
8763
8742
|
saveView: () => {
|
|
8764
|
-
|
|
8743
|
+
Pe.confirm({
|
|
8765
8744
|
title: () => "确定覆盖视图吗?",
|
|
8766
8745
|
content: "当前视图原有的数据会被覆盖",
|
|
8767
|
-
icon: () =>
|
|
8746
|
+
icon: () => ye(Xe),
|
|
8768
8747
|
okText: "确定",
|
|
8769
8748
|
async onOk() {
|
|
8770
|
-
t.value.data = n(), await
|
|
8749
|
+
t.value.data = n(), await zt({
|
|
8771
8750
|
view_settings_id: t.value.id,
|
|
8772
8751
|
data: t.value.data
|
|
8773
|
-
}), r.value = !1,
|
|
8752
|
+
}), r.value = !1, Fe.success("修改成功");
|
|
8774
8753
|
},
|
|
8775
8754
|
onCancel() {}
|
|
8776
8755
|
});
|
|
8777
8756
|
},
|
|
8778
8757
|
addView: (e) => {
|
|
8779
|
-
let d =
|
|
8758
|
+
let d = Ae({
|
|
8780
8759
|
open: !0,
|
|
8781
8760
|
loading: !1,
|
|
8782
8761
|
title: u("新建视图"),
|
|
@@ -8796,11 +8775,11 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8796
8775
|
defaultValue: "",
|
|
8797
8776
|
placeholder: u("请输入视图名称")
|
|
8798
8777
|
}],
|
|
8799
|
-
rules:
|
|
8778
|
+
rules: Ae({ name: [{
|
|
8800
8779
|
required: !0,
|
|
8801
8780
|
message: u("请输入视图名称")
|
|
8802
8781
|
}] }),
|
|
8803
|
-
model:
|
|
8782
|
+
model: Ae({
|
|
8804
8783
|
name: "",
|
|
8805
8784
|
is_system: [!1],
|
|
8806
8785
|
view_type: "personal"
|
|
@@ -8820,7 +8799,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8820
8799
|
}]
|
|
8821
8800
|
},
|
|
8822
8801
|
ok: async (l) => {
|
|
8823
|
-
let d = await
|
|
8802
|
+
let d = await Rt({
|
|
8824
8803
|
user_id: (e || l.view_type || "personal") === "personal" ? i : null,
|
|
8825
8804
|
name: l.name,
|
|
8826
8805
|
view_project__flag: a,
|
|
@@ -8829,7 +8808,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8829
8808
|
is_system: l.is_system && l.is_system[0],
|
|
8830
8809
|
data: n()
|
|
8831
8810
|
});
|
|
8832
|
-
await c(), t.value = d,
|
|
8811
|
+
await c(), t.value = d, Fe.success(u("创建成功")), r.value = !1;
|
|
8833
8812
|
}
|
|
8834
8813
|
});
|
|
8835
8814
|
e || d.form.fields.push({
|
|
@@ -8851,18 +8830,18 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8851
8830
|
labelKey: "name",
|
|
8852
8831
|
valueKey: "value",
|
|
8853
8832
|
defaultValue: [!1]
|
|
8854
|
-
}),
|
|
8833
|
+
}), ae(d);
|
|
8855
8834
|
}
|
|
8856
8835
|
};
|
|
8857
8836
|
}, Hc = F({
|
|
8858
8837
|
name: "ViewsConfig",
|
|
8859
8838
|
components: {
|
|
8860
|
-
SettingOutlined:
|
|
8861
|
-
PlusOutlined:
|
|
8862
|
-
DeleteOutlined:
|
|
8863
|
-
EditOutlined:
|
|
8864
|
-
StarOutlined:
|
|
8865
|
-
StarFilled:
|
|
8839
|
+
SettingOutlined: lt,
|
|
8840
|
+
PlusOutlined: it,
|
|
8841
|
+
DeleteOutlined: qe,
|
|
8842
|
+
EditOutlined: Ye,
|
|
8843
|
+
StarOutlined: dt,
|
|
8844
|
+
StarFilled: ut
|
|
8866
8845
|
},
|
|
8867
8846
|
props: {
|
|
8868
8847
|
columns: {
|
|
@@ -8883,7 +8862,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8883
8862
|
}
|
|
8884
8863
|
},
|
|
8885
8864
|
setup(e) {
|
|
8886
|
-
let { t: r } =
|
|
8865
|
+
let { t: r } = X(), i = n(), a = t(), o = i.currentOrg, s = i.userid, c = z(i.CHECK_AUTH("view_system_edit")), { setViewData: l, getViewData: u, viewDataList: d, fetchViews: f, currentView: p, isViewChange: m } = $t(), h = [{
|
|
8887
8866
|
dataIndex: "name",
|
|
8888
8867
|
key: "name"
|
|
8889
8868
|
}], g = O(() => [p.value?.id]), _ = O(() => {
|
|
@@ -8893,33 +8872,33 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8893
8872
|
let e = d.value.filter((e) => !e.user_id && e.is_system).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort), t = d.value.filter((e) => !e.user_id && !e.is_system).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort);
|
|
8894
8873
|
return e.concat(t);
|
|
8895
8874
|
}), y = (e) => {
|
|
8896
|
-
p.value?.id === e.id ? (p.value = { id: "no-view" }, l(null),
|
|
8875
|
+
p.value?.id === e.id ? (p.value = { id: "no-view" }, l(null), Fe.warning(r("视图已取消"))) : (p.value = e, l(e.data), Fe.success(r("已应用视图:") + e.name));
|
|
8897
8876
|
}, b = async (e) => {
|
|
8898
8877
|
try {
|
|
8899
|
-
await
|
|
8878
|
+
await Vt({
|
|
8900
8879
|
org_id: o.id,
|
|
8901
8880
|
view_settings_id: e.id
|
|
8902
|
-
}), await
|
|
8881
|
+
}), await Bt({
|
|
8903
8882
|
org_id: o.id,
|
|
8904
8883
|
view_settings_id: e.id
|
|
8905
|
-
}),
|
|
8884
|
+
}), Fe.success(r("设置默认成功")), f();
|
|
8906
8885
|
} catch {
|
|
8907
|
-
|
|
8886
|
+
Fe.error(r("设置默认失败"));
|
|
8908
8887
|
}
|
|
8909
8888
|
}, x = (e) => {
|
|
8910
|
-
|
|
8889
|
+
Pe.confirm({
|
|
8911
8890
|
title: r("确认删除视图?"),
|
|
8912
8891
|
content: r("视图删除后不可恢复,是否确认删除?"),
|
|
8913
|
-
icon: P(
|
|
8892
|
+
icon: P(Xe),
|
|
8914
8893
|
onOk: async () => {
|
|
8915
|
-
await
|
|
8894
|
+
await Ht({
|
|
8916
8895
|
org_id: o.id,
|
|
8917
8896
|
view_settings_id: e.id
|
|
8918
|
-
}),
|
|
8897
|
+
}), Fe.success(r("删除成功")), f();
|
|
8919
8898
|
}
|
|
8920
8899
|
});
|
|
8921
8900
|
}, ee = (e) => {
|
|
8922
|
-
let t =
|
|
8901
|
+
let t = Ae({
|
|
8923
8902
|
open: !0,
|
|
8924
8903
|
loading: !1,
|
|
8925
8904
|
title: r("编辑视图"),
|
|
@@ -8939,11 +8918,11 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8939
8918
|
defaultValue: e.name,
|
|
8940
8919
|
placeholder: r("请输入视图名称")
|
|
8941
8920
|
}],
|
|
8942
|
-
rules:
|
|
8921
|
+
rules: Ae({ name: [{
|
|
8943
8922
|
required: !0,
|
|
8944
8923
|
message: r("请输入视图名称")
|
|
8945
8924
|
}] }),
|
|
8946
|
-
model:
|
|
8925
|
+
model: Ae({
|
|
8947
8926
|
name: e.name,
|
|
8948
8927
|
is_system: [e.is_system || !1]
|
|
8949
8928
|
})
|
|
@@ -8953,12 +8932,12 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8953
8932
|
value: !0
|
|
8954
8933
|
}] },
|
|
8955
8934
|
ok: async (t) => {
|
|
8956
|
-
await
|
|
8935
|
+
await zt({
|
|
8957
8936
|
org_id: o.id,
|
|
8958
8937
|
view_settings_id: e.id,
|
|
8959
8938
|
name: t.name,
|
|
8960
8939
|
is_system: t.is_system && t.is_system[0]
|
|
8961
|
-
}),
|
|
8940
|
+
}), Fe.success(r("修改成功")), f();
|
|
8962
8941
|
}
|
|
8963
8942
|
});
|
|
8964
8943
|
c.value && t.form.fields.push({
|
|
@@ -8970,7 +8949,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8970
8949
|
labelKey: "name",
|
|
8971
8950
|
valueKey: "value",
|
|
8972
8951
|
defaultValue: [!1]
|
|
8973
|
-
}),
|
|
8952
|
+
}), ae(t);
|
|
8974
8953
|
}, { addView: S } = Vc({
|
|
8975
8954
|
currentView: p,
|
|
8976
8955
|
getViewData: u,
|
|
@@ -8993,7 +8972,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
8993
8972
|
handleEditView: ee,
|
|
8994
8973
|
addView: S,
|
|
8995
8974
|
handleManageView: (e) => {
|
|
8996
|
-
|
|
8975
|
+
ae(Ae({
|
|
8997
8976
|
open: !0,
|
|
8998
8977
|
component: "ViewEditModal",
|
|
8999
8978
|
compObj: {
|
|
@@ -9001,12 +8980,12 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
|
|
|
9001
8980
|
data: e == "personal" ? _.value : v.value
|
|
9002
8981
|
},
|
|
9003
8982
|
ok: (e) => {
|
|
9004
|
-
e && e.length > 0 ?
|
|
8983
|
+
e && e.length > 0 ? Wt({
|
|
9005
8984
|
org_id: o.id,
|
|
9006
8985
|
view_settings_ids: e
|
|
9007
8986
|
}).then(() => {
|
|
9008
|
-
|
|
9009
|
-
}) : (
|
|
8987
|
+
Fe.success(r("保存成功")), f();
|
|
8988
|
+
}) : (Fe.success(r("保存成功")), f());
|
|
9010
8989
|
},
|
|
9011
8990
|
cancel: (e) => {
|
|
9012
8991
|
e && f();
|
|
@@ -9257,7 +9236,7 @@ var sl = /*#__PURE__*/ s(Hc, [["render", ol], ["__scopeId", "data-v-3a49b911"]])
|
|
|
9257
9236
|
emits: ["change"],
|
|
9258
9237
|
setup(e, { emit: t }) {
|
|
9259
9238
|
let n = e, r = t, i = z(null);
|
|
9260
|
-
|
|
9239
|
+
ke("vfLocalDrag", i);
|
|
9261
9240
|
let a = O(() => {
|
|
9262
9241
|
let e = (t) => {
|
|
9263
9242
|
let n = [];
|
|
@@ -9342,7 +9321,7 @@ var sl = /*#__PURE__*/ s(Hc, [["render", ol], ["__scopeId", "data-v-3a49b911"]])
|
|
|
9342
9321
|
"allow-clear": "",
|
|
9343
9322
|
placeholder: e.$t("搜索字段")
|
|
9344
9323
|
}, {
|
|
9345
|
-
prefix: K(() => [P(U(
|
|
9324
|
+
prefix: K(() => [P(U(ct))]),
|
|
9346
9325
|
_: 1
|
|
9347
9326
|
}, 8, ["value", "placeholder"]),
|
|
9348
9327
|
M("div", dl, [(R(!0), j(D, null, B(u.value, (e) => (R(), j("div", {
|
|
@@ -9353,7 +9332,7 @@ var sl = /*#__PURE__*/ s(Hc, [["render", ol], ["__scopeId", "data-v-3a49b911"]])
|
|
|
9353
9332
|
onDragstart: (t) => e.isLeaf ? h(e.option) : void 0,
|
|
9354
9333
|
onDragend: (t) => e.isLeaf ? g() : void 0,
|
|
9355
9334
|
title: e.isLeaf ? `${e.option.label}(${e.option.field})` : e.option.label
|
|
9356
|
-
}, [e.isLeaf ? (R(), k(U(
|
|
9335
|
+
}, [e.isLeaf ? (R(), k(U(Ke), {
|
|
9357
9336
|
key: 0,
|
|
9358
9337
|
class: "vf-field-icon"
|
|
9359
9338
|
})) : (R(), j("span", pl)), M("span", ml, H(e.isLeaf ? `${e.option.label}(${e.option.field})` : e.option.label), 1)], 46, fl))), 128)), u.value.length === 0 ? (R(), j("div", hl, H(e.$t("未找到匹配字段")), 1)) : A("", !0)])
|
|
@@ -9369,7 +9348,7 @@ var sl = /*#__PURE__*/ s(Hc, [["render", ol], ["__scopeId", "data-v-3a49b911"]])
|
|
|
9369
9348
|
onDragover: q(v, ["prevent"]),
|
|
9370
9349
|
onDragleave: t[2] ||= (e) => _.value = !1,
|
|
9371
9350
|
onDrop: q(y, ["stop"])
|
|
9372
|
-
}, [e.valueField.field ? (R(), j(D, { key: 0 }, [M("span", bl, H(d(e.valueField.field)), 1), P(U(
|
|
9351
|
+
}, [e.valueField.field ? (R(), j(D, { key: 0 }, [M("span", bl, H(d(e.valueField.field)), 1), P(U(Ue), {
|
|
9373
9352
|
class: "vf-single-remove",
|
|
9374
9353
|
onClick: q(x, ["stop"])
|
|
9375
9354
|
})], 64)) : (R(), j("span", xl, H(e.$t("从左侧拖拽字段到此处")), 1))], 34),
|
|
@@ -9649,8 +9628,8 @@ var sl = /*#__PURE__*/ s(Hc, [["render", ol], ["__scopeId", "data-v-3a49b911"]])
|
|
|
9649
9628
|
...v,
|
|
9650
9629
|
org_id: _
|
|
9651
9630
|
};
|
|
9652
|
-
let y =
|
|
9653
|
-
|
|
9631
|
+
let y = _t.compile(d || ""), b = _t.compile(f || "");
|
|
9632
|
+
Pe.confirm({
|
|
9654
9633
|
title: y({ record: v }),
|
|
9655
9634
|
content: b({ record: v }),
|
|
9656
9635
|
onOk() {
|
|
@@ -9672,14 +9651,14 @@ var sl = /*#__PURE__*/ s(Hc, [["render", ol], ["__scopeId", "data-v-3a49b911"]])
|
|
|
9672
9651
|
})), h && (v = {
|
|
9673
9652
|
...v,
|
|
9674
9653
|
...h
|
|
9675
|
-
}),
|
|
9654
|
+
}), ae(Ae({
|
|
9676
9655
|
open: !0,
|
|
9677
9656
|
loading: !1,
|
|
9678
9657
|
component: u,
|
|
9679
9658
|
record: U(v),
|
|
9680
9659
|
dataSource: e,
|
|
9681
9660
|
button: t,
|
|
9682
|
-
title:
|
|
9661
|
+
title: _t.compile(l || "")({ record: v }),
|
|
9683
9662
|
ok: (t) => {
|
|
9684
9663
|
t = {
|
|
9685
9664
|
...t,
|
|
@@ -9720,20 +9699,20 @@ var sl = /*#__PURE__*/ s(Hc, [["render", ol], ["__scopeId", "data-v-3a49b911"]])
|
|
|
9720
9699
|
...x,
|
|
9721
9700
|
...p
|
|
9722
9701
|
});
|
|
9723
|
-
let ee =
|
|
9702
|
+
let ee = Ae({
|
|
9724
9703
|
settings: _.settings || {
|
|
9725
9704
|
labelAlign: "right",
|
|
9726
9705
|
layout: "vertical",
|
|
9727
9706
|
col: []
|
|
9728
9707
|
},
|
|
9729
9708
|
dynamicFieldList: _.dynamicFieldList || [],
|
|
9730
|
-
model:
|
|
9709
|
+
model: Ae(x),
|
|
9731
9710
|
rules: _.rules || {},
|
|
9732
9711
|
options: _.options || {}
|
|
9733
|
-
}), S =
|
|
9712
|
+
}), S = Ae({
|
|
9734
9713
|
open: !0,
|
|
9735
9714
|
loading: !1,
|
|
9736
|
-
title:
|
|
9715
|
+
title: _t.compile(l || "")({ record: x }),
|
|
9737
9716
|
form: ee,
|
|
9738
9717
|
ok: (n) => new Promise(function(r, s) {
|
|
9739
9718
|
if (!u) {
|
|
@@ -9754,7 +9733,7 @@ var sl = /*#__PURE__*/ s(Hc, [["render", ol], ["__scopeId", "data-v-3a49b911"]])
|
|
|
9754
9733
|
method: f,
|
|
9755
9734
|
data: c
|
|
9756
9735
|
}).then(() => {
|
|
9757
|
-
|
|
9736
|
+
Fe.success("操作成功"), a.emit("refresh"), r(null);
|
|
9758
9737
|
}).catch((e) => {
|
|
9759
9738
|
s(e);
|
|
9760
9739
|
}).finally(() => {
|
|
@@ -9788,7 +9767,7 @@ var sl = /*#__PURE__*/ s(Hc, [["render", ol], ["__scopeId", "data-v-3a49b911"]])
|
|
|
9788
9767
|
});
|
|
9789
9768
|
})
|
|
9790
9769
|
});
|
|
9791
|
-
|
|
9770
|
+
ae(S);
|
|
9792
9771
|
}, jl = F({
|
|
9793
9772
|
name: "HeadBtnChildren",
|
|
9794
9773
|
props: {
|
|
@@ -9891,7 +9870,7 @@ var Nl = F({
|
|
|
9891
9870
|
},
|
|
9892
9871
|
components: { HeadBtnChildren: /* @__PURE__ */ s(jl, [["render", Ml]]) },
|
|
9893
9872
|
setup(e) {
|
|
9894
|
-
let { t } =
|
|
9873
|
+
let { t } = X(), n = z({}), r = pt(), i = (e, { dataSource: t, selectedRowKeys: n, batchList: r }) => {
|
|
9895
9874
|
if (r?.length > 0) {
|
|
9896
9875
|
let t = e.find((e) => e.name === "批量操作");
|
|
9897
9876
|
t ? !t.children || t.children.length == 0 ? t.children = r : t.children = [...t.children, ...r] : e.push({
|
|
@@ -10040,8 +10019,8 @@ var Fl = /*#__PURE__*/ s(Nl, [["render", Pl]]), Il = F({
|
|
|
10040
10019
|
}
|
|
10041
10020
|
},
|
|
10042
10021
|
components: {
|
|
10043
|
-
LoadingOutlined:
|
|
10044
|
-
ReloadOutlined:
|
|
10022
|
+
LoadingOutlined: rt,
|
|
10023
|
+
ReloadOutlined: at
|
|
10045
10024
|
},
|
|
10046
10025
|
emits: ["refresh", "typeChange"],
|
|
10047
10026
|
setup(e, { emit: t }) {
|
|
@@ -10064,11 +10043,11 @@ var Fl = /*#__PURE__*/ s(Nl, [["render", Pl]]), Il = F({
|
|
|
10064
10043
|
}, 1e3);
|
|
10065
10044
|
return G(() => e.loading, () => {
|
|
10066
10045
|
e.loading || (r.value = -1, n = !0);
|
|
10067
|
-
}),
|
|
10046
|
+
}), we(() => {
|
|
10068
10047
|
i.value ||= !0;
|
|
10069
|
-
}),
|
|
10048
|
+
}), Ee(() => {
|
|
10070
10049
|
i.value = !1;
|
|
10071
|
-
}),
|
|
10050
|
+
}), Oe(() => {
|
|
10072
10051
|
clearInterval(o);
|
|
10073
10052
|
}), {
|
|
10074
10053
|
props: e,
|
|
@@ -10141,7 +10120,7 @@ function zl(e, t, n, r, i, a) {
|
|
|
10141
10120
|
}
|
|
10142
10121
|
var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE__ */ F({
|
|
10143
10122
|
__name: "ConditionGroupSelecter",
|
|
10144
|
-
props: /*@__PURE__*/
|
|
10123
|
+
props: /*@__PURE__*/ xe({
|
|
10145
10124
|
config: { default: null },
|
|
10146
10125
|
selfEventBus: {}
|
|
10147
10126
|
}, {
|
|
@@ -10150,9 +10129,9 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10150
10129
|
groupConditionValue: { default: null },
|
|
10151
10130
|
groupConditionValueModifiers: {}
|
|
10152
10131
|
}),
|
|
10153
|
-
emits: /*@__PURE__*/
|
|
10132
|
+
emits: /*@__PURE__*/ xe(["change"], ["update:selectedConditionGroup", "update:groupConditionValue"]),
|
|
10154
10133
|
setup(e, { emit: t }) {
|
|
10155
|
-
let n = e, r = t, i =
|
|
10134
|
+
let n = e, r = t, i = Ne(e, "selectedConditionGroup"), a = Ne(e, "groupConditionValue"), o = z(""), s = O(() => n.config?.condition_group_config_list?.filter((e) => e.label.includes(o.value))), c = O(() => i.value?.field_name ? [i.value.field_name] : []), l = () => {
|
|
10156
10135
|
a.value = null, i.value = null, r("change", i.value), n.selfEventBus.emit("refresh");
|
|
10157
10136
|
}, u = (e) => {
|
|
10158
10137
|
a.value = null, i.value = e, r("change", i.value), n.selfEventBus.emit("refresh");
|
|
@@ -10209,7 +10188,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10209
10188
|
"overflow-y": "auto"
|
|
10210
10189
|
} }, Wl = /* @__PURE__ */ F({
|
|
10211
10190
|
__name: "ConditionGroupView",
|
|
10212
|
-
props: /*@__PURE__*/
|
|
10191
|
+
props: /*@__PURE__*/ xe({
|
|
10213
10192
|
config: { default: null },
|
|
10214
10193
|
selfEventBus: {}
|
|
10215
10194
|
}, {
|
|
@@ -10220,13 +10199,13 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10220
10199
|
groupConditionValue: { default: null },
|
|
10221
10200
|
groupConditionValueModifiers: {}
|
|
10222
10201
|
}),
|
|
10223
|
-
emits: /*@__PURE__*/
|
|
10202
|
+
emits: /*@__PURE__*/ xe(["change"], [
|
|
10224
10203
|
"update:selectedConditionGroup",
|
|
10225
10204
|
"update:conditionGroupDataList",
|
|
10226
10205
|
"update:groupConditionValue"
|
|
10227
10206
|
]),
|
|
10228
10207
|
setup(e, { emit: t }) {
|
|
10229
|
-
let n = e, r = t, i =
|
|
10208
|
+
let n = e, r = t, i = Ne(e, "selectedConditionGroup"), a = Ne(e, "conditionGroupDataList"), o = Ne(e, "groupConditionValue"), s = () => {
|
|
10230
10209
|
a.value = [], i.value = null, o.value = null, r("change", o.value), n.selfEventBus.emit("refresh");
|
|
10231
10210
|
}, c = (e) => {
|
|
10232
10211
|
o.value = e, r("change", e), n.selfEventBus.emit("refresh");
|
|
@@ -10319,7 +10298,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10319
10298
|
class: "ant-pro-table-list-toolbar-setting-item"
|
|
10320
10299
|
}, lu = "view_system_edit", uu = /*#__PURE__*/ s(/* @__PURE__ */ F({
|
|
10321
10300
|
__name: "tableHeader",
|
|
10322
|
-
props: /*@__PURE__*/
|
|
10301
|
+
props: /*@__PURE__*/ xe({
|
|
10323
10302
|
config: { default: () => ({}) },
|
|
10324
10303
|
auth_batch_update_list: { default: () => [] },
|
|
10325
10304
|
auth_head_btn_list: { default: () => [] },
|
|
@@ -10359,7 +10338,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10359
10338
|
groupConditionValue: { default: null },
|
|
10360
10339
|
groupConditionValueModifiers: {}
|
|
10361
10340
|
}),
|
|
10362
|
-
emits: /*@__PURE__*/
|
|
10341
|
+
emits: /*@__PURE__*/ xe([
|
|
10363
10342
|
"refresh",
|
|
10364
10343
|
"export",
|
|
10365
10344
|
"setFull",
|
|
@@ -10381,8 +10360,8 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10381
10360
|
"update:groupConditionValue"
|
|
10382
10361
|
]),
|
|
10383
10362
|
setup(e, { emit: t }) {
|
|
10384
|
-
let r = e, i = t, a =
|
|
10385
|
-
|
|
10363
|
+
let r = e, i = t, a = Ne(e, "settingOpen"), o = n(), s = o.currentOrg, c = z(o.CHECK_AUTH(lu)), l = O(() => _.value?.is_other_user_view || _.value?.is_system && !c.value ? !1 : v.value && _.value && _.value.id !== "no-view"), u = Ne(e, "selectedConditionGroup"), d = Ne(e, "conditionGroupDataList"), f = Ne(e, "groupConditionValue"), p = O(() => r.config?.setting_mode || "modal"), m = O(() => r.config?.setting_drawer_width ?? "700px"), h = O(() => r.config?.setting_drawer_placement || "left"), g = z(null);
|
|
10364
|
+
ht(g, (e) => {
|
|
10386
10365
|
i("heightChange", e[0].contentRect.height);
|
|
10387
10366
|
});
|
|
10388
10367
|
let { currentView: _, isViewChange: v } = $t(), y = z(!1), b = (e) => {
|
|
@@ -10422,7 +10401,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10422
10401
|
ref_key: "headerRef",
|
|
10423
10402
|
ref: g
|
|
10424
10403
|
}, [M("div", Gl, [M("div", Kl, [
|
|
10425
|
-
|
|
10404
|
+
je(e.$slots, "header_bar_before_title", {}, void 0, !0),
|
|
10426
10405
|
M("div", ql, [e.config?.show_title ? (R(), j("span", Jl, H(e.config?.title), 1)) : A("", !0), e.config?.show_current_view ? (R(), j("div", Yl, [U(_)?.name ? (R(), k(n, {
|
|
10427
10406
|
key: 0,
|
|
10428
10407
|
title: "视图:" + U(_)?.name
|
|
@@ -10481,11 +10460,11 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10481
10460
|
}
|
|
10482
10461
|
}, H(e.$t("重置")), 1)
|
|
10483
10462
|
], 64)) : A("", !0)])) : A("", !0)]),
|
|
10484
|
-
|
|
10463
|
+
je(e.$slots, "header_bar_after_title", {}, void 0, !0)
|
|
10485
10464
|
]), M("div", Ql, [
|
|
10486
10465
|
P(te, { align: "center" }, {
|
|
10487
10466
|
default: K(() => [
|
|
10488
|
-
|
|
10467
|
+
je(e.$slots, "header_bar_before_btn", {}, void 0, !0),
|
|
10489
10468
|
P(Fl, {
|
|
10490
10469
|
auth_batch_update_list: e.auth_batch_update_list,
|
|
10491
10470
|
auth_head_btn_list: e.auth_head_btn_list,
|
|
@@ -10505,7 +10484,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10505
10484
|
"router",
|
|
10506
10485
|
"event_obj"
|
|
10507
10486
|
]),
|
|
10508
|
-
|
|
10487
|
+
je(e.$slots, "header_bar_after_btn", {}, void 0, !0)
|
|
10509
10488
|
]),
|
|
10510
10489
|
_: 3
|
|
10511
10490
|
}),
|
|
@@ -10536,7 +10515,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10536
10515
|
size: "small",
|
|
10537
10516
|
onClick: t[8] ||= (t) => e.$emit("export")
|
|
10538
10517
|
}, {
|
|
10539
|
-
icon: K(() => [P(U(
|
|
10518
|
+
icon: K(() => [P(U(Je))]),
|
|
10540
10519
|
_: 1
|
|
10541
10520
|
})]),
|
|
10542
10521
|
_: 1
|
|
@@ -10569,7 +10548,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10569
10548
|
]),
|
|
10570
10549
|
_: 1
|
|
10571
10550
|
}, 8, ["selected-keys"])]),
|
|
10572
|
-
default: K(() => [P(U(
|
|
10551
|
+
default: K(() => [P(U(We))]),
|
|
10573
10552
|
_: 1
|
|
10574
10553
|
})]),
|
|
10575
10554
|
_: 1
|
|
@@ -10580,16 +10559,16 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10580
10559
|
size: "small",
|
|
10581
10560
|
onClick: t[10] ||= (e) => a.value = !0
|
|
10582
10561
|
}, {
|
|
10583
|
-
icon: K(() => [P(U(
|
|
10562
|
+
icon: K(() => [P(U(lt))]),
|
|
10584
10563
|
_: 1
|
|
10585
10564
|
})]),
|
|
10586
10565
|
_: 1
|
|
10587
10566
|
}, 8, ["title"])])),
|
|
10588
10567
|
e.config?.sys_btn?.full_screen === !1 ? A("", !0) : (R(), j("div", cu, [P(n, { title: e.screenState ? e.$t("退出全屏") : e.$t("全屏") }, {
|
|
10589
|
-
default: K(() => [e.screenState ? (R(), k(U(
|
|
10568
|
+
default: K(() => [e.screenState ? (R(), k(U(Qe), {
|
|
10590
10569
|
key: 1,
|
|
10591
10570
|
onClick: t[12] ||= (t) => e.$emit("exitFull")
|
|
10592
|
-
})) : (R(), k(U(
|
|
10571
|
+
})) : (R(), k(U($e), {
|
|
10593
10572
|
key: 0,
|
|
10594
10573
|
onClick: t[11] ||= (t) => e.$emit("setFull")
|
|
10595
10574
|
}))]),
|
|
@@ -10725,7 +10704,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10725
10704
|
return parseFloat((e + t).toFixed(n));
|
|
10726
10705
|
}
|
|
10727
10706
|
let i = (e) => (typeof e == "string" && (e = parseFloat(e)), e);
|
|
10728
|
-
return (t, r) => e.item.cellSummaryComponent ? (R(), k(
|
|
10707
|
+
return (t, r) => e.item.cellSummaryComponent ? (R(), k(Me("CellSummary_" + e.item.cellSummaryComponent), {
|
|
10729
10708
|
key: 0,
|
|
10730
10709
|
cmpObj: {
|
|
10731
10710
|
item: e.item,
|
|
@@ -10798,24 +10777,24 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10798
10777
|
let e = [
|
|
10799
10778
|
{
|
|
10800
10779
|
key: "copy",
|
|
10801
|
-
icon: () =>
|
|
10780
|
+
icon: () => ye(Ge),
|
|
10802
10781
|
label: "复制",
|
|
10803
10782
|
children: [
|
|
10804
10783
|
{
|
|
10805
10784
|
key: "copy_cell",
|
|
10806
|
-
icon: () =>
|
|
10785
|
+
icon: () => ye(Ge),
|
|
10807
10786
|
label: "复制单元格",
|
|
10808
10787
|
func: () => b("cell")
|
|
10809
10788
|
},
|
|
10810
10789
|
{
|
|
10811
10790
|
key: "copy_record",
|
|
10812
|
-
icon: () =>
|
|
10791
|
+
icon: () => ye(Ge),
|
|
10813
10792
|
label: "复制行",
|
|
10814
10793
|
func: () => b("record")
|
|
10815
10794
|
},
|
|
10816
10795
|
{
|
|
10817
10796
|
key: "copy_column",
|
|
10818
|
-
icon: () =>
|
|
10797
|
+
icon: () => ye(Ge),
|
|
10819
10798
|
label: "复制列",
|
|
10820
10799
|
func: () => b("column")
|
|
10821
10800
|
}
|
|
@@ -10823,41 +10802,41 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10823
10802
|
},
|
|
10824
10803
|
{
|
|
10825
10804
|
key: "refresh",
|
|
10826
|
-
icon: () =>
|
|
10805
|
+
icon: () => ye(at),
|
|
10827
10806
|
label: "刷新",
|
|
10828
10807
|
func: () => r("refresh")
|
|
10829
10808
|
},
|
|
10830
10809
|
{
|
|
10831
10810
|
key: "export",
|
|
10832
|
-
icon: () =>
|
|
10811
|
+
icon: () => ye(Je),
|
|
10833
10812
|
label: "导出",
|
|
10834
10813
|
func: () => r("export")
|
|
10835
10814
|
},
|
|
10836
10815
|
{
|
|
10837
10816
|
key: "table_config",
|
|
10838
|
-
icon: () =>
|
|
10817
|
+
icon: () => ye(lt),
|
|
10839
10818
|
label: "设置",
|
|
10840
10819
|
func: () => i.value = !0
|
|
10841
10820
|
}
|
|
10842
10821
|
];
|
|
10843
10822
|
return n.is_view && o.value && a.value && a.value.id !== "no-view" && (e = [...e, {
|
|
10844
10823
|
key: "view",
|
|
10845
|
-
icon: () =>
|
|
10824
|
+
icon: () => ye(Be),
|
|
10846
10825
|
label: "视图",
|
|
10847
10826
|
children: [
|
|
10848
10827
|
{
|
|
10849
10828
|
key: "save_view",
|
|
10850
|
-
icon: () =>
|
|
10829
|
+
icon: () => ye(st),
|
|
10851
10830
|
label: "保存视图"
|
|
10852
10831
|
},
|
|
10853
10832
|
{
|
|
10854
10833
|
key: "save_new_view",
|
|
10855
|
-
icon: () =>
|
|
10834
|
+
icon: () => ye(st),
|
|
10856
10835
|
label: "另存视图"
|
|
10857
10836
|
},
|
|
10858
10837
|
{
|
|
10859
10838
|
key: "reinit",
|
|
10860
|
-
icon: () =>
|
|
10839
|
+
icon: () => ye(at),
|
|
10861
10840
|
label: "重置"
|
|
10862
10841
|
}
|
|
10863
10842
|
]
|
|
@@ -10963,7 +10942,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10963
10942
|
},
|
|
10964
10943
|
emits: ["selectChange", "dataChange"],
|
|
10965
10944
|
setup(e, { expose: r, emit: o }) {
|
|
10966
|
-
let s = e, c = o, { t: l } =
|
|
10945
|
+
let s = e, c = o, { t: l } = X(), d = t(), f = i(), p = n(), m = p.userid, _ = p.currentOrg, v = z(p.CHECK_AUTH(mu)), y = Y(), b = z([]), x = z([]), ee = z(!1), S = mt(), C = z([]), w = z([]), te = z(!1), T = O(() => !!s.config.enable_advanced_search_multigroups), ne = O({
|
|
10967
10946
|
get() {
|
|
10968
10947
|
return T.value ? w.value[0]?.conditions || [] : C.value;
|
|
10969
10948
|
},
|
|
@@ -10986,8 +10965,8 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
10986
10965
|
let e = {};
|
|
10987
10966
|
for (let t of E.value) t?.field_name && (e[t.field_name] = t);
|
|
10988
10967
|
return e;
|
|
10989
|
-
}), oe = null, se = z(null), ce = z(null), le = z(null), ue = z(null), de = z(0), fe = z(30), pe = z({}), me = z([]), he = z([]),
|
|
10990
|
-
|
|
10968
|
+
}), oe = null, se = z(null), ce = z(null), le = z(null), ue = z(null), de = z(0), fe = z(30), pe = z({}), me = z([]), he = z([]), ge = z([]), F = z([]), ve = z(!1), ye = z(), be = z(s.config.refreshType), xe = z(null), Se = z([]), Ce = z(null), we = O(() => s.config?.rowKey || "id");
|
|
10969
|
+
F.value = p.CHECK_AUTH_BY_BTN_LIST(s.config?.btn_list || []) || [], ge.value = p.CHECK_AUTH_BY_BTN_LIST(s.config?.head_btn_list || []) || [], he.value = p.CHECK_AUTH_BY_BTN_LIST(s.config?.batch_update_list || []) || [];
|
|
10991
10970
|
let Te = z(s.config?.pageSizeOptions || [
|
|
10992
10971
|
"10",
|
|
10993
10972
|
"20",
|
|
@@ -11001,7 +10980,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11001
10980
|
"50000",
|
|
11002
10981
|
"60000",
|
|
11003
10982
|
"70000"
|
|
11004
|
-
]),
|
|
10983
|
+
]), Ee = O(() => `table_pro_${s.config.key}`), W = Ae({
|
|
11005
10984
|
current: 1,
|
|
11006
10985
|
pageSize: s.config?.pageSize || s.config?.query_params?.pageSize || pu,
|
|
11007
10986
|
total: 0,
|
|
@@ -11009,12 +10988,12 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11009
10988
|
tableHead: null,
|
|
11010
10989
|
sum_data: null
|
|
11011
10990
|
});
|
|
11012
|
-
|
|
10991
|
+
ht(se, (e) => {
|
|
11013
10992
|
ce.value = e[0].contentRect.height;
|
|
11014
|
-
}),
|
|
10993
|
+
}), ht(le, (e) => {
|
|
11015
10994
|
ue.value = e[0].contentRect.height;
|
|
11016
10995
|
});
|
|
11017
|
-
let
|
|
10996
|
+
let Ne = () => !1, q = ({ type: e = "list", viewData: t = null, groupDataList: n = null } = {}) => {
|
|
11018
10997
|
let r = (e) => {
|
|
11019
10998
|
let t = [];
|
|
11020
10999
|
return e.forEach((e) => {
|
|
@@ -11074,7 +11053,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11074
11053
|
}
|
|
11075
11054
|
let c = _t();
|
|
11076
11055
|
return c && (o.required_condition = c), s.config.get_db_alias && (o.db_alias = s.config.get_db_alias()), o;
|
|
11077
|
-
}, [Pe, Fe, { setFull: Ie, exitFull: Le }] =
|
|
11056
|
+
}, [Pe, Fe, { setFull: Ie, exitFull: Le }] = qt(), Re = async () => {
|
|
11078
11057
|
if (!xe.value) {
|
|
11079
11058
|
Se.value?.length > 0 && (Se.value = []);
|
|
11080
11059
|
return;
|
|
@@ -11084,20 +11063,20 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11084
11063
|
return;
|
|
11085
11064
|
}
|
|
11086
11065
|
if (!Se.value?.length) {
|
|
11087
|
-
let e =
|
|
11066
|
+
let e = q({ type: "group" });
|
|
11088
11067
|
e.group_condition = {
|
|
11089
11068
|
field_name: xe.value.field_name,
|
|
11090
11069
|
display_name: xe.value.display_name,
|
|
11091
11070
|
order_name: xe.value.order_name || []
|
|
11092
11071
|
}, Se.value = await u(e, s.config.query_group_url || "", !1, { api_log: `tablePro ${s.config.key} ${s.config.title}` }) || [];
|
|
11093
11072
|
}
|
|
11094
|
-
},
|
|
11073
|
+
}, J = async () => {
|
|
11095
11074
|
if (!s.config.list_url) return;
|
|
11096
11075
|
let e = Symbol();
|
|
11097
11076
|
oe = e;
|
|
11098
11077
|
try {
|
|
11099
|
-
ee.value = !0, await
|
|
11100
|
-
let t =
|
|
11078
|
+
ee.value = !0, await Re();
|
|
11079
|
+
let t = q({ type: "list" }), n;
|
|
11101
11080
|
if (n = s.config.query_data_func ? await s.config.query_data_func(t) : await u(t, s.config.list_url.replace("__tree", ""), s.config.list_url.includes("__tree"), { api_log: `tablePro ${s.config.key} ${s.config.title}` }), oe !== e) return;
|
|
11102
11081
|
s.config.process_data_func ? b.value = s.config.process_data_func(n.data) : b.value = n.data || [], W.current = n.current, W.total = n.total, W.tableHead = n.table_head ? n.table_head : null, W.sum_data = n.sum_data ?? null, c("dataChange", {
|
|
11103
11082
|
data: b.value,
|
|
@@ -11108,8 +11087,8 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11108
11087
|
if (oe !== e) return;
|
|
11109
11088
|
ee.value = !1;
|
|
11110
11089
|
}
|
|
11111
|
-
}, Be = (0, Z.debounce)(
|
|
11112
|
-
W.current == e && W.pageSize == t || (W.current = e || 1, W.pageSize = t || pu,
|
|
11090
|
+
}, Be = (0, Z.debounce)(J, 500), Ve = (e, t) => {
|
|
11091
|
+
W.current == e && W.pageSize == t || (W.current = e || 1, W.pageSize = t || pu, J());
|
|
11113
11092
|
}, He = O(() => s.config.search_type === "simple" ? s.config.search_type : "advanced"), Ue = O(() => s.config?.is_view !== !1), We = O(() => ({
|
|
11114
11093
|
type: s.config.rowSelectionType || "checkbox",
|
|
11115
11094
|
checkStrictly: s.config.rowSelectionCheckStrictly || !1,
|
|
@@ -11195,7 +11174,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11195
11174
|
for (let r of n) r.children && r.children.length > 0 ? t(r.children) : e += r.width || r.minWidth || 120;
|
|
11196
11175
|
};
|
|
11197
11176
|
t(Je.value);
|
|
11198
|
-
}),
|
|
11177
|
+
}), Xe = O(() => `${s.config.title || "data"}_${ze().format("YYYYMMDD_HHmmss")}`), Qe = O(() => {
|
|
11199
11178
|
let e = [], t = (n) => {
|
|
11200
11179
|
n.forEach((n) => {
|
|
11201
11180
|
if (n.children && n.children.length > 0) t(n.children);
|
|
@@ -11224,13 +11203,13 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11224
11203
|
};
|
|
11225
11204
|
return t(Je.value), e;
|
|
11226
11205
|
}), et = ({ confirm: e, dataIndex: t, value: n }) => {
|
|
11227
|
-
e(),
|
|
11206
|
+
e(), J(), kt.value = !0;
|
|
11228
11207
|
}, tt = ({ clearFilters: e, dataIndex: t }) => {
|
|
11229
11208
|
e();
|
|
11230
11209
|
let n = (0, Z.cloneDeep)(ne.value), r = n.findIndex((e) => e.field_name === t);
|
|
11231
|
-
r > -1 && n.splice(r, 1), ne.value = n,
|
|
11210
|
+
r > -1 && n.splice(r, 1), ne.value = n, J(), kt.value = !0;
|
|
11232
11211
|
}, nt = async () => {
|
|
11233
|
-
await
|
|
11212
|
+
await J();
|
|
11234
11213
|
}, rt = async () => {
|
|
11235
11214
|
b.value = [...b.value];
|
|
11236
11215
|
}, it = (e) => {
|
|
@@ -11284,7 +11263,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11284
11263
|
let e = Dt.value.find((e) => e.uid == s.config?.view_uid);
|
|
11285
11264
|
if (e) Ct(e.data), Ot.value = e;
|
|
11286
11265
|
else {
|
|
11287
|
-
let e = await
|
|
11266
|
+
let e = await Gt({
|
|
11288
11267
|
org_id: _.id,
|
|
11289
11268
|
is_active: !0,
|
|
11290
11269
|
uid: s.config?.view_uid
|
|
@@ -11303,11 +11282,11 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11303
11282
|
e.sort((e, n) => t(e) - t(n)), Ct(e[0].data), Ot.value = e[0];
|
|
11304
11283
|
}
|
|
11305
11284
|
}
|
|
11306
|
-
await
|
|
11285
|
+
await J();
|
|
11307
11286
|
}, ut = async () => {
|
|
11308
11287
|
kt.value = !1, await lt();
|
|
11309
11288
|
}, dt = async () => {
|
|
11310
|
-
await
|
|
11289
|
+
await J();
|
|
11311
11290
|
}, ft = O(() => {
|
|
11312
11291
|
let e = [], t = (n) => {
|
|
11313
11292
|
n.forEach((n) => {
|
|
@@ -11315,7 +11294,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11315
11294
|
});
|
|
11316
11295
|
};
|
|
11317
11296
|
return t(qe.value), e;
|
|
11318
|
-
}),
|
|
11297
|
+
}), pt = async () => {
|
|
11319
11298
|
if (!s.config.enable_custom_filter || !s.config.query_field_search_config_url || !_?.id) return;
|
|
11320
11299
|
let e = ft.value.map((e) => e.dataIndex).filter((e) => !!e && e !== "index" && e !== "action" && !ae.value[e] && !ie.value[e]);
|
|
11321
11300
|
if (e.length) {
|
|
@@ -11381,7 +11360,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11381
11360
|
class_name: "str"
|
|
11382
11361
|
};
|
|
11383
11362
|
}
|
|
11384
|
-
ne.value = Object.values(e),
|
|
11363
|
+
ne.value = Object.values(e), J(), kt.value = !0;
|
|
11385
11364
|
} else if (r.action === "sort") {
|
|
11386
11365
|
let e = {}, t = [];
|
|
11387
11366
|
if (!(0, Z.isArray)(n)) e[n.columnKey] = n.order, t.push({
|
|
@@ -11392,15 +11371,15 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11392
11371
|
key: r.columnKey,
|
|
11393
11372
|
order: r.order
|
|
11394
11373
|
});
|
|
11395
|
-
pe.value = e, me.value = t,
|
|
11374
|
+
pe.value = e, me.value = t, J(), kt.value = !0;
|
|
11396
11375
|
}
|
|
11397
11376
|
}
|
|
11398
11377
|
}, yt = (e, t) => {
|
|
11399
11378
|
s.config?.is_click_selection && ((s.config.rowSelectionType || "checkbox") === "radio" ? x.value = [t.record.id] : x.value && x.value.includes(t.record.id) ? x.value = x.value.filter((e) => e !== t.record.id) : x.value.push(t.record.id), c("selectChange", b.value.filter((e) => x.value.includes(e.id)), b.value.filter((e) => !x.value.includes(e.id))));
|
|
11400
11379
|
}, bt = (e) => {
|
|
11401
|
-
s.config.required_condition && s.config.required_condition.find((t) => t.key === e) && (Se.value = [],
|
|
11380
|
+
s.config.required_condition && s.config.required_condition.find((t) => t.key === e) && (Se.value = [], J());
|
|
11402
11381
|
};
|
|
11403
|
-
|
|
11382
|
+
De(async () => {
|
|
11404
11383
|
s.config.key || console.error("tablePro config 未配置 key"), s.config.title || console.error("tablePro config 未配置 title"), a().on("change", bt), S.on("refresh", nt), S.on("local_refresh", rt), S.on("reinit", ut), S.on("saveView", Pt), S.on("saveNewView", Ft), s.eventBus && (s.eventBus.on("reinit", ut), s.eventBus.on("refresh", nt), s.eventBus.on("local_refresh", rt), s.eventBus.on("reload_table", dt)), s.config.tableSize && (W.tableSize = s.config.tableSize), await lt();
|
|
11405
11384
|
});
|
|
11406
11385
|
let xt = () => {
|
|
@@ -11464,7 +11443,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11464
11443
|
}
|
|
11465
11444
|
return e;
|
|
11466
11445
|
}, Dt = z([]), Ot = z(null), kt = z(!1), At = async () => {
|
|
11467
|
-
Dt.value = await en(
|
|
11446
|
+
Dt.value = await en(Ee.value, q, s.config.count_url, s.config);
|
|
11468
11447
|
}, jt = () => {
|
|
11469
11448
|
kt.value = !0;
|
|
11470
11449
|
}, Mt = (e) => {
|
|
@@ -11477,13 +11456,13 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11477
11456
|
isViewChange: kt,
|
|
11478
11457
|
userid: m,
|
|
11479
11458
|
view_project__flag: d.VITE_APP_VIEW_PROJECT_FLAG,
|
|
11480
|
-
view_menu__flag:
|
|
11459
|
+
view_menu__flag: Ee.value,
|
|
11481
11460
|
view_menu__name: s.config.title,
|
|
11482
11461
|
fetchViews: At,
|
|
11483
11462
|
is_auth: v,
|
|
11484
11463
|
t: l
|
|
11485
11464
|
});
|
|
11486
|
-
return
|
|
11465
|
+
return ke(Qt, {
|
|
11487
11466
|
setViewData: Ct,
|
|
11488
11467
|
getViewData: Et,
|
|
11489
11468
|
fetchViews: At,
|
|
@@ -11491,7 +11470,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11491
11470
|
currentView: Ot,
|
|
11492
11471
|
isViewChange: kt,
|
|
11493
11472
|
config: s.config
|
|
11494
|
-
}),
|
|
11473
|
+
}), Oe(() => {
|
|
11495
11474
|
S.off("refresh", nt), S.off("local_refresh", rt), S.off("reinit", ut), S.off("saveView", Pt), S.off("saveNewView", Ft), s.eventBus && (s.eventBus.off("reinit", ut), s.eventBus.off("refresh", nt), s.eventBus.off("local_refresh", rt), s.eventBus.off("reload_table", dt));
|
|
11496
11475
|
}), G(() => s.initSelectValue, () => {
|
|
11497
11476
|
ct();
|
|
@@ -11508,7 +11487,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11508
11487
|
() => s.config.search_config,
|
|
11509
11488
|
() => _?.id
|
|
11510
11489
|
], () => {
|
|
11511
|
-
|
|
11490
|
+
pt();
|
|
11512
11491
|
}, {
|
|
11513
11492
|
immediate: !0,
|
|
11514
11493
|
deep: !0
|
|
@@ -11528,7 +11507,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11528
11507
|
dataSource: b,
|
|
11529
11508
|
selectedRowKeys: x,
|
|
11530
11509
|
settingOpen: te,
|
|
11531
|
-
getQueryParams:
|
|
11510
|
+
getQueryParams: q
|
|
11532
11511
|
}), (t, n) => {
|
|
11533
11512
|
let r = V("s-table-summary-cell"), i = V("s-table-summary-row"), a = V("s-table"), o = V("a-card"), s = V("export-excel-modal-view");
|
|
11534
11513
|
return R(), j(D, null, [M("div", {
|
|
@@ -11591,7 +11570,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11591
11570
|
default: K(() => [P(uu, {
|
|
11592
11571
|
config: e.config,
|
|
11593
11572
|
auth_batch_update_list: he.value,
|
|
11594
|
-
auth_head_btn_list:
|
|
11573
|
+
auth_head_btn_list: ge.value,
|
|
11595
11574
|
selectedRowKeys: x.value,
|
|
11596
11575
|
dataSource: b.value,
|
|
11597
11576
|
current_org: U(_),
|
|
@@ -11602,7 +11581,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11602
11581
|
tableSize: W.tableSize,
|
|
11603
11582
|
"onUpdate:tableSize": n[2] ||= (e) => W.tableSize = e,
|
|
11604
11583
|
columns: Je.value,
|
|
11605
|
-
view_key:
|
|
11584
|
+
view_key: Ee.value,
|
|
11606
11585
|
view_flag_name: e.config.title,
|
|
11607
11586
|
is_view: Ue.value,
|
|
11608
11587
|
refreshType: be.value,
|
|
@@ -11625,10 +11604,10 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11625
11604
|
onSelectedConditionGroupChange: Nt,
|
|
11626
11605
|
onGroupConditionValueChange: Mt
|
|
11627
11606
|
}, {
|
|
11628
|
-
header_bar_before_title: K(() => [
|
|
11629
|
-
header_bar_after_title: K(() => [
|
|
11630
|
-
header_bar_before_btn: K(() => [
|
|
11631
|
-
header_bar_after_btn: K(() => [
|
|
11607
|
+
header_bar_before_title: K(() => [je(t.$slots, "header_bar_before_title", {}, void 0, !0)]),
|
|
11608
|
+
header_bar_after_title: K(() => [je(t.$slots, "header_bar_after_title", {}, void 0, !0)]),
|
|
11609
|
+
header_bar_before_btn: K(() => [je(t.$slots, "header_bar_before_btn", {}, void 0, !0)]),
|
|
11610
|
+
header_bar_after_btn: K(() => [je(t.$slots, "header_bar_after_btn", {}, void 0, !0)]),
|
|
11632
11611
|
_: 3
|
|
11633
11612
|
}, 8, [
|
|
11634
11613
|
"config",
|
|
@@ -11681,13 +11660,13 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11681
11660
|
virtual: !0,
|
|
11682
11661
|
sticky: "",
|
|
11683
11662
|
"summary-fixed": "",
|
|
11684
|
-
preserveRow:
|
|
11663
|
+
preserveRow: Ne,
|
|
11685
11664
|
style: L({ "--row-heigth": `${e.config.rowHeight}px` }),
|
|
11686
11665
|
class: I({ "modify-row-height": !!e.config.rowHeight }),
|
|
11687
11666
|
onChange: vt,
|
|
11688
11667
|
onCellClick: yt,
|
|
11689
11668
|
onResizeColumn: wt
|
|
11690
|
-
},
|
|
11669
|
+
}, _e({
|
|
11691
11670
|
customFilterDropdown: K(({ confirm: e, clearFilters: t, column: r }) => [P(Bn, {
|
|
11692
11671
|
column: r,
|
|
11693
11672
|
searchConfig: E.value,
|
|
@@ -11706,7 +11685,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11706
11685
|
"confirm",
|
|
11707
11686
|
"clearFilters"
|
|
11708
11687
|
])]),
|
|
11709
|
-
bodyCell: K(({ column: t, index: n, text: r, record: i }) => [t.dataIndex == "index" ? (R(), j(D, { key: 0 }, [N(H(n + 1 + W.pageSize * (W.current - 1)), 1)], 64)) : t.cellComponent ? (R(), k(
|
|
11688
|
+
bodyCell: K(({ column: t, index: n, text: r, record: i }) => [t.dataIndex == "index" ? (R(), j(D, { key: 0 }, [N(H(n + 1 + W.pageSize * (W.current - 1)), 1)], 64)) : t.cellComponent ? (R(), k(Me("Cell_" + t.cellComponent), {
|
|
11710
11689
|
key: 1,
|
|
11711
11690
|
cmpObj: {
|
|
11712
11691
|
column: t || {},
|
|
@@ -11719,7 +11698,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11719
11698
|
eventBus: e.eventBus,
|
|
11720
11699
|
tableHeightY: ot.value,
|
|
11721
11700
|
requestParams: e.config.query_params,
|
|
11722
|
-
auth_btn_list:
|
|
11701
|
+
auth_btn_list: F.value,
|
|
11723
11702
|
event_obj: U(S),
|
|
11724
11703
|
...e.config.cellComponentExt || {}
|
|
11725
11704
|
}
|
|
@@ -11741,7 +11720,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11741
11720
|
contextmenuPopup: t,
|
|
11742
11721
|
dataSource: b.value,
|
|
11743
11722
|
columns: Je.value,
|
|
11744
|
-
view_key:
|
|
11723
|
+
view_key: Ee.value,
|
|
11745
11724
|
view_flag_name: e.config.title,
|
|
11746
11725
|
is_view: Ue.value,
|
|
11747
11726
|
"self-event-bus": U(S),
|
|
@@ -11760,7 +11739,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11760
11739
|
_: 2
|
|
11761
11740
|
}, [e.config?.enable_custom_filter ? {
|
|
11762
11741
|
name: "customFilterIcon",
|
|
11763
|
-
fn: K(({ filtered: e, column: t }) => [P(U(
|
|
11742
|
+
fn: K(({ filtered: e, column: t }) => [P(U(Ze), { style: L({ color: e || U(h)(ne.value).some((e) => e.field_name === t.dataIndex) ? "#108ee9" : void 0 }) }, null, 8, ["style"])]),
|
|
11764
11743
|
key: "0"
|
|
11765
11744
|
} : void 0, gt.value.length > 0 ? {
|
|
11766
11745
|
name: "summary",
|
|
@@ -11807,10 +11786,10 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11807
11786
|
"source-columns": e.config.columns,
|
|
11808
11787
|
current: W.current,
|
|
11809
11788
|
datasource: b.value,
|
|
11810
|
-
filename:
|
|
11789
|
+
filename: Xe.value,
|
|
11811
11790
|
pageSize: W.pageSize,
|
|
11812
11791
|
total: W.total,
|
|
11813
|
-
requestParams:
|
|
11792
|
+
requestParams: q({ type: "list" }),
|
|
11814
11793
|
queryData: e.config.list_url,
|
|
11815
11794
|
open: ve.value,
|
|
11816
11795
|
"onUpdate:open": n[10] ||= (e) => ve.value = e
|
|
@@ -11831,4 +11810,4 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
|
|
|
11831
11810
|
}
|
|
11832
11811
|
}), gu = /* @__PURE__ */ e({ default: () => _u }), _u = /*#__PURE__*/ s(hu, [["__scopeId", "data-v-bd26148f"]]);
|
|
11833
11812
|
//#endregion
|
|
11834
|
-
export {
|
|
11813
|
+
export { Gt as _, qi as a, zt as b, ln as c, Xt as d, Qt as f, Ht as g, Rt as h, Vc as i, en as l, Wt as m, gu as n, Ln as o, qt as p, uu as r, On as s, _u as t, Zt as u, Bt as v, Lt as x, Vt as y };
|