@kengic/vue 0.9.1 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +836 -816
- package/dist/src/components/KgTable/KgTable.d.ts +6 -0
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2713,42 +2713,46 @@ var UploadOutlined = function(t, r) {
|
|
2713
2713
|
};
|
2714
2714
|
UploadOutlined.displayName = "UploadOutlined";
|
2715
2715
|
UploadOutlined.inheritAttrs = !1;
|
2716
|
-
const UploadOutlined$1 = UploadOutlined, data$
|
2716
|
+
const UploadOutlined$1 = UploadOutlined, data$9 = {
|
2717
2717
|
width: 1024,
|
2718
2718
|
height: 1024,
|
2719
2719
|
body: '<path fill="currentColor" d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4c0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50s-22.4 50-50 50s-50-22.4-50-50zm180 266H566v-60h260v60z"/>'
|
2720
|
-
}, data$
|
2720
|
+
}, data$8 = {
|
2721
2721
|
width: 1024,
|
2722
2722
|
height: 1024,
|
2723
2723
|
body: '<path fill="currentColor" d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5L207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"/>'
|
2724
|
-
}, data$
|
2724
|
+
}, data$7 = {
|
2725
2725
|
width: 1024,
|
2726
2726
|
height: 1024,
|
2727
2727
|
body: '<path fill="currentColor" d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"/>'
|
2728
|
-
}, data$
|
2728
|
+
}, data$6 = {
|
2729
2729
|
width: 1024,
|
2730
2730
|
height: 1024,
|
2731
2731
|
body: '<path fill="currentColor" d="M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"/>'
|
2732
|
-
}, data$
|
2732
|
+
}, data$5 = {
|
2733
2733
|
width: 1024,
|
2734
2734
|
height: 1024,
|
2735
2735
|
body: '<path fill="currentColor" d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3l-362.7 362.6l-88.9 15.7l15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"/>'
|
2736
|
-
}, data$
|
2736
|
+
}, data$4 = {
|
2737
2737
|
width: 1024,
|
2738
2738
|
height: 1024,
|
2739
2739
|
body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372z"/><path fill="currentColor" d="M464 336a48 48 0 1 0 96 0a48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"/>'
|
2740
|
-
}, data$
|
2740
|
+
}, data$3 = {
|
2741
2741
|
width: 1024,
|
2742
2742
|
height: 1024,
|
2743
2743
|
body: '<path fill="currentColor" d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"/><path fill="currentColor" d="M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8Z"/>'
|
2744
|
-
}, data$
|
2744
|
+
}, data$2 = {
|
2745
2745
|
width: 1024,
|
2746
2746
|
height: 1024,
|
2747
2747
|
body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372c0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z"/>'
|
2748
|
-
}, data = {
|
2748
|
+
}, data$1 = {
|
2749
2749
|
width: 1024,
|
2750
2750
|
height: 1024,
|
2751
2751
|
body: '<path fill="currentColor" d="M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z"/>'
|
2752
|
+
}, data = {
|
2753
|
+
width: 1024,
|
2754
|
+
height: 1024,
|
2755
|
+
body: '<path fill="currentColor" d="M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244s244 109.2 244 244s-109.2 244-244 244z"/><path fill="currentColor" d="M512 392c-32.1 0-62.1 12.4-84.8 35.2c-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8C574.1 404.4 544.1 392 512 392z"/>'
|
2752
2756
|
}, matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/, stringToIcon = (e, t, r, a = "") => {
|
2753
2757
|
const n = e.split(":");
|
2754
2758
|
if (e.slice(0, 1) === "@") {
|
@@ -3308,8 +3312,8 @@ function sendQuery(e, t, r, a) {
|
|
3308
3312
|
if (e.random) {
|
3309
3313
|
let T = e.resources.slice(0);
|
3310
3314
|
for (i = []; T.length > 1; ) {
|
3311
|
-
const
|
3312
|
-
i.push(T[
|
3315
|
+
const $ = Math.floor(Math.random() * T.length);
|
3316
|
+
i.push(T[$]), T = T.slice(0, $).concat(T.slice($ + 1));
|
3313
3317
|
}
|
3314
3318
|
i = i.concat(T);
|
3315
3319
|
} else
|
@@ -3325,8 +3329,8 @@ function sendQuery(e, t, r, a) {
|
|
3325
3329
|
T.status === "pending" && (T.status = "aborted");
|
3326
3330
|
}), g = [];
|
3327
3331
|
}
|
3328
|
-
function _(T,
|
3329
|
-
|
3332
|
+
function _(T, $) {
|
3333
|
+
$ && (v = []), typeof T == "function" && v.push(T);
|
3330
3334
|
}
|
3331
3335
|
function b() {
|
3332
3336
|
return {
|
@@ -3349,8 +3353,8 @@ function sendQuery(e, t, r, a) {
|
|
3349
3353
|
T.status === "pending" && (T.status = "aborted");
|
3350
3354
|
}), g = [];
|
3351
3355
|
}
|
3352
|
-
function k(T,
|
3353
|
-
const w =
|
3356
|
+
function k(T, $, I) {
|
3357
|
+
const w = $ !== "success";
|
3354
3358
|
switch (g = g.filter((M) => M !== T), l) {
|
3355
3359
|
case "pending":
|
3356
3360
|
break;
|
@@ -3361,7 +3365,7 @@ function sendQuery(e, t, r, a) {
|
|
3361
3365
|
default:
|
3362
3366
|
return;
|
3363
3367
|
}
|
3364
|
-
if (
|
3368
|
+
if ($ === "abort") {
|
3365
3369
|
u = I, C();
|
3366
3370
|
return;
|
3367
3371
|
}
|
@@ -3392,14 +3396,14 @@ function sendQuery(e, t, r, a) {
|
|
3392
3396
|
C();
|
3393
3397
|
return;
|
3394
3398
|
}
|
3395
|
-
const
|
3399
|
+
const $ = {
|
3396
3400
|
status: "pending",
|
3397
3401
|
resource: T,
|
3398
3402
|
callback: (I, w) => {
|
3399
|
-
k(
|
3403
|
+
k($, I, w);
|
3400
3404
|
}
|
3401
3405
|
};
|
3402
|
-
g.push(
|
3406
|
+
g.push($), c++, d = setTimeout(A, e.rotate), r(T, t, $.callback);
|
3403
3407
|
}
|
3404
3408
|
return setTimeout(A), b;
|
3405
3409
|
}
|
@@ -3930,60 +3934,60 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3930
3934
|
(function(r, a) {
|
3931
3935
|
e.exports = a();
|
3932
3936
|
})(commonjsGlobal, function() {
|
3933
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", v = "year", y = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
3934
|
-
var
|
3935
|
-
return "[" +
|
3936
|
-
} }, E = function(
|
3937
|
-
var U = String(
|
3938
|
-
return !U || U.length >=
|
3939
|
-
}, k = { s: E, z: function(
|
3940
|
-
var
|
3941
|
-
return (
|
3942
|
-
}, m: function
|
3943
|
-
if (
|
3944
|
-
return
|
3945
|
-
var U = 12 * (
|
3946
|
-
return +(-(U + (
|
3947
|
-
}, a: function(
|
3948
|
-
return
|
3949
|
-
}, p: function(
|
3950
|
-
return { M: d, y: v, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[
|
3951
|
-
}, u: function(
|
3952
|
-
return
|
3937
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", v = "year", y = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
|
3938
|
+
var O = ["th", "st", "nd", "rd"], D = V % 100;
|
3939
|
+
return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
|
3940
|
+
} }, E = function(V, O, D) {
|
3941
|
+
var U = String(V);
|
3942
|
+
return !U || U.length >= O ? V : "" + Array(O + 1 - U.length).join(D) + V;
|
3943
|
+
}, k = { s: E, z: function(V) {
|
3944
|
+
var O = -V.utcOffset(), D = Math.abs(O), U = Math.floor(D / 60), F = D % 60;
|
3945
|
+
return (O <= 0 ? "+" : "-") + E(U, 2, "0") + ":" + E(F, 2, "0");
|
3946
|
+
}, m: function V(O, D) {
|
3947
|
+
if (O.date() < D.date())
|
3948
|
+
return -V(D, O);
|
3949
|
+
var U = 12 * (D.year() - O.year()) + (D.month() - O.month()), F = O.clone().add(U, d), K = D - F < 0, B = O.clone().add(U + (K ? -1 : 1), d);
|
3950
|
+
return +(-(U + (D - F) / (K ? F - B : B - F)) || 0);
|
3951
|
+
}, a: function(V) {
|
3952
|
+
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
3953
|
+
}, p: function(V) {
|
3954
|
+
return { M: d, y: v, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
3955
|
+
}, u: function(V) {
|
3956
|
+
return V === void 0;
|
3953
3957
|
} }, A = "en", T = {};
|
3954
3958
|
T[A] = C;
|
3955
|
-
var
|
3956
|
-
return
|
3957
|
-
}, w = function
|
3959
|
+
var $ = "$isDayjsObject", I = function(V) {
|
3960
|
+
return V instanceof P || !(!V || !V[$]);
|
3961
|
+
}, w = function V(O, D, U) {
|
3958
3962
|
var F;
|
3959
|
-
if (!
|
3963
|
+
if (!O)
|
3960
3964
|
return A;
|
3961
|
-
if (typeof
|
3962
|
-
var K =
|
3963
|
-
T[K] && (F = K),
|
3964
|
-
var
|
3965
|
-
if (!F &&
|
3966
|
-
return
|
3965
|
+
if (typeof O == "string") {
|
3966
|
+
var K = O.toLowerCase();
|
3967
|
+
T[K] && (F = K), D && (T[K] = D, F = K);
|
3968
|
+
var B = O.split("-");
|
3969
|
+
if (!F && B.length > 1)
|
3970
|
+
return V(B[0]);
|
3967
3971
|
} else {
|
3968
|
-
var
|
3969
|
-
T[
|
3972
|
+
var W = O.name;
|
3973
|
+
T[W] = O, F = W;
|
3970
3974
|
}
|
3971
3975
|
return !U && F && (A = F), F || !U && A;
|
3972
|
-
}, M = function(
|
3973
|
-
if (I(
|
3974
|
-
return
|
3975
|
-
var
|
3976
|
-
return
|
3976
|
+
}, M = function(V, O) {
|
3977
|
+
if (I(V))
|
3978
|
+
return V.clone();
|
3979
|
+
var D = typeof O == "object" ? O : {};
|
3980
|
+
return D.date = V, D.args = arguments, new P(D);
|
3977
3981
|
}, N = k;
|
3978
|
-
N.l = w, N.i = I, N.w = function(
|
3979
|
-
return M(
|
3982
|
+
N.l = w, N.i = I, N.w = function(V, O) {
|
3983
|
+
return M(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
3980
3984
|
};
|
3981
|
-
var
|
3982
|
-
function
|
3983
|
-
this.$L = w(
|
3985
|
+
var P = function() {
|
3986
|
+
function V(D) {
|
3987
|
+
this.$L = w(D.locale, null, !0), this.parse(D), this.$x = this.$x || D.x || {}, this[$] = !0;
|
3984
3988
|
}
|
3985
|
-
var
|
3986
|
-
return
|
3989
|
+
var O = V.prototype;
|
3990
|
+
return O.parse = function(D) {
|
3987
3991
|
this.$d = function(U) {
|
3988
3992
|
var F = U.date, K = U.utc;
|
3989
3993
|
if (F === null)
|
@@ -3993,109 +3997,109 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3993
3997
|
if (F instanceof Date)
|
3994
3998
|
return new Date(F);
|
3995
3999
|
if (typeof F == "string" && !/Z$/i.test(F)) {
|
3996
|
-
var
|
3997
|
-
if (
|
3998
|
-
var
|
3999
|
-
return K ? new Date(Date.UTC(
|
4000
|
+
var B = F.match(_);
|
4001
|
+
if (B) {
|
4002
|
+
var W = B[2] - 1 || 0, X = (B[7] || "0").substring(0, 3);
|
4003
|
+
return K ? new Date(Date.UTC(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X)) : new Date(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X);
|
4000
4004
|
}
|
4001
4005
|
}
|
4002
4006
|
return new Date(F);
|
4003
|
-
}(
|
4004
|
-
},
|
4005
|
-
var
|
4006
|
-
this.$y =
|
4007
|
-
},
|
4007
|
+
}(D), this.init();
|
4008
|
+
}, O.init = function() {
|
4009
|
+
var D = this.$d;
|
4010
|
+
this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
|
4011
|
+
}, O.$utils = function() {
|
4008
4012
|
return N;
|
4009
|
-
},
|
4013
|
+
}, O.isValid = function() {
|
4010
4014
|
return this.$d.toString() !== p;
|
4011
|
-
},
|
4012
|
-
var F = M(
|
4015
|
+
}, O.isSame = function(D, U) {
|
4016
|
+
var F = M(D);
|
4013
4017
|
return this.startOf(U) <= F && F <= this.endOf(U);
|
4014
|
-
},
|
4015
|
-
return M(
|
4016
|
-
},
|
4017
|
-
return this.endOf(U) < M(
|
4018
|
-
},
|
4019
|
-
return N.u(
|
4020
|
-
},
|
4018
|
+
}, O.isAfter = function(D, U) {
|
4019
|
+
return M(D) < this.startOf(U);
|
4020
|
+
}, O.isBefore = function(D, U) {
|
4021
|
+
return this.endOf(U) < M(D);
|
4022
|
+
}, O.$g = function(D, U, F) {
|
4023
|
+
return N.u(D) ? this[U] : this.set(F, D);
|
4024
|
+
}, O.unix = function() {
|
4021
4025
|
return Math.floor(this.valueOf() / 1e3);
|
4022
|
-
},
|
4026
|
+
}, O.valueOf = function() {
|
4023
4027
|
return this.$d.getTime();
|
4024
|
-
},
|
4025
|
-
var F = this, K = !!N.u(U) || U,
|
4026
|
-
var
|
4027
|
-
return K ?
|
4028
|
-
},
|
4029
|
-
return N.w(F.toDate()[
|
4030
|
-
}, q = this.$W, Z = this.$M, te = this.$D,
|
4031
|
-
switch (
|
4028
|
+
}, O.startOf = function(D, U) {
|
4029
|
+
var F = this, K = !!N.u(U) || U, B = N.p(D), W = function(ue, ne) {
|
4030
|
+
var le = N.w(F.$u ? Date.UTC(F.$y, ne, ue) : new Date(F.$y, ne, ue), F);
|
4031
|
+
return K ? le : le.endOf(c);
|
4032
|
+
}, X = function(ue, ne) {
|
4033
|
+
return N.w(F.toDate()[ue].apply(F.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
|
4034
|
+
}, q = this.$W, Z = this.$M, te = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
4035
|
+
switch (B) {
|
4032
4036
|
case v:
|
4033
|
-
return K ?
|
4037
|
+
return K ? W(1, 0) : W(31, 11);
|
4034
4038
|
case d:
|
4035
|
-
return K ?
|
4039
|
+
return K ? W(1, Z) : W(0, Z + 1);
|
4036
4040
|
case u:
|
4037
|
-
var
|
4038
|
-
return
|
4041
|
+
var oe = this.$locale().weekStart || 0, ge = (q < oe ? q + 7 : q) - oe;
|
4042
|
+
return W(K ? te - ge : te + (6 - ge), Z);
|
4039
4043
|
case c:
|
4040
4044
|
case y:
|
4041
|
-
return
|
4045
|
+
return X(se + "Hours", 0);
|
4042
4046
|
case l:
|
4043
|
-
return
|
4047
|
+
return X(se + "Minutes", 1);
|
4044
4048
|
case o:
|
4045
|
-
return
|
4049
|
+
return X(se + "Seconds", 2);
|
4046
4050
|
case i:
|
4047
|
-
return
|
4051
|
+
return X(se + "Milliseconds", 3);
|
4048
4052
|
default:
|
4049
4053
|
return this.clone();
|
4050
4054
|
}
|
4051
|
-
},
|
4052
|
-
return this.startOf(
|
4053
|
-
},
|
4054
|
-
var F, K = N.p(
|
4055
|
+
}, O.endOf = function(D) {
|
4056
|
+
return this.startOf(D, !1);
|
4057
|
+
}, O.$set = function(D, U) {
|
4058
|
+
var F, K = N.p(D), B = "set" + (this.$u ? "UTC" : ""), W = (F = {}, F[c] = B + "Date", F[y] = B + "Date", F[d] = B + "Month", F[v] = B + "FullYear", F[l] = B + "Hours", F[o] = B + "Minutes", F[i] = B + "Seconds", F[s] = B + "Milliseconds", F)[K], X = K === c ? this.$D + (U - this.$W) : U;
|
4055
4059
|
if (K === d || K === v) {
|
4056
4060
|
var q = this.clone().set(y, 1);
|
4057
|
-
q.$d[
|
4061
|
+
q.$d[W](X), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
|
4058
4062
|
} else
|
4059
|
-
|
4063
|
+
W && this.$d[W](X);
|
4060
4064
|
return this.init(), this;
|
4061
|
-
},
|
4062
|
-
return this.clone().$set(
|
4063
|
-
},
|
4064
|
-
return this[N.p(
|
4065
|
-
},
|
4065
|
+
}, O.set = function(D, U) {
|
4066
|
+
return this.clone().$set(D, U);
|
4067
|
+
}, O.get = function(D) {
|
4068
|
+
return this[N.p(D)]();
|
4069
|
+
}, O.add = function(D, U) {
|
4066
4070
|
var F, K = this;
|
4067
|
-
|
4068
|
-
var
|
4071
|
+
D = Number(D);
|
4072
|
+
var B = N.p(U), W = function(Z) {
|
4069
4073
|
var te = M(K);
|
4070
|
-
return N.w(te.date(te.date() + Math.round(Z *
|
4074
|
+
return N.w(te.date(te.date() + Math.round(Z * D)), K);
|
4071
4075
|
};
|
4072
|
-
if (
|
4073
|
-
return this.set(d, this.$M +
|
4074
|
-
if (
|
4075
|
-
return this.set(v, this.$y +
|
4076
|
-
if (
|
4077
|
-
return
|
4078
|
-
if (
|
4079
|
-
return
|
4080
|
-
var
|
4076
|
+
if (B === d)
|
4077
|
+
return this.set(d, this.$M + D);
|
4078
|
+
if (B === v)
|
4079
|
+
return this.set(v, this.$y + D);
|
4080
|
+
if (B === c)
|
4081
|
+
return W(1);
|
4082
|
+
if (B === u)
|
4083
|
+
return W(7);
|
4084
|
+
var X = (F = {}, F[o] = a, F[l] = n, F[i] = r, F)[B] || 1, q = this.$d.getTime() + D * X;
|
4081
4085
|
return N.w(q, this);
|
4082
|
-
},
|
4083
|
-
return this.add(-1 *
|
4084
|
-
},
|
4086
|
+
}, O.subtract = function(D, U) {
|
4087
|
+
return this.add(-1 * D, U);
|
4088
|
+
}, O.format = function(D) {
|
4085
4089
|
var U = this, F = this.$locale();
|
4086
4090
|
if (!this.isValid())
|
4087
4091
|
return F.invalidDate || p;
|
4088
|
-
var K =
|
4089
|
-
return ne && (ne[
|
4090
|
-
},
|
4091
|
-
return N.s(
|
4092
|
-
},
|
4093
|
-
var
|
4094
|
-
return
|
4092
|
+
var K = D || "YYYY-MM-DDTHH:mm:ssZ", B = N.z(this), W = this.$H, X = this.$m, q = this.$M, Z = F.weekdays, te = F.months, se = F.meridiem, oe = function(ne, le, ce, fe) {
|
4093
|
+
return ne && (ne[le] || ne(U, K)) || ce[le].slice(0, fe);
|
4094
|
+
}, ge = function(ne) {
|
4095
|
+
return N.s(W % 12 || 12, ne, "0");
|
4096
|
+
}, ue = se || function(ne, le, ce) {
|
4097
|
+
var fe = ne < 12 ? "AM" : "PM";
|
4098
|
+
return ce ? fe.toLowerCase() : fe;
|
4095
4099
|
};
|
4096
|
-
return K.replace(b, function(ne,
|
4097
|
-
return
|
4098
|
-
switch (
|
4100
|
+
return K.replace(b, function(ne, le) {
|
4101
|
+
return le || function(ce) {
|
4102
|
+
switch (ce) {
|
4099
4103
|
case "YY":
|
4100
4104
|
return String(U.$y).slice(-2);
|
4101
4105
|
case "YYYY":
|
@@ -4105,9 +4109,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4105
4109
|
case "MM":
|
4106
4110
|
return N.s(q + 1, 2, "0");
|
4107
4111
|
case "MMM":
|
4108
|
-
return
|
4112
|
+
return oe(F.monthsShort, q, te, 3);
|
4109
4113
|
case "MMMM":
|
4110
|
-
return
|
4114
|
+
return oe(te, q);
|
4111
4115
|
case "D":
|
4112
4116
|
return U.$D;
|
4113
4117
|
case "DD":
|
@@ -4115,27 +4119,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4115
4119
|
case "d":
|
4116
4120
|
return String(U.$W);
|
4117
4121
|
case "dd":
|
4118
|
-
return
|
4122
|
+
return oe(F.weekdaysMin, U.$W, Z, 2);
|
4119
4123
|
case "ddd":
|
4120
|
-
return
|
4124
|
+
return oe(F.weekdaysShort, U.$W, Z, 3);
|
4121
4125
|
case "dddd":
|
4122
4126
|
return Z[U.$W];
|
4123
4127
|
case "H":
|
4124
|
-
return String(
|
4128
|
+
return String(W);
|
4125
4129
|
case "HH":
|
4126
|
-
return N.s(
|
4130
|
+
return N.s(W, 2, "0");
|
4127
4131
|
case "h":
|
4128
|
-
return
|
4132
|
+
return ge(1);
|
4129
4133
|
case "hh":
|
4130
|
-
return
|
4134
|
+
return ge(2);
|
4131
4135
|
case "a":
|
4132
|
-
return
|
4136
|
+
return ue(W, X, !0);
|
4133
4137
|
case "A":
|
4134
|
-
return
|
4138
|
+
return ue(W, X, !1);
|
4135
4139
|
case "m":
|
4136
|
-
return String(
|
4140
|
+
return String(X);
|
4137
4141
|
case "mm":
|
4138
|
-
return N.s(
|
4142
|
+
return N.s(X, 2, "0");
|
4139
4143
|
case "s":
|
4140
4144
|
return String(U.$s);
|
4141
4145
|
case "ss":
|
@@ -4143,18 +4147,18 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4143
4147
|
case "SSS":
|
4144
4148
|
return N.s(U.$ms, 3, "0");
|
4145
4149
|
case "Z":
|
4146
|
-
return
|
4150
|
+
return B;
|
4147
4151
|
}
|
4148
4152
|
return null;
|
4149
|
-
}(ne) ||
|
4153
|
+
}(ne) || B.replace(":", "");
|
4150
4154
|
});
|
4151
|
-
},
|
4155
|
+
}, O.utcOffset = function() {
|
4152
4156
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4153
|
-
},
|
4154
|
-
var K,
|
4155
|
-
return N.m(
|
4157
|
+
}, O.diff = function(D, U, F) {
|
4158
|
+
var K, B = this, W = N.p(U), X = M(D), q = (X.utcOffset() - this.utcOffset()) * a, Z = this - X, te = function() {
|
4159
|
+
return N.m(B, X);
|
4156
4160
|
};
|
4157
|
-
switch (
|
4161
|
+
switch (W) {
|
4158
4162
|
case v:
|
4159
4163
|
K = te() / 12;
|
4160
4164
|
break;
|
@@ -4183,35 +4187,35 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4183
4187
|
K = Z;
|
4184
4188
|
}
|
4185
4189
|
return F ? K : N.a(K);
|
4186
|
-
},
|
4190
|
+
}, O.daysInMonth = function() {
|
4187
4191
|
return this.endOf(d).$D;
|
4188
|
-
},
|
4192
|
+
}, O.$locale = function() {
|
4189
4193
|
return T[this.$L];
|
4190
|
-
},
|
4191
|
-
if (!
|
4194
|
+
}, O.locale = function(D, U) {
|
4195
|
+
if (!D)
|
4192
4196
|
return this.$L;
|
4193
|
-
var F = this.clone(), K = w(
|
4197
|
+
var F = this.clone(), K = w(D, U, !0);
|
4194
4198
|
return K && (F.$L = K), F;
|
4195
|
-
},
|
4199
|
+
}, O.clone = function() {
|
4196
4200
|
return N.w(this.$d, this);
|
4197
|
-
},
|
4201
|
+
}, O.toDate = function() {
|
4198
4202
|
return new Date(this.valueOf());
|
4199
|
-
},
|
4203
|
+
}, O.toJSON = function() {
|
4200
4204
|
return this.isValid() ? this.toISOString() : null;
|
4201
|
-
},
|
4205
|
+
}, O.toISOString = function() {
|
4202
4206
|
return this.$d.toISOString();
|
4203
|
-
},
|
4207
|
+
}, O.toString = function() {
|
4204
4208
|
return this.$d.toUTCString();
|
4205
|
-
},
|
4206
|
-
}(),
|
4207
|
-
return M.prototype =
|
4208
|
-
|
4209
|
-
return this.$g(
|
4209
|
+
}, V;
|
4210
|
+
}(), H = P.prototype;
|
4211
|
+
return M.prototype = H, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(V) {
|
4212
|
+
H[V[1]] = function(O) {
|
4213
|
+
return this.$g(O, V[0], V[1]);
|
4210
4214
|
};
|
4211
|
-
}), M.extend = function(
|
4212
|
-
return
|
4213
|
-
}, M.locale = w, M.isDayjs = I, M.unix = function(
|
4214
|
-
return M(1e3 *
|
4215
|
+
}), M.extend = function(V, O) {
|
4216
|
+
return V.$i || (V(O, P, M), V.$i = !0), M;
|
4217
|
+
}, M.locale = w, M.isDayjs = I, M.unix = function(V) {
|
4218
|
+
return M(1e3 * V);
|
4215
4219
|
}, M.en = T[A], M.Ls = T, M.p = {}, M;
|
4216
4220
|
});
|
4217
4221
|
})(dayjs_min);
|
@@ -4259,7 +4263,7 @@ function filesize(e, {
|
|
4259
4263
|
} = {}) {
|
4260
4264
|
let b = y, C = Number(e), E = [], k = 0, A = EMPTY;
|
4261
4265
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4262
|
-
const T = a === 10 ? 1e3 : 1024,
|
4266
|
+
const T = a === 10 ? 1e3 : 1024, $ = g === !0, I = C < 0, w = Math[p];
|
4263
4267
|
if (typeof e != "bigint" && isNaN(e))
|
4264
4268
|
throw new TypeError(INVALID_NUMBER);
|
4265
4269
|
if (typeof w !== FUNCTION)
|
@@ -4274,10 +4278,10 @@ function filesize(e, {
|
|
4274
4278
|
E[0] = w(k * M) / M, E[0] === T && b < 8 && y === -1 && (E[0] = 1, b++), A = E[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4275
4279
|
}
|
4276
4280
|
if (I && (E[0] = -E[0]), _ > 0 && (E[0] = E[0].toPrecision(_)), E[1] = c[E[1]] || E[1], s === !0 ? E[0] = E[0].toLocaleString() : s.length > 0 ? E[0] = E[0].toLocaleString(s, i) : o.length > 0 && (E[0] = E[0].toString().replace(PERIOD, o)), r && Number.isInteger(E[0]) === !1 && n > 0) {
|
4277
|
-
const M = o || PERIOD, N = E[0].toString().split(M),
|
4278
|
-
E[0] = `${N[0]}${M}${
|
4281
|
+
const M = o || PERIOD, N = E[0].toString().split(M), P = N[1] || EMPTY, H = P.length, V = n - H;
|
4282
|
+
E[0] = `${N[0]}${M}${P.padEnd(H + V, ZERO)}`;
|
4279
4283
|
}
|
4280
|
-
return
|
4284
|
+
return $ && (E[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
|
4281
4285
|
value: E[0],
|
4282
4286
|
symbol: E[1],
|
4283
4287
|
exponent: b,
|
@@ -5626,19 +5630,19 @@ function debounce(e, t, r) {
|
|
5626
5630
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5627
5631
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, g = "trailing" in r ? !!r.trailing : g);
|
5628
5632
|
function v(T) {
|
5629
|
-
var
|
5630
|
-
return a = n = void 0, c = T, i = e.apply(I,
|
5633
|
+
var $ = a, I = n;
|
5634
|
+
return a = n = void 0, c = T, i = e.apply(I, $), i;
|
5631
5635
|
}
|
5632
5636
|
function y(T) {
|
5633
5637
|
return c = T, o = setTimeout(b, t), u ? v(T) : i;
|
5634
5638
|
}
|
5635
5639
|
function p(T) {
|
5636
|
-
var
|
5640
|
+
var $ = T - l, I = T - c, w = t - $;
|
5637
5641
|
return d ? nativeMin$1(w, s - I) : w;
|
5638
5642
|
}
|
5639
5643
|
function _(T) {
|
5640
|
-
var
|
5641
|
-
return l === void 0 ||
|
5644
|
+
var $ = T - l, I = T - c;
|
5645
|
+
return l === void 0 || $ >= t || $ < 0 || d && I >= s;
|
5642
5646
|
}
|
5643
5647
|
function b() {
|
5644
5648
|
var T = now$1();
|
@@ -5656,8 +5660,8 @@ function debounce(e, t, r) {
|
|
5656
5660
|
return o === void 0 ? i : C(now$1());
|
5657
5661
|
}
|
5658
5662
|
function A() {
|
5659
|
-
var T = now$1(),
|
5660
|
-
if (a = arguments, n = this, l = T,
|
5663
|
+
var T = now$1(), $ = _(T);
|
5664
|
+
if (a = arguments, n = this, l = T, $) {
|
5661
5665
|
if (o === void 0)
|
5662
5666
|
return y(l);
|
5663
5667
|
if (d)
|
@@ -6830,27 +6834,27 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6830
6834
|
function E(I, w) {
|
6831
6835
|
return function() {
|
6832
6836
|
setActivePinia(a);
|
6833
|
-
const M = Array.from(arguments), N = [],
|
6834
|
-
function
|
6835
|
-
N.push(
|
6837
|
+
const M = Array.from(arguments), N = [], P = [];
|
6838
|
+
function H(D) {
|
6839
|
+
N.push(D);
|
6836
6840
|
}
|
6837
|
-
function
|
6838
|
-
|
6841
|
+
function V(D) {
|
6842
|
+
P.push(D);
|
6839
6843
|
}
|
6840
6844
|
triggerSubscriptions(g, {
|
6841
6845
|
args: M,
|
6842
6846
|
name: I,
|
6843
6847
|
store: T,
|
6844
|
-
after:
|
6845
|
-
onError:
|
6848
|
+
after: H,
|
6849
|
+
onError: V
|
6846
6850
|
});
|
6847
|
-
let
|
6851
|
+
let O;
|
6848
6852
|
try {
|
6849
|
-
|
6850
|
-
} catch (
|
6851
|
-
throw triggerSubscriptions(
|
6853
|
+
O = w.apply(this && this.$id === e ? this : T, M);
|
6854
|
+
} catch (D) {
|
6855
|
+
throw triggerSubscriptions(P, D), D;
|
6852
6856
|
}
|
6853
|
-
return
|
6857
|
+
return O instanceof Promise ? O.then((D) => (triggerSubscriptions(N, D), D)).catch((D) => (triggerSubscriptions(P, D), Promise.reject(D))) : (triggerSubscriptions(N, O), O);
|
6854
6858
|
};
|
6855
6859
|
}
|
6856
6860
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6865,12 +6869,12 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6865
6869
|
$patch: _,
|
6866
6870
|
$reset: b,
|
6867
6871
|
$subscribe(I, w = {}) {
|
6868
|
-
const M = addSubscription(d, I, w.detached, () => N()), N = s.run(() => watch(() => a.state.value[e], (
|
6872
|
+
const M = addSubscription(d, I, w.detached, () => N()), N = s.run(() => watch(() => a.state.value[e], (P) => {
|
6869
6873
|
(w.flush === "sync" ? u : c) && I({
|
6870
6874
|
storeId: e,
|
6871
6875
|
type: MutationType.direct,
|
6872
6876
|
events: v
|
6873
|
-
},
|
6877
|
+
}, P);
|
6874
6878
|
}, assign$1({}, l, w)));
|
6875
6879
|
return M;
|
6876
6880
|
},
|
@@ -6883,18 +6887,18 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6883
6887
|
A
|
6884
6888
|
));
|
6885
6889
|
a._s.set(e, T);
|
6886
|
-
const
|
6887
|
-
for (const I in
|
6888
|
-
const w =
|
6890
|
+
const $ = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
6891
|
+
for (const I in $) {
|
6892
|
+
const w = $[I];
|
6889
6893
|
if (isRef(w) && !isComputed(w) || isReactive(w))
|
6890
|
-
process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef(
|
6894
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef($, I)) : i || (y && shouldHydrate(w) && (isRef(w) ? w.value = y[I] : mergeReactiveObjects(w, y[I])), a.state.value[e][I] = w), process.env.NODE_ENV !== "production" && k.state.push(I);
|
6891
6895
|
else if (typeof w == "function") {
|
6892
6896
|
const M = process.env.NODE_ENV !== "production" && n ? w : E(I, w);
|
6893
|
-
|
6897
|
+
$[I] = M, process.env.NODE_ENV !== "production" && (k.actions[I] = w), o.actions[I] = w;
|
6894
6898
|
} else
|
6895
|
-
process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[I] = i ? r.getters[I] : w, IS_CLIENT && (
|
6899
|
+
process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[I] = i ? r.getters[I] : w, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(I));
|
6896
6900
|
}
|
6897
|
-
if (assign$1(T,
|
6901
|
+
if (assign$1(T, $), assign$1(toRaw(T), $), Object.defineProperty(T, "$state", {
|
6898
6902
|
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
6899
6903
|
set: (I) => {
|
6900
6904
|
if (process.env.NODE_ENV !== "production" && n)
|
@@ -6907,8 +6911,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6907
6911
|
T._hotUpdate = markRaw((w) => {
|
6908
6912
|
T._hotUpdating = !0, w._hmrPayload.state.forEach((M) => {
|
6909
6913
|
if (M in T.$state) {
|
6910
|
-
const N = w.$state[M],
|
6911
|
-
typeof N == "object" && isPlainObject(N) && isPlainObject(
|
6914
|
+
const N = w.$state[M], P = T.$state[M];
|
6915
|
+
typeof N == "object" && isPlainObject(N) && isPlainObject(P) ? patchObject(N, P) : w.$state[M] = P;
|
6912
6916
|
}
|
6913
6917
|
set(T, M, toRef(w.$state, M));
|
6914
6918
|
}), Object.keys(T.$state).forEach((M) => {
|
@@ -6921,8 +6925,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6921
6925
|
set(T, M, E(M, N));
|
6922
6926
|
}
|
6923
6927
|
for (const M in w._hmrPayload.getters) {
|
6924
|
-
const N = w._hmrPayload.getters[M],
|
6925
|
-
set(T, M,
|
6928
|
+
const N = w._hmrPayload.getters[M], P = i ? computed(() => (setActivePinia(a), N.call(T, T))) : N;
|
6929
|
+
set(T, M, P);
|
6926
6930
|
}
|
6927
6931
|
Object.keys(T._hmrPayload.getters).forEach((M) => {
|
6928
6932
|
M in w._hmrPayload.getters || del(T, M);
|
@@ -7071,15 +7075,16 @@ function pinia() {
|
|
7071
7075
|
throw new Error("[@kengic/vue] pinia \u4E3A\u7A7A.");
|
7072
7076
|
return _pinia;
|
7073
7077
|
}
|
7074
|
-
addIcon("ant-design:plus-outlined", data$
|
7075
|
-
addIcon("ant-design:edit-outlined", data$
|
7076
|
-
addIcon("ant-design:delete-outlined", data$
|
7077
|
-
addIcon("ant-design:stop-outlined", data$
|
7078
|
-
addIcon("ant-design:audit-outlined", data$
|
7079
|
-
addIcon("ant-design:check-outlined", data$
|
7080
|
-
addIcon("ant-design:download-outlined", data$
|
7081
|
-
addIcon("ant-design:info-circle-outlined", data$
|
7082
|
-
addIcon("ant-design:printer-outlined", data);
|
7078
|
+
addIcon("ant-design:plus-outlined", data$3);
|
7079
|
+
addIcon("ant-design:edit-outlined", data$5);
|
7080
|
+
addIcon("ant-design:delete-outlined", data$7);
|
7081
|
+
addIcon("ant-design:stop-outlined", data$2);
|
7082
|
+
addIcon("ant-design:audit-outlined", data$9);
|
7083
|
+
addIcon("ant-design:check-outlined", data$8);
|
7084
|
+
addIcon("ant-design:download-outlined", data$6);
|
7085
|
+
addIcon("ant-design:info-circle-outlined", data$4);
|
7086
|
+
addIcon("ant-design:printer-outlined", data$1);
|
7087
|
+
addIcon("ant-design:aim-outlined", data);
|
7083
7088
|
function setup(e) {
|
7084
7089
|
var r;
|
7085
7090
|
if (!(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
|
@@ -8772,12 +8777,12 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8772
8777
|
varProfile: k,
|
8773
8778
|
varProfileConfig: A,
|
8774
8779
|
varGrid: T,
|
8775
|
-
varGridConfig:
|
8780
|
+
varGridConfig: $
|
8776
8781
|
} = await GetAll({ params: { frm_id: e } });
|
8777
8782
|
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, g != null ? g : []), this.varPossibilityMap.set(e, p != null ? p : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, y != null ? y : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(C)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
|
8778
8783
|
varProfile: k != null ? k : null,
|
8779
8784
|
currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((I) => I.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((I) => I.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
|
8780
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
8785
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig($ != null ? $ : null)), this.varGridMap.set(e, {
|
8781
8786
|
varGrid: transformVarGridDTO(T),
|
8782
8787
|
currentVarGridMasterID: (u = (c = ((i = T == null ? void 0 : T.varGridMasters) == null ? void 0 : i.find((I) => I.def_flg === 1)) || ((o = T == null ? void 0 : T.varGridMasters) == null ? void 0 : o.find((I) => I.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((l = T == null ? void 0 : T.varGridMasters) == null ? void 0 : l.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
8783
8788
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
@@ -8987,12 +8992,12 @@ function useKgVar(e, t, r = 0) {
|
|
8987
8992
|
u.leave(c);
|
8988
8993
|
}));
|
8989
8994
|
const d = (q) => computed(() => {
|
8990
|
-
var Z, te,
|
8991
|
-
return (
|
8992
|
-
}), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)),
|
8995
|
+
var Z, te, se;
|
8996
|
+
return (se = (te = (Z = u.getVarCatalog(c, q)) == null ? void 0 : Z.var_text) != null ? te : q) != null ? se : "";
|
8997
|
+
}), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)), $ = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), w = computed(() => u.getVarButtonSearch(c)), M = computed(() => u.getVarButtonCreate(c)), N = computed(() => u.getVarButtonUpdate(c)), P = computed(() => u.getVarButtonCopy(c)), H = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), O = computed(() => u.getCurrentVarProfileMaster(c)), D = computed(() => u.getCurrentVarProfileMasterID(c)), U = computed(() => {
|
8993
8998
|
var q, Z;
|
8994
|
-
return (Z = (q =
|
8995
|
-
}), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)),
|
8999
|
+
return (Z = (q = O.value) == null ? void 0 : q.varProfileDetails) != null ? Z : null;
|
9000
|
+
}), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), W = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
8996
9001
|
return {
|
8997
9002
|
formID: c,
|
8998
9003
|
store: u,
|
@@ -9007,22 +9012,22 @@ function useKgVar(e, t, r = 0) {
|
|
9007
9012
|
isCopyingRequesting: k,
|
9008
9013
|
isDeleting: A,
|
9009
9014
|
isDeletingRequesting: T,
|
9010
|
-
isOtherRequesting:
|
9015
|
+
isOtherRequesting: $,
|
9011
9016
|
varButtons: I,
|
9012
9017
|
varButtonSearch: w,
|
9013
9018
|
varButtonCreate: M,
|
9014
9019
|
varButtonUpdate: N,
|
9015
|
-
varButtonCopy:
|
9016
|
-
varButtonDelete:
|
9017
|
-
varProfileMasters:
|
9018
|
-
currentVarProfileMaster:
|
9019
|
-
currentVarProfileMasterID:
|
9020
|
+
varButtonCopy: P,
|
9021
|
+
varButtonDelete: H,
|
9022
|
+
varProfileMasters: V,
|
9023
|
+
currentVarProfileMaster: O,
|
9024
|
+
currentVarProfileMasterID: D,
|
9020
9025
|
currentVarProfileDetails: U,
|
9021
9026
|
varGridConfig: F,
|
9022
9027
|
varGridMasters: K,
|
9023
|
-
currentVarGridMaster:
|
9024
|
-
systemVarGridDetails:
|
9025
|
-
currentVarGridDetails:
|
9028
|
+
currentVarGridMaster: B,
|
9029
|
+
systemVarGridDetails: W,
|
9030
|
+
currentVarGridDetails: X,
|
9026
9031
|
setIsCreating: s,
|
9027
9032
|
setIsUpdating: i,
|
9028
9033
|
setIsCopying: o,
|
@@ -9109,31 +9114,31 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9109
9114
|
async function y() {
|
9110
9115
|
var p, _, b, C, E, k, A;
|
9111
9116
|
if (d.value) {
|
9112
|
-
const T = (_ = (p = c.selectedRows) == null ? void 0 : p.value) != null ? _ : [],
|
9117
|
+
const T = (_ = (p = c.selectedRows) == null ? void 0 : p.value) != null ? _ : [], $ = (b = T.map((w) => w[g.value])) != null ? b : [];
|
9113
9118
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9114
9119
|
var_nam: i,
|
9115
9120
|
isMultiple: !0,
|
9116
|
-
values:
|
9121
|
+
values: $,
|
9117
9122
|
rows: T
|
9118
9123
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9119
9124
|
var_nam: i,
|
9120
9125
|
model: l,
|
9121
9126
|
isMultiple: !0,
|
9122
|
-
values:
|
9127
|
+
values: $,
|
9123
9128
|
rows: T
|
9124
9129
|
}), r("update:visible", !1));
|
9125
9130
|
} else {
|
9126
|
-
const T = (k = (E = (C = c.selectedRows) == null ? void 0 : C.value) == null ? void 0 : E[0]) != null ? k : null,
|
9131
|
+
const T = (k = (E = (C = c.selectedRows) == null ? void 0 : C.value) == null ? void 0 : E[0]) != null ? k : null, $ = (A = T == null ? void 0 : T[g.value]) != null ? A : "";
|
9127
9132
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9128
9133
|
var_nam: i,
|
9129
9134
|
isMultiple: !1,
|
9130
|
-
value:
|
9135
|
+
value: $,
|
9131
9136
|
row: T
|
9132
9137
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9133
9138
|
var_nam: i,
|
9134
9139
|
model: l,
|
9135
9140
|
isMultiple: !1,
|
9136
|
-
value:
|
9141
|
+
value: $,
|
9137
9142
|
row: T
|
9138
9143
|
}), r("update:visible", !1));
|
9139
9144
|
}
|
@@ -9375,9 +9380,9 @@ function useKgFormItemSelect() {
|
|
9375
9380
|
}), d;
|
9376
9381
|
});
|
9377
9382
|
async function c() {
|
9378
|
-
var b, C, E, k, A, T,
|
9383
|
+
var b, C, E, k, A, T, $, I;
|
9379
9384
|
let d = [];
|
9380
|
-
const g = (b = a.value) == null ? void 0 : b.cmd, v = (E = (C = a.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", y = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", p = (
|
9385
|
+
const g = (b = a.value) == null ? void 0 : b.cmd, v = (E = (C = a.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", y = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", p = ($ = (T = a.value) == null ? void 0 : T.lbl_clm) != null ? $ : "";
|
9381
9386
|
if (!g || !y || !p) {
|
9382
9387
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9383
9388
|
frm_id: r.formID,
|
@@ -9863,12 +9868,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9863
9868
|
model: w,
|
9864
9869
|
isMultiple: M,
|
9865
9870
|
value: N,
|
9866
|
-
values:
|
9871
|
+
values: P
|
9867
9872
|
}) => {
|
9868
|
-
var
|
9873
|
+
var H;
|
9869
9874
|
switch (I) {
|
9870
9875
|
case e.kgVarName:
|
9871
|
-
w.value && (M ? w.value[e.kgVarName] =
|
9876
|
+
w.value && (M ? w.value[e.kgVarName] = P : w.value[e.kgVarName] = N), (H = n.value) == null || H.validate([e.kgVarName]);
|
9872
9877
|
break;
|
9873
9878
|
}
|
9874
9879
|
return !1;
|
@@ -9878,7 +9883,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9878
9883
|
} = _useRules(e), {
|
9879
9884
|
controlType: g
|
9880
9885
|
} = useKgFormItem(e), v = computed(() => {
|
9881
|
-
var w, M, N,
|
9886
|
+
var w, M, N, P, H;
|
9882
9887
|
if (s.isRetrieving.value)
|
9883
9888
|
return !0;
|
9884
9889
|
let I = !1;
|
@@ -9898,17 +9903,17 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9898
9903
|
I = ((N = u.value) == null ? void 0 : N.upt_ena_flg) === 0;
|
9899
9904
|
break;
|
9900
9905
|
case s.isCopying.value:
|
9901
|
-
I = ((
|
9906
|
+
I = ((P = u.value) == null ? void 0 : P.cpy_ena_flg) === 0;
|
9902
9907
|
break;
|
9903
9908
|
case s.isDeleting.value:
|
9904
|
-
I = ((
|
9909
|
+
I = ((H = u.value) == null ? void 0 : H.del_ena_flg) === 0;
|
9905
9910
|
break;
|
9906
9911
|
}
|
9907
9912
|
break;
|
9908
9913
|
}
|
9909
9914
|
return I;
|
9910
9915
|
}), y = computed(() => {
|
9911
|
-
var w, M, N,
|
9916
|
+
var w, M, N, P;
|
9912
9917
|
let I = " ";
|
9913
9918
|
if (e.kgPlaceholder)
|
9914
9919
|
I = e.kgPlaceholder;
|
@@ -9918,12 +9923,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9918
9923
|
I = s.t((M = (w = c.value) == null ? void 0 : w.placeholder) != null ? M : " ").value;
|
9919
9924
|
break;
|
9920
9925
|
case KG_FORM_CONTEXT.SUBMIT:
|
9921
|
-
I = s.t((
|
9926
|
+
I = s.t((P = (N = u.value) == null ? void 0 : N.placeholder) != null ? P : " ").value;
|
9922
9927
|
break;
|
9923
9928
|
}
|
9924
9929
|
return I;
|
9925
9930
|
}), p = computed(() => {
|
9926
|
-
var w, M, N,
|
9931
|
+
var w, M, N, P, H, V, O, D, U, F;
|
9927
9932
|
let I = 6;
|
9928
9933
|
if (e.kgSpan !== void 0)
|
9929
9934
|
I = e.kgSpan;
|
@@ -9935,13 +9940,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9935
9940
|
case KG_FORM_CONTEXT.SUBMIT:
|
9936
9941
|
switch (!0) {
|
9937
9942
|
case s.isCreating.value:
|
9938
|
-
I = (
|
9943
|
+
I = (P = (N = u.value) == null ? void 0 : N.crt_width) != null ? P : 6;
|
9939
9944
|
break;
|
9940
9945
|
case s.isUpdating.value:
|
9941
|
-
I = (
|
9946
|
+
I = (V = (H = u.value) == null ? void 0 : H.upt_width) != null ? V : 6;
|
9942
9947
|
break;
|
9943
9948
|
case s.isCopying.value:
|
9944
|
-
I = (
|
9949
|
+
I = (D = (O = u.value) == null ? void 0 : O.cpy_width) != null ? D : 6;
|
9945
9950
|
break;
|
9946
9951
|
case s.isDeleting.value:
|
9947
9952
|
I = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
|
@@ -9950,18 +9955,18 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9950
9955
|
}
|
9951
9956
|
return Math.min(24, Math.max(1, I));
|
9952
9957
|
}), _ = computed(() => {
|
9953
|
-
var N,
|
9958
|
+
var N, P;
|
9954
9959
|
const I = get(k.value, "$el.parentElement");
|
9955
9960
|
if (I && !((N = I.classList) != null && N.contains("ant-row")))
|
9956
9961
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9957
9962
|
let w = {};
|
9958
|
-
const M = Math.abs(Number.parseInt((
|
9963
|
+
const M = Math.abs(Number.parseInt((P = get(k.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
|
9959
9964
|
return Number.isNaN(M) || (w = {
|
9960
9965
|
paddingLeft: `${M}px !important`,
|
9961
9966
|
paddingRight: `${M}px !important`
|
9962
9967
|
}), w;
|
9963
9968
|
}), b = computed(() => {
|
9964
|
-
var w, M, N,
|
9969
|
+
var w, M, N, P;
|
9965
9970
|
let I = "kg-form-item";
|
9966
9971
|
switch (o.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
9967
9972
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9975,7 +9980,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9975
9980
|
switch (!0) {
|
9976
9981
|
case (s.isCreating.value && ((M = u.value) == null ? void 0 : M.crt_vis_flg) === 0):
|
9977
9982
|
case (s.isUpdating.value && ((N = u.value) == null ? void 0 : N.upt_vis_flg) === 0):
|
9978
|
-
case (s.isCopying.value && ((
|
9983
|
+
case (s.isCopying.value && ((P = u.value) == null ? void 0 : P.cpy_vis_flg) === 0):
|
9979
9984
|
I += " kg-form-item--invisible";
|
9980
9985
|
break;
|
9981
9986
|
}
|
@@ -10071,7 +10076,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10071
10076
|
title: s.t(e.kgVarName).value
|
10072
10077
|
}, [s.t(e.kgVarName).value]) : null;
|
10073
10078
|
}
|
10074
|
-
function
|
10079
|
+
function $() {
|
10075
10080
|
var I;
|
10076
10081
|
return !o.value || !((I = o.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10077
10082
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -10098,7 +10103,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10098
10103
|
validateFirst: !0,
|
10099
10104
|
htmlFor: E.value
|
10100
10105
|
}, {
|
10101
|
-
default: () => createVNode(Fragment, null, [A(),
|
10106
|
+
default: () => createVNode(Fragment, null, [A(), $()]),
|
10102
10107
|
label: () => T()
|
10103
10108
|
})]
|
10104
10109
|
});
|
@@ -10495,8 +10500,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10495
10500
|
}) => {
|
10496
10501
|
const u = s.store.getVarSubmitConfig(s.formID);
|
10497
10502
|
return o = watch(c, (d) => {
|
10498
|
-
var g, v, y, p, _, b, C, E, k, A, T,
|
10499
|
-
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (C = u == null ? void 0 : u.min_width) != null ? C : DEFAULT_MIN_WIDTH, d.dft_width = (E = u == null ? void 0 : u.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = u == null ? void 0 : u.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = (
|
10503
|
+
var g, v, y, p, _, b, C, E, k, A, T, $;
|
10504
|
+
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (C = u == null ? void 0 : u.min_width) != null ? C : DEFAULT_MIN_WIDTH, d.dft_width = (E = u == null ? void 0 : u.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = u == null ? void 0 : u.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = ($ = u == null ? void 0 : u.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10500
10505
|
}, {
|
10501
10506
|
immediate: !0
|
10502
10507
|
}), KgUtil.hideLoading(), !1;
|
@@ -10760,67 +10765,67 @@ const getProps$p = () => ({
|
|
10760
10765
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
10761
10766
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10762
10767
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
10763
|
-
i.onSubmitSave(async () => (await
|
10768
|
+
i.onSubmitSave(async () => (await oe(), !1)), i.onSubmitCancel(async () => (await se(), !1)), _useFormModel$1();
|
10764
10769
|
const u = computed(() => s.isDeleting.value && k.value.length === 0 && A.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), k = computed(() => {
|
10765
|
-
var
|
10770
|
+
var R, x, z;
|
10766
10771
|
switch (!0) {
|
10767
10772
|
case s.isCreating.value:
|
10768
|
-
return (
|
10773
|
+
return (R = v.value) != null ? R : [];
|
10769
10774
|
case s.isUpdating.value:
|
10770
|
-
return (
|
10775
|
+
return (x = p.value) != null ? x : [];
|
10771
10776
|
case s.isCopying.value:
|
10772
|
-
return (
|
10777
|
+
return (z = b.value) != null ? z : [];
|
10773
10778
|
case s.isDeleting.value:
|
10774
10779
|
return [];
|
10775
10780
|
}
|
10776
10781
|
return [];
|
10777
10782
|
}), A = computed(() => {
|
10778
|
-
var
|
10783
|
+
var R, x, z, J;
|
10779
10784
|
switch (!0) {
|
10780
10785
|
case s.isCreating.value:
|
10781
|
-
return (
|
10786
|
+
return (R = y.value) != null ? R : [];
|
10782
10787
|
case s.isUpdating.value:
|
10783
|
-
return (
|
10788
|
+
return (x = _.value) != null ? x : [];
|
10784
10789
|
case s.isCopying.value:
|
10785
|
-
return (
|
10790
|
+
return (z = C.value) != null ? z : [];
|
10786
10791
|
case s.isDeleting.value:
|
10787
10792
|
return (J = E.value) != null ? J : [];
|
10788
10793
|
}
|
10789
10794
|
return [];
|
10790
|
-
}), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)),
|
10795
|
+
}), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), $ = computed(() => T.value || d.value), I = computed(() => d.value), w = ref({
|
10791
10796
|
kgWidth: 0
|
10792
10797
|
}), M = computed(() => {
|
10793
|
-
var
|
10794
|
-
return !!(u.value || F.isFullscreen || ((
|
10798
|
+
var R;
|
10799
|
+
return !!(u.value || F.isFullscreen || ((R = g.value) == null ? void 0 : R.resizable_flg) === 0);
|
10795
10800
|
}), N = computed(() => {
|
10796
|
-
var
|
10797
|
-
return u.value ? 398 : (
|
10798
|
-
}),
|
10799
|
-
var
|
10800
|
-
return u.value ? 398 : (
|
10801
|
-
}),
|
10802
|
-
_useResizeObserver$1(
|
10803
|
-
const
|
10801
|
+
var R, x;
|
10802
|
+
return u.value ? 398 : (x = (R = g.value) == null ? void 0 : R.min_width) != null ? x : DEFAULT_MIN_WIDTH;
|
10803
|
+
}), P = computed(() => {
|
10804
|
+
var R, x;
|
10805
|
+
return u.value ? 398 : (x = (R = g.value) == null ? void 0 : R.max_width) != null ? x : DEFAULT_MAX_WIDTH;
|
10806
|
+
}), H = computed(() => u.value ? 398 : w.value.kgWidth), V = ref(null);
|
10807
|
+
_useResizeObserver$1(V);
|
10808
|
+
const O = _useTitle(), D = computed(() => u.value ? 400 : w.value.kgWidth && w.value.kgWidth > 0 ? "auto" : 0), U = computed(() => D.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
|
10804
10809
|
isFullscreen: !1
|
10805
10810
|
}), {
|
10806
10811
|
getClass: K
|
10807
10812
|
} = _useClass(e, F), {
|
10808
|
-
getLayout:
|
10813
|
+
getLayout: B
|
10809
10814
|
} = _useLayout(), {
|
10810
|
-
getDefaultWidth:
|
10811
|
-
} = _useDefaultWidth(),
|
10812
|
-
var
|
10813
|
-
switch (
|
10815
|
+
getDefaultWidth: W
|
10816
|
+
} = _useDefaultWidth(), X = computed(() => {
|
10817
|
+
var R, x, z;
|
10818
|
+
switch (B.value) {
|
10814
10819
|
case "horizontal":
|
10815
|
-
switch ((
|
10820
|
+
switch ((R = g.value) == null ? void 0 : R.label_col_unit) {
|
10816
10821
|
case KG_WIDTH_UNIT.SPAN:
|
10817
10822
|
return {
|
10818
|
-
span: (
|
10823
|
+
span: (x = g.value) == null ? void 0 : x.label_col
|
10819
10824
|
};
|
10820
10825
|
default:
|
10821
10826
|
return {
|
10822
10827
|
style: {
|
10823
|
-
width: `${(
|
10828
|
+
width: `${(z = g.value) == null ? void 0 : z.label_col}px`
|
10824
10829
|
}
|
10825
10830
|
};
|
10826
10831
|
}
|
@@ -10828,13 +10833,13 @@ const getProps$p = () => ({
|
|
10828
10833
|
return;
|
10829
10834
|
}
|
10830
10835
|
}), q = computed(() => {
|
10831
|
-
var
|
10832
|
-
switch (
|
10836
|
+
var R, x;
|
10837
|
+
switch (B.value) {
|
10833
10838
|
case "horizontal":
|
10834
|
-
switch ((
|
10839
|
+
switch ((R = g.value) == null ? void 0 : R.label_col_unit) {
|
10835
10840
|
case KG_WIDTH_UNIT.SPAN:
|
10836
10841
|
return {
|
10837
|
-
span: 24 - ((
|
10842
|
+
span: 24 - ((x = g.value) == null ? void 0 : x.label_col)
|
10838
10843
|
};
|
10839
10844
|
default:
|
10840
10845
|
return;
|
@@ -10843,19 +10848,19 @@ const getProps$p = () => ({
|
|
10843
10848
|
return;
|
10844
10849
|
}
|
10845
10850
|
});
|
10846
|
-
watch(U, (
|
10847
|
-
|
10851
|
+
watch(U, (R, x) => {
|
10852
|
+
R === !0 && Z(), x === !0 && R === !1 && te();
|
10848
10853
|
}, {
|
10849
10854
|
immediate: !0
|
10850
|
-
}), watch(
|
10851
|
-
|
10855
|
+
}), watch(W, (R) => {
|
10856
|
+
R && (w.value.kgWidth = R);
|
10852
10857
|
}, {
|
10853
10858
|
immediate: !0
|
10854
10859
|
});
|
10855
10860
|
function Z() {
|
10856
|
-
var
|
10857
|
-
const
|
10858
|
-
|
10861
|
+
var x;
|
10862
|
+
const R = watch(l.model, (z) => {
|
10863
|
+
z && Object.keys(z).length > 0 && (setTimeout(() => R()), l.store.emit(s.formID, "open", {
|
10859
10864
|
isCreating: s.isCreating.value,
|
10860
10865
|
isUpdating: s.isUpdating.value,
|
10861
10866
|
isCopying: s.isCopying.value,
|
@@ -10866,12 +10871,12 @@ const getProps$p = () => ({
|
|
10866
10871
|
}, {
|
10867
10872
|
immediate: !0
|
10868
10873
|
});
|
10869
|
-
((
|
10874
|
+
((x = g.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
10870
10875
|
}
|
10871
10876
|
async function te() {
|
10872
|
-
w.value.kgWidth =
|
10877
|
+
w.value.kgWidth = W.value, F.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
|
10873
10878
|
}
|
10874
|
-
function
|
10879
|
+
function se() {
|
10875
10880
|
switch (!0) {
|
10876
10881
|
case s.isCreating.value:
|
10877
10882
|
s.store.setIsCreating(s.formID, !1);
|
@@ -10887,8 +10892,8 @@ const getProps$p = () => ({
|
|
10887
10892
|
break;
|
10888
10893
|
}
|
10889
10894
|
}
|
10890
|
-
async function
|
10891
|
-
var
|
10895
|
+
async function oe() {
|
10896
|
+
var R, x;
|
10892
10897
|
try {
|
10893
10898
|
if (await l.store.emit(s.formID, "beforeOk", {
|
10894
10899
|
isCreating: s.isCreating.value,
|
@@ -10901,11 +10906,11 @@ const getProps$p = () => ({
|
|
10901
10906
|
}))
|
10902
10907
|
return;
|
10903
10908
|
try {
|
10904
|
-
await ((
|
10905
|
-
} catch (
|
10906
|
-
KgUtil.throwIfNotFormError(
|
10909
|
+
await ((R = l.formRef.value) == null ? void 0 : R.validate());
|
10910
|
+
} catch (Q) {
|
10911
|
+
KgUtil.throwIfNotFormError(Q);
|
10907
10912
|
}
|
10908
|
-
if (await ((
|
10913
|
+
if (await ((x = l.formRef.value) == null ? void 0 : x.validate()), await l.store.emit(s.formID, "afterValidate", {
|
10909
10914
|
isCreating: s.isCreating.value,
|
10910
10915
|
isUpdating: s.isUpdating.value,
|
10911
10916
|
isCopying: s.isCopying.value,
|
@@ -10917,26 +10922,26 @@ const getProps$p = () => ({
|
|
10917
10922
|
return;
|
10918
10923
|
switch (!0) {
|
10919
10924
|
case s.isCreating.value:
|
10920
|
-
await
|
10925
|
+
await ge();
|
10921
10926
|
break;
|
10922
10927
|
case s.isUpdating.value:
|
10923
|
-
await
|
10928
|
+
await ue();
|
10924
10929
|
break;
|
10925
10930
|
case s.isCopying.value:
|
10926
10931
|
await ne();
|
10927
10932
|
break;
|
10928
10933
|
case s.isDeleting.value:
|
10929
|
-
await
|
10934
|
+
await le();
|
10930
10935
|
break;
|
10931
10936
|
}
|
10932
|
-
} catch (
|
10933
|
-
KgUtil.throwIfNotFormError(
|
10937
|
+
} catch (z) {
|
10938
|
+
KgUtil.throwIfNotFormError(z);
|
10934
10939
|
}
|
10935
10940
|
}
|
10936
|
-
async function
|
10937
|
-
var
|
10938
|
-
const
|
10939
|
-
if (!
|
10941
|
+
async function ge() {
|
10942
|
+
var x, z, J, Q, re, ae;
|
10943
|
+
const R = (x = s.varButtonCreate.value) == null ? void 0 : x.cmd;
|
10944
|
+
if (!R) {
|
10940
10945
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10941
10946
|
VarButton: s.varButtonCreate.value
|
10942
10947
|
});
|
@@ -10944,7 +10949,7 @@ const getProps$p = () => ({
|
|
10944
10949
|
}
|
10945
10950
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
10946
10951
|
try {
|
10947
|
-
let
|
10952
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonCreate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
10948
10953
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
10949
10954
|
isCreating: s.isCreating.value,
|
10950
10955
|
isUpdating: s.isUpdating.value,
|
@@ -10953,16 +10958,16 @@ const getProps$p = () => ({
|
|
10953
10958
|
row: o.selectedFirstRow.value,
|
10954
10959
|
rows: o.selectedRows.value,
|
10955
10960
|
model: l.model,
|
10956
|
-
params:
|
10957
|
-
data:
|
10961
|
+
params: ee,
|
10962
|
+
data: ie
|
10958
10963
|
}))
|
10959
10964
|
return;
|
10960
10965
|
await httpClient().request({
|
10961
|
-
method: (
|
10962
|
-
url:
|
10963
|
-
params:
|
10964
|
-
data:
|
10965
|
-
}), ((
|
10966
|
+
method: (re = (Q = s.varButtonCreate.value) == null ? void 0 : Q.cmd_method) != null ? re : "POST",
|
10967
|
+
url: R,
|
10968
|
+
params: ee.value,
|
10969
|
+
data: ie.value
|
10970
|
+
}), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(O.title.value + n.t("kg.succeed")), await l.store.emit(s.formID, "ok", {
|
10966
10971
|
isCreating: s.isCreating.value,
|
10967
10972
|
isUpdating: s.isUpdating.value,
|
10968
10973
|
isCopying: s.isCopying.value,
|
@@ -10970,16 +10975,16 @@ const getProps$p = () => ({
|
|
10970
10975
|
row: o.selectedFirstRow.value,
|
10971
10976
|
model: l.model
|
10972
10977
|
}), s.store.setIsCreating(s.formID, !1), c.search(!0);
|
10973
|
-
} catch (
|
10974
|
-
console.error(
|
10978
|
+
} catch (ee) {
|
10979
|
+
console.error(ee), l.store.emit(s.formID, "error", ee);
|
10975
10980
|
} finally {
|
10976
10981
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
10977
10982
|
}
|
10978
10983
|
}
|
10979
|
-
async function
|
10980
|
-
var
|
10981
|
-
const
|
10982
|
-
if (!
|
10984
|
+
async function ue() {
|
10985
|
+
var x, z, J, Q, re, ae;
|
10986
|
+
const R = (x = s.varButtonUpdate.value) == null ? void 0 : x.cmd;
|
10987
|
+
if (!R) {
|
10983
10988
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10984
10989
|
VarButton: s.varButtonUpdate.value
|
10985
10990
|
});
|
@@ -10987,7 +10992,7 @@ const getProps$p = () => ({
|
|
10987
10992
|
}
|
10988
10993
|
try {
|
10989
10994
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
10990
|
-
let
|
10995
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonUpdate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
10991
10996
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
10992
10997
|
isCreating: s.isCreating.value,
|
10993
10998
|
isUpdating: s.isUpdating.value,
|
@@ -10996,16 +11001,16 @@ const getProps$p = () => ({
|
|
10996
11001
|
row: o.selectedRow.value,
|
10997
11002
|
rows: o.selectedRows.value,
|
10998
11003
|
model: l.model,
|
10999
|
-
params:
|
11000
|
-
data:
|
11004
|
+
params: ee,
|
11005
|
+
data: ie
|
11001
11006
|
}))
|
11002
11007
|
return;
|
11003
11008
|
await httpClient().request({
|
11004
|
-
method: (
|
11005
|
-
url:
|
11006
|
-
params:
|
11007
|
-
data:
|
11008
|
-
}), ((
|
11009
|
+
method: (re = (Q = s.varButtonUpdate.value) == null ? void 0 : Q.cmd_method) != null ? re : "POST",
|
11010
|
+
url: R,
|
11011
|
+
params: ee.value,
|
11012
|
+
data: ie.value
|
11013
|
+
}), ((ae = s.varButtonUpdate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(s.formID, "ok", {
|
11009
11014
|
isCreating: s.isCreating.value,
|
11010
11015
|
isUpdating: s.isUpdating.value,
|
11011
11016
|
isCopying: s.isCopying.value,
|
@@ -11013,16 +11018,16 @@ const getProps$p = () => ({
|
|
11013
11018
|
row: o.selectedFirstRow.value,
|
11014
11019
|
model: l.model
|
11015
11020
|
}), s.store.setIsUpdating(s.formID, !1), c.search();
|
11016
|
-
} catch (
|
11017
|
-
console.error(
|
11021
|
+
} catch (ee) {
|
11022
|
+
console.error(ee), l.store.emit(s.formID, "error", ee);
|
11018
11023
|
} finally {
|
11019
11024
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
11020
11025
|
}
|
11021
11026
|
}
|
11022
11027
|
async function ne() {
|
11023
|
-
var
|
11024
|
-
const
|
11025
|
-
if (!
|
11028
|
+
var x, z, J, Q, re, ae, ee, ie;
|
11029
|
+
const R = (x = s.varButtonCopy.value) == null ? void 0 : x.cmd;
|
11030
|
+
if (!R) {
|
11026
11031
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11027
11032
|
VarButton: s.varButtonCopy.value
|
11028
11033
|
});
|
@@ -11030,11 +11035,11 @@ const getProps$p = () => ({
|
|
11030
11035
|
}
|
11031
11036
|
try {
|
11032
11037
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11033
|
-
let
|
11034
|
-
...(
|
11038
|
+
let de = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonCopy.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
|
11039
|
+
...(Q = o.selectedFirstRow.value) != null ? Q : {},
|
11035
11040
|
...toRaw(l.model.value)
|
11036
11041
|
}, s.formID, r));
|
11037
|
-
if (((
|
11042
|
+
if (((re = g.value) == null ? void 0 : re.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(s.formID, "beforeRequest", {
|
11038
11043
|
isCreating: s.isCreating.value,
|
11039
11044
|
isUpdating: s.isUpdating.value,
|
11040
11045
|
isCopying: s.isCopying.value,
|
@@ -11042,16 +11047,16 @@ const getProps$p = () => ({
|
|
11042
11047
|
row: o.selectedRow.value,
|
11043
11048
|
rows: o.selectedRows.value,
|
11044
11049
|
model: l.model,
|
11045
|
-
params:
|
11050
|
+
params: de,
|
11046
11051
|
data: pe
|
11047
11052
|
}))
|
11048
11053
|
return;
|
11049
11054
|
await httpClient().request({
|
11050
|
-
method: (
|
11051
|
-
url:
|
11052
|
-
params:
|
11055
|
+
method: (ee = (ae = s.varButtonCopy.value) == null ? void 0 : ae.cmd_method) != null ? ee : "POST",
|
11056
|
+
url: R,
|
11057
|
+
params: de.value,
|
11053
11058
|
data: pe.value
|
11054
|
-
}), ((
|
11059
|
+
}), ((ie = s.varButtonCopy.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(s.formID, "ok", {
|
11055
11060
|
isCreating: s.isCreating.value,
|
11056
11061
|
isUpdating: s.isUpdating.value,
|
11057
11062
|
isCopying: s.isCopying.value,
|
@@ -11059,16 +11064,16 @@ const getProps$p = () => ({
|
|
11059
11064
|
row: o.selectedFirstRow.value,
|
11060
11065
|
model: l.model
|
11061
11066
|
}), s.store.setIsCopying(s.formID, !1), c.search(!0);
|
11062
|
-
} catch (
|
11063
|
-
console.error(
|
11067
|
+
} catch (de) {
|
11068
|
+
console.error(de), l.store.emit(s.formID, "error", de);
|
11064
11069
|
} finally {
|
11065
11070
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
11066
11071
|
}
|
11067
11072
|
}
|
11068
|
-
async function
|
11069
|
-
var
|
11070
|
-
const
|
11071
|
-
if (!
|
11073
|
+
async function le() {
|
11074
|
+
var x, z, J, Q, re, ae;
|
11075
|
+
const R = (x = s.varButtonDelete.value) == null ? void 0 : x.cmd;
|
11076
|
+
if (!R) {
|
11072
11077
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11073
11078
|
VarButton: s.varButtonDelete.value
|
11074
11079
|
});
|
@@ -11076,12 +11081,12 @@ const getProps$p = () => ({
|
|
11076
11081
|
}
|
11077
11082
|
try {
|
11078
11083
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11079
|
-
let
|
11080
|
-
ids: (J = (
|
11084
|
+
let ee = ref({
|
11085
|
+
ids: (J = (z = o.selectedRows.value) == null ? void 0 : z.map((pe) => {
|
11081
11086
|
var me, _e, he;
|
11082
11087
|
return (he = pe[(_e = (me = s.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
|
11083
11088
|
})) != null ? J : []
|
11084
|
-
}),
|
11089
|
+
}), ie = ref({});
|
11085
11090
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
11086
11091
|
isCreating: s.isCreating.value,
|
11087
11092
|
isUpdating: s.isUpdating.value,
|
@@ -11090,18 +11095,18 @@ const getProps$p = () => ({
|
|
11090
11095
|
row: o.selectedFirstRow.value,
|
11091
11096
|
rows: o.selectedRows.value,
|
11092
11097
|
model: l.model,
|
11093
|
-
params:
|
11094
|
-
data:
|
11098
|
+
params: ee,
|
11099
|
+
data: ie
|
11095
11100
|
}))
|
11096
11101
|
return;
|
11097
11102
|
await httpClient().request({
|
11098
|
-
method: (
|
11099
|
-
url:
|
11100
|
-
params:
|
11101
|
-
data:
|
11103
|
+
method: (re = (Q = s.varButtonDelete.value) == null ? void 0 : Q.cmd_method) != null ? re : "DELETE",
|
11104
|
+
url: R,
|
11105
|
+
params: ee.value,
|
11106
|
+
data: ie.value
|
11102
11107
|
}, {
|
11103
11108
|
joinParamsToUrl: !0
|
11104
|
-
}), ((
|
11109
|
+
}), ((ae = s.varButtonDelete.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(s.formID, "ok", {
|
11105
11110
|
isCreating: s.isCreating.value,
|
11106
11111
|
isUpdating: s.isUpdating.value,
|
11107
11112
|
isCopying: s.isCopying.value,
|
@@ -11109,54 +11114,54 @@ const getProps$p = () => ({
|
|
11109
11114
|
row: o.selectedFirstRow.value,
|
11110
11115
|
model: l.model
|
11111
11116
|
}), s.store.setIsDeleting(s.formID, !1), c.search(!0);
|
11112
|
-
} catch (
|
11113
|
-
console.error(
|
11117
|
+
} catch (ee) {
|
11118
|
+
console.error(ee), l.store.emit(s.formID, "error", ee);
|
11114
11119
|
} finally {
|
11115
11120
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
11116
11121
|
}
|
11117
11122
|
}
|
11118
|
-
function
|
11119
|
-
var
|
11120
|
-
const
|
11121
|
-
return isFunction$2(
|
11122
|
-
kgVarName:
|
11123
|
+
function ce(R) {
|
11124
|
+
var z, J;
|
11125
|
+
const x = (J = (z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : z["KgForm.Item"]) == null ? void 0 : J[R.var_nam];
|
11126
|
+
return isFunction$2(x) ? createVNode(KgForm.Item, {
|
11127
|
+
kgVarName: R.var_nam,
|
11123
11128
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11124
|
-
kgRules: l.rules.value[
|
11125
|
-
onKgSubmit:
|
11129
|
+
kgRules: l.rules.value[R.var_nam],
|
11130
|
+
onKgSubmit: oe
|
11126
11131
|
}, {
|
11127
11132
|
control: ({
|
11128
|
-
frm_id:
|
11129
|
-
varName:
|
11130
|
-
props:
|
11131
|
-
model:
|
11132
|
-
varVariableConfig:
|
11133
|
-
varProfileDetail:
|
11133
|
+
frm_id: Q,
|
11134
|
+
varName: re,
|
11135
|
+
props: ae,
|
11136
|
+
model: ee,
|
11137
|
+
varVariableConfig: ie,
|
11138
|
+
varProfileDetail: de,
|
11134
11139
|
varSubmitField: pe
|
11135
|
-
}) =>
|
11136
|
-
frm_id:
|
11137
|
-
varName:
|
11138
|
-
props:
|
11139
|
-
model:
|
11140
|
-
varVariableConfig:
|
11141
|
-
varProfileDetail:
|
11140
|
+
}) => x({
|
11141
|
+
frm_id: Q,
|
11142
|
+
varName: re,
|
11143
|
+
props: ae,
|
11144
|
+
model: ee,
|
11145
|
+
varVariableConfig: ie,
|
11146
|
+
varProfileDetail: de,
|
11142
11147
|
varSubmitField: pe
|
11143
11148
|
})
|
11144
11149
|
}) : createVNode(KgForm.Item, {
|
11145
|
-
kgVarName:
|
11150
|
+
kgVarName: R.var_nam,
|
11146
11151
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11147
|
-
kgRules: l.rules.value[
|
11148
|
-
onKgSubmit:
|
11152
|
+
kgRules: l.rules.value[R.var_nam],
|
11153
|
+
onKgSubmit: oe
|
11149
11154
|
}, null);
|
11150
11155
|
}
|
11151
|
-
function
|
11152
|
-
let
|
11156
|
+
function fe() {
|
11157
|
+
let R, x;
|
11153
11158
|
return createVNode(KgResizable, {
|
11154
11159
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
11155
11160
|
kgMinWidth: N.value,
|
11156
|
-
kgMaxWidth:
|
11157
|
-
kgWidth:
|
11161
|
+
kgMaxWidth: P.value,
|
11162
|
+
kgWidth: H.value,
|
11158
11163
|
kgDisabled: M.value,
|
11159
|
-
"onUpdate:kgWidth": (
|
11164
|
+
"onUpdate:kgWidth": (z) => w.value.kgWidth = z
|
11160
11165
|
}, {
|
11161
11166
|
default: () => [createVNode(Spin, {
|
11162
11167
|
spinning: d.value
|
@@ -11164,20 +11169,20 @@ const getProps$p = () => ({
|
|
11164
11169
|
default: () => [createVNode(KgForm, {
|
11165
11170
|
ref: l.formRef,
|
11166
11171
|
model: l.model.value,
|
11167
|
-
layout:
|
11168
|
-
labelCol:
|
11172
|
+
layout: B.value,
|
11173
|
+
labelCol: X.value,
|
11169
11174
|
wrapperCol: q.value
|
11170
11175
|
}, {
|
11171
11176
|
default: () => [createVNode("div", {
|
11172
|
-
ref:
|
11177
|
+
ref: V
|
11173
11178
|
}, [k.value.length > 0 && createVNode(Row, {
|
11174
11179
|
gutter: 12
|
11175
|
-
}, _isSlot$8(
|
11176
|
-
default: () => [
|
11180
|
+
}, _isSlot$8(R = k.value.map(ce)) ? R : {
|
11181
|
+
default: () => [R]
|
11177
11182
|
}), k.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
|
11178
11183
|
gutter: 12
|
11179
|
-
}, _isSlot$8(
|
11180
|
-
default: () => [
|
11184
|
+
}, _isSlot$8(x = A.value.map(ce)) ? x : {
|
11185
|
+
default: () => [x]
|
11181
11186
|
}), u.value && createVNode("div", {
|
11182
11187
|
style: "text-align: center; padding: 6px 0 12px;"
|
11183
11188
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11185,37 +11190,37 @@ const getProps$p = () => ({
|
|
11185
11190
|
})]
|
11186
11191
|
});
|
11187
11192
|
}
|
11188
|
-
function
|
11189
|
-
let
|
11193
|
+
function L() {
|
11194
|
+
let R, x;
|
11190
11195
|
return createVNode("div", null, [createVNode(Button, {
|
11191
11196
|
type: "primary",
|
11192
|
-
ghost:
|
11193
|
-
disabled:
|
11194
|
-
onClick:
|
11195
|
-
}, _isSlot$8(
|
11196
|
-
default: () => [
|
11197
|
+
ghost: !$.value,
|
11198
|
+
disabled: $.value,
|
11199
|
+
onClick: se
|
11200
|
+
}, _isSlot$8(R = n.t("kg.cancel")) ? R : {
|
11201
|
+
default: () => [R]
|
11197
11202
|
}), createVNode(Button, {
|
11198
11203
|
type: "primary",
|
11199
11204
|
disabled: I.value,
|
11200
11205
|
loading: T.value,
|
11201
11206
|
danger: !!s.isDeleting.value,
|
11202
|
-
onClick:
|
11203
|
-
}, _isSlot$8(
|
11204
|
-
default: () => [
|
11207
|
+
onClick: oe
|
11208
|
+
}, _isSlot$8(x = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? x : {
|
11209
|
+
default: () => [x]
|
11205
11210
|
})]);
|
11206
11211
|
}
|
11207
|
-
function
|
11212
|
+
function G() {
|
11208
11213
|
return createVNode("div", {
|
11209
|
-
title:
|
11210
|
-
}, [
|
11214
|
+
title: O.title.value
|
11215
|
+
}, [O.title.value]);
|
11211
11216
|
}
|
11212
|
-
function
|
11217
|
+
function Y() {
|
11213
11218
|
return createVNode(KgSubmitHeader, {
|
11214
11219
|
isFullscreen: F.isFullscreen,
|
11215
|
-
"onUpdate:isFullscreen": (
|
11220
|
+
"onUpdate:isFullscreen": (R) => F.isFullscreen = R,
|
11216
11221
|
kgShowFullscreenButton: !u.value,
|
11217
11222
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11218
|
-
onKgCancel:
|
11223
|
+
onKgCancel: se
|
11219
11224
|
}, null);
|
11220
11225
|
}
|
11221
11226
|
return onUnmounted(() => {
|
@@ -11227,14 +11232,14 @@ const getProps$p = () => ({
|
|
11227
11232
|
maskClosable: !1,
|
11228
11233
|
keyboard: !1,
|
11229
11234
|
destroyOnClose: !0,
|
11230
|
-
width:
|
11235
|
+
width: D.value,
|
11231
11236
|
class: K.value,
|
11232
11237
|
"kg-frm_id": s.formID
|
11233
11238
|
}, {
|
11234
|
-
title:
|
11235
|
-
extra:
|
11236
|
-
default:
|
11237
|
-
footer:
|
11239
|
+
title: G,
|
11240
|
+
extra: Y,
|
11241
|
+
default: fe,
|
11242
|
+
footer: L
|
11238
11243
|
});
|
11239
11244
|
}
|
11240
11245
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -11550,8 +11555,8 @@ const getProps$n = () => ({
|
|
11550
11555
|
return !1;
|
11551
11556
|
});
|
11552
11557
|
const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
11553
|
-
var k, A, T,
|
11554
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && ((
|
11558
|
+
var k, A, T, $, I, w;
|
11559
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && (($ = c.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((w = c.value) == null ? void 0 : w.del_flg) === 1);
|
11555
11560
|
}), d = computed(() => {
|
11556
11561
|
var k, A;
|
11557
11562
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
@@ -11560,7 +11565,7 @@ const getProps$n = () => ({
|
|
11560
11565
|
let k = "kg-table-td";
|
11561
11566
|
return ((A = l.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((T = l.value) == null ? void 0 : T.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
11562
11567
|
}), v = computed(() => {
|
11563
|
-
var A, T,
|
11568
|
+
var A, T, $, I, w;
|
11564
11569
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11565
11570
|
return "";
|
11566
11571
|
let k = e.kgValue;
|
@@ -11568,7 +11573,7 @@ const getProps$n = () => ({
|
|
11568
11573
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11569
11574
|
{
|
11570
11575
|
const M = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
|
11571
|
-
M.dscFieldName ? k = ((
|
11576
|
+
M.dscFieldName ? k = (($ = e.kgRow) == null ? void 0 : $[M.dscFieldName]) || e.kgValue : k = ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}_dsc`]) || ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}Dsc`]) || e.kgValue;
|
11572
11577
|
}
|
11573
11578
|
break;
|
11574
11579
|
}
|
@@ -11576,7 +11581,7 @@ const getProps$n = () => ({
|
|
11576
11581
|
`)), k;
|
11577
11582
|
}), y = ref(null);
|
11578
11583
|
function p(k) {
|
11579
|
-
var A, T,
|
11584
|
+
var A, T, $;
|
11580
11585
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
11581
11586
|
switch ((A = l.value) == null ? void 0 : A.display_type) {
|
11582
11587
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
@@ -11586,7 +11591,7 @@ const getProps$n = () => ({
|
|
11586
11591
|
{
|
11587
11592
|
k.stopPropagation(), k.preventDefault();
|
11588
11593
|
const I = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
|
11589
|
-
(
|
11594
|
+
($ = a.router.value) == null || $.push({
|
11590
11595
|
path: I.path,
|
11591
11596
|
query: e.kgRow
|
11592
11597
|
});
|
@@ -11618,35 +11623,35 @@ const getProps$n = () => ({
|
|
11618
11623
|
});
|
11619
11624
|
}
|
11620
11625
|
function C() {
|
11621
|
-
var k, A, T,
|
11626
|
+
var k, A, T, $, I, w, M, N, P, H;
|
11622
11627
|
if (u.value)
|
11623
11628
|
return b();
|
11624
11629
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
11625
11630
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11626
|
-
const
|
11631
|
+
const V = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
11627
11632
|
return createVNode(KgYesOrNo, {
|
11628
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((T =
|
11629
|
-
kgNilAsFalse:
|
11633
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((T = V.yValue) != null ? T : 1),
|
11634
|
+
kgNilAsFalse: V.nilAsFalse
|
11630
11635
|
}, null);
|
11631
11636
|
}
|
11632
11637
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
11633
|
-
const
|
11634
|
-
if (
|
11635
|
-
const
|
11636
|
-
return
|
11637
|
-
color: (I =
|
11638
|
-
}, _isSlot$7(
|
11639
|
-
default: () => [
|
11638
|
+
const V = KgUtil.tryParseJSON(($ = l.value) == null ? void 0 : $.display_type_properties), O = isArrayLike(V) && V.find((D) => D.value === e.kgValue);
|
11639
|
+
if (O) {
|
11640
|
+
const D = n.t(O.varName).value;
|
11641
|
+
return D ? createVNode(Tag, {
|
11642
|
+
color: (I = O.color) != null ? I : "default"
|
11643
|
+
}, _isSlot$7(D) ? D : {
|
11644
|
+
default: () => [D]
|
11640
11645
|
}) : E();
|
11641
11646
|
} else
|
11642
11647
|
return E();
|
11643
11648
|
}
|
11644
11649
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
11645
|
-
const
|
11646
|
-
if (
|
11647
|
-
const
|
11650
|
+
const V = KgUtil.tryParseJSON((w = l.value) == null ? void 0 : w.display_type_properties);
|
11651
|
+
if (V.isTag && isArrayLike(V.tagColors)) {
|
11652
|
+
const O = V.tagColors.find((D) => D.value === e.kgValue);
|
11648
11653
|
return v.value ? createVNode(Tag, {
|
11649
|
-
color: (M =
|
11654
|
+
color: (M = O == null ? void 0 : O.color) != null ? M : "default"
|
11650
11655
|
}, {
|
11651
11656
|
default: () => [v.value]
|
11652
11657
|
}) : E();
|
@@ -11654,11 +11659,11 @@ const getProps$n = () => ({
|
|
11654
11659
|
return E();
|
11655
11660
|
}
|
11656
11661
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11657
|
-
const
|
11662
|
+
const V = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties);
|
11658
11663
|
return createVNode(KgProgressA, {
|
11659
|
-
kgTextWidth:
|
11660
|
-
kgLeft: (
|
11661
|
-
kgRight: (
|
11664
|
+
kgTextWidth: V.textWidth,
|
11665
|
+
kgLeft: (P = e.kgRow) == null ? void 0 : P[V.leftColumn],
|
11666
|
+
kgRight: (H = e.kgRow) == null ? void 0 : H[V.rightColumn]
|
11662
11667
|
}, null);
|
11663
11668
|
}
|
11664
11669
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -11860,18 +11865,25 @@ const getProps$m = () => ({
|
|
11860
11865
|
}), s.onUpdateBeforeClick(async ({
|
11861
11866
|
row: c
|
11862
11867
|
}) => !1);
|
11863
|
-
const l = computed(() =>
|
11864
|
-
|
11865
|
-
|
11866
|
-
|
11867
|
-
|
11868
|
-
|
11869
|
-
|
11870
|
-
|
11868
|
+
const l = computed(() => {
|
11869
|
+
const c = o.selectedRow.value;
|
11870
|
+
return {
|
11871
|
+
KgButton: {
|
11872
|
+
kgDisabled: (u) => {
|
11873
|
+
switch (u.var_nam) {
|
11874
|
+
case "create":
|
11875
|
+
case "update":
|
11876
|
+
case "copy":
|
11877
|
+
return !0;
|
11878
|
+
case "set-default":
|
11879
|
+
if ((c == null ? void 0 : c.def_flg) === 1)
|
11880
|
+
return !0;
|
11881
|
+
break;
|
11882
|
+
}
|
11871
11883
|
}
|
11872
11884
|
}
|
11873
|
-
}
|
11874
|
-
})
|
11885
|
+
};
|
11886
|
+
});
|
11875
11887
|
return () => createVNode(KgVar, {
|
11876
11888
|
class: "kg-table-config-modal-var-grid-master",
|
11877
11889
|
kgProps: l.value
|
@@ -11980,17 +11992,15 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
11980
11992
|
emit: r
|
11981
11993
|
}) {
|
11982
11994
|
KgUtil.showLoading();
|
11983
|
-
const a = inject(KG_DI_FORM_ID, null), n = useKgVar(a);
|
11984
|
-
|
11985
|
-
|
11986
|
-
return s.onOpen(async ({
|
11987
|
-
model: i
|
11995
|
+
const a = inject(KG_DI_FORM_ID, null), n = useKgVar(a), s = useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, n.store.getFormLevel(n.formID) + 1), i = useKgSubmit(s.formID);
|
11996
|
+
return i.onOpen(async ({
|
11997
|
+
model: o
|
11988
11998
|
}) => {
|
11989
|
-
var
|
11990
|
-
return
|
11991
|
-
}),
|
11992
|
-
model:
|
11993
|
-
}) => (
|
11999
|
+
var l, c, u, d, g, v, y, p, _, b;
|
12000
|
+
return o.value.grd_var_nam = `${(c = (l = n.currentVarGridMaster.value) == null ? void 0 : l.grd_var_nam) != null ? c : ""}_COPY`, o.value.frm_id = (d = (u = n.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? d : "", o.value.usr_id = (v = (g = n.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? v : "", o.value.grp_nam = (p = (y = n.currentVarGridMaster.value) == null ? void 0 : y.grp_nam) != null ? p : "", o.value.varGridDetails = (b = (_ = n.currentVarGridMaster.value) == null ? void 0 : _.varGridDetails) != null ? b : [], KgUtil.hideLoading(), !1;
|
12001
|
+
}), i.onBeforeOk(async ({
|
12002
|
+
model: o
|
12003
|
+
}) => (o.value, !1)), i.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
|
11994
12004
|
}
|
11995
12005
|
});
|
11996
12006
|
function _isSlot$5(e) {
|
@@ -12097,10 +12107,10 @@ const getProps$h = () => ({
|
|
12097
12107
|
var A;
|
12098
12108
|
let E, k;
|
12099
12109
|
return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((T) => {
|
12100
|
-
var
|
12110
|
+
var $;
|
12101
12111
|
return createVNode(Menu.Item, {
|
12102
12112
|
key: T.id,
|
12103
|
-
class: T.id === ((
|
12113
|
+
class: T.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
|
12104
12114
|
"kg-var_nam": T.grd_var_nam,
|
12105
12115
|
onClick: () => n.store.setCurrentVarGridMasterID(n.formID, T.id)
|
12106
12116
|
}, {
|
@@ -12639,12 +12649,12 @@ function _useColumns(e) {
|
|
12639
12649
|
function T() {
|
12640
12650
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
12641
12651
|
}
|
12642
|
-
const
|
12652
|
+
const $ = b();
|
12643
12653
|
return {
|
12644
12654
|
dataIndex: _,
|
12645
12655
|
title: C(),
|
12646
|
-
width:
|
12647
|
-
resizable: typeof
|
12656
|
+
width: $,
|
12657
|
+
resizable: typeof $ == "number",
|
12648
12658
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
12649
12659
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
12650
12660
|
fixed: k(),
|
@@ -12767,6 +12777,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12767
12777
|
type: Boolean,
|
12768
12778
|
default: void 0
|
12769
12779
|
},
|
12780
|
+
kgCheckboxDisabled: Function,
|
12770
12781
|
kgRowClassName: Function
|
12771
12782
|
}), KgTable = defineComponent({
|
12772
12783
|
name: "KgTable",
|
@@ -12775,30 +12786,30 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12775
12786
|
slots: t,
|
12776
12787
|
emit: r
|
12777
12788
|
}) {
|
12778
|
-
var
|
12789
|
+
var fe;
|
12779
12790
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), i = useKg(), o = useKgVar(), l = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
12780
12791
|
l.onSearch(async ({
|
12781
|
-
resetPageIndex:
|
12782
|
-
}) => (
|
12783
|
-
name:
|
12784
|
-
args:
|
12792
|
+
resetPageIndex: L
|
12793
|
+
}) => (W(L), !1)), l.onReset(async () => (W(!0), !1)), u.store.$onAction(async ({
|
12794
|
+
name: L,
|
12795
|
+
args: G
|
12785
12796
|
}) => {
|
12786
|
-
switch (
|
12797
|
+
switch (L) {
|
12787
12798
|
case "setRowSelect":
|
12788
|
-
if (
|
12789
|
-
const
|
12799
|
+
if (G[0] === o.formID) {
|
12800
|
+
const Y = G[1], R = G[2], x = Y[u.id.value];
|
12790
12801
|
switch (!0) {
|
12791
|
-
case (
|
12792
|
-
|
12802
|
+
case (R && !V.value.includes(x)):
|
12803
|
+
X([...V.value, x]);
|
12793
12804
|
break;
|
12794
|
-
case (!
|
12795
|
-
|
12805
|
+
case (!R && V.value.includes(x)):
|
12806
|
+
X(without$1(V.value, x));
|
12796
12807
|
break;
|
12797
12808
|
}
|
12798
12809
|
}
|
12799
12810
|
break;
|
12800
12811
|
case "clearDatas":
|
12801
|
-
|
12812
|
+
G[0] === o.formID && (u.store.setDatas(o.formID, []), O.total = 0, B(), v.value = []);
|
12802
12813
|
break;
|
12803
12814
|
}
|
12804
12815
|
});
|
@@ -12810,277 +12821,286 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12810
12821
|
} = _useLoading(), b = ref(null);
|
12811
12822
|
_useResizeObserver(b), _useDragColumn(b, y);
|
12812
12823
|
const C = computed(() => {
|
12813
|
-
var
|
12814
|
-
return (
|
12824
|
+
var L, G;
|
12825
|
+
return (G = (L = o.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? G : null;
|
12815
12826
|
}), E = computed(() => {
|
12816
|
-
var
|
12817
|
-
let
|
12818
|
-
pageNo:
|
12819
|
-
pageSize:
|
12820
|
-
...
|
12821
|
-
...(
|
12827
|
+
var G, Y, R, x, z, J, Q;
|
12828
|
+
let L = {
|
12829
|
+
pageNo: O.pageIndex,
|
12830
|
+
pageSize: O.pageSize,
|
12831
|
+
...D,
|
12832
|
+
...(Y = (G = l.model) == null ? void 0 : G.value) != null ? Y : {}
|
12822
12833
|
};
|
12823
|
-
return o.varButtonSearch.value && (
|
12824
|
-
...
|
12825
|
-
...KgVarUtil.parseCommandParameter((
|
12826
|
-
}), (
|
12827
|
-
...
|
12828
|
-
...KgVarUtil.parseCommandParameter((
|
12829
|
-
}), ((
|
12834
|
+
return o.varButtonSearch.value && (L = {
|
12835
|
+
...L,
|
12836
|
+
...KgVarUtil.parseCommandParameter((x = (R = o.varButtonSearch.value) == null ? void 0 : R.cmd_prm) != null ? x : "")
|
12837
|
+
}), (z = o.varGridConfig.value) != null && z.cmd_prm && (L = {
|
12838
|
+
...L,
|
12839
|
+
...KgVarUtil.parseCommandParameter((J = o.varGridConfig.value.cmd_prm) != null ? J : "")
|
12840
|
+
}), ((Q = o.varGridConfig.value) == null ? void 0 : Q.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
|
12830
12841
|
}), k = computed(() => {
|
12831
|
-
var
|
12832
|
-
if (!isNil((
|
12833
|
-
return (
|
12842
|
+
var L, G, Y, R;
|
12843
|
+
if (!isNil((G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgDisabled))
|
12844
|
+
return (R = (Y = s == null ? void 0 : s.value) == null ? void 0 : Y.KgTable) == null ? void 0 : R.kgDisabled;
|
12834
12845
|
if (!isNil(e.kgDisabled))
|
12835
12846
|
return e.kgDisabled;
|
12836
|
-
}), A = computed(() =>
|
12837
|
-
var
|
12838
|
-
|
12839
|
-
|
12840
|
-
|
12841
|
-
|
12847
|
+
}), A = computed(() => {
|
12848
|
+
var L, G, Y, R;
|
12849
|
+
if (!isNil((G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgCheckboxDisabled))
|
12850
|
+
return (R = (Y = s == null ? void 0 : s.value) == null ? void 0 : Y.KgTable) == null ? void 0 : R.kgCheckboxDisabled;
|
12851
|
+
if (!isNil(e.kgCheckboxDisabled))
|
12852
|
+
return e.kgCheckboxDisabled;
|
12853
|
+
}), T = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), $ = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0), I = computed(() => {
|
12854
|
+
var L;
|
12855
|
+
return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
|
12842
12856
|
}), w = computed(() => {
|
12843
|
-
|
12857
|
+
var L;
|
12858
|
+
return ((L = o.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
|
12859
|
+
}), M = computed(() => {
|
12860
|
+
if (!!w.value)
|
12844
12861
|
return {
|
12845
12862
|
fixed: "left",
|
12846
12863
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
12847
12864
|
hideSelectAll: !u.isMultiSelect.value,
|
12848
|
-
selectedRowKeys:
|
12865
|
+
selectedRowKeys: V,
|
12849
12866
|
preserveSelectedRowKeys: !1,
|
12850
|
-
getCheckboxProps: (
|
12851
|
-
|
12852
|
-
|
12853
|
-
|
12854
|
-
|
12867
|
+
getCheckboxProps: (L) => {
|
12868
|
+
var G;
|
12869
|
+
return {
|
12870
|
+
disabled: !!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((G = A.value) != null && G.call(A, L))
|
12871
|
+
};
|
12872
|
+
},
|
12873
|
+
onSelect: (L) => q(L),
|
12874
|
+
onChange: (L) => u.isMultiSelect.value && X(L)
|
12855
12875
|
};
|
12856
|
-
}), M = computed(() => {
|
12857
|
-
var H;
|
12858
|
-
let P = "kg-table";
|
12859
|
-
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (P += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (P += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (P += " kg-table--submitting"), P;
|
12860
12876
|
}), N = computed(() => {
|
12861
|
-
var
|
12862
|
-
let
|
12863
|
-
return ((
|
12864
|
-
}),
|
12877
|
+
var G;
|
12878
|
+
let L = "kg-table";
|
12879
|
+
return ((G = o.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (L += " kg-table--submitting"), L;
|
12880
|
+
}), P = computed(() => {
|
12881
|
+
var G;
|
12882
|
+
let L = "kg-table-bottom";
|
12883
|
+
return ((G = o.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
|
12884
|
+
}), H = computed(() => u.store.getDatas(o.formID)), V = (fe = u.store.getSelectedRowKeys(o.formID)) != null ? fe : ref([]), O = reactive({
|
12865
12885
|
pageIndex: 1,
|
12866
12886
|
pageSize: 10,
|
12867
12887
|
total: 0
|
12868
|
-
}),
|
12888
|
+
}), D = reactive({
|
12869
12889
|
column: void 0,
|
12870
12890
|
order: void 0
|
12871
|
-
}),
|
12872
|
-
|
12891
|
+
}), U = watch(u.pageSizeOption, (L) => {
|
12892
|
+
L && (setTimeout(() => U()), O.pageSize = L, g.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${g.value}`));
|
12873
12893
|
}, {
|
12874
12894
|
immediate: !0
|
12875
12895
|
});
|
12876
|
-
watch(u.pageSizeOptions, (
|
12877
|
-
|
12878
|
-
}), watch([C, u.isReadAutomatically, l.isReady], ([
|
12879
|
-
|
12896
|
+
watch(u.pageSizeOptions, (L) => {
|
12897
|
+
L.length > 0 && !L.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
12898
|
+
}), watch([C, u.isReadAutomatically, l.isReady], ([L, G, Y]) => {
|
12899
|
+
L && G && Y && !u.store.getIsRetrieved(o.formID) && W(!0);
|
12880
12900
|
}, {
|
12881
12901
|
immediate: !0
|
12882
|
-
}), watch(o.isCreating, (
|
12883
|
-
|
12902
|
+
}), watch(o.isCreating, (L, G) => {
|
12903
|
+
L === !0 ? F() : L === !1 && G === !0 && K();
|
12884
12904
|
}), onUnmounted(() => {
|
12885
12905
|
u.store.dispose(o.formID);
|
12886
12906
|
});
|
12887
|
-
function
|
12907
|
+
function F() {
|
12888
12908
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
12889
|
-
const
|
12909
|
+
const L = {
|
12890
12910
|
[u.id.value]: KG_TABLE_TEMP_ID
|
12891
12911
|
};
|
12892
|
-
u.store.setDatas(o.formID, [
|
12912
|
+
u.store.setDatas(o.formID, [L, ...H.value]), u.store.setSelectedRows(o.formID, [L]);
|
12893
12913
|
}
|
12894
12914
|
}
|
12895
|
-
function
|
12896
|
-
const
|
12897
|
-
|
12915
|
+
function K() {
|
12916
|
+
const L = H.value.find((G) => G[u.id.value] === KG_TABLE_TEMP_ID);
|
12917
|
+
L && (u.store.setDatas(o.formID, without$1(H.value, L)), u.store.setSelectedRows(o.formID, []));
|
12898
12918
|
}
|
12899
|
-
function
|
12900
|
-
var
|
12901
|
-
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
12902
|
-
if (!
|
12919
|
+
function B(L, G) {
|
12920
|
+
var Y;
|
12921
|
+
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!M.value) {
|
12922
|
+
if (!G) {
|
12903
12923
|
u.store.setSelectedRows(o.formID, []);
|
12904
12924
|
return;
|
12905
12925
|
}
|
12906
|
-
switch (
|
12926
|
+
switch (L == null ? void 0 : L.detail) {
|
12907
12927
|
case 1:
|
12908
|
-
switch ((
|
12928
|
+
switch ((Y = o.varGridConfig.value) == null ? void 0 : Y.operation_on_row_click) {
|
12909
12929
|
case 0:
|
12910
12930
|
break;
|
12911
12931
|
case 1:
|
12912
|
-
u.store.setSelectedRows(o.formID, [
|
12932
|
+
u.store.setSelectedRows(o.formID, [G]);
|
12913
12933
|
break;
|
12914
12934
|
}
|
12915
12935
|
break;
|
12916
12936
|
case 2:
|
12917
12937
|
u.store.emit(o.formID, "rowDoubleClick", {
|
12918
|
-
row:
|
12938
|
+
row: G
|
12919
12939
|
});
|
12920
12940
|
break;
|
12921
12941
|
}
|
12922
12942
|
}
|
12923
12943
|
}
|
12924
|
-
function
|
12944
|
+
function W(L = !1) {
|
12925
12945
|
KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
12926
|
-
const
|
12927
|
-
|
12946
|
+
const G = watch(g, (R) => {
|
12947
|
+
R && (setTimeout(() => G()), Y());
|
12928
12948
|
}, {
|
12929
12949
|
immediate: !0
|
12930
12950
|
});
|
12931
|
-
async function
|
12932
|
-
var
|
12951
|
+
async function Y() {
|
12952
|
+
var R, x, z;
|
12933
12953
|
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !C.value) {
|
12934
12954
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12935
12955
|
VarButton: o.varButtonSearch.value
|
12936
12956
|
});
|
12937
12957
|
return;
|
12938
12958
|
}
|
12939
|
-
|
12959
|
+
L && (O.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
12940
12960
|
try {
|
12941
|
-
const
|
12961
|
+
const J = KgUtil.parseParams(E.value, u.profileFormID.value, a), Q = ref({});
|
12942
12962
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
12943
|
-
params:
|
12944
|
-
response:
|
12945
|
-
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (
|
12963
|
+
params: J,
|
12964
|
+
response: Q
|
12965
|
+
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (Q.value = await httpClient().request({
|
12946
12966
|
method: "GET",
|
12947
12967
|
url: C.value,
|
12948
|
-
params:
|
12968
|
+
params: J
|
12949
12969
|
}, {
|
12950
12970
|
successMessageMode: "none"
|
12951
12971
|
}), KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
|
12952
|
-
let
|
12972
|
+
let re = ref([]), ae = ref(0);
|
12953
12973
|
switch (!0) {
|
12954
|
-
case !
|
12955
|
-
|
12974
|
+
case !Q.value:
|
12975
|
+
re.value = [], ae.value = 0;
|
12956
12976
|
break;
|
12957
|
-
case isArrayLike(
|
12958
|
-
|
12977
|
+
case isArrayLike(Q.value):
|
12978
|
+
re.value = Q.value, ae.value = Q.value.length;
|
12959
12979
|
break;
|
12960
|
-
case ("total" in
|
12961
|
-
|
12980
|
+
case ("total" in Q.value && "records" in Q.value):
|
12981
|
+
re.value = (R = Q.value.records) != null ? R : [], ae.value = (x = Q.value.total) != null ? x : 0;
|
12962
12982
|
break;
|
12963
12983
|
}
|
12964
12984
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
12965
|
-
datas:
|
12985
|
+
datas: re,
|
12966
12986
|
total: ae,
|
12967
|
-
setDatas(
|
12968
|
-
u.store.setDatas(o.formID,
|
12987
|
+
setDatas(ee) {
|
12988
|
+
u.store.setDatas(o.formID, ee);
|
12969
12989
|
}
|
12970
|
-
}), u.store.setDatas(o.formID,
|
12971
|
-
page:
|
12972
|
-
datas:
|
12973
|
-
setDatas(
|
12974
|
-
u.store.setDatas(o.formID,
|
12990
|
+
}), u.store.setDatas(o.formID, re.value), O.total = ae.value, B(), v.value = [], await nextTick(), ((z = o.varGridConfig.value) == null ? void 0 : z.check_first_row_after_retrieve) === 1 && re.value.length > 0 && u.store.setSelectedRows(o.formID, [re.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
12991
|
+
page: Q.value,
|
12992
|
+
datas: re,
|
12993
|
+
setDatas(ee) {
|
12994
|
+
u.store.setDatas(o.formID, ee);
|
12975
12995
|
}
|
12976
12996
|
}), u.store.setIsRetrieved(o.formID, !0);
|
12977
|
-
} catch (
|
12978
|
-
throw
|
12997
|
+
} catch (J) {
|
12998
|
+
throw J;
|
12979
12999
|
} finally {
|
12980
13000
|
u.store.setIsRetrieving(o.formID, !1);
|
12981
13001
|
}
|
12982
13002
|
}
|
12983
13003
|
}
|
12984
|
-
function
|
12985
|
-
u.store.setSelectedRows(o.formID,
|
12986
|
-
var
|
12987
|
-
return (
|
12988
|
-
}).filter((
|
13004
|
+
function X(L) {
|
13005
|
+
u.store.setSelectedRows(o.formID, L.map((G) => {
|
13006
|
+
var Y;
|
13007
|
+
return (Y = H.value) == null ? void 0 : Y.find((R) => R[u.id.value] === G);
|
13008
|
+
}).filter((G) => !!G));
|
12989
13009
|
}
|
12990
|
-
function
|
12991
|
-
var
|
13010
|
+
function q(L) {
|
13011
|
+
var G, Y;
|
12992
13012
|
switch (u.isMultiSelect.value) {
|
12993
13013
|
case !0:
|
12994
13014
|
{
|
12995
|
-
const
|
12996
|
-
|
13015
|
+
const R = L[u.id.value];
|
13016
|
+
V.value.includes(R) ? V.value = without$1(V.value, R) : V.value = [...(G = V.value) != null ? G : [], R];
|
12997
13017
|
}
|
12998
13018
|
break;
|
12999
13019
|
case !1:
|
13000
13020
|
{
|
13001
|
-
const
|
13002
|
-
(
|
13021
|
+
const R = L[u.id.value];
|
13022
|
+
(Y = V.value) != null && Y.includes(R) ? V.value = [] : V.value = [R];
|
13003
13023
|
}
|
13004
13024
|
break;
|
13005
13025
|
}
|
13006
|
-
u.store.setSelectedRows(o.formID,
|
13007
|
-
var
|
13008
|
-
return (
|
13009
|
-
}).filter((
|
13026
|
+
u.store.setSelectedRows(o.formID, V.value.map((R) => {
|
13027
|
+
var x;
|
13028
|
+
return (x = H.value) == null ? void 0 : x.find((z) => z[u.id.value] === R);
|
13029
|
+
}).filter((R) => !!R));
|
13010
13030
|
}
|
13011
|
-
function
|
13012
|
-
|
13031
|
+
function Z(L, G) {
|
13032
|
+
G.width = L, o.store.setVarGridDetailWidth(o.formID, G.dataIndex, L);
|
13013
13033
|
}
|
13014
|
-
async function
|
13015
|
-
var
|
13016
|
-
switch (
|
13034
|
+
async function te(L, G, Y, R) {
|
13035
|
+
var x;
|
13036
|
+
switch (R.action) {
|
13017
13037
|
case "sort":
|
13018
13038
|
{
|
13019
13039
|
await nextTick();
|
13020
|
-
let
|
13021
|
-
|
13040
|
+
let z = Y;
|
13041
|
+
z.order ? (D.column = (x = z.field) != null ? x : void 0, D.order = z.order === "ascend" ? "asc" : z.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), W(!0);
|
13022
13042
|
}
|
13023
13043
|
break;
|
13024
13044
|
}
|
13025
13045
|
}
|
13026
|
-
function
|
13027
|
-
var
|
13028
|
-
const
|
13029
|
-
switch ((
|
13046
|
+
function se(L, G) {
|
13047
|
+
var R;
|
13048
|
+
const Y = G[u.id.value];
|
13049
|
+
switch ((R = o.varGridConfig.value) == null ? void 0 : R.expand_accordion_flg) {
|
13030
13050
|
case 0:
|
13031
|
-
|
13051
|
+
L ? v.value = uniq([...v.value, Y]) : v.value = without$1(v.value, Y);
|
13032
13052
|
break;
|
13033
13053
|
default:
|
13034
|
-
|
13054
|
+
L ? v.value = [Y] : v.value = [];
|
13035
13055
|
break;
|
13036
13056
|
}
|
13037
13057
|
}
|
13038
|
-
function oe(
|
13039
|
-
|
13058
|
+
function oe(L, G) {
|
13059
|
+
G !== O.pageSize ? (O.pageIndex = 1, O.pageSize = G) : O.pageIndex = L, W();
|
13040
13060
|
}
|
13041
|
-
function
|
13042
|
-
u.store.setSelectedRows(o.formID, [
|
13043
|
-
var
|
13044
|
-
return (
|
13045
|
-
}).filter((
|
13061
|
+
function ge(L) {
|
13062
|
+
u.store.setSelectedRows(o.formID, [L].map((G) => {
|
13063
|
+
var Y;
|
13064
|
+
return (Y = H.value) == null ? void 0 : Y.find((R) => R[u.id.value] === G[u.id.value]);
|
13065
|
+
}).filter((G) => !!G)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
13046
13066
|
}
|
13047
|
-
function
|
13048
|
-
title:
|
13049
|
-
column:
|
13067
|
+
function ue({
|
13068
|
+
title: L,
|
13069
|
+
column: G
|
13050
13070
|
}) {
|
13051
|
-
switch (
|
13071
|
+
switch (G.dataIndex) {
|
13052
13072
|
case "index":
|
13053
13073
|
return createVNode(KgTableSetting, {
|
13054
13074
|
kgDisabled: k.value
|
13055
13075
|
}, null);
|
13056
13076
|
default:
|
13057
13077
|
return createVNode("pre", {
|
13058
|
-
title:
|
13059
|
-
}, [
|
13078
|
+
title: L
|
13079
|
+
}, [L]);
|
13060
13080
|
}
|
13061
13081
|
}
|
13062
|
-
function
|
13063
|
-
var
|
13064
|
-
return (
|
13082
|
+
function ne() {
|
13083
|
+
var L;
|
13084
|
+
return (L = n == null ? void 0 : n.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
|
13065
13085
|
fixed: "bottom"
|
13066
13086
|
}, {
|
13067
13087
|
default: () => [createVNode(TableSummary.Row, null, {
|
13068
|
-
default: () => [
|
13088
|
+
default: () => [I.value && createVNode(TableSummary.Cell, {
|
13069
13089
|
index: 0
|
13070
|
-
}, null),
|
13071
|
-
index:
|
13072
|
-
}, null), y.value.map((
|
13073
|
-
const
|
13074
|
-
let
|
13075
|
-
return
|
13076
|
-
index:
|
13090
|
+
}, null), w.value && createVNode(TableSummary.Cell, {
|
13091
|
+
index: I.value ? 1 : 0
|
13092
|
+
}, null), y.value.map((G, Y) => {
|
13093
|
+
const R = o.store.getVarGridDetail(o.formID, G.dataIndex);
|
13094
|
+
let x = Y;
|
13095
|
+
return I.value && w.value ? x += 2 : (I.value || w.value) && (x += 1), createVNode(TableSummary.Cell, {
|
13096
|
+
index: x
|
13077
13097
|
}, {
|
13078
13098
|
default: () => {
|
13079
|
-
var
|
13080
|
-
return [(
|
13081
|
-
column:
|
13082
|
-
index:
|
13083
|
-
varGridDetail:
|
13099
|
+
var z, J;
|
13100
|
+
return [(J = (z = n == null ? void 0 : n.KgTable) == null ? void 0 : z["summary.bodyCell"]) == null ? void 0 : J.call(z, {
|
13101
|
+
column: G,
|
13102
|
+
index: x,
|
13103
|
+
varGridDetail: R
|
13084
13104
|
})];
|
13085
13105
|
}
|
13086
13106
|
});
|
@@ -13088,51 +13108,51 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13088
13108
|
})]
|
13089
13109
|
}) : null;
|
13090
13110
|
}
|
13091
|
-
function
|
13092
|
-
column:
|
13093
|
-
index:
|
13094
|
-
record:
|
13095
|
-
text:
|
13096
|
-
value:
|
13111
|
+
function le({
|
13112
|
+
column: L,
|
13113
|
+
index: G,
|
13114
|
+
record: Y,
|
13115
|
+
text: R,
|
13116
|
+
value: x
|
13097
13117
|
}) {
|
13098
|
-
var
|
13099
|
-
let
|
13100
|
-
|
13101
|
-
index:
|
13102
|
-
record:
|
13103
|
-
column:
|
13104
|
-
text:
|
13105
|
-
value:
|
13106
|
-
renderIndex:
|
13107
|
-
}) :
|
13108
|
-
const
|
13109
|
-
kgRow:
|
13110
|
-
kgValue:
|
13111
|
-
kgVarName:
|
13112
|
-
onKgUpdateLinkClick: () =>
|
13118
|
+
var Q;
|
13119
|
+
let z = "";
|
13120
|
+
L.customRender ? z = L.customRender({
|
13121
|
+
index: G,
|
13122
|
+
record: Y,
|
13123
|
+
column: L,
|
13124
|
+
text: R,
|
13125
|
+
value: x,
|
13126
|
+
renderIndex: G
|
13127
|
+
}) : z = x;
|
13128
|
+
const J = createVNode(KgTableCell, {
|
13129
|
+
kgRow: Y,
|
13130
|
+
kgValue: z,
|
13131
|
+
kgVarName: L.dataIndex,
|
13132
|
+
onKgUpdateLinkClick: () => ge(Y)
|
13113
13133
|
}, null);
|
13114
|
-
if ((
|
13115
|
-
const
|
13134
|
+
if ((Q = n == null ? void 0 : n.KgTable) != null && Q.bodyCell) {
|
13135
|
+
const re = L.dataIndex ? o.store.getVarGridDetail(o.formID, L.dataIndex) : null;
|
13116
13136
|
return n.KgTable.bodyCell({
|
13117
|
-
column:
|
13118
|
-
index:
|
13119
|
-
record:
|
13120
|
-
text:
|
13121
|
-
value:
|
13122
|
-
row:
|
13123
|
-
varGridDetail:
|
13124
|
-
defaultRender:
|
13137
|
+
column: L,
|
13138
|
+
index: G,
|
13139
|
+
record: Y,
|
13140
|
+
text: R,
|
13141
|
+
value: x,
|
13142
|
+
row: Y,
|
13143
|
+
varGridDetail: re,
|
13144
|
+
defaultRender: J
|
13125
13145
|
});
|
13126
13146
|
} else
|
13127
|
-
return
|
13147
|
+
return J;
|
13128
13148
|
}
|
13129
|
-
function
|
13149
|
+
function ce() {
|
13130
13150
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? i.t("kg.KgTable.emptyText") : i.t("kg.emptyText");
|
13131
13151
|
}
|
13132
13152
|
return () => {
|
13133
|
-
var
|
13153
|
+
var L, G, Y;
|
13134
13154
|
return createVNode("div", {
|
13135
|
-
class:
|
13155
|
+
class: N.value,
|
13136
13156
|
"kg-frm_id": o.formID,
|
13137
13157
|
ref: b
|
13138
13158
|
}, [createVNode(Table, {
|
@@ -13145,56 +13165,56 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13145
13165
|
pagination: !1,
|
13146
13166
|
showSorterTooltip: !1,
|
13147
13167
|
columns: y.value,
|
13148
|
-
dataSource:
|
13168
|
+
dataSource: H.value,
|
13149
13169
|
loading: _.value,
|
13150
13170
|
rowKey: u.id.value,
|
13151
|
-
rowClassName: (
|
13171
|
+
rowClassName: (G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgRowClassName,
|
13152
13172
|
expandColumnWidth: 28,
|
13153
13173
|
expandedRowKeys: v.value,
|
13154
|
-
rowSelection:
|
13155
|
-
customRow: (
|
13156
|
-
onClick: (
|
13174
|
+
rowSelection: M.value,
|
13175
|
+
customRow: (R) => ({
|
13176
|
+
onClick: (x) => B(x, R)
|
13157
13177
|
}),
|
13158
|
-
onResizeColumn:
|
13159
|
-
onChange:
|
13160
|
-
onExpand:
|
13178
|
+
onResizeColumn: Z,
|
13179
|
+
onChange: te,
|
13180
|
+
onExpand: se
|
13161
13181
|
}, {
|
13162
|
-
headerCell:
|
13163
|
-
bodyCell:
|
13164
|
-
emptyText:
|
13165
|
-
expandedRowRender: (
|
13166
|
-
summary:
|
13182
|
+
headerCell: ue,
|
13183
|
+
bodyCell: le,
|
13184
|
+
emptyText: ce,
|
13185
|
+
expandedRowRender: (Y = n == null ? void 0 : n.KgTable) == null ? void 0 : Y.expandedRowRender,
|
13186
|
+
summary: ne
|
13167
13187
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
13168
|
-
class:
|
13188
|
+
class: P.value
|
13169
13189
|
}, [createVNode("div", {
|
13170
13190
|
class: "left"
|
13171
13191
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
13172
|
-
kgShowClearCheck:
|
13173
|
-
kgShowClearTable:
|
13174
|
-
kgShowLocate:
|
13175
|
-
kgTotal:
|
13176
|
-
kgDisabled:
|
13192
|
+
kgShowClearCheck: V.value.length > 0,
|
13193
|
+
kgShowClearTable: O.total > 0,
|
13194
|
+
kgShowLocate: V.value.length === 1,
|
13195
|
+
kgTotal: V.value.length,
|
13196
|
+
kgDisabled: T.value
|
13177
13197
|
}, null)]), createVNode("div", {
|
13178
13198
|
class: "right"
|
13179
13199
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
13180
13200
|
size: "default",
|
13181
|
-
current:
|
13182
|
-
pageSize:
|
13183
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
13184
|
-
total:
|
13201
|
+
current: O.pageIndex,
|
13202
|
+
pageSize: O.pageSize,
|
13203
|
+
pageSizeOptions: u.pageSizeOptions.value.map((R) => String(R)),
|
13204
|
+
total: O.total,
|
13185
13205
|
showSizeChanger: !0,
|
13186
13206
|
showQuickJumper: !1,
|
13187
13207
|
hideOnSinglePage: !1,
|
13188
|
-
disabled:
|
13208
|
+
disabled: $.value,
|
13189
13209
|
locale: {
|
13190
13210
|
page: ""
|
13191
13211
|
},
|
13192
|
-
showTotal: (
|
13193
|
-
from:
|
13194
|
-
to:
|
13195
|
-
total:
|
13212
|
+
showTotal: (R, x) => i.t("kg.KgTable.totalText", {
|
13213
|
+
from: x[0],
|
13214
|
+
to: x[1],
|
13215
|
+
total: R
|
13196
13216
|
}),
|
13197
|
-
onChange: (
|
13217
|
+
onChange: (R, x) => oe(R, x)
|
13198
13218
|
}, null)])])]);
|
13199
13219
|
};
|
13200
13220
|
}
|
@@ -13414,8 +13434,8 @@ const KgButtonCreate = defineComponent({
|
|
13414
13434
|
attrs: a
|
13415
13435
|
}) {
|
13416
13436
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13417
|
-
var E, k, A, T,
|
13418
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (
|
13437
|
+
var E, k, A, T, $, I, w, M;
|
13438
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = ($ = o.selectedRows.value) == null ? void 0 : $.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13419
13439
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
13420
13440
|
async function g() {
|
13421
13441
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -13614,8 +13634,8 @@ const KgButtonCreate = defineComponent({
|
|
13614
13634
|
...KgVarUtil.parseCommandParameter((E = (C = o.value) == null ? void 0 : C.cmd_prm) != null ? E : "")
|
13615
13635
|
}), _;
|
13616
13636
|
}), d = computed(() => {
|
13617
|
-
var _, b, C, E, k, A, T,
|
13618
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((C = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) === 0 || ((E = o.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !a.p((
|
13637
|
+
var _, b, C, E, k, A, T, $;
|
13638
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((C = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) === 0 || ((E = o.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !a.p(($ = o.value) == null ? void 0 : $.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13619
13639
|
}), g = ref(!1);
|
13620
13640
|
async function v(_) {
|
13621
13641
|
if (!l.value)
|
@@ -13779,7 +13799,7 @@ const KgButtonCreate = defineComponent({
|
|
13779
13799
|
}
|
13780
13800
|
let g = null;
|
13781
13801
|
const v = async () => {
|
13782
|
-
var C, E, k, A, T,
|
13802
|
+
var C, E, k, A, T, $;
|
13783
13803
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
13784
13804
|
const b = s.selectedRows.value;
|
13785
13805
|
try {
|
@@ -13790,11 +13810,11 @@ const KgButtonCreate = defineComponent({
|
|
13790
13810
|
data: b != null ? b : []
|
13791
13811
|
});
|
13792
13812
|
if (((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1) {
|
13793
|
-
if (((
|
13813
|
+
if ((($ = e.kgButton) == null ? void 0 : $.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
13794
13814
|
datas: M
|
13795
13815
|
}) => {
|
13796
|
-
const N = M.value,
|
13797
|
-
return
|
13816
|
+
const N = M.value, P = intersectionWith$1(N, b != null ? b : [], (H, V) => (H == null ? void 0 : H[s.id.value]) === (V == null ? void 0 : V[s.id.value]));
|
13817
|
+
return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
|
13798
13818
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
13799
13819
|
button: e.kgButton,
|
13800
13820
|
data: I
|
@@ -13907,8 +13927,8 @@ const KgButtonCreate = defineComponent({
|
|
13907
13927
|
}
|
13908
13928
|
});
|
13909
13929
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13910
|
-
var E, k, A, T,
|
13911
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (
|
13930
|
+
var E, k, A, T, $, I, w, M;
|
13931
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = ($ = i.selectedRows.value) == null ? void 0 : $.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13912
13932
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
13913
13933
|
async function g() {
|
13914
13934
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -14620,7 +14640,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14620
14640
|
row: C,
|
14621
14641
|
model: E
|
14622
14642
|
}) => {
|
14623
|
-
var A, T,
|
14643
|
+
var A, T, $;
|
14624
14644
|
const k = i.store.getSystemVarProfileDetails(i.formID);
|
14625
14645
|
switch (o.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
14626
14646
|
case p:
|
@@ -14637,8 +14657,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14637
14657
|
}
|
14638
14658
|
});
|
14639
14659
|
o.value = o.value.map((M) => {
|
14640
|
-
var
|
14641
|
-
const N = (
|
14660
|
+
var P;
|
14661
|
+
const N = (P = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : P.find((H) => H.var_nam === M.var_nam);
|
14642
14662
|
return N ? {
|
14643
14663
|
...M,
|
14644
14664
|
...N,
|
@@ -14658,7 +14678,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14658
14678
|
}
|
14659
14679
|
switch (!0) {
|
14660
14680
|
case b:
|
14661
|
-
E.value.prf_var_nam = ((
|
14681
|
+
E.value.prf_var_nam = (($ = E.value.prf_var_nam) != null ? $ : "") + "_COPY";
|
14662
14682
|
break;
|
14663
14683
|
}
|
14664
14684
|
return !1;
|
@@ -14714,9 +14734,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14714
14734
|
onItemSelectAll: E,
|
14715
14735
|
onItemSelect: k
|
14716
14736
|
}) => {
|
14717
|
-
const A = _.sort((T,
|
14737
|
+
const A = _.sort((T, $) => {
|
14718
14738
|
var I, w;
|
14719
|
-
return ((I = T.srtseq) != null ? I : 0) - ((w =
|
14739
|
+
return ((I = T.srtseq) != null ? I : 0) - ((w = $.srtseq) != null ? w : 0);
|
14720
14740
|
});
|
14721
14741
|
return c.value = A, createVNode(Table, {
|
14722
14742
|
pagination: !1,
|
@@ -14730,10 +14750,10 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14730
14750
|
rowKey: "id",
|
14731
14751
|
dataSource: A,
|
14732
14752
|
customRow: (T) => {
|
14733
|
-
let
|
14753
|
+
let $ = {
|
14734
14754
|
onClick: (I) => y(I, T, p, b)
|
14735
14755
|
};
|
14736
|
-
return p === "right" && (
|
14756
|
+
return p === "right" && ($["kg-host-frm_id"] = i.formID, $["kg-var_nam"] = T.var_nam), $;
|
14737
14757
|
},
|
14738
14758
|
rowSelection: g({
|
14739
14759
|
disabled: C,
|
@@ -14977,21 +14997,21 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14977
14997
|
});
|
14978
14998
|
_useLayoutHeaderResizeObserver();
|
14979
14999
|
const p = _useFormModel(v, y), _ = computed(() => {
|
14980
|
-
var K,
|
14981
|
-
if (!isNil((
|
14982
|
-
return (
|
15000
|
+
var K, B, W, X;
|
15001
|
+
if (!isNil((B = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : B.kgDisabled))
|
15002
|
+
return (X = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : X.kgDisabled;
|
14983
15003
|
if (!isNil(e.kgDisabled))
|
14984
15004
|
return e.kgDisabled;
|
14985
15005
|
}), b = computed(() => {
|
14986
|
-
var K,
|
14987
|
-
return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((
|
15006
|
+
var K, B;
|
15007
|
+
return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
14988
15008
|
}), C = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), E = computed(() => !!(_.value || i.isRetrieving.value)), k = ref({
|
14989
15009
|
visible: !1
|
14990
15010
|
}), A = computed(() => y.value.kgHeight === g.value), T = computed(() => {
|
14991
|
-
var K,
|
14992
|
-
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((
|
14993
|
-
return n.t((
|
14994
|
-
}),
|
15011
|
+
var K, B, W;
|
15012
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
|
15013
|
+
return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
|
15014
|
+
}), $ = computed(() => {
|
14995
15015
|
var K;
|
14996
15016
|
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
14997
15017
|
case 1:
|
@@ -15017,16 +15037,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15017
15037
|
await s.store.emit(n.formID, "search", {
|
15018
15038
|
resetPageIndex: K
|
15019
15039
|
});
|
15020
|
-
}).catch((
|
15040
|
+
}).catch((B) => {
|
15021
15041
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
15022
|
-
e:
|
15042
|
+
e: B
|
15023
15043
|
});
|
15024
15044
|
}) : await s.store.emit(n.formID, "search", {
|
15025
15045
|
resetPageIndex: K
|
15026
15046
|
});
|
15027
15047
|
}
|
15028
15048
|
s.store.setSearchFn(n.formID, N);
|
15029
|
-
async function
|
15049
|
+
async function P() {
|
15030
15050
|
p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
15031
15051
|
await s.store.emit(n.formID, "reset", {});
|
15032
15052
|
}).catch((K) => {
|
@@ -15035,26 +15055,26 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15035
15055
|
});
|
15036
15056
|
}) : await s.store.emit(n.formID, "reset", {});
|
15037
15057
|
}
|
15038
|
-
s.store.setResetFn(n.formID,
|
15039
|
-
function
|
15058
|
+
s.store.setResetFn(n.formID, P);
|
15059
|
+
function H() {
|
15040
15060
|
return N(!0), Promise.resolve(!0);
|
15041
15061
|
}
|
15042
|
-
function
|
15062
|
+
function V() {
|
15043
15063
|
var K;
|
15044
15064
|
return createVNode("div", {
|
15045
15065
|
class: "title",
|
15046
15066
|
onClick: F
|
15047
15067
|
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
15048
15068
|
class: "kg-search-title-left",
|
15049
|
-
onClick: (
|
15050
|
-
|
15069
|
+
onClick: (B) => {
|
15070
|
+
B.stopPropagation(), B.preventDefault();
|
15051
15071
|
}
|
15052
15072
|
}, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
15053
15073
|
}
|
15054
|
-
function
|
15055
|
-
var K,
|
15056
|
-
return ((
|
15057
|
-
value: (
|
15074
|
+
function O() {
|
15075
|
+
var K, B, W, X;
|
15076
|
+
return ((W = (B = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : B.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
15077
|
+
value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
|
15058
15078
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
15059
15079
|
disabled: C.value,
|
15060
15080
|
class: "kg-search-profile-master-select"
|
@@ -15084,25 +15104,25 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15084
15104
|
hostFormID: n.formID
|
15085
15105
|
}, null)]);
|
15086
15106
|
}
|
15087
|
-
function
|
15088
|
-
var K,
|
15089
|
-
return createVNode(Fragment, null, [
|
15107
|
+
function D() {
|
15108
|
+
var K, B, W, X, q;
|
15109
|
+
return createVNode(Fragment, null, [O(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
15090
15110
|
type: "primary",
|
15091
15111
|
ghost: !b.value,
|
15092
15112
|
disabled: b.value,
|
15093
|
-
onClick:
|
15113
|
+
onClick: P,
|
15094
15114
|
class: "kg-search-btn-reset"
|
15095
15115
|
}, {
|
15096
15116
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
15097
15117
|
}), createVNode(KgButton.Item, {
|
15098
15118
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
15099
|
-
kgVarName: (
|
15100
|
-
kgIcon: (
|
15119
|
+
kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
|
15120
|
+
kgIcon: (X = n.varButtonSearch.value) == null ? void 0 : X.icon,
|
15101
15121
|
kgText: T.value,
|
15102
15122
|
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
15103
|
-
kgPrimary:
|
15123
|
+
kgPrimary: $.value,
|
15104
15124
|
kgLoading: E.value,
|
15105
|
-
onKgClick:
|
15125
|
+
onKgClick: H
|
15106
15126
|
}, null)]);
|
15107
15127
|
}
|
15108
15128
|
function U() {
|
@@ -15119,10 +15139,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15119
15139
|
gutter: 6
|
15120
15140
|
}, {
|
15121
15141
|
default: () => {
|
15122
|
-
var
|
15123
|
-
return [(
|
15124
|
-
key:
|
15125
|
-
kgVarName:
|
15142
|
+
var B;
|
15143
|
+
return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((W) => createVNode(KgForm.Item, {
|
15144
|
+
key: W.var_nam,
|
15145
|
+
kgVarName: W.var_nam,
|
15126
15146
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
15127
15147
|
onKgSubmit: () => N(!0)
|
15128
15148
|
}, null))];
|
@@ -15157,9 +15177,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15157
15177
|
}, [createVNode(Spin, {
|
15158
15178
|
spinning: I.value
|
15159
15179
|
}, {
|
15160
|
-
default: () => [
|
15180
|
+
default: () => [V(), createVNode("div", {
|
15161
15181
|
class: "ant-collapse-extra"
|
15162
|
-
}, [
|
15182
|
+
}, [D()])]
|
15163
15183
|
})])]
|
15164
15184
|
}), createVNode("div", {
|
15165
15185
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -15636,112 +15656,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15636
15656
|
columnWidth: 32,
|
15637
15657
|
hideSelectAll: !0,
|
15638
15658
|
selectedRowKeys: d,
|
15639
|
-
onSelect: (
|
15659
|
+
onSelect: (P) => $(P)
|
15640
15660
|
}), v = ref({
|
15641
15661
|
visible: !1
|
15642
15662
|
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), p = computed(() => {
|
15643
|
-
var
|
15644
|
-
return !!u.value || ((
|
15663
|
+
var P;
|
15664
|
+
return !!u.value || ((P = a.getSelectedVarCatalog) == null ? void 0 : P.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
15645
15665
|
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), b = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
15646
|
-
watch(() => a.getSelectedVar, (
|
15647
|
-
|
15666
|
+
watch(() => a.getSelectedVar, (P) => {
|
15667
|
+
P ? C() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
15648
15668
|
}, {
|
15649
15669
|
immediate: !0
|
15650
|
-
}), watch(() => a.getSelectedVarCatalog, async (
|
15651
|
-
var
|
15652
|
-
l.value.var_text = (
|
15670
|
+
}), watch(() => a.getSelectedVarCatalog, async (P) => {
|
15671
|
+
var H, V;
|
15672
|
+
l.value.var_text = (H = P == null ? void 0 : P.var_text) != null ? H : "", (V = o.value) == null || V.clearValidate();
|
15653
15673
|
});
|
15654
|
-
async function C(
|
15655
|
-
var
|
15674
|
+
async function C(P = !1) {
|
15675
|
+
var H, V, O;
|
15656
15676
|
n.value = !0;
|
15657
15677
|
try {
|
15658
15678
|
const {
|
15659
|
-
records:
|
15679
|
+
records: D
|
15660
15680
|
} = await List({
|
15661
15681
|
params: {
|
15662
15682
|
pageNo: 1,
|
15663
15683
|
pageSize: 999,
|
15664
15684
|
frm_id: e == null ? void 0 : e.value,
|
15665
|
-
var_nam: (
|
15685
|
+
var_nam: (H = a.getSelectedVar) == null ? void 0 : H.var_nam,
|
15666
15686
|
column: "frm_id,locale_id,cust_lvl",
|
15667
15687
|
order: "asc"
|
15668
15688
|
}
|
15669
15689
|
});
|
15670
|
-
if (u.value = null, c.value =
|
15690
|
+
if (u.value = null, c.value = D != null ? D : [], P) {
|
15671
15691
|
const U = c.value.find((F) => {
|
15672
15692
|
var K;
|
15673
15693
|
return F.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
15674
15694
|
});
|
15675
15695
|
a.setSelectedVarCatalog(U != null ? U : null), d.value = U != null && U.id ? [U.id] : [];
|
15676
15696
|
} else
|
15677
|
-
a.setSelectedVarCatalog((
|
15678
|
-
} catch (
|
15679
|
-
KgLogger.debug(
|
15697
|
+
a.setSelectedVarCatalog((V = c.value[0]) != null ? V : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
|
15698
|
+
} catch (D) {
|
15699
|
+
KgLogger.debug(D == null ? void 0 : D.message);
|
15680
15700
|
} finally {
|
15681
15701
|
n.value = !1;
|
15682
15702
|
}
|
15683
15703
|
}
|
15684
15704
|
async function E() {
|
15685
|
-
var
|
15705
|
+
var P, H, V;
|
15686
15706
|
try {
|
15687
|
-
s.value = !0, await ((
|
15688
|
-
const
|
15689
|
-
...(
|
15690
|
-
var_text: (
|
15707
|
+
s.value = !0, await ((P = o.value) == null ? void 0 : P.validate());
|
15708
|
+
const O = new VarCatalog({
|
15709
|
+
...(H = a.getSelectedVarCatalog) != null ? H : {},
|
15710
|
+
var_text: (V = l.value) == null ? void 0 : V.var_text
|
15691
15711
|
});
|
15692
|
-
|
15693
|
-
data:
|
15712
|
+
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
15713
|
+
data: O
|
15694
15714
|
}, {
|
15695
15715
|
successMessageMode: "none"
|
15696
15716
|
}), message.success({
|
15697
15717
|
content: t.t("kg.KgVarConfig.createSuccess")
|
15698
15718
|
}), await C()) : (await Edit({
|
15699
|
-
data:
|
15719
|
+
data: O
|
15700
15720
|
}, {
|
15701
15721
|
successMessageMode: "none"
|
15702
15722
|
}), message.success({
|
15703
15723
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
15704
15724
|
}), await C(!0)) : (await Add({
|
15705
|
-
data:
|
15725
|
+
data: O
|
15706
15726
|
}, {
|
15707
15727
|
successMessageMode: "none"
|
15708
15728
|
}), message.success({
|
15709
15729
|
content: t.t("kg.KgVarConfig.createSuccess")
|
15710
15730
|
}), await C()), r.retrieve(e == null ? void 0 : e.value);
|
15711
|
-
} catch (
|
15712
|
-
KgUtil.throwIfNotFormError(
|
15731
|
+
} catch (O) {
|
15732
|
+
KgUtil.throwIfNotFormError(O);
|
15713
15733
|
} finally {
|
15714
15734
|
s.value = !1;
|
15715
15735
|
}
|
15716
15736
|
}
|
15717
15737
|
function k({
|
15718
|
-
isAllForm:
|
15719
|
-
isAllLanguage:
|
15738
|
+
isAllForm: P,
|
15739
|
+
isAllLanguage: H
|
15720
15740
|
}) {
|
15721
|
-
var
|
15741
|
+
var V, O, D;
|
15722
15742
|
u.value = new VarCatalog({
|
15723
15743
|
id: "",
|
15724
15744
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
15725
|
-
grp_nam: (
|
15726
|
-
var_nam: (
|
15727
|
-
frm_id:
|
15728
|
-
locale_id:
|
15745
|
+
grp_nam: (V = a.getSelectedVar) == null ? void 0 : V.grp_nam,
|
15746
|
+
var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
|
15747
|
+
frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
15748
|
+
locale_id: H ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
|
15729
15749
|
var_text: ""
|
15730
15750
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
15731
15751
|
}
|
15732
15752
|
function A() {
|
15733
|
-
var
|
15753
|
+
var H;
|
15734
15754
|
c.value = without$1(c.value, u.value), u.value = null;
|
15735
|
-
const
|
15736
|
-
a.setSelectedVarCatalog(
|
15755
|
+
const P = (H = c.value[0]) != null ? H : null;
|
15756
|
+
a.setSelectedVarCatalog(P), d.value = P ? [P.id] : [];
|
15737
15757
|
}
|
15738
15758
|
function T() {
|
15739
15759
|
KgUtil.confirm({
|
15740
15760
|
onOk: async () => {
|
15741
|
-
var
|
15761
|
+
var P;
|
15742
15762
|
await Delete({
|
15743
15763
|
params: {
|
15744
|
-
id: (
|
15764
|
+
id: (P = a.getSelectedVarCatalog) == null ? void 0 : P.id
|
15745
15765
|
}
|
15746
15766
|
}, {
|
15747
15767
|
successMessageMode: "none",
|
@@ -15752,14 +15772,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15752
15772
|
}
|
15753
15773
|
});
|
15754
15774
|
}
|
15755
|
-
function
|
15756
|
-
var
|
15757
|
-
((
|
15775
|
+
function $(P) {
|
15776
|
+
var H;
|
15777
|
+
((H = a.getSelectedVarCatalog) == null ? void 0 : H.id) !== P.id && (unref(u) ? KgUtil.confirm({
|
15758
15778
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
15759
15779
|
onOk: () => {
|
15760
|
-
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(
|
15780
|
+
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(P)), d.value = [P.id];
|
15761
15781
|
}
|
15762
|
-
}) : (a.setSelectedVarCatalog(unref(
|
15782
|
+
}) : (a.setSelectedVarCatalog(unref(P)), d.value = [P.id]));
|
15763
15783
|
}
|
15764
15784
|
function I() {
|
15765
15785
|
v.value.visible = !0;
|
@@ -15784,7 +15804,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15784
15804
|
})]);
|
15785
15805
|
}
|
15786
15806
|
function M() {
|
15787
|
-
let
|
15807
|
+
let P, H;
|
15788
15808
|
return createVNode("div", {
|
15789
15809
|
class: "form"
|
15790
15810
|
}, [createVNode(Form, {
|
@@ -15801,7 +15821,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15801
15821
|
}, {
|
15802
15822
|
default: () => [createVNode(Textarea, {
|
15803
15823
|
value: l.value.var_text,
|
15804
|
-
"onUpdate:value": (
|
15824
|
+
"onUpdate:value": (V) => l.value.var_text = V,
|
15805
15825
|
disabled: !a.getSelectedVarCatalog
|
15806
15826
|
}, null), createVNode("button", {
|
15807
15827
|
hidden: !0
|
@@ -15812,21 +15832,21 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15812
15832
|
}, [createVNode(Button, {
|
15813
15833
|
disabled: _.value,
|
15814
15834
|
onClick: A
|
15815
|
-
}, _isSlot(
|
15816
|
-
default: () => [
|
15835
|
+
}, _isSlot(P = t.t("common.cancelText")) ? P : {
|
15836
|
+
default: () => [P]
|
15817
15837
|
}), createVNode(Button, {
|
15818
15838
|
loading: s.value,
|
15819
15839
|
disabled: b.value,
|
15820
15840
|
onClick: E,
|
15821
15841
|
type: "primary"
|
15822
|
-
}, _isSlot(
|
15823
|
-
default: () => [
|
15842
|
+
}, _isSlot(H = t.t("common.save")) ? H : {
|
15843
|
+
default: () => [H]
|
15824
15844
|
})])]);
|
15825
15845
|
}
|
15826
|
-
function N(
|
15827
|
-
var
|
15828
|
-
let
|
15829
|
-
return
|
15846
|
+
function N(P) {
|
15847
|
+
var V;
|
15848
|
+
let H = "";
|
15849
|
+
return P.id || (H += " ant-table-row-create"), P.id === ((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) && (H += " ant-table-row-selected "), H;
|
15830
15850
|
}
|
15831
15851
|
return () => createVNode("div", {
|
15832
15852
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -15844,12 +15864,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15844
15864
|
loading: n.value,
|
15845
15865
|
rowClassName: N,
|
15846
15866
|
rowSelection: g.value,
|
15847
|
-
customRow: (
|
15848
|
-
onClick: () =>
|
15867
|
+
customRow: (P) => ({
|
15868
|
+
onClick: () => $(P)
|
15849
15869
|
})
|
15850
15870
|
}, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
|
15851
15871
|
visible: v.value.visible,
|
15852
|
-
"onUpdate:visible": (
|
15872
|
+
"onUpdate:visible": (P) => v.value.visible = P,
|
15853
15873
|
onKgOk: k
|
15854
15874
|
}, null)]);
|
15855
15875
|
}
|
@@ -16173,9 +16193,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16173
16193
|
customRender: ({
|
16174
16194
|
record: k
|
16175
16195
|
}) => {
|
16176
|
-
var T,
|
16196
|
+
var T, $, I;
|
16177
16197
|
const A = k;
|
16178
|
-
return createVNode("div", null, [createVNode("div", null, [(T = A.whDsc) != null ? T : " ", createTextVNode(" - "), (
|
16198
|
+
return createVNode("div", null, [createVNode("div", null, [(T = A.whDsc) != null ? T : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
|
16179
16199
|
class: "address"
|
16180
16200
|
}, [(I = A.adrId) != null ? I : " "])]);
|
16181
16201
|
}
|
@@ -16183,8 +16203,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16183
16203
|
var A;
|
16184
16204
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
16185
16205
|
return u.value.filter((T) => {
|
16186
|
-
var
|
16187
|
-
return ((I = (
|
16206
|
+
var $, I, w, M, N, P;
|
16207
|
+
return ((I = ($ = T.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : I.includes(k)) || ((M = (w = T.whId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : M.includes(k)) || ((P = (N = T.adrId) == null ? void 0 : N.toUpperCase()) == null ? void 0 : P.includes(k));
|
16188
16208
|
});
|
16189
16209
|
}), g = computed(() => {
|
16190
16210
|
var k, A;
|