liyu-pc-base 1.0.100 → 1.0.104
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/{FormRender3-00ccb360.js → FormRender3-ccdc58ee.js} +13 -11
- package/dist/{FormRender3-00ccb360.js.map → FormRender3-ccdc58ee.js.map} +1 -1
- package/dist/components/index.js +232 -230
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as pe, ref as ee, resolveComponent as C, openBlock as o, createBlock as _, withCtx as h, createVNode as
|
|
2
|
-
import { _ as he, i as el, F as ll, I as al, j as ol, U as tl, k as il, l as nl, m as dl, n as sl, A as fl, a as rl, c as ul, d as ml, R as pl, b as hl, o as _l, p as yl, J as vl, e as cl, f as bl, q as gl, M as wl, r as kl, C as Cl, T as $l } from "../FormRender3-
|
|
3
|
-
import { B as Fo, h as Uo, S as Ao, s as Ko } from "../FormRender3-
|
|
1
|
+
import { defineComponent as pe, ref as ee, resolveComponent as C, openBlock as o, createBlock as _, withCtx as h, createVNode as B, createElementBlock as F, Fragment as N, renderList as W, createElementVNode as G, toDisplayString as K, reactive as se, computed as Ee, watch as ae, onMounted as Fe, onUnmounted as Je, createTextVNode as x, createCommentVNode as M, withDirectives as Ce, vShow as $e, pushScopeId as Qe, popScopeId as Xe, renderSlot as Ze, normalizeStyle as D, createSlots as je, resolveDynamicComponent as ue, onActivated as xe, withModifiers as ce } from "vue";
|
|
2
|
+
import { _ as he, i as el, F as ll, I as al, j as ol, U as tl, k as il, l as nl, m as dl, n as sl, A as fl, a as rl, c as ul, d as ml, R as pl, b as hl, o as _l, p as yl, J as vl, e as cl, f as bl, q as gl, M as wl, r as kl, C as Cl, T as $l } from "../FormRender3-ccdc58ee.js";
|
|
3
|
+
import { B as Fo, h as Uo, S as Ao, s as Ko } from "../FormRender3-ccdc58ee.js";
|
|
4
4
|
import { message as te, Modal as qe } from "ant-design-vue";
|
|
5
5
|
import { get_operator_type_map as ke, isNotEmpty as Z, isEmpty as oe, copyValue as Ml } from "../utils/function.js";
|
|
6
6
|
import { CloseOutlined as Sl, LeftOutlined as El, RightOutlined as Ol, CloseCircleOutlined as Fl, PlusOutlined as We, CaretRightOutlined as Ul, SettingOutlined as Al, ExclamationCircleOutlined as De } from "@ant-design/icons-vue";
|
|
@@ -108,7 +108,7 @@ function Hl(e, l, H, L, P, q) {
|
|
|
108
108
|
})
|
|
109
109
|
}, {
|
|
110
110
|
default: h(() => [
|
|
111
|
-
|
|
111
|
+
B(U, {
|
|
112
112
|
activeKey: e.activeKey,
|
|
113
113
|
"onUpdate:activeKey": l[0] || (l[0] = (k) => e.activeKey = k)
|
|
114
114
|
}, {
|
|
@@ -123,7 +123,7 @@ function Hl(e, l, H, L, P, q) {
|
|
|
123
123
|
key: v.name
|
|
124
124
|
}, [
|
|
125
125
|
G("div", Nl, K(v.name), 1),
|
|
126
|
-
|
|
126
|
+
B(R, {
|
|
127
127
|
wrap: "",
|
|
128
128
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
129
129
|
}, {
|
|
@@ -131,7 +131,7 @@ function Hl(e, l, H, L, P, q) {
|
|
|
131
131
|
(o(!0), F(N, null, W(v.group, (t) => (o(), F("div", {
|
|
132
132
|
key: t.field_name
|
|
133
133
|
}, [
|
|
134
|
-
|
|
134
|
+
B(f, {
|
|
135
135
|
checked: t.checked,
|
|
136
136
|
"onUpdate:checked": (O) => t.checked = O
|
|
137
137
|
}, {
|
|
@@ -262,12 +262,12 @@ function Ql(e, l, H, L, P, q) {
|
|
|
262
262
|
key: v.name
|
|
263
263
|
}, [
|
|
264
264
|
G("div", Ll, K(v.name), 1),
|
|
265
|
-
|
|
265
|
+
B(R, { wrap: "" }, {
|
|
266
266
|
default: h(() => [
|
|
267
267
|
(o(!0), F(N, null, W(v.group, (t) => (o(), F("div", {
|
|
268
268
|
key: t.field_name
|
|
269
269
|
}, [
|
|
270
|
-
|
|
270
|
+
B(f, {
|
|
271
271
|
checked: t.checked,
|
|
272
272
|
"onUpdate:checked": (O) => t.checked = O
|
|
273
273
|
}, {
|
|
@@ -284,7 +284,7 @@ function Ql(e, l, H, L, P, q) {
|
|
|
284
284
|
]),
|
|
285
285
|
_: 2
|
|
286
286
|
}, 1032, ["tab"]))), 128)),
|
|
287
|
-
|
|
287
|
+
B(U, {
|
|
288
288
|
activeKey: e.activeKey,
|
|
289
289
|
"onUpdate:activeKey": l[0] || (l[0] = (k) => e.activeKey = k)
|
|
290
290
|
}, {
|
|
@@ -299,7 +299,7 @@ function Ql(e, l, H, L, P, q) {
|
|
|
299
299
|
key: v.name
|
|
300
300
|
}, [
|
|
301
301
|
G("div", Jl, K(v.name), 1),
|
|
302
|
-
|
|
302
|
+
B(R, {
|
|
303
303
|
wrap: "",
|
|
304
304
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
305
305
|
}, {
|
|
@@ -307,7 +307,7 @@ function Ql(e, l, H, L, P, q) {
|
|
|
307
307
|
(o(!0), F(N, null, W(v.group, (t) => (o(), F("div", {
|
|
308
308
|
key: t.field_name
|
|
309
309
|
}, [
|
|
310
|
-
|
|
310
|
+
B(f, {
|
|
311
311
|
checked: t.checked,
|
|
312
312
|
"onUpdate:checked": (O) => t.checked = O
|
|
313
313
|
}, {
|
|
@@ -464,8 +464,8 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
464
464
|
) && (f.value[s][w.field_name] = null);
|
|
465
465
|
} else if (n[d] == 2) {
|
|
466
466
|
if (f.value[s][w.field_name] instanceof Array) {
|
|
467
|
-
const [c,
|
|
468
|
-
f.value[s][w.field_name] = [c,
|
|
467
|
+
const [c, V] = f.value[s][w.field_name];
|
|
468
|
+
f.value[s][w.field_name] = [c, V];
|
|
469
469
|
} else if (f.value[s][w.field_name]) {
|
|
470
470
|
const c = f.value[s][w.field_name];
|
|
471
471
|
f.value[s][w.field_name] = [c, null];
|
|
@@ -482,15 +482,15 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
482
482
|
O.open = !0;
|
|
483
483
|
}, E = (d) => {
|
|
484
484
|
e.default_search_condition_config_list.forEach((s, w) => {
|
|
485
|
-
d.new_list.forEach((p,
|
|
486
|
-
w ==
|
|
487
|
-
p.forEach((
|
|
488
|
-
c.field_name ==
|
|
485
|
+
d.new_list.forEach((p, u) => {
|
|
486
|
+
w == u && s.forEach((c) => {
|
|
487
|
+
p.forEach((V) => {
|
|
488
|
+
c.field_name == V.field_name && (V.value = c.value, V.operator = c.operator);
|
|
489
489
|
});
|
|
490
490
|
});
|
|
491
491
|
});
|
|
492
492
|
}), l("update_default_search_condition_config_list", { new_list: d.new_list }), O.open = !1;
|
|
493
|
-
},
|
|
493
|
+
}, T = () => {
|
|
494
494
|
O.open = !1;
|
|
495
495
|
}, I = se({
|
|
496
496
|
open: !1
|
|
@@ -498,10 +498,10 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
498
498
|
I.open = !0;
|
|
499
499
|
}, ie = (d) => {
|
|
500
500
|
e.default_search_condition_config_list.forEach((s, w) => {
|
|
501
|
-
d.new_list.forEach((p,
|
|
502
|
-
w ==
|
|
503
|
-
p.forEach((
|
|
504
|
-
c.field_name ==
|
|
501
|
+
d.new_list.forEach((p, u) => {
|
|
502
|
+
w == u && s.forEach((c) => {
|
|
503
|
+
p.forEach((V) => {
|
|
504
|
+
c.field_name == V.field_name && (V.value = c.value, V.operator = c.operator);
|
|
505
505
|
});
|
|
506
506
|
});
|
|
507
507
|
});
|
|
@@ -513,11 +513,11 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
513
513
|
}, g = (d = !1) => {
|
|
514
514
|
var s;
|
|
515
515
|
e.base_search_condition_config_list.length != 0 && ((s = e.default_search_condition_config_list) == null || s.forEach((w, p) => {
|
|
516
|
-
X[p] = {}, f.value[p] || (f.value[p] = {}), e.base_search_condition_config_list.forEach((
|
|
516
|
+
X[p] = {}, f.value[p] || (f.value[p] = {}), e.base_search_condition_config_list.forEach((u) => {
|
|
517
517
|
var c;
|
|
518
|
-
(c =
|
|
518
|
+
(c = u.group) == null || c.forEach((V) => {
|
|
519
519
|
w.forEach((A) => {
|
|
520
|
-
|
|
520
|
+
V.field_name == A.field_name && ((f.value[p][A.field_name] == null || d) && (n[A.operator] == 1 ? A.value !== void 0 ? f.value[p][A.field_name] = A.value : f.value[p][A.field_name] = null : n[A.operator] == 2 ? A.value !== void 0 ? f.value[p][A.field_name] = A.value : f.value[p][A.field_name] = [null, null] : n[A.operator] == 0 && (A.value !== void 0 ? f.value[p][A.field_name] = A.value : f.value[p][A.field_name] = [])), Object.assign(A, { ...V, operator: A.operator }), A.operator == "eq" && A.mode != "default" ? (V.mode = "default", Object.assign(A, { model: "default" })) : ["in", "notin"].includes(A.operator) && A.mode != "multiple" && (V.mode = "multiple", Object.assign(A, { model: "multiple" })));
|
|
521
521
|
});
|
|
522
522
|
});
|
|
523
523
|
});
|
|
@@ -530,13 +530,13 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
530
530
|
X[d][s.field_name] = !1;
|
|
531
531
|
}, re = (d, s) => {
|
|
532
532
|
const w = [];
|
|
533
|
-
e.default_search_condition_config_list.forEach((p,
|
|
534
|
-
if (
|
|
533
|
+
e.default_search_condition_config_list.forEach((p, u) => {
|
|
534
|
+
if (u !== d)
|
|
535
535
|
w.push(p);
|
|
536
536
|
else {
|
|
537
537
|
const c = [];
|
|
538
|
-
p.forEach((
|
|
539
|
-
|
|
538
|
+
p.forEach((V) => {
|
|
539
|
+
V.field_name !== s.field_name && c.push(V);
|
|
540
540
|
}), c.length > 0 && w.push(c);
|
|
541
541
|
}
|
|
542
542
|
}), l("update_default_search_condition_config_list", { new_list: w });
|
|
@@ -544,11 +544,11 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
544
544
|
f.value[d][s] instanceof Array ? f.value[d][s].length = 0 : f.value[d][s] = null, l("onChangeValue", { model: f.value }), l("delSearch", { model: JSON.parse(JSON.stringify(f.value)) });
|
|
545
545
|
}, be = (d, s, w, p) => {
|
|
546
546
|
if (d instanceof Array && d.length > 0) {
|
|
547
|
-
const
|
|
547
|
+
const u = d[d.length - 1];
|
|
548
548
|
let c = null;
|
|
549
|
-
if (e.base_search_condition_config_list.forEach((
|
|
550
|
-
|
|
551
|
-
if (A.field_name ===
|
|
549
|
+
if (e.base_search_condition_config_list.forEach((V) => {
|
|
550
|
+
V.group.forEach((A) => {
|
|
551
|
+
if (A.field_name === u) {
|
|
552
552
|
if (c = JSON.parse(JSON.stringify(A)), c.default_operator)
|
|
553
553
|
c.operator = c.default_operator;
|
|
554
554
|
else if (y(c).length > 0) {
|
|
@@ -558,13 +558,13 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
558
558
|
}
|
|
559
559
|
});
|
|
560
560
|
}), c) {
|
|
561
|
-
const
|
|
562
|
-
|
|
561
|
+
const V = JSON.parse(JSON.stringify(e.default_search_condition_config_list));
|
|
562
|
+
V.forEach((A, de) => {
|
|
563
563
|
de === s && A.forEach((ge, we) => {
|
|
564
564
|
ge.field_name == w.field_name && we == p && (A.splice(we, 1, c), delete f.value[s][ge.field_name]);
|
|
565
565
|
});
|
|
566
566
|
}), l("update_default_search_condition_config_list", {
|
|
567
|
-
new_list:
|
|
567
|
+
new_list: V
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
570
|
g();
|
|
@@ -573,32 +573,34 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
573
573
|
const d = {};
|
|
574
574
|
return e.default_search_condition_config_list.forEach((s, w) => {
|
|
575
575
|
d[w] = [];
|
|
576
|
-
const p = s.map((
|
|
577
|
-
e.base_search_condition_config_list.forEach((
|
|
578
|
-
const c =
|
|
576
|
+
const p = s.map((u) => u.field_name);
|
|
577
|
+
e.base_search_condition_config_list.forEach((u) => {
|
|
578
|
+
const c = u.group.filter(
|
|
579
579
|
(A) => !p.includes(A.field_name)
|
|
580
|
-
),
|
|
581
|
-
value:
|
|
582
|
-
label:
|
|
580
|
+
), V = {
|
|
581
|
+
value: u.name,
|
|
582
|
+
label: u.name,
|
|
583
583
|
children: c.map((A) => ({
|
|
584
584
|
value: A.field_name,
|
|
585
585
|
label: A.label
|
|
586
586
|
}))
|
|
587
587
|
};
|
|
588
|
-
d[w].push(
|
|
588
|
+
d[w].push(V);
|
|
589
589
|
});
|
|
590
590
|
}), d;
|
|
591
591
|
}), ve = (d, s) => {
|
|
592
|
-
|
|
592
|
+
var p;
|
|
593
|
+
const w = (p = f.value[d]) == null ? void 0 : p[s.field_name];
|
|
593
594
|
if (w instanceof Array) {
|
|
594
|
-
const [
|
|
595
|
-
if (Z(
|
|
595
|
+
const [u] = w;
|
|
596
|
+
if (Z(u))
|
|
596
597
|
return !0;
|
|
597
598
|
} else if (Z(w))
|
|
598
599
|
return !0;
|
|
599
600
|
return !1;
|
|
600
|
-
},
|
|
601
|
-
|
|
601
|
+
}, r = (d, s) => {
|
|
602
|
+
var u;
|
|
603
|
+
const w = [], p = (u = f.value[d]) == null ? void 0 : u[s.field_name];
|
|
602
604
|
if (s.operator === "is_or_not_blank_or_null" || s.operator === "is_or_not_null")
|
|
603
605
|
return P(p === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
|
|
604
606
|
if (s.operator === "_eq") {
|
|
@@ -608,34 +610,34 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
608
610
|
if (L.value[s.field_name] != null)
|
|
609
611
|
return `${ke(s.format, s.operator)} ${L.value[s.field_name]}`;
|
|
610
612
|
if (p instanceof Array && s.field_name_list instanceof Array) {
|
|
611
|
-
let
|
|
612
|
-
return s.field_name_list && (p instanceof Array ?
|
|
613
|
+
let c;
|
|
614
|
+
return s.field_name_list && (p instanceof Array ? c = p.join(",") : c = p), `${ke(s.format, s.operator)} ${c}`;
|
|
613
615
|
} else {
|
|
614
616
|
if (p instanceof Array && s.options instanceof Array)
|
|
615
|
-
return p.forEach((
|
|
616
|
-
s.options.forEach((
|
|
617
|
-
|
|
617
|
+
return p.forEach((c) => {
|
|
618
|
+
s.options.forEach((V) => {
|
|
619
|
+
c == V.value && w.push(V.label);
|
|
618
620
|
});
|
|
619
621
|
}), `${ke(s.format, s.operator)} ${w.join(
|
|
620
622
|
","
|
|
621
623
|
)}`;
|
|
622
624
|
{
|
|
623
|
-
let
|
|
625
|
+
let c;
|
|
624
626
|
if (s.options)
|
|
625
|
-
s.options.forEach((
|
|
626
|
-
p ==
|
|
627
|
+
s.options.forEach((V) => {
|
|
628
|
+
p == V.value && (c = V.label);
|
|
627
629
|
});
|
|
628
630
|
else if (s.type == "monthpicker" && s.dateFormat)
|
|
629
631
|
if (p instanceof Array) {
|
|
630
|
-
const
|
|
631
|
-
p.forEach((
|
|
632
|
-
|
|
633
|
-
}),
|
|
632
|
+
const V = [];
|
|
633
|
+
p.forEach((A) => {
|
|
634
|
+
A ? V.push(z(A).format(s.dateFormat)) : V.push(A);
|
|
635
|
+
}), c = V.join(",");
|
|
634
636
|
} else
|
|
635
|
-
|
|
637
|
+
c = z(p).format(s.dateFormat);
|
|
636
638
|
else
|
|
637
|
-
|
|
638
|
-
return `${ke(s.format, s.operator)} ${
|
|
639
|
+
c = p;
|
|
640
|
+
return `${ke(s.format, s.operator)} ${c}`;
|
|
639
641
|
}
|
|
640
642
|
}
|
|
641
643
|
}
|
|
@@ -686,7 +688,7 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
686
688
|
addConditionModal: O,
|
|
687
689
|
handleAddConditions: S,
|
|
688
690
|
handleAddConditionOk: E,
|
|
689
|
-
handleAddConditionCancel:
|
|
691
|
+
handleAddConditionCancel: T,
|
|
690
692
|
onChangeOperator: t,
|
|
691
693
|
handleAddGroupCondition: Y,
|
|
692
694
|
handleSearch: fe,
|
|
@@ -701,7 +703,7 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
701
703
|
handleDelSearch: ne,
|
|
702
704
|
searchItemOptionsDict: _e,
|
|
703
705
|
onChangeSearchItem: be,
|
|
704
|
-
transferValueFunc:
|
|
706
|
+
transferValueFunc: r,
|
|
705
707
|
isShowSearchTag: ve,
|
|
706
708
|
handleShowSearchRender: b,
|
|
707
709
|
options_eq: q,
|
|
@@ -710,12 +712,12 @@ const Xl = /* @__PURE__ */ he(Pl, [["render", Ql], ["__scopeId", "data-v-52b515e
|
|
|
710
712
|
};
|
|
711
713
|
}
|
|
712
714
|
});
|
|
713
|
-
const ea = (e) => (Qe("data-v-
|
|
715
|
+
const ea = (e) => (Qe("data-v-05b09981"), e = e(), Xe(), e), la = { class: "expand-btn" }, aa = { class: "card" }, oa = {
|
|
714
716
|
key: 0,
|
|
715
717
|
class: "condition-group"
|
|
716
718
|
}, ta = { style: { width: "315px", height: "40px" } }, ia = /* @__PURE__ */ ea(() => /* @__PURE__ */ G("div", { class: "range" }, "~", -1)), na = { class: "close-icon" }, da = { class: "search-bar" };
|
|
717
719
|
function sa(e, l, H, L, P, q) {
|
|
718
|
-
const f = C("a-button"), R = C("a-space"), j = C("a-tag"), U = C("close-outlined"), n = C("a-cascader"), k = C("a-tooltip"), v = C("a-select-option"), t = C("a-select"), O = C("field-render-2"), S = C("a-flex"), E = C("close-circle-outlined"),
|
|
720
|
+
const f = C("a-button"), R = C("a-space"), j = C("a-tag"), U = C("close-outlined"), n = C("a-cascader"), k = C("a-tooltip"), v = C("a-select-option"), t = C("a-select"), O = C("field-render-2"), S = C("a-flex"), E = C("close-circle-outlined"), T = C("a-input-group"), I = C("a-space-compact"), Y = C("a-divider"), ie = C("add-condition-modal"), $ = C("add-condition-group-modal");
|
|
719
721
|
return o(), F(N, null, [
|
|
720
722
|
e.is_massage_default ? M("", !0) : (o(), _(R, { key: 0 }, {
|
|
721
723
|
default: h(() => [
|
|
@@ -757,7 +759,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
757
759
|
})),
|
|
758
760
|
Ce(G("span", null, [
|
|
759
761
|
(o(!0), F(N, null, W(e.default_search_condition_config_list, (fe, g) => (o(), F("span", { key: g }, [
|
|
760
|
-
|
|
762
|
+
B(j, null, {
|
|
761
763
|
default: h(() => [
|
|
762
764
|
x(K(e.$t("条件组")) + K(g + 1) + ":", 1)
|
|
763
765
|
]),
|
|
@@ -766,10 +768,10 @@ function sa(e, l, H, L, P, q) {
|
|
|
766
768
|
(o(!0), F(N, null, W(fe, (a) => (o(), F("span", {
|
|
767
769
|
key: a.field_name
|
|
768
770
|
}, [
|
|
769
|
-
Ce(
|
|
771
|
+
Ce(B(j, { color: "green" }, {
|
|
770
772
|
default: h(() => [
|
|
771
773
|
x(K(a.label) + ": " + K(e.transferValueFunc(g, a)) + " ", 1),
|
|
772
|
-
|
|
774
|
+
B(U, {
|
|
773
775
|
style: { cursor: "pointer", "margin-left": "5px" },
|
|
774
776
|
onClick: (X) => e.handleDelSearch(g, a.field_name)
|
|
775
777
|
}, null, 8, ["onClick"])
|
|
@@ -786,7 +788,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
786
788
|
Ce(G("div", aa, [
|
|
787
789
|
(o(!0), F(N, null, W(e.default_search_condition_config_list, (fe, g) => (o(), F("div", { key: g }, [
|
|
788
790
|
e.default_search_condition_config_list.length > 1 ? (o(), F("div", oa, K(e.$t("条件组")) + " " + K(g + 1), 1)) : M("", !0),
|
|
789
|
-
|
|
791
|
+
B(R, {
|
|
790
792
|
wrap: !0,
|
|
791
793
|
align: "center",
|
|
792
794
|
size: 0
|
|
@@ -800,13 +802,13 @@ function sa(e, l, H, L, P, q) {
|
|
|
800
802
|
onMouseleave: (m) => e.handleMouseLeave(g, a)
|
|
801
803
|
}, {
|
|
802
804
|
default: h(() => [
|
|
803
|
-
|
|
805
|
+
B(T, { compact: "" }, {
|
|
804
806
|
default: h(() => [
|
|
805
|
-
|
|
807
|
+
B(k, {
|
|
806
808
|
title: a.label
|
|
807
809
|
}, {
|
|
808
810
|
default: h(() => [
|
|
809
|
-
|
|
811
|
+
B(n, {
|
|
810
812
|
value: a.label,
|
|
811
813
|
style: { width: "125px" },
|
|
812
814
|
options: e.searchItemOptionsDict[g],
|
|
@@ -818,7 +820,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
818
820
|
]),
|
|
819
821
|
_: 2
|
|
820
822
|
}, 1032, ["title"]),
|
|
821
|
-
|
|
823
|
+
B(k, {
|
|
822
824
|
title: e.get_operator_type_map(a.format, a.operator)
|
|
823
825
|
}, {
|
|
824
826
|
default: h(() => [
|
|
@@ -910,7 +912,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
910
912
|
validateInfos: e.validateInfos
|
|
911
913
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (o(), _(S, { key: 3 }, {
|
|
912
914
|
default: h(() => [
|
|
913
|
-
|
|
915
|
+
B(O, {
|
|
914
916
|
is_show_label: !1,
|
|
915
917
|
label: e.labelModel[a.field_name],
|
|
916
918
|
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
@@ -922,7 +924,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
922
924
|
validateInfos: e.validateInfos
|
|
923
925
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"]),
|
|
924
926
|
ia,
|
|
925
|
-
|
|
927
|
+
B(O, {
|
|
926
928
|
is_show_label: !1,
|
|
927
929
|
label: e.labelModel[a.field_name],
|
|
928
930
|
"onUpdate:label": (m) => e.labelModel[a.field_name] = m,
|
|
@@ -1009,7 +1011,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
1009
1011
|
title: "删除此条件"
|
|
1010
1012
|
}, {
|
|
1011
1013
|
default: h(() => [
|
|
1012
|
-
|
|
1014
|
+
B(E, {
|
|
1013
1015
|
onClick: (m) => e.handleDeleteFormItem(g, a)
|
|
1014
1016
|
}, null, 8, ["onClick"])
|
|
1015
1017
|
]),
|
|
@@ -1040,9 +1042,9 @@ function sa(e, l, H, L, P, q) {
|
|
|
1040
1042
|
[$e, e.isShowForm]
|
|
1041
1043
|
]),
|
|
1042
1044
|
Ce(G("div", da, [
|
|
1043
|
-
|
|
1045
|
+
B(R, null, {
|
|
1044
1046
|
default: h(() => [
|
|
1045
|
-
|
|
1047
|
+
B(f, {
|
|
1046
1048
|
size: "small",
|
|
1047
1049
|
type: "primary",
|
|
1048
1050
|
onClick: e.handleAddConditions
|
|
@@ -1052,7 +1054,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
1052
1054
|
]),
|
|
1053
1055
|
_: 1
|
|
1054
1056
|
}, 8, ["onClick"]),
|
|
1055
|
-
|
|
1057
|
+
B(f, {
|
|
1056
1058
|
size: "small",
|
|
1057
1059
|
type: "primary",
|
|
1058
1060
|
onClick: e.handleAddGroupCondition
|
|
@@ -1062,7 +1064,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
1062
1064
|
]),
|
|
1063
1065
|
_: 1
|
|
1064
1066
|
}, 8, ["onClick"]),
|
|
1065
|
-
|
|
1067
|
+
B(f, {
|
|
1066
1068
|
size: "small",
|
|
1067
1069
|
type: "primary",
|
|
1068
1070
|
onClick: e.handleSearch
|
|
@@ -1096,7 +1098,7 @@ function sa(e, l, H, L, P, q) {
|
|
|
1096
1098
|
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : M("", !0)
|
|
1097
1099
|
], 64);
|
|
1098
1100
|
}
|
|
1099
|
-
const ko = /* @__PURE__ */ he(xl, [["render", sa], ["__scopeId", "data-v-
|
|
1101
|
+
const ko = /* @__PURE__ */ he(xl, [["render", sa], ["__scopeId", "data-v-05b09981"]]), fa = pe({
|
|
1100
1102
|
name: "FormRender",
|
|
1101
1103
|
components: {},
|
|
1102
1104
|
props: {
|
|
@@ -1171,7 +1173,7 @@ function ra(e, l, H, L, P, q) {
|
|
|
1171
1173
|
scrollToFirstError: ""
|
|
1172
1174
|
}, {
|
|
1173
1175
|
default: h(() => [
|
|
1174
|
-
|
|
1176
|
+
B(j, {
|
|
1175
1177
|
gutter: 20,
|
|
1176
1178
|
style: { margin: "0" }
|
|
1177
1179
|
}, {
|
|
@@ -1438,9 +1440,9 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1438
1440
|
}, j = () => {
|
|
1439
1441
|
l("add");
|
|
1440
1442
|
}, U = Kl(() => {
|
|
1441
|
-
var
|
|
1443
|
+
var T, I;
|
|
1442
1444
|
const t = q.value, O = [];
|
|
1443
|
-
for (const Y in (
|
|
1445
|
+
for (const Y in (T = e.field) == null ? void 0 : T.conditions) {
|
|
1444
1446
|
const ie = (I = e.field) == null ? void 0 : I.conditions[Y], $ = [];
|
|
1445
1447
|
for (const fe in ie) {
|
|
1446
1448
|
const g = ie[fe], a = e.formModel[g.watchKey];
|
|
@@ -1471,27 +1473,27 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1471
1473
|
let S;
|
|
1472
1474
|
if (e.field.type === "radio") {
|
|
1473
1475
|
const E = e.options.find(
|
|
1474
|
-
(
|
|
1476
|
+
(T) => T[e.field.valueKey ? e.field.valueKey : "value"] == t
|
|
1475
1477
|
);
|
|
1476
1478
|
S = E == null ? void 0 : E[e.field.labelKey ? e.field.labelKey : "label"];
|
|
1477
1479
|
} else if (e.field.type === "checkbox" && t && t.length >= 0) {
|
|
1478
1480
|
const E = [];
|
|
1479
|
-
e.options.forEach((
|
|
1481
|
+
e.options.forEach((T) => {
|
|
1480
1482
|
t.forEach((I) => {
|
|
1481
|
-
I == (
|
|
1483
|
+
I == (T == null ? void 0 : T[e.field.valueKey ? e.field.valueKey : "value"]) && E.push(T == null ? void 0 : T[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1482
1484
|
});
|
|
1483
1485
|
}), S = E.toString();
|
|
1484
1486
|
} else if (e.field.type === "select")
|
|
1485
1487
|
if (Re(t)) {
|
|
1486
1488
|
const E = [];
|
|
1487
|
-
e.options.forEach((
|
|
1489
|
+
e.options.forEach((T) => {
|
|
1488
1490
|
t.forEach((I) => {
|
|
1489
|
-
I == (
|
|
1491
|
+
I == (T == null ? void 0 : T[e.field.valueKey ? e.field.valueKey : "value"]) && E.push(T == null ? void 0 : T[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1490
1492
|
});
|
|
1491
1493
|
}), S = E.toString();
|
|
1492
1494
|
} else {
|
|
1493
1495
|
const E = e.options.find(
|
|
1494
|
-
(
|
|
1496
|
+
(T) => T[e.field.valueKey ? e.field.valueKey : "value"] == t
|
|
1495
1497
|
);
|
|
1496
1498
|
S = E == null ? void 0 : E[e.field.labelKey ? e.field.labelKey : "label"];
|
|
1497
1499
|
}
|
|
@@ -1530,8 +1532,8 @@ const $o = /* @__PURE__ */ he(ua, [["render", ma]]), me = (e, l = "YYYY-MM-DD")
|
|
|
1530
1532
|
() => H.value,
|
|
1531
1533
|
(t, O) => {
|
|
1532
1534
|
var S, E;
|
|
1533
|
-
(S = e.field) != null && S.conditions && ((E = e.field) == null || E.conditions.forEach((
|
|
1534
|
-
|
|
1535
|
+
(S = e.field) != null && S.conditions && ((E = e.field) == null || E.conditions.forEach((T) => {
|
|
1536
|
+
T.forEach((I) => {
|
|
1535
1537
|
O[I.watchKey] != t[I.watchKey] && U();
|
|
1536
1538
|
});
|
|
1537
1539
|
}));
|
|
@@ -1596,8 +1598,8 @@ const ha = {
|
|
|
1596
1598
|
style: { height: "30px", position: "relative" }
|
|
1597
1599
|
}, ba = { style: { position: "absolute", bottom: "0", padding: "0", margin: "0", "font-weight": "bolder", "font-size": "17px" } }, ga = { key: 0 }, wa = { key: 0 }, ka = { key: 0 }, Ca = { key: 0 }, $a = { key: 0 }, Ma = { key: 0 }, Sa = { key: 0 }, Ea = { key: 0 };
|
|
1598
1600
|
function Oa(e, l, H, L, P, q) {
|
|
1599
|
-
var d, s, w, p,
|
|
1600
|
-
const f = C("a-tag"), R = C("a-rate"), j = C("a-input"), U = C("a-input-number"), n = C("a-select-option"), k = C("a-select"), v = C("a-cascader"), t = C("remote-cascader"), O = C("remote-cascader-pro"), S = C("month-picker"), E = C("a-date-picker"),
|
|
1601
|
+
var d, s, w, p, u, c, V, A, de, ge, we, Ae, Ke, Ie, Ve, Be, Te;
|
|
1602
|
+
const f = C("a-tag"), R = C("a-rate"), j = C("a-input"), U = C("a-input-number"), n = C("a-select-option"), k = C("a-select"), v = C("a-cascader"), t = C("remote-cascader"), O = C("remote-cascader-pro"), S = C("month-picker"), E = C("a-date-picker"), T = C("a-range-picker"), I = C("month-range-picker"), Y = C("a-time-picker"), ie = C("a-time-range-picker"), $ = C("a-radio"), fe = C("a-radio-group"), g = C("a-checkbox"), a = C("a-checkbox-group"), X = C("a-tree-select"), m = C("remote-filter-select"), le = C("remote-select"), re = C("remote-select-pro"), ne = C("remote-complete"), be = C("remote-tree-select"), _e = C("remote-tree-select-pro"), ve = C("remote-modal"), r = C("remote-table"), b = C("remote-text"), y = C("a-divider");
|
|
1601
1603
|
return o(), F(N, null, [
|
|
1602
1604
|
e.field.type !== "divider" && (((d = e.field) == null ? void 0 : d.is_search_show) !== !1 || e.field_render_show) ? (o(), F(N, { key: 0 }, [
|
|
1603
1605
|
Ze(e.$slots, "default", {}, void 0, !0),
|
|
@@ -1655,7 +1657,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1655
1657
|
}),
|
|
1656
1658
|
key: "0"
|
|
1657
1659
|
} : void 0,
|
|
1658
|
-
(p = e.field) != null && p.suffix || (
|
|
1660
|
+
(p = e.field) != null && p.suffix || (u = e.field) != null && u.suffixIcon ? {
|
|
1659
1661
|
name: "suffix",
|
|
1660
1662
|
fn: h(() => {
|
|
1661
1663
|
var i, J, Q;
|
|
@@ -1666,7 +1668,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1666
1668
|
}),
|
|
1667
1669
|
key: "1"
|
|
1668
1670
|
} : void 0,
|
|
1669
|
-
(c = e.field) != null && c.addonBefore || (
|
|
1671
|
+
(c = e.field) != null && c.addonBefore || (V = e.field) != null && V.addonBeforeIcon ? {
|
|
1670
1672
|
name: "addonBefore",
|
|
1671
1673
|
fn: h(() => {
|
|
1672
1674
|
var i, J, Q;
|
|
@@ -1951,7 +1953,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
1951
1953
|
size: "small",
|
|
1952
1954
|
style: D(`width: ${e.field_width}px`)
|
|
1953
1955
|
}, null, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "format", "picker", "placeholder", "show-time", "value-format", "style"])) : M("", !0),
|
|
1954
|
-
e.field.type === "rangepicker" ? (o(), _(
|
|
1956
|
+
e.field.type === "rangepicker" ? (o(), _(T, {
|
|
1955
1957
|
key: 15,
|
|
1956
1958
|
value: e.model,
|
|
1957
1959
|
"onUpdate:value": l[16] || (l[16] = (i) => e.model = i),
|
|
@@ -2209,7 +2211,7 @@ function Oa(e, l, H, L, P, q) {
|
|
|
2209
2211
|
watch: e.field.watch,
|
|
2210
2212
|
style: D(`width: ${e.field_width}px`)
|
|
2211
2213
|
}, null, 8, ["label", "value", "columns", "field", "field_status", "get-data", "init_model", "modalType", "search_config", "watch", "style"])) : M("", !0),
|
|
2212
|
-
e.field.type === "remotetable" ? (o(), _(
|
|
2214
|
+
e.field.type === "remotetable" ? (o(), _(r, {
|
|
2213
2215
|
key: 29,
|
|
2214
2216
|
value: e.model,
|
|
2215
2217
|
"onUpdate:value": l[36] || (l[36] = (i) => e.model = i),
|
|
@@ -2366,36 +2368,36 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2366
2368
|
const H = Vl(), L = Bl(), P = Tl(), q = jl(), f = P.currentOrg, R = P.userid, j = ee(P.CHECK_AUTH(Ia)), U = ee([]), { t: n } = Ue();
|
|
2367
2369
|
let k, v;
|
|
2368
2370
|
const t = Ee(() => {
|
|
2369
|
-
const
|
|
2370
|
-
return
|
|
2371
|
+
const r = U.value.filter((y) => !!y.user_id && y.is_system).map((y) => y).sort((y, d) => y.sort == d.sort ? y.id - d.id : y.sort - d.sort), b = U.value.filter((y) => !!y.user_id && !y.is_system).map((y) => y).sort((y, d) => y.sort == d.sort ? y.id - d.id : y.sort - d.sort);
|
|
2372
|
+
return r.concat(b);
|
|
2371
2373
|
}), O = Ee(() => {
|
|
2372
|
-
const
|
|
2373
|
-
return
|
|
2374
|
-
}), S = Ee(() => U.value.map((
|
|
2375
|
-
id:
|
|
2374
|
+
const r = U.value.filter((y) => !y.user_id && y.is_system).map((y) => y).sort((y, d) => y.sort == d.sort ? y.id - d.id : y.sort - d.sort), b = U.value.filter((y) => !y.user_id && !y.is_system).map((y) => y).sort((y, d) => y.sort == d.sort ? y.id - d.id : y.sort - d.sort);
|
|
2375
|
+
return r.concat(b);
|
|
2376
|
+
}), S = Ee(() => U.value.map((r) => r.name)), E = async ({
|
|
2377
|
+
id: r,
|
|
2376
2378
|
search_model: b,
|
|
2377
2379
|
filter_map: y,
|
|
2378
2380
|
sort_fields: d,
|
|
2379
2381
|
group_condition: s,
|
|
2380
2382
|
conditions: w,
|
|
2381
2383
|
isShowGeneralFilter: p
|
|
2382
|
-
}) => new Promise((
|
|
2383
|
-
!e.countData && !(k != null && k.countData) && (console.error("无count接口"),
|
|
2384
|
+
}) => new Promise((u) => {
|
|
2385
|
+
!e.countData && !(k != null && k.countData) && (console.error("无count接口"), u(null));
|
|
2384
2386
|
const c = {
|
|
2385
2387
|
org_id: f.id,
|
|
2386
2388
|
...b,
|
|
2387
2389
|
...y,
|
|
2388
2390
|
sort_fields: d
|
|
2389
2391
|
};
|
|
2390
|
-
p && (c.group_condition = s, c.conditions = w), c.required_condition = be(), ql(c, k != null && k.countData ? k.countData : e.countData).then((
|
|
2392
|
+
p && (c.group_condition = s, c.conditions = w), c.required_condition = be(), ql(c, k != null && k.countData ? k.countData : e.countData).then((V) => {
|
|
2391
2393
|
U.value.forEach((A) => {
|
|
2392
|
-
A.id ==
|
|
2393
|
-
}),
|
|
2394
|
-
}).catch((
|
|
2395
|
-
console.log("error",
|
|
2394
|
+
A.id == r && (A.num = V);
|
|
2395
|
+
}), u(null);
|
|
2396
|
+
}).catch((V) => {
|
|
2397
|
+
console.log("error", V), te.error(n("获取数据失败, 请刷新页面"));
|
|
2396
2398
|
});
|
|
2397
|
-
}),
|
|
2398
|
-
for (const b of
|
|
2399
|
+
}), T = async (r) => {
|
|
2400
|
+
for (const b of r)
|
|
2399
2401
|
try {
|
|
2400
2402
|
await E(b);
|
|
2401
2403
|
} catch (y) {
|
|
@@ -2409,18 +2411,18 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2409
2411
|
modalType: e.modalType,
|
|
2410
2412
|
sort_fields: ["sort", "create_time"],
|
|
2411
2413
|
is_cache: !1
|
|
2412
|
-
}).then((
|
|
2414
|
+
}).then((r) => {
|
|
2413
2415
|
if (k = Oe(
|
|
2414
2416
|
e.app_flag,
|
|
2415
2417
|
e.modalType,
|
|
2416
|
-
|
|
2418
|
+
r.defaultAndServerConfig,
|
|
2417
2419
|
n,
|
|
2418
2420
|
{
|
|
2419
2421
|
use_store: !0,
|
|
2420
2422
|
to_i18n: !0,
|
|
2421
2423
|
enable_btn: !1
|
|
2422
2424
|
}
|
|
2423
|
-
), v =
|
|
2425
|
+
), v = r.defaultAndServerConfig, (k == null ? void 0 : k.isView) === !1) {
|
|
2424
2426
|
window.location.hash = "", l("change", v, {}, !0, !0);
|
|
2425
2427
|
return;
|
|
2426
2428
|
}
|
|
@@ -2430,15 +2432,15 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2430
2432
|
), U.value.length = 0;
|
|
2431
2433
|
let b = [];
|
|
2432
2434
|
const y = [];
|
|
2433
|
-
|
|
2434
|
-
let s = null, w = null, p = null,
|
|
2435
|
-
d.data.isShowGeneralFilter ? (s = {}, w = {}, p = d.data.group_condition,
|
|
2435
|
+
r && r.system_user_datas && r.system_user_datas.length > 0 && (b = b.concat(r.system_user_datas)), r && r.system_public_datas && r.system_public_datas.length > 0 && (b = b.concat(r.system_public_datas)), r && r.public_datas && r.public_datas.length > 0 && (b = b.concat(r.public_datas)), r && r.user_datas && r.user_datas.length > 0 && (b = b.concat(r.user_datas)), b.forEach((d) => {
|
|
2436
|
+
let s = null, w = null, p = null, u = null;
|
|
2437
|
+
d.data.isShowGeneralFilter ? (s = {}, w = {}, p = d.data.group_condition, u = d.data.conditions) : (s = d.data.search_model, w = d.data.filter_map, p = {}, u = []), U.value.push({
|
|
2436
2438
|
...d,
|
|
2437
2439
|
search_model: s,
|
|
2438
2440
|
filter_map: w,
|
|
2439
2441
|
sort_fields: d.data.sort_fields,
|
|
2440
2442
|
group_condition: p,
|
|
2441
|
-
conditions:
|
|
2443
|
+
conditions: u
|
|
2442
2444
|
}), y.push({
|
|
2443
2445
|
id: d.id,
|
|
2444
2446
|
isShowGeneralFilter: d.data.isShowGeneralFilter,
|
|
@@ -2446,16 +2448,16 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2446
2448
|
filter_map: w,
|
|
2447
2449
|
sort_fields: d.data.sort_fields,
|
|
2448
2450
|
group_condition: p,
|
|
2449
|
-
conditions:
|
|
2451
|
+
conditions: u
|
|
2450
2452
|
});
|
|
2451
|
-
}), y.length > 0 &&
|
|
2452
|
-
}).catch((
|
|
2453
|
-
console.log("err",
|
|
2453
|
+
}), y.length > 0 && T(y), Y(null);
|
|
2454
|
+
}).catch((r) => {
|
|
2455
|
+
console.log("err", r), te.error(n("获取视图失败, 请刷新页面"));
|
|
2454
2456
|
});
|
|
2455
|
-
}, Y = (
|
|
2457
|
+
}, Y = (r) => {
|
|
2456
2458
|
var y;
|
|
2457
2459
|
let b = null;
|
|
2458
|
-
if (
|
|
2460
|
+
if (r ? b = r : window.location.hash && (b = window.location.hash.substring(1)), b) {
|
|
2459
2461
|
const d = U.value.filter((s) => s.uid == b);
|
|
2460
2462
|
d && d.length > 0 ? l("change", v, { ...d[0], ...d[0].data }, !0, !0) : Ka({
|
|
2461
2463
|
org_id: f.id,
|
|
@@ -2497,18 +2499,18 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2497
2499
|
!1
|
|
2498
2500
|
);
|
|
2499
2501
|
else {
|
|
2500
|
-
const w = U.value.filter((
|
|
2502
|
+
const w = U.value.filter((u) => !u.user_id && u.is_default);
|
|
2501
2503
|
if (w && w.length > 0) {
|
|
2502
2504
|
window.location.hash = w[0].uid, l("change", v, { ...w[0], ...w[0].data }, !0, !0);
|
|
2503
2505
|
return;
|
|
2504
2506
|
}
|
|
2505
|
-
let p = U.value.sort((
|
|
2507
|
+
let p = U.value.sort((u, c) => u.sort == c.sort ? u.id - c.id : u.sort - c.sort).find((u) => !u.user_id);
|
|
2506
2508
|
if (p && p.uid)
|
|
2507
2509
|
window.location.hash = p.uid, l("change", v, { ...p, ...p.data }, !0, !0);
|
|
2508
|
-
else if (p = U.value.sort((
|
|
2510
|
+
else if (p = U.value.sort((u, c) => u.sort == c.sort ? u.id - c.id : u.sort - c.sort).find((u) => u.user_id), p && p.uid)
|
|
2509
2511
|
window.location.hash = p.uid, l("change", v, { ...p, ...p.data }, !0, !0);
|
|
2510
2512
|
else {
|
|
2511
|
-
const
|
|
2513
|
+
const u = {
|
|
2512
2514
|
uid: null,
|
|
2513
2515
|
view_menu__flag: e.menu_flag,
|
|
2514
2516
|
column: {},
|
|
@@ -2518,7 +2520,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2518
2520
|
filtered_value: {},
|
|
2519
2521
|
sort_orders: []
|
|
2520
2522
|
};
|
|
2521
|
-
l("change", v,
|
|
2523
|
+
l("change", v, u, !0, !1), window.location.hash = "";
|
|
2522
2524
|
}
|
|
2523
2525
|
}
|
|
2524
2526
|
});
|
|
@@ -2528,14 +2530,14 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2528
2530
|
window.location.hash = d, Y(d);
|
|
2529
2531
|
else {
|
|
2530
2532
|
const s = U.value.filter(
|
|
2531
|
-
(
|
|
2533
|
+
(u) => !u.user_id && u.is_default && !u.is_system
|
|
2532
2534
|
);
|
|
2533
2535
|
if (s && s.length > 0) {
|
|
2534
2536
|
window.location.hash = s[0].uid, l("change", v, { ...s[0], ...s[0].data }, !0, !0);
|
|
2535
2537
|
return;
|
|
2536
2538
|
}
|
|
2537
2539
|
const w = U.value.filter(
|
|
2538
|
-
(
|
|
2540
|
+
(u) => !u.user_id && u.is_default && u.is_system
|
|
2539
2541
|
);
|
|
2540
2542
|
if (w && w.length > 0) {
|
|
2541
2543
|
window.location.hash = w[0].uid, l(
|
|
@@ -2547,14 +2549,14 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2547
2549
|
);
|
|
2548
2550
|
return;
|
|
2549
2551
|
}
|
|
2550
|
-
let p = U.value.sort((
|
|
2552
|
+
let p = U.value.sort((u, c) => u.sort == c.sort ? u.id - c.id : u.sort - c.sort).find((u) => !u.user_id);
|
|
2551
2553
|
if (p && p.uid)
|
|
2552
2554
|
window.location.hash = p.uid, l("change", v, { ...p, ...p.data }, !0, !0);
|
|
2553
|
-
else if (p = U.value.sort((
|
|
2555
|
+
else if (p = U.value.sort((u, c) => u.sort == c.sort ? u.id - c.id : u.sort - c.sort).find((u) => u.user_id), p && p.uid)
|
|
2554
2556
|
window.location.hash = p.uid, l("change", v, { ...p, ...p.data }, !0, !0);
|
|
2555
2557
|
else {
|
|
2556
2558
|
window.location.hash = "";
|
|
2557
|
-
const
|
|
2559
|
+
const u = {
|
|
2558
2560
|
uid: null,
|
|
2559
2561
|
view_menu__flag: e.menu_flag,
|
|
2560
2562
|
column: {},
|
|
@@ -2564,24 +2566,24 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2564
2566
|
filtered_value: {},
|
|
2565
2567
|
sort_orders: []
|
|
2566
2568
|
};
|
|
2567
|
-
l("change", v,
|
|
2569
|
+
l("change", v, u, !0, !1);
|
|
2568
2570
|
}
|
|
2569
2571
|
}
|
|
2570
2572
|
}
|
|
2571
2573
|
};
|
|
2572
2574
|
I();
|
|
2573
|
-
const ie = ee(["1", "2"]), $ = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;", fe = (
|
|
2574
|
-
window.location.hash =
|
|
2575
|
-
}, a = ({ updateView:
|
|
2575
|
+
const ie = ee(["1", "2"]), $ = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;", fe = (r) => e.currentViewObj && r && r.id === e.currentViewObj.id ? { style: { backgroundColor: "#ddf1ff" } } : { style: {} }, g = (r) => {
|
|
2576
|
+
window.location.hash = r.uid, Y(r.uid), _e([r]);
|
|
2577
|
+
}, a = ({ updateView: r, record: b }) => {
|
|
2576
2578
|
var y, d, s, w;
|
|
2577
|
-
if (b.name !=
|
|
2579
|
+
if (b.name != r.name && S.value.includes(r.name)) {
|
|
2578
2580
|
te.error(n("视图名称已存在"));
|
|
2579
2581
|
return;
|
|
2580
2582
|
}
|
|
2581
2583
|
if (b != null && b.id) {
|
|
2582
|
-
const p = U.value.filter((
|
|
2583
|
-
if ((y =
|
|
2584
|
-
const
|
|
2584
|
+
const p = U.value.filter((u) => (b == null ? void 0 : b.id) == u.id);
|
|
2585
|
+
if ((y = r.is_submit) != null && y[0]) {
|
|
2586
|
+
const u = {
|
|
2585
2587
|
...p[0].data,
|
|
2586
2588
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
2587
2589
|
filter_map: e.currentViewObj.filter_map,
|
|
@@ -2595,15 +2597,15 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2595
2597
|
group_record: e.currentViewObj.group_record,
|
|
2596
2598
|
default_search_condition_config_list: e.currentViewObj.default_search_condition_config_list
|
|
2597
2599
|
};
|
|
2598
|
-
delete
|
|
2600
|
+
delete u.is_system, Pe({
|
|
2599
2601
|
org_id: f.id,
|
|
2600
2602
|
view_settings_id: b == null ? void 0 : b.id,
|
|
2601
|
-
is_system: (d =
|
|
2602
|
-
name:
|
|
2603
|
-
data: JSON.stringify(
|
|
2603
|
+
is_system: (d = r.is_system) == null ? void 0 : d[0],
|
|
2604
|
+
name: r.name,
|
|
2605
|
+
data: JSON.stringify(u)
|
|
2604
2606
|
}).then((c) => {
|
|
2605
|
-
var
|
|
2606
|
-
(
|
|
2607
|
+
var V;
|
|
2608
|
+
(V = r.is_default) != null && V[0] ? Le({
|
|
2607
2609
|
org_id: f.id,
|
|
2608
2610
|
view_settings_id: b == null ? void 0 : b.id
|
|
2609
2611
|
}).then(() => {
|
|
@@ -2630,11 +2632,11 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2630
2632
|
Pe({
|
|
2631
2633
|
org_id: f.id,
|
|
2632
2634
|
view_settings_id: b == null ? void 0 : b.id,
|
|
2633
|
-
is_system: (s =
|
|
2634
|
-
name:
|
|
2635
|
-
}).then((
|
|
2635
|
+
is_system: (s = r.is_system) == null ? void 0 : s[0],
|
|
2636
|
+
name: r.name
|
|
2637
|
+
}).then((u) => {
|
|
2636
2638
|
var c;
|
|
2637
|
-
(c =
|
|
2639
|
+
(c = r.is_default) != null && c[0] ? Le({
|
|
2638
2640
|
org_id: f.id,
|
|
2639
2641
|
view_settings_id: b == null ? void 0 : b.id
|
|
2640
2642
|
}).then(() => {
|
|
@@ -2642,24 +2644,24 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2642
2644
|
org_id: f.id,
|
|
2643
2645
|
view_settings_id: b == null ? void 0 : b.id
|
|
2644
2646
|
}).then(() => {
|
|
2645
|
-
var
|
|
2646
|
-
te.success(n("保存成功")),
|
|
2647
|
-
A.id ==
|
|
2647
|
+
var V;
|
|
2648
|
+
te.success(n("保存成功")), u.id == ((V = e.currentViewObj) == null ? void 0 : V.id) ? l("change", v, { ...u, ...u.data }, !1, !0) : U.value.forEach((A) => {
|
|
2649
|
+
A.id == u.id && Object.assign(A, { ...u, ...u.data });
|
|
2648
2650
|
}), I();
|
|
2649
2651
|
});
|
|
2650
2652
|
}) : Se({
|
|
2651
2653
|
org_id: f.id,
|
|
2652
2654
|
view_settings_id: b == null ? void 0 : b.id
|
|
2653
2655
|
}).then(() => {
|
|
2654
|
-
var
|
|
2655
|
-
te.success(n("保存成功")),
|
|
2656
|
-
A.id ==
|
|
2656
|
+
var V;
|
|
2657
|
+
te.success(n("保存成功")), u.id == ((V = e.currentViewObj) == null ? void 0 : V.id) ? l("change", v, { ...u, ...u.data }, !1, !0) : U.value.forEach((A) => {
|
|
2658
|
+
A.id == u.id && Object.assign(A, { ...u, ...u.data });
|
|
2657
2659
|
}), I();
|
|
2658
2660
|
});
|
|
2659
2661
|
});
|
|
2660
2662
|
} else {
|
|
2661
2663
|
let p = {};
|
|
2662
|
-
(w =
|
|
2664
|
+
(w = r.is_submit) != null && w[0] ? (p = {
|
|
2663
2665
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
2664
2666
|
filter_map: e.currentViewObj.filter_map,
|
|
2665
2667
|
sort_fields: e.currentViewObj.sort_fields,
|
|
@@ -2684,21 +2686,21 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2684
2686
|
group_record: {}
|
|
2685
2687
|
}, Fa({
|
|
2686
2688
|
org_id: f.id,
|
|
2687
|
-
user_id:
|
|
2688
|
-
name:
|
|
2689
|
+
user_id: r.view_type == "personal" ? R : null,
|
|
2690
|
+
name: r.name,
|
|
2689
2691
|
view_project__flag: H.VITE_APP_VIEW_PROJECT_FLAG,
|
|
2690
2692
|
view_menu__flag: e.menu_flag,
|
|
2691
2693
|
view_menu__name: e.menu_name,
|
|
2692
2694
|
is_system: !1,
|
|
2693
2695
|
data: JSON.stringify(p)
|
|
2694
|
-
}).then((
|
|
2695
|
-
l("change", v, { ...
|
|
2696
|
+
}).then((u) => {
|
|
2697
|
+
l("change", v, { ...u, ...u.data }, !0, !0), u.id && (U.value = U.value.concat([
|
|
2696
2698
|
{
|
|
2697
|
-
...
|
|
2699
|
+
...u
|
|
2698
2700
|
}
|
|
2699
|
-
]),
|
|
2701
|
+
]), T([
|
|
2700
2702
|
{
|
|
2701
|
-
id:
|
|
2703
|
+
id: u.id,
|
|
2702
2704
|
search_model: p.search_model,
|
|
2703
2705
|
filter_map: p.filter_map,
|
|
2704
2706
|
sort_fields: p.sort_fields,
|
|
@@ -2706,12 +2708,12 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2706
2708
|
conditions: p.conditions,
|
|
2707
2709
|
isShowGeneralFilter: p.isShowGeneralFilter
|
|
2708
2710
|
}
|
|
2709
|
-
]), window.location.hash =
|
|
2711
|
+
]), window.location.hash = u.uid, Y(u.uid));
|
|
2710
2712
|
});
|
|
2711
2713
|
}
|
|
2712
|
-
}, X = (
|
|
2714
|
+
}, X = (r, b) => {
|
|
2713
2715
|
let y = [!1];
|
|
2714
|
-
e.currentViewObj.id ==
|
|
2716
|
+
e.currentViewObj.id == r.id && (y = [!0]);
|
|
2715
2717
|
const d = se({
|
|
2716
2718
|
open: !0,
|
|
2717
2719
|
loading: !1,
|
|
@@ -2754,10 +2756,10 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2754
2756
|
]
|
|
2755
2757
|
}),
|
|
2756
2758
|
model: se({
|
|
2757
|
-
name:
|
|
2759
|
+
name: r.name,
|
|
2758
2760
|
is_submit: y,
|
|
2759
|
-
is_default: [
|
|
2760
|
-
is_system: [
|
|
2761
|
+
is_default: [r != null && r.is_default ? r == null ? void 0 : r.is_default : !1],
|
|
2762
|
+
is_system: [r != null && r.is_system ? r == null ? void 0 : r.is_system : !1]
|
|
2761
2763
|
})
|
|
2762
2764
|
},
|
|
2763
2765
|
options: {
|
|
@@ -2781,7 +2783,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2781
2783
|
]
|
|
2782
2784
|
},
|
|
2783
2785
|
ok: (s) => new Promise(function(w) {
|
|
2784
|
-
a({ updateView: s, record:
|
|
2786
|
+
a({ updateView: s, record: r }), w(null);
|
|
2785
2787
|
})
|
|
2786
2788
|
});
|
|
2787
2789
|
b == "public" && (d.form.fields.push({
|
|
@@ -2805,7 +2807,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2805
2807
|
defaultValue: [!1],
|
|
2806
2808
|
placeholder: ""
|
|
2807
2809
|
})), Me(d);
|
|
2808
|
-
}, m = (
|
|
2810
|
+
}, m = (r) => {
|
|
2809
2811
|
const b = se({
|
|
2810
2812
|
open: !0,
|
|
2811
2813
|
loading: !1,
|
|
@@ -2860,7 +2862,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2860
2862
|
}),
|
|
2861
2863
|
model: se({
|
|
2862
2864
|
name: null,
|
|
2863
|
-
view_type:
|
|
2865
|
+
view_type: r,
|
|
2864
2866
|
is_submit: [!0]
|
|
2865
2867
|
})
|
|
2866
2868
|
},
|
|
@@ -2885,13 +2887,13 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2885
2887
|
})
|
|
2886
2888
|
});
|
|
2887
2889
|
Me(b);
|
|
2888
|
-
}, le = (
|
|
2890
|
+
}, le = (r) => {
|
|
2889
2891
|
const b = se({
|
|
2890
2892
|
open: !0,
|
|
2891
2893
|
component: "ViewEditModal",
|
|
2892
2894
|
compObj: {
|
|
2893
|
-
title:
|
|
2894
|
-
data:
|
|
2895
|
+
title: r == "personal" ? n("个人视图管理") : n("公共视图管理"),
|
|
2896
|
+
data: r == "personal" ? t.value : O.value
|
|
2895
2897
|
},
|
|
2896
2898
|
ok: (y) => {
|
|
2897
2899
|
y && y.length > 0 ? Aa({
|
|
@@ -2906,23 +2908,23 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2906
2908
|
}
|
|
2907
2909
|
});
|
|
2908
2910
|
Me(b);
|
|
2909
|
-
}, re = (
|
|
2911
|
+
}, re = (r) => {
|
|
2910
2912
|
let b = "";
|
|
2911
2913
|
const y = window.location.href.indexOf("#");
|
|
2912
|
-
y !== -1 ? b = window.location.href.substring(0, y) + "#" +
|
|
2913
|
-
}, ne = (
|
|
2914
|
+
y !== -1 ? b = window.location.href.substring(0, y) + "#" + r.uid : b = window.location.href + "#" + r.uid, Ml({ val: b, message: n("复制成功") });
|
|
2915
|
+
}, ne = (r) => {
|
|
2914
2916
|
qe.confirm({
|
|
2915
|
-
title: () => `${n("确认删除此")}【${
|
|
2917
|
+
title: () => `${n("确认删除此")}【${r.name}】${r != null && r.user_id ? n("个人视图") : n("公共视图")}?`,
|
|
2916
2918
|
content: n("视图删除后不可恢复,视图下工作项不受影响,是否确认删除?"),
|
|
2917
|
-
icon: () =>
|
|
2919
|
+
icon: () => B(De),
|
|
2918
2920
|
okText: n("确定"),
|
|
2919
2921
|
onOk() {
|
|
2920
2922
|
return new Promise((b) => {
|
|
2921
2923
|
Ua({
|
|
2922
2924
|
org_id: f.id,
|
|
2923
|
-
view_settings_id:
|
|
2925
|
+
view_settings_id: r == null ? void 0 : r.id
|
|
2924
2926
|
}).then(() => {
|
|
2925
|
-
U.value = U.value.filter((y) => y.id !=
|
|
2927
|
+
U.value = U.value.filter((y) => y.id != r.id), Y(null), te.success(n("删除成功"));
|
|
2926
2928
|
}).finally(() => {
|
|
2927
2929
|
b(null);
|
|
2928
2930
|
});
|
|
@@ -2942,9 +2944,9 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2942
2944
|
const s = L.value_map[d.key];
|
|
2943
2945
|
s != null && (y[d.field_name] = s);
|
|
2944
2946
|
}), y;
|
|
2945
|
-
}, _e = (
|
|
2947
|
+
}, _e = (r) => {
|
|
2946
2948
|
const b = [];
|
|
2947
|
-
|
|
2949
|
+
r.forEach((y) => {
|
|
2948
2950
|
let d = null, s = null, w = null, p = null;
|
|
2949
2951
|
y.data.isShowGeneralFilter ? (d = {}, s = {}, w = y.data.group_condition, p = y.data.conditions) : (d = y.data.search_model, s = y.data.filter_map, w = {}, p = []), b.push({
|
|
2950
2952
|
id: y.id,
|
|
@@ -2955,7 +2957,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2955
2957
|
conditions: p,
|
|
2956
2958
|
isShowGeneralFilter: y.data.isShowGeneralFilter
|
|
2957
2959
|
});
|
|
2958
|
-
}),
|
|
2960
|
+
}), T(b);
|
|
2959
2961
|
};
|
|
2960
2962
|
ae(
|
|
2961
2963
|
() => e.current_num,
|
|
@@ -2964,10 +2966,10 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2964
2966
|
qe.confirm({
|
|
2965
2967
|
title: () => n("确定覆盖视图吗?"),
|
|
2966
2968
|
content: n("当前视图原有的数据会被覆盖"),
|
|
2967
|
-
icon: () =>
|
|
2969
|
+
icon: () => B(De),
|
|
2968
2970
|
okText: n("确定"),
|
|
2969
2971
|
onOk() {
|
|
2970
|
-
return new Promise((
|
|
2972
|
+
return new Promise((r) => {
|
|
2971
2973
|
a({
|
|
2972
2974
|
updateView: {
|
|
2973
2975
|
is_submit: [!0],
|
|
@@ -2975,7 +2977,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2975
2977
|
name: e.currentViewObj.name
|
|
2976
2978
|
},
|
|
2977
2979
|
record: e.currentViewObj
|
|
2978
|
-
}),
|
|
2980
|
+
}), r(null);
|
|
2979
2981
|
}).catch(() => console.log("Oops errors!"));
|
|
2980
2982
|
},
|
|
2981
2983
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -2987,7 +2989,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
2987
2989
|
() => e.create_num,
|
|
2988
2990
|
// 监听另存为
|
|
2989
2991
|
() => {
|
|
2990
|
-
const
|
|
2992
|
+
const r = se({
|
|
2991
2993
|
open: !0,
|
|
2992
2994
|
loading: !1,
|
|
2993
2995
|
title: n("新建视图"),
|
|
@@ -3054,7 +3056,7 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
3054
3056
|
a({ updateView: b, record: b }), y(null);
|
|
3055
3057
|
})
|
|
3056
3058
|
});
|
|
3057
|
-
Me(
|
|
3059
|
+
Me(r);
|
|
3058
3060
|
}
|
|
3059
3061
|
), ae(
|
|
3060
3062
|
() => e.count_num,
|
|
@@ -3063,13 +3065,13 @@ const Ye = "customviewdatauser", Ia = "view_system_edit", Va = [
|
|
|
3063
3065
|
_e(U.value);
|
|
3064
3066
|
}
|
|
3065
3067
|
);
|
|
3066
|
-
const ve = (
|
|
3068
|
+
const ve = (r) => {
|
|
3067
3069
|
const b = Oe(e.currentViewObj.app_flag, e.modalType, null, n, {
|
|
3068
3070
|
use_store: !0,
|
|
3069
3071
|
to_i18n: !0,
|
|
3070
3072
|
enable_btn: !1
|
|
3071
3073
|
});
|
|
3072
|
-
b.required_condition && b.required_condition.find((d) => d.key ===
|
|
3074
|
+
b.required_condition && b.required_condition.find((d) => d.key === r) && I();
|
|
3073
3075
|
};
|
|
3074
3076
|
return Fe(() => {
|
|
3075
3077
|
Ne().on("change", ve);
|
|
@@ -3100,19 +3102,19 @@ const Ta = { style: { "font-weight": "700" } }, ja = ["onClick"], qa = { style:
|
|
|
3100
3102
|
function Ja(e, l, H, L, P, q) {
|
|
3101
3103
|
const f = C("caret-right-outlined"), R = C("setting-outlined"), j = C("a-tooltip"), U = C("plus-outlined"), n = C("a-menu-item"), k = C("a-menu"), v = C("a-dropdown"), t = C("a-table"), O = C("a-collapse-panel"), S = C("a-collapse"), E = C("a-card");
|
|
3102
3104
|
return o(), _(E, {
|
|
3103
|
-
"body-style": { padding: 0, height: e.height +
|
|
3105
|
+
"body-style": { padding: 0, height: e.height + 87 + "px", overflowY: "auto" }
|
|
3104
3106
|
}, {
|
|
3105
3107
|
default: h(() => [
|
|
3106
|
-
|
|
3108
|
+
B(S, {
|
|
3107
3109
|
activeKey: e.viewKey,
|
|
3108
|
-
"onUpdate:activeKey": l[6] || (l[6] = (
|
|
3110
|
+
"onUpdate:activeKey": l[6] || (l[6] = (T) => e.viewKey = T),
|
|
3109
3111
|
bordered: !1,
|
|
3110
3112
|
class: "collapses",
|
|
3111
3113
|
style: { background: "rgb(255, 255, 255)" }
|
|
3112
3114
|
}, {
|
|
3113
|
-
expandIcon: h(({ isActive:
|
|
3114
|
-
|
|
3115
|
-
rotate:
|
|
3115
|
+
expandIcon: h(({ isActive: T }) => [
|
|
3116
|
+
B(f, {
|
|
3117
|
+
rotate: T ? 90 : 0
|
|
3116
3118
|
}, null, 8, ["rotate"])
|
|
3117
3119
|
]),
|
|
3118
3120
|
default: h(() => [
|
|
@@ -3124,25 +3126,25 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3124
3126
|
G("span", Ta, K(e.$t("个人视图")), 1)
|
|
3125
3127
|
]),
|
|
3126
3128
|
extra: h(() => [
|
|
3127
|
-
|
|
3129
|
+
B(j, null, {
|
|
3128
3130
|
title: h(() => [
|
|
3129
3131
|
x(K(e.$t("个人视图管理")), 1)
|
|
3130
3132
|
]),
|
|
3131
3133
|
default: h(() => [
|
|
3132
|
-
|
|
3134
|
+
B(R, {
|
|
3133
3135
|
style: { "margin-right": "10px" },
|
|
3134
|
-
onClick: l[0] || (l[0] = ce((
|
|
3136
|
+
onClick: l[0] || (l[0] = ce((T) => e.editView("personal"), ["stop"]))
|
|
3135
3137
|
})
|
|
3136
3138
|
]),
|
|
3137
3139
|
_: 1
|
|
3138
3140
|
}),
|
|
3139
|
-
|
|
3141
|
+
B(j, null, {
|
|
3140
3142
|
title: h(() => [
|
|
3141
3143
|
x(K(e.$t("新建个人视图")), 1)
|
|
3142
3144
|
]),
|
|
3143
3145
|
default: h(() => [
|
|
3144
|
-
|
|
3145
|
-
onClick: l[1] || (l[1] = ce((
|
|
3146
|
+
B(U, {
|
|
3147
|
+
onClick: l[1] || (l[1] = ce((T) => e.addView("personal"), ["stop"]))
|
|
3146
3148
|
})
|
|
3147
3149
|
]),
|
|
3148
3150
|
_: 1
|
|
@@ -3158,14 +3160,14 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3158
3160
|
showHeader: !1,
|
|
3159
3161
|
size: "small"
|
|
3160
3162
|
}, {
|
|
3161
|
-
bodyCell: h(({ column:
|
|
3162
|
-
|
|
3163
|
+
bodyCell: h(({ column: T, record: I }) => [
|
|
3164
|
+
T.dataIndex === "name" ? (o(), F("div", {
|
|
3163
3165
|
key: 0,
|
|
3164
3166
|
class: "table",
|
|
3165
3167
|
style: { width: "100%", cursor: "pointer" },
|
|
3166
3168
|
onClick: (Y) => e.changeView(I)
|
|
3167
3169
|
}, [
|
|
3168
|
-
|
|
3170
|
+
B(j, {
|
|
3169
3171
|
title: I.name,
|
|
3170
3172
|
color: e.appStore.primaryColor,
|
|
3171
3173
|
placement: "left",
|
|
@@ -3184,9 +3186,9 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3184
3186
|
e.currentViewObj.id === I.id ? { color: "#1890ff", fontWeight: "bold" } : {}
|
|
3185
3187
|
])
|
|
3186
3188
|
}, K(I.num), 5),
|
|
3187
|
-
|
|
3189
|
+
B(v, { class: "dropdown" }, {
|
|
3188
3190
|
overlay: h(() => [
|
|
3189
|
-
|
|
3191
|
+
B(k, null, {
|
|
3190
3192
|
default: h(() => [
|
|
3191
3193
|
!I.is_system || e.is_auth ? (o(), _(n, { key: 0 }, {
|
|
3192
3194
|
default: h(() => [
|
|
@@ -3197,7 +3199,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3197
3199
|
]),
|
|
3198
3200
|
_: 2
|
|
3199
3201
|
}, 1024)) : M("", !0),
|
|
3200
|
-
|
|
3202
|
+
B(n, null, {
|
|
3201
3203
|
default: h(() => [
|
|
3202
3204
|
G("a", {
|
|
3203
3205
|
href: "javascript:;",
|
|
@@ -3243,25 +3245,25 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3243
3245
|
G("span", za, K(e.$t("公共视图")), 1)
|
|
3244
3246
|
]),
|
|
3245
3247
|
extra: h(() => [
|
|
3246
|
-
|
|
3248
|
+
B(j, null, {
|
|
3247
3249
|
title: h(() => [
|
|
3248
3250
|
x(K(e.$t("公共视图管理")), 1)
|
|
3249
3251
|
]),
|
|
3250
3252
|
default: h(() => [
|
|
3251
|
-
|
|
3253
|
+
B(R, {
|
|
3252
3254
|
style: { "margin-right": "10px" },
|
|
3253
|
-
onClick: l[3] || (l[3] = ce((
|
|
3255
|
+
onClick: l[3] || (l[3] = ce((T) => e.editView("public"), ["stop"]))
|
|
3254
3256
|
})
|
|
3255
3257
|
]),
|
|
3256
3258
|
_: 1
|
|
3257
3259
|
}),
|
|
3258
|
-
|
|
3260
|
+
B(j, null, {
|
|
3259
3261
|
title: h(() => [
|
|
3260
3262
|
x(K(e.$t("新建公共视图")), 1)
|
|
3261
3263
|
]),
|
|
3262
3264
|
default: h(() => [
|
|
3263
|
-
|
|
3264
|
-
onClick: l[4] || (l[4] = ce((
|
|
3265
|
+
B(U, {
|
|
3266
|
+
onClick: l[4] || (l[4] = ce((T) => e.addView("public"), ["stop"]))
|
|
3265
3267
|
})
|
|
3266
3268
|
]),
|
|
3267
3269
|
_: 1
|
|
@@ -3277,14 +3279,14 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3277
3279
|
showHeader: !1,
|
|
3278
3280
|
size: "small"
|
|
3279
3281
|
}, {
|
|
3280
|
-
bodyCell: h(({ column:
|
|
3281
|
-
|
|
3282
|
+
bodyCell: h(({ column: T, record: I }) => [
|
|
3283
|
+
T.dataIndex === "name" ? (o(), F("div", {
|
|
3282
3284
|
key: 0,
|
|
3283
3285
|
class: "table",
|
|
3284
3286
|
style: { width: "100%", cursor: "pointer" },
|
|
3285
3287
|
onClick: (Y) => e.changeView(I)
|
|
3286
3288
|
}, [
|
|
3287
|
-
|
|
3289
|
+
B(j, {
|
|
3288
3290
|
title: I.name,
|
|
3289
3291
|
color: e.appStore.primaryColor,
|
|
3290
3292
|
placement: "left",
|
|
@@ -3303,9 +3305,9 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3303
3305
|
e.currentViewObj.id === I.id ? { color: "#1890ff", fontWeight: "bold" } : {}
|
|
3304
3306
|
])
|
|
3305
3307
|
}, K(I.num), 5),
|
|
3306
|
-
|
|
3308
|
+
B(v, { class: "dropdown" }, {
|
|
3307
3309
|
overlay: h(() => [
|
|
3308
|
-
|
|
3310
|
+
B(k, null, {
|
|
3309
3311
|
default: h(() => [
|
|
3310
3312
|
!I.is_system || e.is_auth ? (o(), _(n, { key: 0 }, {
|
|
3311
3313
|
default: h(() => [
|
|
@@ -3316,7 +3318,7 @@ function Ja(e, l, H, L, P, q) {
|
|
|
3316
3318
|
]),
|
|
3317
3319
|
_: 2
|
|
3318
3320
|
}, 1024)) : M("", !0),
|
|
3319
|
-
|
|
3321
|
+
B(n, null, {
|
|
3320
3322
|
default: h(() => [
|
|
3321
3323
|
G("a", {
|
|
3322
3324
|
href: "javascript:;",
|
|
@@ -3388,7 +3390,7 @@ function Xa(e, l, H, L, P, q) {
|
|
|
3388
3390
|
"body-style": { padding: 0, height: e.selectObj.height + 96 + "px", overflowY: "auto" }
|
|
3389
3391
|
}, {
|
|
3390
3392
|
default: h(() => [
|
|
3391
|
-
|
|
3393
|
+
B(f, {
|
|
3392
3394
|
"select-obj": e.selectObj,
|
|
3393
3395
|
onChange: e.change
|
|
3394
3396
|
}, null, 8, ["select-obj", "onChange"])
|