@kengic/vue 0.6.15 → 0.6.17
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -263,6 +263,7 @@ class VarGridConfig {
|
|
263
263
|
constructor(t) {
|
264
264
|
p(this, "aut_load_flg");
|
265
265
|
p(this, "button_display_type");
|
266
|
+
p(this, "check_first_row_after_retrieve");
|
266
267
|
p(this, "cmd_prm");
|
267
268
|
p(this, "convert_sort_field_to_under_score_flg");
|
268
269
|
p(this, "expand_accordion_flg");
|
@@ -282,6 +283,7 @@ class VarGridConfig {
|
|
282
283
|
switch (r) {
|
283
284
|
case "aut_load_flg":
|
284
285
|
case "button_display_type":
|
286
|
+
case "check_first_row_after_retrieve":
|
285
287
|
case "cmd_prm":
|
286
288
|
case "convert_sort_field_to_under_score_flg":
|
287
289
|
case "expand_accordion_flg":
|
@@ -1822,8 +1824,8 @@ function generate$1(e) {
|
|
1822
1824
|
r.push(c);
|
1823
1825
|
}
|
1824
1826
|
return t.theme === "dark" ? darkColorMap.map(function(u) {
|
1825
|
-
var d = u.index, m = u.opacity,
|
1826
|
-
return
|
1827
|
+
var d = u.index, m = u.opacity, b = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[d]), m * 100));
|
1828
|
+
return b;
|
1827
1829
|
}) : r;
|
1828
1830
|
}
|
1829
1831
|
var presetPrimaryColors = {
|
@@ -2179,20 +2181,20 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
2179
2181
|
}
|
2180
2182
|
setTwoToneColor("#1890ff");
|
2181
2183
|
var Icon$1 = function(t, r) {
|
2182
|
-
var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded),
|
2184
|
+
var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded), b = (a = {
|
2183
2185
|
anticon: !0
|
2184
2186
|
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), C = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", g = c;
|
2185
2187
|
g === void 0 && d && (g = -1, m.tabindex = g);
|
2186
2188
|
var _ = l ? {
|
2187
2189
|
msTransform: "rotate(".concat(l, "deg)"),
|
2188
2190
|
transform: "rotate(".concat(l, "deg)")
|
2189
|
-
} : void 0,
|
2191
|
+
} : void 0, y = normalizeTwoToneColors(u), v = _slicedToArray(y, 2), k = v[0], T = v[1];
|
2190
2192
|
return createVNode("span", _objectSpread$k({
|
2191
2193
|
role: "img",
|
2192
2194
|
"aria-label": i.name
|
2193
2195
|
}, m, {
|
2194
2196
|
onClick: d,
|
2195
|
-
class:
|
2197
|
+
class: b
|
2196
2198
|
}), [createVNode(VueIcon, {
|
2197
2199
|
class: C,
|
2198
2200
|
icon: i,
|
@@ -2999,15 +3001,15 @@ function iconToSVG(e, t) {
|
|
2999
3001
|
};
|
3000
3002
|
let o = r.body;
|
3001
3003
|
[r, a].forEach((C) => {
|
3002
|
-
const g = [], _ = C.hFlip,
|
3003
|
-
let
|
3004
|
-
_ ?
|
3004
|
+
const g = [], _ = C.hFlip, y = C.vFlip;
|
3005
|
+
let v = C.rotate;
|
3006
|
+
_ ? y ? v += 2 : (g.push(
|
3005
3007
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3006
|
-
), g.push("scale(-1 1)"), n.top = n.left = 0) :
|
3008
|
+
), g.push("scale(-1 1)"), n.top = n.left = 0) : y && (g.push(
|
3007
3009
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
3008
3010
|
), g.push("scale(1 -1)"), n.top = n.left = 0);
|
3009
3011
|
let k;
|
3010
|
-
switch (
|
3012
|
+
switch (v < 0 && (v -= Math.floor(v / 4) * 4), v = v % 4, v) {
|
3011
3013
|
case 1:
|
3012
3014
|
k = n.height / 2 + n.top, g.unshift(
|
3013
3015
|
"rotate(90 " + k.toString() + " " + k.toString() + ")"
|
@@ -3024,15 +3026,15 @@ function iconToSVG(e, t) {
|
|
3024
3026
|
);
|
3025
3027
|
break;
|
3026
3028
|
}
|
3027
|
-
|
3029
|
+
v % 2 === 1 && (n.left !== n.top && (k = n.left, n.left = n.top, n.top = k), n.width !== n.height && (k = n.width, n.width = n.height, n.height = k)), g.length && (o = '<g transform="' + g.join(" ") + '">' + o + "</g>");
|
3028
3030
|
});
|
3029
3031
|
const i = a.width, s = a.height, l = n.width, c = n.height;
|
3030
3032
|
let u, d;
|
3031
3033
|
i === null ? (d = s === null ? "1em" : s === "auto" ? c : s, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = s === null ? calculateSize(u, c / l) : s === "auto" ? c : s);
|
3032
|
-
const m = {},
|
3034
|
+
const m = {}, b = (C, g) => {
|
3033
3035
|
isUnsetKeyword(g) || (m[C] = g.toString());
|
3034
3036
|
};
|
3035
|
-
return
|
3037
|
+
return b("width", u), b("height", d), m.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
3036
3038
|
attributes: m,
|
3037
3039
|
body: o
|
3038
3040
|
};
|
@@ -3313,8 +3315,8 @@ function sendQuery(e, t, r, a) {
|
|
3313
3315
|
} else
|
3314
3316
|
i = e.resources.slice(o).concat(e.resources.slice(0, o));
|
3315
3317
|
const s = Date.now();
|
3316
|
-
let l = "pending", c = 0, u, d = null, m = [],
|
3317
|
-
typeof a == "function" &&
|
3318
|
+
let l = "pending", c = 0, u, d = null, m = [], b = [];
|
3319
|
+
typeof a == "function" && b.push(a);
|
3318
3320
|
function C() {
|
3319
3321
|
d && (clearTimeout(d), d = null);
|
3320
3322
|
}
|
@@ -3324,9 +3326,9 @@ function sendQuery(e, t, r, a) {
|
|
3324
3326
|
}), m = [];
|
3325
3327
|
}
|
3326
3328
|
function _(E, P) {
|
3327
|
-
P && (
|
3329
|
+
P && (b = []), typeof E == "function" && b.push(E);
|
3328
3330
|
}
|
3329
|
-
function
|
3331
|
+
function y() {
|
3330
3332
|
return {
|
3331
3333
|
startTime: s,
|
3332
3334
|
payload: t,
|
@@ -3337,8 +3339,8 @@ function sendQuery(e, t, r, a) {
|
|
3337
3339
|
abort: g
|
3338
3340
|
};
|
3339
3341
|
}
|
3340
|
-
function
|
3341
|
-
l = "failed",
|
3342
|
+
function v() {
|
3343
|
+
l = "failed", b.forEach((E) => {
|
3342
3344
|
E(void 0, u);
|
3343
3345
|
});
|
3344
3346
|
}
|
@@ -3360,18 +3362,18 @@ function sendQuery(e, t, r, a) {
|
|
3360
3362
|
return;
|
3361
3363
|
}
|
3362
3364
|
if (P === "abort") {
|
3363
|
-
u = I,
|
3365
|
+
u = I, v();
|
3364
3366
|
return;
|
3365
3367
|
}
|
3366
3368
|
if (A) {
|
3367
|
-
u = I, m.length || (i.length ? M() :
|
3369
|
+
u = I, m.length || (i.length ? M() : v());
|
3368
3370
|
return;
|
3369
3371
|
}
|
3370
3372
|
if (C(), k(), !e.random) {
|
3371
3373
|
const w = e.resources.indexOf(E.resource);
|
3372
3374
|
w !== -1 && w !== e.index && (e.index = w);
|
3373
3375
|
}
|
3374
|
-
l = "completed",
|
3376
|
+
l = "completed", b.forEach((w) => {
|
3375
3377
|
w(I);
|
3376
3378
|
});
|
3377
3379
|
}
|
@@ -3383,11 +3385,11 @@ function sendQuery(e, t, r, a) {
|
|
3383
3385
|
if (E === void 0) {
|
3384
3386
|
if (m.length) {
|
3385
3387
|
d = setTimeout(() => {
|
3386
|
-
C(), l === "pending" && (k(),
|
3388
|
+
C(), l === "pending" && (k(), v());
|
3387
3389
|
}, e.timeout);
|
3388
3390
|
return;
|
3389
3391
|
}
|
3390
|
-
|
3392
|
+
v();
|
3391
3393
|
return;
|
3392
3394
|
}
|
3393
3395
|
const P = {
|
@@ -3399,7 +3401,7 @@ function sendQuery(e, t, r, a) {
|
|
3399
3401
|
};
|
3400
3402
|
m.push(P), c++, d = setTimeout(M, e.rotate), r(E, t, P.callback);
|
3401
3403
|
}
|
3402
|
-
return setTimeout(M),
|
3404
|
+
return setTimeout(M), y;
|
3403
3405
|
}
|
3404
3406
|
function initRedundancy(e) {
|
3405
3407
|
const t = {
|
@@ -3664,8 +3666,8 @@ const loadIcons = (e, t) => {
|
|
3664
3666
|
const d = n[c] || (n[c] = /* @__PURE__ */ Object.create(null));
|
3665
3667
|
d[u] || (d[u] = []);
|
3666
3668
|
}), a.pending.forEach((l) => {
|
3667
|
-
const { provider: c, prefix: u, name: d } = l, m = getStorage(c, u),
|
3668
|
-
|
3669
|
+
const { provider: c, prefix: u, name: d } = l, m = getStorage(c, u), b = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
|
3670
|
+
b.has(d) || (b.add(d), n[c][u].push(d));
|
3669
3671
|
}), o.forEach((l) => {
|
3670
3672
|
const { provider: c, prefix: u } = l;
|
3671
3673
|
n[c][u].length && loadNewIcons(l, n[c][u]);
|
@@ -3801,8 +3803,8 @@ const render = (e, t) => {
|
|
3801
3803
|
_ !== !0 && _ !== "true" && delete a["aria-hidden"];
|
3802
3804
|
break;
|
3803
3805
|
default: {
|
3804
|
-
const
|
3805
|
-
|
3806
|
+
const y = customisationAliases[g];
|
3807
|
+
y ? (_ === !0 || _ === "true" || _ === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[g] === void 0 && (a[g] = _);
|
3806
3808
|
}
|
3807
3809
|
}
|
3808
3810
|
}
|
@@ -3815,7 +3817,7 @@ const render = (e, t) => {
|
|
3815
3817
|
let g = 0, _ = t.id;
|
3816
3818
|
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + g++ : "iconifyVue"), h("svg", a);
|
3817
3819
|
}
|
3818
|
-
const { body: u, width: d, height: m } = e,
|
3820
|
+
const { body: u, width: d, height: m } = e, b = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), C = iconToHTML(u, {
|
3819
3821
|
...c,
|
3820
3822
|
width: d + "",
|
3821
3823
|
height: m + ""
|
@@ -3826,7 +3828,7 @@ const render = (e, t) => {
|
|
3826
3828
|
width: fixSize(c.width),
|
3827
3829
|
height: fixSize(c.height),
|
3828
3830
|
...commonProps,
|
3829
|
-
...
|
3831
|
+
...b ? monotoneProps : coloredProps,
|
3830
3832
|
...s
|
3831
3833
|
}, h("span", a);
|
3832
3834
|
};
|
@@ -3928,7 +3930,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3928
3930
|
(function(r, a) {
|
3929
3931
|
e.exports = a();
|
3930
3932
|
})(commonjsGlobal, function() {
|
3931
|
-
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter",
|
3933
|
+
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", b = "year", C = "date", g = "Invalid Date", _ = /^(\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, v = { 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(V) {
|
3932
3934
|
var O = ["th", "st", "nd", "rd"], D = V % 100;
|
3933
3935
|
return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
|
3934
3936
|
} }, k = function(V, O, D) {
|
@@ -3945,11 +3947,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3945
3947
|
}, a: function(V) {
|
3946
3948
|
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
3947
3949
|
}, p: function(V) {
|
3948
|
-
return { M: d, y:
|
3950
|
+
return { M: d, y: b, w: u, d: c, D: C, h: l, m: s, s: i, ms: o, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
3949
3951
|
}, u: function(V) {
|
3950
3952
|
return V === void 0;
|
3951
3953
|
} }, M = "en", E = {};
|
3952
|
-
E[M] =
|
3954
|
+
E[M] = v;
|
3953
3955
|
var P = function(V) {
|
3954
3956
|
return V instanceof U;
|
3955
3957
|
}, I = function V(O, D, N) {
|
@@ -4020,19 +4022,19 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4020
4022
|
}, O.valueOf = function() {
|
4021
4023
|
return this.$d.getTime();
|
4022
4024
|
}, O.startOf = function(D, N) {
|
4023
|
-
var L = this, H = !!w.u(N) || N, K = w.p(D), G = function(ce,
|
4024
|
-
var ue = w.w(L.$u ? Date.UTC(L.$y,
|
4025
|
+
var L = this, H = !!w.u(N) || N, K = w.p(D), G = function(ce, ne) {
|
4026
|
+
var ue = w.w(L.$u ? Date.UTC(L.$y, ne, ce) : new Date(L.$y, ne, ce), L);
|
4025
4027
|
return H ? ue : ue.endOf(c);
|
4026
|
-
}, Y = function(ce,
|
4027
|
-
return w.w(L.toDate()[ce].apply(L.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(
|
4028
|
+
}, Y = function(ce, ne) {
|
4029
|
+
return w.w(L.toDate()[ce].apply(L.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), L);
|
4028
4030
|
}, Q = this.$W, q = this.$M, te = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
4029
4031
|
switch (K) {
|
4030
|
-
case
|
4032
|
+
case b:
|
4031
4033
|
return H ? G(1, 0) : G(31, 11);
|
4032
4034
|
case d:
|
4033
4035
|
return H ? G(1, q) : G(0, q + 1);
|
4034
4036
|
case u:
|
4035
|
-
var
|
4037
|
+
var oe = this.$locale().weekStart || 0, le = (Q < oe ? Q + 7 : Q) - oe;
|
4036
4038
|
return G(H ? te - le : te + (6 - le), q);
|
4037
4039
|
case c:
|
4038
4040
|
case C:
|
@@ -4049,8 +4051,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4049
4051
|
}, O.endOf = function(D) {
|
4050
4052
|
return this.startOf(D, !1);
|
4051
4053
|
}, O.$set = function(D, N) {
|
4052
|
-
var L, H = w.p(D), K = "set" + (this.$u ? "UTC" : ""), G = (L = {}, L[c] = K + "Date", L[C] = K + "Date", L[d] = K + "Month", L[
|
4053
|
-
if (H === d || H ===
|
4054
|
+
var L, H = w.p(D), K = "set" + (this.$u ? "UTC" : ""), G = (L = {}, L[c] = K + "Date", L[C] = K + "Date", L[d] = K + "Month", L[b] = K + "FullYear", L[l] = K + "Hours", L[s] = K + "Minutes", L[i] = K + "Seconds", L[o] = K + "Milliseconds", L)[H], Y = H === c ? this.$D + (N - this.$W) : N;
|
4055
|
+
if (H === d || H === b) {
|
4054
4056
|
var Q = this.clone().set(C, 1);
|
4055
4057
|
Q.$d[G](Y), Q.init(), this.$d = Q.set(C, Math.min(this.$D, Q.daysInMonth())).$d;
|
4056
4058
|
} else
|
@@ -4069,8 +4071,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4069
4071
|
};
|
4070
4072
|
if (K === d)
|
4071
4073
|
return this.set(d, this.$M + D);
|
4072
|
-
if (K ===
|
4073
|
-
return this.set(
|
4074
|
+
if (K === b)
|
4075
|
+
return this.set(b, this.$y + D);
|
4074
4076
|
if (K === c)
|
4075
4077
|
return G(1);
|
4076
4078
|
if (K === u)
|
@@ -4083,22 +4085,22 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4083
4085
|
var N = this, L = this.$locale();
|
4084
4086
|
if (!this.isValid())
|
4085
4087
|
return L.invalidDate || g;
|
4086
|
-
var H = D || "YYYY-MM-DDTHH:mm:ssZ", K = w.z(this), G = this.$H, Y = this.$m, Q = this.$M, q = L.weekdays, te = L.months, re = function(
|
4087
|
-
return
|
4088
|
-
},
|
4089
|
-
return w.s(G % 12 || 12,
|
4090
|
-
}, le = L.meridiem || function(
|
4091
|
-
var de =
|
4088
|
+
var H = D || "YYYY-MM-DDTHH:mm:ssZ", K = w.z(this), G = this.$H, Y = this.$m, Q = this.$M, q = L.weekdays, te = L.months, re = function(ne, ue, fe, de) {
|
4089
|
+
return ne && (ne[ue] || ne(N, H)) || fe[ue].slice(0, de);
|
4090
|
+
}, oe = function(ne) {
|
4091
|
+
return w.s(G % 12 || 12, ne, "0");
|
4092
|
+
}, le = L.meridiem || function(ne, ue, fe) {
|
4093
|
+
var de = ne < 12 ? "AM" : "PM";
|
4092
4094
|
return fe ? de.toLowerCase() : de;
|
4093
|
-
}, ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: w.s(Q + 1, 2, "0"), MMM: re(L.monthsShort, Q, te, 3), MMMM: re(te, Q), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: re(L.weekdaysMin, this.$W, q, 2), ddd: re(L.weekdaysShort, this.$W, q, 3), dddd: q[this.$W], H: String(G), HH: w.s(G, 2, "0"), h:
|
4094
|
-
return H.replace(
|
4095
|
-
return ue || ce[
|
4095
|
+
}, ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: w.s(Q + 1, 2, "0"), MMM: re(L.monthsShort, Q, te, 3), MMMM: re(te, Q), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: re(L.weekdaysMin, this.$W, q, 2), ddd: re(L.weekdaysShort, this.$W, q, 3), dddd: q[this.$W], H: String(G), HH: w.s(G, 2, "0"), h: oe(1), hh: oe(2), a: le(G, Y, !0), A: le(G, Y, !1), m: String(Y), mm: w.s(Y, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: K };
|
4096
|
+
return H.replace(y, function(ne, ue) {
|
4097
|
+
return ue || ce[ne] || K.replace(":", "");
|
4096
4098
|
});
|
4097
4099
|
}, O.utcOffset = function() {
|
4098
4100
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4099
4101
|
}, O.diff = function(D, N, L) {
|
4100
4102
|
var H, K = w.p(N), G = A(D), Y = (G.utcOffset() - this.utcOffset()) * a, Q = this - G, q = w.m(this, G);
|
4101
|
-
return q = (H = {}, H[
|
4103
|
+
return q = (H = {}, H[b] = q / 12, H[d] = q, H[m] = q / 3, H[u] = (Q - Y) / 6048e5, H[c] = (Q - Y) / 864e5, H[l] = Q / n, H[s] = Q / a, H[i] = Q / r, H)[K] || Q, L ? q : w.a(q);
|
4102
4104
|
}, O.daysInMonth = function() {
|
4103
4105
|
return this.endOf(d).$D;
|
4104
4106
|
}, O.$locale = function() {
|
@@ -4120,7 +4122,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4120
4122
|
return this.$d.toUTCString();
|
4121
4123
|
}, V;
|
4122
4124
|
}(), $ = U.prototype;
|
4123
|
-
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y",
|
4125
|
+
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", b], ["$D", C]].forEach(function(V) {
|
4124
4126
|
$[V[1]] = function(O) {
|
4125
4127
|
return this.$g(O, V[0], V[1]);
|
4126
4128
|
};
|
@@ -4168,35 +4170,35 @@ function filesize(e, {
|
|
4168
4170
|
standard: u = EMPTY,
|
4169
4171
|
output: d = STRING,
|
4170
4172
|
fullform: m = !1,
|
4171
|
-
fullforms:
|
4173
|
+
fullforms: b = [],
|
4172
4174
|
exponent: C = -1,
|
4173
4175
|
roundingMethod: g = ROUND,
|
4174
4176
|
precision: _ = 0
|
4175
4177
|
} = {}) {
|
4176
|
-
let
|
4178
|
+
let y = C, v = Number(e), k = [], T = 0, M = EMPTY;
|
4177
4179
|
a === -1 && u.length === 0 ? (a = 10, u = JEDEC) : a === -1 && u.length > 0 ? (u = u === IEC ? IEC : JEDEC, a = u === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, u = a === 10 || u === JEDEC ? JEDEC : IEC);
|
4178
|
-
const E = a === 10 ? 1e3 : 1024, P = m === !0, I =
|
4180
|
+
const E = a === 10 ? 1e3 : 1024, P = m === !0, I = v < 0, A = Math[g];
|
4179
4181
|
if (typeof e != "bigint" && isNaN(e))
|
4180
4182
|
throw new TypeError(INVALID_NUMBER);
|
4181
4183
|
if (typeof A !== FUNCTION)
|
4182
4184
|
throw new TypeError(INVALID_ROUND);
|
4183
|
-
if (I && (
|
4184
|
-
return
|
4185
|
-
if (
|
4186
|
-
k[0] = 0, M = k[1] = STRINGS.symbol[u][t ? BITS : BYTES][
|
4185
|
+
if (I && (v = -v), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(v) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
|
4186
|
+
return y;
|
4187
|
+
if (v === 0)
|
4188
|
+
k[0] = 0, M = k[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4187
4189
|
else {
|
4188
|
-
T =
|
4189
|
-
const w = Math.pow(10,
|
4190
|
-
k[0] = A(T * w) / w, k[0] === E &&
|
4190
|
+
T = v / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= E && y < 8 && (T = T / E, y++));
|
4191
|
+
const w = Math.pow(10, y > 0 ? n : 0);
|
4192
|
+
k[0] = A(T * w) / w, k[0] === E && y < 8 && C === -1 && (k[0] = 1, y++), M = k[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4191
4193
|
}
|
4192
4194
|
if (I && (k[0] = -k[0]), _ > 0 && (k[0] = k[0].toPrecision(_)), k[1] = c[k[1]] || k[1], o === !0 ? k[0] = k[0].toLocaleString() : o.length > 0 ? k[0] = k[0].toLocaleString(o, i) : s.length > 0 && (k[0] = k[0].toString().replace(PERIOD, s)), r && Number.isInteger(k[0]) === !1 && n > 0) {
|
4193
4195
|
const w = s || PERIOD, U = k[0].toString().split(w), $ = U[1] || EMPTY, V = $.length, O = n - V;
|
4194
4196
|
k[0] = `${U[0]}${w}${$.padEnd(V + O, ZERO)}`;
|
4195
4197
|
}
|
4196
|
-
return P && (k[1] =
|
4198
|
+
return P && (k[1] = b[y] ? b[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), d === ARRAY ? k : d === OBJECT ? {
|
4197
4199
|
value: k[0],
|
4198
4200
|
symbol: k[1],
|
4199
|
-
exponent:
|
4201
|
+
exponent: y,
|
4200
4202
|
unit: M
|
4201
4203
|
} : k.join(l);
|
4202
4204
|
}
|
@@ -5239,17 +5241,17 @@ function baseClone(e, t, r, a, n, o) {
|
|
5239
5241
|
}
|
5240
5242
|
}
|
5241
5243
|
o || (o = new Stack());
|
5242
|
-
var
|
5243
|
-
if (
|
5244
|
-
return
|
5244
|
+
var b = o.get(e);
|
5245
|
+
if (b)
|
5246
|
+
return b;
|
5245
5247
|
o.set(e, i), isSet$1(e) ? e.forEach(function(_) {
|
5246
5248
|
i.add(baseClone(_, t, r, _, e, o));
|
5247
|
-
}) : isMap$1(e) && e.forEach(function(_,
|
5248
|
-
i.set(
|
5249
|
+
}) : isMap$1(e) && e.forEach(function(_, y) {
|
5250
|
+
i.set(y, baseClone(_, t, r, y, e, o));
|
5249
5251
|
});
|
5250
5252
|
var C = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, g = u ? void 0 : C(e);
|
5251
|
-
return arrayEach(g || e, function(_,
|
5252
|
-
g && (
|
5253
|
+
return arrayEach(g || e, function(_, y) {
|
5254
|
+
g && (y = _, _ = e[y]), assignValue(i, y, baseClone(_, t, r, y, e, o));
|
5253
5255
|
}), i;
|
5254
5256
|
}
|
5255
5257
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -5287,7 +5289,7 @@ function equalArrays(e, t, r, a, n, o) {
|
|
5287
5289
|
var c = o.get(e), u = o.get(t);
|
5288
5290
|
if (c && u)
|
5289
5291
|
return c == t && u == e;
|
5290
|
-
var d = -1, m = !0,
|
5292
|
+
var d = -1, m = !0, b = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
5291
5293
|
for (o.set(e, t), o.set(t, e); ++d < s; ) {
|
5292
5294
|
var C = e[d], g = t[d];
|
5293
5295
|
if (a)
|
@@ -5298,10 +5300,10 @@ function equalArrays(e, t, r, a, n, o) {
|
|
5298
5300
|
m = !1;
|
5299
5301
|
break;
|
5300
5302
|
}
|
5301
|
-
if (
|
5302
|
-
if (!arraySome(t, function(
|
5303
|
-
if (!cacheHas(
|
5304
|
-
return
|
5303
|
+
if (b) {
|
5304
|
+
if (!arraySome(t, function(y, v) {
|
5305
|
+
if (!cacheHas(b, v) && (C === y || n(C, y, r, a, o)))
|
5306
|
+
return b.push(v);
|
5305
5307
|
})) {
|
5306
5308
|
m = !1;
|
5307
5309
|
break;
|
@@ -5371,17 +5373,17 @@ function equalObjects(e, t, r, a, n, o) {
|
|
5371
5373
|
if (!(i ? m in t : hasOwnProperty$1.call(t, m)))
|
5372
5374
|
return !1;
|
5373
5375
|
}
|
5374
|
-
var
|
5375
|
-
if (
|
5376
|
-
return
|
5376
|
+
var b = o.get(e), C = o.get(t);
|
5377
|
+
if (b && C)
|
5378
|
+
return b == t && C == e;
|
5377
5379
|
var g = !0;
|
5378
5380
|
o.set(e, t), o.set(t, e);
|
5379
5381
|
for (var _ = i; ++d < l; ) {
|
5380
5382
|
m = s[d];
|
5381
|
-
var
|
5383
|
+
var y = e[m], v = t[m];
|
5382
5384
|
if (a)
|
5383
|
-
var k = i ? a(
|
5384
|
-
if (!(k === void 0 ?
|
5385
|
+
var k = i ? a(v, y, m, t, e, o) : a(y, v, m, e, t, o);
|
5386
|
+
if (!(k === void 0 ? y === v || n(y, v, r, a, o) : k)) {
|
5385
5387
|
g = !1;
|
5386
5388
|
break;
|
5387
5389
|
}
|
@@ -5406,9 +5408,9 @@ function baseIsEqualDeep(e, t, r, a, n, o) {
|
|
5406
5408
|
if (m && !u)
|
5407
5409
|
return o || (o = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, o) : equalByTag(e, t, l, r, a, n, o);
|
5408
5410
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
5409
|
-
var
|
5410
|
-
if (
|
5411
|
-
var g =
|
5411
|
+
var b = u && hasOwnProperty.call(e, "__wrapped__"), C = d && hasOwnProperty.call(t, "__wrapped__");
|
5412
|
+
if (b || C) {
|
5413
|
+
var g = b ? e.value() : e, _ = C ? t.value() : t;
|
5412
5414
|
return o || (o = new Stack()), n(g, _, r, a, o);
|
5413
5415
|
}
|
5414
5416
|
}
|
@@ -5606,14 +5608,14 @@ function baseIntersection(e, t, r) {
|
|
5606
5608
|
var d = -1, m = s[0];
|
5607
5609
|
e:
|
5608
5610
|
for (; ++d < n && c.length < l; ) {
|
5609
|
-
var
|
5610
|
-
if (
|
5611
|
+
var b = u[d], C = t ? t(b) : b;
|
5612
|
+
if (b = r || b !== 0 ? b : 0, !(m ? cacheHas(m, C) : a(c, C, r))) {
|
5611
5613
|
for (i = o; --i; ) {
|
5612
5614
|
var g = s[i];
|
5613
5615
|
if (!(g ? cacheHas(g, C) : a(e[i], C, r)))
|
5614
5616
|
continue e;
|
5615
5617
|
}
|
5616
|
-
m && m.push(C), c.push(
|
5618
|
+
m && m.push(C), c.push(b);
|
5617
5619
|
}
|
5618
5620
|
}
|
5619
5621
|
return c;
|
@@ -5910,7 +5912,7 @@ const without$1 = without, en = {
|
|
5910
5912
|
},
|
5911
5913
|
KgFormItem: {
|
5912
5914
|
mustGT: "\u5FC5\u987B\u5927\u4E8E {0}",
|
5913
|
-
mustGTE: "\u5FC5\u987B\u5927\u4E8E {0}"
|
5915
|
+
mustGTE: "\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {0}"
|
5914
5916
|
},
|
5915
5917
|
KgSearch: {
|
5916
5918
|
title: "\u67E5\u8BE2\u6761\u4EF6"
|
@@ -6176,7 +6178,7 @@ class KgUtil {
|
|
6176
6178
|
if (!i)
|
6177
6179
|
return r;
|
6178
6180
|
switch ((() => {
|
6179
|
-
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, m = i.cpy_ctrl_typ,
|
6181
|
+
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, m = i.cpy_ctrl_typ, b = i.del_ctrl_typ;
|
6180
6182
|
switch (!0) {
|
6181
6183
|
case o.isRetrieving.value:
|
6182
6184
|
return c || l;
|
@@ -6187,7 +6189,7 @@ class KgUtil {
|
|
6187
6189
|
case n.isCopying.value:
|
6188
6190
|
return m || l;
|
6189
6191
|
case n.isDeleting.value:
|
6190
|
-
return
|
6192
|
+
return b || l;
|
6191
6193
|
}
|
6192
6194
|
return l;
|
6193
6195
|
})()) {
|
@@ -6368,7 +6370,7 @@ class KgVarUtil {
|
|
6368
6370
|
return r;
|
6369
6371
|
}
|
6370
6372
|
static transformValueByControlType(t, r, a, n, o) {
|
6371
|
-
var m,
|
6373
|
+
var m, b, C;
|
6372
6374
|
const i = useKg(), s = useKgVar(t);
|
6373
6375
|
let l = n;
|
6374
6376
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
@@ -6379,7 +6381,7 @@ class KgVarUtil {
|
|
6379
6381
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
6380
6382
|
break;
|
6381
6383
|
case "{USER.username}":
|
6382
|
-
l = l.replace("{USER.username}", (C = (
|
6384
|
+
l = l.replace("{USER.username}", (C = (b = (m = i.store).getUseUserStore) == null ? void 0 : b.call(m).userInfo) == null ? void 0 : C.username);
|
6383
6385
|
break;
|
6384
6386
|
}
|
6385
6387
|
}
|
@@ -6387,14 +6389,14 @@ class KgVarUtil {
|
|
6387
6389
|
if (!u)
|
6388
6390
|
return l;
|
6389
6391
|
switch ((() => {
|
6390
|
-
const g = u.ctrl_typ, _ = u.prf_ctrl_typ,
|
6392
|
+
const g = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, v = u.upt_ctrl_typ, k = u.cpy_ctrl_typ, T = u.del_ctrl_typ;
|
6391
6393
|
switch (o) {
|
6392
6394
|
case "R":
|
6393
6395
|
return _ || g;
|
6394
6396
|
case "C":
|
6395
|
-
return b || g;
|
6396
|
-
case "U":
|
6397
6397
|
return y || g;
|
6398
|
+
case "U":
|
6399
|
+
return v || g;
|
6398
6400
|
case "CP":
|
6399
6401
|
return k || g;
|
6400
6402
|
case "D":
|
@@ -6489,8 +6491,8 @@ class KgVarUtil {
|
|
6489
6491
|
const _ = s.store.getVarPossibility(t, r);
|
6490
6492
|
switch (_ == null ? void 0 : _.val_data_type) {
|
6491
6493
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6492
|
-
const
|
6493
|
-
if (
|
6494
|
+
const y = g.map((v) => Number(v));
|
6495
|
+
if (y.some((v) => Number.isNaN(y))) {
|
6494
6496
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
6495
6497
|
frm_id: t,
|
6496
6498
|
var_nam: r,
|
@@ -6499,13 +6501,13 @@ class KgVarUtil {
|
|
6499
6501
|
});
|
6500
6502
|
return;
|
6501
6503
|
}
|
6502
|
-
return
|
6504
|
+
return y;
|
6503
6505
|
}
|
6504
6506
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
6505
|
-
return g.map((
|
6507
|
+
return g.map((y) => Boolean(y));
|
6506
6508
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
6507
6509
|
default:
|
6508
|
-
return g.map((
|
6510
|
+
return g.map((y) => String(y));
|
6509
6511
|
}
|
6510
6512
|
} catch {
|
6511
6513
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
@@ -6622,8 +6624,8 @@ function createOptionsStore(e, t, r, a) {
|
|
6622
6624
|
const u = process.env.NODE_ENV !== "production" && a ? toRefs(ref(n ? n() : {}).value) : toRefs(r.state.value[e]);
|
6623
6625
|
return assign$1(u, o, Object.keys(i || {}).reduce((d, m) => (d[m] = markRaw(computed(() => {
|
6624
6626
|
setActivePinia(r);
|
6625
|
-
const
|
6626
|
-
return i[m].call(
|
6627
|
+
const b = r._s.get(e);
|
6628
|
+
return i[m].call(b, b);
|
6627
6629
|
})), d), {}));
|
6628
6630
|
}
|
6629
6631
|
return l = createSetupStore(e, c, t, r, a), l.$reset = function() {
|
@@ -6642,31 +6644,31 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6642
6644
|
deep: !0
|
6643
6645
|
};
|
6644
6646
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (I) => {
|
6645
|
-
c ?
|
6647
|
+
c ? b = I : c == !1 && !E._hotUpdating && (Array.isArray(b) ? b.push(I) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6646
6648
|
});
|
6647
|
-
let c, u, d = markRaw([]), m = markRaw([]),
|
6649
|
+
let c, u, d = markRaw([]), m = markRaw([]), b;
|
6648
6650
|
const C = a.state.value[e];
|
6649
6651
|
!i && !C && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6650
6652
|
const g = ref({});
|
6651
6653
|
function _(I) {
|
6652
6654
|
let A;
|
6653
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (
|
6655
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (b = []), typeof I == "function" ? (I(a.state.value[e]), A = {
|
6654
6656
|
type: MutationType.patchFunction,
|
6655
6657
|
storeId: e,
|
6656
|
-
events:
|
6658
|
+
events: b
|
6657
6659
|
}) : (mergeReactiveObjects(a.state.value[e], I), A = {
|
6658
6660
|
type: MutationType.patchObject,
|
6659
6661
|
payload: I,
|
6660
6662
|
storeId: e,
|
6661
|
-
events:
|
6663
|
+
events: b
|
6662
6664
|
}), nextTick().then(() => {
|
6663
6665
|
c = !0;
|
6664
6666
|
}), u = !0, triggerSubscriptions(d, A, a.state.value[e]);
|
6665
6667
|
}
|
6666
|
-
const
|
6668
|
+
const y = process.env.NODE_ENV !== "production" ? () => {
|
6667
6669
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6668
6670
|
} : noop$1;
|
6669
|
-
function
|
6671
|
+
function v() {
|
6670
6672
|
o.stop(), d = [], m = [], a._s.delete(e);
|
6671
6673
|
}
|
6672
6674
|
function k(I, A) {
|
@@ -6705,18 +6707,18 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6705
6707
|
$id: e,
|
6706
6708
|
$onAction: addSubscription.bind(null, m),
|
6707
6709
|
$patch: _,
|
6708
|
-
$reset:
|
6710
|
+
$reset: y,
|
6709
6711
|
$subscribe(I, A = {}) {
|
6710
6712
|
const w = addSubscription(d, I, A.detached, () => U()), U = o.run(() => watch(() => a.state.value[e], ($) => {
|
6711
6713
|
(A.flush === "sync" ? u : c) && I({
|
6712
6714
|
storeId: e,
|
6713
6715
|
type: MutationType.direct,
|
6714
|
-
events:
|
6716
|
+
events: b
|
6715
6717
|
}, $);
|
6716
6718
|
}, assign$1({}, l, A)));
|
6717
6719
|
return w;
|
6718
6720
|
},
|
6719
|
-
$dispose:
|
6721
|
+
$dispose: v
|
6720
6722
|
}, E = reactive(assign$1(
|
6721
6723
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6722
6724
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
@@ -7333,18 +7335,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7333
7335
|
slots: r
|
7334
7336
|
}) {
|
7335
7337
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
7336
|
-
const
|
7337
|
-
throw KgLogger.error(
|
7338
|
+
const v = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
7339
|
+
throw KgLogger.error(v, {
|
7338
7340
|
kgMaxHeight: e.kgMaxHeight,
|
7339
7341
|
kgMinHeight: e.kgMinHeight
|
7340
|
-
}), new Error(
|
7342
|
+
}), new Error(v);
|
7341
7343
|
}
|
7342
7344
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
7343
|
-
const
|
7344
|
-
throw KgLogger.error(
|
7345
|
+
const v = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
7346
|
+
throw KgLogger.error(v, {
|
7345
7347
|
kgMaxWidth: e.kgMaxWidth,
|
7346
7348
|
kgMinWidth: e.kgMinWidth
|
7347
|
-
}), new Error(
|
7349
|
+
}), new Error(v);
|
7348
7350
|
}
|
7349
7351
|
let a = 0, n = 0, o = 0, i = 0, s = {
|
7350
7352
|
remove: () => {
|
@@ -7367,22 +7369,22 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7367
7369
|
};
|
7368
7370
|
}
|
7369
7371
|
}), u = computed(() => {
|
7370
|
-
let
|
7371
|
-
switch (e.kgClass && (
|
7372
|
+
let v = "";
|
7373
|
+
switch (e.kgClass && (v += `${e.kgClass} `), v += "kg-resizable", e.kgDisabled && (v += " kg-resizable--disabled"), e.kgType) {
|
7372
7374
|
case "left":
|
7373
|
-
|
7375
|
+
v += " kg-resizable--left";
|
7374
7376
|
break;
|
7375
7377
|
case "right":
|
7376
|
-
|
7378
|
+
v += " kg-resizable--right";
|
7377
7379
|
break;
|
7378
7380
|
case "top":
|
7379
|
-
|
7381
|
+
v += " kg-resizable--top";
|
7380
7382
|
break;
|
7381
7383
|
case "bottom":
|
7382
|
-
|
7384
|
+
v += " kg-resizable--bottom";
|
7383
7385
|
break;
|
7384
7386
|
}
|
7385
|
-
return
|
7387
|
+
return v;
|
7386
7388
|
});
|
7387
7389
|
function d() {
|
7388
7390
|
s.remove(), l.remove();
|
@@ -7390,51 +7392,51 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7390
7392
|
onUnmounted(() => {
|
7391
7393
|
d();
|
7392
7394
|
});
|
7393
|
-
const m = (
|
7395
|
+
const m = (v) => {
|
7394
7396
|
switch (e.kgType) {
|
7395
7397
|
case "top":
|
7396
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
7398
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (v.pageY - i))));
|
7397
7399
|
break;
|
7398
7400
|
case "bottom":
|
7399
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
7401
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (v.pageY - i))));
|
7400
7402
|
break;
|
7401
7403
|
case "left":
|
7402
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
7404
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (v.pageX - o))));
|
7403
7405
|
break;
|
7404
7406
|
case "right":
|
7405
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
7407
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (v.pageX - o))));
|
7406
7408
|
break;
|
7407
7409
|
}
|
7408
7410
|
};
|
7409
|
-
function v
|
7410
|
-
m(
|
7411
|
+
function b(v) {
|
7412
|
+
m(v);
|
7411
7413
|
}
|
7412
|
-
function C(
|
7413
|
-
m(
|
7414
|
+
function C(v) {
|
7415
|
+
m(v), d();
|
7414
7416
|
}
|
7415
|
-
function g(
|
7416
|
-
|
7417
|
+
function g(v) {
|
7418
|
+
v.stopPropagation(), v.preventDefault(), d(), !(v instanceof MouseEvent && v.which !== 1) && (o = v.pageX, i = v.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", b), l = _(document.documentElement, "mouseup", C));
|
7417
7419
|
}
|
7418
|
-
function _(
|
7419
|
-
return
|
7420
|
-
remove: () =>
|
7420
|
+
function _(v, k, T) {
|
7421
|
+
return v.addEventListener(k, T), {
|
7422
|
+
remove: () => v.removeEventListener(k, T)
|
7421
7423
|
};
|
7422
7424
|
}
|
7423
|
-
function
|
7424
|
-
|
7425
|
+
function y(v) {
|
7426
|
+
v.stopPropagation(), v.preventDefault();
|
7425
7427
|
}
|
7426
7428
|
return () => {
|
7427
|
-
var
|
7429
|
+
var v;
|
7428
7430
|
return createVNode("div", {
|
7429
7431
|
class: u.value,
|
7430
7432
|
style: c.value
|
7431
7433
|
}, [createVNode("div", {
|
7432
7434
|
class: "kg-resizable-handle",
|
7433
|
-
onClick:
|
7435
|
+
onClick: y,
|
7434
7436
|
onMousedown: g
|
7435
7437
|
}, [createVNode("div", {
|
7436
7438
|
class: "kg-resizable-handle-line"
|
7437
|
-
}, null)]), (
|
7439
|
+
}, null)]), (v = r.default) == null ? void 0 : v.call(r)]);
|
7438
7440
|
};
|
7439
7441
|
}
|
7440
7442
|
}), getProps$w = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
|
@@ -7586,15 +7588,15 @@ function createStore(e, t, r) {
|
|
7586
7588
|
_assignPluginFnProp: function(l, c) {
|
7587
7589
|
var u = this[c];
|
7588
7590
|
this[c] = function() {
|
7589
|
-
var m = slice(arguments, 0),
|
7591
|
+
var m = slice(arguments, 0), b = this;
|
7590
7592
|
function C() {
|
7591
7593
|
if (!!u)
|
7592
|
-
return each$6(arguments, function(_,
|
7593
|
-
m[
|
7594
|
-
}), u.apply(
|
7594
|
+
return each$6(arguments, function(_, y) {
|
7595
|
+
m[y] = _;
|
7596
|
+
}), u.apply(b, m);
|
7595
7597
|
}
|
7596
7598
|
var g = [C].concat(m);
|
7597
|
-
return l.apply(
|
7599
|
+
return l.apply(b, g);
|
7598
7600
|
};
|
7599
7601
|
},
|
7600
7602
|
_serialize: function(l) {
|
@@ -7631,10 +7633,10 @@ function createStore(e, t, r) {
|
|
7631
7633
|
var d = l.call(this);
|
7632
7634
|
if (!isObject(d))
|
7633
7635
|
throw new Error("Plugins must return an object of function properties");
|
7634
|
-
each$6(d, function(m,
|
7636
|
+
each$6(d, function(m, b) {
|
7635
7637
|
if (!isFunction(m))
|
7636
|
-
throw new Error("Bad plugin property: " +
|
7637
|
-
c._assignPluginFnProp(m,
|
7638
|
+
throw new Error("Bad plugin property: " + b + " from plugin " + l.name + ". Plugins should only return functions.");
|
7639
|
+
c._assignPluginFnProp(m, b);
|
7638
7640
|
});
|
7639
7641
|
}
|
7640
7642
|
},
|
@@ -8068,6 +8070,14 @@ function transformVarButtons(e) {
|
|
8068
8070
|
VarButton: t
|
8069
8071
|
}), t.export_excel_suffix = KG_EXCEL_SUFFIX.XLS), t)) : [];
|
8070
8072
|
}
|
8073
|
+
function transformVarButtonConfig(e) {
|
8074
|
+
if (!e)
|
8075
|
+
return null;
|
8076
|
+
const t = KG_BUTTON_DISPLAY_TYPE.DEFAULT, r = KG_BUTTON_DISPLAY_TYPE.SELECT;
|
8077
|
+
return isNil(e.display_type) ? e.display_type = t : [t, r].includes(e.display_type) || (e.display_type = t, KgLogger.error(`| \u6570\u636E\u6709\u8BEF | VarButtonConfig.display_type \u975E\u6CD5, \u5408\u6CD5\u7684\u503C\u4E3A ${[t, r]}, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${t}.`, {
|
8078
|
+
VarButtonConfig: e
|
8079
|
+
})), e;
|
8080
|
+
}
|
8071
8081
|
function transformVarGridDetails(e) {
|
8072
8082
|
return e ? e.sort((t, r) => {
|
8073
8083
|
var a, n;
|
@@ -8610,20 +8620,20 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8610
8620
|
varVariableInputs: u,
|
8611
8621
|
varPossibilities: d,
|
8612
8622
|
varButtons: m,
|
8613
|
-
varButtonConfig:
|
8623
|
+
varButtonConfig: b,
|
8614
8624
|
varSubmitConfig: C,
|
8615
8625
|
varSubmitFields: g,
|
8616
8626
|
varProfile: _,
|
8617
|
-
varProfileConfig:
|
8618
|
-
varGrid:
|
8627
|
+
varProfileConfig: y,
|
8628
|
+
varGrid: v,
|
8619
8629
|
varGridConfig: k
|
8620
8630
|
} = await GetAll({ params: { frm_id: e } });
|
8621
|
-
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e,
|
8631
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(C)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(g)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
|
8622
8632
|
varProfile: _ != null ? _ : null,
|
8623
8633
|
currentVarProfileMasterID: (a = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
|
8624
8634
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(k != null ? k : null)), this.varGridMap.set(e, {
|
8625
|
-
varGrid: transformVarGridDTO(
|
8626
|
-
currentVarGridMasterID: (i = (o = (n =
|
8635
|
+
varGrid: transformVarGridDTO(v),
|
8636
|
+
currentVarGridMasterID: (i = (o = (n = v == null ? void 0 : v.varGridMasters) == null ? void 0 : n.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
|
8627
8637
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
8628
8638
|
} catch (s) {
|
8629
8639
|
throw s;
|
@@ -8799,9 +8809,9 @@ function useKgVar(e, t, r = 0) {
|
|
8799
8809
|
u.leave(c);
|
8800
8810
|
}));
|
8801
8811
|
const d = (q) => computed(() => {
|
8802
|
-
var te, re,
|
8803
|
-
return (
|
8804
|
-
}), m = computed(() => u.isRetrieving(c)),
|
8812
|
+
var te, re, oe;
|
8813
|
+
return (oe = (re = (te = u.getVarCatalog(c, q)) == null ? void 0 : te.var_text) != null ? re : q) != null ? oe : "";
|
8814
|
+
}), m = computed(() => u.isRetrieving(c)), b = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), v = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), U = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), V = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), N = computed(() => u.getCurrentVarProfileMasterID(c)), L = computed(() => {
|
8805
8815
|
var q, te;
|
8806
8816
|
return (te = (q = D.value) == null ? void 0 : q.varProfileDetails) != null ? te : null;
|
8807
8817
|
}), H = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), G = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
@@ -8809,12 +8819,12 @@ function useKgVar(e, t, r = 0) {
|
|
8809
8819
|
formID: c,
|
8810
8820
|
store: u,
|
8811
8821
|
isRetrieving: m,
|
8812
|
-
isRetrievingVarProfileMaster:
|
8822
|
+
isRetrievingVarProfileMaster: b,
|
8813
8823
|
isRetrievingVarGridMaster: C,
|
8814
8824
|
isCreating: g,
|
8815
8825
|
isCreatingRequesting: _,
|
8816
|
-
isUpdating:
|
8817
|
-
isUpdatingRequesting:
|
8826
|
+
isUpdating: y,
|
8827
|
+
isUpdatingRequesting: v,
|
8818
8828
|
isCopying: k,
|
8819
8829
|
isCopyingRequesting: T,
|
8820
8830
|
isDeleting: M,
|
@@ -8858,12 +8868,12 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8858
8868
|
}) {
|
8859
8869
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
8860
8870
|
const r = useKgVar(), a = computed(() => r.store.getVarSubmitConfig(r.formID)), n = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), i = computed(() => {
|
8861
|
-
var m,
|
8871
|
+
var m, b, C, g;
|
8862
8872
|
switch (!0) {
|
8863
8873
|
case r.isCreating.value:
|
8864
8874
|
return ((m = a.value) == null ? void 0 : m.crt_flg) !== 0;
|
8865
8875
|
case r.isUpdating.value:
|
8866
|
-
return ((
|
8876
|
+
return ((b = a.value) == null ? void 0 : b.upt_flg) !== 0;
|
8867
8877
|
case r.isCopying.value:
|
8868
8878
|
return ((C = a.value) == null ? void 0 : C.cpy_flg) !== 0;
|
8869
8879
|
case r.isDeleting.value:
|
@@ -8885,8 +8895,8 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8885
8895
|
spinning: c.value
|
8886
8896
|
}, {
|
8887
8897
|
default: () => {
|
8888
|
-
var m,
|
8889
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (
|
8898
|
+
var m, b;
|
8899
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (b = (m = e.kgSlots) == null ? void 0 : m.afterKgTable) == null ? void 0 : b.call(m), i.value && createVNode(KgSubmit, null, null)])];
|
8890
8900
|
}
|
8891
8901
|
});
|
8892
8902
|
}
|
@@ -8915,13 +8925,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8915
8925
|
return (_ = (g = u == null ? void 0 : u.value) == null ? void 0 : g.ret_fld) != null ? _ : "";
|
8916
8926
|
});
|
8917
8927
|
c.onRowDoubleClick(async () => (await C(), !1));
|
8918
|
-
function
|
8928
|
+
function b() {
|
8919
8929
|
r("update:visible", !1);
|
8920
8930
|
}
|
8921
8931
|
async function C() {
|
8922
|
-
var g, _,
|
8932
|
+
var g, _, y, v, k, T, M;
|
8923
8933
|
if (d.value) {
|
8924
|
-
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (
|
8934
|
+
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (y = E.map((A) => A[m.value])) != null ? y : [];
|
8925
8935
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
8926
8936
|
var_nam: i,
|
8927
8937
|
isMultiple: !0,
|
@@ -8935,7 +8945,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8935
8945
|
rows: E
|
8936
8946
|
}), r("update:visible", !1));
|
8937
8947
|
} else {
|
8938
|
-
const E = (T = (k = (
|
8948
|
+
const E = (T = (k = (v = c.selectedRows) == null ? void 0 : v.value) == null ? void 0 : k[0]) != null ? T : null, P = (M = E == null ? void 0 : E[m.value]) != null ? M : "";
|
8939
8949
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
8940
8950
|
var_nam: i,
|
8941
8951
|
isMultiple: !1,
|
@@ -8960,7 +8970,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8960
8970
|
disabled: ((_ = (g = c.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0
|
8961
8971
|
},
|
8962
8972
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
8963
|
-
onCancel:
|
8973
|
+
onCancel: b,
|
8964
8974
|
onOk: C
|
8965
8975
|
}, {
|
8966
8976
|
default: () => [createVNode(KgVar, null, null)]
|
@@ -9051,7 +9061,7 @@ function _useRules(e) {
|
|
9051
9061
|
const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
9052
9062
|
return {
|
9053
9063
|
rules: computed(() => {
|
9054
|
-
var l, c, u, d, m,
|
9064
|
+
var l, c, u, d, m, b, C, g;
|
9055
9065
|
let s = [];
|
9056
9066
|
switch (e.kgContext) {
|
9057
9067
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9089,13 +9099,13 @@ function _useRules(e) {
|
|
9089
9099
|
}
|
9090
9100
|
break;
|
9091
9101
|
}
|
9092
|
-
switch ((
|
9102
|
+
switch ((b = n.value) == null ? void 0 : b.data_type) {
|
9093
9103
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9094
9104
|
const _ = (C = n.value) == null ? void 0 : C.min;
|
9095
9105
|
isNil(_) || (((g = n.value) == null ? void 0 : g.min_include_flg) === 1 ? s.push({
|
9096
|
-
validator: (
|
9106
|
+
validator: (y, v) => v == null || v === "" || typeof v == "string" && v.trim() === "" ? Promise.resolve() : Number(v) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
9097
9107
|
}) : s.push({
|
9098
|
-
validator: (
|
9108
|
+
validator: (y, v) => v == null || v === "" || typeof v == "string" && v.trim() === "" ? Promise.resolve() : Number(v) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
|
9099
9109
|
}));
|
9100
9110
|
break;
|
9101
9111
|
}
|
@@ -9105,8 +9115,8 @@ function _useRules(e) {
|
|
9105
9115
|
}
|
9106
9116
|
function useKgFormItem(e) {
|
9107
9117
|
const t = inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), o = computed(() => {
|
9108
|
-
var
|
9109
|
-
const s = (
|
9118
|
+
var b, C, g, _, y, v;
|
9119
|
+
const s = (b = n.value) == null ? void 0 : b.ctrl_typ, l = (C = n.value) == null ? void 0 : C.prf_ctrl_typ, c = (g = n.value) == null ? void 0 : g.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, m = (v = n.value) == null ? void 0 : v.del_ctrl_typ;
|
9110
9120
|
switch (r) {
|
9111
9121
|
case KG_FORM_CONTEXT.SEARCH:
|
9112
9122
|
return l || s;
|
@@ -9124,9 +9134,9 @@ function useKgFormItem(e) {
|
|
9124
9134
|
}
|
9125
9135
|
return s;
|
9126
9136
|
}), i = computed(() => {
|
9127
|
-
var C, g, _,
|
9137
|
+
var C, g, _, y, v, k;
|
9128
9138
|
let s;
|
9129
|
-
const l = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (
|
9139
|
+
const l = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, m = (v = n.value) == null ? void 0 : v.cpy_ctrl_prop, b = (k = n.value) == null ? void 0 : k.del_ctrl_prop;
|
9130
9140
|
switch (r) {
|
9131
9141
|
case KG_FORM_CONTEXT.SEARCH:
|
9132
9142
|
s = c || l;
|
@@ -9143,7 +9153,7 @@ function useKgFormItem(e) {
|
|
9143
9153
|
s = m || l;
|
9144
9154
|
break;
|
9145
9155
|
case a.isDeleting.value:
|
9146
|
-
s =
|
9156
|
+
s = b || l;
|
9147
9157
|
break;
|
9148
9158
|
}
|
9149
9159
|
}
|
@@ -9164,24 +9174,24 @@ function useKgFormItemSelect() {
|
|
9164
9174
|
}), l = computed(() => {
|
9165
9175
|
var m;
|
9166
9176
|
let d = KgVarUtil.parseCommandParameter((m = a.value) == null ? void 0 : m.cmd_prm);
|
9167
|
-
return d = mapValues(d, (
|
9177
|
+
return d = mapValues(d, (b) => {
|
9168
9178
|
var g, _;
|
9169
|
-
let C =
|
9170
|
-
if (typeof
|
9171
|
-
let
|
9172
|
-
if (
|
9173
|
-
const k =
|
9174
|
-
|
9179
|
+
let C = b;
|
9180
|
+
if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
|
9181
|
+
let y = b.slice(1, -1), v = "";
|
9182
|
+
if (y.includes(".")) {
|
9183
|
+
const k = y.split(".");
|
9184
|
+
y = k[0], v = k[1];
|
9175
9185
|
}
|
9176
|
-
t.value &&
|
9186
|
+
t.value && y in t.value && (v ? C = (_ = (g = t.value[`${y}_obj`]) == null ? void 0 : g[v]) != null ? _ : void 0 : C = t.value[y], C || (C = "__KG__FORM_ITEM_SELECT__PID"));
|
9177
9187
|
}
|
9178
9188
|
return C;
|
9179
9189
|
}), d;
|
9180
9190
|
});
|
9181
9191
|
async function c() {
|
9182
|
-
var
|
9192
|
+
var y, v, k, T, M, E, P, I;
|
9183
9193
|
let d = [];
|
9184
|
-
const m = (
|
9194
|
+
const m = (y = a.value) == null ? void 0 : y.cmd, b = (k = (v = a.value) == null ? void 0 : v.cmd_method) != null ? k : "GET", C = (M = (T = a.value) == null ? void 0 : T.val_clm) != null ? M : "", g = (P = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? P : "";
|
9185
9195
|
if (!m || !C || !g) {
|
9186
9196
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9187
9197
|
frm_id: r.formID,
|
@@ -9196,7 +9206,7 @@ function useKgFormItemSelect() {
|
|
9196
9206
|
try {
|
9197
9207
|
_ = await ((I = httpClient()) == null ? void 0 : I.request({
|
9198
9208
|
url: m,
|
9199
|
-
method:
|
9209
|
+
method: b,
|
9200
9210
|
params: l.value
|
9201
9211
|
}));
|
9202
9212
|
} catch {
|
@@ -9226,11 +9236,11 @@ function useKgFormItemSelect() {
|
|
9226
9236
|
i.value = d;
|
9227
9237
|
}
|
9228
9238
|
function u(d) {
|
9229
|
-
var C, g, _,
|
9239
|
+
var C, g, _, y, v;
|
9230
9240
|
if (!d)
|
9231
9241
|
return [];
|
9232
|
-
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "",
|
9233
|
-
switch (
|
9242
|
+
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "", b = (y = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? y : "string";
|
9243
|
+
switch (b) {
|
9234
9244
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9235
9245
|
d.forEach((k) => {
|
9236
9246
|
k[m] = String(k[m]);
|
@@ -9239,7 +9249,7 @@ function useKgFormItemSelect() {
|
|
9239
9249
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9240
9250
|
d.forEach((k) => {
|
9241
9251
|
let T = Number(k[m]);
|
9242
|
-
Number.isNaN(T) && (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${
|
9252
|
+
Number.isNaN(T) && (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${b} \u7C7B\u578B`, {
|
9243
9253
|
frm_id: r.formID,
|
9244
9254
|
var_nam: e,
|
9245
9255
|
VarPossibility: a.value
|
@@ -9249,7 +9259,7 @@ function useKgFormItemSelect() {
|
|
9249
9259
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9250
9260
|
d.forEach((k) => {
|
9251
9261
|
let T;
|
9252
|
-
String(k[m]).toLowerCase() === "true" ? T = !0 : String(k[m]).toLowerCase() === "false" ? T = !1 : (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${
|
9262
|
+
String(k[m]).toLowerCase() === "true" ? T = !0 : String(k[m]).toLowerCase() === "false" ? T = !1 : (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${b} \u7C7B\u578B`, {
|
9253
9263
|
frm_id: r.formID,
|
9254
9264
|
var_nam: e,
|
9255
9265
|
VarPossibility: a.value
|
@@ -9261,7 +9271,7 @@ function useKgFormItemSelect() {
|
|
9261
9271
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9262
9272
|
{
|
9263
9273
|
const k = o;
|
9264
|
-
if ((
|
9274
|
+
if ((v = k.value) != null && v.excludeValues)
|
9265
9275
|
return d.filter((T) => {
|
9266
9276
|
var M;
|
9267
9277
|
return !((M = k.value.excludeValues) != null && M.includes(T[m]));
|
@@ -9300,22 +9310,22 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9300
9310
|
datas: c,
|
9301
9311
|
readDatas: u
|
9302
9312
|
} = useKgFormItemSelect(), d = ref(!1), m = ref(!1);
|
9303
|
-
watch(s, () =>
|
9313
|
+
watch(s, () => b(), {
|
9304
9314
|
immediate: !0
|
9305
|
-
}), watch([() => e.value, c], ([_,
|
9306
|
-
const
|
9307
|
-
if (
|
9308
|
-
const k = intersection$1(_,
|
9309
|
-
if (k.length <
|
9315
|
+
}), watch([() => e.value, c], ([_, y]) => {
|
9316
|
+
const v = get(_, "length", 0);
|
9317
|
+
if (v > 0 && y.length > 0) {
|
9318
|
+
const k = intersection$1(_, y == null ? void 0 : y.map((T) => T[l.value]));
|
9319
|
+
if (k.length < v) {
|
9310
9320
|
r("update:value", k);
|
9311
9321
|
return;
|
9312
9322
|
}
|
9313
9323
|
}
|
9314
9324
|
switch (!0) {
|
9315
|
-
case (
|
9325
|
+
case (v > 0 && v === y.length):
|
9316
9326
|
d.value = !0, m.value = !1;
|
9317
9327
|
break;
|
9318
|
-
case (
|
9328
|
+
case (v > 0 && v !== y.length):
|
9319
9329
|
d.value = !1, m.value = !0;
|
9320
9330
|
break;
|
9321
9331
|
default:
|
@@ -9325,25 +9335,25 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9325
9335
|
}, {
|
9326
9336
|
immediate: !0
|
9327
9337
|
});
|
9328
|
-
async function
|
9329
|
-
var _,
|
9330
|
-
!((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
9338
|
+
async function b() {
|
9339
|
+
var _, y;
|
9340
|
+
!((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((v) => v[l.value]), e.value)));
|
9331
9341
|
}
|
9332
9342
|
function C(_) {
|
9333
|
-
var
|
9334
|
-
_.target.checked ? g((
|
9343
|
+
var y, v, k;
|
9344
|
+
_.target.checked ? g((v = (y = c.value) == null ? void 0 : y.map((T) => T[l.value])) != null ? v : []) : g([]), m.value = !1, (k = n.value) == null || k.validate(e.kgVarName);
|
9335
9345
|
}
|
9336
9346
|
function g(_) {
|
9337
9347
|
r("update:value", _), r("kgChange", _);
|
9338
9348
|
}
|
9339
9349
|
return () => {
|
9340
|
-
let _,
|
9350
|
+
let _, y;
|
9341
9351
|
return createVNode("div", {
|
9342
9352
|
class: "kg-form-item-checkbox-group"
|
9343
9353
|
}, [createVNode(Form.ItemRest, null, {
|
9344
9354
|
default: () => [createVNode(Checkbox, {
|
9345
9355
|
checked: d.value,
|
9346
|
-
"onUpdate:checked": (
|
9356
|
+
"onUpdate:checked": (v) => d.value = v,
|
9347
9357
|
indeterminate: m.value,
|
9348
9358
|
onChange: C
|
9349
9359
|
}, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
|
@@ -9355,23 +9365,23 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9355
9365
|
}, {
|
9356
9366
|
default: () => [createVNode(Row, {
|
9357
9367
|
gutter: 12
|
9358
|
-
}, _isSlot$a(
|
9368
|
+
}, _isSlot$a(y = c.value.map((v) => {
|
9359
9369
|
var k, T;
|
9360
9370
|
return createVNode(Col, {
|
9361
9371
|
span: (T = (k = o.value) == null ? void 0 : k.span) != null ? T : 24
|
9362
9372
|
}, {
|
9363
9373
|
default: () => [createVNode(Checkbox, {
|
9364
|
-
value:
|
9365
|
-
"kg-value":
|
9374
|
+
value: v[l.value],
|
9375
|
+
"kg-value": v[l.value]
|
9366
9376
|
}, {
|
9367
9377
|
default: () => {
|
9368
9378
|
var M, E;
|
9369
|
-
return [
|
9379
|
+
return [v[(E = (M = i.value) == null ? void 0 : M.lbl_clm) != null ? E : ""]];
|
9370
9380
|
}
|
9371
9381
|
})]
|
9372
9382
|
});
|
9373
|
-
})) ?
|
9374
|
-
default: () => [
|
9383
|
+
})) ? y : {
|
9384
|
+
default: () => [y]
|
9375
9385
|
})]
|
9376
9386
|
})]);
|
9377
9387
|
};
|
@@ -9524,9 +9534,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9524
9534
|
default: () => [createVNode(Row, {
|
9525
9535
|
gutter: 12
|
9526
9536
|
}, _isSlot$9(d = s.value.map((m) => {
|
9527
|
-
var
|
9537
|
+
var b, C;
|
9528
9538
|
return createVNode(Col, {
|
9529
|
-
span: (C = (
|
9539
|
+
span: (C = (b = a.value) == null ? void 0 : b.span) != null ? C : 24
|
9530
9540
|
}, {
|
9531
9541
|
default: () => [createVNode(Radio, {
|
9532
9542
|
value: m[i.value],
|
@@ -9564,18 +9574,18 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9564
9574
|
});
|
9565
9575
|
async function c() {
|
9566
9576
|
var m;
|
9567
|
-
!((m = n.value) != null && m.id) || (await l(), r("kgSelectDatasChange", s.value), s.value.find((
|
9577
|
+
!((m = n.value) != null && m.id) || (await l(), r("kgSelectDatasChange", s.value), s.value.find((b) => b[i.value] === e.value) || r("update:value", void 0));
|
9568
9578
|
}
|
9569
9579
|
function u(m) {
|
9570
9580
|
var C;
|
9571
|
-
const
|
9572
|
-
r("kgSelectChange",
|
9581
|
+
const b = (C = toRaw(s.value.find((g) => g[i.value] === m))) != null ? C : null;
|
9582
|
+
r("kgSelectChange", b), a.value[`${e.kgVarName}_obj`] = b;
|
9573
9583
|
}
|
9574
9584
|
function d(m) {
|
9575
9585
|
r("update:value", m), r("kgChange", m);
|
9576
9586
|
}
|
9577
9587
|
return () => {
|
9578
|
-
var m,
|
9588
|
+
var m, b;
|
9579
9589
|
return createVNode(Select, {
|
9580
9590
|
value: e.value,
|
9581
9591
|
"onUpdate:value": d,
|
@@ -9589,7 +9599,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9589
9599
|
style: "width: 100%",
|
9590
9600
|
"kg-cmd": (m = n.value) == null ? void 0 : m.cmd,
|
9591
9601
|
"kg-val-clm": i.value,
|
9592
|
-
"kg-lbl-clm": (
|
9602
|
+
"kg-lbl-clm": (b = n.value) == null ? void 0 : b.lbl_clm
|
9593
9603
|
}, {
|
9594
9604
|
default: () => s.value.map((C) => createVNode(Select.Option, {
|
9595
9605
|
"kg-value": C[i.value],
|
@@ -9680,7 +9690,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9680
9690
|
rules: d
|
9681
9691
|
} = _useRules(e), {
|
9682
9692
|
controlType: m
|
9683
|
-
} = useKgFormItem(e),
|
9693
|
+
} = useKgFormItem(e), b = computed(() => {
|
9684
9694
|
var A, w, U, $, V;
|
9685
9695
|
if (o.isRetrieving.value)
|
9686
9696
|
return !0;
|
@@ -9763,7 +9773,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9763
9773
|
paddingLeft: `${w}px !important`,
|
9764
9774
|
paddingRight: `${w}px !important`
|
9765
9775
|
}), A;
|
9766
|
-
}),
|
9776
|
+
}), y = computed(() => {
|
9767
9777
|
var A, w, U, $;
|
9768
9778
|
let I = "kg-form-item";
|
9769
9779
|
switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
@@ -9785,7 +9795,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9785
9795
|
break;
|
9786
9796
|
}
|
9787
9797
|
return I;
|
9788
|
-
}),
|
9798
|
+
}), v = computed(() => {
|
9789
9799
|
var A;
|
9790
9800
|
const I = {
|
9791
9801
|
...e,
|
@@ -9794,7 +9804,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9794
9804
|
a.value && (a.value[e.kgVarName] = w);
|
9795
9805
|
},
|
9796
9806
|
kgPlaceholder: C.value,
|
9797
|
-
kgDisabled:
|
9807
|
+
kgDisabled: b.value,
|
9798
9808
|
id: k.value
|
9799
9809
|
};
|
9800
9810
|
switch (m.value) {
|
@@ -9826,7 +9836,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9826
9836
|
if (t.control) {
|
9827
9837
|
const I = {
|
9828
9838
|
varName: e.kgVarName,
|
9829
|
-
props:
|
9839
|
+
props: v,
|
9830
9840
|
model: a,
|
9831
9841
|
varVariableConfig: l,
|
9832
9842
|
varProfileDetail: c,
|
@@ -9836,31 +9846,31 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9836
9846
|
}
|
9837
9847
|
switch (m.value) {
|
9838
9848
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
9839
|
-
return createVNode(KgFormItemInputNumber,
|
9849
|
+
return createVNode(KgFormItemInputNumber, v.value, null);
|
9840
9850
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
9841
|
-
return createVNode(KgFormItemTextArea,
|
9851
|
+
return createVNode(KgFormItemTextArea, v.value, null);
|
9842
9852
|
case KG_FORM_ITEM_TYPE.SELECT:
|
9843
|
-
return createVNode(KgFormItemSelect,
|
9853
|
+
return createVNode(KgFormItemSelect, v.value, null);
|
9844
9854
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
9845
|
-
return createVNode(KgFormItemSwitch,
|
9855
|
+
return createVNode(KgFormItemSwitch, v.value, null);
|
9846
9856
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
9847
|
-
return createVNode(KgFormItemCheckbox,
|
9857
|
+
return createVNode(KgFormItemCheckbox, v.value, null);
|
9848
9858
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9849
|
-
return createVNode(KgFormItemCheckboxGroup,
|
9859
|
+
return createVNode(KgFormItemCheckboxGroup, v.value, null);
|
9850
9860
|
case KG_FORM_ITEM_TYPE.RADIO_GROUP:
|
9851
|
-
return createVNode(KgFormItemRadioGroup,
|
9861
|
+
return createVNode(KgFormItemRadioGroup, v.value, null);
|
9852
9862
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
9853
|
-
return createVNode(KgFormItemDate,
|
9863
|
+
return createVNode(KgFormItemDate, v.value, null);
|
9854
9864
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
9855
|
-
return createVNode(KgFormItemDate,
|
9865
|
+
return createVNode(KgFormItemDate, v.value, null);
|
9856
9866
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
9857
|
-
return createVNode(KgFormItemDate,
|
9867
|
+
return createVNode(KgFormItemDate, v.value, null);
|
9858
9868
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
9859
|
-
return createVNode(KgFormItemDateRange,
|
9869
|
+
return createVNode(KgFormItemDateRange, v.value, null);
|
9860
9870
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
9861
|
-
return createVNode(KgFormItemDateRange,
|
9871
|
+
return createVNode(KgFormItemDateRange, v.value, null);
|
9862
9872
|
default:
|
9863
|
-
return createVNode(KgFormItemInput,
|
9873
|
+
return createVNode(KgFormItemInput, v.value, null);
|
9864
9874
|
}
|
9865
9875
|
}
|
9866
9876
|
function E() {
|
@@ -9872,7 +9882,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9872
9882
|
var I;
|
9873
9883
|
return !s.value || !((I = s.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9874
9884
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
9875
|
-
kgDisabled:
|
9885
|
+
kgDisabled: b.value,
|
9876
9886
|
kgLookupID: s.value.lkp_id
|
9877
9887
|
}, null)]
|
9878
9888
|
});
|
@@ -9882,7 +9892,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9882
9892
|
return o.isRetrieving.value ? null : createVNode(Col, {
|
9883
9893
|
ref: T,
|
9884
9894
|
span: g.value,
|
9885
|
-
class:
|
9895
|
+
class: y.value,
|
9886
9896
|
style: _.value,
|
9887
9897
|
"kg-frm_id": o.formID,
|
9888
9898
|
"kg-var_nam": e.kgVarName,
|
@@ -10218,14 +10228,14 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10218
10228
|
}).bind(null, pinia())), store$5);
|
10219
10229
|
function useKgSubmit(e) {
|
10220
10230
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
10221
|
-
var _,
|
10231
|
+
var _, y, v, k, T;
|
10222
10232
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
10223
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (
|
10233
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, b = (v = a.value) == null ? void 0 : v.upt_display_type, C = (k = a.value) == null ? void 0 : k.cpy_display_type, g = (T = a.value) == null ? void 0 : T.del_display_type;
|
10224
10234
|
switch (!0) {
|
10225
10235
|
case (t.isCreating.value && (m === c || !m && d === c)):
|
10226
10236
|
l = c;
|
10227
10237
|
break;
|
10228
|
-
case (t.isUpdating.value && (
|
10238
|
+
case (t.isUpdating.value && (b === c || !b && d === c)):
|
10229
10239
|
l = c;
|
10230
10240
|
break;
|
10231
10241
|
case (t.isCopying.value && (C === c || !C && d === c)):
|
@@ -10239,7 +10249,7 @@ function useKgSubmit(e) {
|
|
10239
10249
|
case (t.isCreating.value && (m === u || !m && d === u)):
|
10240
10250
|
l = u;
|
10241
10251
|
break;
|
10242
|
-
case (t.isUpdating.value && (
|
10252
|
+
case (t.isUpdating.value && (b === u || !b && d === u)):
|
10243
10253
|
l = u;
|
10244
10254
|
break;
|
10245
10255
|
case (t.isCopying.value && (C === u || !C && d === u)):
|
@@ -10291,8 +10301,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10291
10301
|
}) => {
|
10292
10302
|
const u = o.store.getVarSubmitConfig(o.formID);
|
10293
10303
|
return s = watch(c, (d) => {
|
10294
|
-
var m,
|
10295
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (
|
10304
|
+
var m, b, C, g, _, y, v, k, T, M, E, P;
|
10305
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (b = u == null ? void 0 : u.resizable_flg) != null ? b : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (v = u == null ? void 0 : u.min_width) != null ? v : DEFAULT_MIN_WIDTH, d.dft_width = (k = u == null ? void 0 : u.dft_width) != null ? k : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (P = u == null ? void 0 : u.display_type) != null ? P : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10296
10306
|
}, {
|
10297
10307
|
immediate: !0
|
10298
10308
|
}), !1;
|
@@ -10338,12 +10348,12 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10338
10348
|
function m() {
|
10339
10349
|
u.value = !0;
|
10340
10350
|
}
|
10341
|
-
function
|
10351
|
+
function b() {
|
10342
10352
|
r("kgCancel");
|
10343
10353
|
}
|
10344
10354
|
function C() {
|
10345
|
-
var
|
10346
|
-
return e.kgShowFullscreenButton === !1 || ((
|
10355
|
+
var y;
|
10356
|
+
return e.kgShowFullscreenButton === !1 || ((y = s.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
10347
10357
|
onClick: d,
|
10348
10358
|
class: "kg-submit--btn-fullscreen"
|
10349
10359
|
}, {
|
@@ -10365,7 +10375,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10365
10375
|
return createVNode(Button, {
|
10366
10376
|
disabled: c.value || l.value,
|
10367
10377
|
class: "kg-submit--btn-close",
|
10368
|
-
onClick:
|
10378
|
+
onClick: b
|
10369
10379
|
}, {
|
10370
10380
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
10371
10381
|
});
|
@@ -10375,7 +10385,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10375
10385
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
10376
10386
|
function _useFormModel$1() {
|
10377
10387
|
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), a = useKgSubmit(), n = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), o = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), i = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), s = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), l = computed(() => {
|
10378
|
-
var u, d, m,
|
10388
|
+
var u, d, m, b;
|
10379
10389
|
switch (!0) {
|
10380
10390
|
case t.isCreating.value:
|
10381
10391
|
return (u = n.value) != null ? u : [];
|
@@ -10384,7 +10394,7 @@ function _useFormModel$1() {
|
|
10384
10394
|
case t.isCopying.value:
|
10385
10395
|
return (m = i.value) != null ? m : [];
|
10386
10396
|
case t.isDeleting.value:
|
10387
|
-
return (
|
10397
|
+
return (b = s.value) != null ? b : [];
|
10388
10398
|
}
|
10389
10399
|
return [];
|
10390
10400
|
}), c = ref({});
|
@@ -10395,20 +10405,20 @@ function _useFormModel$1() {
|
|
10395
10405
|
}
|
10396
10406
|
const d = r.selectedRow.value;
|
10397
10407
|
u.forEach((m) => {
|
10398
|
-
var C, g, _,
|
10399
|
-
const
|
10400
|
-
switch (c.value[
|
10408
|
+
var C, g, _, y, v, k, T, M;
|
10409
|
+
const b = (C = m.var_nam) != null ? C : "";
|
10410
|
+
switch (c.value[b] = void 0, !0) {
|
10401
10411
|
case t.isCreating.value:
|
10402
|
-
c.value[
|
10412
|
+
c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
|
10403
10413
|
break;
|
10404
10414
|
case t.isUpdating.value:
|
10405
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
10415
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (y = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[b]) != null ? y : void 0, "U");
|
10406
10416
|
break;
|
10407
10417
|
case t.isCopying.value:
|
10408
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
10418
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (k = (v = m.cpy_dft_val) != null ? v : d == null ? void 0 : d[b]) != null ? k : void 0, "CP");
|
10409
10419
|
break;
|
10410
10420
|
case t.isDeleting.value:
|
10411
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
10421
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[b]) != null ? M : void 0, "D");
|
10412
10422
|
break;
|
10413
10423
|
}
|
10414
10424
|
}), a.store.setModel(t.formID, c.value);
|
@@ -10479,9 +10489,9 @@ function _useClass(e, t) {
|
|
10479
10489
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), o = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
10480
10490
|
return {
|
10481
10491
|
getClass: computed(() => {
|
10482
|
-
var c, u, d, m,
|
10492
|
+
var c, u, d, m, b, C, g;
|
10483
10493
|
let l = "kg-submit";
|
10484
|
-
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (
|
10494
|
+
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (b = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && b.kgClass ? l += ` ${(g = (C = r == null ? void 0 : r.value) == null ? void 0 : C.KgSubmit) == null ? void 0 : g.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
10485
10495
|
})
|
10486
10496
|
};
|
10487
10497
|
}
|
@@ -10489,9 +10499,9 @@ function _useLayout() {
|
|
10489
10499
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
10490
10500
|
return {
|
10491
10501
|
getLayout: computed(() => {
|
10492
|
-
var c, u, d, m,
|
10502
|
+
var c, u, d, m, b;
|
10493
10503
|
let a = "vertical";
|
10494
|
-
const n = (c = t.value) == null ? void 0 : c.layout, o = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, s = (m = t.value) == null ? void 0 : m.cpy_layout, l = (
|
10504
|
+
const n = (c = t.value) == null ? void 0 : c.layout, o = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, s = (m = t.value) == null ? void 0 : m.cpy_layout, l = (b = t.value) == null ? void 0 : b.del_layout;
|
10495
10505
|
switch (!0) {
|
10496
10506
|
case (e.isCreating.value && (o === "horizontal" || !o && n === "horizontal")):
|
10497
10507
|
a = "horizontal";
|
@@ -10514,10 +10524,10 @@ function _useDefaultWidth() {
|
|
10514
10524
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
10515
10525
|
return {
|
10516
10526
|
getDefaultWidth: computed(() => {
|
10517
|
-
var c, u, d, m,
|
10527
|
+
var c, u, d, m, b;
|
10518
10528
|
if (!t.value)
|
10519
10529
|
return 0;
|
10520
|
-
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, o = (d = t.value) == null ? void 0 : d.upt_dft_width, i = (m = t.value) == null ? void 0 : m.cpy_dft_width, s = (
|
10530
|
+
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, o = (d = t.value) == null ? void 0 : d.upt_dft_width, i = (m = t.value) == null ? void 0 : m.cpy_dft_width, s = (b = t.value) == null ? void 0 : b.del_dft_width;
|
10521
10531
|
let l = a || DEFAULT_WIDTH;
|
10522
10532
|
switch (!0) {
|
10523
10533
|
case (e.isCreating.value && !!n):
|
@@ -10556,29 +10566,29 @@ const getProps$p = () => ({
|
|
10556
10566
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
10557
10567
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10558
10568
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
10559
|
-
i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await
|
10560
|
-
const u = computed(() => o.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)),
|
10561
|
-
var F,
|
10569
|
+
i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await oe(), !1)), _useFormModel$1();
|
10570
|
+
const u = computed(() => o.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), g = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), k = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), T = computed(() => {
|
10571
|
+
var F, x, W;
|
10562
10572
|
switch (!0) {
|
10563
10573
|
case o.isCreating.value:
|
10564
|
-
return (F =
|
10574
|
+
return (F = b.value) != null ? F : [];
|
10565
10575
|
case o.isUpdating.value:
|
10566
|
-
return (
|
10576
|
+
return (x = g.value) != null ? x : [];
|
10567
10577
|
case o.isCopying.value:
|
10568
|
-
return (
|
10578
|
+
return (W = y.value) != null ? W : [];
|
10569
10579
|
case o.isDeleting.value:
|
10570
10580
|
return [];
|
10571
10581
|
}
|
10572
10582
|
return [];
|
10573
10583
|
}), M = computed(() => {
|
10574
|
-
var F,
|
10584
|
+
var F, x, W, J;
|
10575
10585
|
switch (!0) {
|
10576
10586
|
case o.isCreating.value:
|
10577
10587
|
return (F = C.value) != null ? F : [];
|
10578
10588
|
case o.isUpdating.value:
|
10579
|
-
return (
|
10589
|
+
return (x = _.value) != null ? x : [];
|
10580
10590
|
case o.isCopying.value:
|
10581
|
-
return (
|
10591
|
+
return (W = v.value) != null ? W : [];
|
10582
10592
|
case o.isDeleting.value:
|
10583
10593
|
return (J = k.value) != null ? J : [];
|
10584
10594
|
}
|
@@ -10589,11 +10599,11 @@ const getProps$p = () => ({
|
|
10589
10599
|
var F;
|
10590
10600
|
return !!(u.value || H.isFullscreen || ((F = m.value) == null ? void 0 : F.resizable_flg) === 0);
|
10591
10601
|
}), U = computed(() => {
|
10592
|
-
var F,
|
10593
|
-
return u.value ? 398 : (
|
10602
|
+
var F, x;
|
10603
|
+
return u.value ? 398 : (x = (F = m.value) == null ? void 0 : F.min_width) != null ? x : DEFAULT_MIN_WIDTH;
|
10594
10604
|
}), $ = computed(() => {
|
10595
|
-
var F,
|
10596
|
-
return u.value ? 398 : (
|
10605
|
+
var F, x;
|
10606
|
+
return u.value ? 398 : (x = (F = m.value) == null ? void 0 : F.max_width) != null ? x : DEFAULT_MAX_WIDTH;
|
10597
10607
|
}), V = computed(() => u.value ? 398 : A.value.kgWidth), O = ref(null);
|
10598
10608
|
_useResizeObserver$1(O);
|
10599
10609
|
const D = _useTitle(), N = computed(() => u.value ? 400 : A.value.kgWidth && A.value.kgWidth > 0 ? "auto" : 0), L = computed(() => N.value === 0 ? !1 : !!(o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value)), H = reactive({
|
@@ -10605,18 +10615,18 @@ const getProps$p = () => ({
|
|
10605
10615
|
} = _useLayout(), {
|
10606
10616
|
getDefaultWidth: Y
|
10607
10617
|
} = _useDefaultWidth(), Q = computed(() => {
|
10608
|
-
var F,
|
10618
|
+
var F, x, W;
|
10609
10619
|
switch (G.value) {
|
10610
10620
|
case "horizontal":
|
10611
10621
|
switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
|
10612
10622
|
case KG_WIDTH_UNIT.SPAN:
|
10613
10623
|
return {
|
10614
|
-
span: (
|
10624
|
+
span: (x = m.value) == null ? void 0 : x.label_col
|
10615
10625
|
};
|
10616
10626
|
default:
|
10617
10627
|
return {
|
10618
10628
|
style: {
|
10619
|
-
width: `${(
|
10629
|
+
width: `${(W = m.value) == null ? void 0 : W.label_col}px`
|
10620
10630
|
}
|
10621
10631
|
};
|
10622
10632
|
}
|
@@ -10624,13 +10634,13 @@ const getProps$p = () => ({
|
|
10624
10634
|
return;
|
10625
10635
|
}
|
10626
10636
|
}), q = computed(() => {
|
10627
|
-
var F,
|
10637
|
+
var F, x;
|
10628
10638
|
switch (G.value) {
|
10629
10639
|
case "horizontal":
|
10630
10640
|
switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
|
10631
10641
|
case KG_WIDTH_UNIT.SPAN:
|
10632
10642
|
return {
|
10633
|
-
span: 24 - ((
|
10643
|
+
span: 24 - ((x = m.value) == null ? void 0 : x.label_col)
|
10634
10644
|
};
|
10635
10645
|
default:
|
10636
10646
|
return;
|
@@ -10639,8 +10649,8 @@ const getProps$p = () => ({
|
|
10639
10649
|
return;
|
10640
10650
|
}
|
10641
10651
|
});
|
10642
|
-
watch(L, (F,
|
10643
|
-
F === !0 && te(),
|
10652
|
+
watch(L, (F, x) => {
|
10653
|
+
F === !0 && te(), x === !0 && F === !1 && re();
|
10644
10654
|
}, {
|
10645
10655
|
immediate: !0
|
10646
10656
|
}), watch(Y, (F) => {
|
@@ -10649,9 +10659,9 @@ const getProps$p = () => ({
|
|
10649
10659
|
immediate: !0
|
10650
10660
|
});
|
10651
10661
|
function te() {
|
10652
|
-
var
|
10653
|
-
const F = watch(l.model, (
|
10654
|
-
|
10662
|
+
var x;
|
10663
|
+
const F = watch(l.model, (W) => {
|
10664
|
+
W && Object.keys(W).length > 0 && (setTimeout(() => F()), l.store.emit(o.formID, "open", {
|
10655
10665
|
isCreating: o.isCreating.value,
|
10656
10666
|
isUpdating: o.isUpdating.value,
|
10657
10667
|
isCopying: o.isCopying.value,
|
@@ -10662,12 +10672,12 @@ const getProps$p = () => ({
|
|
10662
10672
|
}, {
|
10663
10673
|
immediate: !0
|
10664
10674
|
});
|
10665
|
-
((
|
10675
|
+
((x = m.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (H.isFullscreen = !0);
|
10666
10676
|
}
|
10667
10677
|
async function re() {
|
10668
10678
|
A.value.kgWidth = Y.value, H.isFullscreen = !1, await l.store.emit(o.formID, "close", null);
|
10669
10679
|
}
|
10670
|
-
function
|
10680
|
+
function oe() {
|
10671
10681
|
switch (!0) {
|
10672
10682
|
case o.isCreating.value:
|
10673
10683
|
o.store.setIsCreating(o.formID, !1);
|
@@ -10684,7 +10694,7 @@ const getProps$p = () => ({
|
|
10684
10694
|
}
|
10685
10695
|
}
|
10686
10696
|
async function le() {
|
10687
|
-
var F,
|
10697
|
+
var F, x;
|
10688
10698
|
try {
|
10689
10699
|
if (await l.store.emit(o.formID, "beforeOk", {
|
10690
10700
|
isCreating: o.isCreating.value,
|
@@ -10701,7 +10711,7 @@ const getProps$p = () => ({
|
|
10701
10711
|
} catch (Z) {
|
10702
10712
|
KgUtil.throwIfNotFormError(Z);
|
10703
10713
|
}
|
10704
|
-
if (await ((
|
10714
|
+
if (await ((x = l.formRef.value) == null ? void 0 : x.validate()), await l.store.emit(o.formID, "afterValidate", {
|
10705
10715
|
isCreating: o.isCreating.value,
|
10706
10716
|
isUpdating: o.isUpdating.value,
|
10707
10717
|
isCopying: o.isCopying.value,
|
@@ -10716,7 +10726,7 @@ const getProps$p = () => ({
|
|
10716
10726
|
await ce();
|
10717
10727
|
break;
|
10718
10728
|
case o.isUpdating.value:
|
10719
|
-
await
|
10729
|
+
await ne();
|
10720
10730
|
break;
|
10721
10731
|
case o.isCopying.value:
|
10722
10732
|
await ue();
|
@@ -10725,13 +10735,13 @@ const getProps$p = () => ({
|
|
10725
10735
|
await fe();
|
10726
10736
|
break;
|
10727
10737
|
}
|
10728
|
-
} catch (
|
10729
|
-
KgUtil.throwIfNotFormError(
|
10738
|
+
} catch (W) {
|
10739
|
+
KgUtil.throwIfNotFormError(W);
|
10730
10740
|
}
|
10731
10741
|
}
|
10732
10742
|
async function ce() {
|
10733
|
-
var
|
10734
|
-
const F = (
|
10743
|
+
var x, W, J, Z, ae, se;
|
10744
|
+
const F = (x = o.varButtonCreate.value) == null ? void 0 : x.cmd;
|
10735
10745
|
if (!F) {
|
10736
10746
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10737
10747
|
VarButton: o.varButtonCreate.value
|
@@ -10740,7 +10750,7 @@ const getProps$p = () => ({
|
|
10740
10750
|
}
|
10741
10751
|
o.store.setIsCreatingRequesting(o.formID, !0);
|
10742
10752
|
try {
|
10743
|
-
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
10753
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = o.varButtonCreate.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
|
10744
10754
|
if (await l.store.emit(o.formID, "beforeRequest", {
|
10745
10755
|
isCreating: o.isCreating.value,
|
10746
10756
|
isUpdating: o.isUpdating.value,
|
@@ -10754,7 +10764,7 @@ const getProps$p = () => ({
|
|
10754
10764
|
}))
|
10755
10765
|
return;
|
10756
10766
|
await httpClient().request({
|
10757
|
-
method: (
|
10767
|
+
method: (ae = (Z = o.varButtonCreate.value) == null ? void 0 : Z.cmd_method) != null ? ae : "POST",
|
10758
10768
|
url: F,
|
10759
10769
|
params: ee.value,
|
10760
10770
|
data: ie.value
|
@@ -10772,9 +10782,9 @@ const getProps$p = () => ({
|
|
10772
10782
|
o.store.setIsCreatingRequesting(o.formID, !1);
|
10773
10783
|
}
|
10774
10784
|
}
|
10775
|
-
async function
|
10776
|
-
var
|
10777
|
-
const F = (
|
10785
|
+
async function ne() {
|
10786
|
+
var x, W, J, Z, ae, se;
|
10787
|
+
const F = (x = o.varButtonUpdate.value) == null ? void 0 : x.cmd;
|
10778
10788
|
if (!F) {
|
10779
10789
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10780
10790
|
VarButton: o.varButtonUpdate.value
|
@@ -10783,7 +10793,7 @@ const getProps$p = () => ({
|
|
10783
10793
|
}
|
10784
10794
|
try {
|
10785
10795
|
o.store.setIsUpdatingRequesting(o.formID, !0);
|
10786
|
-
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
10796
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = o.varButtonUpdate.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
|
10787
10797
|
if (await l.store.emit(o.formID, "beforeRequest", {
|
10788
10798
|
isCreating: o.isCreating.value,
|
10789
10799
|
isUpdating: o.isUpdating.value,
|
@@ -10797,7 +10807,7 @@ const getProps$p = () => ({
|
|
10797
10807
|
}))
|
10798
10808
|
return;
|
10799
10809
|
await httpClient().request({
|
10800
|
-
method: (
|
10810
|
+
method: (ae = (Z = o.varButtonUpdate.value) == null ? void 0 : Z.cmd_method) != null ? ae : "POST",
|
10801
10811
|
url: F,
|
10802
10812
|
params: ee.value,
|
10803
10813
|
data: ie.value
|
@@ -10816,8 +10826,8 @@ const getProps$p = () => ({
|
|
10816
10826
|
}
|
10817
10827
|
}
|
10818
10828
|
async function ue() {
|
10819
|
-
var
|
10820
|
-
const F = (
|
10829
|
+
var x, W, J, Z, ae, se, ee, ie;
|
10830
|
+
const F = (x = o.varButtonCopy.value) == null ? void 0 : x.cmd;
|
10821
10831
|
if (!F) {
|
10822
10832
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10823
10833
|
VarButton: o.varButtonCopy.value
|
@@ -10826,11 +10836,11 @@ const getProps$p = () => ({
|
|
10826
10836
|
}
|
10827
10837
|
try {
|
10828
10838
|
o.store.setIsCopyingRequesting(o.formID, !0);
|
10829
|
-
let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
10839
|
+
let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = o.varButtonCopy.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), o.formID, r)), pe = ref(KgUtil.parseParams({
|
10830
10840
|
...(Z = s.selectedFirstRow.value) != null ? Z : {},
|
10831
10841
|
...toRaw(l.model.value)
|
10832
10842
|
}, o.formID, r));
|
10833
|
-
if (((
|
10843
|
+
if (((ae = m.value) == null ? void 0 : ae.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(o.formID, "beforeRequest", {
|
10834
10844
|
isCreating: o.isCreating.value,
|
10835
10845
|
isUpdating: o.isUpdating.value,
|
10836
10846
|
isCopying: o.isCopying.value,
|
@@ -10862,8 +10872,8 @@ const getProps$p = () => ({
|
|
10862
10872
|
}
|
10863
10873
|
}
|
10864
10874
|
async function fe() {
|
10865
|
-
var
|
10866
|
-
const F = (
|
10875
|
+
var x, W, J, Z, ae, se;
|
10876
|
+
const F = (x = o.varButtonDelete.value) == null ? void 0 : x.cmd;
|
10867
10877
|
if (!F) {
|
10868
10878
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10869
10879
|
VarButton: o.varButtonDelete.value
|
@@ -10873,7 +10883,7 @@ const getProps$p = () => ({
|
|
10873
10883
|
try {
|
10874
10884
|
o.store.setIsDeletingRequesting(o.formID, !0);
|
10875
10885
|
let ee = ref({
|
10876
|
-
ids: (J = (
|
10886
|
+
ids: (J = (W = s.selectedRows.value) == null ? void 0 : W.map((pe) => {
|
10877
10887
|
var me, _e, he;
|
10878
10888
|
return (he = pe[(_e = (me = o.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
|
10879
10889
|
})) != null ? J : []
|
@@ -10891,7 +10901,7 @@ const getProps$p = () => ({
|
|
10891
10901
|
}))
|
10892
10902
|
return;
|
10893
10903
|
await httpClient().request({
|
10894
|
-
method: (
|
10904
|
+
method: (ae = (Z = o.varButtonDelete.value) == null ? void 0 : Z.cmd_method) != null ? ae : "DELETE",
|
10895
10905
|
url: F,
|
10896
10906
|
params: ee.value,
|
10897
10907
|
data: ie.value
|
@@ -10912,9 +10922,9 @@ const getProps$p = () => ({
|
|
10912
10922
|
}
|
10913
10923
|
}
|
10914
10924
|
function de(F) {
|
10915
|
-
var
|
10916
|
-
const
|
10917
|
-
return isFunction$2(
|
10925
|
+
var W, J;
|
10926
|
+
const x = (J = (W = a == null ? void 0 : a.KgSubmit) == null ? void 0 : W["KgForm.Item"]) == null ? void 0 : J[F.var_nam];
|
10927
|
+
return isFunction$2(x) ? createVNode(KgForm.Item, {
|
10918
10928
|
kgVarName: F.var_nam,
|
10919
10929
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10920
10930
|
kgRules: l.rules.value[F.var_nam],
|
@@ -10922,14 +10932,14 @@ const getProps$p = () => ({
|
|
10922
10932
|
}, {
|
10923
10933
|
control: ({
|
10924
10934
|
varName: Z,
|
10925
|
-
props:
|
10935
|
+
props: ae,
|
10926
10936
|
model: se,
|
10927
10937
|
varVariableConfig: ee,
|
10928
10938
|
varProfileDetail: ie,
|
10929
10939
|
varSubmitField: ge
|
10930
|
-
}) =>
|
10940
|
+
}) => x({
|
10931
10941
|
varName: Z,
|
10932
|
-
props:
|
10942
|
+
props: ae,
|
10933
10943
|
model: se,
|
10934
10944
|
varVariableConfig: ee,
|
10935
10945
|
varProfileDetail: ie,
|
@@ -10943,14 +10953,14 @@ const getProps$p = () => ({
|
|
10943
10953
|
}, null);
|
10944
10954
|
}
|
10945
10955
|
function R() {
|
10946
|
-
let F,
|
10956
|
+
let F, x;
|
10947
10957
|
return createVNode(KgResizable, {
|
10948
10958
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10949
10959
|
kgMinWidth: U.value,
|
10950
10960
|
kgMaxWidth: $.value,
|
10951
10961
|
kgWidth: V.value,
|
10952
10962
|
kgDisabled: w.value,
|
10953
|
-
"onUpdate:kgWidth": (
|
10963
|
+
"onUpdate:kgWidth": (W) => A.value.kgWidth = W
|
10954
10964
|
}, {
|
10955
10965
|
default: () => [createVNode(Spin, {
|
10956
10966
|
spinning: d.value
|
@@ -10970,8 +10980,8 @@ const getProps$p = () => ({
|
|
10970
10980
|
default: () => [F]
|
10971
10981
|
}), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
10972
10982
|
gutter: 12
|
10973
|
-
}, _isSlot$8(
|
10974
|
-
default: () => [
|
10983
|
+
}, _isSlot$8(x = M.value.map(de)) ? x : {
|
10984
|
+
default: () => [x]
|
10975
10985
|
}), u.value && createVNode("div", {
|
10976
10986
|
style: "text-align: center; padding: 6px 0 12px;"
|
10977
10987
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -10979,13 +10989,13 @@ const getProps$p = () => ({
|
|
10979
10989
|
})]
|
10980
10990
|
});
|
10981
10991
|
}
|
10982
|
-
function
|
10983
|
-
let F,
|
10992
|
+
function B() {
|
10993
|
+
let F, x;
|
10984
10994
|
return createVNode("div", null, [createVNode(Button, {
|
10985
10995
|
type: "primary",
|
10986
10996
|
ghost: !P.value,
|
10987
10997
|
disabled: P.value,
|
10988
|
-
onClick:
|
10998
|
+
onClick: oe
|
10989
10999
|
}, _isSlot$8(F = n.t("kg.cancel")) ? F : {
|
10990
11000
|
default: () => [F]
|
10991
11001
|
}), createVNode(Button, {
|
@@ -10994,11 +11004,11 @@ const getProps$p = () => ({
|
|
10994
11004
|
loading: E.value,
|
10995
11005
|
danger: !!o.isDeleting.value,
|
10996
11006
|
onClick: le
|
10997
|
-
}, _isSlot$8(
|
10998
|
-
default: () => [
|
11007
|
+
}, _isSlot$8(x = n.t(o.isDeleting.value ? "kg.delete" : "kg.save")) ? x : {
|
11008
|
+
default: () => [x]
|
10999
11009
|
})]);
|
11000
11010
|
}
|
11001
|
-
function
|
11011
|
+
function z() {
|
11002
11012
|
return createVNode("div", {
|
11003
11013
|
title: D.title.value
|
11004
11014
|
}, [D.title.value]);
|
@@ -11009,7 +11019,7 @@ const getProps$p = () => ({
|
|
11009
11019
|
"onUpdate:isFullscreen": (F) => H.isFullscreen = F,
|
11010
11020
|
kgShowFullscreenButton: !u.value,
|
11011
11021
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11012
|
-
onKgCancel:
|
11022
|
+
onKgCancel: oe
|
11013
11023
|
}, null);
|
11014
11024
|
}
|
11015
11025
|
return onUnmounted(() => {
|
@@ -11025,10 +11035,10 @@ const getProps$p = () => ({
|
|
11025
11035
|
class: K.value,
|
11026
11036
|
"kg-frm_id": o.formID
|
11027
11037
|
}, {
|
11028
|
-
title:
|
11038
|
+
title: z,
|
11029
11039
|
extra: X,
|
11030
11040
|
default: R,
|
11031
|
-
footer:
|
11041
|
+
footer: B
|
11032
11042
|
});
|
11033
11043
|
}
|
11034
11044
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -11248,7 +11258,7 @@ function useKgTable(e) {
|
|
11248
11258
|
}), m = computed(() => {
|
11249
11259
|
var g, _;
|
11250
11260
|
return JSON.parse((_ = (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opts) != null ? _ : "[]");
|
11251
|
-
}),
|
11261
|
+
}), b = computed(() => {
|
11252
11262
|
var g;
|
11253
11263
|
return (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opt;
|
11254
11264
|
}), C = computed(() => {
|
@@ -11268,7 +11278,7 @@ function useKgTable(e) {
|
|
11268
11278
|
isShowBottomRight: u,
|
11269
11279
|
id: d,
|
11270
11280
|
pageSizeOptions: m,
|
11271
|
-
pageSizeOption:
|
11281
|
+
pageSizeOption: b,
|
11272
11282
|
profileFormID: C,
|
11273
11283
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
11274
11284
|
onBeforeRetrieve: onEventFactory(t.formID, r, "beforeRetrieve"),
|
@@ -11313,7 +11323,7 @@ const getProps$n = () => ({
|
|
11313
11323
|
var M, E;
|
11314
11324
|
let T = "kg-table-td";
|
11315
11325
|
return ((M = l.value) == null ? void 0 : M.align) === "center" ? T += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
|
11316
|
-
}),
|
11326
|
+
}), b = computed(() => {
|
11317
11327
|
var M, E, P, I;
|
11318
11328
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11319
11329
|
return "";
|
@@ -11350,7 +11360,7 @@ const getProps$n = () => ({
|
|
11350
11360
|
}
|
11351
11361
|
function _() {
|
11352
11362
|
}
|
11353
|
-
function
|
11363
|
+
function y() {
|
11354
11364
|
return createVNode(KgForm, {
|
11355
11365
|
ref: C,
|
11356
11366
|
model: i.model.value,
|
@@ -11371,10 +11381,10 @@ const getProps$n = () => ({
|
|
11371
11381
|
})]
|
11372
11382
|
});
|
11373
11383
|
}
|
11374
|
-
function
|
11384
|
+
function v() {
|
11375
11385
|
var T, M, E, P, I, A, w, U, $, V;
|
11376
11386
|
if (u.value)
|
11377
|
-
return
|
11387
|
+
return y();
|
11378
11388
|
switch ((T = l.value) == null ? void 0 : T.display_type) {
|
11379
11389
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11380
11390
|
const O = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
|
@@ -11399,10 +11409,10 @@ const getProps$n = () => ({
|
|
11399
11409
|
const O = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
11400
11410
|
if (O.isTag && isArrayLike(O.tagColors)) {
|
11401
11411
|
const D = O.tagColors.find((N) => N.value === e.kgValue);
|
11402
|
-
return
|
11412
|
+
return b.value ? createVNode(Tag, {
|
11403
11413
|
color: (w = D == null ? void 0 : D.color) != null ? w : "default"
|
11404
11414
|
}, {
|
11405
|
-
default: () => [
|
11415
|
+
default: () => [b.value]
|
11406
11416
|
}) : k();
|
11407
11417
|
} else
|
11408
11418
|
return k();
|
@@ -11428,15 +11438,15 @@ const getProps$n = () => ({
|
|
11428
11438
|
function k(T = !1) {
|
11429
11439
|
let M = "";
|
11430
11440
|
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
11431
|
-
innerHTML:
|
11441
|
+
innerHTML: b.value,
|
11432
11442
|
class: M,
|
11433
11443
|
onClick: g
|
11434
11444
|
}, null);
|
11435
11445
|
}
|
11436
11446
|
return () => createVNode("div", {
|
11437
11447
|
class: m.value,
|
11438
|
-
title:
|
11439
|
-
}, [
|
11448
|
+
title: b.value
|
11449
|
+
}, [v()]);
|
11440
11450
|
}
|
11441
11451
|
}), KgTable_Info = "";
|
11442
11452
|
function _isSlot$6(e) {
|
@@ -11524,8 +11534,8 @@ const getProps$m = () => ({
|
|
11524
11534
|
}) => {
|
11525
11535
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11526
11536
|
return i = watch(l, (u) => {
|
11527
|
-
var d, m,
|
11528
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (
|
11537
|
+
var d, m, b, C, g, _, y, v, k, T, M;
|
11538
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (b = c == null ? void 0 : c.mult_flg) != null ? b : 0, u.show_check_column_flg = (C = c == null ? void 0 : c.show_check_column_flg) != null ? C : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (y = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? y : 0, u.pg_size_opts = (v = c == null ? void 0 : c.pg_size_opts) != null ? v : "[10, 20, 50, 100]", u.pg_size_opt = (k = c == null ? void 0 : c.pg_size_opt) != null ? k : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11529
11539
|
}, {
|
11530
11540
|
immediate: !0
|
11531
11541
|
}), !1;
|
@@ -11714,8 +11724,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
11714
11724
|
return o.onOpen(async ({
|
11715
11725
|
model: i
|
11716
11726
|
}) => {
|
11717
|
-
var s, l, c, u, d, m,
|
11718
|
-
return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (C = (
|
11727
|
+
var s, l, c, u, d, m, b, C, g, _;
|
11728
|
+
return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (C = (b = n.currentVarGridMaster.value) == null ? void 0 : b.grp_nam) != null ? C : "", i.value.varGridDetails = (_ = (g = n.currentVarGridMaster.value) == null ? void 0 : g.varGridDetails) != null ? _ : [], !1;
|
11719
11729
|
}), o.onBeforeOk(async ({
|
11720
11730
|
model: i
|
11721
11731
|
}) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
|
@@ -11748,7 +11758,7 @@ const getProps$h = () => ({
|
|
11748
11758
|
}, {
|
11749
11759
|
immediate: !0
|
11750
11760
|
});
|
11751
|
-
function
|
11761
|
+
function b(k) {
|
11752
11762
|
n.store.patchVarGridDetail(n.formID, k.var_nam, {
|
11753
11763
|
vis_flg: k.vis_flg === 1 ? 0 : 1
|
11754
11764
|
});
|
@@ -11795,7 +11805,7 @@ const getProps$h = () => ({
|
|
11795
11805
|
}, [(k = n.currentVarGridDetails.value) == null ? void 0 : k.map((T) => createVNode("li", {
|
11796
11806
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
11797
11807
|
onClick: (M) => {
|
11798
|
-
M.preventDefault(), M.stopPropagation(),
|
11808
|
+
M.preventDefault(), M.stopPropagation(), b(T);
|
11799
11809
|
},
|
11800
11810
|
style: {
|
11801
11811
|
display: i(T, s.value) ? "flex" : "none"
|
@@ -11815,7 +11825,7 @@ const getProps$h = () => ({
|
|
11815
11825
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
11816
11826
|
});
|
11817
11827
|
}
|
11818
|
-
function
|
11828
|
+
function y() {
|
11819
11829
|
return createVNode(Menu.SubMenu, {
|
11820
11830
|
key: "2",
|
11821
11831
|
title: a.t("kg.KgTable.varGridMasters"),
|
@@ -11849,7 +11859,7 @@ const getProps$h = () => ({
|
|
11849
11859
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
11850
11860
|
});
|
11851
11861
|
}
|
11852
|
-
function
|
11862
|
+
function v() {
|
11853
11863
|
let k;
|
11854
11864
|
return createVNode(Menu.Item, {
|
11855
11865
|
key: "config-var-grid-master",
|
@@ -11873,7 +11883,7 @@ const getProps$h = () => ({
|
|
11873
11883
|
"onUpdate:openKeys": (k) => l.value = k,
|
11874
11884
|
selectable: !1
|
11875
11885
|
}, {
|
11876
|
-
default: () => [_(),
|
11886
|
+
default: () => [_(), y(), v()]
|
11877
11887
|
})
|
11878
11888
|
}), u.visible && createVNode(KgTableSettingConfigModal, {
|
11879
11889
|
visible: u.visible,
|
@@ -11887,8 +11897,8 @@ function _useColumns(e) {
|
|
11887
11897
|
var l;
|
11888
11898
|
return ((l = r.store.getVarGridConfig(r.formID)) == null ? void 0 : l.show_check_column_flg) === 1;
|
11889
11899
|
}), i = computed(() => {
|
11890
|
-
var m,
|
11891
|
-
const l = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (
|
11900
|
+
var m, b, C;
|
11901
|
+
const l = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (b = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? b : 0, u = r.store.getCurrentVisibleVarGridDetails(r.formID), d = [{
|
11892
11902
|
dataIndex: "index",
|
11893
11903
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
11894
11904
|
fixed: "left",
|
@@ -11899,10 +11909,10 @@ function _useColumns(e) {
|
|
11899
11909
|
}) => g + 1
|
11900
11910
|
}, ...(C = u == null ? void 0 : u.map((g) => {
|
11901
11911
|
const _ = g.var_nam;
|
11902
|
-
function
|
11912
|
+
function y() {
|
11903
11913
|
return g.width === "auto" ? "auto" : Number(g.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
11904
11914
|
}
|
11905
|
-
function
|
11915
|
+
function v() {
|
11906
11916
|
return r.t(_).value;
|
11907
11917
|
}
|
11908
11918
|
function k() {
|
@@ -11921,10 +11931,10 @@ function _useColumns(e) {
|
|
11921
11931
|
function E() {
|
11922
11932
|
return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
|
11923
11933
|
}
|
11924
|
-
const P =
|
11934
|
+
const P = y();
|
11925
11935
|
return {
|
11926
11936
|
dataIndex: _,
|
11927
|
-
title:
|
11937
|
+
title: v(),
|
11928
11938
|
width: P,
|
11929
11939
|
resizable: typeof P == "number",
|
11930
11940
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
@@ -12001,12 +12011,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12001
12011
|
resetPageIndex: R
|
12002
12012
|
}) => (G(R), !1)), l.onReset(async () => (G(!0), !1)), u.store.$onAction(async ({
|
12003
12013
|
name: R,
|
12004
|
-
args:
|
12014
|
+
args: B
|
12005
12015
|
}) => {
|
12006
12016
|
switch (R) {
|
12007
12017
|
case "setRowSelect":
|
12008
|
-
if (
|
12009
|
-
const
|
12018
|
+
if (B[0] === s.formID) {
|
12019
|
+
const z = B[1], X = B[2], F = z[u.id.value];
|
12010
12020
|
switch (!0) {
|
12011
12021
|
case (X && !V.value.includes(F)):
|
12012
12022
|
Y([...V.value, F]);
|
@@ -12018,39 +12028,39 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12018
12028
|
}
|
12019
12029
|
break;
|
12020
12030
|
case "clearDatas":
|
12021
|
-
|
12031
|
+
B[0] === s.formID && ($.value = [], O.total = 0, K(), b.value = []);
|
12022
12032
|
break;
|
12023
12033
|
}
|
12024
12034
|
});
|
12025
|
-
const m = ref(!1),
|
12035
|
+
const m = ref(!1), b = ref([]), {
|
12026
12036
|
columns: C,
|
12027
12037
|
scrollX: g
|
12028
12038
|
} = _useColumns(e), {
|
12029
12039
|
isLoading: _
|
12030
|
-
} = _useLoading(),
|
12031
|
-
_useResizeObserver(
|
12032
|
-
const
|
12033
|
-
var R,
|
12034
|
-
return (
|
12040
|
+
} = _useLoading(), y = ref(null);
|
12041
|
+
_useResizeObserver(y);
|
12042
|
+
const v = computed(() => {
|
12043
|
+
var R, B;
|
12044
|
+
return (B = (R = s.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? B : null;
|
12035
12045
|
}), k = computed(() => {
|
12036
|
-
var
|
12046
|
+
var B, z, X, F, x, W, J;
|
12037
12047
|
let R = {
|
12038
12048
|
pageNo: O.pageIndex,
|
12039
12049
|
pageSize: O.pageSize,
|
12040
12050
|
...D,
|
12041
|
-
...(
|
12051
|
+
...(z = (B = l.model) == null ? void 0 : B.value) != null ? z : {}
|
12042
12052
|
};
|
12043
12053
|
return s.varButtonSearch.value && (R = {
|
12044
12054
|
...R,
|
12045
12055
|
...KgVarUtil.parseCommandParameter((F = (X = s.varButtonSearch.value) == null ? void 0 : X.cmd_prm) != null ? F : "")
|
12046
|
-
}), (
|
12056
|
+
}), (x = s.varGridConfig.value) != null && x.cmd_prm && (R = {
|
12047
12057
|
...R,
|
12048
|
-
...KgVarUtil.parseCommandParameter((
|
12058
|
+
...KgVarUtil.parseCommandParameter((W = s.varGridConfig.value.cmd_prm) != null ? W : "")
|
12049
12059
|
}), ((J = s.varGridConfig.value) == null ? void 0 : J.convert_sort_field_to_under_score_flg) === 1 && R.column && (R.column = snakeCase$1(R.column)), R;
|
12050
12060
|
}), T = computed(() => {
|
12051
|
-
var R,
|
12052
|
-
if (!isNil((
|
12053
|
-
return (X = (
|
12061
|
+
var R, B, z, X;
|
12062
|
+
if (!isNil((B = (R = o == null ? void 0 : o.value) == null ? void 0 : R.KgTable) == null ? void 0 : B.kgDisabled))
|
12063
|
+
return (X = (z = o == null ? void 0 : o.value) == null ? void 0 : z.KgTable) == null ? void 0 : X.kgDisabled;
|
12054
12064
|
if (!isNil(e.kgDisabled))
|
12055
12065
|
return e.kgDisabled;
|
12056
12066
|
}), M = computed(() => !!T.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => !!T.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), P = computed(() => {
|
@@ -12074,13 +12084,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12074
12084
|
onChange: (R) => u.isMultiSelect.value && Y(R)
|
12075
12085
|
};
|
12076
12086
|
}), w = computed(() => {
|
12077
|
-
var
|
12087
|
+
var B;
|
12078
12088
|
let R = "kg-table";
|
12079
|
-
return ((
|
12089
|
+
return ((B = s.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (R += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (R += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (R += " kg-table--submitting"), R;
|
12080
12090
|
}), U = computed(() => {
|
12081
|
-
var
|
12091
|
+
var B;
|
12082
12092
|
let R = "kg-table-bottom";
|
12083
|
-
return ((
|
12093
|
+
return ((B = s.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (R += " kg-table-bottom--border"), R;
|
12084
12094
|
}), $ = ref([]), V = (de = u.store.getSelectedRowKeys(s.formID)) != null ? de : ref([]), O = reactive({
|
12085
12095
|
pageIndex: 1,
|
12086
12096
|
pageSize: 10,
|
@@ -12095,12 +12105,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12095
12105
|
});
|
12096
12106
|
watch(u.pageSizeOptions, (R) => {
|
12097
12107
|
R.length > 0 && !R.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
12098
|
-
}), watch([
|
12099
|
-
R &&
|
12108
|
+
}), watch([v, u.isReadAutomatically, l.isReady], ([R, B, z]) => {
|
12109
|
+
R && B && z && !u.store.getIsRetrieved(s.formID) && G(!0);
|
12100
12110
|
}, {
|
12101
12111
|
immediate: !0
|
12102
|
-
}), watch(s.isCreating, (R,
|
12103
|
-
R === !0 ? L() : R === !1 &&
|
12112
|
+
}), watch(s.isCreating, (R, B) => {
|
12113
|
+
R === !0 ? L() : R === !1 && B === !0 && H();
|
12104
12114
|
}), onUnmounted(() => {
|
12105
12115
|
u.store.dispose(s.formID);
|
12106
12116
|
});
|
@@ -12113,29 +12123,29 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12113
12123
|
}
|
12114
12124
|
}
|
12115
12125
|
function H() {
|
12116
|
-
const R = $.value.find((
|
12126
|
+
const R = $.value.find((B) => B[u.id.value] === KG_TABLE_TEMP_ID);
|
12117
12127
|
R && ($.value = without$1($.value, R), u.store.setSelectedRows(s.formID, []));
|
12118
12128
|
}
|
12119
|
-
function K(R,
|
12120
|
-
var
|
12129
|
+
function K(R, B) {
|
12130
|
+
var z;
|
12121
12131
|
if (!(!!T.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!A.value) {
|
12122
|
-
if (!
|
12132
|
+
if (!B) {
|
12123
12133
|
u.store.setSelectedRows(s.formID, []);
|
12124
12134
|
return;
|
12125
12135
|
}
|
12126
12136
|
switch (R == null ? void 0 : R.detail) {
|
12127
12137
|
case 1:
|
12128
|
-
switch ((
|
12138
|
+
switch ((z = s.varGridConfig.value) == null ? void 0 : z.operation_on_row_click) {
|
12129
12139
|
case 0:
|
12130
12140
|
break;
|
12131
12141
|
case 1:
|
12132
|
-
u.store.setSelectedRows(s.formID, [
|
12142
|
+
u.store.setSelectedRows(s.formID, [B]);
|
12133
12143
|
break;
|
12134
12144
|
}
|
12135
12145
|
break;
|
12136
12146
|
case 2:
|
12137
12147
|
u.store.emit(s.formID, "rowDoubleClick", {
|
12138
|
-
row:
|
12148
|
+
row: B
|
12139
12149
|
});
|
12140
12150
|
break;
|
12141
12151
|
}
|
@@ -12143,14 +12153,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12143
12153
|
}
|
12144
12154
|
function G(R = !1) {
|
12145
12155
|
KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
12146
|
-
const
|
12147
|
-
X && (setTimeout(() =>
|
12156
|
+
const B = watch(m, (X) => {
|
12157
|
+
X && (setTimeout(() => B()), z());
|
12148
12158
|
}, {
|
12149
12159
|
immediate: !0
|
12150
12160
|
});
|
12151
|
-
async function
|
12152
|
-
var X, F;
|
12153
|
-
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !
|
12161
|
+
async function z() {
|
12162
|
+
var X, F, x;
|
12163
|
+
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !v.value) {
|
12154
12164
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12155
12165
|
VarButton: s.varButtonSearch.value
|
12156
12166
|
});
|
@@ -12158,120 +12168,122 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12158
12168
|
}
|
12159
12169
|
R && (O.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
12160
12170
|
try {
|
12161
|
-
const
|
12171
|
+
const W = KgUtil.parseParams(k.value, u.profileFormID.value, a), J = ref({});
|
12162
12172
|
await u.store.emit(s.formID, "beforeRetrieve", {
|
12163
|
-
params:
|
12164
|
-
response:
|
12165
|
-
}) ? KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) :
|
12173
|
+
params: W,
|
12174
|
+
response: J
|
12175
|
+
}) ? KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : J.value = await httpClient().request({
|
12166
12176
|
method: "GET",
|
12167
|
-
url:
|
12168
|
-
params:
|
12177
|
+
url: v.value,
|
12178
|
+
params: W
|
12169
12179
|
}, {
|
12170
12180
|
successMessageMode: "none"
|
12171
12181
|
});
|
12172
|
-
let
|
12182
|
+
let Z = ref([]), ae = ref(0);
|
12173
12183
|
switch (!0) {
|
12174
|
-
case !
|
12175
|
-
|
12184
|
+
case !J.value:
|
12185
|
+
Z.value = [], ae.value = 0;
|
12176
12186
|
break;
|
12177
|
-
case isArrayLike(
|
12178
|
-
|
12187
|
+
case isArrayLike(J.value):
|
12188
|
+
Z.value = J.value, ae.value = J.value.length;
|
12179
12189
|
break;
|
12180
|
-
case ("total" in
|
12181
|
-
|
12190
|
+
case ("total" in J.value && "records" in J.value):
|
12191
|
+
Z.value = (X = J.value.records) != null ? X : [], ae.value = (F = J.value.total) != null ? F : 0;
|
12182
12192
|
break;
|
12183
12193
|
}
|
12184
12194
|
await u.store.emit(s.formID, "beforeSetDatas", {
|
12185
|
-
datas:
|
12186
|
-
total:
|
12187
|
-
}), $.value =
|
12188
|
-
page:
|
12195
|
+
datas: Z,
|
12196
|
+
total: ae
|
12197
|
+
}), $.value = Z.value, O.total = ae.value, K(), b.value = [], await nextTick(), ((x = s.varGridConfig.value) == null ? void 0 : x.check_first_row_after_retrieve) === 1 && $.value.length > 0 && u.store.setSelectedRows(s.formID, [$.value[0]]), await u.store.emit(s.formID, "retrieve", {
|
12198
|
+
page: J.value,
|
12189
12199
|
datas: $
|
12190
12200
|
}), u.store.setIsRetrieved(s.formID, !0);
|
12191
|
-
} catch (
|
12192
|
-
throw
|
12201
|
+
} catch (W) {
|
12202
|
+
throw W;
|
12193
12203
|
} finally {
|
12194
12204
|
u.store.setIsRetrieving(s.formID, !1);
|
12195
12205
|
}
|
12196
12206
|
}
|
12197
12207
|
}
|
12198
12208
|
function Y(R) {
|
12199
|
-
u.store.setSelectedRows(s.formID, R.map((
|
12200
|
-
var
|
12201
|
-
return (
|
12202
|
-
}).filter((
|
12209
|
+
u.store.setSelectedRows(s.formID, R.map((B) => {
|
12210
|
+
var z;
|
12211
|
+
return (z = $.value) == null ? void 0 : z.find((X) => X[u.id.value] === B);
|
12212
|
+
}).filter((B) => !!B));
|
12203
12213
|
}
|
12204
12214
|
function Q(R) {
|
12205
|
-
var
|
12215
|
+
var B, z;
|
12206
12216
|
switch (u.isMultiSelect.value) {
|
12207
12217
|
case !0:
|
12208
12218
|
{
|
12209
12219
|
const X = R[u.id.value];
|
12210
|
-
V.value.includes(X) ? V.value = without$1(V.value, X) : V.value = [...(
|
12220
|
+
V.value.includes(X) ? V.value = without$1(V.value, X) : V.value = [...(B = V.value) != null ? B : [], X];
|
12211
12221
|
}
|
12212
12222
|
break;
|
12213
12223
|
case !1:
|
12214
12224
|
{
|
12215
12225
|
const X = R[u.id.value];
|
12216
|
-
(
|
12226
|
+
(z = V.value) != null && z.includes(X) ? V.value = [] : V.value = [X];
|
12217
12227
|
}
|
12218
12228
|
break;
|
12219
12229
|
}
|
12220
12230
|
u.store.setSelectedRows(s.formID, V.value.map((X) => {
|
12221
12231
|
var F;
|
12222
|
-
return (F = $.value) == null ? void 0 : F.find((
|
12232
|
+
return (F = $.value) == null ? void 0 : F.find((x) => x[u.id.value] === X);
|
12223
12233
|
}).filter((X) => !!X));
|
12224
12234
|
}
|
12225
|
-
function q(R,
|
12226
|
-
|
12235
|
+
function q(R, B) {
|
12236
|
+
B.width = R, s.store.setVarGridDetailWidth(s.formID, B.dataIndex, R);
|
12227
12237
|
}
|
12228
|
-
async function te(R,
|
12238
|
+
async function te(R, B, z, X) {
|
12229
12239
|
var F;
|
12230
12240
|
switch (X.action) {
|
12231
12241
|
case "sort":
|
12232
12242
|
{
|
12233
12243
|
await nextTick();
|
12234
|
-
let
|
12235
|
-
|
12244
|
+
let x = z;
|
12245
|
+
x.order ? (D.column = (F = x.field) != null ? F : void 0, D.order = x.order === "ascend" ? "asc" : x.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), G(!0);
|
12236
12246
|
}
|
12237
12247
|
break;
|
12238
12248
|
}
|
12239
12249
|
}
|
12240
|
-
function re(R,
|
12250
|
+
function re(R, B) {
|
12241
12251
|
var X;
|
12242
|
-
const
|
12252
|
+
const z = B[u.id.value];
|
12243
12253
|
switch ((X = s.varGridConfig.value) == null ? void 0 : X.expand_accordion_flg) {
|
12244
12254
|
case 0:
|
12245
|
-
R ?
|
12255
|
+
R ? b.value = uniq([...b.value, z]) : b.value = without$1(b.value, z);
|
12246
12256
|
break;
|
12247
12257
|
default:
|
12248
|
-
R ?
|
12258
|
+
R ? b.value = [z] : b.value = [];
|
12249
12259
|
break;
|
12250
12260
|
}
|
12251
12261
|
}
|
12252
|
-
function
|
12253
|
-
|
12262
|
+
function oe(R, B) {
|
12263
|
+
B !== O.pageSize ? (O.pageIndex = 1, O.pageSize = B) : O.pageIndex = R, G();
|
12254
12264
|
}
|
12255
12265
|
function le(R) {
|
12256
|
-
u.store.setSelectedRows(s.formID, [R].map((
|
12257
|
-
var
|
12258
|
-
return (
|
12259
|
-
}).filter((
|
12266
|
+
u.store.setSelectedRows(s.formID, [R].map((B) => {
|
12267
|
+
var z;
|
12268
|
+
return (z = $.value) == null ? void 0 : z.find((X) => X[u.id.value] === B[u.id.value]);
|
12269
|
+
}).filter((B) => !!B)), c.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
12260
12270
|
}
|
12261
12271
|
function ce({
|
12262
12272
|
title: R,
|
12263
|
-
column:
|
12273
|
+
column: B
|
12264
12274
|
}) {
|
12265
|
-
switch (
|
12275
|
+
switch (B.dataIndex) {
|
12266
12276
|
case "index":
|
12267
12277
|
return createVNode(KgTableSetting, {
|
12268
12278
|
kgDisabled: T.value
|
12269
12279
|
}, null);
|
12270
12280
|
default:
|
12271
|
-
return createVNode("pre",
|
12281
|
+
return createVNode("pre", {
|
12282
|
+
title: R
|
12283
|
+
}, [R]);
|
12272
12284
|
}
|
12273
12285
|
}
|
12274
|
-
function
|
12286
|
+
function ne() {
|
12275
12287
|
var R;
|
12276
12288
|
return (R = n == null ? void 0 : n.KgTable) != null && R["summary.bodyCell"] ? createVNode(TableSummary, {
|
12277
12289
|
fixed: "bottom"
|
@@ -12281,16 +12293,16 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12281
12293
|
index: 0
|
12282
12294
|
}, null), I.value && createVNode(TableSummary.Cell, {
|
12283
12295
|
index: P.value ? 1 : 0
|
12284
|
-
}, null), C.value.map((
|
12285
|
-
const X = s.store.getVarGridDetail(s.formID,
|
12286
|
-
let F =
|
12296
|
+
}, null), C.value.map((B, z) => {
|
12297
|
+
const X = s.store.getVarGridDetail(s.formID, B.dataIndex);
|
12298
|
+
let F = z;
|
12287
12299
|
return P.value && I.value ? F += 2 : (P.value || I.value) && (F += 1), createVNode(TableSummary.Cell, {
|
12288
12300
|
index: F
|
12289
12301
|
}, {
|
12290
12302
|
default: () => {
|
12291
|
-
var
|
12292
|
-
return [(
|
12293
|
-
column:
|
12303
|
+
var x, W;
|
12304
|
+
return [(W = (x = n == null ? void 0 : n.KgTable) == null ? void 0 : x["summary.bodyCell"]) == null ? void 0 : W.call(x, {
|
12305
|
+
column: B,
|
12294
12306
|
index: F,
|
12295
12307
|
varGridDetail: X
|
12296
12308
|
})];
|
@@ -12302,41 +12314,41 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12302
12314
|
}
|
12303
12315
|
function ue({
|
12304
12316
|
column: R,
|
12305
|
-
index:
|
12306
|
-
record:
|
12317
|
+
index: B,
|
12318
|
+
record: z,
|
12307
12319
|
text: X,
|
12308
12320
|
value: F
|
12309
12321
|
}) {
|
12310
12322
|
var J;
|
12311
|
-
let
|
12312
|
-
R.customRender ?
|
12313
|
-
index:
|
12314
|
-
record:
|
12323
|
+
let x = "";
|
12324
|
+
R.customRender ? x = R.customRender({
|
12325
|
+
index: B,
|
12326
|
+
record: z,
|
12315
12327
|
column: R,
|
12316
12328
|
text: X,
|
12317
12329
|
value: F,
|
12318
|
-
renderIndex:
|
12319
|
-
}) :
|
12320
|
-
const
|
12321
|
-
kgRow:
|
12322
|
-
kgValue:
|
12330
|
+
renderIndex: B
|
12331
|
+
}) : x = F;
|
12332
|
+
const W = createVNode(KgTableCell, {
|
12333
|
+
kgRow: z,
|
12334
|
+
kgValue: x,
|
12323
12335
|
kgVarName: R.dataIndex,
|
12324
|
-
onKgUpdateLinkClick: () => le(
|
12336
|
+
onKgUpdateLinkClick: () => le(z)
|
12325
12337
|
}, null);
|
12326
12338
|
if ((J = n == null ? void 0 : n.KgTable) != null && J.bodyCell) {
|
12327
12339
|
const Z = R.dataIndex ? s.store.getVarGridDetail(s.formID, R.dataIndex) : null;
|
12328
12340
|
return n.KgTable.bodyCell({
|
12329
12341
|
column: R,
|
12330
|
-
index:
|
12331
|
-
record:
|
12342
|
+
index: B,
|
12343
|
+
record: z,
|
12332
12344
|
text: X,
|
12333
12345
|
value: F,
|
12334
|
-
row:
|
12346
|
+
row: z,
|
12335
12347
|
varGridDetail: Z,
|
12336
|
-
defaultRender:
|
12348
|
+
defaultRender: W
|
12337
12349
|
});
|
12338
12350
|
} else
|
12339
|
-
return
|
12351
|
+
return W;
|
12340
12352
|
}
|
12341
12353
|
function fe() {
|
12342
12354
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(s.formID) ? i.t("kg.KgTable.emptyText") : i.t("kg.emptyText");
|
@@ -12346,7 +12358,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12346
12358
|
return createVNode("div", {
|
12347
12359
|
class: w.value,
|
12348
12360
|
"kg-frm_id": s.formID,
|
12349
|
-
ref:
|
12361
|
+
ref: y
|
12350
12362
|
}, [createVNode(Table, {
|
12351
12363
|
class: "kg-flex-table",
|
12352
12364
|
size: "small",
|
@@ -12361,10 +12373,10 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12361
12373
|
loading: _.value,
|
12362
12374
|
rowKey: u.id.value,
|
12363
12375
|
expandColumnWidth: 28,
|
12364
|
-
expandedRowKeys:
|
12376
|
+
expandedRowKeys: b.value,
|
12365
12377
|
rowSelection: A.value,
|
12366
|
-
customRow: (
|
12367
|
-
onClick: (
|
12378
|
+
customRow: (B) => ({
|
12379
|
+
onClick: (z) => K(z, B)
|
12368
12380
|
}),
|
12369
12381
|
onResizeColumn: q,
|
12370
12382
|
onChange: te,
|
@@ -12374,7 +12386,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12374
12386
|
bodyCell: ue,
|
12375
12387
|
emptyText: fe,
|
12376
12388
|
expandedRowRender: (R = n == null ? void 0 : n.KgTable) == null ? void 0 : R.expandedRowRender,
|
12377
|
-
summary:
|
12389
|
+
summary: ne
|
12378
12390
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
12379
12391
|
class: U.value
|
12380
12392
|
}, [createVNode("div", {
|
@@ -12391,7 +12403,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12391
12403
|
size: "default",
|
12392
12404
|
current: O.pageIndex,
|
12393
12405
|
pageSize: O.pageSize,
|
12394
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
12406
|
+
pageSizeOptions: u.pageSizeOptions.value.map((B) => String(B)),
|
12395
12407
|
total: O.total,
|
12396
12408
|
showSizeChanger: !0,
|
12397
12409
|
showQuickJumper: !1,
|
@@ -12400,12 +12412,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12400
12412
|
locale: {
|
12401
12413
|
page: ""
|
12402
12414
|
},
|
12403
|
-
showTotal: (
|
12404
|
-
from:
|
12405
|
-
to:
|
12406
|
-
total:
|
12415
|
+
showTotal: (B, z) => i.t("kg.KgTable.totalText", {
|
12416
|
+
from: z[0],
|
12417
|
+
to: z[1],
|
12418
|
+
total: B
|
12407
12419
|
}),
|
12408
|
-
onChange: (
|
12420
|
+
onChange: (B, z) => oe(B, z)
|
12409
12421
|
}, null)])])]);
|
12410
12422
|
};
|
12411
12423
|
}
|
@@ -12431,8 +12443,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12431
12443
|
attrs: t
|
12432
12444
|
}) {
|
12433
12445
|
const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
12434
|
-
var u, d, m,
|
12435
|
-
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((
|
12446
|
+
var u, d, m, b, C, g, _, y;
|
12447
|
+
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !r.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12436
12448
|
});
|
12437
12449
|
async function s() {
|
12438
12450
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -12448,7 +12460,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12448
12460
|
return e.kgText ? e.kgText : r.t("kg.copy");
|
12449
12461
|
}
|
12450
12462
|
return () => {
|
12451
|
-
var u, d, m,
|
12463
|
+
var u, d, m, b;
|
12452
12464
|
return createVNode(Button, {
|
12453
12465
|
type: "primary",
|
12454
12466
|
disabled: i.value,
|
@@ -12458,7 +12470,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12458
12470
|
"kg-id": (u = o.value) == null ? void 0 : u.id,
|
12459
12471
|
"kg-frm_id": (d = o.value) == null ? void 0 : d.frm_id,
|
12460
12472
|
"kg-var_nam": (m = o.value) == null ? void 0 : m.var_nam,
|
12461
|
-
"kg-cmd": (
|
12473
|
+
"kg-cmd": (b = o.value) == null ? void 0 : b.cmd
|
12462
12474
|
}, {
|
12463
12475
|
default: () => [l(), c()]
|
12464
12476
|
});
|
@@ -12613,7 +12625,7 @@ const KgButtonCreate = defineComponent({
|
|
12613
12625
|
async function m() {
|
12614
12626
|
e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
|
12615
12627
|
}
|
12616
|
-
function
|
12628
|
+
function b() {
|
12617
12629
|
i.store.emit(o.formID, "submitSave");
|
12618
12630
|
}
|
12619
12631
|
function C() {
|
@@ -12629,7 +12641,7 @@ const KgButtonCreate = defineComponent({
|
|
12629
12641
|
function _() {
|
12630
12642
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12631
12643
|
}
|
12632
|
-
function
|
12644
|
+
function y() {
|
12633
12645
|
var k, T, M, E;
|
12634
12646
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
|
12635
12647
|
type: "primary",
|
@@ -12644,10 +12656,10 @@ const KgButtonCreate = defineComponent({
|
|
12644
12656
|
default: () => [g(), _()]
|
12645
12657
|
});
|
12646
12658
|
}
|
12647
|
-
function
|
12659
|
+
function v() {
|
12648
12660
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
12649
12661
|
type: "primary",
|
12650
|
-
onClick:
|
12662
|
+
onClick: b,
|
12651
12663
|
disabled: !!o.isCreatingRequesting.value
|
12652
12664
|
}, {
|
12653
12665
|
default: () => [o.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -12660,15 +12672,15 @@ const KgButtonCreate = defineComponent({
|
|
12660
12672
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
12661
12673
|
})]);
|
12662
12674
|
}
|
12663
|
-
return () => createVNode(Fragment, null, [
|
12675
|
+
return () => createVNode(Fragment, null, [y(), v()]);
|
12664
12676
|
}
|
12665
12677
|
}), KgButtonDelete = defineComponent({
|
12666
12678
|
name: "KgButtonDelete",
|
12667
12679
|
props: getProps$f(),
|
12668
12680
|
setup(e) {
|
12669
12681
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
12670
|
-
var c, u, d, m,
|
12671
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((C = (
|
12682
|
+
var c, u, d, m, b, C, g, _;
|
12683
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((C = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) > 1 || ((g = n.value) == null ? void 0 : g.permission_type) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12672
12684
|
});
|
12673
12685
|
async function i() {
|
12674
12686
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -12711,7 +12723,7 @@ const KgButtonCreate = defineComponent({
|
|
12711
12723
|
var C, g;
|
12712
12724
|
return (g = (C = o.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
12713
12725
|
}), l = computed(() => {
|
12714
|
-
var g, _,
|
12726
|
+
var g, _, y, v, k, T;
|
12715
12727
|
let C = {
|
12716
12728
|
pageNo: 1,
|
12717
12729
|
pageSize: 9999999,
|
@@ -12719,14 +12731,14 @@ const KgButtonCreate = defineComponent({
|
|
12719
12731
|
};
|
12720
12732
|
return o.value && (C = {
|
12721
12733
|
...C,
|
12722
|
-
...KgVarUtil.parseCommandParameter((
|
12723
|
-
}), (
|
12734
|
+
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
12735
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (C = {
|
12724
12736
|
...C,
|
12725
12737
|
...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
|
12726
12738
|
}), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && C.column && (C.column = snakeCase$1(C.column)), C;
|
12727
12739
|
}), c = computed(() => {
|
12728
|
-
var C, g, _,
|
12729
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((
|
12740
|
+
var C, g, _, y, v, k, T, M;
|
12741
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((k = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12730
12742
|
}), u = ref(!1);
|
12731
12743
|
async function d() {
|
12732
12744
|
var C, g;
|
@@ -12747,8 +12759,8 @@ const KgButtonCreate = defineComponent({
|
|
12747
12759
|
}, {
|
12748
12760
|
joinParamsToUrl: !0,
|
12749
12761
|
isTransformResponse: !1
|
12750
|
-
}),
|
12751
|
-
KgUtil.downloadFile(_, `${
|
12762
|
+
}), y = (C = o.value) == null ? void 0 : C.export_excel_filename;
|
12763
|
+
KgUtil.downloadFile(_, `${y ? r.t(y).value : t.t("kg.export")}.${(g = o.value) == null ? void 0 : g.export_excel_suffix}`);
|
12752
12764
|
} catch (_) {
|
12753
12765
|
throw _;
|
12754
12766
|
} finally {
|
@@ -12763,11 +12775,11 @@ const KgButtonCreate = defineComponent({
|
|
12763
12775
|
icon: e.kgIcon
|
12764
12776
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
12765
12777
|
}
|
12766
|
-
function
|
12778
|
+
function b() {
|
12767
12779
|
return e.kgText ? e.kgText : t.t("kg.export");
|
12768
12780
|
}
|
12769
12781
|
return () => {
|
12770
|
-
var C, g, _,
|
12782
|
+
var C, g, _, y;
|
12771
12783
|
return createVNode(Button, {
|
12772
12784
|
type: "primary",
|
12773
12785
|
disabled: c.value,
|
@@ -12777,9 +12789,9 @@ const KgButtonCreate = defineComponent({
|
|
12777
12789
|
"kg-id": (C = o.value) == null ? void 0 : C.id,
|
12778
12790
|
"kg-frm_id": (g = o.value) == null ? void 0 : g.frm_id,
|
12779
12791
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
12780
|
-
"kg-cmd": (
|
12792
|
+
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
12781
12793
|
}, {
|
12782
|
-
default: () => [m(),
|
12794
|
+
default: () => [m(), b()]
|
12783
12795
|
});
|
12784
12796
|
};
|
12785
12797
|
}
|
@@ -12792,47 +12804,47 @@ const KgButtonCreate = defineComponent({
|
|
12792
12804
|
attrs: r
|
12793
12805
|
}) {
|
12794
12806
|
const a = useKg(), n = useKgVar(), o = useKgSearch(), i = useKgTable(), s = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), l = computed(() => {
|
12795
|
-
var _,
|
12796
|
-
return s.value ? (
|
12807
|
+
var _, y;
|
12808
|
+
return s.value ? (y = (_ = s.value) == null ? void 0 : _.cmd) != null ? y : "" : null;
|
12797
12809
|
}), c = computed(() => {
|
12798
|
-
var _,
|
12799
|
-
return (
|
12810
|
+
var _, y;
|
12811
|
+
return (y = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? y : "POST";
|
12800
12812
|
}), u = computed(() => {
|
12801
|
-
var
|
12813
|
+
var y, v, k;
|
12802
12814
|
let _ = {
|
12803
|
-
...(
|
12815
|
+
...(y = o.model.value) != null ? y : {}
|
12804
12816
|
};
|
12805
12817
|
return s.value && (_ = {
|
12806
12818
|
..._,
|
12807
|
-
...KgVarUtil.parseCommandParameter((k = (
|
12819
|
+
...KgVarUtil.parseCommandParameter((k = (v = s.value) == null ? void 0 : v.cmd_prm) != null ? k : "")
|
12808
12820
|
}), _;
|
12809
12821
|
}), d = computed(() => {
|
12810
|
-
var _,
|
12811
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((
|
12822
|
+
var _, y, v, k, T, M, E, P;
|
12823
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((v = (y = i.selectedRows.value) == null ? void 0 : y.length) != null ? v : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) > 1 || ((E = s.value) == null ? void 0 : E.permission_type) === 2 && !a.p((P = s.value) == null ? void 0 : P.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12812
12824
|
}), m = ref(!1);
|
12813
|
-
async function
|
12825
|
+
async function b(_) {
|
12814
12826
|
if (!l.value)
|
12815
12827
|
return KgLogger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12816
12828
|
VarButton: s.value
|
12817
12829
|
}), !1;
|
12818
12830
|
m.value = !0;
|
12819
12831
|
try {
|
12820
|
-
const
|
12821
|
-
|
12822
|
-
const
|
12832
|
+
const y = new FormData();
|
12833
|
+
y.append("file", _);
|
12834
|
+
const v = await httpClient().axiosInstance.request({
|
12823
12835
|
method: c.value,
|
12824
12836
|
baseURL: window._CONFIG.domianURL,
|
12825
12837
|
url: l.value,
|
12826
12838
|
params: KgUtil.parseParams(u.value),
|
12827
|
-
data:
|
12839
|
+
data: y,
|
12828
12840
|
headers: {
|
12829
12841
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
12830
12842
|
ignoreCancelToken: !0
|
12831
12843
|
}
|
12832
12844
|
});
|
12833
12845
|
message.success(a.t("kg.importSuccess")), o.search(!0);
|
12834
|
-
} catch (
|
12835
|
-
throw
|
12846
|
+
} catch (y) {
|
12847
|
+
throw y;
|
12836
12848
|
} finally {
|
12837
12849
|
m.value = !1;
|
12838
12850
|
}
|
@@ -12851,11 +12863,11 @@ const KgButtonCreate = defineComponent({
|
|
12851
12863
|
return () => createVNode(Upload, {
|
12852
12864
|
name: "file",
|
12853
12865
|
showUploadList: !1,
|
12854
|
-
beforeUpload:
|
12866
|
+
beforeUpload: b,
|
12855
12867
|
disabled: m.value
|
12856
12868
|
}, {
|
12857
12869
|
default: () => {
|
12858
|
-
var _,
|
12870
|
+
var _, y, v, k;
|
12859
12871
|
return [createVNode(Button, {
|
12860
12872
|
class: r.class,
|
12861
12873
|
type: "primary",
|
@@ -12863,8 +12875,8 @@ const KgButtonCreate = defineComponent({
|
|
12863
12875
|
ghost: !e.kgPrimary && !d.value,
|
12864
12876
|
loading: m.value,
|
12865
12877
|
"kg-id": (_ = s.value) == null ? void 0 : _.id,
|
12866
|
-
"kg-frm_id": (
|
12867
|
-
"kg-var_nam": (
|
12878
|
+
"kg-frm_id": (y = s.value) == null ? void 0 : y.frm_id,
|
12879
|
+
"kg-var_nam": (v = s.value) == null ? void 0 : v.var_nam,
|
12868
12880
|
"kg-cmd": (k = s.value) == null ? void 0 : k.cmd
|
12869
12881
|
}, {
|
12870
12882
|
default: () => [C(), g()]
|
@@ -12883,20 +12895,20 @@ const KgButtonCreate = defineComponent({
|
|
12883
12895
|
var C, g;
|
12884
12896
|
return (g = (C = o.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
12885
12897
|
}), l = computed(() => {
|
12886
|
-
var g, _,
|
12898
|
+
var g, _, y, v, k;
|
12887
12899
|
let C = {
|
12888
12900
|
...(g = a.model.value) != null ? g : {}
|
12889
12901
|
};
|
12890
12902
|
return o.value && (C = {
|
12891
12903
|
...C,
|
12892
|
-
...KgVarUtil.parseCommandParameter((
|
12893
|
-
}), (
|
12904
|
+
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
12905
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (C = {
|
12894
12906
|
...C,
|
12895
12907
|
...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
|
12896
12908
|
}), C;
|
12897
12909
|
}), c = computed(() => {
|
12898
|
-
var C, g, _,
|
12899
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((
|
12910
|
+
var C, g, _, y, v, k, T, M;
|
12911
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((k = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12900
12912
|
}), u = ref(!1);
|
12901
12913
|
async function d() {
|
12902
12914
|
var C, g;
|
@@ -12916,8 +12928,8 @@ const KgButtonCreate = defineComponent({
|
|
12916
12928
|
}, {
|
12917
12929
|
joinParamsToUrl: !0,
|
12918
12930
|
isTransformResponse: !1
|
12919
|
-
}),
|
12920
|
-
KgUtil.downloadFile(_, `${
|
12931
|
+
}), y = (C = o.value) == null ? void 0 : C.export_excel_filename;
|
12932
|
+
KgUtil.downloadFile(_, `${y ? r.t(y).value : t.t("kg.importTemplate")}.${(g = o.value) == null ? void 0 : g.export_excel_suffix}`);
|
12921
12933
|
} catch (_) {
|
12922
12934
|
throw _;
|
12923
12935
|
} finally {
|
@@ -12931,11 +12943,11 @@ const KgButtonCreate = defineComponent({
|
|
12931
12943
|
icon: e.kgIcon
|
12932
12944
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
12933
12945
|
}
|
12934
|
-
function
|
12946
|
+
function b() {
|
12935
12947
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
12936
12948
|
}
|
12937
12949
|
return () => {
|
12938
|
-
var C, g, _,
|
12950
|
+
var C, g, _, y;
|
12939
12951
|
return createVNode(Button, {
|
12940
12952
|
type: "primary",
|
12941
12953
|
disabled: c.value,
|
@@ -12945,9 +12957,9 @@ const KgButtonCreate = defineComponent({
|
|
12945
12957
|
"kg-id": (C = o.value) == null ? void 0 : C.id,
|
12946
12958
|
"kg-frm_id": (g = o.value) == null ? void 0 : g.frm_id,
|
12947
12959
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
12948
|
-
"kg-cmd": (
|
12960
|
+
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
12949
12961
|
}, {
|
12950
|
-
default: () => [m(),
|
12962
|
+
default: () => [m(), b()]
|
12951
12963
|
});
|
12952
12964
|
};
|
12953
12965
|
}
|
@@ -12956,14 +12968,14 @@ const KgButtonCreate = defineComponent({
|
|
12956
12968
|
props: getProps$f(),
|
12957
12969
|
setup(e) {
|
12958
12970
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
12959
|
-
var u, d, m,
|
12960
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((
|
12971
|
+
var u, d, m, b, C, g, _, y;
|
12972
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12961
12973
|
});
|
12962
12974
|
async function s() {
|
12963
|
-
var
|
12975
|
+
var b, C, g;
|
12964
12976
|
if (e.onKgClick && await e.onKgClick())
|
12965
12977
|
return;
|
12966
|
-
const u = (
|
12978
|
+
const u = (b = e.kgButton) == null ? void 0 : b.cmd;
|
12967
12979
|
if (!u) {
|
12968
12980
|
KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12969
12981
|
VarButton: e.kgButton
|
@@ -12972,12 +12984,12 @@ const KgButtonCreate = defineComponent({
|
|
12972
12984
|
}
|
12973
12985
|
let d = null;
|
12974
12986
|
const m = async () => {
|
12975
|
-
var
|
12987
|
+
var y, v, k, T, M, E;
|
12976
12988
|
d == null || d.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
12977
12989
|
const _ = n.selectedRows.value;
|
12978
12990
|
try {
|
12979
12991
|
await httpClient().request({
|
12980
|
-
method: (
|
12992
|
+
method: (v = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? v : "POST",
|
12981
12993
|
url: u,
|
12982
12994
|
params: KgVarUtil.parseCommandParameter((T = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? T : ""),
|
12983
12995
|
data: _ != null ? _ : []
|
@@ -13013,7 +13025,7 @@ const KgButtonCreate = defineComponent({
|
|
13013
13025
|
return e.kgText ? e.kgText : t.t("kg.button");
|
13014
13026
|
}
|
13015
13027
|
return () => {
|
13016
|
-
var u, d, m,
|
13028
|
+
var u, d, m, b;
|
13017
13029
|
return createVNode(Button, {
|
13018
13030
|
type: "primary",
|
13019
13031
|
disabled: i.value,
|
@@ -13023,7 +13035,7 @@ const KgButtonCreate = defineComponent({
|
|
13023
13035
|
"kg-id": (u = o.value) == null ? void 0 : u.id,
|
13024
13036
|
"kg-frm_id": (d = o.value) == null ? void 0 : d.frm_id,
|
13025
13037
|
"kg-var_nam": (m = o.value) == null ? void 0 : m.var_nam,
|
13026
|
-
"kg-cmd": (
|
13038
|
+
"kg-cmd": (b = o.value) == null ? void 0 : b.cmd
|
13027
13039
|
}, {
|
13028
13040
|
default: () => [l(), c()]
|
13029
13041
|
});
|
@@ -13097,7 +13109,7 @@ const KgButtonCreate = defineComponent({
|
|
13097
13109
|
row: i.selectedRow.value
|
13098
13110
|
}) || o.store.setIsUpdating(o.formID, !0);
|
13099
13111
|
}
|
13100
|
-
function
|
13112
|
+
function b() {
|
13101
13113
|
s.store.emit(o.formID, "submitSave");
|
13102
13114
|
}
|
13103
13115
|
function C() {
|
@@ -13113,7 +13125,7 @@ const KgButtonCreate = defineComponent({
|
|
13113
13125
|
function _() {
|
13114
13126
|
return e.kgText ? e.kgText : n.t("kg.update");
|
13115
13127
|
}
|
13116
|
-
function
|
13128
|
+
function y() {
|
13117
13129
|
var k, T, M, E;
|
13118
13130
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
|
13119
13131
|
type: "primary",
|
@@ -13129,10 +13141,10 @@ const KgButtonCreate = defineComponent({
|
|
13129
13141
|
default: () => [g(), _()]
|
13130
13142
|
});
|
13131
13143
|
}
|
13132
|
-
function
|
13144
|
+
function v() {
|
13133
13145
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
13134
13146
|
type: "primary",
|
13135
|
-
onClick:
|
13147
|
+
onClick: b,
|
13136
13148
|
disabled: !!o.isUpdatingRequesting.value
|
13137
13149
|
}, {
|
13138
13150
|
default: () => [o.isUpdatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -13145,7 +13157,7 @@ const KgButtonCreate = defineComponent({
|
|
13145
13157
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
13146
13158
|
})]);
|
13147
13159
|
}
|
13148
|
-
return () => createVNode(Fragment, null, [
|
13160
|
+
return () => createVNode(Fragment, null, [y(), v()]);
|
13149
13161
|
}
|
13150
13162
|
}), KgButton_Item = "";
|
13151
13163
|
function _isSlot$4(e) {
|
@@ -13219,8 +13231,8 @@ const getProps$e = () => ({
|
|
13219
13231
|
}
|
13220
13232
|
function l(g) {
|
13221
13233
|
return computed(() => {
|
13222
|
-
var
|
13223
|
-
const _ = ((
|
13234
|
+
var y, v;
|
13235
|
+
const _ = ((v = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgButton) == null ? void 0 : v.kgDisabled) || e.kgDisabled;
|
13224
13236
|
if (_) {
|
13225
13237
|
const k = _(g);
|
13226
13238
|
if (!isNil(k))
|
@@ -13250,7 +13262,7 @@ const getProps$e = () => ({
|
|
13250
13262
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
13251
13263
|
return C();
|
13252
13264
|
default:
|
13253
|
-
return
|
13265
|
+
return b();
|
13254
13266
|
}
|
13255
13267
|
}
|
13256
13268
|
function m(g) {
|
@@ -13266,7 +13278,7 @@ const getProps$e = () => ({
|
|
13266
13278
|
onKgClick: () => s(g)
|
13267
13279
|
}, null);
|
13268
13280
|
}
|
13269
|
-
function
|
13281
|
+
function b() {
|
13270
13282
|
var g;
|
13271
13283
|
return (g = n.varButtons.value) == null ? void 0 : g.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => m(_));
|
13272
13284
|
}
|
@@ -13283,10 +13295,10 @@ const getProps$e = () => ({
|
|
13283
13295
|
overlay: () => createVNode(Menu, null, {
|
13284
13296
|
default: () => {
|
13285
13297
|
var g, _;
|
13286
|
-
return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((
|
13287
|
-
let
|
13288
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
13289
|
-
default: () => [
|
13298
|
+
return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((y) => y.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((y) => !(y.permission_type !== 2 && !a.p(y.permission_code))).map((y) => {
|
13299
|
+
let v;
|
13300
|
+
return createVNode(Menu.Item, null, _isSlot$3(v = m(y)) ? v : {
|
13301
|
+
default: () => [v]
|
13290
13302
|
});
|
13291
13303
|
})];
|
13292
13304
|
}
|
@@ -13709,8 +13721,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13709
13721
|
i.onOpen(async ({
|
13710
13722
|
isCreating: g,
|
13711
13723
|
isUpdating: _,
|
13712
|
-
isCopying:
|
13713
|
-
row:
|
13724
|
+
isCopying: y,
|
13725
|
+
row: v,
|
13714
13726
|
model: k
|
13715
13727
|
}) => {
|
13716
13728
|
var M, E, P;
|
@@ -13720,13 +13732,13 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13720
13732
|
c.value = [];
|
13721
13733
|
break;
|
13722
13734
|
case _:
|
13723
|
-
case
|
13724
|
-
if (
|
13735
|
+
case y:
|
13736
|
+
if (v != null && v.id)
|
13725
13737
|
try {
|
13726
13738
|
i.store.setIsLoading(a.formID, !0);
|
13727
13739
|
const I = await QueryByID({
|
13728
13740
|
params: {
|
13729
|
-
id:
|
13741
|
+
id: v.id
|
13730
13742
|
}
|
13731
13743
|
});
|
13732
13744
|
l.value = l.value.map((w) => {
|
@@ -13750,7 +13762,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13750
13762
|
break;
|
13751
13763
|
}
|
13752
13764
|
switch (!0) {
|
13753
|
-
case
|
13765
|
+
case y:
|
13754
13766
|
k.value.prf_var_nam = ((P = k.value.prf_var_nam) != null ? P : "") + "_COPY";
|
13755
13767
|
break;
|
13756
13768
|
}
|
@@ -13758,9 +13770,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13758
13770
|
}), i.onBeforeOk(async ({
|
13759
13771
|
model: g
|
13760
13772
|
}) => {
|
13761
|
-
var
|
13773
|
+
var y, v;
|
13762
13774
|
const _ = g.value;
|
13763
|
-
return _.frm_id = s.formID, _.varProfileDetails = (
|
13775
|
+
return _.frm_id = s.formID, _.varProfileDetails = (v = (y = l.value) == null ? void 0 : y.filter((k) => c.value.includes(k.id))) != null ? v : [], !1;
|
13764
13776
|
}), i.onOk(async () => (s.store.retrieve(s.formID), !1)), o.onUpdateBeforeClick(({
|
13765
13777
|
row: g
|
13766
13778
|
}) => (g == null ? void 0 : g.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
|
@@ -13787,8 +13799,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13787
13799
|
varProfileDetails: ({
|
13788
13800
|
varName: g,
|
13789
13801
|
props: _,
|
13790
|
-
model:
|
13791
|
-
varVariableConfig:
|
13802
|
+
model: y,
|
13803
|
+
varVariableConfig: v,
|
13792
13804
|
varProfileDetail: k,
|
13793
13805
|
varSubmitField: T
|
13794
13806
|
}) => createVNode(Transfer, {
|
@@ -13837,13 +13849,13 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13837
13849
|
}
|
13838
13850
|
});
|
13839
13851
|
onMounted(() => {
|
13840
|
-
|
13852
|
+
b();
|
13841
13853
|
});
|
13842
13854
|
const m = ({
|
13843
13855
|
disabled: g,
|
13844
13856
|
selectedKeys: _,
|
13845
|
-
onItemSelectAll:
|
13846
|
-
onItemSelect:
|
13857
|
+
onItemSelectAll: y,
|
13858
|
+
onItemSelect: v
|
13847
13859
|
}) => ({
|
13848
13860
|
getCheckboxProps: (k) => ({
|
13849
13861
|
disabled: g || k.disabled
|
@@ -13852,17 +13864,17 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13852
13864
|
const M = T.filter((E) => !E.disabled).map(({
|
13853
13865
|
key: E
|
13854
13866
|
}) => E);
|
13855
|
-
|
13867
|
+
y(M, k);
|
13856
13868
|
},
|
13857
13869
|
onSelect({
|
13858
13870
|
key: k
|
13859
13871
|
}, T) {
|
13860
|
-
|
13872
|
+
v(k, T);
|
13861
13873
|
},
|
13862
13874
|
selectedRowKeys: _,
|
13863
13875
|
columnWidth: 32
|
13864
13876
|
});
|
13865
|
-
async function
|
13877
|
+
async function b() {
|
13866
13878
|
const g = watch(n.isReady, async (_) => {
|
13867
13879
|
_ && n.model.value && (setTimeout(() => g(), 0), await n.store.patchModel(a.formID, {
|
13868
13880
|
frm_id: e.hostFormID
|
@@ -13871,14 +13883,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13871
13883
|
immediate: !0
|
13872
13884
|
});
|
13873
13885
|
}
|
13874
|
-
function C(g, _,
|
13886
|
+
function C(g, _, y, v) {
|
13875
13887
|
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]))
|
13876
|
-
switch (
|
13888
|
+
switch (v.length = 0, g.detail) {
|
13877
13889
|
case 1:
|
13878
|
-
|
13890
|
+
v[0] = _.id;
|
13879
13891
|
break;
|
13880
13892
|
case 2:
|
13881
|
-
switch (
|
13893
|
+
switch (y) {
|
13882
13894
|
case "left":
|
13883
13895
|
c.value.push(_.id);
|
13884
13896
|
break;
|
@@ -13984,10 +13996,10 @@ function _useLayoutHeaderResizeObserver() {
|
|
13984
13996
|
}
|
13985
13997
|
function _useCommon() {
|
13986
13998
|
const e = inject(DI_KG_VAR__KG_PROPS, null), t = useKgVar(), r = computed(() => t.store.getVarProfileConfig(t.formID)), a = computed(() => t.store.getFormLevel(t.formID)), n = ref(!0), o = computed(() => {
|
13987
|
-
var m,
|
13999
|
+
var m, b, C;
|
13988
14000
|
if (!n.value || a.value > 0)
|
13989
14001
|
return !1;
|
13990
|
-
const d = (
|
14002
|
+
const d = (b = (m = e == null ? void 0 : e.value) == null ? void 0 : m.KgSearch) == null ? void 0 : b.kgHeaderTeleport;
|
13991
14003
|
return d !== void 0 ? d : ((C = r.value) == null ? void 0 : C.header_teleport_flg) !== 0;
|
13992
14004
|
}), i = computed(() => {
|
13993
14005
|
var d;
|
@@ -14020,8 +14032,8 @@ function _useFormModel(e, t) {
|
|
14020
14032
|
async function c() {
|
14021
14033
|
var u;
|
14022
14034
|
((u = a.currentVarProfileDetails.value) != null ? u : []).forEach((d) => {
|
14023
|
-
var
|
14024
|
-
const m = (
|
14035
|
+
var b, C;
|
14036
|
+
const m = (b = d.var_nam) != null ? b : "";
|
14025
14037
|
l.value[m] = KgVarUtil.transformValueByControlType(a.formID, m, r, (C = d.dft_val) != null ? C : void 0, "R");
|
14026
14038
|
}), t.value.kgHeight = i.value, n.store.setModel(a.formID, l.value), o.value ? (s == null || s(), s = watch(e, async (d) => {
|
14027
14039
|
d && (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
|
@@ -14061,20 +14073,20 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14061
14073
|
defaultHeight: u,
|
14062
14074
|
maxHeight: d,
|
14063
14075
|
minHeight: m
|
14064
|
-
} = _useCommon(),
|
14076
|
+
} = _useCommon(), b = ref(null), C = ref({
|
14065
14077
|
kgHeight: m.value
|
14066
14078
|
});
|
14067
14079
|
_useLayoutHeaderResizeObserver();
|
14068
|
-
const g = _useFormModel(
|
14080
|
+
const g = _useFormModel(b, C), _ = computed(() => {
|
14069
14081
|
var K, G, Y, Q;
|
14070
14082
|
if (!isNil((G = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : G.kgDisabled))
|
14071
14083
|
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
|
14072
14084
|
if (!isNil(e.kgDisabled))
|
14073
14085
|
return e.kgDisabled;
|
14074
|
-
}),
|
14086
|
+
}), y = computed(() => {
|
14075
14087
|
var K, G;
|
14076
14088
|
return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
14077
|
-
}),
|
14089
|
+
}), v = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(_.value || i.isRetrieving.value)), T = ref({
|
14078
14090
|
visible: !1
|
14079
14091
|
}), M = computed(() => C.value.kgHeight === m.value), E = computed(() => {
|
14080
14092
|
var K, G, Y;
|
@@ -14098,7 +14110,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14098
14110
|
o.store.dispose(n.formID);
|
14099
14111
|
});
|
14100
14112
|
async function U(K = !1) {
|
14101
|
-
|
14113
|
+
y.value || (s.value ? b.value && b.value.validate().then(async () => {
|
14102
14114
|
await o.store.emit(n.formID, "search", {
|
14103
14115
|
resetPageIndex: K
|
14104
14116
|
});
|
@@ -14112,7 +14124,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14112
14124
|
}
|
14113
14125
|
o.store.setSearchFn(n.formID, U);
|
14114
14126
|
async function $() {
|
14115
|
-
g.initFormModel(), s.value ?
|
14127
|
+
g.initFormModel(), s.value ? b.value && b.value.validate().then(async () => {
|
14116
14128
|
await o.store.emit(n.formID, "reset", {});
|
14117
14129
|
}).catch((K) => {
|
14118
14130
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
@@ -14141,7 +14153,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14141
14153
|
return ((Y = (G = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : G.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
14142
14154
|
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
14143
14155
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
14144
|
-
disabled:
|
14156
|
+
disabled: v.value,
|
14145
14157
|
class: "kg-search-profile-master-select"
|
14146
14158
|
}, {
|
14147
14159
|
default: () => {
|
@@ -14154,7 +14166,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14154
14166
|
},
|
14155
14167
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
14156
14168
|
}), createVNode(Button, {
|
14157
|
-
disabled:
|
14169
|
+
disabled: v.value,
|
14158
14170
|
onClick: () => {
|
14159
14171
|
T.value.visible = !0;
|
14160
14172
|
},
|
@@ -14171,8 +14183,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14171
14183
|
var K, G, Y, Q, q;
|
14172
14184
|
return createVNode(Fragment, null, [D(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
|
14173
14185
|
type: "primary",
|
14174
|
-
ghost: !
|
14175
|
-
disabled:
|
14186
|
+
ghost: !y.value,
|
14187
|
+
disabled: y.value,
|
14176
14188
|
onClick: $,
|
14177
14189
|
class: "kg-search-btn-reset"
|
14178
14190
|
}, {
|
@@ -14195,7 +14207,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14195
14207
|
default: () => {
|
14196
14208
|
var K;
|
14197
14209
|
return [createVNode(KgForm, {
|
14198
|
-
ref:
|
14210
|
+
ref: b,
|
14199
14211
|
model: (K = o.model.value) != null ? K : {}
|
14200
14212
|
}, {
|
14201
14213
|
default: () => [createVNode(Row, {
|
@@ -14311,9 +14323,9 @@ function useMagicKeys(e = {}) {
|
|
14311
14323
|
for (const g of u)
|
14312
14324
|
d(g, !1);
|
14313
14325
|
}
|
14314
|
-
function
|
14315
|
-
var
|
14316
|
-
const k = (
|
14326
|
+
function b(g, _) {
|
14327
|
+
var y, v;
|
14328
|
+
const k = (y = g.key) == null ? void 0 : y.toLowerCase(), T = (v = g.code) == null ? void 0 : v.toLowerCase(), M = [T, k].filter(Boolean);
|
14317
14329
|
T && (_ ? i.add(g.code) : i.delete(g.code));
|
14318
14330
|
for (const E of M)
|
14319
14331
|
u.add(E), d(E, _);
|
@@ -14321,19 +14333,19 @@ function useMagicKeys(e = {}) {
|
|
14321
14333
|
i.delete(E), d(E, !1);
|
14322
14334
|
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...i, ...M].forEach((E) => c.add(E));
|
14323
14335
|
}
|
14324
|
-
r && (useEventListener(r, "keydown", (g) => (
|
14336
|
+
r && (useEventListener(r, "keydown", (g) => (b(g, !0), o(g)), { passive: n }), useEventListener(r, "keyup", (g) => (b(g, !1), o(g)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
14325
14337
|
const C = new Proxy(l, {
|
14326
|
-
get(g, _,
|
14338
|
+
get(g, _, y) {
|
14327
14339
|
if (typeof _ != "string")
|
14328
|
-
return Reflect.get(g, _,
|
14340
|
+
return Reflect.get(g, _, y);
|
14329
14341
|
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in l))
|
14330
14342
|
if (/[+_-]/.test(_)) {
|
14331
14343
|
const k = _.split(/[+_-]/g).map((T) => T.trim());
|
14332
14344
|
l[_] = computed(() => k.every((T) => unref(C[T])));
|
14333
14345
|
} else
|
14334
14346
|
l[_] = ref(!1);
|
14335
|
-
const
|
14336
|
-
return t ? unref(
|
14347
|
+
const v = Reflect.get(g, _, y);
|
14348
|
+
return t ? unref(v) : v;
|
14337
14349
|
}
|
14338
14350
|
});
|
14339
14351
|
return C;
|
@@ -14719,21 +14731,21 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14719
14731
|
hideSelectAll: !0,
|
14720
14732
|
selectedRowKeys: d,
|
14721
14733
|
onSelect: ($) => P($)
|
14722
|
-
}),
|
14734
|
+
}), b = ref({
|
14723
14735
|
visible: !1
|
14724
14736
|
}), C = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), g = computed(() => {
|
14725
14737
|
var $;
|
14726
14738
|
return !!u.value || (($ = a.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14727
|
-
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))),
|
14739
|
+
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
14728
14740
|
watch(() => a.getSelectedVar, ($) => {
|
14729
|
-
$ ?
|
14741
|
+
$ ? v() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
14730
14742
|
}, {
|
14731
14743
|
immediate: !0
|
14732
14744
|
}), watch(() => a.getSelectedVarCatalog, async ($) => {
|
14733
14745
|
var V, O;
|
14734
14746
|
l.value.var_text = (V = $ == null ? void 0 : $.var_text) != null ? V : "", (O = s.value) == null || O.clearValidate();
|
14735
14747
|
});
|
14736
|
-
async function
|
14748
|
+
async function v($ = !1) {
|
14737
14749
|
var V, O, D;
|
14738
14750
|
n.value = !0;
|
14739
14751
|
try {
|
@@ -14777,19 +14789,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14777
14789
|
successMessageMode: "none"
|
14778
14790
|
}), message.success({
|
14779
14791
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14780
|
-
}), await
|
14792
|
+
}), await v()) : (await Edit({
|
14781
14793
|
data: D
|
14782
14794
|
}, {
|
14783
14795
|
successMessageMode: "none"
|
14784
14796
|
}), message.success({
|
14785
14797
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
14786
|
-
}), await
|
14798
|
+
}), await v(!0)) : (await Add({
|
14787
14799
|
data: D
|
14788
14800
|
}, {
|
14789
14801
|
successMessageMode: "none"
|
14790
14802
|
}), message.success({
|
14791
14803
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14792
|
-
}), await
|
14804
|
+
}), await v()), r.retrieve(e == null ? void 0 : e.value);
|
14793
14805
|
} catch (D) {
|
14794
14806
|
KgUtil.throwIfNotFormError(D);
|
14795
14807
|
} finally {
|
@@ -14830,7 +14842,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14830
14842
|
joinParamsToUrl: !0
|
14831
14843
|
}), message.success({
|
14832
14844
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
14833
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
14845
|
+
}), r.retrieve(e == null ? void 0 : e.value), await v();
|
14834
14846
|
}
|
14835
14847
|
});
|
14836
14848
|
}
|
@@ -14844,7 +14856,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14844
14856
|
}) : (a.setSelectedVarCatalog(unref($)), d.value = [$.id]));
|
14845
14857
|
}
|
14846
14858
|
function I() {
|
14847
|
-
|
14859
|
+
b.value.visible = !0;
|
14848
14860
|
}
|
14849
14861
|
function A() {
|
14850
14862
|
return createVNode("div", {
|
@@ -14898,7 +14910,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14898
14910
|
default: () => [$]
|
14899
14911
|
}), createVNode(Button, {
|
14900
14912
|
loading: o.value,
|
14901
|
-
disabled:
|
14913
|
+
disabled: y.value,
|
14902
14914
|
onClick: k,
|
14903
14915
|
type: "primary"
|
14904
14916
|
}, _isSlot(V = t.t("common.save")) ? V : {
|
@@ -14930,8 +14942,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14930
14942
|
onClick: () => P($)
|
14931
14943
|
})
|
14932
14944
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
14933
|
-
visible:
|
14934
|
-
"onUpdate:visible": ($) =>
|
14945
|
+
visible: b.value.visible,
|
14946
|
+
"onUpdate:visible": ($) => b.value.visible = $,
|
14935
14947
|
onKgOk: T
|
14936
14948
|
}, null)]);
|
14937
14949
|
}
|
@@ -15279,11 +15291,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15279
15291
|
}), onMounted(() => {
|
15280
15292
|
a.store.emit("mounted");
|
15281
15293
|
});
|
15282
|
-
function
|
15294
|
+
function b() {
|
15283
15295
|
!m.value || a.store.setVisible(!0);
|
15284
15296
|
}
|
15285
15297
|
function C() {
|
15286
|
-
s.value = a.warehouse.value,
|
15298
|
+
s.value = a.warehouse.value, y();
|
15287
15299
|
}
|
15288
15300
|
function g() {
|
15289
15301
|
o.value = "", u.value = [], s.value = null;
|
@@ -15302,7 +15314,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15302
15314
|
}
|
15303
15315
|
})), a.store.setVisible(!1));
|
15304
15316
|
}
|
15305
|
-
async function
|
15317
|
+
async function y() {
|
15306
15318
|
l.value = !0;
|
15307
15319
|
try {
|
15308
15320
|
const {
|
@@ -15320,7 +15332,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15320
15332
|
l.value = !1;
|
15321
15333
|
}
|
15322
15334
|
}
|
15323
|
-
function
|
15335
|
+
function v(T, M) {
|
15324
15336
|
var E;
|
15325
15337
|
switch (T.detail) {
|
15326
15338
|
case 1:
|
@@ -15383,7 +15395,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15383
15395
|
var M;
|
15384
15396
|
return {
|
15385
15397
|
class: T.id === ((M = s.value) == null ? void 0 : M.id) ? "selected" : "",
|
15386
|
-
onClick: (E) =>
|
15398
|
+
onClick: (E) => v(E, T)
|
15387
15399
|
};
|
15388
15400
|
}
|
15389
15401
|
}, null)]
|
@@ -15391,7 +15403,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15391
15403
|
}
|
15392
15404
|
return () => createVNode("div", {
|
15393
15405
|
class: n.value,
|
15394
|
-
onClick:
|
15406
|
+
onClick: b
|
15395
15407
|
}, [k()]);
|
15396
15408
|
}
|
15397
15409
|
});
|