@kengic/vue 0.5.21 → 0.5.22
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/index.css +1 -1
- package/dist/kengic-vue.js +926 -905
- package/dist/src/components/KgVar/index.vm.d.ts +9 -0
- package/package.json +83 -83
package/dist/kengic-vue.js
CHANGED
@@ -2534,8 +2534,8 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2534
2534
|
v || (v = p == "constructor");
|
2535
2535
|
}
|
2536
2536
|
if (_ && !v) {
|
2537
|
-
var E = e.constructor,
|
2538
|
-
E !=
|
2537
|
+
var E = e.constructor, w = t.constructor;
|
2538
|
+
E != w && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof w == "function" && w instanceof w) && (_ = !1);
|
2539
2539
|
}
|
2540
2540
|
return o.delete(e), o.delete(t), _;
|
2541
2541
|
}
|
@@ -4581,207 +4581,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4581
4581
|
(function(r, n) {
|
4582
4582
|
e.exports = n();
|
4583
4583
|
})(commonjsGlobal, function() {
|
4584
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
4585
|
-
var
|
4586
|
-
return "[" +
|
4587
|
-
} }, T = function(
|
4588
|
-
var
|
4589
|
-
return !
|
4590
|
-
}, E = { s: T, z: function(
|
4591
|
-
var
|
4592
|
-
return (
|
4593
|
-
}, m: function
|
4594
|
-
if (
|
4595
|
-
return
|
4596
|
-
var
|
4597
|
-
return +(-(
|
4598
|
-
}, a: function(
|
4599
|
-
return
|
4600
|
-
}, p: function(
|
4601
|
-
return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[
|
4602
|
-
}, u: function(
|
4603
|
-
return
|
4604
|
-
} },
|
4605
|
-
k[
|
4606
|
-
var
|
4607
|
-
return
|
4608
|
-
},
|
4584
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
|
4585
|
+
var I = ["th", "st", "nd", "rd"], O = M % 100;
|
4586
|
+
return "[" + M + (I[(O - 20) % 10] || I[O] || I[0]) + "]";
|
4587
|
+
} }, T = function(M, I, O) {
|
4588
|
+
var P = String(M);
|
4589
|
+
return !P || P.length >= I ? M : "" + Array(I + 1 - P.length).join(O) + M;
|
4590
|
+
}, E = { s: T, z: function(M) {
|
4591
|
+
var I = -M.utcOffset(), O = Math.abs(I), P = Math.floor(O / 60), L = O % 60;
|
4592
|
+
return (I <= 0 ? "+" : "-") + T(P, 2, "0") + ":" + T(L, 2, "0");
|
4593
|
+
}, m: function M(I, O) {
|
4594
|
+
if (I.date() < O.date())
|
4595
|
+
return -M(O, I);
|
4596
|
+
var P = 12 * (O.year() - I.year()) + (O.month() - I.month()), L = I.clone().add(P, g), G = O - L < 0, N = I.clone().add(P + (G ? -1 : 1), g);
|
4597
|
+
return +(-(P + (O - L) / (G ? L - N : N - L)) || 0);
|
4598
|
+
}, a: function(M) {
|
4599
|
+
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
4600
|
+
}, p: function(M) {
|
4601
|
+
return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
4602
|
+
}, u: function(M) {
|
4603
|
+
return M === void 0;
|
4604
|
+
} }, w = "en", k = {};
|
4605
|
+
k[w] = C;
|
4606
|
+
var F = function(M) {
|
4607
|
+
return M instanceof U;
|
4608
|
+
}, R = function M(I, O, P) {
|
4609
4609
|
var L;
|
4610
|
-
if (!
|
4611
|
-
return
|
4612
|
-
if (typeof
|
4613
|
-
var G =
|
4614
|
-
k[G] && (L = G),
|
4615
|
-
var
|
4616
|
-
if (!L &&
|
4617
|
-
return
|
4610
|
+
if (!I)
|
4611
|
+
return w;
|
4612
|
+
if (typeof I == "string") {
|
4613
|
+
var G = I.toLowerCase();
|
4614
|
+
k[G] && (L = G), O && (k[G] = O, L = G);
|
4615
|
+
var N = I.split("-");
|
4616
|
+
if (!L && N.length > 1)
|
4617
|
+
return M(N[0]);
|
4618
4618
|
} else {
|
4619
|
-
var
|
4620
|
-
k[
|
4621
|
-
}
|
4622
|
-
return !
|
4623
|
-
},
|
4624
|
-
if (
|
4625
|
-
return
|
4626
|
-
var
|
4627
|
-
return
|
4628
|
-
},
|
4629
|
-
|
4630
|
-
return
|
4619
|
+
var B = I.name;
|
4620
|
+
k[B] = I, L = B;
|
4621
|
+
}
|
4622
|
+
return !P && L && (w = L), L || !P && w;
|
4623
|
+
}, $ = function(M, I) {
|
4624
|
+
if (F(M))
|
4625
|
+
return M.clone();
|
4626
|
+
var O = typeof I == "object" ? I : {};
|
4627
|
+
return O.date = M, O.args = arguments, new U(O);
|
4628
|
+
}, D = E;
|
4629
|
+
D.l = R, D.i = F, D.w = function(M, I) {
|
4630
|
+
return $(M, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
|
4631
4631
|
};
|
4632
|
-
var
|
4633
|
-
function
|
4634
|
-
this.$L =
|
4635
|
-
}
|
4636
|
-
var
|
4637
|
-
return
|
4638
|
-
this.$d = function(
|
4639
|
-
var L =
|
4632
|
+
var U = function() {
|
4633
|
+
function M(O) {
|
4634
|
+
this.$L = R(O.locale, null, !0), this.parse(O);
|
4635
|
+
}
|
4636
|
+
var I = M.prototype;
|
4637
|
+
return I.parse = function(O) {
|
4638
|
+
this.$d = function(P) {
|
4639
|
+
var L = P.date, G = P.utc;
|
4640
4640
|
if (L === null)
|
4641
4641
|
return new Date(NaN);
|
4642
|
-
if (
|
4642
|
+
if (D.u(L))
|
4643
4643
|
return new Date();
|
4644
4644
|
if (L instanceof Date)
|
4645
4645
|
return new Date(L);
|
4646
4646
|
if (typeof L == "string" && !/Z$/i.test(L)) {
|
4647
|
-
var
|
4648
|
-
if (
|
4649
|
-
var
|
4650
|
-
return G ? new Date(Date.UTC(
|
4647
|
+
var N = L.match(v);
|
4648
|
+
if (N) {
|
4649
|
+
var B = N[2] - 1 || 0, z = (N[7] || "0").substring(0, 3);
|
4650
|
+
return G ? new Date(Date.UTC(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z)) : new Date(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z);
|
4651
4651
|
}
|
4652
4652
|
}
|
4653
4653
|
return new Date(L);
|
4654
|
-
}(
|
4655
|
-
},
|
4656
|
-
var
|
4657
|
-
this.$y =
|
4658
|
-
},
|
4659
|
-
return
|
4660
|
-
},
|
4654
|
+
}(O), this.$x = O.x || {}, this.init();
|
4655
|
+
}, I.init = function() {
|
4656
|
+
var O = this.$d;
|
4657
|
+
this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
|
4658
|
+
}, I.$utils = function() {
|
4659
|
+
return D;
|
4660
|
+
}, I.isValid = function() {
|
4661
4661
|
return this.$d.toString() !== _;
|
4662
|
-
},
|
4663
|
-
var L = O
|
4664
|
-
return this.startOf(
|
4665
|
-
},
|
4666
|
-
return O
|
4667
|
-
},
|
4668
|
-
return this.endOf(
|
4669
|
-
},
|
4670
|
-
return
|
4671
|
-
},
|
4662
|
+
}, I.isSame = function(O, P) {
|
4663
|
+
var L = $(O);
|
4664
|
+
return this.startOf(P) <= L && L <= this.endOf(P);
|
4665
|
+
}, I.isAfter = function(O, P) {
|
4666
|
+
return $(O) < this.startOf(P);
|
4667
|
+
}, I.isBefore = function(O, P) {
|
4668
|
+
return this.endOf(P) < $(O);
|
4669
|
+
}, I.$g = function(O, P, L) {
|
4670
|
+
return D.u(O) ? this[P] : this.set(L, O);
|
4671
|
+
}, I.unix = function() {
|
4672
4672
|
return Math.floor(this.valueOf() / 1e3);
|
4673
|
-
},
|
4673
|
+
}, I.valueOf = function() {
|
4674
4674
|
return this.$d.getTime();
|
4675
|
-
},
|
4676
|
-
var L = this, G = !!
|
4677
|
-
var
|
4678
|
-
return G ?
|
4679
|
-
},
|
4680
|
-
return
|
4681
|
-
}, Y = this.$W, X = this.$M, re = this.$D,
|
4682
|
-
switch (
|
4675
|
+
}, I.startOf = function(O, P) {
|
4676
|
+
var L = this, G = !!D.u(P) || P, N = D.p(O), B = function(ae, V) {
|
4677
|
+
var K = D.w(L.$u ? Date.UTC(L.$y, V, ae) : new Date(L.$y, V, ae), L);
|
4678
|
+
return G ? K : K.endOf(u);
|
4679
|
+
}, z = function(ae, V) {
|
4680
|
+
return D.w(L.toDate()[ae].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), L);
|
4681
|
+
}, Y = this.$W, X = this.$M, re = this.$D, ee = "set" + (this.$u ? "UTC" : "");
|
4682
|
+
switch (N) {
|
4683
4683
|
case m:
|
4684
|
-
return G ?
|
4684
|
+
return G ? B(1, 0) : B(31, 11);
|
4685
4685
|
case g:
|
4686
|
-
return G ?
|
4686
|
+
return G ? B(1, X) : B(0, X + 1);
|
4687
4687
|
case c:
|
4688
|
-
var
|
4689
|
-
return
|
4688
|
+
var ue = this.$locale().weekStart || 0, ce = (Y < ue ? Y + 7 : Y) - ue;
|
4689
|
+
return B(G ? re - ce : re + (6 - ce), X);
|
4690
4690
|
case u:
|
4691
4691
|
case b:
|
4692
|
-
return
|
4692
|
+
return z(ee + "Hours", 0);
|
4693
4693
|
case l:
|
4694
|
-
return
|
4694
|
+
return z(ee + "Minutes", 1);
|
4695
4695
|
case i:
|
4696
|
-
return
|
4696
|
+
return z(ee + "Seconds", 2);
|
4697
4697
|
case s:
|
4698
|
-
return
|
4698
|
+
return z(ee + "Milliseconds", 3);
|
4699
4699
|
default:
|
4700
4700
|
return this.clone();
|
4701
4701
|
}
|
4702
|
-
},
|
4703
|
-
return this.startOf(
|
4704
|
-
},
|
4705
|
-
var L, G =
|
4702
|
+
}, I.endOf = function(O) {
|
4703
|
+
return this.startOf(O, !1);
|
4704
|
+
}, I.$set = function(O, P) {
|
4705
|
+
var L, G = D.p(O), N = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = N + "Date", L[b] = N + "Date", L[g] = N + "Month", L[m] = N + "FullYear", L[l] = N + "Hours", L[i] = N + "Minutes", L[s] = N + "Seconds", L[o] = N + "Milliseconds", L)[G], z = G === u ? this.$D + (P - this.$W) : P;
|
4706
4706
|
if (G === g || G === m) {
|
4707
4707
|
var Y = this.clone().set(b, 1);
|
4708
|
-
Y.$d[
|
4708
|
+
Y.$d[B](z), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
|
4709
4709
|
} else
|
4710
|
-
|
4710
|
+
B && this.$d[B](z);
|
4711
4711
|
return this.init(), this;
|
4712
|
-
},
|
4713
|
-
return this.clone().$set(
|
4714
|
-
},
|
4715
|
-
return this[
|
4716
|
-
},
|
4712
|
+
}, I.set = function(O, P) {
|
4713
|
+
return this.clone().$set(O, P);
|
4714
|
+
}, I.get = function(O) {
|
4715
|
+
return this[D.p(O)]();
|
4716
|
+
}, I.add = function(O, P) {
|
4717
4717
|
var L, G = this;
|
4718
|
-
|
4719
|
-
var
|
4720
|
-
var re =
|
4721
|
-
return
|
4718
|
+
O = Number(O);
|
4719
|
+
var N = D.p(P), B = function(X) {
|
4720
|
+
var re = $(G);
|
4721
|
+
return D.w(re.date(re.date() + Math.round(X * O)), G);
|
4722
4722
|
};
|
4723
|
-
if (
|
4724
|
-
return this.set(g, this.$M +
|
4725
|
-
if (
|
4726
|
-
return this.set(m, this.$y +
|
4727
|
-
if (
|
4728
|
-
return
|
4729
|
-
if (
|
4730
|
-
return
|
4731
|
-
var
|
4732
|
-
return
|
4733
|
-
},
|
4734
|
-
return this.add(-1 *
|
4735
|
-
},
|
4736
|
-
var
|
4723
|
+
if (N === g)
|
4724
|
+
return this.set(g, this.$M + O);
|
4725
|
+
if (N === m)
|
4726
|
+
return this.set(m, this.$y + O);
|
4727
|
+
if (N === u)
|
4728
|
+
return B(1);
|
4729
|
+
if (N === c)
|
4730
|
+
return B(7);
|
4731
|
+
var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[N] || 1, Y = this.$d.getTime() + O * z;
|
4732
|
+
return D.w(Y, this);
|
4733
|
+
}, I.subtract = function(O, P) {
|
4734
|
+
return this.add(-1 * O, P);
|
4735
|
+
}, I.format = function(O) {
|
4736
|
+
var P = this, L = this.$locale();
|
4737
4737
|
if (!this.isValid())
|
4738
4738
|
return L.invalidDate || _;
|
4739
|
-
var G =
|
4740
|
-
return
|
4741
|
-
},
|
4742
|
-
return
|
4743
|
-
},
|
4744
|
-
var
|
4745
|
-
return
|
4746
|
-
},
|
4747
|
-
return G.replace(y, function(
|
4748
|
-
return
|
4739
|
+
var G = O || "YYYY-MM-DDTHH:mm:ssZ", N = D.z(this), B = this.$H, z = this.$m, Y = this.$M, X = L.weekdays, re = L.months, ee = function(V, K, W, q) {
|
4740
|
+
return V && (V[K] || V(P, G)) || W[K].slice(0, q);
|
4741
|
+
}, ue = function(V) {
|
4742
|
+
return D.s(B % 12 || 12, V, "0");
|
4743
|
+
}, ce = L.meridiem || function(V, K, W) {
|
4744
|
+
var q = V < 12 ? "AM" : "PM";
|
4745
|
+
return W ? q.toLowerCase() : q;
|
4746
|
+
}, ae = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: ee(L.monthsShort, Y, re, 3), MMMM: ee(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(L.weekdaysMin, this.$W, X, 2), ddd: ee(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ue(1), hh: ue(2), a: ce(B, z, !0), A: ce(B, z, !1), m: String(z), mm: D.s(z, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: N };
|
4747
|
+
return G.replace(y, function(V, K) {
|
4748
|
+
return K || ae[V] || N.replace(":", "");
|
4749
4749
|
});
|
4750
|
-
},
|
4750
|
+
}, I.utcOffset = function() {
|
4751
4751
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4752
|
-
},
|
4753
|
-
var G,
|
4754
|
-
return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y -
|
4755
|
-
},
|
4752
|
+
}, I.diff = function(O, P, L) {
|
4753
|
+
var G, N = D.p(P), B = $(O), z = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = D.m(this, B);
|
4754
|
+
return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[N] || Y, L ? X : D.a(X);
|
4755
|
+
}, I.daysInMonth = function() {
|
4756
4756
|
return this.endOf(g).$D;
|
4757
|
-
},
|
4757
|
+
}, I.$locale = function() {
|
4758
4758
|
return k[this.$L];
|
4759
|
-
},
|
4760
|
-
if (!
|
4759
|
+
}, I.locale = function(O, P) {
|
4760
|
+
if (!O)
|
4761
4761
|
return this.$L;
|
4762
|
-
var L = this.clone(), G =
|
4762
|
+
var L = this.clone(), G = R(O, P, !0);
|
4763
4763
|
return G && (L.$L = G), L;
|
4764
|
-
},
|
4765
|
-
return
|
4766
|
-
},
|
4764
|
+
}, I.clone = function() {
|
4765
|
+
return D.w(this.$d, this);
|
4766
|
+
}, I.toDate = function() {
|
4767
4767
|
return new Date(this.valueOf());
|
4768
|
-
},
|
4768
|
+
}, I.toJSON = function() {
|
4769
4769
|
return this.isValid() ? this.toISOString() : null;
|
4770
|
-
},
|
4770
|
+
}, I.toISOString = function() {
|
4771
4771
|
return this.$d.toISOString();
|
4772
|
-
},
|
4772
|
+
}, I.toString = function() {
|
4773
4773
|
return this.$d.toUTCString();
|
4774
|
-
},
|
4775
|
-
}(),
|
4776
|
-
return
|
4777
|
-
|
4778
|
-
return this.$g(
|
4774
|
+
}, M;
|
4775
|
+
}(), A = U.prototype;
|
4776
|
+
return $.prototype = A, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", b]].forEach(function(M) {
|
4777
|
+
A[M[1]] = function(I) {
|
4778
|
+
return this.$g(I, M[0], M[1]);
|
4779
4779
|
};
|
4780
|
-
}),
|
4781
|
-
return
|
4782
|
-
},
|
4783
|
-
return
|
4784
|
-
},
|
4780
|
+
}), $.extend = function(M, I) {
|
4781
|
+
return M.$i || (M(I, U, $), M.$i = !0), $;
|
4782
|
+
}, $.locale = R, $.isDayjs = F, $.unix = function(M) {
|
4783
|
+
return $(1e3 * M);
|
4784
|
+
}, $.en = k[w], $.Ls = k, $.p = {}, $;
|
4785
4785
|
});
|
4786
4786
|
})(dayjs_min);
|
4787
4787
|
const dayjs = dayjs_min.exports;
|
@@ -4826,31 +4826,31 @@ function filesize(e, {
|
|
4826
4826
|
roundingMethod: _ = ROUND,
|
4827
4827
|
precision: v = 0
|
4828
4828
|
} = {}) {
|
4829
|
-
let y = b, C = Number(e), T = [], E = 0,
|
4829
|
+
let y = b, C = Number(e), T = [], E = 0, w = EMPTY;
|
4830
4830
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4831
|
-
const k = n === 10 ? 1e3 : 1024,
|
4831
|
+
const k = n === 10 ? 1e3 : 1024, F = p === !0, R = C < 0, $ = Math[_];
|
4832
4832
|
if (typeof e != "bigint" && isNaN(e))
|
4833
4833
|
throw new TypeError(INVALID_NUMBER);
|
4834
|
-
if (typeof
|
4834
|
+
if (typeof $ !== FUNCTION)
|
4835
4835
|
throw new TypeError(INVALID_ROUND);
|
4836
|
-
if (
|
4836
|
+
if (R && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
|
4837
4837
|
return y;
|
4838
4838
|
if (C === 0)
|
4839
|
-
T[0] = 0,
|
4839
|
+
T[0] = 0, w = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4840
4840
|
else {
|
4841
4841
|
E = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (E = E * 8, E >= k && y < 8 && (E = E / k, y++));
|
4842
|
-
const
|
4843
|
-
T[0] =
|
4842
|
+
const D = Math.pow(10, y > 0 ? a : 0);
|
4843
|
+
T[0] = $(E * D) / D, T[0] === k && y < 8 && b === -1 && (T[0] = 1, y++), w = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4844
4844
|
}
|
4845
|
-
if (
|
4846
|
-
const
|
4847
|
-
T[0] = `${
|
4845
|
+
if (R && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
|
4846
|
+
const D = i || PERIOD, U = T[0].toString().split(D), A = U[1] || EMPTY, M = A.length, I = a - M;
|
4847
|
+
T[0] = `${U[0]}${D}${A.padEnd(M + I, ZERO)}`;
|
4848
4848
|
}
|
4849
|
-
return
|
4849
|
+
return F && (T[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
|
4850
4850
|
value: T[0],
|
4851
4851
|
symbol: T[1],
|
4852
4852
|
exponent: y,
|
4853
|
-
unit:
|
4853
|
+
unit: w
|
4854
4854
|
} : T.join(l);
|
4855
4855
|
}
|
4856
4856
|
const data$6 = {
|
@@ -5440,8 +5440,8 @@ function sendQuery(e, t, r, n) {
|
|
5440
5440
|
if (e.random) {
|
5441
5441
|
let k = e.resources.slice(0);
|
5442
5442
|
for (s = []; k.length > 1; ) {
|
5443
|
-
const
|
5444
|
-
s.push(k[
|
5443
|
+
const F = Math.floor(Math.random() * k.length);
|
5444
|
+
s.push(k[F]), k = k.slice(0, F).concat(k.slice(F + 1));
|
5445
5445
|
}
|
5446
5446
|
s = s.concat(k);
|
5447
5447
|
} else
|
@@ -5457,8 +5457,8 @@ function sendQuery(e, t, r, n) {
|
|
5457
5457
|
k.status === "pending" && (k.status = "aborted");
|
5458
5458
|
}), p = [];
|
5459
5459
|
}
|
5460
|
-
function v(k,
|
5461
|
-
|
5460
|
+
function v(k, F) {
|
5461
|
+
F && (m = []), typeof k == "function" && m.push(k);
|
5462
5462
|
}
|
5463
5463
|
function y() {
|
5464
5464
|
return {
|
@@ -5481,35 +5481,35 @@ function sendQuery(e, t, r, n) {
|
|
5481
5481
|
k.status === "pending" && (k.status = "aborted");
|
5482
5482
|
}), p = [];
|
5483
5483
|
}
|
5484
|
-
function E(k,
|
5485
|
-
const
|
5486
|
-
switch (p = p.filter((
|
5484
|
+
function E(k, F, R) {
|
5485
|
+
const $ = F !== "success";
|
5486
|
+
switch (p = p.filter((D) => D !== k), l) {
|
5487
5487
|
case "pending":
|
5488
5488
|
break;
|
5489
5489
|
case "failed":
|
5490
|
-
if (
|
5490
|
+
if ($ || !e.dataAfterTimeout)
|
5491
5491
|
return;
|
5492
5492
|
break;
|
5493
5493
|
default:
|
5494
5494
|
return;
|
5495
5495
|
}
|
5496
|
-
if (
|
5497
|
-
c =
|
5496
|
+
if (F === "abort") {
|
5497
|
+
c = R, C();
|
5498
5498
|
return;
|
5499
5499
|
}
|
5500
|
-
if (
|
5501
|
-
c =
|
5500
|
+
if ($) {
|
5501
|
+
c = R, p.length || (s.length ? w() : C());
|
5502
5502
|
return;
|
5503
5503
|
}
|
5504
5504
|
if (b(), T(), !e.random) {
|
5505
|
-
const
|
5506
|
-
|
5505
|
+
const D = e.resources.indexOf(k.resource);
|
5506
|
+
D !== -1 && D !== e.index && (e.index = D);
|
5507
5507
|
}
|
5508
|
-
l = "completed", m.forEach((
|
5509
|
-
|
5508
|
+
l = "completed", m.forEach((D) => {
|
5509
|
+
D(R);
|
5510
5510
|
});
|
5511
5511
|
}
|
5512
|
-
function
|
5512
|
+
function w() {
|
5513
5513
|
if (l !== "pending")
|
5514
5514
|
return;
|
5515
5515
|
b();
|
@@ -5524,16 +5524,16 @@ function sendQuery(e, t, r, n) {
|
|
5524
5524
|
C();
|
5525
5525
|
return;
|
5526
5526
|
}
|
5527
|
-
const
|
5527
|
+
const F = {
|
5528
5528
|
status: "pending",
|
5529
5529
|
resource: k,
|
5530
|
-
callback: (
|
5531
|
-
E(
|
5530
|
+
callback: (R, $) => {
|
5531
|
+
E(F, R, $);
|
5532
5532
|
}
|
5533
5533
|
};
|
5534
|
-
p.push(
|
5534
|
+
p.push(F), u++, g = setTimeout(w, e.rotate), r(k, t, F.callback);
|
5535
5535
|
}
|
5536
|
-
return setTimeout(
|
5536
|
+
return setTimeout(w), y;
|
5537
5537
|
}
|
5538
5538
|
function initRedundancy(e) {
|
5539
5539
|
const t = {
|
@@ -6145,27 +6145,27 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6145
6145
|
const l = {
|
6146
6146
|
deep: !0
|
6147
6147
|
};
|
6148
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
6149
|
-
u ? m =
|
6148
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (R) => {
|
6149
|
+
u ? m = R : u == !1 && !k._hotUpdating && (Array.isArray(m) ? m.push(R) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6150
6150
|
});
|
6151
6151
|
let u, c, g = markRaw([]), p = markRaw([]), m;
|
6152
6152
|
const b = n.state.value[e];
|
6153
6153
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6154
6154
|
const _ = ref({});
|
6155
|
-
function v(
|
6156
|
-
let
|
6157
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof
|
6155
|
+
function v(R) {
|
6156
|
+
let $;
|
6157
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof R == "function" ? (R(n.state.value[e]), $ = {
|
6158
6158
|
type: MutationType.patchFunction,
|
6159
6159
|
storeId: e,
|
6160
6160
|
events: m
|
6161
|
-
}) : (mergeReactiveObjects(n.state.value[e],
|
6161
|
+
}) : (mergeReactiveObjects(n.state.value[e], R), $ = {
|
6162
6162
|
type: MutationType.patchObject,
|
6163
|
-
payload:
|
6163
|
+
payload: R,
|
6164
6164
|
storeId: e,
|
6165
6165
|
events: m
|
6166
6166
|
}), nextTick().then(() => {
|
6167
6167
|
u = !0;
|
6168
|
-
}), c = !0, triggerSubscriptions(g,
|
6168
|
+
}), c = !0, triggerSubscriptions(g, $, n.state.value[e]);
|
6169
6169
|
}
|
6170
6170
|
const y = process.env.NODE_ENV !== "production" ? () => {
|
6171
6171
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
@@ -6173,30 +6173,30 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6173
6173
|
function C() {
|
6174
6174
|
o.stop(), g = [], p = [], n._s.delete(e);
|
6175
6175
|
}
|
6176
|
-
function T(
|
6176
|
+
function T(R, $) {
|
6177
6177
|
return function() {
|
6178
6178
|
setActivePinia(n);
|
6179
|
-
const
|
6180
|
-
function
|
6181
|
-
|
6179
|
+
const D = Array.from(arguments), U = [], A = [];
|
6180
|
+
function M(P) {
|
6181
|
+
U.push(P);
|
6182
6182
|
}
|
6183
|
-
function
|
6184
|
-
|
6183
|
+
function I(P) {
|
6184
|
+
A.push(P);
|
6185
6185
|
}
|
6186
6186
|
triggerSubscriptions(p, {
|
6187
|
-
args:
|
6188
|
-
name:
|
6187
|
+
args: D,
|
6188
|
+
name: R,
|
6189
6189
|
store: k,
|
6190
|
-
after:
|
6191
|
-
onError:
|
6190
|
+
after: M,
|
6191
|
+
onError: I
|
6192
6192
|
});
|
6193
|
-
let
|
6193
|
+
let O;
|
6194
6194
|
try {
|
6195
|
-
|
6196
|
-
} catch (
|
6197
|
-
throw triggerSubscriptions(
|
6195
|
+
O = $.apply(this && this.$id === e ? this : k, D);
|
6196
|
+
} catch (P) {
|
6197
|
+
throw triggerSubscriptions(A, P), P;
|
6198
6198
|
}
|
6199
|
-
return
|
6199
|
+
return O instanceof Promise ? O.then((P) => (triggerSubscriptions(U, P), P)).catch((P) => (triggerSubscriptions(A, P), Promise.reject(P))) : (triggerSubscriptions(U, O), O);
|
6200
6200
|
};
|
6201
6201
|
}
|
6202
6202
|
const E = /* @__PURE__ */ markRaw({
|
@@ -6204,21 +6204,21 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6204
6204
|
getters: {},
|
6205
6205
|
state: [],
|
6206
6206
|
hotState: _
|
6207
|
-
}),
|
6207
|
+
}), w = {
|
6208
6208
|
_p: n,
|
6209
6209
|
$id: e,
|
6210
6210
|
$onAction: addSubscription.bind(null, p),
|
6211
6211
|
$patch: v,
|
6212
6212
|
$reset: y,
|
6213
|
-
$subscribe(
|
6214
|
-
const
|
6215
|
-
(
|
6213
|
+
$subscribe(R, $ = {}) {
|
6214
|
+
const D = addSubscription(g, R, $.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (A) => {
|
6215
|
+
($.flush === "sync" ? c : u) && R({
|
6216
6216
|
storeId: e,
|
6217
6217
|
type: MutationType.direct,
|
6218
6218
|
events: m
|
6219
|
-
},
|
6220
|
-
}, assign$1({}, l,
|
6221
|
-
return
|
6219
|
+
}, A);
|
6220
|
+
}, assign$1({}, l, $)));
|
6221
|
+
return D;
|
6222
6222
|
},
|
6223
6223
|
$dispose: C
|
6224
6224
|
}, k = reactive(assign$1(
|
@@ -6226,79 +6226,79 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6226
6226
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6227
6227
|
_hmrPayload: E
|
6228
6228
|
} : {},
|
6229
|
-
|
6229
|
+
w
|
6230
6230
|
));
|
6231
6231
|
n._s.set(e, k);
|
6232
|
-
const
|
6233
|
-
for (const
|
6234
|
-
const
|
6235
|
-
if (isRef(
|
6236
|
-
process.env.NODE_ENV !== "production" && a ? set(_.value,
|
6237
|
-
else if (typeof
|
6238
|
-
const
|
6239
|
-
|
6232
|
+
const F = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6233
|
+
for (const R in F) {
|
6234
|
+
const $ = F[R];
|
6235
|
+
if (isRef($) && !isComputed($) || isReactive($))
|
6236
|
+
process.env.NODE_ENV !== "production" && a ? set(_.value, R, toRef(F, R)) : s || (b && shouldHydrate($) && (isRef($) ? $.value = b[R] : mergeReactiveObjects($, b[R])), n.state.value[e][R] = $), process.env.NODE_ENV !== "production" && E.state.push(R);
|
6237
|
+
else if (typeof $ == "function") {
|
6238
|
+
const D = process.env.NODE_ENV !== "production" && a ? $ : T(R, $);
|
6239
|
+
F[R] = D, process.env.NODE_ENV !== "production" && (E.actions[R] = $), i.actions[R] = $;
|
6240
6240
|
} else
|
6241
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6241
|
+
process.env.NODE_ENV !== "production" && isComputed($) && (E.getters[R] = s ? r.getters[R] : $, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(R));
|
6242
6242
|
}
|
6243
|
-
if (assign$1(k,
|
6243
|
+
if (assign$1(k, F), assign$1(toRaw(k), F), Object.defineProperty(k, "$state", {
|
6244
6244
|
get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
|
6245
|
-
set: (
|
6245
|
+
set: (R) => {
|
6246
6246
|
if (process.env.NODE_ENV !== "production" && a)
|
6247
6247
|
throw new Error("cannot set hotState");
|
6248
|
-
v((
|
6249
|
-
assign$1(
|
6248
|
+
v(($) => {
|
6249
|
+
assign$1($, R);
|
6250
6250
|
});
|
6251
6251
|
}
|
6252
6252
|
}), process.env.NODE_ENV !== "production") {
|
6253
|
-
k._hotUpdate = markRaw((
|
6254
|
-
k._hotUpdating = !0,
|
6255
|
-
if (
|
6256
|
-
const
|
6257
|
-
typeof
|
6253
|
+
k._hotUpdate = markRaw(($) => {
|
6254
|
+
k._hotUpdating = !0, $._hmrPayload.state.forEach((D) => {
|
6255
|
+
if (D in k.$state) {
|
6256
|
+
const U = $.$state[D], A = k.$state[D];
|
6257
|
+
typeof U == "object" && isPlainObject(U) && isPlainObject(A) ? patchObject(U, A) : $.$state[D] = A;
|
6258
6258
|
}
|
6259
|
-
set(k,
|
6260
|
-
}), Object.keys(k.$state).forEach((
|
6261
|
-
|
6262
|
-
}), u = !1, c = !1, n.state.value[e] = toRef(
|
6259
|
+
set(k, D, toRef($.$state, D));
|
6260
|
+
}), Object.keys(k.$state).forEach((D) => {
|
6261
|
+
D in $.$state || del(k, D);
|
6262
|
+
}), u = !1, c = !1, n.state.value[e] = toRef($._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6263
6263
|
u = !0;
|
6264
6264
|
});
|
6265
|
-
for (const
|
6266
|
-
const
|
6267
|
-
set(k,
|
6265
|
+
for (const D in $._hmrPayload.actions) {
|
6266
|
+
const U = $[D];
|
6267
|
+
set(k, D, T(D, U));
|
6268
6268
|
}
|
6269
|
-
for (const
|
6270
|
-
const
|
6271
|
-
set(k,
|
6269
|
+
for (const D in $._hmrPayload.getters) {
|
6270
|
+
const U = $._hmrPayload.getters[D], A = s ? computed(() => (setActivePinia(n), U.call(k, k))) : U;
|
6271
|
+
set(k, D, A);
|
6272
6272
|
}
|
6273
|
-
Object.keys(k._hmrPayload.getters).forEach((
|
6274
|
-
|
6275
|
-
}), Object.keys(k._hmrPayload.actions).forEach((
|
6276
|
-
|
6277
|
-
}), k._hmrPayload =
|
6273
|
+
Object.keys(k._hmrPayload.getters).forEach((D) => {
|
6274
|
+
D in $._hmrPayload.getters || del(k, D);
|
6275
|
+
}), Object.keys(k._hmrPayload.actions).forEach((D) => {
|
6276
|
+
D in $._hmrPayload.actions || del(k, D);
|
6277
|
+
}), k._hmrPayload = $._hmrPayload, k._getters = $._getters, k._hotUpdating = !1;
|
6278
6278
|
});
|
6279
|
-
const
|
6279
|
+
const R = {
|
6280
6280
|
writable: !0,
|
6281
6281
|
configurable: !0,
|
6282
6282
|
enumerable: !1
|
6283
6283
|
};
|
6284
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6285
|
-
Object.defineProperty(k,
|
6286
|
-
value: k[
|
6287
|
-
...
|
6284
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach(($) => {
|
6285
|
+
Object.defineProperty(k, $, {
|
6286
|
+
value: k[$],
|
6287
|
+
...R
|
6288
6288
|
});
|
6289
6289
|
});
|
6290
6290
|
}
|
6291
|
-
return n._p.forEach((
|
6291
|
+
return n._p.forEach((R) => {
|
6292
6292
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6293
|
-
const
|
6293
|
+
const $ = o.run(() => R({
|
6294
6294
|
store: k,
|
6295
6295
|
app: n._a,
|
6296
6296
|
pinia: n,
|
6297
6297
|
options: i
|
6298
6298
|
}));
|
6299
|
-
Object.keys(
|
6299
|
+
Object.keys($ || {}).forEach((D) => k._customProperties.add(D)), assign$1(k, $);
|
6300
6300
|
} else
|
6301
|
-
assign$1(k, o.run(() =>
|
6301
|
+
assign$1(k, o.run(() => R({
|
6302
6302
|
store: k,
|
6303
6303
|
app: n._a,
|
6304
6304
|
pinia: n,
|
@@ -6967,11 +6967,11 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6967
6967
|
function m() {
|
6968
6968
|
var b, _, v, y, C, T, E;
|
6969
6969
|
if (c.value) {
|
6970
|
-
const
|
6971
|
-
(!i || i(k,
|
6970
|
+
const w = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], k = (v = w.map((F) => F[g.value])) != null ? v : [];
|
6971
|
+
(!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
|
6972
6972
|
} else {
|
6973
|
-
const
|
6974
|
-
(!i || i(k,
|
6973
|
+
const w = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, k = (E = w == null ? void 0 : w[g.value]) != null ? E : "";
|
6974
|
+
(!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
|
6975
6975
|
}
|
6976
6976
|
}
|
6977
6977
|
return () => {
|
@@ -7169,8 +7169,8 @@ const KgFormItemSelect = defineComponent({
|
|
7169
7169
|
immediate: !0
|
7170
7170
|
});
|
7171
7171
|
async function u() {
|
7172
|
-
var y, C, T, E,
|
7173
|
-
const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (
|
7172
|
+
var y, C, T, E, w, k, F, R;
|
7173
|
+
const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (w = (E = i.value) == null ? void 0 : E.val_clm) != null ? w : "", _ = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
|
7174
7174
|
if (!p || !b || !_) {
|
7175
7175
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7176
7176
|
frm_id: n.formID,
|
@@ -7183,7 +7183,7 @@ const KgFormItemSelect = defineComponent({
|
|
7183
7183
|
}
|
7184
7184
|
let v = null;
|
7185
7185
|
try {
|
7186
|
-
v = await ((
|
7186
|
+
v = await ((R = httpClient()) == null ? void 0 : R.request({
|
7187
7187
|
url: p,
|
7188
7188
|
method: m,
|
7189
7189
|
params: l.value
|
@@ -7202,17 +7202,17 @@ const KgFormItemSelect = defineComponent({
|
|
7202
7202
|
break;
|
7203
7203
|
}
|
7204
7204
|
if (s.value.length > 0) {
|
7205
|
-
const
|
7206
|
-
(!(b in
|
7205
|
+
const $ = s.value[0];
|
7206
|
+
(!(b in $) || !(_ in $)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
7207
7207
|
frm_id: n.formID,
|
7208
7208
|
var_nam: e.kgVarName,
|
7209
7209
|
cmd: p,
|
7210
7210
|
val_clm: b,
|
7211
7211
|
lbl_clm: _,
|
7212
|
-
\u6240\u6709\u5217: Object.keys(
|
7212
|
+
\u6240\u6709\u5217: Object.keys($)
|
7213
7213
|
});
|
7214
7214
|
}
|
7215
|
-
r("kgSelectDatasChange", s.value), s.value.find((
|
7215
|
+
r("kgSelectDatasChange", s.value), s.value.find(($) => $[b] === e.value) || r("update:value", void 0);
|
7216
7216
|
}
|
7217
7217
|
function c(p) {
|
7218
7218
|
var b;
|
@@ -7249,8 +7249,8 @@ const KgFormItemSelect = defineComponent({
|
|
7249
7249
|
value: _[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
|
7250
7250
|
}, {
|
7251
7251
|
default: () => {
|
7252
|
-
var E,
|
7253
|
-
return [_[(
|
7252
|
+
var E, w;
|
7253
|
+
return [_[(w = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? w : ""]];
|
7254
7254
|
}
|
7255
7255
|
});
|
7256
7256
|
}),
|
@@ -7347,123 +7347,123 @@ const KgFormItem = defineComponent({
|
|
7347
7347
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), m = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
7348
7348
|
rules: b
|
7349
7349
|
} = _useRules(e), _ = computed(() => {
|
7350
|
-
var
|
7350
|
+
var M, I, O, P, L;
|
7351
7351
|
if (a.isRetrievingVar.value)
|
7352
7352
|
return !0;
|
7353
|
-
let
|
7353
|
+
let A = !1;
|
7354
7354
|
if (e.kgDisabled !== void 0)
|
7355
|
-
|
7355
|
+
A = e.kgDisabled;
|
7356
7356
|
else
|
7357
7357
|
switch (e.kgContext) {
|
7358
7358
|
case KG_FORM_CONTEXT.SEARCH:
|
7359
|
-
|
7359
|
+
A = ((M = p.value) == null ? void 0 : M.ena_flg) === 0;
|
7360
7360
|
break;
|
7361
7361
|
case KG_FORM_CONTEXT.SUBMIT:
|
7362
7362
|
switch (!0) {
|
7363
7363
|
case a.isCreating.value:
|
7364
|
-
|
7364
|
+
A = ((I = m.value) == null ? void 0 : I.crt_ena_flg) === 0;
|
7365
7365
|
break;
|
7366
7366
|
case a.isUpdating.value:
|
7367
|
-
|
7367
|
+
A = ((O = m.value) == null ? void 0 : O.upt_ena_flg) === 0;
|
7368
7368
|
break;
|
7369
7369
|
case a.isCopying.value:
|
7370
|
-
|
7370
|
+
A = ((P = m.value) == null ? void 0 : P.cpy_ena_flg) === 0;
|
7371
7371
|
break;
|
7372
7372
|
case a.isDeleting.value:
|
7373
|
-
|
7373
|
+
A = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
|
7374
7374
|
break;
|
7375
7375
|
}
|
7376
7376
|
break;
|
7377
7377
|
}
|
7378
|
-
return
|
7378
|
+
return A;
|
7379
7379
|
}), v = computed(() => {
|
7380
|
-
var
|
7381
|
-
let
|
7380
|
+
var M, I, O, P;
|
7381
|
+
let A = " ";
|
7382
7382
|
if (e.kgPlaceholder)
|
7383
|
-
|
7383
|
+
A = e.kgPlaceholder;
|
7384
7384
|
else
|
7385
7385
|
switch (e.kgContext) {
|
7386
7386
|
case KG_FORM_CONTEXT.SEARCH:
|
7387
|
-
|
7387
|
+
A = n.t((I = (M = p.value) == null ? void 0 : M.placeholder) != null ? I : " ");
|
7388
7388
|
break;
|
7389
7389
|
case KG_FORM_CONTEXT.SUBMIT:
|
7390
|
-
|
7390
|
+
A = n.t((P = (O = m.value) == null ? void 0 : O.placeholder) != null ? P : " ");
|
7391
7391
|
break;
|
7392
7392
|
}
|
7393
|
-
return
|
7393
|
+
return A;
|
7394
7394
|
}), y = computed(() => {
|
7395
|
-
var
|
7396
|
-
let
|
7395
|
+
var M, I, O, P, L, G, N, B, z, Y;
|
7396
|
+
let A = 6;
|
7397
7397
|
if (e.kgSpan !== void 0)
|
7398
|
-
|
7398
|
+
A = e.kgSpan;
|
7399
7399
|
else
|
7400
7400
|
switch (e.kgContext) {
|
7401
7401
|
case KG_FORM_CONTEXT.SEARCH:
|
7402
|
-
|
7402
|
+
A = (I = (M = p.value) == null ? void 0 : M.width) != null ? I : 6;
|
7403
7403
|
break;
|
7404
7404
|
case KG_FORM_CONTEXT.SUBMIT:
|
7405
7405
|
switch (!0) {
|
7406
7406
|
case a.isCreating.value:
|
7407
|
-
|
7407
|
+
A = (P = (O = m.value) == null ? void 0 : O.crt_width) != null ? P : 6;
|
7408
7408
|
break;
|
7409
7409
|
case a.isUpdating.value:
|
7410
|
-
|
7410
|
+
A = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
|
7411
7411
|
break;
|
7412
7412
|
case a.isCopying.value:
|
7413
|
-
|
7413
|
+
A = (B = (N = m.value) == null ? void 0 : N.cpy_width) != null ? B : 6;
|
7414
7414
|
break;
|
7415
7415
|
case a.isDeleting.value:
|
7416
|
-
|
7416
|
+
A = (Y = (z = m.value) == null ? void 0 : z.del_width) != null ? Y : 6;
|
7417
7417
|
break;
|
7418
7418
|
}
|
7419
7419
|
}
|
7420
|
-
return Math.min(24, Math.max(1,
|
7420
|
+
return Math.min(24, Math.max(1, A));
|
7421
7421
|
}), C = computed(() => {
|
7422
|
-
var
|
7423
|
-
const
|
7424
|
-
if (
|
7422
|
+
var O, P;
|
7423
|
+
const A = get(F.value, "$el.parentElement");
|
7424
|
+
if (A && !((O = A.classList) != null && O.contains("ant-row")))
|
7425
7425
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7426
|
-
let
|
7427
|
-
const
|
7428
|
-
return Number.isNaN(
|
7429
|
-
paddingLeft: `${
|
7430
|
-
paddingRight: `${
|
7431
|
-
}),
|
7426
|
+
let M = {};
|
7427
|
+
const I = Math.abs(Number.parseInt((P = get(F.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
|
7428
|
+
return Number.isNaN(I) || (M = {
|
7429
|
+
paddingLeft: `${I}px !important`,
|
7430
|
+
paddingRight: `${I}px !important`
|
7431
|
+
}), M;
|
7432
7432
|
}), T = computed(() => {
|
7433
|
-
var
|
7434
|
-
let
|
7435
|
-
switch (c.value && (
|
7433
|
+
var M, I, O, P;
|
7434
|
+
let A = "kg-form-item";
|
7435
|
+
switch (c.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
7436
7436
|
case KG_FORM_CONTEXT.SEARCH:
|
7437
7437
|
switch (!0) {
|
7438
|
-
case ((
|
7439
|
-
|
7438
|
+
case ((M = p.value) == null ? void 0 : M.vis_flg) === 0:
|
7439
|
+
A += " kg-form-item--invisible";
|
7440
7440
|
break;
|
7441
7441
|
}
|
7442
7442
|
break;
|
7443
7443
|
case KG_FORM_CONTEXT.SUBMIT:
|
7444
7444
|
switch (!0) {
|
7445
|
-
case (i.value && ((
|
7446
|
-
case (l.value && ((
|
7447
|
-
case (u.value && ((
|
7448
|
-
|
7445
|
+
case (i.value && ((I = m.value) == null ? void 0 : I.crt_vis_flg) === 0):
|
7446
|
+
case (l.value && ((O = m.value) == null ? void 0 : O.upt_vis_flg) === 0):
|
7447
|
+
case (u.value && ((P = m.value) == null ? void 0 : P.cpy_vis_flg) === 0):
|
7448
|
+
A += " kg-form-item--invisible";
|
7449
7449
|
break;
|
7450
7450
|
}
|
7451
7451
|
break;
|
7452
7452
|
}
|
7453
|
-
return
|
7453
|
+
return A;
|
7454
7454
|
}), E = computed(() => {
|
7455
|
-
var
|
7456
|
-
const
|
7455
|
+
var M;
|
7456
|
+
const A = {
|
7457
7457
|
...e,
|
7458
|
-
value: (
|
7459
|
-
"onUpdate:value": (
|
7460
|
-
o.value && (o.value[e.kgVarName] =
|
7458
|
+
value: (M = o.value) == null ? void 0 : M[e.kgVarName],
|
7459
|
+
"onUpdate:value": (I) => {
|
7460
|
+
o.value && (o.value[e.kgVarName] = I);
|
7461
7461
|
},
|
7462
7462
|
kgPlaceholder: v.value,
|
7463
7463
|
kgDisabled: _.value,
|
7464
7464
|
id: k.value
|
7465
7465
|
};
|
7466
|
-
switch (
|
7466
|
+
switch (w.value) {
|
7467
7467
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7468
7468
|
break;
|
7469
7469
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7471,22 +7471,22 @@ const KgFormItem = defineComponent({
|
|
7471
7471
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7472
7472
|
break;
|
7473
7473
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7474
|
-
|
7474
|
+
A.kgShowTime = !1;
|
7475
7475
|
break;
|
7476
7476
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7477
|
-
|
7477
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7478
7478
|
break;
|
7479
7479
|
}
|
7480
|
-
return
|
7481
|
-
}),
|
7482
|
-
var I;
|
7483
|
-
return e.kgType || ((I = g.value) == null ? void 0 : I.ctrl_typ);
|
7484
|
-
}), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), x = ref(null);
|
7485
|
-
function F(I, $) {
|
7480
|
+
return A;
|
7481
|
+
}), w = computed(() => {
|
7486
7482
|
var A;
|
7487
|
-
|
7483
|
+
return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
|
7484
|
+
}), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), F = ref(null);
|
7485
|
+
function R(A, M) {
|
7486
|
+
var I;
|
7487
|
+
o.value && (o.value[e.kgVarName] = A), r("kgLookupChange", M), (I = s.value) == null || I.validate([e.kgVarName]);
|
7488
7488
|
}
|
7489
|
-
function
|
7489
|
+
function $() {
|
7490
7490
|
if (t.control)
|
7491
7491
|
return t.control({
|
7492
7492
|
varName: e.kgVarName,
|
@@ -7496,7 +7496,7 @@ const KgFormItem = defineComponent({
|
|
7496
7496
|
varProfileDetail: p,
|
7497
7497
|
varSubmitField: m
|
7498
7498
|
});
|
7499
|
-
switch (
|
7499
|
+
switch (w.value) {
|
7500
7500
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7501
7501
|
return createVNode(KgFormItemInputNumber, E.value, null);
|
7502
7502
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7511,29 +7511,29 @@ const KgFormItem = defineComponent({
|
|
7511
7511
|
return createVNode(KgFormItemInput, E.value, null);
|
7512
7512
|
}
|
7513
7513
|
}
|
7514
|
-
function
|
7514
|
+
function D() {
|
7515
7515
|
return e.kgShowLabel ? createVNode("span", {
|
7516
7516
|
title: a.t(e.kgVarName).value
|
7517
7517
|
}, [a.t(e.kgVarName).value]) : null;
|
7518
7518
|
}
|
7519
|
-
function
|
7520
|
-
var
|
7521
|
-
return !c.value || !((
|
7519
|
+
function U() {
|
7520
|
+
var A;
|
7521
|
+
return !c.value || !((A = c.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7522
7522
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7523
7523
|
kgDisabled: _.value,
|
7524
|
-
onKgOk:
|
7524
|
+
onKgOk: R,
|
7525
7525
|
kgLookupID: c.value.lkp_id
|
7526
7526
|
}, null)]
|
7527
7527
|
});
|
7528
7528
|
}
|
7529
7529
|
return () => {
|
7530
|
-
var
|
7530
|
+
var A, M;
|
7531
7531
|
return createVNode(Col, {
|
7532
|
-
ref:
|
7532
|
+
ref: F,
|
7533
7533
|
"kg-frm-id": a.formID,
|
7534
7534
|
"kg-var-nam": e.kgVarName,
|
7535
|
-
"kg-lkp-id": (
|
7536
|
-
"kg-lkp-ret-fld": (
|
7535
|
+
"kg-lkp-id": (A = c.value) == null ? void 0 : A.lkp_id,
|
7536
|
+
"kg-lkp-ret-fld": (M = c.value) == null ? void 0 : M.ret_fld,
|
7537
7537
|
span: y.value,
|
7538
7538
|
class: T.value,
|
7539
7539
|
style: C.value
|
@@ -7543,8 +7543,8 @@ const KgFormItem = defineComponent({
|
|
7543
7543
|
rules: b.value,
|
7544
7544
|
htmlFor: k.value
|
7545
7545
|
}, {
|
7546
|
-
default: () => createVNode(Fragment, null, [
|
7547
|
-
label: () =>
|
7546
|
+
default: () => createVNode(Fragment, null, [$(), U()]),
|
7547
|
+
label: () => D()
|
7548
7548
|
})]
|
7549
7549
|
});
|
7550
7550
|
};
|
@@ -8857,8 +8857,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8857
8857
|
function useKgVar(e, t, r = 0) {
|
8858
8858
|
var n, a;
|
8859
8859
|
try {
|
8860
|
-
let o = function(
|
8861
|
-
return isFunction$2(
|
8860
|
+
let o = function(U) {
|
8861
|
+
return isFunction$2(U) ? (i.addEventListener(s, "ready", U), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", U)), () => i.removeEventListener(s, "ready", U)) : () => {
|
8862
8862
|
};
|
8863
8863
|
}, s = e || inject(KG_DI_FORM_ID, "");
|
8864
8864
|
if (!s)
|
@@ -8869,13 +8869,13 @@ function useKgVar(e, t, r = 0) {
|
|
8869
8869
|
}), onUnmounted(() => {
|
8870
8870
|
i.leave(s);
|
8871
8871
|
}));
|
8872
|
-
const l = (
|
8873
|
-
var
|
8874
|
-
return (
|
8875
|
-
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)),
|
8876
|
-
var
|
8877
|
-
return (
|
8878
|
-
}), k = computed(() => i.getVarGridConfig(s)),
|
8872
|
+
const l = (U) => computed(() => {
|
8873
|
+
var A, M, I;
|
8874
|
+
return (I = (M = (A = i.getVarCatalog(s, U)) == null ? void 0 : A.var_text) != null ? M : U) != null ? I : "";
|
8875
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), w = computed(() => {
|
8876
|
+
var U, A;
|
8877
|
+
return (A = (U = T.value) == null ? void 0 : U.varProfileDetails) != null ? A : null;
|
8878
|
+
}), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), $ = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
|
8879
8879
|
return {
|
8880
8880
|
formID: s,
|
8881
8881
|
store: i,
|
@@ -8891,12 +8891,12 @@ function useKgVar(e, t, r = 0) {
|
|
8891
8891
|
varProfileMasters: C,
|
8892
8892
|
currentVarProfileMaster: T,
|
8893
8893
|
currentVarProfileMasterID: E,
|
8894
|
-
currentVarProfileDetails:
|
8894
|
+
currentVarProfileDetails: w,
|
8895
8895
|
varGridConfig: k,
|
8896
|
-
varGridMasters:
|
8897
|
-
currentVarGridMaster:
|
8898
|
-
systemVarGridDetails:
|
8899
|
-
currentVarGridDetails:
|
8896
|
+
varGridMasters: F,
|
8897
|
+
currentVarGridMaster: R,
|
8898
|
+
systemVarGridDetails: $,
|
8899
|
+
currentVarGridDetails: D,
|
8900
8900
|
t: l,
|
8901
8901
|
onReady: o
|
8902
8902
|
};
|
@@ -9089,8 +9089,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9089
9089
|
}) => {
|
9090
9090
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9091
9091
|
return i = watch(u, (g) => {
|
9092
|
-
var p, m, b, _, v, y, C, T, E,
|
9093
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (
|
9092
|
+
var p, m, b, _, v, y, C, T, E, w, k, F;
|
9093
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (w = c == null ? void 0 : c.label_col) != null ? w : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9094
9094
|
}, {
|
9095
9095
|
immediate: !0
|
9096
9096
|
}), !1;
|
@@ -9188,7 +9188,7 @@ function _useFormModel() {
|
|
9188
9188
|
}), m = ref({});
|
9189
9189
|
return watch(p, (b) => {
|
9190
9190
|
m.value = {}, b != null && b.length && b.forEach((_) => {
|
9191
|
-
var C, T, E,
|
9191
|
+
var C, T, E, w, k, F, R;
|
9192
9192
|
const v = (C = _.var_nam) != null ? C : "", y = r.selectedRow.value;
|
9193
9193
|
switch (m.value[v] = void 0, !0) {
|
9194
9194
|
case a.value:
|
@@ -9198,10 +9198,10 @@ function _useFormModel() {
|
|
9198
9198
|
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (E = (T = _.upt_dft_val) != null ? T : y == null ? void 0 : y[v]) != null ? E : void 0);
|
9199
9199
|
break;
|
9200
9200
|
case s.value:
|
9201
|
-
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (
|
9201
|
+
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (w = _.cpy_dft_val) != null ? w : y == null ? void 0 : y[v]) != null ? k : void 0);
|
9202
9202
|
break;
|
9203
9203
|
case i.value:
|
9204
|
-
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
9204
|
+
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (R = (F = _.del_dft_val) != null ? F : y == null ? void 0 : y[v]) != null ? R : void 0);
|
9205
9205
|
break;
|
9206
9206
|
}
|
9207
9207
|
}), n.store.setModel(t.formID, m.value);
|
@@ -9286,56 +9286,56 @@ const getProps$p = () => ({
|
|
9286
9286
|
}) {
|
9287
9287
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9288
9288
|
_useFormModel();
|
9289
|
-
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value &&
|
9290
|
-
var
|
9289
|
+
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && U.value.length === 0 && A.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), $ = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), U = computed(() => {
|
9290
|
+
var x, H, Q;
|
9291
9291
|
switch (!0) {
|
9292
9292
|
case u.value:
|
9293
|
-
return (
|
9293
|
+
return (x = E.value) != null ? x : [];
|
9294
9294
|
case c.value:
|
9295
|
-
return (
|
9295
|
+
return (H = k.value) != null ? H : [];
|
9296
9296
|
case g.value:
|
9297
|
-
return (Q =
|
9297
|
+
return (Q = R.value) != null ? Q : [];
|
9298
9298
|
case p.value:
|
9299
9299
|
return [];
|
9300
9300
|
}
|
9301
9301
|
return [];
|
9302
|
-
}),
|
9303
|
-
var
|
9302
|
+
}), A = computed(() => {
|
9303
|
+
var x, H, Q, Z;
|
9304
9304
|
switch (!0) {
|
9305
9305
|
case u.value:
|
9306
|
-
return (
|
9306
|
+
return (x = w.value) != null ? x : [];
|
9307
9307
|
case c.value:
|
9308
|
-
return (
|
9308
|
+
return (H = F.value) != null ? H : [];
|
9309
9309
|
case g.value:
|
9310
|
-
return (Q =
|
9310
|
+
return (Q = $.value) != null ? Q : [];
|
9311
9311
|
case p.value:
|
9312
|
-
return (Z =
|
9312
|
+
return (Z = D.value) != null ? Z : [];
|
9313
9313
|
}
|
9314
9314
|
return [];
|
9315
|
-
}),
|
9315
|
+
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => M.value || C.value), O = computed(() => C.value), P = ref({
|
9316
9316
|
kgWidth: 0
|
9317
9317
|
}), L = computed(() => {
|
9318
|
-
var
|
9319
|
-
return !!(m.value ||
|
9318
|
+
var x;
|
9319
|
+
return !!(m.value || ae.isFullscreen || ((x = T.value) == null ? void 0 : x.resizable_flg) === 0);
|
9320
9320
|
}), G = computed(() => {
|
9321
|
-
var
|
9322
|
-
return m.value ? 398 : (
|
9323
|
-
}),
|
9324
|
-
var
|
9325
|
-
return m.value ? 398 : (
|
9326
|
-
}),
|
9321
|
+
var x, H;
|
9322
|
+
return m.value ? 398 : (H = (x = T.value) == null ? void 0 : x.min_width) != null ? H : DEFAULT_MIN_WIDTH;
|
9323
|
+
}), N = computed(() => {
|
9324
|
+
var x, H;
|
9325
|
+
return m.value ? 398 : (H = (x = T.value) == null ? void 0 : x.max_width) != null ? H : DEFAULT_MAX_WIDTH;
|
9326
|
+
}), B = computed(() => m.value ? 398 : P.value.kgWidth), z = ref(null), Y = ref({}), X = ref(null);
|
9327
9327
|
_useResizeObserver$1(X);
|
9328
|
-
const re = _useTitle(),
|
9329
|
-
var
|
9330
|
-
let
|
9331
|
-
return
|
9332
|
-
}),
|
9328
|
+
const re = _useTitle(), ee = computed(() => m.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? P.value.kgWidth + 2 : 0), ue = computed(() => ee.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ce = computed(() => {
|
9329
|
+
var H, Q;
|
9330
|
+
let x = "kg-submit";
|
9331
|
+
return ae.isFullscreen && (x += " kg-submit--fullscreen"), ((H = T.value) == null ? void 0 : H.responsive_flg) !== 0 && (x += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (x += " kg-submit--modal"), e.kgClass && (x += ` ${e.kgClass}`), x;
|
9332
|
+
}), ae = reactive({
|
9333
9333
|
isFullscreen: !1
|
9334
|
-
}),
|
9335
|
-
var
|
9336
|
-
switch ((
|
9334
|
+
}), V = computed(() => {
|
9335
|
+
var x, H, Q, Z;
|
9336
|
+
switch ((x = T.value) == null ? void 0 : x.layout) {
|
9337
9337
|
case "horizontal":
|
9338
|
-
switch ((
|
9338
|
+
switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
|
9339
9339
|
case KG_WIDTH_UNIT.SPAN:
|
9340
9340
|
return {
|
9341
9341
|
span: (Q = T.value) == null ? void 0 : Q.label_col
|
@@ -9350,11 +9350,11 @@ const getProps$p = () => ({
|
|
9350
9350
|
default:
|
9351
9351
|
return;
|
9352
9352
|
}
|
9353
|
-
}),
|
9354
|
-
var
|
9355
|
-
switch ((
|
9353
|
+
}), K = computed(() => {
|
9354
|
+
var x, H, Q;
|
9355
|
+
switch ((x = T.value) == null ? void 0 : x.layout) {
|
9356
9356
|
case "horizontal":
|
9357
|
-
switch ((
|
9357
|
+
switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
|
9358
9358
|
case KG_WIDTH_UNIT.SPAN:
|
9359
9359
|
return {
|
9360
9360
|
span: 24 - ((Q = T.value) == null ? void 0 : Q.label_col)
|
@@ -9366,17 +9366,17 @@ const getProps$p = () => ({
|
|
9366
9366
|
return;
|
9367
9367
|
}
|
9368
9368
|
});
|
9369
|
-
watch(
|
9370
|
-
|
9369
|
+
watch(ue, (x, H) => {
|
9370
|
+
x === !0 && W(), H === !0 && x === !1 && q();
|
9371
9371
|
}, {
|
9372
9372
|
immediate: !0
|
9373
|
-
}), watch(T, (
|
9374
|
-
|
9373
|
+
}), watch(T, (x) => {
|
9374
|
+
x != null && x.dft_width && (P.value.kgWidth = x.dft_width);
|
9375
9375
|
}, {
|
9376
9376
|
immediate: !0
|
9377
9377
|
});
|
9378
|
-
function
|
9379
|
-
var
|
9378
|
+
function W() {
|
9379
|
+
var x;
|
9380
9380
|
s.store.emit(a.formID, "open", {
|
9381
9381
|
isCreating: u.value,
|
9382
9382
|
isUpdating: c.value,
|
@@ -9384,13 +9384,13 @@ const getProps$p = () => ({
|
|
9384
9384
|
isDeleting: p.value,
|
9385
9385
|
row: o.selectedRow.value,
|
9386
9386
|
model: s.model
|
9387
|
-
}), ((
|
9387
|
+
}), ((x = T.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !m.value && (ae.isFullscreen = !0);
|
9388
9388
|
}
|
9389
|
-
function
|
9390
|
-
var
|
9391
|
-
|
9389
|
+
function q() {
|
9390
|
+
var x;
|
9391
|
+
P.value.kgWidth = ((x = T.value) == null ? void 0 : x.dft_width) || DEFAULT_WIDTH, ae.isFullscreen = !1, s.store.emit(a.formID, "close");
|
9392
9392
|
}
|
9393
|
-
function
|
9393
|
+
function te() {
|
9394
9394
|
switch (!0) {
|
9395
9395
|
case u.value:
|
9396
9396
|
a.store.setIsCreating(a.formID, !1);
|
@@ -9406,8 +9406,8 @@ const getProps$p = () => ({
|
|
9406
9406
|
break;
|
9407
9407
|
}
|
9408
9408
|
}
|
9409
|
-
async function
|
9410
|
-
var
|
9409
|
+
async function J() {
|
9410
|
+
var x, H;
|
9411
9411
|
try {
|
9412
9412
|
if (await s.store.emit(a.formID, "beforeOk", {
|
9413
9413
|
rules: Y,
|
@@ -9415,16 +9415,16 @@ const getProps$p = () => ({
|
|
9415
9415
|
}))
|
9416
9416
|
return;
|
9417
9417
|
try {
|
9418
|
-
await ((
|
9418
|
+
await ((x = z.value) == null ? void 0 : x.validate());
|
9419
9419
|
} catch (Z) {
|
9420
9420
|
KgUtil.throwIfNotFormError(Z);
|
9421
9421
|
}
|
9422
|
-
switch (await ((
|
9422
|
+
switch (await ((H = z.value) == null ? void 0 : H.validate()), !0) {
|
9423
9423
|
case u.value:
|
9424
|
-
await
|
9424
|
+
await de();
|
9425
9425
|
break;
|
9426
9426
|
case c.value:
|
9427
|
-
await
|
9427
|
+
await fe();
|
9428
9428
|
break;
|
9429
9429
|
case g.value:
|
9430
9430
|
await _e();
|
@@ -9437,10 +9437,10 @@ const getProps$p = () => ({
|
|
9437
9437
|
KgUtil.throwIfNotFormError(Q);
|
9438
9438
|
}
|
9439
9439
|
}
|
9440
|
-
async function
|
9441
|
-
var
|
9442
|
-
const
|
9443
|
-
if (!
|
9440
|
+
async function de() {
|
9441
|
+
var H, Q, Z, ne, oe, se, ie;
|
9442
|
+
const x = (H = b.value) == null ? void 0 : H.cmd;
|
9443
|
+
if (!x) {
|
9444
9444
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9445
9445
|
VarButton: b.value
|
9446
9446
|
});
|
@@ -9450,20 +9450,20 @@ const getProps$p = () => ({
|
|
9450
9450
|
try {
|
9451
9451
|
await httpClient().request({
|
9452
9452
|
method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9453
|
-
url:
|
9454
|
-
params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((
|
9453
|
+
url: x,
|
9454
|
+
params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((oe = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""), a.formID, r),
|
9455
9455
|
data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
|
9456
|
-
}), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (
|
9457
|
-
} catch (
|
9458
|
-
console.error(
|
9456
|
+
}), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
|
9457
|
+
} catch (le) {
|
9458
|
+
console.error(le);
|
9459
9459
|
} finally {
|
9460
9460
|
a.store.setIsCreatingRequesting(a.formID, !1);
|
9461
9461
|
}
|
9462
9462
|
}
|
9463
|
-
async function
|
9464
|
-
var
|
9465
|
-
const
|
9466
|
-
if (!
|
9463
|
+
async function fe() {
|
9464
|
+
var H, Q, Z, ne, oe, se, ie;
|
9465
|
+
const x = (H = _.value) == null ? void 0 : H.cmd;
|
9466
|
+
if (!x) {
|
9467
9467
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9468
9468
|
VarButton: _.value
|
9469
9469
|
});
|
@@ -9472,20 +9472,20 @@ const getProps$p = () => ({
|
|
9472
9472
|
try {
|
9473
9473
|
a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
|
9474
9474
|
method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9475
|
-
url:
|
9476
|
-
params: KgVarUtil.parseCommandParameter((
|
9475
|
+
url: x,
|
9476
|
+
params: KgVarUtil.parseCommandParameter((oe = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
|
9477
9477
|
data: toRaw(s.model.value)
|
9478
|
-
}), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (
|
9479
|
-
} catch (
|
9480
|
-
console.error(
|
9478
|
+
}), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se);
|
9479
|
+
} catch (le) {
|
9480
|
+
console.error(le);
|
9481
9481
|
} finally {
|
9482
9482
|
a.store.setIsUpdatingRequesting(a.formID, !1);
|
9483
9483
|
}
|
9484
9484
|
}
|
9485
9485
|
async function _e() {
|
9486
|
-
var
|
9487
|
-
const
|
9488
|
-
if (!
|
9486
|
+
var H, Q, Z, ne, oe, se, ie;
|
9487
|
+
const x = (H = v.value) == null ? void 0 : H.cmd;
|
9488
|
+
if (!x) {
|
9489
9489
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9490
9490
|
VarButton: v.value
|
9491
9491
|
});
|
@@ -9493,23 +9493,23 @@ const getProps$p = () => ({
|
|
9493
9493
|
}
|
9494
9494
|
try {
|
9495
9495
|
a.store.setIsCopyingRequesting(a.formID, !0);
|
9496
|
-
const
|
9497
|
-
delete
|
9496
|
+
const le = toRaw(s.model.value);
|
9497
|
+
delete le.id, await httpClient().request({
|
9498
9498
|
method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9499
|
-
url:
|
9500
|
-
params: KgVarUtil.parseCommandParameter((
|
9499
|
+
url: x,
|
9500
|
+
params: KgVarUtil.parseCommandParameter((oe = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
|
9501
9501
|
data: toRaw(s.model.value)
|
9502
|
-
}), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (
|
9503
|
-
} catch (
|
9504
|
-
console.error(
|
9502
|
+
}), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
|
9503
|
+
} catch (le) {
|
9504
|
+
console.error(le);
|
9505
9505
|
} finally {
|
9506
9506
|
a.store.setIsCopyingRequesting(a.formID, !1);
|
9507
9507
|
}
|
9508
9508
|
}
|
9509
9509
|
async function ve() {
|
9510
|
-
var
|
9511
|
-
const
|
9512
|
-
if (!
|
9510
|
+
var H, Q, Z, ne, oe, se, ie;
|
9511
|
+
const x = (H = y.value) == null ? void 0 : H.cmd;
|
9512
|
+
if (!x) {
|
9513
9513
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9514
9514
|
VarButton: y.value
|
9515
9515
|
});
|
@@ -9518,63 +9518,63 @@ const getProps$p = () => ({
|
|
9518
9518
|
try {
|
9519
9519
|
a.store.setIsDeletingRequesting(a.formID, !0), await httpClient().request({
|
9520
9520
|
method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
|
9521
|
-
url:
|
9521
|
+
url: x,
|
9522
9522
|
params: {
|
9523
|
-
ids: (
|
9524
|
-
var
|
9525
|
-
return (
|
9526
|
-
})) != null ?
|
9523
|
+
ids: (oe = (ne = o.selectedRows.value) == null ? void 0 : ne.map((le) => {
|
9524
|
+
var ge, me, he;
|
9525
|
+
return (he = le[(me = (ge = y.value) == null ? void 0 : ge.del_param_clm) != null ? me : "id"]) != null ? he : "";
|
9526
|
+
})) != null ? oe : []
|
9527
9527
|
}
|
9528
9528
|
}, {
|
9529
9529
|
joinParamsToUrl: !0
|
9530
|
-
}), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (
|
9531
|
-
} catch (
|
9532
|
-
console.error(
|
9530
|
+
}), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
|
9531
|
+
} catch (le) {
|
9532
|
+
console.error(le);
|
9533
9533
|
} finally {
|
9534
9534
|
a.store.setIsDeletingRequesting(a.formID, !1);
|
9535
9535
|
}
|
9536
9536
|
}
|
9537
|
-
function
|
9537
|
+
function pe(x) {
|
9538
9538
|
var Q, Z;
|
9539
|
-
const
|
9540
|
-
return isFunction$2(
|
9541
|
-
kgVarName:
|
9539
|
+
const H = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[x.var_nam];
|
9540
|
+
return isFunction$2(H) ? createVNode(KgForm.Item, {
|
9541
|
+
kgVarName: x.var_nam,
|
9542
9542
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9543
|
-
kgRules: Y.value[
|
9544
|
-
onKgSubmit:
|
9543
|
+
kgRules: Y.value[x.var_nam],
|
9544
|
+
onKgSubmit: J
|
9545
9545
|
}, {
|
9546
9546
|
control: ({
|
9547
9547
|
varName: ne,
|
9548
|
-
props:
|
9549
|
-
model:
|
9550
|
-
varConfig:
|
9551
|
-
varProfileDetail:
|
9552
|
-
varSubmitField:
|
9553
|
-
}) =>
|
9548
|
+
props: oe,
|
9549
|
+
model: se,
|
9550
|
+
varConfig: ie,
|
9551
|
+
varProfileDetail: le,
|
9552
|
+
varSubmitField: ge
|
9553
|
+
}) => H({
|
9554
9554
|
varName: ne,
|
9555
|
-
props:
|
9556
|
-
model:
|
9557
|
-
varConfig:
|
9558
|
-
varProfileDetail:
|
9559
|
-
varSubmitField:
|
9555
|
+
props: oe,
|
9556
|
+
model: se,
|
9557
|
+
varConfig: ie,
|
9558
|
+
varProfileDetail: le,
|
9559
|
+
varSubmitField: ge
|
9560
9560
|
})
|
9561
9561
|
}) : createVNode(KgForm.Item, {
|
9562
|
-
kgVarName:
|
9562
|
+
kgVarName: x.var_nam,
|
9563
9563
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9564
|
-
kgRules: Y.value[
|
9565
|
-
onKgSubmit:
|
9564
|
+
kgRules: Y.value[x.var_nam],
|
9565
|
+
onKgSubmit: J
|
9566
9566
|
}, null);
|
9567
9567
|
}
|
9568
9568
|
function be() {
|
9569
9569
|
var Q;
|
9570
|
-
let
|
9570
|
+
let x, H;
|
9571
9571
|
return createVNode(KgResizable, {
|
9572
9572
|
kgType: ((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
9573
9573
|
kgMinWidth: G.value,
|
9574
|
-
kgMaxWidth:
|
9575
|
-
kgWidth:
|
9574
|
+
kgMaxWidth: N.value,
|
9575
|
+
kgWidth: B.value,
|
9576
9576
|
kgDisabled: L.value,
|
9577
|
-
"onUpdate:kgWidth": (Z) =>
|
9577
|
+
"onUpdate:kgWidth": (Z) => P.value.kgWidth = Z
|
9578
9578
|
}, {
|
9579
9579
|
default: () => [createVNode(Spin, {
|
9580
9580
|
spinning: C.value
|
@@ -9582,22 +9582,22 @@ const getProps$p = () => ({
|
|
9582
9582
|
default: () => {
|
9583
9583
|
var Z, ne;
|
9584
9584
|
return [createVNode(KgForm, {
|
9585
|
-
ref:
|
9585
|
+
ref: z,
|
9586
9586
|
model: s.model.value,
|
9587
9587
|
layout: (ne = (Z = T.value) == null ? void 0 : Z.layout) != null ? ne : "vertical",
|
9588
|
-
labelCol:
|
9589
|
-
wrapperCol:
|
9588
|
+
labelCol: V.value,
|
9589
|
+
wrapperCol: K.value
|
9590
9590
|
}, {
|
9591
9591
|
default: () => [createVNode("div", {
|
9592
9592
|
ref: X
|
9593
|
-
}, [
|
9593
|
+
}, [U.value.length > 0 && createVNode(Row, {
|
9594
9594
|
gutter: 12
|
9595
|
-
}, _isSlot$7(
|
9596
|
-
default: () => [
|
9597
|
-
}),
|
9595
|
+
}, _isSlot$7(x = U.value.map(pe)) ? x : {
|
9596
|
+
default: () => [x]
|
9597
|
+
}), U.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
|
9598
9598
|
gutter: 12
|
9599
|
-
}, _isSlot$7(
|
9600
|
-
default: () => [
|
9599
|
+
}, _isSlot$7(H = A.value.map(pe)) ? H : {
|
9600
|
+
default: () => [H]
|
9601
9601
|
}), m.value && createVNode("div", {
|
9602
9602
|
style: "text-align: center; padding: 6px 0 12px;"
|
9603
9603
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -9607,22 +9607,22 @@ const getProps$p = () => ({
|
|
9607
9607
|
});
|
9608
9608
|
}
|
9609
9609
|
function ye() {
|
9610
|
-
let
|
9610
|
+
let x, H;
|
9611
9611
|
return createVNode("div", null, [createVNode(Button, {
|
9612
9612
|
type: "primary",
|
9613
|
-
ghost: !
|
9614
|
-
disabled:
|
9615
|
-
onClick:
|
9616
|
-
}, _isSlot$7(
|
9617
|
-
default: () => [
|
9613
|
+
ghost: !I.value,
|
9614
|
+
disabled: I.value,
|
9615
|
+
onClick: te
|
9616
|
+
}, _isSlot$7(x = n.t("kg.cancel")) ? x : {
|
9617
|
+
default: () => [x]
|
9618
9618
|
}), createVNode(Button, {
|
9619
9619
|
type: "primary",
|
9620
|
-
disabled:
|
9621
|
-
loading:
|
9620
|
+
disabled: O.value,
|
9621
|
+
loading: M.value,
|
9622
9622
|
danger: !!p.value,
|
9623
|
-
onClick:
|
9624
|
-
}, _isSlot$7(
|
9625
|
-
default: () => [
|
9623
|
+
onClick: J
|
9624
|
+
}, _isSlot$7(H = n.t(p.value ? "kg.delete" : "kg.save")) ? H : {
|
9625
|
+
default: () => [H]
|
9626
9626
|
})]);
|
9627
9627
|
}
|
9628
9628
|
function Se() {
|
@@ -9632,24 +9632,24 @@ const getProps$p = () => ({
|
|
9632
9632
|
}
|
9633
9633
|
function Ce() {
|
9634
9634
|
return createVNode(KgSubmitHeader, {
|
9635
|
-
isFullscreen:
|
9636
|
-
"onUpdate:isFullscreen": (
|
9635
|
+
isFullscreen: ae.isFullscreen,
|
9636
|
+
"onUpdate:isFullscreen": (x) => ae.isFullscreen = x,
|
9637
9637
|
kgShowFullscreenButton: !m.value,
|
9638
9638
|
kgShowConfigButton: !m.value && e.kgShowConfigButton,
|
9639
|
-
onKgCancel:
|
9639
|
+
onKgCancel: te
|
9640
9640
|
}, null);
|
9641
9641
|
}
|
9642
9642
|
return onUnmounted(() => {
|
9643
9643
|
s.store.dispose(a.formID);
|
9644
9644
|
}), () => createVNode(Drawer, {
|
9645
|
-
visible:
|
9645
|
+
visible: ue.value,
|
9646
9646
|
placement: "right",
|
9647
9647
|
closable: !1,
|
9648
9648
|
maskClosable: !1,
|
9649
9649
|
keyboard: !1,
|
9650
9650
|
destroyOnClose: !0,
|
9651
|
-
width:
|
9652
|
-
class:
|
9651
|
+
width: ee.value,
|
9652
|
+
class: ce.value,
|
9653
9653
|
"kg-frm-id": a.formID
|
9654
9654
|
}, {
|
9655
9655
|
title: Se,
|
@@ -9891,8 +9891,8 @@ const getProps$l = () => ({
|
|
9891
9891
|
}) => {
|
9892
9892
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
9893
9893
|
return s = watch(l, (c) => {
|
9894
|
-
var g, p, m, b, _, v, y, C, T, E,
|
9895
|
-
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (
|
9894
|
+
var g, p, m, b, _, v, y, C, T, E, w;
|
9895
|
+
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (w = u == null ? void 0 : u.button_display_type) != null ? w : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
9896
9896
|
}, {
|
9897
9897
|
immediate: !0
|
9898
9898
|
}), !1;
|
@@ -10164,10 +10164,10 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10164
10164
|
var T;
|
10165
10165
|
let y, C;
|
10166
10166
|
return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((E) => {
|
10167
|
-
var
|
10167
|
+
var w;
|
10168
10168
|
return createVNode(Menu.Item, {
|
10169
10169
|
key: E.id,
|
10170
|
-
class: E.id === ((
|
10170
|
+
class: E.id === ((w = a.currentVarGridMaster.value) == null ? void 0 : w.id) ? "selected" : "",
|
10171
10171
|
"kg-var-nam": E.grd_var_nam,
|
10172
10172
|
onClick: () => a.store.setCurrentVarGridMasterID(a.formID, E.id)
|
10173
10173
|
}, {
|
@@ -10453,296 +10453,317 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10453
10453
|
slots: t,
|
10454
10454
|
emit: r
|
10455
10455
|
}) {
|
10456
|
-
const n = inject("$dayjs", dayjs), a =
|
10457
|
-
|
10458
|
-
|
10459
|
-
}),
|
10460
|
-
|
10461
|
-
});
|
10462
|
-
const
|
10463
|
-
columns:
|
10464
|
-
scrollX:
|
10456
|
+
const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
|
10457
|
+
i.onSearch((V) => {
|
10458
|
+
G(V);
|
10459
|
+
}), i.onReset(() => {
|
10460
|
+
G(!0);
|
10461
|
+
});
|
10462
|
+
const c = ref(!1), g = ref([]), {
|
10463
|
+
columns: p,
|
10464
|
+
scrollX: m
|
10465
10465
|
} = _useColumns(), {
|
10466
|
-
isLoading:
|
10467
|
-
} = _useLoading(),
|
10468
|
-
_useResizeObserver(
|
10469
|
-
const
|
10470
|
-
var
|
10471
|
-
return ((
|
10472
|
-
}), v = computed(() => {
|
10473
|
-
var N;
|
10474
|
-
return ((N = o.varGridConfig.value) == null ? void 0 : N.aut_load_flg) === 1;
|
10475
|
-
}), y = computed(() => {
|
10476
|
-
var N;
|
10477
|
-
return ((N = o.varGridConfig.value) == null ? void 0 : N.show_bottom_left_flg) !== 0;
|
10466
|
+
isLoading: b
|
10467
|
+
} = _useLoading(), _ = ref(null);
|
10468
|
+
_useResizeObserver(_);
|
10469
|
+
const v = computed(() => s.store.getVarButtonSearch(s.formID)), y = computed(() => {
|
10470
|
+
var V;
|
10471
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
|
10478
10472
|
}), C = computed(() => {
|
10479
|
-
var
|
10480
|
-
return ((
|
10473
|
+
var V;
|
10474
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
|
10481
10475
|
}), T = computed(() => {
|
10482
|
-
var
|
10483
|
-
return (
|
10476
|
+
var V;
|
10477
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
|
10484
10478
|
}), E = computed(() => {
|
10485
|
-
var
|
10486
|
-
return
|
10487
|
-
}),
|
10488
|
-
var
|
10489
|
-
return (
|
10479
|
+
var V;
|
10480
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
|
10481
|
+
}), w = computed(() => {
|
10482
|
+
var V, K;
|
10483
|
+
return (K = (V = s.varGridConfig.value) == null ? void 0 : V.id_clm) != null ? K : "id";
|
10490
10484
|
}), k = computed(() => {
|
10491
|
-
var
|
10492
|
-
return (
|
10493
|
-
}),
|
10494
|
-
var
|
10495
|
-
|
10485
|
+
var V, K;
|
10486
|
+
return JSON.parse((K = (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? K : "[]");
|
10487
|
+
}), F = computed(() => {
|
10488
|
+
var V;
|
10489
|
+
return (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
|
10490
|
+
}), R = computed(() => {
|
10491
|
+
var V, K;
|
10492
|
+
return (K = (V = v.value) == null ? void 0 : V.cmd) != null ? K : null;
|
10493
|
+
}), $ = computed(() => {
|
10494
|
+
var K, W, q, te, J, de, fe;
|
10495
|
+
let V = {
|
10496
10496
|
pageNo: I.pageIndex,
|
10497
10497
|
pageSize: I.pageSize,
|
10498
|
-
|
10499
|
-
...(
|
10498
|
+
...O,
|
10499
|
+
...(W = (K = i.model) == null ? void 0 : K.value) != null ? W : {}
|
10500
10500
|
};
|
10501
|
-
return
|
10502
|
-
...
|
10503
|
-
...KgVarUtil.parseCommandParameter((
|
10504
|
-
}), (J =
|
10505
|
-
...
|
10506
|
-
...KgVarUtil.parseCommandParameter((
|
10507
|
-
}), ((
|
10508
|
-
}),
|
10509
|
-
var
|
10510
|
-
if (((
|
10501
|
+
return v.value && (V = {
|
10502
|
+
...V,
|
10503
|
+
...KgVarUtil.parseCommandParameter((te = (q = v.value) == null ? void 0 : q.cmd_prm) != null ? te : "")
|
10504
|
+
}), (J = s.varGridConfig.value) != null && J.cmd_prm && (V = {
|
10505
|
+
...V,
|
10506
|
+
...KgVarUtil.parseCommandParameter((de = s.varGridConfig.value.cmd_prm) != null ? de : "")
|
10507
|
+
}), ((fe = s.varGridConfig.value) == null ? void 0 : fe.convert_sort_field_to_under_score_flg) === 1 && V.column && (V.column = snakeCase$1(V.column)), V;
|
10508
|
+
}), D = computed(() => {
|
10509
|
+
var V;
|
10510
|
+
if (((V = s.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
|
10511
10511
|
return {
|
10512
10512
|
fixed: "left",
|
10513
10513
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10514
|
-
hideSelectAll: !
|
10515
|
-
selectedRowKeys:
|
10514
|
+
hideSelectAll: !y.value,
|
10515
|
+
selectedRowKeys: M,
|
10516
10516
|
preserveSelectedRowKeys: !1,
|
10517
|
-
onSelect: (
|
10518
|
-
onChange: (
|
10517
|
+
onSelect: (K) => B(K),
|
10518
|
+
onChange: (K) => y.value && N(K)
|
10519
10519
|
};
|
10520
|
-
}),
|
10521
|
-
let
|
10522
|
-
return !
|
10523
|
-
}),
|
10520
|
+
}), U = computed(() => {
|
10521
|
+
let V = "kg-table";
|
10522
|
+
return !T.value && !E.value && (V += " kg-table--no-bottom"), V;
|
10523
|
+
}), A = ref([]), M = ref([]), I = reactive({
|
10524
10524
|
pageIndex: 1,
|
10525
10525
|
pageSize: 10,
|
10526
10526
|
total: 0
|
10527
|
-
}),
|
10527
|
+
}), O = reactive({
|
10528
10528
|
column: void 0,
|
10529
10529
|
order: void 0
|
10530
|
-
}),
|
10531
|
-
|
10530
|
+
}), P = watch(F, (V) => {
|
10531
|
+
V && (setTimeout(() => P()), I.pageSize = V), c.value = !0;
|
10532
10532
|
});
|
10533
|
-
watch(
|
10534
|
-
|
10535
|
-
}), watch([
|
10536
|
-
|
10533
|
+
watch(k, (V) => {
|
10534
|
+
V.length > 0 && !V.includes(I.pageSize) && (I.pageSize = F.value);
|
10535
|
+
}), watch([R, C, i.isReady], ([V, K, W]) => {
|
10536
|
+
V && K && W && !u.store.getIsRetrieved(s.formID) && G(!0);
|
10537
10537
|
}, {
|
10538
10538
|
immediate: !0
|
10539
10539
|
}), onUnmounted(() => {
|
10540
|
-
|
10540
|
+
u.store.dispose(s.formID);
|
10541
10541
|
});
|
10542
|
-
function
|
10543
|
-
if (!!
|
10544
|
-
if (!
|
10545
|
-
|
10542
|
+
function L(V, K) {
|
10543
|
+
if (!!D.value) {
|
10544
|
+
if (!K) {
|
10545
|
+
M.value = [], u.store.setSelectedRows(s.formID, []);
|
10546
10546
|
return;
|
10547
10547
|
}
|
10548
|
-
switch (
|
10548
|
+
switch (V == null ? void 0 : V.detail) {
|
10549
10549
|
case 1:
|
10550
|
-
|
10551
|
-
var
|
10552
|
-
return (
|
10553
|
-
}).filter((
|
10550
|
+
M.value = [K[w.value]], u.store.setSelectedRows(s.formID, M.value.map((W) => {
|
10551
|
+
var q;
|
10552
|
+
return (q = A.value) == null ? void 0 : q.find((te) => te[w.value] === W);
|
10553
|
+
}).filter((W) => !!W));
|
10554
10554
|
break;
|
10555
10555
|
case 2:
|
10556
|
-
|
10556
|
+
u.store.emit(s.formID, "rowDoubleClick", K);
|
10557
10557
|
break;
|
10558
10558
|
}
|
10559
10559
|
}
|
10560
10560
|
}
|
10561
|
-
function
|
10562
|
-
const
|
10563
|
-
|
10561
|
+
function G(V = !1) {
|
10562
|
+
const K = watch(c, (q) => {
|
10563
|
+
q && (setTimeout(() => K()), W());
|
10564
10564
|
}, {
|
10565
10565
|
immediate: !0
|
10566
10566
|
});
|
10567
|
-
async function
|
10568
|
-
var
|
10569
|
-
if (!
|
10567
|
+
async function W() {
|
10568
|
+
var q, te;
|
10569
|
+
if (!R.value) {
|
10570
10570
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10571
|
-
VarButton:
|
10571
|
+
VarButton: v.value
|
10572
10572
|
});
|
10573
10573
|
return;
|
10574
10574
|
}
|
10575
|
-
|
10575
|
+
V && (I.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
10576
10576
|
try {
|
10577
10577
|
const J = await httpClient().request({
|
10578
10578
|
method: "GET",
|
10579
|
-
url:
|
10580
|
-
params: KgUtil.parseParams(
|
10579
|
+
url: R.value,
|
10580
|
+
params: KgUtil.parseParams($.value, s.formID, n)
|
10581
10581
|
}, {
|
10582
10582
|
successMessageMode: "none"
|
10583
10583
|
});
|
10584
|
-
|
10584
|
+
switch (!0) {
|
10585
|
+
case !J:
|
10586
|
+
A.value = [], I.total = 0;
|
10587
|
+
break;
|
10588
|
+
case isArrayLike(J):
|
10589
|
+
A.value = J, I.total = J.length;
|
10590
|
+
break;
|
10591
|
+
case ("total" in J && "records" in J):
|
10592
|
+
A.value = (q = J.records) != null ? q : [], I.total = (te = J.total) != null ? te : 0;
|
10593
|
+
break;
|
10594
|
+
}
|
10595
|
+
u.store.emit(s.formID, "retrieve", J), L(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
|
10585
10596
|
} catch (J) {
|
10586
10597
|
throw J;
|
10587
10598
|
} finally {
|
10588
|
-
|
10599
|
+
u.store.setIsRetrieving(s.formID, !1);
|
10589
10600
|
}
|
10590
10601
|
}
|
10591
10602
|
}
|
10592
|
-
function
|
10593
|
-
|
10594
|
-
var
|
10595
|
-
return (
|
10596
|
-
}).filter((
|
10603
|
+
function N(V) {
|
10604
|
+
M.value = V, u.store.setSelectedRows(s.formID, M.value.map((K) => {
|
10605
|
+
var W;
|
10606
|
+
return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === K);
|
10607
|
+
}).filter((K) => !!K));
|
10597
10608
|
}
|
10598
|
-
function
|
10599
|
-
var
|
10600
|
-
switch (
|
10609
|
+
function B(V) {
|
10610
|
+
var K, W;
|
10611
|
+
switch (y.value) {
|
10601
10612
|
case !0:
|
10602
10613
|
{
|
10603
|
-
const
|
10604
|
-
|
10614
|
+
const q = V[w.value];
|
10615
|
+
M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(K = M.value) != null ? K : [], q];
|
10605
10616
|
}
|
10606
10617
|
break;
|
10607
10618
|
case !1:
|
10608
10619
|
{
|
10609
|
-
const
|
10610
|
-
(
|
10620
|
+
const q = V[w.value];
|
10621
|
+
(W = M.value) != null && W.includes(q) ? M.value = [] : M.value = [q];
|
10611
10622
|
}
|
10612
10623
|
break;
|
10613
10624
|
}
|
10614
|
-
|
10615
|
-
var
|
10616
|
-
return (
|
10617
|
-
}).filter((
|
10625
|
+
u.store.setSelectedRows(s.formID, M.value.map((q) => {
|
10626
|
+
var te;
|
10627
|
+
return (te = A.value) == null ? void 0 : te.find((J) => J[w.value] === q);
|
10628
|
+
}).filter((q) => !!q));
|
10618
10629
|
}
|
10619
|
-
function
|
10620
|
-
|
10630
|
+
function z(V, K) {
|
10631
|
+
K.width = V, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, V);
|
10621
10632
|
}
|
10622
|
-
async function
|
10623
|
-
var
|
10624
|
-
switch (
|
10633
|
+
async function Y(V, K, W, q) {
|
10634
|
+
var te;
|
10635
|
+
switch (q.action) {
|
10625
10636
|
case "sort":
|
10626
10637
|
{
|
10627
10638
|
await nextTick();
|
10628
|
-
let J =
|
10629
|
-
J.order ? (
|
10639
|
+
let J = W;
|
10640
|
+
J.order ? (O.column = (te = J.field) != null ? te : void 0, O.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (O.column = void 0, O.order = void 0), G(!0);
|
10630
10641
|
}
|
10631
10642
|
break;
|
10632
10643
|
}
|
10633
10644
|
}
|
10634
|
-
function
|
10635
|
-
|
10645
|
+
function X(V, K) {
|
10646
|
+
V ? g.value = [K[w.value]] : g.value = [];
|
10647
|
+
}
|
10648
|
+
function re(V, K) {
|
10649
|
+
K !== I.pageSize ? (I.pageIndex = 1, I.pageSize = K) : I.pageIndex = V, G();
|
10636
10650
|
}
|
10637
|
-
function
|
10638
|
-
|
10639
|
-
var
|
10640
|
-
return (
|
10641
|
-
}).filter((
|
10651
|
+
function ee(V) {
|
10652
|
+
M.value = [V[w.value]], u.store.setSelectedRows(s.formID, M.value.map((K) => {
|
10653
|
+
var W;
|
10654
|
+
return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === K);
|
10655
|
+
}).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
10642
10656
|
}
|
10643
|
-
function
|
10644
|
-
title:
|
10645
|
-
column:
|
10657
|
+
function ue({
|
10658
|
+
title: V,
|
10659
|
+
column: K
|
10646
10660
|
}) {
|
10647
|
-
switch (
|
10661
|
+
switch (K.dataIndex) {
|
10648
10662
|
case "index":
|
10649
10663
|
return createVNode(KgTableSetting, null, null);
|
10650
10664
|
default:
|
10651
|
-
return createVNode("pre", null, [
|
10665
|
+
return createVNode("pre", null, [V]);
|
10652
10666
|
}
|
10653
10667
|
}
|
10654
|
-
function
|
10655
|
-
column:
|
10656
|
-
index:
|
10657
|
-
record:
|
10658
|
-
value:
|
10659
|
-
text:
|
10668
|
+
function ce({
|
10669
|
+
column: V,
|
10670
|
+
index: K,
|
10671
|
+
record: W,
|
10672
|
+
value: q,
|
10673
|
+
text: te
|
10660
10674
|
}) {
|
10661
10675
|
let J = "";
|
10662
|
-
|
10663
|
-
index:
|
10664
|
-
record:
|
10665
|
-
column:
|
10666
|
-
text:
|
10667
|
-
value:
|
10668
|
-
renderIndex:
|
10669
|
-
}) : J =
|
10670
|
-
const
|
10671
|
-
kgRow:
|
10676
|
+
V.customRender ? J = V.customRender({
|
10677
|
+
index: K,
|
10678
|
+
record: W,
|
10679
|
+
column: V,
|
10680
|
+
text: te,
|
10681
|
+
value: q,
|
10682
|
+
renderIndex: K
|
10683
|
+
}) : J = q;
|
10684
|
+
const de = createVNode(KgTableCell, {
|
10685
|
+
kgRow: W,
|
10672
10686
|
kgValue: J,
|
10673
|
-
kgVarName:
|
10674
|
-
onKgUpdateLinkClick: () =>
|
10687
|
+
kgVarName: V.dataIndex,
|
10688
|
+
onKgUpdateLinkClick: () => ee(W)
|
10675
10689
|
}, null);
|
10676
10690
|
return t.bodyCell ? t.bodyCell({
|
10677
|
-
value:
|
10678
|
-
record:
|
10679
|
-
index:
|
10680
|
-
column:
|
10681
|
-
defaultRender:
|
10682
|
-
}) :
|
10691
|
+
value: q,
|
10692
|
+
record: W,
|
10693
|
+
index: K,
|
10694
|
+
column: V,
|
10695
|
+
defaultRender: de
|
10696
|
+
}) : de;
|
10683
10697
|
}
|
10684
|
-
function
|
10685
|
-
return !
|
10698
|
+
function ae() {
|
10699
|
+
return !C.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
10686
10700
|
}
|
10687
|
-
return () =>
|
10688
|
-
|
10689
|
-
"
|
10690
|
-
|
10691
|
-
|
10692
|
-
|
10693
|
-
|
10694
|
-
|
10695
|
-
|
10696
|
-
|
10697
|
-
|
10698
|
-
|
10699
|
-
|
10700
|
-
|
10701
|
-
|
10702
|
-
|
10703
|
-
|
10704
|
-
|
10705
|
-
|
10706
|
-
|
10707
|
-
|
10708
|
-
|
10709
|
-
|
10710
|
-
|
10711
|
-
|
10712
|
-
|
10713
|
-
|
10714
|
-
|
10715
|
-
|
10716
|
-
|
10717
|
-
|
10718
|
-
|
10719
|
-
|
10720
|
-
|
10721
|
-
|
10722
|
-
|
10723
|
-
|
10724
|
-
|
10725
|
-
|
10726
|
-
|
10727
|
-
|
10728
|
-
|
10729
|
-
|
10730
|
-
|
10731
|
-
|
10732
|
-
|
10733
|
-
|
10734
|
-
|
10735
|
-
|
10736
|
-
|
10737
|
-
|
10738
|
-
|
10739
|
-
|
10740
|
-
|
10741
|
-
|
10742
|
-
|
10743
|
-
|
10744
|
-
|
10745
|
-
|
10701
|
+
return () => {
|
10702
|
+
var V;
|
10703
|
+
return createVNode("div", {
|
10704
|
+
class: U.value,
|
10705
|
+
"kg-frm-id": s.formID,
|
10706
|
+
ref: _
|
10707
|
+
}, [createVNode(Table, {
|
10708
|
+
class: "kg-flex-table",
|
10709
|
+
size: "small",
|
10710
|
+
scroll: {
|
10711
|
+
x: m.value,
|
10712
|
+
y: "auto"
|
10713
|
+
},
|
10714
|
+
pagination: !1,
|
10715
|
+
showSorterTooltip: !1,
|
10716
|
+
columns: p.value,
|
10717
|
+
dataSource: A.value,
|
10718
|
+
loading: b.value,
|
10719
|
+
rowKey: w.value,
|
10720
|
+
rowSelection: D.value,
|
10721
|
+
expandColumnWidth: 28,
|
10722
|
+
expandedRowKeys: g.value,
|
10723
|
+
customRow: (K) => ({
|
10724
|
+
onClick: (W) => L(W, K)
|
10725
|
+
}),
|
10726
|
+
onResizeColumn: z,
|
10727
|
+
onChange: Y,
|
10728
|
+
onExpand: X
|
10729
|
+
}, {
|
10730
|
+
headerCell: ue,
|
10731
|
+
bodyCell: ce,
|
10732
|
+
emptyText: ae,
|
10733
|
+
expandedRowRender: (V = a == null ? void 0 : a.KgTable) == null ? void 0 : V.expandedRowRender
|
10734
|
+
}), (T.value || E.value) && createVNode("div", {
|
10735
|
+
class: "kg-table-bottom"
|
10736
|
+
}, [createVNode("div", {
|
10737
|
+
class: "left"
|
10738
|
+
}, [T.value && createVNode(KgTableInfo, {
|
10739
|
+
kgShowClearCheck: M.value.length > 0,
|
10740
|
+
kgShowClearTable: I.total > 0,
|
10741
|
+
kgShowLocate: M.value.length === 1,
|
10742
|
+
kgTotal: M.value.length,
|
10743
|
+
kgDisabled: b.value
|
10744
|
+
}, null)]), createVNode("div", {
|
10745
|
+
class: "right"
|
10746
|
+
}, [E.value && createVNode(Pagination, {
|
10747
|
+
size: "default",
|
10748
|
+
current: I.pageIndex,
|
10749
|
+
pageSize: I.pageSize,
|
10750
|
+
pageSizeOptions: k.value.map((K) => String(K)),
|
10751
|
+
total: I.total,
|
10752
|
+
showSizeChanger: !0,
|
10753
|
+
showQuickJumper: !1,
|
10754
|
+
hideOnSinglePage: !1,
|
10755
|
+
disabled: b.value || I.total === 0,
|
10756
|
+
locale: {
|
10757
|
+
page: ""
|
10758
|
+
},
|
10759
|
+
showTotal: (K, W) => o.t("kg.KgTable.totalText", {
|
10760
|
+
from: W[0],
|
10761
|
+
to: W[1],
|
10762
|
+
total: K
|
10763
|
+
}),
|
10764
|
+
onChange: (K, W) => re(K, W)
|
10765
|
+
}, null)])])]);
|
10766
|
+
};
|
10746
10767
|
}
|
10747
10768
|
}), getProps$f = () => ({
|
10748
10769
|
kgButton: Object,
|
@@ -11068,7 +11089,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11068
11089
|
}
|
11069
11090
|
let u = null;
|
11070
11091
|
const c = async () => {
|
11071
|
-
var _, v, y, C, T, E,
|
11092
|
+
var _, v, y, C, T, E, w;
|
11072
11093
|
u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
11073
11094
|
const b = a.selectedRows.value;
|
11074
11095
|
try {
|
@@ -11077,7 +11098,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11077
11098
|
url: l,
|
11078
11099
|
params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
|
11079
11100
|
data: b != null ? b : []
|
11080
|
-
}), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((
|
11101
|
+
}), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((w = (E = n.search).value) == null || w.call(E, !0));
|
11081
11102
|
} catch (k) {
|
11082
11103
|
console.error(k);
|
11083
11104
|
} finally {
|
@@ -11854,7 +11875,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11854
11875
|
row: y,
|
11855
11876
|
model: C
|
11856
11877
|
}) => {
|
11857
|
-
var E,
|
11878
|
+
var E, w, k;
|
11858
11879
|
const T = i.store.getSystemVarProfileDetails(i.formID);
|
11859
11880
|
switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
|
11860
11881
|
case b:
|
@@ -11865,24 +11886,24 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11865
11886
|
if (y != null && y.id)
|
11866
11887
|
try {
|
11867
11888
|
s.store.setIsLoading(n.formID, !0);
|
11868
|
-
const
|
11889
|
+
const F = await QueryByID({
|
11869
11890
|
params: {
|
11870
11891
|
id: y.id
|
11871
11892
|
}
|
11872
11893
|
});
|
11873
|
-
l.value = l.value.map((
|
11874
|
-
var
|
11875
|
-
const
|
11876
|
-
return
|
11877
|
-
|
11878
|
-
...
|
11879
|
-
id:
|
11880
|
-
} :
|
11894
|
+
l.value = l.value.map(($) => {
|
11895
|
+
var U;
|
11896
|
+
const D = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((A) => A.var_nam === $.var_nam);
|
11897
|
+
return D ? {
|
11898
|
+
...$,
|
11899
|
+
...D,
|
11900
|
+
id: $.id
|
11901
|
+
} : $;
|
11881
11902
|
});
|
11882
|
-
const
|
11883
|
-
u.value = l.value.filter((
|
11884
|
-
} catch (
|
11885
|
-
throw
|
11903
|
+
const R = (w = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map(($) => $.var_nam)) != null ? w : [];
|
11904
|
+
u.value = l.value.filter(($) => R.includes($.var_nam)).map(($) => $.id);
|
11905
|
+
} catch (F) {
|
11906
|
+
throw F;
|
11886
11907
|
} finally {
|
11887
11908
|
s.store.setIsLoading(n.formID, !1);
|
11888
11909
|
}
|
@@ -11936,18 +11957,18 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11936
11957
|
showSearch: !0,
|
11937
11958
|
showSelectAll: !1,
|
11938
11959
|
searchPlaceholder: " ",
|
11939
|
-
filterOption: (E,
|
11960
|
+
filterOption: (E, w) => {
|
11940
11961
|
var k;
|
11941
|
-
return !!((k =
|
11962
|
+
return !!((k = w.var_nam) != null && k.includes(E));
|
11942
11963
|
}
|
11943
11964
|
}, {
|
11944
11965
|
children: ({
|
11945
11966
|
direction: E,
|
11946
|
-
filteredItems:
|
11967
|
+
filteredItems: w,
|
11947
11968
|
selectedKeys: k,
|
11948
|
-
disabled:
|
11949
|
-
onItemSelectAll:
|
11950
|
-
onItemSelect:
|
11969
|
+
disabled: F,
|
11970
|
+
onItemSelectAll: R,
|
11971
|
+
onItemSelect: $
|
11951
11972
|
}) => createVNode(Table, {
|
11952
11973
|
pagination: !1,
|
11953
11974
|
class: "kg-flex-table",
|
@@ -11958,15 +11979,15 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11958
11979
|
},
|
11959
11980
|
columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11960
11981
|
rowKey: "id",
|
11961
|
-
dataSource:
|
11962
|
-
customRow: (
|
11963
|
-
onClick: (
|
11982
|
+
dataSource: w,
|
11983
|
+
customRow: (D) => ({
|
11984
|
+
onClick: (U) => m(U, D, E, k)
|
11964
11985
|
}),
|
11965
11986
|
rowSelection: g({
|
11966
|
-
disabled:
|
11987
|
+
disabled: F,
|
11967
11988
|
selectedKeys: k,
|
11968
|
-
onItemSelectAll:
|
11969
|
-
onItemSelect:
|
11989
|
+
onItemSelectAll: R,
|
11990
|
+
onItemSelect: $
|
11970
11991
|
})
|
11971
11992
|
}, null)
|
11972
11993
|
})
|
@@ -11986,9 +12007,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11986
12007
|
disabled: b || C.disabled
|
11987
12008
|
}),
|
11988
12009
|
onSelectAll(C, T) {
|
11989
|
-
const E = T.filter((
|
11990
|
-
key:
|
11991
|
-
}) =>
|
12010
|
+
const E = T.filter((w) => !w.disabled).map(({
|
12011
|
+
key: w
|
12012
|
+
}) => w);
|
11992
12013
|
v(E, C);
|
11993
12014
|
},
|
11994
12015
|
onSelect({
|
@@ -12127,24 +12148,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12127
12148
|
const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
|
12128
12149
|
_useLayoutHeaderResizeObserver();
|
12129
12150
|
const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
|
12130
|
-
var
|
12131
|
-
return s.value > 0 ? !1 : ((
|
12151
|
+
var N;
|
12152
|
+
return s.value > 0 ? !1 : ((N = i.value) == null ? void 0 : N.header_teleport_flg) !== 0;
|
12132
12153
|
}), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
|
12133
|
-
var
|
12134
|
-
return !!(o.isRetrieving.value || ((
|
12154
|
+
var N, B;
|
12155
|
+
return !!(o.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
|
12135
12156
|
}), m = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), _ = ref(null), v = ref({
|
12136
12157
|
kgHeight: g.value
|
12137
12158
|
}), y = ref({
|
12138
12159
|
visible: !1
|
12139
12160
|
});
|
12140
12161
|
let C;
|
12141
|
-
const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)),
|
12142
|
-
var
|
12143
|
-
if (n.t((
|
12144
|
-
return n.t((
|
12162
|
+
const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), w = computed(() => {
|
12163
|
+
var N, B, z;
|
12164
|
+
if (n.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
|
12165
|
+
return n.t((z = E.value) == null ? void 0 : z.var_nam).value;
|
12145
12166
|
}), k = computed(() => {
|
12146
|
-
var
|
12147
|
-
switch ((
|
12167
|
+
var N;
|
12168
|
+
switch ((N = E.value) == null ? void 0 : N.primary_flg) {
|
12148
12169
|
case 1:
|
12149
12170
|
return !0;
|
12150
12171
|
case 0:
|
@@ -12152,20 +12173,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12152
12173
|
default:
|
12153
12174
|
return !0;
|
12154
12175
|
}
|
12155
|
-
}),
|
12156
|
-
var
|
12157
|
-
return ((
|
12158
|
-
}),
|
12159
|
-
let
|
12160
|
-
return
|
12161
|
-
});
|
12162
|
-
watch(n.currentVarProfileDetails, (
|
12163
|
-
if (
|
12164
|
-
const
|
12165
|
-
|
12166
|
-
|
12167
|
-
}), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(
|
12168
|
-
|
12176
|
+
}), F = computed(() => {
|
12177
|
+
var N;
|
12178
|
+
return ((N = i.value) == null ? void 0 : N.vis_flg) === 1;
|
12179
|
+
}), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), $ = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
|
12180
|
+
let N = "kg-search";
|
12181
|
+
return F.value && (N += " kg-search--visible"), l.value && (N += " kg-search--teleport"), N;
|
12182
|
+
});
|
12183
|
+
watch(n.currentVarProfileDetails, (N) => {
|
12184
|
+
if (N) {
|
12185
|
+
const B = {};
|
12186
|
+
N.forEach((z) => {
|
12187
|
+
B[z.var_nam] = "";
|
12188
|
+
}), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (C == null || C(), C = watch(_, (z) => {
|
12189
|
+
z && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12169
12190
|
}, {
|
12170
12191
|
immediate: !0
|
12171
12192
|
})) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
@@ -12175,49 +12196,49 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12175
12196
|
}), onUnmounted(() => {
|
12176
12197
|
a.store.dispose(n.formID);
|
12177
12198
|
});
|
12178
|
-
function
|
12179
|
-
|
12199
|
+
function U(N = !1) {
|
12200
|
+
F.value ? _.value && _.value.validate().then(() => {
|
12180
12201
|
a.store.emit(n.formID, "search", {
|
12181
|
-
resetPageIndex:
|
12202
|
+
resetPageIndex: N
|
12182
12203
|
});
|
12183
|
-
}).catch((
|
12204
|
+
}).catch((B) => {
|
12184
12205
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12185
|
-
e:
|
12206
|
+
e: B
|
12186
12207
|
});
|
12187
12208
|
}) : a.store.emit(n.formID, "search", {
|
12188
|
-
resetPageIndex:
|
12209
|
+
resetPageIndex: N
|
12189
12210
|
});
|
12190
12211
|
}
|
12191
|
-
a.store.setSearchFn(n.formID,
|
12192
|
-
function
|
12193
|
-
var
|
12194
|
-
(
|
12212
|
+
a.store.setSearchFn(n.formID, U);
|
12213
|
+
function A() {
|
12214
|
+
var N;
|
12215
|
+
(N = _.value) == null || N.resetFields(), F.value ? _.value && _.value.validate().then(() => {
|
12195
12216
|
a.store.emit(n.formID, "reset");
|
12196
|
-
}).catch((
|
12217
|
+
}).catch((B) => {
|
12197
12218
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12198
|
-
e:
|
12219
|
+
e: B
|
12199
12220
|
});
|
12200
12221
|
}) : a.store.emit(n.formID, "reset");
|
12201
12222
|
}
|
12202
|
-
a.store.setResetFn(n.formID,
|
12203
|
-
function
|
12204
|
-
return
|
12223
|
+
a.store.setResetFn(n.formID, A);
|
12224
|
+
function M() {
|
12225
|
+
return U(!0), Promise.resolve(!0);
|
12205
12226
|
}
|
12206
|
-
function
|
12207
|
-
var
|
12227
|
+
function I() {
|
12228
|
+
var N;
|
12208
12229
|
return createVNode("div", {
|
12209
12230
|
class: "title",
|
12210
12231
|
onClick: G
|
12211
|
-
}, [((
|
12232
|
+
}, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
|
12212
12233
|
class: "kg-search-title-left",
|
12213
|
-
onClick: (
|
12214
|
-
|
12234
|
+
onClick: (B) => {
|
12235
|
+
B.stopPropagation(), B.preventDefault();
|
12215
12236
|
}
|
12216
12237
|
}, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
12217
12238
|
}
|
12218
|
-
function
|
12219
|
-
var
|
12220
|
-
return ((
|
12239
|
+
function O() {
|
12240
|
+
var N, B, z, Y;
|
12241
|
+
return ((z = (B = (N = n.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
12221
12242
|
value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
|
12222
12243
|
"onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
|
12223
12244
|
disabled: m.value,
|
@@ -12225,10 +12246,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12225
12246
|
}, {
|
12226
12247
|
default: () => {
|
12227
12248
|
var X, re;
|
12228
|
-
return (re = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((
|
12229
|
-
value:
|
12249
|
+
return (re = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((ee) => createVNode(Select.Option, {
|
12250
|
+
value: ee.id
|
12230
12251
|
}, {
|
12231
|
-
default: () => [n.t(
|
12252
|
+
default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
12232
12253
|
}));
|
12233
12254
|
},
|
12234
12255
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
@@ -12246,46 +12267,46 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12246
12267
|
hostFormID: n.formID
|
12247
12268
|
}, null)]);
|
12248
12269
|
}
|
12249
|
-
function
|
12250
|
-
var
|
12251
|
-
return createVNode(Fragment, null, [
|
12270
|
+
function P() {
|
12271
|
+
var N, B, z, Y, X;
|
12272
|
+
return createVNode(Fragment, null, [O(), !(((N = E.value) == null ? void 0 : N.permission_type) !== 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
12252
12273
|
type: "primary",
|
12253
12274
|
ghost: !p.value,
|
12254
12275
|
disabled: p.value,
|
12255
|
-
onClick:
|
12276
|
+
onClick: A,
|
12256
12277
|
class: "kg-search-btn-reset"
|
12257
12278
|
}, {
|
12258
12279
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
12259
12280
|
}), createVNode(KgButton.Item, {
|
12260
12281
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
12261
|
-
kgVarName: (
|
12282
|
+
kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
|
12262
12283
|
kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
|
12263
|
-
kgText:
|
12284
|
+
kgText: w.value,
|
12264
12285
|
kgColor: (X = E.value) == null ? void 0 : X.color,
|
12265
12286
|
kgPrimary: k.value,
|
12266
12287
|
kgLoading: b.value,
|
12267
|
-
onKgClick:
|
12288
|
+
onKgClick: M
|
12268
12289
|
}, null)]);
|
12269
12290
|
}
|
12270
12291
|
function L() {
|
12271
12292
|
return createVNode(Spin, {
|
12272
|
-
spinning:
|
12293
|
+
spinning: $.value
|
12273
12294
|
}, {
|
12274
12295
|
default: () => {
|
12275
|
-
var
|
12296
|
+
var N;
|
12276
12297
|
return [createVNode(KgForm, {
|
12277
12298
|
ref: _,
|
12278
|
-
model: (
|
12299
|
+
model: (N = a.model.value) != null ? N : {}
|
12279
12300
|
}, {
|
12280
12301
|
default: () => [createVNode(Row, {
|
12281
12302
|
gutter: 6
|
12282
12303
|
}, {
|
12283
12304
|
default: () => {
|
12284
|
-
var
|
12285
|
-
return [(
|
12286
|
-
kgVarName:
|
12305
|
+
var B;
|
12306
|
+
return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
|
12307
|
+
kgVarName: z.var_nam,
|
12287
12308
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
12288
|
-
onKgSubmit: () =>
|
12309
|
+
onKgSubmit: () => U(!0)
|
12289
12310
|
}, null))];
|
12290
12311
|
}
|
12291
12312
|
})]
|
@@ -12298,13 +12319,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12298
12319
|
}
|
12299
12320
|
return () => createVNode(KgResizable, {
|
12300
12321
|
kgHeight: v.value.kgHeight,
|
12301
|
-
"onUpdate:kgHeight": (
|
12322
|
+
"onUpdate:kgHeight": (N) => v.value.kgHeight = N,
|
12302
12323
|
kgMinHeight: g.value,
|
12303
12324
|
kgMaxHeight: c.value,
|
12304
|
-
class:
|
12325
|
+
class: D.value,
|
12305
12326
|
"kg-frm-id": n.formID
|
12306
12327
|
}, {
|
12307
|
-
default: () => [
|
12328
|
+
default: () => [F.value && createVNode("div", {
|
12308
12329
|
class: "ant-collapse ant-collapse-icon-position-left"
|
12309
12330
|
}, [createVNode("div", {
|
12310
12331
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
@@ -12315,11 +12336,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12315
12336
|
default: () => [createVNode("div", {
|
12316
12337
|
class: "ant-collapse-header"
|
12317
12338
|
}, [createVNode(Spin, {
|
12318
|
-
spinning:
|
12339
|
+
spinning: R.value
|
12319
12340
|
}, {
|
12320
|
-
default: () => [
|
12341
|
+
default: () => [I(), createVNode("div", {
|
12321
12342
|
class: "ant-collapse-extra"
|
12322
|
-
}, [
|
12343
|
+
}, [P()])]
|
12323
12344
|
})])]
|
12324
12345
|
}), createVNode("div", {
|
12325
12346
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -12391,13 +12412,13 @@ function useMagicKeys(e = {}) {
|
|
12391
12412
|
}
|
12392
12413
|
function m(_, v) {
|
12393
12414
|
var y, C;
|
12394
|
-
const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(),
|
12415
|
+
const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(), w = [E, T].filter(Boolean);
|
12395
12416
|
E && (v ? s.add(_.code) : s.delete(_.code));
|
12396
|
-
for (const k of
|
12417
|
+
for (const k of w)
|
12397
12418
|
c.add(k), g(k, v);
|
12398
12419
|
T === "meta" && !v ? (u.forEach((k) => {
|
12399
12420
|
s.delete(k), g(k, !1);
|
12400
|
-
}), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...
|
12421
|
+
}), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...w].forEach((k) => u.add(k));
|
12401
12422
|
}
|
12402
12423
|
r && (useEventListener(r, "keydown", (_) => (m(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (m(_, !1), o(_)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
12403
12424
|
const b = new Proxy(l, {
|
@@ -12796,112 +12817,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12796
12817
|
columnWidth: 32,
|
12797
12818
|
hideSelectAll: !0,
|
12798
12819
|
selectedRowKeys: g,
|
12799
|
-
onSelect: (
|
12820
|
+
onSelect: (A) => F(A)
|
12800
12821
|
}), m = ref({
|
12801
12822
|
visible: !1
|
12802
12823
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
12803
|
-
var
|
12804
|
-
return !!c.value || ((
|
12824
|
+
var A;
|
12825
|
+
return !!c.value || ((A = n.getSelectedVarCatalog) == null ? void 0 : A.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12805
12826
|
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12806
|
-
watch(() => n.getSelectedVar, (
|
12807
|
-
|
12827
|
+
watch(() => n.getSelectedVar, (A) => {
|
12828
|
+
A ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12808
12829
|
}, {
|
12809
12830
|
immediate: !0
|
12810
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12811
|
-
var
|
12812
|
-
l.value.var_text = (
|
12831
|
+
}), watch(() => n.getSelectedVarCatalog, async (A) => {
|
12832
|
+
var M, I;
|
12833
|
+
l.value.var_text = (M = A == null ? void 0 : A.var_text) != null ? M : "", (I = i.value) == null || I.clearValidate();
|
12813
12834
|
});
|
12814
|
-
async function C(
|
12815
|
-
var
|
12835
|
+
async function C(A = !1) {
|
12836
|
+
var M, I, O;
|
12816
12837
|
a.value = !0;
|
12817
12838
|
try {
|
12818
12839
|
const {
|
12819
|
-
records:
|
12840
|
+
records: P
|
12820
12841
|
} = await List({
|
12821
12842
|
params: {
|
12822
12843
|
pageNo: 1,
|
12823
12844
|
pageSize: 999,
|
12824
12845
|
frm_id: e == null ? void 0 : e.value,
|
12825
|
-
var_nam: (
|
12846
|
+
var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
|
12826
12847
|
column: "frm_id,locale_id,cust_lvl",
|
12827
12848
|
order: "asc"
|
12828
12849
|
}
|
12829
12850
|
});
|
12830
|
-
if (c.value = null, u.value =
|
12851
|
+
if (c.value = null, u.value = P != null ? P : [], A) {
|
12831
12852
|
const L = u.value.find((G) => {
|
12832
|
-
var
|
12833
|
-
return G.id === ((
|
12853
|
+
var N;
|
12854
|
+
return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
|
12834
12855
|
});
|
12835
12856
|
n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
|
12836
12857
|
} else
|
12837
|
-
n.setSelectedVarCatalog((
|
12838
|
-
} catch (
|
12839
|
-
Logger.debug(
|
12858
|
+
n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
|
12859
|
+
} catch (P) {
|
12860
|
+
Logger.debug(P == null ? void 0 : P.message);
|
12840
12861
|
} finally {
|
12841
12862
|
a.value = !1;
|
12842
12863
|
}
|
12843
12864
|
}
|
12844
12865
|
async function T() {
|
12845
|
-
var
|
12866
|
+
var A, M, I;
|
12846
12867
|
try {
|
12847
|
-
o.value = !0, await ((
|
12848
|
-
const
|
12849
|
-
...(
|
12850
|
-
var_text: (
|
12868
|
+
o.value = !0, await ((A = i.value) == null ? void 0 : A.validate());
|
12869
|
+
const O = new VarCatalog({
|
12870
|
+
...(M = n.getSelectedVarCatalog) != null ? M : {},
|
12871
|
+
var_text: (I = l.value) == null ? void 0 : I.var_text
|
12851
12872
|
});
|
12852
|
-
|
12853
|
-
data:
|
12873
|
+
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
12874
|
+
data: O
|
12854
12875
|
}, {
|
12855
12876
|
successMessageMode: "none"
|
12856
12877
|
}), message.success({
|
12857
12878
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12858
12879
|
}), await C()) : (await Edit({
|
12859
|
-
data:
|
12880
|
+
data: O
|
12860
12881
|
}, {
|
12861
12882
|
successMessageMode: "none"
|
12862
12883
|
}), message.success({
|
12863
12884
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12864
12885
|
}), await C(!0)) : (await Add({
|
12865
|
-
data:
|
12886
|
+
data: O
|
12866
12887
|
}, {
|
12867
12888
|
successMessageMode: "none"
|
12868
12889
|
}), message.success({
|
12869
12890
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12870
12891
|
}), await C()), r.retrieve(e == null ? void 0 : e.value);
|
12871
|
-
} catch (
|
12872
|
-
KgUtil.throwIfNotFormError(
|
12892
|
+
} catch (O) {
|
12893
|
+
KgUtil.throwIfNotFormError(O);
|
12873
12894
|
} finally {
|
12874
12895
|
o.value = !1;
|
12875
12896
|
}
|
12876
12897
|
}
|
12877
12898
|
function E({
|
12878
|
-
isAllForm:
|
12879
|
-
isAllLanguage:
|
12899
|
+
isAllForm: A,
|
12900
|
+
isAllLanguage: M
|
12880
12901
|
}) {
|
12881
|
-
var
|
12902
|
+
var I, O, P;
|
12882
12903
|
c.value = new VarCatalog({
|
12883
12904
|
id: "",
|
12884
12905
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12885
|
-
grp_nam: (
|
12886
|
-
var_nam: (
|
12887
|
-
frm_id:
|
12888
|
-
locale_id:
|
12906
|
+
grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
|
12907
|
+
var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
|
12908
|
+
frm_id: A || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12909
|
+
locale_id: M ? "ALL" : (P = t.locale) == null ? void 0 : P.value,
|
12889
12910
|
var_text: ""
|
12890
12911
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
12891
12912
|
}
|
12892
|
-
function
|
12893
|
-
var
|
12913
|
+
function w() {
|
12914
|
+
var M;
|
12894
12915
|
u.value = without$1(u.value, c.value), c.value = null;
|
12895
|
-
const
|
12896
|
-
n.setSelectedVarCatalog(
|
12916
|
+
const A = (M = u.value[0]) != null ? M : null;
|
12917
|
+
n.setSelectedVarCatalog(A), g.value = A ? [A.id] : [];
|
12897
12918
|
}
|
12898
12919
|
function k() {
|
12899
12920
|
KgUtil.confirm({
|
12900
12921
|
onOk: async () => {
|
12901
|
-
var
|
12922
|
+
var A;
|
12902
12923
|
await Delete({
|
12903
12924
|
params: {
|
12904
|
-
id: (
|
12925
|
+
id: (A = n.getSelectedVarCatalog) == null ? void 0 : A.id
|
12905
12926
|
}
|
12906
12927
|
}, {
|
12907
12928
|
successMessageMode: "none",
|
@@ -12912,23 +12933,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12912
12933
|
}
|
12913
12934
|
});
|
12914
12935
|
}
|
12915
|
-
function
|
12916
|
-
var
|
12917
|
-
((
|
12936
|
+
function F(A) {
|
12937
|
+
var M;
|
12938
|
+
((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== A.id && (unref(c) ? KgUtil.confirm({
|
12918
12939
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12919
12940
|
onOk: () => {
|
12920
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
12941
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(A)), g.value = [A.id];
|
12921
12942
|
}
|
12922
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12943
|
+
}) : (n.setSelectedVarCatalog(unref(A)), g.value = [A.id]));
|
12923
12944
|
}
|
12924
|
-
function
|
12945
|
+
function R() {
|
12925
12946
|
m.value.visible = !0;
|
12926
12947
|
}
|
12927
|
-
function
|
12948
|
+
function $() {
|
12928
12949
|
return createVNode("div", {
|
12929
12950
|
class: "buttons"
|
12930
12951
|
}, [createVNode(Button, {
|
12931
|
-
onClick:
|
12952
|
+
onClick: R,
|
12932
12953
|
disabled: b.value,
|
12933
12954
|
type: "primary"
|
12934
12955
|
}, {
|
@@ -12943,8 +12964,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12943
12964
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
12944
12965
|
})]);
|
12945
12966
|
}
|
12946
|
-
function
|
12947
|
-
let
|
12967
|
+
function D() {
|
12968
|
+
let A, M;
|
12948
12969
|
return createVNode("div", {
|
12949
12970
|
class: "form"
|
12950
12971
|
}, [createVNode(Form, {
|
@@ -12961,7 +12982,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12961
12982
|
}, {
|
12962
12983
|
default: () => [createVNode(Textarea, {
|
12963
12984
|
value: l.value.var_text,
|
12964
|
-
"onUpdate:value": (
|
12985
|
+
"onUpdate:value": (I) => l.value.var_text = I,
|
12965
12986
|
disabled: !n.getSelectedVarCatalog
|
12966
12987
|
}, null), createVNode("button", {
|
12967
12988
|
hidden: !0
|
@@ -12971,26 +12992,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12971
12992
|
class: "buttons"
|
12972
12993
|
}, [createVNode(Button, {
|
12973
12994
|
disabled: v.value,
|
12974
|
-
onClick:
|
12975
|
-
}, _isSlot(
|
12976
|
-
default: () => [
|
12995
|
+
onClick: w
|
12996
|
+
}, _isSlot(A = t.t("common.cancelText")) ? A : {
|
12997
|
+
default: () => [A]
|
12977
12998
|
}), createVNode(Button, {
|
12978
12999
|
loading: o.value,
|
12979
13000
|
disabled: y.value,
|
12980
13001
|
onClick: T,
|
12981
13002
|
type: "primary"
|
12982
|
-
}, _isSlot(
|
12983
|
-
default: () => [
|
13003
|
+
}, _isSlot(M = t.t("common.save")) ? M : {
|
13004
|
+
default: () => [M]
|
12984
13005
|
})])]);
|
12985
13006
|
}
|
12986
|
-
function
|
12987
|
-
var
|
12988
|
-
let
|
12989
|
-
return
|
13007
|
+
function U(A) {
|
13008
|
+
var I;
|
13009
|
+
let M = "";
|
13010
|
+
return A.id || (M += " ant-table-row-create"), A.id === ((I = n.getSelectedVarCatalog) == null ? void 0 : I.id) && (M += " ant-table-row-selected "), M;
|
12990
13011
|
}
|
12991
13012
|
return () => createVNode("div", {
|
12992
13013
|
class: "kg-var-config-modal-var-var-catalog"
|
12993
|
-
}, [
|
13014
|
+
}, [$(), createVNode(Table, {
|
12994
13015
|
pagination: !1,
|
12995
13016
|
class: "kg-flex-table",
|
12996
13017
|
size: "small",
|
@@ -13002,14 +13023,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13002
13023
|
rowKey: "id",
|
13003
13024
|
dataSource: u.value,
|
13004
13025
|
loading: a.value,
|
13005
|
-
rowClassName:
|
13026
|
+
rowClassName: U,
|
13006
13027
|
rowSelection: p.value,
|
13007
|
-
customRow: (
|
13008
|
-
onClick: () =>
|
13028
|
+
customRow: (A) => ({
|
13029
|
+
onClick: () => F(A)
|
13009
13030
|
})
|
13010
|
-
}, null),
|
13031
|
+
}, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
|
13011
13032
|
visible: m.value.visible,
|
13012
|
-
"onUpdate:visible": (
|
13033
|
+
"onUpdate:visible": (A) => m.value.visible = A,
|
13013
13034
|
onKgOk: E
|
13014
13035
|
}, null)]);
|
13015
13036
|
}
|
@@ -13338,22 +13359,22 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13338
13359
|
customRender: ({
|
13339
13360
|
record: E
|
13340
13361
|
}) => {
|
13341
|
-
var k,
|
13342
|
-
const
|
13343
|
-
return createVNode("div", null, [createVNode("div", null, [(k =
|
13362
|
+
var k, F, R;
|
13363
|
+
const w = E;
|
13364
|
+
return createVNode("div", null, [createVNode("div", null, [(k = w.whDsc) != null ? k : " ", createTextVNode(" - "), (F = w.whId) != null ? F : " "]), createVNode("div", {
|
13344
13365
|
class: "address"
|
13345
|
-
}, [(
|
13366
|
+
}, [(R = w.adrId) != null ? R : " "])]);
|
13346
13367
|
}
|
13347
13368
|
}]), c = ref([]), g = computed(() => {
|
13348
|
-
var
|
13349
|
-
const E = (
|
13369
|
+
var w;
|
13370
|
+
const E = (w = o.value) == null ? void 0 : w.toUpperCase();
|
13350
13371
|
return c.value.filter((k) => {
|
13351
|
-
var
|
13352
|
-
return ((
|
13372
|
+
var F, R, $, D, U, A;
|
13373
|
+
return ((R = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : R.includes(E)) || ((D = ($ = k.whId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : D.includes(E)) || ((A = (U = k.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : A.includes(E));
|
13353
13374
|
});
|
13354
13375
|
}), p = computed(() => {
|
13355
|
-
var E,
|
13356
|
-
return ((
|
13376
|
+
var E, w;
|
13377
|
+
return ((w = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : w.enable) !== !1;
|
13357
13378
|
});
|
13358
13379
|
watch(n.visible, (E) => {
|
13359
13380
|
!p.value || (E ? b() : _());
|
@@ -13403,14 +13424,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13403
13424
|
l.value = !1;
|
13404
13425
|
}
|
13405
13426
|
}
|
13406
|
-
function C(E,
|
13427
|
+
function C(E, w) {
|
13407
13428
|
var k;
|
13408
13429
|
switch (E.detail) {
|
13409
13430
|
case 1:
|
13410
|
-
((k = i.value) == null ? void 0 : k.id) ===
|
13431
|
+
((k = i.value) == null ? void 0 : k.id) === w.id ? i.value = null : i.value = w;
|
13411
13432
|
break;
|
13412
13433
|
case 2:
|
13413
|
-
i.value =
|
13434
|
+
i.value = w, v();
|
13414
13435
|
break;
|
13415
13436
|
}
|
13416
13437
|
}
|
@@ -13420,8 +13441,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13420
13441
|
placement: "bottomRight"
|
13421
13442
|
}, {
|
13422
13443
|
default: () => {
|
13423
|
-
var E,
|
13424
|
-
return [((E = s.value) == null ? void 0 : E.whDsc) || ((
|
13444
|
+
var E, w;
|
13445
|
+
return [((E = s.value) == null ? void 0 : E.whDsc) || ((w = s.value) == null ? void 0 : w.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
13425
13446
|
}
|
13426
13447
|
}), createVNode(KgModal, {
|
13427
13448
|
visible: n.visible.value,
|
@@ -13463,9 +13484,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13463
13484
|
columns: u,
|
13464
13485
|
class: "kg-flex-table",
|
13465
13486
|
customRow: (E) => {
|
13466
|
-
var
|
13487
|
+
var w;
|
13467
13488
|
return {
|
13468
|
-
class: E.id === ((
|
13489
|
+
class: E.id === ((w = i.value) == null ? void 0 : w.id) ? "selected" : "",
|
13469
13490
|
onClick: (k) => C(k, E)
|
13470
13491
|
};
|
13471
13492
|
}
|