@kengic/vue 0.10.2-beta.0 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kengic-vue.js +1064 -953
- package/dist/src/src/components/KgForm/index.hooks.d.ts +7 -1
- package/dist/src/src/components/KgForm/index.store.d.ts +17 -7
- package/dist/src/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -2
- package/dist/src/src/components/KgSubmit/index.hooks.d.ts +7 -1
- package/dist/src/src/components/KgSubmit/index.store.d.ts +14 -3
- package/dist/src/src/components/KgVar/index.store.d.ts +26 -6
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var _ = (e, t, r) => (
|
1
|
+
var we = Object.defineProperty;
|
2
|
+
var Oe = (e, t, r) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var _ = (e, t, r) => (Oe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, Fragment, isVNode, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, createTextVNode, provide, onMounted, mergeProps, onBeforeUnmount, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
5
5
|
import { Modal, Select, Spin, Tooltip, SelectOption, Button, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Radio, Switch, Textarea, message, Drawer, Tag, Tabs, Dropdown, Menu, Table, Pagination, TableSummary, Upload, ConfigProvider, Transfer, Card, TabPane } from "ant-design-vue";
|
6
6
|
const index$7 = "";
|
@@ -3318,8 +3318,8 @@ function sendQuery(e, t, r, a) {
|
|
3318
3318
|
if (e.random) {
|
3319
3319
|
let k = e.resources.slice(0);
|
3320
3320
|
for (l = []; k.length > 1; ) {
|
3321
|
-
const
|
3322
|
-
l.push(k[
|
3321
|
+
const V = Math.floor(Math.random() * k.length);
|
3322
|
+
l.push(k[V]), k = k.slice(0, V).concat(k.slice(V + 1));
|
3323
3323
|
}
|
3324
3324
|
l = l.concat(k);
|
3325
3325
|
} else
|
@@ -3335,8 +3335,8 @@ function sendQuery(e, t, r, a) {
|
|
3335
3335
|
k.status === "pending" && (k.status = "aborted");
|
3336
3336
|
}), m = [];
|
3337
3337
|
}
|
3338
|
-
function g(k,
|
3339
|
-
|
3338
|
+
function g(k, V) {
|
3339
|
+
V && (v = []), typeof k == "function" && v.push(k);
|
3340
3340
|
}
|
3341
3341
|
function b() {
|
3342
3342
|
return {
|
@@ -3359,8 +3359,8 @@ function sendQuery(e, t, r, a) {
|
|
3359
3359
|
k.status === "pending" && (k.status = "aborted");
|
3360
3360
|
}), m = [];
|
3361
3361
|
}
|
3362
|
-
function T(k,
|
3363
|
-
const I =
|
3362
|
+
function T(k, V, O) {
|
3363
|
+
const I = V !== "success";
|
3364
3364
|
switch (m = m.filter((M) => M !== k), i) {
|
3365
3365
|
case "pending":
|
3366
3366
|
break;
|
@@ -3371,12 +3371,12 @@ function sendQuery(e, t, r, a) {
|
|
3371
3371
|
default:
|
3372
3372
|
return;
|
3373
3373
|
}
|
3374
|
-
if (
|
3375
|
-
u =
|
3374
|
+
if (V === "abort") {
|
3375
|
+
u = O, E();
|
3376
3376
|
return;
|
3377
3377
|
}
|
3378
3378
|
if (I) {
|
3379
|
-
u =
|
3379
|
+
u = O, m.length || (l.length ? A() : E());
|
3380
3380
|
return;
|
3381
3381
|
}
|
3382
3382
|
if (y(), C(), !e.random) {
|
@@ -3384,7 +3384,7 @@ function sendQuery(e, t, r, a) {
|
|
3384
3384
|
M !== -1 && M !== e.index && (e.index = M);
|
3385
3385
|
}
|
3386
3386
|
i = "completed", v.forEach((M) => {
|
3387
|
-
M(
|
3387
|
+
M(O);
|
3388
3388
|
});
|
3389
3389
|
}
|
3390
3390
|
function A() {
|
@@ -3402,14 +3402,14 @@ function sendQuery(e, t, r, a) {
|
|
3402
3402
|
E();
|
3403
3403
|
return;
|
3404
3404
|
}
|
3405
|
-
const
|
3405
|
+
const V = {
|
3406
3406
|
status: "pending",
|
3407
3407
|
resource: k,
|
3408
|
-
callback: (
|
3409
|
-
T(
|
3408
|
+
callback: (O, I) => {
|
3409
|
+
T(V, O, I);
|
3410
3410
|
}
|
3411
3411
|
};
|
3412
|
-
m.push(
|
3412
|
+
m.push(V), c++, d = setTimeout(A, e.rotate), r(k, t, V.callback);
|
3413
3413
|
}
|
3414
3414
|
return setTimeout(A), b;
|
3415
3415
|
}
|
@@ -3929,7 +3929,7 @@ const emptyIcon = {
|
|
3929
3929
|
...t.data
|
3930
3930
|
}, r);
|
3931
3931
|
}
|
3932
|
-
}), name = "@kengic/vue", version = "0.10.
|
3932
|
+
}), name = "@kengic/vue", version = "0.10.3";
|
3933
3933
|
class KgDomUtil {
|
3934
3934
|
static isNotClickable(t, r = []) {
|
3935
3935
|
return !t || [...r, "kg-not-clickable"].some((a) => t.classList.contains(a)) ? !0 : t.parentElement && t.parentElement.tagName !== "BODY" ? KgDomUtil.isNotClickable(t.parentElement) : !1;
|
@@ -3940,270 +3940,270 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3940
3940
|
(function(r, a) {
|
3941
3941
|
e.exports = a();
|
3942
3942
|
})(commonjsGlobal, function() {
|
3943
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", y = "date", p = "Invalid Date", g = /^(\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, E = { 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(
|
3944
|
-
var w = ["th", "st", "nd", "rd"],
|
3945
|
-
return "[" +
|
3946
|
-
} }, C = function(
|
3947
|
-
var
|
3948
|
-
return !
|
3949
|
-
}, T = { s: C, z: function(
|
3950
|
-
var w = -
|
3951
|
-
return (w <= 0 ? "+" : "-") + C(
|
3952
|
-
}, m: function
|
3953
|
-
if (w.date() <
|
3954
|
-
return -
|
3955
|
-
var
|
3956
|
-
return +(-(
|
3957
|
-
}, a: function(
|
3958
|
-
return
|
3959
|
-
}, p: function(
|
3960
|
-
return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: m }[
|
3961
|
-
}, u: function(
|
3962
|
-
return
|
3943
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", y = "date", p = "Invalid Date", g = /^(\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, E = { 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(D) {
|
3944
|
+
var w = ["th", "st", "nd", "rd"], R = D % 100;
|
3945
|
+
return "[" + D + (w[(R - 20) % 10] || w[R] || w[0]) + "]";
|
3946
|
+
} }, C = function(D, w, R) {
|
3947
|
+
var F = String(D);
|
3948
|
+
return !F || F.length >= w ? D : "" + Array(w + 1 - F.length).join(R) + D;
|
3949
|
+
}, T = { s: C, z: function(D) {
|
3950
|
+
var w = -D.utcOffset(), R = Math.abs(w), F = Math.floor(R / 60), L = R % 60;
|
3951
|
+
return (w <= 0 ? "+" : "-") + C(F, 2, "0") + ":" + C(L, 2, "0");
|
3952
|
+
}, m: function D(w, R) {
|
3953
|
+
if (w.date() < R.date())
|
3954
|
+
return -D(R, w);
|
3955
|
+
var F = 12 * (R.year() - w.year()) + (R.month() - w.month()), L = w.clone().add(F, d), K = R - L < 0, x = w.clone().add(F + (K ? -1 : 1), d);
|
3956
|
+
return +(-(F + (R - L) / (K ? L - x : x - L)) || 0);
|
3957
|
+
}, a: function(D) {
|
3958
|
+
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
3959
|
+
}, p: function(D) {
|
3960
|
+
return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: m }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
3961
|
+
}, u: function(D) {
|
3962
|
+
return D === void 0;
|
3963
3963
|
} }, A = "en", k = {};
|
3964
3964
|
k[A] = E;
|
3965
|
-
var
|
3966
|
-
return
|
3967
|
-
}, I = function
|
3968
|
-
var
|
3965
|
+
var V = "$isDayjsObject", O = function(D) {
|
3966
|
+
return D instanceof P || !(!D || !D[V]);
|
3967
|
+
}, I = function D(w, R, F) {
|
3968
|
+
var L;
|
3969
3969
|
if (!w)
|
3970
3970
|
return A;
|
3971
3971
|
if (typeof w == "string") {
|
3972
|
-
var
|
3973
|
-
k[
|
3974
|
-
var
|
3975
|
-
if (!
|
3976
|
-
return
|
3972
|
+
var K = w.toLowerCase();
|
3973
|
+
k[K] && (L = K), R && (k[K] = R, L = K);
|
3974
|
+
var x = w.split("-");
|
3975
|
+
if (!L && x.length > 1)
|
3976
|
+
return D(x[0]);
|
3977
3977
|
} else {
|
3978
3978
|
var Y = w.name;
|
3979
|
-
k[Y] = w,
|
3979
|
+
k[Y] = w, L = Y;
|
3980
3980
|
}
|
3981
|
-
return !
|
3982
|
-
}, M = function(
|
3983
|
-
if (D
|
3984
|
-
return
|
3985
|
-
var
|
3986
|
-
return
|
3987
|
-
},
|
3988
|
-
|
3989
|
-
return M(
|
3981
|
+
return !F && L && (A = L), L || !F && A;
|
3982
|
+
}, M = function(D, w) {
|
3983
|
+
if (O(D))
|
3984
|
+
return D.clone();
|
3985
|
+
var R = typeof w == "object" ? w : {};
|
3986
|
+
return R.date = D, R.args = arguments, new P(R);
|
3987
|
+
}, $ = T;
|
3988
|
+
$.l = I, $.i = O, $.w = function(D, w) {
|
3989
|
+
return M(D, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
|
3990
3990
|
};
|
3991
|
-
var
|
3992
|
-
function
|
3993
|
-
this.$L = I(
|
3991
|
+
var P = function() {
|
3992
|
+
function D(R) {
|
3993
|
+
this.$L = I(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[V] = !0;
|
3994
3994
|
}
|
3995
|
-
var w =
|
3996
|
-
return w.parse = function(
|
3997
|
-
this.$d = function(
|
3998
|
-
var
|
3999
|
-
if (
|
3995
|
+
var w = D.prototype;
|
3996
|
+
return w.parse = function(R) {
|
3997
|
+
this.$d = function(F) {
|
3998
|
+
var L = F.date, K = F.utc;
|
3999
|
+
if (L === null)
|
4000
4000
|
return new Date(NaN);
|
4001
|
-
if (
|
4001
|
+
if ($.u(L))
|
4002
4002
|
return new Date();
|
4003
|
-
if (
|
4004
|
-
return new Date(
|
4005
|
-
if (typeof
|
4006
|
-
var
|
4007
|
-
if (
|
4008
|
-
var Y =
|
4009
|
-
return
|
4003
|
+
if (L instanceof Date)
|
4004
|
+
return new Date(L);
|
4005
|
+
if (typeof L == "string" && !/Z$/i.test(L)) {
|
4006
|
+
var x = L.match(g);
|
4007
|
+
if (x) {
|
4008
|
+
var Y = x[2] - 1 || 0, Q = (x[7] || "0").substring(0, 3);
|
4009
|
+
return K ? new Date(Date.UTC(x[1], Y, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Q)) : new Date(x[1], Y, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Q);
|
4010
4010
|
}
|
4011
4011
|
}
|
4012
|
-
return new Date(
|
4013
|
-
}(
|
4012
|
+
return new Date(L);
|
4013
|
+
}(R), this.init();
|
4014
4014
|
}, w.init = function() {
|
4015
|
-
var
|
4016
|
-
this.$y =
|
4015
|
+
var R = this.$d;
|
4016
|
+
this.$y = R.getFullYear(), this.$M = R.getMonth(), this.$D = R.getDate(), this.$W = R.getDay(), this.$H = R.getHours(), this.$m = R.getMinutes(), this.$s = R.getSeconds(), this.$ms = R.getMilliseconds();
|
4017
4017
|
}, w.$utils = function() {
|
4018
|
-
return
|
4018
|
+
return $;
|
4019
4019
|
}, w.isValid = function() {
|
4020
4020
|
return this.$d.toString() !== p;
|
4021
|
-
}, w.isSame = function(
|
4022
|
-
var
|
4023
|
-
return this.startOf(
|
4024
|
-
}, w.isAfter = function(
|
4025
|
-
return M(
|
4026
|
-
}, w.isBefore = function(
|
4027
|
-
return this.endOf(
|
4028
|
-
}, w.$g = function(
|
4029
|
-
return
|
4021
|
+
}, w.isSame = function(R, F) {
|
4022
|
+
var L = M(R);
|
4023
|
+
return this.startOf(F) <= L && L <= this.endOf(F);
|
4024
|
+
}, w.isAfter = function(R, F) {
|
4025
|
+
return M(R) < this.startOf(F);
|
4026
|
+
}, w.isBefore = function(R, F) {
|
4027
|
+
return this.endOf(F) < M(R);
|
4028
|
+
}, w.$g = function(R, F, L) {
|
4029
|
+
return $.u(R) ? this[F] : this.set(L, R);
|
4030
4030
|
}, w.unix = function() {
|
4031
4031
|
return Math.floor(this.valueOf() / 1e3);
|
4032
4032
|
}, w.valueOf = function() {
|
4033
4033
|
return this.$d.getTime();
|
4034
|
-
}, w.startOf = function(
|
4035
|
-
var
|
4036
|
-
var
|
4037
|
-
return
|
4038
|
-
}, Q = function(
|
4039
|
-
return
|
4040
|
-
}, z = this.$W, Z = this.$M, re = this.$D,
|
4041
|
-
switch (
|
4034
|
+
}, w.startOf = function(R, F) {
|
4035
|
+
var L = this, K = !!$.u(F) || F, x = $.p(R), Y = function(ge, se) {
|
4036
|
+
var fe = $.w(L.$u ? Date.UTC(L.$y, se, ge) : new Date(L.$y, se, ge), L);
|
4037
|
+
return K ? fe : fe.endOf(c);
|
4038
|
+
}, Q = function(ge, se) {
|
4039
|
+
return $.w(L.toDate()[ge].apply(L.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(se)), L);
|
4040
|
+
}, z = this.$W, Z = this.$M, re = this.$D, ue = "set" + (this.$u ? "UTC" : "");
|
4041
|
+
switch (x) {
|
4042
4042
|
case v:
|
4043
|
-
return
|
4043
|
+
return K ? Y(1, 0) : Y(31, 11);
|
4044
4044
|
case d:
|
4045
|
-
return
|
4045
|
+
return K ? Y(1, Z) : Y(0, Z + 1);
|
4046
4046
|
case u:
|
4047
|
-
var
|
4048
|
-
return Y(
|
4047
|
+
var _e = this.$locale().weekStart || 0, he = (z < _e ? z + 7 : z) - _e;
|
4048
|
+
return Y(K ? re - he : re + (6 - he), Z);
|
4049
4049
|
case c:
|
4050
4050
|
case y:
|
4051
|
-
return Q(
|
4051
|
+
return Q(ue + "Hours", 0);
|
4052
4052
|
case i:
|
4053
|
-
return Q(
|
4053
|
+
return Q(ue + "Minutes", 1);
|
4054
4054
|
case o:
|
4055
|
-
return Q(
|
4055
|
+
return Q(ue + "Seconds", 2);
|
4056
4056
|
case l:
|
4057
|
-
return Q(
|
4057
|
+
return Q(ue + "Milliseconds", 3);
|
4058
4058
|
default:
|
4059
4059
|
return this.clone();
|
4060
4060
|
}
|
4061
|
-
}, w.endOf = function(
|
4062
|
-
return this.startOf(
|
4063
|
-
}, w.$set = function(
|
4064
|
-
var
|
4065
|
-
if (
|
4061
|
+
}, w.endOf = function(R) {
|
4062
|
+
return this.startOf(R, !1);
|
4063
|
+
}, w.$set = function(R, F) {
|
4064
|
+
var L, K = $.p(R), x = "set" + (this.$u ? "UTC" : ""), Y = (L = {}, L[c] = x + "Date", L[y] = x + "Date", L[d] = x + "Month", L[v] = x + "FullYear", L[i] = x + "Hours", L[o] = x + "Minutes", L[l] = x + "Seconds", L[s] = x + "Milliseconds", L)[K], Q = K === c ? this.$D + (F - this.$W) : F;
|
4065
|
+
if (K === d || K === v) {
|
4066
4066
|
var z = this.clone().set(y, 1);
|
4067
4067
|
z.$d[Y](Q), z.init(), this.$d = z.set(y, Math.min(this.$D, z.daysInMonth())).$d;
|
4068
4068
|
} else
|
4069
4069
|
Y && this.$d[Y](Q);
|
4070
4070
|
return this.init(), this;
|
4071
|
-
}, w.set = function(
|
4072
|
-
return this.clone().$set(
|
4073
|
-
}, w.get = function(
|
4074
|
-
return this[
|
4075
|
-
}, w.add = function(
|
4076
|
-
var
|
4077
|
-
|
4078
|
-
var
|
4079
|
-
var re = M(
|
4080
|
-
return
|
4071
|
+
}, w.set = function(R, F) {
|
4072
|
+
return this.clone().$set(R, F);
|
4073
|
+
}, w.get = function(R) {
|
4074
|
+
return this[$.p(R)]();
|
4075
|
+
}, w.add = function(R, F) {
|
4076
|
+
var L, K = this;
|
4077
|
+
R = Number(R);
|
4078
|
+
var x = $.p(F), Y = function(Z) {
|
4079
|
+
var re = M(K);
|
4080
|
+
return $.w(re.date(re.date() + Math.round(Z * R)), K);
|
4081
4081
|
};
|
4082
|
-
if (
|
4083
|
-
return this.set(d, this.$M +
|
4084
|
-
if (
|
4085
|
-
return this.set(v, this.$y +
|
4086
|
-
if (
|
4082
|
+
if (x === d)
|
4083
|
+
return this.set(d, this.$M + R);
|
4084
|
+
if (x === v)
|
4085
|
+
return this.set(v, this.$y + R);
|
4086
|
+
if (x === c)
|
4087
4087
|
return Y(1);
|
4088
|
-
if (
|
4088
|
+
if (x === u)
|
4089
4089
|
return Y(7);
|
4090
|
-
var Q = (
|
4091
|
-
return
|
4092
|
-
}, w.subtract = function(
|
4093
|
-
return this.add(-1 *
|
4094
|
-
}, w.format = function(
|
4095
|
-
var
|
4090
|
+
var Q = (L = {}, L[o] = a, L[i] = n, L[l] = r, L)[x] || 1, z = this.$d.getTime() + R * Q;
|
4091
|
+
return $.w(z, this);
|
4092
|
+
}, w.subtract = function(R, F) {
|
4093
|
+
return this.add(-1 * R, F);
|
4094
|
+
}, w.format = function(R) {
|
4095
|
+
var F = this, L = this.$locale();
|
4096
4096
|
if (!this.isValid())
|
4097
|
-
return
|
4098
|
-
var
|
4099
|
-
return
|
4100
|
-
},
|
4101
|
-
return
|
4102
|
-
},
|
4103
|
-
var
|
4104
|
-
return
|
4097
|
+
return L.invalidDate || p;
|
4098
|
+
var K = R || "YYYY-MM-DDTHH:mm:ssZ", x = $.z(this), Y = this.$H, Q = this.$m, z = this.$M, Z = L.weekdays, re = L.months, ue = L.meridiem, _e = function(se, fe, ve, be) {
|
4099
|
+
return se && (se[fe] || se(F, K)) || ve[fe].slice(0, be);
|
4100
|
+
}, he = function(se) {
|
4101
|
+
return $.s(Y % 12 || 12, se, "0");
|
4102
|
+
}, ge = ue || function(se, fe, ve) {
|
4103
|
+
var be = se < 12 ? "AM" : "PM";
|
4104
|
+
return ve ? be.toLowerCase() : be;
|
4105
4105
|
};
|
4106
|
-
return
|
4107
|
-
return
|
4108
|
-
switch (
|
4106
|
+
return K.replace(b, function(se, fe) {
|
4107
|
+
return fe || function(ve) {
|
4108
|
+
switch (ve) {
|
4109
4109
|
case "YY":
|
4110
|
-
return String(
|
4110
|
+
return String(F.$y).slice(-2);
|
4111
4111
|
case "YYYY":
|
4112
|
-
return
|
4112
|
+
return $.s(F.$y, 4, "0");
|
4113
4113
|
case "M":
|
4114
4114
|
return z + 1;
|
4115
4115
|
case "MM":
|
4116
|
-
return
|
4116
|
+
return $.s(z + 1, 2, "0");
|
4117
4117
|
case "MMM":
|
4118
|
-
return
|
4118
|
+
return _e(L.monthsShort, z, re, 3);
|
4119
4119
|
case "MMMM":
|
4120
|
-
return
|
4120
|
+
return _e(re, z);
|
4121
4121
|
case "D":
|
4122
|
-
return
|
4122
|
+
return F.$D;
|
4123
4123
|
case "DD":
|
4124
|
-
return
|
4124
|
+
return $.s(F.$D, 2, "0");
|
4125
4125
|
case "d":
|
4126
|
-
return String(
|
4126
|
+
return String(F.$W);
|
4127
4127
|
case "dd":
|
4128
|
-
return
|
4128
|
+
return _e(L.weekdaysMin, F.$W, Z, 2);
|
4129
4129
|
case "ddd":
|
4130
|
-
return
|
4130
|
+
return _e(L.weekdaysShort, F.$W, Z, 3);
|
4131
4131
|
case "dddd":
|
4132
|
-
return Z[
|
4132
|
+
return Z[F.$W];
|
4133
4133
|
case "H":
|
4134
4134
|
return String(Y);
|
4135
4135
|
case "HH":
|
4136
|
-
return
|
4136
|
+
return $.s(Y, 2, "0");
|
4137
4137
|
case "h":
|
4138
|
-
return
|
4138
|
+
return he(1);
|
4139
4139
|
case "hh":
|
4140
|
-
return
|
4140
|
+
return he(2);
|
4141
4141
|
case "a":
|
4142
|
-
return
|
4142
|
+
return ge(Y, Q, !0);
|
4143
4143
|
case "A":
|
4144
|
-
return
|
4144
|
+
return ge(Y, Q, !1);
|
4145
4145
|
case "m":
|
4146
4146
|
return String(Q);
|
4147
4147
|
case "mm":
|
4148
|
-
return
|
4148
|
+
return $.s(Q, 2, "0");
|
4149
4149
|
case "s":
|
4150
|
-
return String(
|
4150
|
+
return String(F.$s);
|
4151
4151
|
case "ss":
|
4152
|
-
return
|
4152
|
+
return $.s(F.$s, 2, "0");
|
4153
4153
|
case "SSS":
|
4154
|
-
return
|
4154
|
+
return $.s(F.$ms, 3, "0");
|
4155
4155
|
case "Z":
|
4156
|
-
return
|
4156
|
+
return x;
|
4157
4157
|
}
|
4158
4158
|
return null;
|
4159
|
-
}(
|
4159
|
+
}(se) || x.replace(":", "");
|
4160
4160
|
});
|
4161
4161
|
}, w.utcOffset = function() {
|
4162
4162
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4163
|
-
}, w.diff = function(
|
4164
|
-
var
|
4165
|
-
return
|
4163
|
+
}, w.diff = function(R, F, L) {
|
4164
|
+
var K, x = this, Y = $.p(F), Q = M(R), z = (Q.utcOffset() - this.utcOffset()) * a, Z = this - Q, re = function() {
|
4165
|
+
return $.m(x, Q);
|
4166
4166
|
};
|
4167
4167
|
switch (Y) {
|
4168
4168
|
case v:
|
4169
|
-
|
4169
|
+
K = re() / 12;
|
4170
4170
|
break;
|
4171
4171
|
case d:
|
4172
|
-
|
4172
|
+
K = re();
|
4173
4173
|
break;
|
4174
4174
|
case m:
|
4175
|
-
|
4175
|
+
K = re() / 3;
|
4176
4176
|
break;
|
4177
4177
|
case u:
|
4178
|
-
|
4178
|
+
K = (Z - z) / 6048e5;
|
4179
4179
|
break;
|
4180
4180
|
case c:
|
4181
|
-
|
4181
|
+
K = (Z - z) / 864e5;
|
4182
4182
|
break;
|
4183
4183
|
case i:
|
4184
|
-
|
4184
|
+
K = Z / n;
|
4185
4185
|
break;
|
4186
4186
|
case o:
|
4187
|
-
|
4187
|
+
K = Z / a;
|
4188
4188
|
break;
|
4189
4189
|
case l:
|
4190
|
-
|
4190
|
+
K = Z / r;
|
4191
4191
|
break;
|
4192
4192
|
default:
|
4193
|
-
|
4193
|
+
K = Z;
|
4194
4194
|
}
|
4195
|
-
return
|
4195
|
+
return L ? K : $.a(K);
|
4196
4196
|
}, w.daysInMonth = function() {
|
4197
4197
|
return this.endOf(d).$D;
|
4198
4198
|
}, w.$locale = function() {
|
4199
4199
|
return k[this.$L];
|
4200
|
-
}, w.locale = function(
|
4201
|
-
if (!
|
4200
|
+
}, w.locale = function(R, F) {
|
4201
|
+
if (!R)
|
4202
4202
|
return this.$L;
|
4203
|
-
var
|
4204
|
-
return
|
4203
|
+
var L = this.clone(), K = I(R, F, !0);
|
4204
|
+
return K && (L.$L = K), L;
|
4205
4205
|
}, w.clone = function() {
|
4206
|
-
return
|
4206
|
+
return $.w(this.$d, this);
|
4207
4207
|
}, w.toDate = function() {
|
4208
4208
|
return new Date(this.valueOf());
|
4209
4209
|
}, w.toJSON = function() {
|
@@ -4212,16 +4212,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4212
4212
|
return this.$d.toISOString();
|
4213
4213
|
}, w.toString = function() {
|
4214
4214
|
return this.$d.toUTCString();
|
4215
|
-
},
|
4216
|
-
}(), U =
|
4217
|
-
return M.prototype = U, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(
|
4218
|
-
U[
|
4219
|
-
return this.$g(w,
|
4215
|
+
}, D;
|
4216
|
+
}(), U = P.prototype;
|
4217
|
+
return M.prototype = U, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(D) {
|
4218
|
+
U[D[1]] = function(w) {
|
4219
|
+
return this.$g(w, D[0], D[1]);
|
4220
4220
|
};
|
4221
|
-
}), M.extend = function(
|
4222
|
-
return
|
4223
|
-
}, M.locale = I, M.isDayjs =
|
4224
|
-
return M(1e3 *
|
4221
|
+
}), M.extend = function(D, w) {
|
4222
|
+
return D.$i || (D(w, P, M), D.$i = !0), M;
|
4223
|
+
}, M.locale = I, M.isDayjs = O, M.unix = function(D) {
|
4224
|
+
return M(1e3 * D);
|
4225
4225
|
}, M.en = k[A], M.Ls = k, M.p = {}, M;
|
4226
4226
|
});
|
4227
4227
|
})(dayjs_min);
|
@@ -4269,12 +4269,12 @@ function filesize(e, {
|
|
4269
4269
|
} = {}) {
|
4270
4270
|
let b = y, E = Number(e), C = [], T = 0, A = EMPTY;
|
4271
4271
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4272
|
-
const k = a === 10 ? 1e3 : 1024,
|
4272
|
+
const k = a === 10 ? 1e3 : 1024, V = m === !0, O = E < 0, I = Math[p];
|
4273
4273
|
if (typeof e != "bigint" && isNaN(e))
|
4274
4274
|
throw new TypeError(INVALID_NUMBER);
|
4275
4275
|
if (typeof I !== FUNCTION)
|
4276
4276
|
throw new TypeError(INVALID_ROUND);
|
4277
|
-
if (
|
4277
|
+
if (O && (E = -E), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(E) / Math.log(k)), b < 0 && (b = 0)), b > 8 && (g > 0 && (g += 8 - b), b = 8), d === EXPONENT)
|
4278
4278
|
return b;
|
4279
4279
|
if (E === 0)
|
4280
4280
|
C[0] = 0, A = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
|
@@ -4283,11 +4283,11 @@ function filesize(e, {
|
|
4283
4283
|
const M = Math.pow(10, b > 0 ? n : 0);
|
4284
4284
|
C[0] = I(T * M) / M, C[0] === k && b < 8 && y === -1 && (C[0] = 1, b++), A = C[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4285
4285
|
}
|
4286
|
-
if (
|
4287
|
-
const M = o || PERIOD,
|
4288
|
-
C[0] = `${
|
4286
|
+
if (O && (C[0] = -C[0]), g > 0 && (C[0] = C[0].toPrecision(g)), C[1] = c[C[1]] || C[1], s === !0 ? C[0] = C[0].toLocaleString() : s.length > 0 ? C[0] = C[0].toLocaleString(s, l) : o.length > 0 && (C[0] = C[0].toString().replace(PERIOD, o)), r && Number.isInteger(C[0]) === !1 && n > 0) {
|
4287
|
+
const M = o || PERIOD, $ = C[0].toString().split(M), P = $[1] || EMPTY, U = P.length, D = n - U;
|
4288
|
+
C[0] = `${$[0]}${M}${P.padEnd(U + D, ZERO)}`;
|
4289
4289
|
}
|
4290
|
-
return
|
4290
|
+
return V && (C[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
|
4291
4291
|
value: C[0],
|
4292
4292
|
symbol: C[1],
|
4293
4293
|
exponent: b,
|
@@ -5636,19 +5636,19 @@ function debounce(e, t, r) {
|
|
5636
5636
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5637
5637
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
5638
5638
|
function v(k) {
|
5639
|
-
var
|
5640
|
-
return a = n = void 0, c = k, l = e.apply(
|
5639
|
+
var V = a, O = n;
|
5640
|
+
return a = n = void 0, c = k, l = e.apply(O, V), l;
|
5641
5641
|
}
|
5642
5642
|
function y(k) {
|
5643
5643
|
return c = k, o = setTimeout(b, t), u ? v(k) : l;
|
5644
5644
|
}
|
5645
5645
|
function p(k) {
|
5646
|
-
var
|
5647
|
-
return d ? nativeMin$1(I, s -
|
5646
|
+
var V = k - i, O = k - c, I = t - V;
|
5647
|
+
return d ? nativeMin$1(I, s - O) : I;
|
5648
5648
|
}
|
5649
5649
|
function g(k) {
|
5650
|
-
var
|
5651
|
-
return i === void 0 ||
|
5650
|
+
var V = k - i, O = k - c;
|
5651
|
+
return i === void 0 || V >= t || V < 0 || d && O >= s;
|
5652
5652
|
}
|
5653
5653
|
function b() {
|
5654
5654
|
var k = now$1();
|
@@ -5666,8 +5666,8 @@ function debounce(e, t, r) {
|
|
5666
5666
|
return o === void 0 ? l : E(now$1());
|
5667
5667
|
}
|
5668
5668
|
function A() {
|
5669
|
-
var k = now$1(),
|
5670
|
-
if (a = arguments, n = this, i = k,
|
5669
|
+
var k = now$1(), V = g(k);
|
5670
|
+
if (a = arguments, n = this, i = k, V) {
|
5671
5671
|
if (o === void 0)
|
5672
5672
|
return y(i);
|
5673
5673
|
if (d)
|
@@ -7175,22 +7175,22 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7175
7175
|
const i = {
|
7176
7176
|
deep: !0
|
7177
7177
|
};
|
7178
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (
|
7179
|
-
c ? v =
|
7178
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (O) => {
|
7179
|
+
c ? v = O : c == !1 && !k._hotUpdating && (Array.isArray(v) ? v.push(O) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
7180
7180
|
});
|
7181
7181
|
let c, u, d = markRaw([]), m = markRaw([]), v;
|
7182
7182
|
const y = a.state.value[e];
|
7183
7183
|
!l && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
7184
7184
|
const p = ref({});
|
7185
|
-
function g(
|
7185
|
+
function g(O) {
|
7186
7186
|
let I;
|
7187
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
7187
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof O == "function" ? (O(a.state.value[e]), I = {
|
7188
7188
|
type: MutationType.patchFunction,
|
7189
7189
|
storeId: e,
|
7190
7190
|
events: v
|
7191
|
-
}) : (mergeReactiveObjects(a.state.value[e],
|
7191
|
+
}) : (mergeReactiveObjects(a.state.value[e], O), I = {
|
7192
7192
|
type: MutationType.patchObject,
|
7193
|
-
payload:
|
7193
|
+
payload: O,
|
7194
7194
|
storeId: e,
|
7195
7195
|
events: v
|
7196
7196
|
}), nextTick().then(() => {
|
@@ -7203,30 +7203,30 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7203
7203
|
function E() {
|
7204
7204
|
s.stop(), d = [], m = [], a._s.delete(e);
|
7205
7205
|
}
|
7206
|
-
function C(
|
7206
|
+
function C(O, I) {
|
7207
7207
|
return function() {
|
7208
7208
|
setActivePinia(a);
|
7209
|
-
const M = Array.from(arguments),
|
7210
|
-
function U(
|
7211
|
-
|
7209
|
+
const M = Array.from(arguments), $ = [], P = [];
|
7210
|
+
function U(R) {
|
7211
|
+
$.push(R);
|
7212
7212
|
}
|
7213
|
-
function
|
7214
|
-
|
7213
|
+
function D(R) {
|
7214
|
+
P.push(R);
|
7215
7215
|
}
|
7216
7216
|
triggerSubscriptions(m, {
|
7217
7217
|
args: M,
|
7218
|
-
name:
|
7218
|
+
name: O,
|
7219
7219
|
store: k,
|
7220
7220
|
after: U,
|
7221
|
-
onError:
|
7221
|
+
onError: D
|
7222
7222
|
});
|
7223
7223
|
let w;
|
7224
7224
|
try {
|
7225
7225
|
w = I.apply(this && this.$id === e ? this : k, M);
|
7226
|
-
} catch (
|
7227
|
-
throw triggerSubscriptions(
|
7226
|
+
} catch (R) {
|
7227
|
+
throw triggerSubscriptions(P, R), R;
|
7228
7228
|
}
|
7229
|
-
return w instanceof Promise ? w.then((
|
7229
|
+
return w instanceof Promise ? w.then((R) => (triggerSubscriptions($, R), R)).catch((R) => (triggerSubscriptions(P, R), Promise.reject(R))) : (triggerSubscriptions($, w), w);
|
7230
7230
|
};
|
7231
7231
|
}
|
7232
7232
|
const T = /* @__PURE__ */ markRaw({
|
@@ -7240,13 +7240,13 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7240
7240
|
$onAction: addSubscription.bind(null, m),
|
7241
7241
|
$patch: g,
|
7242
7242
|
$reset: b,
|
7243
|
-
$subscribe(
|
7244
|
-
const M = addSubscription(d,
|
7245
|
-
(I.flush === "sync" ? u : c) &&
|
7243
|
+
$subscribe(O, I = {}) {
|
7244
|
+
const M = addSubscription(d, O, I.detached, () => $()), $ = s.run(() => watch(() => a.state.value[e], (P) => {
|
7245
|
+
(I.flush === "sync" ? u : c) && O({
|
7246
7246
|
storeId: e,
|
7247
7247
|
type: MutationType.direct,
|
7248
7248
|
events: v
|
7249
|
-
},
|
7249
|
+
}, P);
|
7250
7250
|
}, assign$1({}, i, I)));
|
7251
7251
|
return M;
|
7252
7252
|
},
|
@@ -7259,32 +7259,32 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7259
7259
|
A
|
7260
7260
|
));
|
7261
7261
|
a._s.set(e, k);
|
7262
|
-
const
|
7263
|
-
for (const
|
7264
|
-
const I =
|
7262
|
+
const V = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
7263
|
+
for (const O in V) {
|
7264
|
+
const I = V[O];
|
7265
7265
|
if (isRef(I) && !isComputed(I) || isReactive(I))
|
7266
|
-
process.env.NODE_ENV !== "production" && n ? set(p.value,
|
7266
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, O, toRef(V, O)) : l || (y && shouldHydrate(I) && (isRef(I) ? I.value = y[O] : mergeReactiveObjects(I, y[O])), a.state.value[e][O] = I), process.env.NODE_ENV !== "production" && T.state.push(O);
|
7267
7267
|
else if (typeof I == "function") {
|
7268
|
-
const M = process.env.NODE_ENV !== "production" && n ? I : C(
|
7269
|
-
|
7268
|
+
const M = process.env.NODE_ENV !== "production" && n ? I : C(O, I);
|
7269
|
+
V[O] = M, process.env.NODE_ENV !== "production" && (T.actions[O] = I), o.actions[O] = I;
|
7270
7270
|
} else
|
7271
|
-
process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[
|
7271
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[O] = l ? r.getters[O] : I, IS_CLIENT && (V._getters || (V._getters = markRaw([]))).push(O));
|
7272
7272
|
}
|
7273
|
-
if (assign$1(k,
|
7273
|
+
if (assign$1(k, V), assign$1(toRaw(k), V), Object.defineProperty(k, "$state", {
|
7274
7274
|
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
7275
|
-
set: (
|
7275
|
+
set: (O) => {
|
7276
7276
|
if (process.env.NODE_ENV !== "production" && n)
|
7277
7277
|
throw new Error("cannot set hotState");
|
7278
7278
|
g((I) => {
|
7279
|
-
assign$1(I,
|
7279
|
+
assign$1(I, O);
|
7280
7280
|
});
|
7281
7281
|
}
|
7282
7282
|
}), process.env.NODE_ENV !== "production") {
|
7283
7283
|
k._hotUpdate = markRaw((I) => {
|
7284
7284
|
k._hotUpdating = !0, I._hmrPayload.state.forEach((M) => {
|
7285
7285
|
if (M in k.$state) {
|
7286
|
-
const
|
7287
|
-
typeof
|
7286
|
+
const $ = I.$state[M], P = k.$state[M];
|
7287
|
+
typeof $ == "object" && isPlainObject($) && isPlainObject(P) ? patchObject($, P) : I.$state[M] = P;
|
7288
7288
|
}
|
7289
7289
|
set(k, M, toRef(I.$state, M));
|
7290
7290
|
}), Object.keys(k.$state).forEach((M) => {
|
@@ -7293,12 +7293,12 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7293
7293
|
c = !0;
|
7294
7294
|
});
|
7295
7295
|
for (const M in I._hmrPayload.actions) {
|
7296
|
-
const
|
7297
|
-
set(k, M, C(M,
|
7296
|
+
const $ = I[M];
|
7297
|
+
set(k, M, C(M, $));
|
7298
7298
|
}
|
7299
7299
|
for (const M in I._hmrPayload.getters) {
|
7300
|
-
const
|
7301
|
-
set(k, M,
|
7300
|
+
const $ = I._hmrPayload.getters[M], P = l ? computed(() => (setActivePinia(a), $.call(k, k))) : $;
|
7301
|
+
set(k, M, P);
|
7302
7302
|
}
|
7303
7303
|
Object.keys(k._hmrPayload.getters).forEach((M) => {
|
7304
7304
|
M in I._hmrPayload.getters || del(k, M);
|
@@ -7306,7 +7306,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7306
7306
|
M in I._hmrPayload.actions || del(k, M);
|
7307
7307
|
}), k._hmrPayload = I._hmrPayload, k._getters = I._getters, k._hotUpdating = !1;
|
7308
7308
|
});
|
7309
|
-
const
|
7309
|
+
const O = {
|
7310
7310
|
writable: !0,
|
7311
7311
|
configurable: !0,
|
7312
7312
|
enumerable: !1
|
@@ -7314,13 +7314,13 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7314
7314
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
7315
7315
|
Object.defineProperty(k, I, {
|
7316
7316
|
value: k[I],
|
7317
|
-
...
|
7317
|
+
...O
|
7318
7318
|
});
|
7319
7319
|
});
|
7320
7320
|
}
|
7321
|
-
return a._p.forEach((
|
7321
|
+
return a._p.forEach((O) => {
|
7322
7322
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
7323
|
-
const I = s.run(() =>
|
7323
|
+
const I = s.run(() => O({
|
7324
7324
|
store: k,
|
7325
7325
|
app: a._a,
|
7326
7326
|
pinia: a,
|
@@ -7328,7 +7328,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7328
7328
|
}));
|
7329
7329
|
Object.keys(I || {}).forEach((M) => k._customProperties.add(M)), assign$1(k, I);
|
7330
7330
|
} else
|
7331
|
-
assign$1(k, s.run(() =>
|
7331
|
+
assign$1(k, s.run(() => O({
|
7332
7332
|
store: k,
|
7333
7333
|
app: a._a,
|
7334
7334
|
pinia: a,
|
@@ -8849,6 +8849,18 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8849
8849
|
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.crt_flg === 1 && n.key_flg !== 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8850
8850
|
};
|
8851
8851
|
},
|
8852
|
+
getVarSubmitFieldsForCreateKeyVisible(e) {
|
8853
|
+
return (t) => {
|
8854
|
+
var r, a;
|
8855
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.crt_flg === 1 && n.key_flg === 1 && n.crt_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8856
|
+
};
|
8857
|
+
},
|
8858
|
+
getVarSubmitFieldsForCreateNotKeyVisible(e) {
|
8859
|
+
return (t) => {
|
8860
|
+
var r, a;
|
8861
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.crt_flg === 1 && n.key_flg !== 1 && n.crt_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8862
|
+
};
|
8863
|
+
},
|
8852
8864
|
getVarSubmitFieldsForUpdate(e) {
|
8853
8865
|
return (t) => {
|
8854
8866
|
var r, a;
|
@@ -8867,6 +8879,18 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8867
8879
|
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.upt_flg === 1 && n.key_flg !== 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8868
8880
|
};
|
8869
8881
|
},
|
8882
|
+
getVarSubmitFieldsForUpdateKeyVisible(e) {
|
8883
|
+
return (t) => {
|
8884
|
+
var r, a;
|
8885
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.upt_flg === 1 && n.key_flg === 1 && n.upt_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8886
|
+
};
|
8887
|
+
},
|
8888
|
+
getVarSubmitFieldsForUpdateNotKeyVisible(e) {
|
8889
|
+
return (t) => {
|
8890
|
+
var r, a;
|
8891
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.upt_flg === 1 && n.key_flg !== 1 && n.upt_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8892
|
+
};
|
8893
|
+
},
|
8870
8894
|
getVarSubmitFieldsForCopy(e) {
|
8871
8895
|
return (t) => {
|
8872
8896
|
var r, a;
|
@@ -8885,6 +8909,18 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8885
8909
|
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.cpy_flg === 1 && n.key_flg !== 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8886
8910
|
};
|
8887
8911
|
},
|
8912
|
+
getVarSubmitFieldsForCopyKeyVisible(e) {
|
8913
|
+
return (t) => {
|
8914
|
+
var r, a;
|
8915
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.cpy_flg === 1 && n.key_flg === 1 && n.cpy_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8916
|
+
};
|
8917
|
+
},
|
8918
|
+
getVarSubmitFieldsForCopyNotKeyVisible(e) {
|
8919
|
+
return (t) => {
|
8920
|
+
var r, a;
|
8921
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.cpy_flg === 1 && n.key_flg !== 1 && n.cpy_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8922
|
+
};
|
8923
|
+
},
|
8888
8924
|
getVarSubmitFieldsForDelete(e) {
|
8889
8925
|
return (t) => {
|
8890
8926
|
var r, a;
|
@@ -9145,8 +9181,8 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9145
9181
|
}
|
9146
9182
|
this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID), store_legacy.set("KgVar.formIDs", this.formIDs);
|
9147
9183
|
},
|
9148
|
-
|
9149
|
-
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varButtonMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
|
9184
|
+
dispose(e) {
|
9185
|
+
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRetrievedMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isRetrievingVarGridMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varVariableInputMap.delete(e), this.varButtonMap.delete(e), this.varButtonConfigMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), this.onRetrieveListenersMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
|
9150
9186
|
},
|
9151
9187
|
async retrieve(e) {
|
9152
9188
|
var t, r, a, n, s, l, o, i, c, u;
|
@@ -9166,14 +9202,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9166
9202
|
varProfile: T,
|
9167
9203
|
varProfileConfig: A,
|
9168
9204
|
varGrid: k,
|
9169
|
-
varGridConfig:
|
9205
|
+
varGridConfig: V
|
9170
9206
|
} = await GetAll({ params: { frm_id: e } });
|
9171
9207
|
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), 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(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(E)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
|
9172
9208
|
varProfile: T != null ? T : null,
|
9173
|
-
currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((
|
9174
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
9209
|
+
currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((O) => O.def_flg === 1)) || ((r = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : r.find((O) => O.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
|
9210
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(V != null ? V : null)), this.varGridMap.set(e, {
|
9175
9211
|
varGrid: transformVarGridDTO(k),
|
9176
|
-
currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((
|
9212
|
+
currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((O) => O.def_flg === 1)) || ((o = k == null ? void 0 : k.varGridMasters) == null ? void 0 : o.find((O) => O.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = k == null ? void 0 : k.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
9177
9213
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
9178
9214
|
} catch (d) {
|
9179
9215
|
throw d;
|
@@ -9272,7 +9308,7 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9272
9308
|
return;
|
9273
9309
|
const o = this.getVarProfileDetail(e, t);
|
9274
9310
|
if (!o) {
|
9275
|
-
KgLogger.error("\
|
9311
|
+
KgLogger.error("KgVarStore.patchVarProfileDetail() | VarProfileDetail \u4E3A\u7A7A.", { frm_id: e, var_nam: t }), n();
|
9276
9312
|
return;
|
9277
9313
|
}
|
9278
9314
|
setTimeout(() => {
|
@@ -9304,22 +9340,22 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9304
9340
|
!a || (Object.assign(a, r), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e)));
|
9305
9341
|
},
|
9306
9342
|
patchVarPossibilityCommandParameter(e, t, r) {
|
9307
|
-
|
9308
|
-
|
9309
|
-
|
9310
|
-
|
9311
|
-
|
9312
|
-
|
9313
|
-
|
9314
|
-
|
9315
|
-
|
9316
|
-
|
9317
|
-
l
|
9318
|
-
}
|
9319
|
-
}
|
9320
|
-
|
9321
|
-
|
9322
|
-
);
|
9343
|
+
return !e || !t ? Promise.resolve() : new Promise((a, n) => {
|
9344
|
+
const s = watch(
|
9345
|
+
() => this.getVarPossibility(e, t),
|
9346
|
+
(l) => {
|
9347
|
+
var o;
|
9348
|
+
if (l) {
|
9349
|
+
setTimeout(() => s(), 0);
|
9350
|
+
let i = JSON.parse((o = l.cmd_prm) != null ? o : "{}");
|
9351
|
+
Object.entries(r).forEach(([c, u]) => {
|
9352
|
+
i[c] = u;
|
9353
|
+
}), l.cmd_prm = JSON.stringify(i), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e)), a();
|
9354
|
+
}
|
9355
|
+
},
|
9356
|
+
{ immediate: !0 }
|
9357
|
+
);
|
9358
|
+
});
|
9323
9359
|
},
|
9324
9360
|
dragSortCurrentVarGridDetails(e, t, r) {
|
9325
9361
|
if (!e || !t || !r || t === r)
|
@@ -9378,12 +9414,12 @@ function useKgVar(e, t, r = 0) {
|
|
9378
9414
|
t && getCurrentInstance() && (provide(KG_DI_FORM_ID, c), onMounted(() => {
|
9379
9415
|
u.enter({ formID: c, level: r });
|
9380
9416
|
}), onUnmounted(() => {
|
9381
|
-
u.
|
9417
|
+
u.dispose(c);
|
9382
9418
|
}));
|
9383
|
-
const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), k = computed(() => u.isDeletingRequesting(c)),
|
9419
|
+
const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), k = computed(() => u.isDeletingRequesting(c)), V = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), M = computed(() => u.getVarButtonCreate(c)), $ = computed(() => u.getVarButtonUpdate(c)), P = computed(() => u.getVarButtonCopy(c)), U = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), w = computed(() => u.getCurrentVarProfileMaster(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), F = computed(() => {
|
9384
9420
|
var z, Z;
|
9385
9421
|
return (Z = (z = w.value) == null ? void 0 : z.varProfileDetails) != null ? Z : null;
|
9386
|
-
}),
|
9422
|
+
}), L = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
9387
9423
|
return {
|
9388
9424
|
formID: c,
|
9389
9425
|
store: u,
|
@@ -9398,20 +9434,20 @@ function useKgVar(e, t, r = 0) {
|
|
9398
9434
|
isCopyingRequesting: T,
|
9399
9435
|
isDeleting: A,
|
9400
9436
|
isDeletingRequesting: k,
|
9401
|
-
isOtherRequesting:
|
9402
|
-
varButtons:
|
9437
|
+
isOtherRequesting: V,
|
9438
|
+
varButtons: O,
|
9403
9439
|
varButtonSearch: I,
|
9404
9440
|
varButtonCreate: M,
|
9405
|
-
varButtonUpdate:
|
9406
|
-
varButtonCopy:
|
9441
|
+
varButtonUpdate: $,
|
9442
|
+
varButtonCopy: P,
|
9407
9443
|
varButtonDelete: U,
|
9408
|
-
varProfileMasters:
|
9444
|
+
varProfileMasters: D,
|
9409
9445
|
currentVarProfileMaster: w,
|
9410
|
-
currentVarProfileMasterID:
|
9411
|
-
currentVarProfileDetails:
|
9412
|
-
varGridConfig:
|
9413
|
-
varGridMasters:
|
9414
|
-
currentVarGridMaster:
|
9446
|
+
currentVarProfileMasterID: R,
|
9447
|
+
currentVarProfileDetails: F,
|
9448
|
+
varGridConfig: L,
|
9449
|
+
varGridMasters: K,
|
9450
|
+
currentVarGridMaster: x,
|
9415
9451
|
systemVarGridDetails: Y,
|
9416
9452
|
currentVarGridDetails: Q,
|
9417
9453
|
setIsCreating: s,
|
@@ -9486,63 +9522,61 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9486
9522
|
slots: t,
|
9487
9523
|
emit: r
|
9488
9524
|
}) {
|
9489
|
-
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_FORM_MODEL, computed(() => ({})))
|
9490
|
-
|
9491
|
-
|
9492
|
-
|
9493
|
-
|
9494
|
-
|
9495
|
-
var p, g;
|
9496
|
-
return (g = (p = u == null ? void 0 : u.value) == null ? void 0 : p.ret_fld) != null ? g : "";
|
9525
|
+
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_FORM_MODEL, computed(() => ({}))), c = useKgVar(o, !0, n.store.getFormLevel(n.formID) + 1), u = useKgTable(c.formID), d = computed(() => n.store.getVarLookup(n.formID, l)), m = computed(() => {
|
9526
|
+
var g;
|
9527
|
+
return ((g = d == null ? void 0 : d.value) == null ? void 0 : g.mult_flg) === 1;
|
9528
|
+
}), v = computed(() => {
|
9529
|
+
var g, b;
|
9530
|
+
return (b = (g = d == null ? void 0 : d.value) == null ? void 0 : g.ret_fld) != null ? b : "";
|
9497
9531
|
});
|
9498
|
-
|
9499
|
-
function
|
9532
|
+
u.onRowDoubleClick(async () => (await p(), !1));
|
9533
|
+
function y() {
|
9500
9534
|
r("update:visible", !1);
|
9501
9535
|
}
|
9502
|
-
async function
|
9503
|
-
var
|
9504
|
-
if (
|
9505
|
-
const
|
9536
|
+
async function p() {
|
9537
|
+
var g, b, E, C, T, A, k;
|
9538
|
+
if (m.value) {
|
9539
|
+
const V = (b = (g = u.selectedRows) == null ? void 0 : g.value) != null ? b : [], O = (E = V.map((M) => M[v.value])) != null ? E : [];
|
9506
9540
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9507
9541
|
var_nam: l,
|
9508
9542
|
isMultiple: !0,
|
9509
|
-
values:
|
9510
|
-
rows:
|
9543
|
+
values: O,
|
9544
|
+
rows: V
|
9511
9545
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9512
9546
|
var_nam: l,
|
9513
9547
|
model: i,
|
9514
9548
|
isMultiple: !0,
|
9515
|
-
values:
|
9516
|
-
rows:
|
9549
|
+
values: O,
|
9550
|
+
rows: V
|
9517
9551
|
}), r("update:visible", !1));
|
9518
9552
|
} else {
|
9519
|
-
const
|
9553
|
+
const V = (A = (T = (C = u.selectedRows) == null ? void 0 : C.value) == null ? void 0 : T[0]) != null ? A : null, O = (k = V == null ? void 0 : V[v.value]) != null ? k : "";
|
9520
9554
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9521
9555
|
var_nam: l,
|
9522
9556
|
isMultiple: !1,
|
9523
|
-
value:
|
9524
|
-
row:
|
9557
|
+
value: O,
|
9558
|
+
row: V
|
9525
9559
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9526
9560
|
var_nam: l,
|
9527
9561
|
model: i,
|
9528
9562
|
isMultiple: !1,
|
9529
|
-
value:
|
9530
|
-
row:
|
9563
|
+
value: O,
|
9564
|
+
row: V
|
9531
9565
|
}), r("update:visible", !1));
|
9532
9566
|
}
|
9533
9567
|
}
|
9534
9568
|
return () => {
|
9535
|
-
var
|
9569
|
+
var g, b;
|
9536
9570
|
return createVNode(KgModal, {
|
9537
9571
|
visible: e.visible,
|
9538
9572
|
title: n.t(l).value,
|
9539
9573
|
destroyOnClose: !0,
|
9540
9574
|
okButtonProps: {
|
9541
|
-
disabled: ((
|
9575
|
+
disabled: ((b = (g = u.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0
|
9542
9576
|
},
|
9543
9577
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
9544
|
-
onCancel:
|
9545
|
-
onOk:
|
9578
|
+
onCancel: y,
|
9579
|
+
onOk: p
|
9546
9580
|
}, {
|
9547
9581
|
default: () => [createVNode(KgVar, null, null)]
|
9548
9582
|
});
|
@@ -9561,21 +9595,24 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9561
9595
|
slots: t,
|
9562
9596
|
emit: r
|
9563
9597
|
}) {
|
9564
|
-
const a = inject(KG_DI_FORM_ID, "");
|
9598
|
+
const a = inject(KG_DI_FORM_ID, ""), n = inject(KG_DI_VAR_NAME, "");
|
9565
9599
|
provide(KG_DI_HOST_FORM_ID, a), provide(KG_DI_LOOKUP_ID, e.kgLookupID);
|
9566
|
-
const
|
9567
|
-
function
|
9568
|
-
|
9600
|
+
const s = useKgForm(a), l = ref(!1);
|
9601
|
+
async function o() {
|
9602
|
+
l.value = !0, await s.store.emit(s.formID, "lookupBeforeOpen", {
|
9603
|
+
var_nam: n,
|
9604
|
+
lookupFormID: e.kgLookupID
|
9605
|
+
});
|
9569
9606
|
}
|
9570
9607
|
return () => createVNode(Fragment, null, [createVNode(Button, {
|
9571
|
-
onClick:
|
9608
|
+
onClick: o,
|
9572
9609
|
class: "kg-form-item-addon-lookup",
|
9573
9610
|
disabled: e.kgDisabled
|
9574
9611
|
}, {
|
9575
9612
|
default: () => [createVNode(SearchOutlined$1, null, null)]
|
9576
|
-
}),
|
9577
|
-
visible:
|
9578
|
-
"onUpdate:visible": (
|
9613
|
+
}), l.value ? createVNode(KgFormItemAddonLookupModal, {
|
9614
|
+
visible: l.value,
|
9615
|
+
"onUpdate:visible": (i) => l.value = i
|
9579
9616
|
}, null) : null]);
|
9580
9617
|
}
|
9581
9618
|
}), getProps$s = () => ({
|
@@ -9766,15 +9803,15 @@ function useKgFormItemSelect() {
|
|
9766
9803
|
const A = C.split(".");
|
9767
9804
|
C = A[0], T = A[1];
|
9768
9805
|
}
|
9769
|
-
t.value && C in t.value && (T ? g = (E = (b = t.value[`${C}_obj`]) == null ? void 0 : b[T]) != null ? E : void 0 : g = t.value[C], g || (g = "
|
9806
|
+
t.value && C in t.value && (T ? g = (E = (b = t.value[`${C}_obj`]) == null ? void 0 : b[T]) != null ? E : void 0 : g = t.value[C], g || (g = "__kg__form_item_select__pid"));
|
9770
9807
|
}
|
9771
9808
|
return g;
|
9772
9809
|
}), v;
|
9773
9810
|
});
|
9774
9811
|
async function d() {
|
9775
|
-
var C, T, A, k,
|
9812
|
+
var C, T, A, k, V, O, I, M;
|
9776
9813
|
let v = [];
|
9777
|
-
const y = (C = a.value) == null ? void 0 : C.cmd, p = (A = (T = a.value) == null ? void 0 : T.cmd_method) != null ? A : "GET", g = (
|
9814
|
+
const y = (C = a.value) == null ? void 0 : C.cmd, p = (A = (T = a.value) == null ? void 0 : T.cmd_method) != null ? A : "GET", g = (V = (k = a.value) == null ? void 0 : k.val_clm) != null ? V : "", b = (I = (O = a.value) == null ? void 0 : O.lbl_clm) != null ? I : "";
|
9778
9815
|
if (!y || !g || !b) {
|
9779
9816
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9780
9817
|
frm_id: r.formID,
|
@@ -9808,14 +9845,14 @@ function useKgFormItemSelect() {
|
|
9808
9845
|
break;
|
9809
9846
|
}
|
9810
9847
|
if (v.length > 0) {
|
9811
|
-
const
|
9812
|
-
(!(g in
|
9848
|
+
const $ = v[0];
|
9849
|
+
(!(g in $) || !(b in $)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9813
9850
|
frm_id: r.formID,
|
9814
9851
|
var_nam: e,
|
9815
9852
|
cmd: y,
|
9816
9853
|
val_clm: g,
|
9817
9854
|
lbl_clm: b,
|
9818
|
-
\u6240\u6709\u5217: Object.keys(
|
9855
|
+
\u6240\u6709\u5217: Object.keys($)
|
9819
9856
|
});
|
9820
9857
|
}
|
9821
9858
|
o.value = v;
|
@@ -9858,8 +9895,8 @@ function useKgFormItemSelect() {
|
|
9858
9895
|
const A = s;
|
9859
9896
|
if ((T = A.value) != null && T.excludeValues)
|
9860
9897
|
return v.filter((k) => {
|
9861
|
-
var
|
9862
|
-
return !((
|
9898
|
+
var V;
|
9899
|
+
return !((V = A.value.excludeValues) != null && V.includes(k[y]));
|
9863
9900
|
});
|
9864
9901
|
}
|
9865
9902
|
break;
|
@@ -10158,7 +10195,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10158
10195
|
datas: d,
|
10159
10196
|
retrieveDatas: m
|
10160
10197
|
} = useKgFormItemSelect();
|
10161
|
-
watch(o, () =>
|
10198
|
+
watch(o, () => {
|
10199
|
+
v();
|
10200
|
+
}, {
|
10162
10201
|
immediate: !0
|
10163
10202
|
});
|
10164
10203
|
async function v() {
|
@@ -10220,6 +10259,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10220
10259
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
|
10221
10260
|
class: "kg-form-item-select",
|
10222
10261
|
onChange: y,
|
10262
|
+
"kg-value": e.value,
|
10223
10263
|
"kg-cmd": (g = l.value) == null ? void 0 : g.cmd,
|
10224
10264
|
"kg-val_clm": i.value,
|
10225
10265
|
"kg-lbl_clm": c.value
|
@@ -10298,15 +10338,15 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10298
10338
|
const s = useKgVar(), l = useKgForm(s.formID), o = useKgSearch(s.formID);
|
10299
10339
|
l.onLookupOk(async ({
|
10300
10340
|
var_nam: M,
|
10301
|
-
model:
|
10302
|
-
isMultiple:
|
10341
|
+
model: $,
|
10342
|
+
isMultiple: P,
|
10303
10343
|
value: U,
|
10304
|
-
values:
|
10344
|
+
values: D
|
10305
10345
|
}) => {
|
10306
10346
|
var w;
|
10307
10347
|
switch (M) {
|
10308
10348
|
case e.kgVarName:
|
10309
|
-
|
10349
|
+
$.value && (P ? $.value[e.kgVarName] = D : $.value[e.kgVarName] = U), (w = n.value) == null || w.validate([e.kgVarName]);
|
10310
10350
|
break;
|
10311
10351
|
}
|
10312
10352
|
return !1;
|
@@ -10316,7 +10356,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10316
10356
|
} = _useRules(e), {
|
10317
10357
|
controlType: v
|
10318
10358
|
} = useKgFormItem(e), y = computed(() => {
|
10319
|
-
var P,
|
10359
|
+
var $, P, U, D, w;
|
10320
10360
|
if (s.isRetrieving.value)
|
10321
10361
|
return !0;
|
10322
10362
|
let M = !1;
|
@@ -10325,18 +10365,18 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10325
10365
|
else
|
10326
10366
|
switch (e.kgContext) {
|
10327
10367
|
case KG_FORM_CONTEXT.SEARCH:
|
10328
|
-
M = ((
|
10368
|
+
M = (($ = u.value) == null ? void 0 : $.ena_flg) === 0;
|
10329
10369
|
break;
|
10330
10370
|
case KG_FORM_CONTEXT.SUBMIT:
|
10331
10371
|
switch (!0) {
|
10332
10372
|
case s.isCreating.value:
|
10333
|
-
M = ((
|
10373
|
+
M = ((P = d.value) == null ? void 0 : P.crt_ena_flg) === 0;
|
10334
10374
|
break;
|
10335
10375
|
case s.isUpdating.value:
|
10336
10376
|
M = ((U = d.value) == null ? void 0 : U.upt_ena_flg) === 0;
|
10337
10377
|
break;
|
10338
10378
|
case s.isCopying.value:
|
10339
|
-
M = ((
|
10379
|
+
M = ((D = d.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
10340
10380
|
break;
|
10341
10381
|
case s.isDeleting.value:
|
10342
10382
|
M = ((w = d.value) == null ? void 0 : w.del_ena_flg) === 0;
|
@@ -10346,74 +10386,74 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10346
10386
|
}
|
10347
10387
|
return M;
|
10348
10388
|
}), p = computed(() => {
|
10349
|
-
var P,
|
10389
|
+
var $, P, U, D;
|
10350
10390
|
let M = " ";
|
10351
10391
|
if (e.kgPlaceholder)
|
10352
10392
|
M = e.kgPlaceholder;
|
10353
10393
|
else
|
10354
10394
|
switch (e.kgContext) {
|
10355
10395
|
case KG_FORM_CONTEXT.SEARCH:
|
10356
|
-
M = s.t((
|
10396
|
+
M = s.t((P = ($ = u.value) == null ? void 0 : $.placeholder) != null ? P : " ").value;
|
10357
10397
|
break;
|
10358
10398
|
case KG_FORM_CONTEXT.SUBMIT:
|
10359
|
-
M = s.t((
|
10399
|
+
M = s.t((D = (U = d.value) == null ? void 0 : U.placeholder) != null ? D : " ").value;
|
10360
10400
|
break;
|
10361
10401
|
}
|
10362
10402
|
return M;
|
10363
10403
|
}), g = computed(() => {
|
10364
|
-
var P,
|
10404
|
+
var $, P, U, D, w, R, F, L, K, x;
|
10365
10405
|
let M = 6;
|
10366
10406
|
if (e.kgSpan !== void 0)
|
10367
10407
|
M = e.kgSpan;
|
10368
10408
|
else
|
10369
10409
|
switch (e.kgContext) {
|
10370
10410
|
case KG_FORM_CONTEXT.SEARCH:
|
10371
|
-
M = (
|
10411
|
+
M = (P = ($ = u.value) == null ? void 0 : $.width) != null ? P : 6;
|
10372
10412
|
break;
|
10373
10413
|
case KG_FORM_CONTEXT.SUBMIT:
|
10374
10414
|
switch (!0) {
|
10375
10415
|
case s.isCreating.value:
|
10376
|
-
M = (
|
10416
|
+
M = (D = (U = d.value) == null ? void 0 : U.crt_width) != null ? D : 6;
|
10377
10417
|
break;
|
10378
10418
|
case s.isUpdating.value:
|
10379
|
-
M = (
|
10419
|
+
M = (R = (w = d.value) == null ? void 0 : w.upt_width) != null ? R : 6;
|
10380
10420
|
break;
|
10381
10421
|
case s.isCopying.value:
|
10382
|
-
M = (
|
10422
|
+
M = (L = (F = d.value) == null ? void 0 : F.cpy_width) != null ? L : 6;
|
10383
10423
|
break;
|
10384
10424
|
case s.isDeleting.value:
|
10385
|
-
M = (
|
10425
|
+
M = (x = (K = d.value) == null ? void 0 : K.del_width) != null ? x : 6;
|
10386
10426
|
break;
|
10387
10427
|
}
|
10388
10428
|
}
|
10389
10429
|
return Math.min(24, Math.max(1, M));
|
10390
10430
|
}), b = computed(() => {
|
10391
|
-
var U,
|
10431
|
+
var U, D;
|
10392
10432
|
const M = get(A.value, "$el.parentElement");
|
10393
10433
|
if (M && !((U = M.classList) != null && U.contains("ant-row")))
|
10394
10434
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
10395
|
-
let
|
10396
|
-
const
|
10397
|
-
return Number.isNaN(
|
10398
|
-
paddingLeft: `${
|
10399
|
-
paddingRight: `${
|
10400
|
-
}),
|
10435
|
+
let $ = {};
|
10436
|
+
const P = Math.abs(Number.parseInt((D = get(A.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
10437
|
+
return Number.isNaN(P) || ($ = {
|
10438
|
+
paddingLeft: `${P}px !important`,
|
10439
|
+
paddingRight: `${P}px !important`
|
10440
|
+
}), $;
|
10401
10441
|
}), E = computed(() => {
|
10402
|
-
var P,
|
10442
|
+
var $, P, U, D;
|
10403
10443
|
let M = "kg-form-item";
|
10404
10444
|
switch (i.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
10405
10445
|
case KG_FORM_CONTEXT.SEARCH:
|
10406
10446
|
switch (!0) {
|
10407
|
-
case ((
|
10447
|
+
case (($ = u.value) == null ? void 0 : $.vis_flg) === 0:
|
10408
10448
|
M += " kg-form-item--invisible";
|
10409
10449
|
break;
|
10410
10450
|
}
|
10411
10451
|
break;
|
10412
10452
|
case KG_FORM_CONTEXT.SUBMIT:
|
10413
10453
|
switch (!0) {
|
10414
|
-
case (s.isCreating.value && ((
|
10454
|
+
case (s.isCreating.value && ((P = d.value) == null ? void 0 : P.crt_vis_flg) === 0):
|
10415
10455
|
case (s.isUpdating.value && ((U = d.value) == null ? void 0 : U.upt_vis_flg) === 0):
|
10416
|
-
case (s.isCopying.value && ((
|
10456
|
+
case (s.isCopying.value && ((D = d.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
10417
10457
|
M += " kg-form-item--invisible";
|
10418
10458
|
break;
|
10419
10459
|
}
|
@@ -10421,12 +10461,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10421
10461
|
}
|
10422
10462
|
return M;
|
10423
10463
|
}), C = computed(() => {
|
10424
|
-
var
|
10464
|
+
var $;
|
10425
10465
|
const M = {
|
10426
10466
|
...e,
|
10427
|
-
value: (
|
10428
|
-
"onUpdate:value": (
|
10429
|
-
a.value && (a.value[e.kgVarName] =
|
10467
|
+
value: ($ = a.value) == null ? void 0 : $[e.kgVarName],
|
10468
|
+
"onUpdate:value": (P) => {
|
10469
|
+
a.value && (a.value[e.kgVarName] = P);
|
10430
10470
|
},
|
10431
10471
|
kgPlaceholder: p.value,
|
10432
10472
|
kgDisabled: y.value,
|
@@ -10509,16 +10549,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10509
10549
|
return createVNode(KgFormItemInput, C.value, null);
|
10510
10550
|
}
|
10511
10551
|
}
|
10512
|
-
function
|
10552
|
+
function V() {
|
10513
10553
|
var M;
|
10514
10554
|
return ((M = s.currentVarProfileMaster.value) == null ? void 0 : M.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
10515
10555
|
default: () => {
|
10516
|
-
var
|
10556
|
+
var $;
|
10517
10557
|
return [createVNode(Select, {
|
10518
|
-
value: (
|
10519
|
-
"onUpdate:value": (
|
10558
|
+
value: ($ = o.operatorModel.value) == null ? void 0 : $[e.kgVarName],
|
10559
|
+
"onUpdate:value": (P) => {
|
10520
10560
|
o.store.patchOperatorModel(s.formID, {
|
10521
|
-
[e.kgVarName]:
|
10561
|
+
[e.kgVarName]: P
|
10522
10562
|
});
|
10523
10563
|
},
|
10524
10564
|
disabled: y.value,
|
@@ -10526,8 +10566,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10526
10566
|
dropdownClassName: "kg-form-item-operator-select-dropdown"
|
10527
10567
|
}, {
|
10528
10568
|
default: () => {
|
10529
|
-
var
|
10530
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((
|
10569
|
+
var P;
|
10570
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((P = v.value) != null ? P : "");
|
10531
10571
|
},
|
10532
10572
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
10533
10573
|
class: "ant-select-suffix"
|
@@ -10536,7 +10576,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10536
10576
|
}
|
10537
10577
|
});
|
10538
10578
|
}
|
10539
|
-
function
|
10579
|
+
function O() {
|
10540
10580
|
return e.kgShowLabel ? createVNode("span", {
|
10541
10581
|
title: s.t(e.kgVarName).value
|
10542
10582
|
}, [s.t(e.kgVarName).value]) : null;
|
@@ -10551,7 +10591,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10551
10591
|
});
|
10552
10592
|
}
|
10553
10593
|
return () => {
|
10554
|
-
var M,
|
10594
|
+
var M, $;
|
10555
10595
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
10556
10596
|
ref: A,
|
10557
10597
|
span: g.value,
|
@@ -10560,7 +10600,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10560
10600
|
"kg-frm_id": s.formID,
|
10561
10601
|
"kg-var_nam": e.kgVarName,
|
10562
10602
|
"kg-lkp_id": (M = i.value) == null ? void 0 : M.lkp_id,
|
10563
|
-
"kg-ret_fld": (
|
10603
|
+
"kg-ret_fld": ($ = i.value) == null ? void 0 : $.ret_fld
|
10564
10604
|
}, {
|
10565
10605
|
default: () => [createVNode(Form.Item, {
|
10566
10606
|
name: e.kgVarName,
|
@@ -10568,8 +10608,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10568
10608
|
validateFirst: !0,
|
10569
10609
|
htmlFor: T.value
|
10570
10610
|
}, {
|
10571
|
-
default: () => createVNode(Fragment, null, [
|
10572
|
-
label: () =>
|
10611
|
+
default: () => createVNode(Fragment, null, [V(), k(), I()]),
|
10612
|
+
label: () => O()
|
10573
10613
|
})]
|
10574
10614
|
});
|
10575
10615
|
};
|
@@ -10607,8 +10647,9 @@ let store$6 = null;
|
|
10607
10647
|
const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
10608
10648
|
state: () => ({
|
10609
10649
|
selectChangeListenersMap: /* @__PURE__ */ new Map(),
|
10610
|
-
|
10611
|
-
lookupBeforeOkListenersMap: /* @__PURE__ */ new Map()
|
10650
|
+
lookupBeforeOpenListenersMap: /* @__PURE__ */ new Map(),
|
10651
|
+
lookupBeforeOkListenersMap: /* @__PURE__ */ new Map(),
|
10652
|
+
lookupOkListenersMap: /* @__PURE__ */ new Map()
|
10612
10653
|
}),
|
10613
10654
|
getters: {},
|
10614
10655
|
actions: {
|
@@ -10620,6 +10661,12 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
10620
10661
|
this.selectChangeListenersMap.set(e, [...a != null ? a : [], r]);
|
10621
10662
|
}
|
10622
10663
|
break;
|
10664
|
+
case "lookupBeforeOpen":
|
10665
|
+
{
|
10666
|
+
const a = this.lookupBeforeOpenListenersMap.get(e);
|
10667
|
+
this.lookupBeforeOpenListenersMap.set(e, [...a != null ? a : [], r]);
|
10668
|
+
}
|
10669
|
+
break;
|
10623
10670
|
case "lookupBeforeOk":
|
10624
10671
|
{
|
10625
10672
|
const a = this.lookupBeforeOkListenersMap.get(e);
|
@@ -10643,6 +10690,13 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
10643
10690
|
} else
|
10644
10691
|
this.selectChangeListenersMap.set(e, []);
|
10645
10692
|
break;
|
10693
|
+
case "lookupBeforeOpen":
|
10694
|
+
if (r) {
|
10695
|
+
const a = this.lookupBeforeOpenListenersMap.get(e);
|
10696
|
+
this.lookupBeforeOpenListenersMap.set(e, without$1(a, r));
|
10697
|
+
} else
|
10698
|
+
this.lookupBeforeOpenListenersMap.set(e, []);
|
10699
|
+
break;
|
10646
10700
|
case "lookupBeforeOk":
|
10647
10701
|
if (r) {
|
10648
10702
|
const a = this.lookupBeforeOkListenersMap.get(e);
|
@@ -10665,6 +10719,9 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
10665
10719
|
case "selectChange":
|
10666
10720
|
a = this.selectChangeListenersMap.get(e);
|
10667
10721
|
break;
|
10722
|
+
case "lookupBeforeOpen":
|
10723
|
+
a = this.lookupBeforeOpenListenersMap.get(e);
|
10724
|
+
break;
|
10668
10725
|
case "lookupBeforeOk":
|
10669
10726
|
a = this.lookupBeforeOkListenersMap.get(e);
|
10670
10727
|
break;
|
@@ -10690,6 +10747,7 @@ function useKgForm(e) {
|
|
10690
10747
|
formID: t.formID,
|
10691
10748
|
store: r,
|
10692
10749
|
onSelectChange: onEventFactory(t.formID, r, "selectChange"),
|
10750
|
+
onLookupBeforeOpen: onEventFactory(t.formID, r, "lookupBeforeOpen"),
|
10693
10751
|
onLookupBeforeOk: onEventFactory(t.formID, r, "lookupBeforeOk"),
|
10694
10752
|
onLookupOk: onEventFactory(t.formID, r, "lookupOk")
|
10695
10753
|
};
|
@@ -10698,6 +10756,7 @@ KgForm.Item = KgFormItem;
|
|
10698
10756
|
let store$5 = null;
|
10699
10757
|
const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
10700
10758
|
state: () => ({
|
10759
|
+
beforeOpenListenersMap: /* @__PURE__ */ new Map(),
|
10701
10760
|
openListenersMap: /* @__PURE__ */ new Map(),
|
10702
10761
|
beforeOkListenersMap: /* @__PURE__ */ new Map(),
|
10703
10762
|
afterValidateListenersMap: /* @__PURE__ */ new Map(),
|
@@ -10744,10 +10803,16 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10744
10803
|
dispose(e) {
|
10745
10804
|
if (!e)
|
10746
10805
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
10747
|
-
this.openListenersMap.delete(e), this.beforeOkListenersMap.delete(e), this.afterValidateListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.okListenersMap.delete(e), this.errorListenersMap.delete(e), this.closeListenersMap.delete(e), this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
|
10806
|
+
this.beforeOpenListenersMap.delete(e), this.openListenersMap.delete(e), this.beforeOkListenersMap.delete(e), this.afterValidateListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.okListenersMap.delete(e), this.errorListenersMap.delete(e), this.closeListenersMap.delete(e), this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
|
10748
10807
|
},
|
10749
10808
|
addEventListener(e, t, r) {
|
10750
10809
|
switch (t) {
|
10810
|
+
case "beforeOpen":
|
10811
|
+
{
|
10812
|
+
const a = this.beforeOpenListenersMap.get(e);
|
10813
|
+
this.beforeOpenListenersMap.set(e, [...a != null ? a : [], r]);
|
10814
|
+
}
|
10815
|
+
break;
|
10751
10816
|
case "open":
|
10752
10817
|
{
|
10753
10818
|
const a = this.openListenersMap.get(e);
|
@@ -10794,6 +10859,13 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10794
10859
|
},
|
10795
10860
|
removeEventListener(e, t, r) {
|
10796
10861
|
switch (t) {
|
10862
|
+
case "beforeOpen":
|
10863
|
+
if (r) {
|
10864
|
+
const a = this.beforeOpenListenersMap.get(e);
|
10865
|
+
this.beforeOpenListenersMap.set(e, without$1(a, r));
|
10866
|
+
} else
|
10867
|
+
this.beforeOpenListenersMap.set(e, []);
|
10868
|
+
break;
|
10797
10869
|
case "open":
|
10798
10870
|
if (r) {
|
10799
10871
|
const a = this.openListenersMap.get(e);
|
@@ -10848,6 +10920,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10848
10920
|
emit(e, t, r) {
|
10849
10921
|
let a, n = Promise.resolve(!1);
|
10850
10922
|
switch (t) {
|
10923
|
+
case "beforeOpen":
|
10924
|
+
a = this.beforeOpenListenersMap.get(e);
|
10925
|
+
break;
|
10851
10926
|
case "open":
|
10852
10927
|
a = this.openListenersMap.get(e);
|
10853
10928
|
break;
|
@@ -10937,6 +11012,7 @@ function useKgSubmit(e) {
|
|
10937
11012
|
formRef: l,
|
10938
11013
|
rules: o,
|
10939
11014
|
displayType: n,
|
11015
|
+
onBeforeOpen: onEventFactory(t.formID, r, "beforeOpen"),
|
10940
11016
|
onOpen: onEventFactory(t.formID, r, "open"),
|
10941
11017
|
onBeforeOk: onEventFactory(t.formID, r, "beforeOk"),
|
10942
11018
|
onAfterValidate: onEventFactory(t.formID, r, "afterValidate"),
|
@@ -10970,8 +11046,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10970
11046
|
}) => {
|
10971
11047
|
const u = s.store.getVarSubmitConfig(s.formID);
|
10972
11048
|
return o = watch(c, (d) => {
|
10973
|
-
var m, v, y, p, g, b, E, C, T, A, k,
|
10974
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : 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 = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : 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 = (k = u == null ? void 0 : u.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, d.display_type = (
|
11049
|
+
var m, v, y, p, g, b, E, C, T, A, k, V;
|
11050
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : 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 = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : 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 = (k = u == null ? void 0 : u.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, d.display_type = (V = u == null ? void 0 : u.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10975
11051
|
}, {
|
10976
11052
|
immediate: !0
|
10977
11053
|
}), KgUtil.hideLoading(), !1;
|
@@ -11235,81 +11311,107 @@ const getProps$p = () => ({
|
|
11235
11311
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
11236
11312
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11237
11313
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
11238
|
-
l.onSubmitSave(async () => (await
|
11239
|
-
const u = computed(() => s.isDeleting.value &&
|
11240
|
-
var
|
11314
|
+
l.onSubmitSave(async () => (await B(), !1)), l.onSubmitCancel(async () => (await N(), !1)), _useFormModel$1();
|
11315
|
+
const u = computed(() => s.isDeleting.value && M.value.length === 0 && P.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = 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)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), V = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
|
11316
|
+
var G, W, X;
|
11241
11317
|
switch (!0) {
|
11242
11318
|
case s.isCreating.value:
|
11243
|
-
return (
|
11319
|
+
return (G = v.value) != null ? G : [];
|
11244
11320
|
case s.isUpdating.value:
|
11245
|
-
return (
|
11321
|
+
return (W = p.value) != null ? W : [];
|
11246
11322
|
case s.isCopying.value:
|
11247
|
-
return (
|
11323
|
+
return (X = b.value) != null ? X : [];
|
11248
11324
|
case s.isDeleting.value:
|
11249
11325
|
return [];
|
11250
11326
|
}
|
11251
11327
|
return [];
|
11252
|
-
}),
|
11253
|
-
var
|
11328
|
+
}), $ = computed(() => {
|
11329
|
+
var G, W, X;
|
11254
11330
|
switch (!0) {
|
11255
11331
|
case s.isCreating.value:
|
11256
|
-
return (
|
11332
|
+
return (G = C.value) != null ? G : [];
|
11257
11333
|
case s.isUpdating.value:
|
11258
|
-
return (
|
11334
|
+
return (W = A.value) != null ? W : [];
|
11259
11335
|
case s.isCopying.value:
|
11260
|
-
return (
|
11336
|
+
return (X = V.value) != null ? X : [];
|
11261
11337
|
case s.isDeleting.value:
|
11262
|
-
return
|
11338
|
+
return [];
|
11263
11339
|
}
|
11264
11340
|
return [];
|
11265
|
-
}), k = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), R = computed(() => k.value || d.value), D = computed(() => d.value), I = ref({
|
11266
|
-
kgWidth: 0
|
11267
|
-
}), M = computed(() => {
|
11268
|
-
var $;
|
11269
|
-
return !!(u.value || F.isFullscreen || (($ = m.value) == null ? void 0 : $.resizable_flg) === 0);
|
11270
11341
|
}), P = computed(() => {
|
11271
|
-
var
|
11272
|
-
|
11273
|
-
|
11274
|
-
|
11275
|
-
|
11276
|
-
|
11277
|
-
|
11278
|
-
|
11342
|
+
var G, W, X, te;
|
11343
|
+
switch (!0) {
|
11344
|
+
case s.isCreating.value:
|
11345
|
+
return (G = y.value) != null ? G : [];
|
11346
|
+
case s.isUpdating.value:
|
11347
|
+
return (W = g.value) != null ? W : [];
|
11348
|
+
case s.isCopying.value:
|
11349
|
+
return (X = E.value) != null ? X : [];
|
11350
|
+
case s.isDeleting.value:
|
11351
|
+
return (te = I.value) != null ? te : [];
|
11352
|
+
}
|
11353
|
+
return [];
|
11354
|
+
}), U = computed(() => {
|
11355
|
+
var G, W, X, te;
|
11356
|
+
switch (!0) {
|
11357
|
+
case s.isCreating.value:
|
11358
|
+
return (G = T.value) != null ? G : [];
|
11359
|
+
case s.isUpdating.value:
|
11360
|
+
return (W = k.value) != null ? W : [];
|
11361
|
+
case s.isCopying.value:
|
11362
|
+
return (X = O.value) != null ? X : [];
|
11363
|
+
case s.isDeleting.value:
|
11364
|
+
return (te = I.value) != null ? te : [];
|
11365
|
+
}
|
11366
|
+
return [];
|
11367
|
+
}), D = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), w = computed(() => D.value || d.value), R = computed(() => d.value), F = ref({
|
11368
|
+
kgWidth: 0
|
11369
|
+
}), L = computed(() => {
|
11370
|
+
var G;
|
11371
|
+
return !!(u.value || ue.isFullscreen || ((G = m.value) == null ? void 0 : G.resizable_flg) === 0);
|
11372
|
+
}), K = computed(() => {
|
11373
|
+
var G, W;
|
11374
|
+
return u.value ? 398 : (W = (G = m.value) == null ? void 0 : G.min_width) != null ? W : DEFAULT_MIN_WIDTH;
|
11375
|
+
}), x = computed(() => {
|
11376
|
+
var G, W;
|
11377
|
+
return u.value ? 398 : (W = (G = m.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
|
11378
|
+
}), Y = computed(() => u.value ? 398 : F.value.kgWidth), Q = ref(null);
|
11379
|
+
_useResizeObserver$1(Q);
|
11380
|
+
const z = _useTitle(), Z = computed(() => u.value ? 400 : F.value.kgWidth && F.value.kgWidth > 0 ? "auto" : 0), re = computed(() => Z.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ue = reactive({
|
11279
11381
|
isFullscreen: !1
|
11280
11382
|
}), {
|
11281
|
-
getClass:
|
11282
|
-
} = _useClass(e,
|
11283
|
-
getLayout:
|
11383
|
+
getClass: _e
|
11384
|
+
} = _useClass(e, ue), {
|
11385
|
+
getLayout: he
|
11284
11386
|
} = _useLayout(), {
|
11285
|
-
getDefaultWidth:
|
11286
|
-
} = _useDefaultWidth(),
|
11287
|
-
var
|
11288
|
-
switch (
|
11387
|
+
getDefaultWidth: ge
|
11388
|
+
} = _useDefaultWidth(), se = computed(() => {
|
11389
|
+
var G, W, X;
|
11390
|
+
switch (he.value) {
|
11289
11391
|
case "horizontal":
|
11290
|
-
switch ((
|
11392
|
+
switch ((G = m.value) == null ? void 0 : G.label_col_unit) {
|
11291
11393
|
case KG_WIDTH_UNIT.SPAN:
|
11292
11394
|
return {
|
11293
|
-
span: (
|
11395
|
+
span: (W = m.value) == null ? void 0 : W.label_col
|
11294
11396
|
};
|
11295
11397
|
default:
|
11296
11398
|
return {
|
11297
11399
|
style: {
|
11298
|
-
width: `${(
|
11400
|
+
width: `${(X = m.value) == null ? void 0 : X.label_col}px`
|
11299
11401
|
}
|
11300
11402
|
};
|
11301
11403
|
}
|
11302
11404
|
default:
|
11303
11405
|
return;
|
11304
11406
|
}
|
11305
|
-
}),
|
11306
|
-
var
|
11307
|
-
switch (
|
11407
|
+
}), fe = computed(() => {
|
11408
|
+
var G, W;
|
11409
|
+
switch (he.value) {
|
11308
11410
|
case "horizontal":
|
11309
|
-
switch ((
|
11411
|
+
switch ((G = m.value) == null ? void 0 : G.label_col_unit) {
|
11310
11412
|
case KG_WIDTH_UNIT.SPAN:
|
11311
11413
|
return {
|
11312
|
-
span: 24 - ((
|
11414
|
+
span: 24 - ((W = m.value) == null ? void 0 : W.label_col)
|
11313
11415
|
};
|
11314
11416
|
default:
|
11315
11417
|
return;
|
@@ -11318,35 +11420,44 @@ const getProps$p = () => ({
|
|
11318
11420
|
return;
|
11319
11421
|
}
|
11320
11422
|
});
|
11321
|
-
watch(
|
11322
|
-
|
11423
|
+
watch(re, (G, W) => {
|
11424
|
+
G === !0 && ve(), W === !0 && G === !1 && be();
|
11323
11425
|
}, {
|
11324
11426
|
immediate: !0
|
11325
|
-
}), watch(
|
11326
|
-
|
11427
|
+
}), watch(ge, (G) => {
|
11428
|
+
G && (F.value.kgWidth = G);
|
11327
11429
|
}, {
|
11328
11430
|
immediate: !0
|
11329
11431
|
});
|
11330
|
-
function
|
11331
|
-
|
11332
|
-
|
11333
|
-
|
11334
|
-
|
11335
|
-
|
11336
|
-
|
11337
|
-
|
11338
|
-
|
11339
|
-
|
11340
|
-
|
11341
|
-
|
11342
|
-
|
11343
|
-
|
11344
|
-
|
11432
|
+
async function ve() {
|
11433
|
+
if (!await i.store.emit(s.formID, "beforeOpen", {
|
11434
|
+
isCreating: s.isCreating.value,
|
11435
|
+
isUpdating: s.isUpdating.value,
|
11436
|
+
isCopying: s.isCopying.value,
|
11437
|
+
isDeleting: s.isDeleting.value,
|
11438
|
+
row: o.selectedRow.value
|
11439
|
+
}))
|
11440
|
+
return new Promise((W, X) => {
|
11441
|
+
var ie;
|
11442
|
+
const te = watch(i.model, async (le) => {
|
11443
|
+
le && Object.keys(le).length > 0 && (setTimeout(() => te()), await i.store.emit(s.formID, "open", {
|
11444
|
+
isCreating: s.isCreating.value,
|
11445
|
+
isUpdating: s.isUpdating.value,
|
11446
|
+
isCopying: s.isCopying.value,
|
11447
|
+
isDeleting: s.isDeleting.value,
|
11448
|
+
row: o.selectedRow.value,
|
11449
|
+
model: i.model
|
11450
|
+
}), W());
|
11451
|
+
}, {
|
11452
|
+
immediate: !0
|
11453
|
+
});
|
11454
|
+
((ie = m.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (ue.isFullscreen = !0);
|
11455
|
+
});
|
11345
11456
|
}
|
11346
|
-
async function
|
11347
|
-
|
11457
|
+
async function be() {
|
11458
|
+
F.value.kgWidth = ge.value, ue.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
11348
11459
|
}
|
11349
|
-
function
|
11460
|
+
function N() {
|
11350
11461
|
switch (!0) {
|
11351
11462
|
case s.isCreating.value:
|
11352
11463
|
s.store.setIsCreating(s.formID, !1);
|
@@ -11362,8 +11473,8 @@ const getProps$p = () => ({
|
|
11362
11473
|
break;
|
11363
11474
|
}
|
11364
11475
|
}
|
11365
|
-
async function
|
11366
|
-
var
|
11476
|
+
async function B() {
|
11477
|
+
var G, W;
|
11367
11478
|
try {
|
11368
11479
|
if (await i.store.emit(s.formID, "beforeOk", {
|
11369
11480
|
isCreating: s.isCreating.value,
|
@@ -11376,11 +11487,11 @@ const getProps$p = () => ({
|
|
11376
11487
|
}))
|
11377
11488
|
return;
|
11378
11489
|
try {
|
11379
|
-
await ((
|
11380
|
-
} catch (
|
11381
|
-
KgUtil.throwIfNotFormError(
|
11490
|
+
await ((G = i.formRef.value) == null ? void 0 : G.validate());
|
11491
|
+
} catch (ie) {
|
11492
|
+
KgUtil.throwIfNotFormError(ie);
|
11382
11493
|
}
|
11383
|
-
if (await ((
|
11494
|
+
if (await ((W = i.formRef.value) == null ? void 0 : W.validate()), await i.store.emit(s.formID, "afterValidate", {
|
11384
11495
|
isCreating: s.isCreating.value,
|
11385
11496
|
isUpdating: s.isUpdating.value,
|
11386
11497
|
isCopying: s.isCopying.value,
|
@@ -11392,26 +11503,26 @@ const getProps$p = () => ({
|
|
11392
11503
|
return;
|
11393
11504
|
switch (!0) {
|
11394
11505
|
case s.isCreating.value:
|
11395
|
-
await
|
11506
|
+
await q();
|
11396
11507
|
break;
|
11397
11508
|
case s.isUpdating.value:
|
11398
|
-
await
|
11509
|
+
await H();
|
11399
11510
|
break;
|
11400
11511
|
case s.isCopying.value:
|
11401
|
-
await
|
11512
|
+
await J();
|
11402
11513
|
break;
|
11403
11514
|
case s.isDeleting.value:
|
11404
|
-
await
|
11515
|
+
await ee();
|
11405
11516
|
break;
|
11406
11517
|
}
|
11407
|
-
} catch (
|
11408
|
-
KgUtil.throwIfNotFormError(
|
11518
|
+
} catch (X) {
|
11519
|
+
KgUtil.throwIfNotFormError(X);
|
11409
11520
|
}
|
11410
11521
|
}
|
11411
|
-
async function
|
11412
|
-
var
|
11413
|
-
const
|
11414
|
-
if (
|
11522
|
+
async function q() {
|
11523
|
+
var W, X, te, ie, le, ce;
|
11524
|
+
const G = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
|
11525
|
+
if (!G) {
|
11415
11526
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11416
11527
|
VarButton: s.varButtonCreate.value
|
11417
11528
|
});
|
@@ -11419,7 +11530,7 @@ const getProps$p = () => ({
|
|
11419
11530
|
}
|
11420
11531
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
11421
11532
|
try {
|
11422
|
-
let
|
11533
|
+
let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), s.formID, r)), de = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11423
11534
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11424
11535
|
isCreating: s.isCreating.value,
|
11425
11536
|
isUpdating: s.isUpdating.value,
|
@@ -11428,16 +11539,16 @@ const getProps$p = () => ({
|
|
11428
11539
|
row: o.selectedFirstRow.value,
|
11429
11540
|
rows: o.selectedRows.value,
|
11430
11541
|
model: i.model,
|
11431
|
-
params:
|
11432
|
-
data:
|
11542
|
+
params: ne,
|
11543
|
+
data: de
|
11433
11544
|
}))
|
11434
11545
|
return;
|
11435
11546
|
await httpClient().request({
|
11436
|
-
method: (
|
11437
|
-
url:
|
11438
|
-
params:
|
11439
|
-
data:
|
11440
|
-
}), ((
|
11547
|
+
method: (le = (ie = s.varButtonCreate.value) == null ? void 0 : ie.cmd_method) != null ? le : "POST",
|
11548
|
+
url: G,
|
11549
|
+
params: ne.value,
|
11550
|
+
data: de.value
|
11551
|
+
}), ((ce = s.varButtonCreate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(z.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
|
11441
11552
|
isCreating: s.isCreating.value,
|
11442
11553
|
isUpdating: s.isUpdating.value,
|
11443
11554
|
isCopying: s.isCopying.value,
|
@@ -11445,16 +11556,16 @@ const getProps$p = () => ({
|
|
11445
11556
|
row: o.selectedFirstRow.value,
|
11446
11557
|
model: i.model
|
11447
11558
|
}), s.store.setIsCreating(s.formID, !1), c.search(!0);
|
11448
|
-
} catch (
|
11449
|
-
console.error(
|
11559
|
+
} catch (ne) {
|
11560
|
+
console.error(ne), i.store.emit(s.formID, "error", ne);
|
11450
11561
|
} finally {
|
11451
11562
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
11452
11563
|
}
|
11453
11564
|
}
|
11454
|
-
async function
|
11455
|
-
var
|
11456
|
-
const
|
11457
|
-
if (
|
11565
|
+
async function H() {
|
11566
|
+
var W, X, te, ie, le, ce;
|
11567
|
+
const G = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
|
11568
|
+
if (!G) {
|
11458
11569
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11459
11570
|
VarButton: s.varButtonUpdate.value
|
11460
11571
|
});
|
@@ -11462,7 +11573,7 @@ const getProps$p = () => ({
|
|
11462
11573
|
}
|
11463
11574
|
try {
|
11464
11575
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
11465
|
-
let
|
11576
|
+
let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), s.formID, r)), de = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11466
11577
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11467
11578
|
isCreating: s.isCreating.value,
|
11468
11579
|
isUpdating: s.isUpdating.value,
|
@@ -11471,16 +11582,16 @@ const getProps$p = () => ({
|
|
11471
11582
|
row: o.selectedRow.value,
|
11472
11583
|
rows: o.selectedRows.value,
|
11473
11584
|
model: i.model,
|
11474
|
-
params:
|
11475
|
-
data:
|
11585
|
+
params: ne,
|
11586
|
+
data: de
|
11476
11587
|
}))
|
11477
11588
|
return;
|
11478
11589
|
await httpClient().request({
|
11479
|
-
method: (
|
11480
|
-
url:
|
11481
|
-
params:
|
11482
|
-
data:
|
11483
|
-
}), ((
|
11590
|
+
method: (le = (ie = s.varButtonUpdate.value) == null ? void 0 : ie.cmd_method) != null ? le : "POST",
|
11591
|
+
url: G,
|
11592
|
+
params: ne.value,
|
11593
|
+
data: de.value
|
11594
|
+
}), ((ce = s.varButtonUpdate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await i.store.emit(s.formID, "ok", {
|
11484
11595
|
isCreating: s.isCreating.value,
|
11485
11596
|
isUpdating: s.isUpdating.value,
|
11486
11597
|
isCopying: s.isCopying.value,
|
@@ -11488,16 +11599,16 @@ const getProps$p = () => ({
|
|
11488
11599
|
row: o.selectedFirstRow.value,
|
11489
11600
|
model: i.model
|
11490
11601
|
}), s.store.setIsUpdating(s.formID, !1), c.search();
|
11491
|
-
} catch (
|
11492
|
-
console.error(
|
11602
|
+
} catch (ne) {
|
11603
|
+
console.error(ne), i.store.emit(s.formID, "error", ne);
|
11493
11604
|
} finally {
|
11494
11605
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
11495
11606
|
}
|
11496
11607
|
}
|
11497
|
-
async function
|
11498
|
-
var
|
11499
|
-
const
|
11500
|
-
if (
|
11608
|
+
async function J() {
|
11609
|
+
var W, X, te, ie, le, ce, ne, de;
|
11610
|
+
const G = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
|
11611
|
+
if (!G) {
|
11501
11612
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11502
11613
|
VarButton: s.varButtonCopy.value
|
11503
11614
|
});
|
@@ -11505,11 +11616,11 @@ const getProps$p = () => ({
|
|
11505
11616
|
}
|
11506
11617
|
try {
|
11507
11618
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11508
|
-
let
|
11509
|
-
...(
|
11619
|
+
let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (X = s.varButtonCopy.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), s.formID, r)), ye = ref(KgUtil.parseParams({
|
11620
|
+
...(ie = o.selectedFirstRow.value) != null ? ie : {},
|
11510
11621
|
...toRaw(i.model.value)
|
11511
11622
|
}, s.formID, r));
|
11512
|
-
if (((
|
11623
|
+
if (((le = m.value) == null ? void 0 : le.cpy_clear_id_flg) !== 0 && delete ye.value.id, await i.store.emit(s.formID, "beforeRequest", {
|
11513
11624
|
isCreating: s.isCreating.value,
|
11514
11625
|
isUpdating: s.isUpdating.value,
|
11515
11626
|
isCopying: s.isCopying.value,
|
@@ -11517,16 +11628,16 @@ const getProps$p = () => ({
|
|
11517
11628
|
row: o.selectedRow.value,
|
11518
11629
|
rows: o.selectedRows.value,
|
11519
11630
|
model: i.model,
|
11520
|
-
params:
|
11521
|
-
data:
|
11631
|
+
params: me,
|
11632
|
+
data: ye
|
11522
11633
|
}))
|
11523
11634
|
return;
|
11524
11635
|
await httpClient().request({
|
11525
|
-
method: (
|
11526
|
-
url:
|
11527
|
-
params:
|
11528
|
-
data:
|
11529
|
-
}), ((
|
11636
|
+
method: (ne = (ce = s.varButtonCopy.value) == null ? void 0 : ce.cmd_method) != null ? ne : "POST",
|
11637
|
+
url: G,
|
11638
|
+
params: me.value,
|
11639
|
+
data: ye.value
|
11640
|
+
}), ((de = s.varButtonCopy.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await i.store.emit(s.formID, "ok", {
|
11530
11641
|
isCreating: s.isCreating.value,
|
11531
11642
|
isUpdating: s.isUpdating.value,
|
11532
11643
|
isCopying: s.isCopying.value,
|
@@ -11534,16 +11645,16 @@ const getProps$p = () => ({
|
|
11534
11645
|
row: o.selectedFirstRow.value,
|
11535
11646
|
model: i.model
|
11536
11647
|
}), s.store.setIsCopying(s.formID, !1), c.search(!0);
|
11537
|
-
} catch (
|
11538
|
-
console.error(
|
11648
|
+
} catch (me) {
|
11649
|
+
console.error(me), i.store.emit(s.formID, "error", me);
|
11539
11650
|
} finally {
|
11540
11651
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
11541
11652
|
}
|
11542
11653
|
}
|
11543
|
-
async function
|
11544
|
-
var
|
11545
|
-
const
|
11546
|
-
if (
|
11654
|
+
async function ee() {
|
11655
|
+
var W, X, te, ie, le, ce, ne, de, me, ye;
|
11656
|
+
const G = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
|
11657
|
+
if (!G) {
|
11547
11658
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11548
11659
|
VarButton: s.varButtonDelete.value
|
11549
11660
|
});
|
@@ -11551,13 +11662,13 @@ const getProps$p = () => ({
|
|
11551
11662
|
}
|
11552
11663
|
try {
|
11553
11664
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11554
|
-
let
|
11555
|
-
if (((
|
11556
|
-
ids: (
|
11557
|
-
var
|
11558
|
-
return (
|
11559
|
-
})) != null ?
|
11560
|
-
}),
|
11665
|
+
let Ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (X = s.varButtonDelete.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), s.formID, r)), Te = ref((ie = o.selectedRows.value) != null ? ie : []);
|
11666
|
+
if (((le = s.varButtonDelete.value) == null ? void 0 : le.del_param_clm) !== "__kg__new_delete_param" && (Ee = ref({
|
11667
|
+
ids: (ne = (ce = o.selectedRows.value) == null ? void 0 : ce.map((Ie) => {
|
11668
|
+
var ke, Ae, Me;
|
11669
|
+
return (Me = Ie[(Ae = (ke = s.varButtonDelete.value) == null ? void 0 : ke.del_param_clm) != null ? Ae : "id"]) != null ? Me : "";
|
11670
|
+
})) != null ? ne : []
|
11671
|
+
}), Te = ref({})), await i.store.emit(s.formID, "beforeRequest", {
|
11561
11672
|
isCreating: s.isCreating.value,
|
11562
11673
|
isUpdating: s.isUpdating.value,
|
11563
11674
|
isCopying: s.isCopying.value,
|
@@ -11565,18 +11676,18 @@ const getProps$p = () => ({
|
|
11565
11676
|
row: o.selectedFirstRow.value,
|
11566
11677
|
rows: o.selectedRows.value,
|
11567
11678
|
model: i.model,
|
11568
|
-
params:
|
11569
|
-
data:
|
11679
|
+
params: Ee,
|
11680
|
+
data: Te
|
11570
11681
|
}))
|
11571
11682
|
return;
|
11572
11683
|
await httpClient().request({
|
11573
|
-
method: (
|
11574
|
-
url:
|
11575
|
-
params:
|
11576
|
-
data:
|
11684
|
+
method: (me = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd_method) != null ? me : "DELETE",
|
11685
|
+
url: G,
|
11686
|
+
params: Ee.value,
|
11687
|
+
data: Te.value
|
11577
11688
|
}, {
|
11578
11689
|
joinParamsToUrl: !0
|
11579
|
-
}), ((
|
11690
|
+
}), ((ye = s.varButtonDelete.value) == null ? void 0 : ye.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(s.formID, "deleteOk", {
|
11580
11691
|
button: s.varButtonDelete.value,
|
11581
11692
|
rows: o.selectedRows.value
|
11582
11693
|
}), await i.store.emit(s.formID, "ok", {
|
@@ -11587,54 +11698,54 @@ const getProps$p = () => ({
|
|
11587
11698
|
row: o.selectedFirstRow.value,
|
11588
11699
|
model: i.model
|
11589
11700
|
}), s.store.setIsDeleting(s.formID, !1), c.search(!0);
|
11590
|
-
} catch (
|
11591
|
-
console.error(
|
11701
|
+
} catch (Ee) {
|
11702
|
+
console.error(Ee), i.store.emit(s.formID, "error", Ee);
|
11592
11703
|
} finally {
|
11593
11704
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
11594
11705
|
}
|
11595
11706
|
}
|
11596
|
-
function
|
11597
|
-
var
|
11598
|
-
const
|
11599
|
-
return isFunction$2(
|
11600
|
-
kgVarName:
|
11707
|
+
function oe(G) {
|
11708
|
+
var X, te;
|
11709
|
+
const W = (te = (X = a == null ? void 0 : a.KgSubmit) == null ? void 0 : X["KgForm.Item"]) == null ? void 0 : te[G.var_nam];
|
11710
|
+
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
11711
|
+
kgVarName: G.var_nam,
|
11601
11712
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11602
|
-
kgRules: i.rules.value[
|
11603
|
-
onKgSubmit:
|
11713
|
+
kgRules: i.rules.value[G.var_nam],
|
11714
|
+
onKgSubmit: B
|
11604
11715
|
}, {
|
11605
11716
|
control: ({
|
11606
|
-
frm_id:
|
11607
|
-
varName:
|
11608
|
-
props:
|
11609
|
-
model:
|
11610
|
-
varVariableConfig:
|
11611
|
-
varProfileDetail:
|
11612
|
-
varSubmitField:
|
11613
|
-
}) =>
|
11614
|
-
frm_id:
|
11615
|
-
varName:
|
11616
|
-
props:
|
11617
|
-
model:
|
11618
|
-
varVariableConfig:
|
11619
|
-
varProfileDetail:
|
11620
|
-
varSubmitField:
|
11717
|
+
frm_id: ie,
|
11718
|
+
varName: le,
|
11719
|
+
props: ce,
|
11720
|
+
model: ne,
|
11721
|
+
varVariableConfig: de,
|
11722
|
+
varProfileDetail: me,
|
11723
|
+
varSubmitField: ye
|
11724
|
+
}) => W({
|
11725
|
+
frm_id: ie,
|
11726
|
+
varName: le,
|
11727
|
+
props: ce,
|
11728
|
+
model: ne,
|
11729
|
+
varVariableConfig: de,
|
11730
|
+
varProfileDetail: me,
|
11731
|
+
varSubmitField: ye
|
11621
11732
|
})
|
11622
11733
|
}) : createVNode(KgForm.Item, {
|
11623
|
-
kgVarName:
|
11734
|
+
kgVarName: G.var_nam,
|
11624
11735
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11625
|
-
kgRules: i.rules.value[
|
11626
|
-
onKgSubmit:
|
11736
|
+
kgRules: i.rules.value[G.var_nam],
|
11737
|
+
onKgSubmit: B
|
11627
11738
|
}, null);
|
11628
11739
|
}
|
11629
|
-
function
|
11630
|
-
let
|
11740
|
+
function ae() {
|
11741
|
+
let G, W;
|
11631
11742
|
return createVNode(KgResizable, {
|
11632
11743
|
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
11633
|
-
kgMinWidth:
|
11634
|
-
kgMaxWidth:
|
11635
|
-
kgWidth:
|
11636
|
-
kgDisabled:
|
11637
|
-
"onUpdate:kgWidth": (
|
11744
|
+
kgMinWidth: K.value,
|
11745
|
+
kgMaxWidth: x.value,
|
11746
|
+
kgWidth: Y.value,
|
11747
|
+
kgDisabled: L.value,
|
11748
|
+
"onUpdate:kgWidth": (X) => F.value.kgWidth = X
|
11638
11749
|
}, {
|
11639
11750
|
default: () => [createVNode(Spin, {
|
11640
11751
|
spinning: d.value
|
@@ -11642,20 +11753,20 @@ const getProps$p = () => ({
|
|
11642
11753
|
default: () => [createVNode(KgForm, {
|
11643
11754
|
ref: i.formRef,
|
11644
11755
|
model: i.model.value,
|
11645
|
-
layout:
|
11646
|
-
labelCol:
|
11647
|
-
wrapperCol:
|
11756
|
+
layout: he.value,
|
11757
|
+
labelCol: se.value,
|
11758
|
+
wrapperCol: fe.value
|
11648
11759
|
}, {
|
11649
11760
|
default: () => [createVNode("div", {
|
11650
|
-
ref:
|
11651
|
-
}, [
|
11761
|
+
ref: Q
|
11762
|
+
}, [M.value.length > 0 && createVNode(Row, {
|
11652
11763
|
gutter: 12
|
11653
|
-
}, _isSlot$8(
|
11654
|
-
default: () => [
|
11655
|
-
}),
|
11764
|
+
}, _isSlot$8(G = M.value.map(oe)) ? G : {
|
11765
|
+
default: () => [G]
|
11766
|
+
}), $.value.length > 0 && U.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
|
11656
11767
|
gutter: 12
|
11657
|
-
}, _isSlot$8(
|
11658
|
-
default: () => [
|
11768
|
+
}, _isSlot$8(W = P.value.map(oe)) ? W : {
|
11769
|
+
default: () => [W]
|
11659
11770
|
}), u.value && createVNode("div", {
|
11660
11771
|
style: "text-align: center; padding: 6px 0 12px;"
|
11661
11772
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11663,54 +11774,54 @@ const getProps$p = () => ({
|
|
11663
11774
|
})]
|
11664
11775
|
});
|
11665
11776
|
}
|
11666
|
-
function
|
11667
|
-
let
|
11777
|
+
function pe() {
|
11778
|
+
let G, W;
|
11668
11779
|
return createVNode("div", null, [createVNode(Button, {
|
11669
11780
|
type: "primary",
|
11670
|
-
ghost: !
|
11671
|
-
disabled:
|
11672
|
-
onClick:
|
11673
|
-
}, _isSlot$8(
|
11674
|
-
default: () => [
|
11781
|
+
ghost: !w.value,
|
11782
|
+
disabled: w.value,
|
11783
|
+
onClick: N
|
11784
|
+
}, _isSlot$8(G = n.t("kg.cancel")) ? G : {
|
11785
|
+
default: () => [G]
|
11675
11786
|
}), createVNode(Button, {
|
11676
11787
|
type: "primary",
|
11677
|
-
disabled:
|
11678
|
-
loading:
|
11788
|
+
disabled: R.value,
|
11789
|
+
loading: D.value,
|
11679
11790
|
danger: !!s.isDeleting.value,
|
11680
|
-
onClick:
|
11681
|
-
}, _isSlot$8(
|
11682
|
-
default: () => [
|
11791
|
+
onClick: B
|
11792
|
+
}, _isSlot$8(W = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
|
11793
|
+
default: () => [W]
|
11683
11794
|
})]);
|
11684
11795
|
}
|
11685
|
-
function
|
11796
|
+
function Se() {
|
11686
11797
|
return createVNode("div", {
|
11687
|
-
title:
|
11688
|
-
}, [
|
11798
|
+
title: z.title.value
|
11799
|
+
}, [z.title.value]);
|
11689
11800
|
}
|
11690
|
-
function
|
11801
|
+
function Ce() {
|
11691
11802
|
return createVNode(KgSubmitHeader, {
|
11692
|
-
isFullscreen:
|
11693
|
-
"onUpdate:isFullscreen": (
|
11803
|
+
isFullscreen: ue.isFullscreen,
|
11804
|
+
"onUpdate:isFullscreen": (G) => ue.isFullscreen = G,
|
11694
11805
|
kgShowFullscreenButton: !u.value,
|
11695
11806
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11696
|
-
onKgCancel:
|
11807
|
+
onKgCancel: N
|
11697
11808
|
}, null);
|
11698
11809
|
}
|
11699
11810
|
return () => createVNode(Drawer, {
|
11700
|
-
visible:
|
11811
|
+
visible: re.value,
|
11701
11812
|
placement: "right",
|
11702
11813
|
closable: !1,
|
11703
11814
|
maskClosable: !1,
|
11704
11815
|
keyboard: !1,
|
11705
11816
|
destroyOnClose: !0,
|
11706
|
-
width:
|
11707
|
-
class:
|
11817
|
+
width: Z.value,
|
11818
|
+
class: _e.value,
|
11708
11819
|
"kg-frm_id": s.formID
|
11709
11820
|
}, {
|
11710
|
-
title:
|
11711
|
-
extra:
|
11712
|
-
default:
|
11713
|
-
footer:
|
11821
|
+
title: Se,
|
11822
|
+
extra: Ce,
|
11823
|
+
default: ae,
|
11824
|
+
footer: pe
|
11714
11825
|
});
|
11715
11826
|
}
|
11716
11827
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -12035,8 +12146,8 @@ const getProps$n = () => ({
|
|
12035
12146
|
return !1;
|
12036
12147
|
});
|
12037
12148
|
const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
12038
|
-
var T, A, k,
|
12039
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((k = c.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && ((
|
12149
|
+
var T, A, k, V, O, I;
|
12150
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((k = c.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && ((V = c.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((O = c.value) == null ? void 0 : O.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
|
12040
12151
|
}), d = computed(() => {
|
12041
12152
|
var T, A;
|
12042
12153
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[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);
|
@@ -12045,7 +12156,7 @@ const getProps$n = () => ({
|
|
12045
12156
|
let T = "kg-table-td";
|
12046
12157
|
return ((A = i.value) == null ? void 0 : A.align) === "center" ? T += " kg-table-td--center" : ((k = i.value) == null ? void 0 : k.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
|
12047
12158
|
}), v = computed(() => {
|
12048
|
-
var A, k,
|
12159
|
+
var A, k, V, O, I;
|
12049
12160
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
12050
12161
|
return "";
|
12051
12162
|
let T = e.kgValue;
|
@@ -12053,7 +12164,7 @@ const getProps$n = () => ({
|
|
12053
12164
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
12054
12165
|
{
|
12055
12166
|
const M = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
|
12056
|
-
M.dscFieldName ? T = ((
|
12167
|
+
M.dscFieldName ? T = ((V = e.kgRow) == null ? void 0 : V[M.dscFieldName]) || e.kgValue : T = ((O = e.kgRow) == null ? void 0 : O[`${e.kgVarName}_dsc`]) || ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}Dsc`]) || e.kgValue;
|
12057
12168
|
}
|
12058
12169
|
break;
|
12059
12170
|
}
|
@@ -12061,7 +12172,7 @@ const getProps$n = () => ({
|
|
12061
12172
|
`)), T;
|
12062
12173
|
}), y = ref(null);
|
12063
12174
|
function p(T) {
|
12064
|
-
var A, k,
|
12175
|
+
var A, k, V;
|
12065
12176
|
if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
12066
12177
|
switch ((A = i.value) == null ? void 0 : A.display_type) {
|
12067
12178
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
@@ -12070,9 +12181,9 @@ const getProps$n = () => ({
|
|
12070
12181
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
12071
12182
|
{
|
12072
12183
|
T.stopPropagation(), T.preventDefault();
|
12073
|
-
const
|
12074
|
-
(
|
12075
|
-
path:
|
12184
|
+
const O = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
|
12185
|
+
(V = a.router.value) == null || V.push({
|
12186
|
+
path: O.path,
|
12076
12187
|
query: e.kgRow
|
12077
12188
|
});
|
12078
12189
|
}
|
@@ -12103,33 +12214,33 @@ const getProps$n = () => ({
|
|
12103
12214
|
});
|
12104
12215
|
}
|
12105
12216
|
function E() {
|
12106
|
-
var T, A, k,
|
12217
|
+
var T, A, k, V, O, I, M, $, P, U;
|
12107
12218
|
if (u.value)
|
12108
12219
|
return b();
|
12109
12220
|
switch ((T = i.value) == null ? void 0 : T.display_type) {
|
12110
12221
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
12111
|
-
const
|
12222
|
+
const D = KgUtil.tryParseJSON((A = i.value) == null ? void 0 : A.display_type_properties);
|
12112
12223
|
return createVNode(KgYesOrNo, {
|
12113
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k =
|
12114
|
-
kgNilAsFalse:
|
12224
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = D.yValue) != null ? k : 1),
|
12225
|
+
kgNilAsFalse: D.nilAsFalse
|
12115
12226
|
}, null);
|
12116
12227
|
}
|
12117
12228
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
12118
|
-
const
|
12229
|
+
const D = KgUtil.tryParseJSON((V = i.value) == null ? void 0 : V.display_type_properties), w = isArrayLike(D) && D.find((R) => R.value === e.kgValue);
|
12119
12230
|
if (w) {
|
12120
|
-
const
|
12121
|
-
return
|
12122
|
-
color: (
|
12123
|
-
}, _isSlot$7(
|
12124
|
-
default: () => [
|
12231
|
+
const R = n.t(w.varName).value;
|
12232
|
+
return R ? createVNode(Tag, {
|
12233
|
+
color: (O = w.color) != null ? O : "default"
|
12234
|
+
}, _isSlot$7(R) ? R : {
|
12235
|
+
default: () => [R]
|
12125
12236
|
}) : C();
|
12126
12237
|
} else
|
12127
12238
|
return C();
|
12128
12239
|
}
|
12129
12240
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
12130
|
-
const
|
12131
|
-
if (
|
12132
|
-
const w =
|
12241
|
+
const D = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
|
12242
|
+
if (D.isTag && isArrayLike(D.tagColors)) {
|
12243
|
+
const w = D.tagColors.find((R) => R.value === e.kgValue);
|
12133
12244
|
return v.value ? createVNode(Tag, {
|
12134
12245
|
color: (M = w == null ? void 0 : w.color) != null ? M : "default"
|
12135
12246
|
}, {
|
@@ -12139,11 +12250,11 @@ const getProps$n = () => ({
|
|
12139
12250
|
return C();
|
12140
12251
|
}
|
12141
12252
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
12142
|
-
const
|
12253
|
+
const D = KgUtil.tryParseJSON(($ = i.value) == null ? void 0 : $.display_type_properties);
|
12143
12254
|
return createVNode(KgProgressA, {
|
12144
|
-
kgTextWidth:
|
12145
|
-
kgLeft: (
|
12146
|
-
kgRight: (U = e.kgRow) == null ? void 0 : U[
|
12255
|
+
kgTextWidth: D.textWidth,
|
12256
|
+
kgLeft: (P = e.kgRow) == null ? void 0 : P[D.leftColumn],
|
12257
|
+
kgRight: (U = e.kgRow) == null ? void 0 : U[D.rightColumn]
|
12147
12258
|
}, null);
|
12148
12259
|
}
|
12149
12260
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -12584,10 +12695,10 @@ const getProps$h = () => ({
|
|
12584
12695
|
var A;
|
12585
12696
|
let C, T;
|
12586
12697
|
return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((k) => {
|
12587
|
-
var
|
12698
|
+
var V;
|
12588
12699
|
return createVNode(Menu.Item, {
|
12589
12700
|
key: k.id,
|
12590
|
-
class: k.id === ((
|
12701
|
+
class: k.id === ((V = n.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
|
12591
12702
|
"kg-var_nam": k.grd_var_nam,
|
12592
12703
|
onClick: () => n.store.setCurrentVarGridMasterID(n.formID, k.id)
|
12593
12704
|
}, {
|
@@ -13120,18 +13231,18 @@ function _useColumns(e) {
|
|
13120
13231
|
return "right";
|
13121
13232
|
}
|
13122
13233
|
function A() {
|
13123
|
-
var
|
13124
|
-
return !((I = (
|
13234
|
+
var O, I, M, $;
|
13235
|
+
return !((I = (O = t == null ? void 0 : t.value) == null ? void 0 : O.KgTable) != null && I.kgDisabled || isNil(($ = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) == null ? void 0 : $.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
13125
13236
|
}
|
13126
13237
|
function k() {
|
13127
13238
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
13128
13239
|
}
|
13129
|
-
const
|
13240
|
+
const V = b();
|
13130
13241
|
return {
|
13131
13242
|
dataIndex: g,
|
13132
13243
|
title: E(),
|
13133
|
-
width:
|
13134
|
-
resizable: typeof
|
13244
|
+
width: V,
|
13245
|
+
resizable: typeof V == "number",
|
13135
13246
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
13136
13247
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
13137
13248
|
fixed: T(),
|
@@ -13143,13 +13254,13 @@ function _useColumns(e) {
|
|
13143
13254
|
"kg-var_nam": g,
|
13144
13255
|
draggable: !0
|
13145
13256
|
}),
|
13146
|
-
customCell: (
|
13257
|
+
customCell: (O) => {
|
13147
13258
|
var M;
|
13148
13259
|
const I = r.store.getVarSubmitField(r.formID, g);
|
13149
13260
|
return {
|
13150
13261
|
"kg-frm_id": r.formID,
|
13151
13262
|
"kg-var_nam": g,
|
13152
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
13263
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && O[n.id.value] === ((M = n.selectedRow.value) == null ? void 0 : M[n.id.value]) && (!!r.isCreating.value && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
|
13153
13264
|
};
|
13154
13265
|
}
|
13155
13266
|
};
|
@@ -13263,30 +13374,30 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13263
13374
|
slots: t,
|
13264
13375
|
emit: r
|
13265
13376
|
}) {
|
13266
|
-
var
|
13377
|
+
var be;
|
13267
13378
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), l = useKg(), o = useKgVar(), i = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
13268
13379
|
i.onSearch(async ({
|
13269
|
-
resetPageIndex:
|
13270
|
-
}) => (Y(
|
13271
|
-
name:
|
13272
|
-
args:
|
13380
|
+
resetPageIndex: N
|
13381
|
+
}) => (Y(N), !1)), i.onReset(async () => (Y(!0), !1)), u.store.$onAction(async ({
|
13382
|
+
name: N,
|
13383
|
+
args: B
|
13273
13384
|
}) => {
|
13274
|
-
switch (
|
13385
|
+
switch (N) {
|
13275
13386
|
case "setRowSelect":
|
13276
|
-
if (
|
13277
|
-
const q =
|
13387
|
+
if (B[0] === o.formID) {
|
13388
|
+
const q = B[1], H = B[2], J = q[u.id.value];
|
13278
13389
|
switch (!0) {
|
13279
|
-
case (
|
13280
|
-
Q([...
|
13390
|
+
case (H && !D.value.includes(J)):
|
13391
|
+
Q([...D.value, J]);
|
13281
13392
|
break;
|
13282
|
-
case (
|
13283
|
-
Q(without$1(
|
13393
|
+
case (!H && D.value.includes(J)):
|
13394
|
+
Q(without$1(D.value, J));
|
13284
13395
|
break;
|
13285
13396
|
}
|
13286
13397
|
}
|
13287
13398
|
break;
|
13288
13399
|
case "clearDatas":
|
13289
|
-
|
13400
|
+
B[0] === o.formID && (u.store.setDatas(o.formID, []), w.total = 0, x(), v.value = []);
|
13290
13401
|
break;
|
13291
13402
|
}
|
13292
13403
|
});
|
@@ -13298,287 +13409,287 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13298
13409
|
} = _useLoading(), b = ref(null);
|
13299
13410
|
_useResizeObserver(b), _useDragColumn(b, y);
|
13300
13411
|
const E = computed(() => {
|
13301
|
-
var
|
13302
|
-
return (
|
13412
|
+
var N, B;
|
13413
|
+
return (B = (N = o.varButtonSearch.value) == null ? void 0 : N.cmd) != null ? B : null;
|
13303
13414
|
}), C = computed(() => {
|
13304
|
-
var
|
13305
|
-
let
|
13415
|
+
var B, q, H, J, ee, oe, ae;
|
13416
|
+
let N = {
|
13306
13417
|
pageNo: w.pageIndex,
|
13307
13418
|
pageSize: w.pageSize,
|
13308
|
-
...
|
13309
|
-
...(q = (
|
13419
|
+
...R,
|
13420
|
+
...(q = (B = i.model) == null ? void 0 : B.value) != null ? q : {}
|
13310
13421
|
};
|
13311
|
-
return o.varButtonSearch.value && (
|
13312
|
-
...
|
13313
|
-
...KgVarUtil.parseCommandParameter((
|
13314
|
-
}), (
|
13315
|
-
...
|
13316
|
-
...KgVarUtil.parseCommandParameter((
|
13317
|
-
}), ((
|
13422
|
+
return o.varButtonSearch.value && (N = {
|
13423
|
+
...N,
|
13424
|
+
...KgVarUtil.parseCommandParameter((J = (H = o.varButtonSearch.value) == null ? void 0 : H.cmd_prm) != null ? J : "")
|
13425
|
+
}), (ee = o.varGridConfig.value) != null && ee.cmd_prm && (N = {
|
13426
|
+
...N,
|
13427
|
+
...KgVarUtil.parseCommandParameter((oe = o.varGridConfig.value.cmd_prm) != null ? oe : "")
|
13428
|
+
}), ((ae = o.varGridConfig.value) == null ? void 0 : ae.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
|
13318
13429
|
}), T = computed(() => {
|
13319
|
-
var
|
13320
|
-
if (!isNil((
|
13321
|
-
return (
|
13430
|
+
var N, B, q, H;
|
13431
|
+
if (!isNil((B = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : B.kgDisabled))
|
13432
|
+
return (H = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : H.kgDisabled;
|
13322
13433
|
if (!isNil(e.kgDisabled))
|
13323
13434
|
return e.kgDisabled;
|
13324
13435
|
}), A = computed(() => {
|
13325
|
-
var
|
13326
|
-
if (!isNil((
|
13327
|
-
return (
|
13436
|
+
var N, B, q, H;
|
13437
|
+
if (!isNil((B = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : B.kgCheckboxDisabled))
|
13438
|
+
return (H = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : H.kgCheckboxDisabled;
|
13328
13439
|
if (!isNil(e.kgCheckboxDisabled))
|
13329
13440
|
return e.kgCheckboxDisabled;
|
13330
|
-
}), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value),
|
13331
|
-
var
|
13332
|
-
return !!((
|
13441
|
+
}), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), V = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || w.total === 0), O = computed(() => {
|
13442
|
+
var N;
|
13443
|
+
return !!((N = n == null ? void 0 : n.KgTable) != null && N.expandedRowRender);
|
13333
13444
|
}), I = computed(() => {
|
13334
|
-
var
|
13335
|
-
return ((
|
13445
|
+
var N;
|
13446
|
+
return ((N = o.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1;
|
13336
13447
|
}), M = computed(() => {
|
13337
13448
|
if (!!I.value)
|
13338
13449
|
return {
|
13339
13450
|
fixed: "left",
|
13340
13451
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
13341
13452
|
hideSelectAll: !u.isMultiSelect.value,
|
13342
|
-
selectedRowKeys:
|
13453
|
+
selectedRowKeys: D,
|
13343
13454
|
preserveSelectedRowKeys: !1,
|
13344
|
-
getCheckboxProps: (
|
13345
|
-
var
|
13455
|
+
getCheckboxProps: (N) => {
|
13456
|
+
var B;
|
13346
13457
|
return {
|
13347
|
-
disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((
|
13458
|
+
disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((B = A.value) != null && B.call(A, N))
|
13348
13459
|
};
|
13349
13460
|
},
|
13350
|
-
onSelect: (
|
13351
|
-
onChange: (
|
13461
|
+
onSelect: (N) => z(N),
|
13462
|
+
onChange: (N) => u.isMultiSelect.value && Q(N)
|
13352
13463
|
};
|
13464
|
+
}), $ = computed(() => {
|
13465
|
+
var B;
|
13466
|
+
let N = "kg-table";
|
13467
|
+
return ((B = o.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (N += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (N += " 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) && (N += " kg-table--submitting"), N;
|
13353
13468
|
}), P = computed(() => {
|
13354
|
-
var
|
13355
|
-
let
|
13356
|
-
return ((
|
13357
|
-
}),
|
13358
|
-
var H;
|
13359
|
-
let K = "kg-table-bottom";
|
13360
|
-
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (K += " kg-table-bottom--border"), K;
|
13361
|
-
}), U = computed(() => u.store.getDatas(o.formID)), O = (fe = u.store.getSelectedRowKeys(o.formID)) != null ? fe : ref([]), w = reactive({
|
13469
|
+
var B;
|
13470
|
+
let N = "kg-table-bottom";
|
13471
|
+
return ((B = o.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (N += " kg-table-bottom--border"), N;
|
13472
|
+
}), U = computed(() => u.store.getDatas(o.formID)), D = (be = u.store.getSelectedRowKeys(o.formID)) != null ? be : ref([]), w = reactive({
|
13362
13473
|
pageIndex: 1,
|
13363
13474
|
pageSize: 10,
|
13364
13475
|
total: 0
|
13365
|
-
}),
|
13476
|
+
}), R = reactive({
|
13366
13477
|
column: void 0,
|
13367
13478
|
order: void 0
|
13368
|
-
}),
|
13369
|
-
|
13479
|
+
}), F = watch(u.pageSizeOption, (N) => {
|
13480
|
+
N && (setTimeout(() => F()), w.pageSize = N, m.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${m.value}`));
|
13370
13481
|
}, {
|
13371
13482
|
immediate: !0
|
13372
13483
|
});
|
13373
|
-
watch(u.pageSizeOptions, (
|
13374
|
-
|
13375
|
-
}), watch([E, u.isReadAutomatically, i.isReady], ([
|
13376
|
-
|
13484
|
+
watch(u.pageSizeOptions, (N) => {
|
13485
|
+
N.length > 0 && !N.includes(w.pageSize) && (w.pageSize = u.pageSizeOption.value);
|
13486
|
+
}), watch([E, u.isReadAutomatically, i.isReady], ([N, B, q]) => {
|
13487
|
+
N && B && q && !u.store.getIsRetrieved(o.formID) && Y(!0);
|
13377
13488
|
}, {
|
13378
13489
|
immediate: !0
|
13379
|
-
}), watch(o.isCreating, (
|
13380
|
-
|
13490
|
+
}), watch(o.isCreating, (N, B) => {
|
13491
|
+
N === !0 ? L() : N === !1 && B === !0 && K();
|
13381
13492
|
}), onUnmounted(() => {
|
13382
13493
|
u.store.dispose(o.formID);
|
13383
13494
|
});
|
13384
|
-
function
|
13495
|
+
function L() {
|
13385
13496
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
13386
|
-
const
|
13497
|
+
const N = {
|
13387
13498
|
[u.id.value]: KG_TABLE_TEMP_ID
|
13388
13499
|
};
|
13389
|
-
u.store.setDatas(o.formID, [
|
13500
|
+
u.store.setDatas(o.formID, [N, ...U.value]), u.store.setSelectedRows(o.formID, [N]);
|
13390
13501
|
}
|
13391
13502
|
}
|
13392
|
-
function
|
13393
|
-
const
|
13394
|
-
|
13503
|
+
function K() {
|
13504
|
+
const N = U.value.find((B) => B[u.id.value] === KG_TABLE_TEMP_ID);
|
13505
|
+
N && (u.store.setDatas(o.formID, without$1(U.value, N)), u.store.setSelectedRows(o.formID, []));
|
13395
13506
|
}
|
13396
|
-
function
|
13507
|
+
function x(N, B) {
|
13397
13508
|
var q;
|
13398
13509
|
if (!(!!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!M.value) {
|
13399
|
-
if (!
|
13510
|
+
if (!B) {
|
13400
13511
|
u.store.setSelectedRows(o.formID, []);
|
13401
13512
|
return;
|
13402
13513
|
}
|
13403
|
-
switch (
|
13514
|
+
switch (N == null ? void 0 : N.detail) {
|
13404
13515
|
case 1:
|
13405
13516
|
switch ((q = o.varGridConfig.value) == null ? void 0 : q.operation_on_row_click) {
|
13406
13517
|
case 0:
|
13407
13518
|
break;
|
13408
13519
|
case 1:
|
13409
|
-
u.store.setSelectedRows(o.formID, [
|
13520
|
+
u.store.setSelectedRows(o.formID, [B]);
|
13410
13521
|
break;
|
13411
13522
|
}
|
13412
13523
|
break;
|
13413
13524
|
case 2:
|
13414
13525
|
u.store.emit(o.formID, "rowDoubleClick", {
|
13415
|
-
row:
|
13526
|
+
row: B
|
13416
13527
|
});
|
13417
13528
|
break;
|
13418
13529
|
}
|
13419
13530
|
}
|
13420
13531
|
}
|
13421
|
-
function Y(
|
13532
|
+
function Y(N = !1) {
|
13422
13533
|
KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
13423
|
-
const
|
13424
|
-
|
13534
|
+
const B = watch(m, (H) => {
|
13535
|
+
H && (setTimeout(() => B()), q());
|
13425
13536
|
}, {
|
13426
13537
|
immediate: !0
|
13427
13538
|
});
|
13428
13539
|
async function q() {
|
13429
|
-
var
|
13540
|
+
var H, J, ee;
|
13430
13541
|
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u8FDB\u5165\u65B9\u6CD5.`), !E.value) {
|
13431
13542
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
13432
13543
|
VarButton: o.varButtonSearch.value
|
13433
13544
|
});
|
13434
13545
|
return;
|
13435
13546
|
}
|
13436
|
-
|
13547
|
+
N && (w.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
13437
13548
|
try {
|
13438
|
-
const
|
13549
|
+
const oe = KgUtil.parseParams(C.value, u.profileFormID.value, a), ae = ref({});
|
13439
13550
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
13440
|
-
params:
|
13441
|
-
response:
|
13442
|
-
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (
|
13551
|
+
params: oe,
|
13552
|
+
response: ae
|
13553
|
+
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (ae.value = await httpClient().request({
|
13443
13554
|
method: "GET",
|
13444
13555
|
url: E.value,
|
13445
|
-
params:
|
13556
|
+
params: oe
|
13446
13557
|
}, {
|
13447
13558
|
successMessageMode: "none"
|
13448
13559
|
}), KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
|
13449
|
-
let
|
13560
|
+
let pe = ref([]), Se = ref(0);
|
13450
13561
|
switch (!0) {
|
13451
|
-
case !
|
13452
|
-
|
13562
|
+
case !ae.value:
|
13563
|
+
pe.value = [], Se.value = 0;
|
13453
13564
|
break;
|
13454
|
-
case isArrayLike(
|
13455
|
-
|
13565
|
+
case isArrayLike(ae.value):
|
13566
|
+
pe.value = ae.value, Se.value = ae.value.length;
|
13456
13567
|
break;
|
13457
|
-
case ("total" in
|
13458
|
-
|
13568
|
+
case ("total" in ae.value && "records" in ae.value):
|
13569
|
+
pe.value = (H = ae.value.records) != null ? H : [], Se.value = (J = ae.value.total) != null ? J : 0;
|
13459
13570
|
break;
|
13460
13571
|
}
|
13461
13572
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
13462
|
-
datas:
|
13463
|
-
total:
|
13464
|
-
setDatas(
|
13465
|
-
u.store.setDatas(o.formID,
|
13573
|
+
datas: pe,
|
13574
|
+
total: Se,
|
13575
|
+
setDatas(Ce) {
|
13576
|
+
u.store.setDatas(o.formID, Ce);
|
13466
13577
|
}
|
13467
|
-
}), u.store.setDatas(o.formID,
|
13468
|
-
page:
|
13469
|
-
datas:
|
13470
|
-
setDatas(
|
13471
|
-
u.store.setDatas(o.formID,
|
13578
|
+
}), u.store.setDatas(o.formID, pe.value), w.total = Se.value, x(), v.value = [], await nextTick(), ((ee = o.varGridConfig.value) == null ? void 0 : ee.check_first_row_after_retrieve) === 1 && pe.value.length > 0 && u.store.setSelectedRows(o.formID, [pe.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
13579
|
+
page: ae.value,
|
13580
|
+
datas: pe,
|
13581
|
+
setDatas(Ce) {
|
13582
|
+
u.store.setDatas(o.formID, Ce);
|
13472
13583
|
}
|
13473
13584
|
}), u.store.setIsRetrieved(o.formID, !0);
|
13474
|
-
} catch (
|
13475
|
-
throw
|
13585
|
+
} catch (oe) {
|
13586
|
+
throw oe;
|
13476
13587
|
} finally {
|
13477
13588
|
u.store.setIsRetrieving(o.formID, !1);
|
13478
13589
|
}
|
13479
13590
|
}
|
13480
13591
|
}
|
13481
|
-
function Q(
|
13482
|
-
u.store.setSelectedRows(o.formID,
|
13592
|
+
function Q(N) {
|
13593
|
+
u.store.setSelectedRows(o.formID, N.map((B) => {
|
13483
13594
|
var q;
|
13484
|
-
return (q = U.value) == null ? void 0 : q.find((
|
13485
|
-
}).filter((
|
13595
|
+
return (q = U.value) == null ? void 0 : q.find((H) => H[u.id.value] === B);
|
13596
|
+
}).filter((B) => !!B));
|
13486
13597
|
}
|
13487
|
-
function z(
|
13488
|
-
var
|
13598
|
+
function z(N) {
|
13599
|
+
var B, q;
|
13489
13600
|
switch (u.isMultiSelect.value) {
|
13490
13601
|
case !0:
|
13491
13602
|
{
|
13492
|
-
const
|
13493
|
-
|
13603
|
+
const H = N[u.id.value];
|
13604
|
+
D.value.includes(H) ? D.value = without$1(D.value, H) : D.value = [...(B = D.value) != null ? B : [], H];
|
13494
13605
|
}
|
13495
13606
|
break;
|
13496
13607
|
case !1:
|
13497
13608
|
{
|
13498
|
-
const
|
13499
|
-
(q =
|
13609
|
+
const H = N[u.id.value];
|
13610
|
+
(q = D.value) != null && q.includes(H) ? D.value = [] : D.value = [H];
|
13500
13611
|
}
|
13501
13612
|
break;
|
13502
13613
|
}
|
13503
|
-
u.store.setSelectedRows(o.formID,
|
13504
|
-
var
|
13505
|
-
return (
|
13506
|
-
}).filter((
|
13614
|
+
u.store.setSelectedRows(o.formID, D.value.map((H) => {
|
13615
|
+
var J;
|
13616
|
+
return (J = U.value) == null ? void 0 : J.find((ee) => ee[u.id.value] === H);
|
13617
|
+
}).filter((H) => !!H));
|
13507
13618
|
}
|
13508
|
-
function Z(
|
13509
|
-
|
13619
|
+
function Z(N, B) {
|
13620
|
+
B.width = N, o.store.setVarGridDetailWidth(o.formID, B.dataIndex, N);
|
13510
13621
|
}
|
13511
|
-
async function re(
|
13512
|
-
var
|
13513
|
-
switch (
|
13622
|
+
async function re(N, B, q, H) {
|
13623
|
+
var J;
|
13624
|
+
switch (H.action) {
|
13514
13625
|
case "sort":
|
13515
13626
|
{
|
13516
13627
|
await nextTick();
|
13517
|
-
let
|
13518
|
-
|
13628
|
+
let ee = q;
|
13629
|
+
ee.order ? (R.column = (J = ee.field) != null ? J : void 0, R.order = ee.order === "ascend" ? "asc" : ee.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), Y(!0);
|
13519
13630
|
}
|
13520
13631
|
break;
|
13521
13632
|
}
|
13522
13633
|
}
|
13523
|
-
function
|
13524
|
-
var
|
13525
|
-
const q =
|
13526
|
-
switch ((
|
13634
|
+
function ue(N, B) {
|
13635
|
+
var H;
|
13636
|
+
const q = B[u.id.value];
|
13637
|
+
switch ((H = o.varGridConfig.value) == null ? void 0 : H.expand_accordion_flg) {
|
13527
13638
|
case 0:
|
13528
|
-
|
13639
|
+
N ? v.value = uniq([...v.value, q]) : v.value = without$1(v.value, q);
|
13529
13640
|
break;
|
13530
13641
|
default:
|
13531
|
-
|
13642
|
+
N ? v.value = [q] : v.value = [];
|
13532
13643
|
break;
|
13533
13644
|
}
|
13534
13645
|
}
|
13535
|
-
function
|
13536
|
-
|
13646
|
+
function _e(N, B) {
|
13647
|
+
B !== w.pageSize ? (w.pageIndex = 1, w.pageSize = B) : w.pageIndex = N, Y();
|
13537
13648
|
}
|
13538
|
-
function
|
13539
|
-
u.store.setSelectedRows(o.formID, [
|
13649
|
+
function he(N) {
|
13650
|
+
u.store.setSelectedRows(o.formID, [N].map((B) => {
|
13540
13651
|
var q;
|
13541
|
-
return (q = U.value) == null ? void 0 : q.find((
|
13542
|
-
}).filter((
|
13652
|
+
return (q = U.value) == null ? void 0 : q.find((H) => H[u.id.value] === B[u.id.value]);
|
13653
|
+
}).filter((B) => !!B)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
13543
13654
|
}
|
13544
|
-
function
|
13545
|
-
title:
|
13546
|
-
column:
|
13655
|
+
function ge({
|
13656
|
+
title: N,
|
13657
|
+
column: B
|
13547
13658
|
}) {
|
13548
|
-
switch (
|
13659
|
+
switch (B.dataIndex) {
|
13549
13660
|
case "index":
|
13550
13661
|
return createVNode(KgTableSetting, {
|
13551
13662
|
kgDisabled: T.value
|
13552
13663
|
}, null);
|
13553
13664
|
default:
|
13554
13665
|
return createVNode("pre", {
|
13555
|
-
title:
|
13556
|
-
}, [
|
13666
|
+
title: N
|
13667
|
+
}, [N]);
|
13557
13668
|
}
|
13558
13669
|
}
|
13559
|
-
function
|
13560
|
-
var
|
13561
|
-
return (
|
13670
|
+
function se() {
|
13671
|
+
var N;
|
13672
|
+
return (N = n == null ? void 0 : n.KgTable) != null && N["summary.bodyCell"] ? createVNode(TableSummary, {
|
13562
13673
|
fixed: "bottom"
|
13563
13674
|
}, {
|
13564
13675
|
default: () => [createVNode(TableSummary.Row, null, {
|
13565
|
-
default: () => [
|
13676
|
+
default: () => [O.value && createVNode(TableSummary.Cell, {
|
13566
13677
|
index: 0
|
13567
13678
|
}, null), I.value && createVNode(TableSummary.Cell, {
|
13568
|
-
index:
|
13569
|
-
}, null), y.value.map((
|
13570
|
-
const
|
13571
|
-
let
|
13572
|
-
return
|
13573
|
-
index:
|
13574
|
-
align:
|
13679
|
+
index: O.value ? 1 : 0
|
13680
|
+
}, null), y.value.map((B, q) => {
|
13681
|
+
const H = o.store.getVarGridDetail(o.formID, B.dataIndex), J = (() => ["left", "center", "right"].includes((H == null ? void 0 : H.align) || "") ? H == null ? void 0 : H.align : "left")();
|
13682
|
+
let ee = q;
|
13683
|
+
return O.value && I.value ? ee += 2 : (O.value || I.value) && (ee += 1), createVNode(TableSummary.Cell, {
|
13684
|
+
index: ee,
|
13685
|
+
align: J
|
13575
13686
|
}, {
|
13576
13687
|
default: () => {
|
13577
|
-
var
|
13578
|
-
return [(
|
13579
|
-
column:
|
13580
|
-
index:
|
13581
|
-
varGridDetail:
|
13688
|
+
var oe, ae;
|
13689
|
+
return [(ae = (oe = n == null ? void 0 : n.KgTable) == null ? void 0 : oe["summary.bodyCell"]) == null ? void 0 : ae.call(oe, {
|
13690
|
+
column: B,
|
13691
|
+
index: ee,
|
13692
|
+
varGridDetail: H
|
13582
13693
|
})];
|
13583
13694
|
}
|
13584
13695
|
});
|
@@ -13586,51 +13697,51 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13586
13697
|
})]
|
13587
13698
|
}) : null;
|
13588
13699
|
}
|
13589
|
-
function
|
13590
|
-
column:
|
13591
|
-
index:
|
13700
|
+
function fe({
|
13701
|
+
column: N,
|
13702
|
+
index: B,
|
13592
13703
|
record: q,
|
13593
|
-
text:
|
13594
|
-
value:
|
13704
|
+
text: H,
|
13705
|
+
value: J
|
13595
13706
|
}) {
|
13596
|
-
var
|
13597
|
-
let
|
13598
|
-
|
13599
|
-
index:
|
13707
|
+
var ae;
|
13708
|
+
let ee = "";
|
13709
|
+
N.customRender ? ee = N.customRender({
|
13710
|
+
index: B,
|
13600
13711
|
record: q,
|
13601
|
-
column:
|
13602
|
-
text:
|
13603
|
-
value:
|
13604
|
-
renderIndex:
|
13605
|
-
}) :
|
13606
|
-
const
|
13712
|
+
column: N,
|
13713
|
+
text: H,
|
13714
|
+
value: J,
|
13715
|
+
renderIndex: B
|
13716
|
+
}) : ee = J;
|
13717
|
+
const oe = createVNode(KgTableCell, {
|
13607
13718
|
kgRow: q,
|
13608
|
-
kgValue:
|
13609
|
-
kgVarName:
|
13610
|
-
onKgUpdateLinkClick: () =>
|
13719
|
+
kgValue: ee,
|
13720
|
+
kgVarName: N.dataIndex,
|
13721
|
+
onKgUpdateLinkClick: () => he(q)
|
13611
13722
|
}, null);
|
13612
|
-
if ((
|
13613
|
-
const
|
13723
|
+
if ((ae = n == null ? void 0 : n.KgTable) != null && ae.bodyCell) {
|
13724
|
+
const pe = N.dataIndex ? o.store.getVarGridDetail(o.formID, N.dataIndex) : null;
|
13614
13725
|
return n.KgTable.bodyCell({
|
13615
|
-
column:
|
13616
|
-
index:
|
13726
|
+
column: N,
|
13727
|
+
index: B,
|
13617
13728
|
record: q,
|
13618
|
-
text:
|
13619
|
-
value:
|
13729
|
+
text: H,
|
13730
|
+
value: J,
|
13620
13731
|
row: q,
|
13621
|
-
varGridDetail:
|
13622
|
-
defaultRender:
|
13732
|
+
varGridDetail: pe,
|
13733
|
+
defaultRender: oe
|
13623
13734
|
});
|
13624
13735
|
} else
|
13625
|
-
return
|
13736
|
+
return oe;
|
13626
13737
|
}
|
13627
|
-
function
|
13738
|
+
function ve() {
|
13628
13739
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? l.t("kg.KgTable.emptyText") : l.t("kg.emptyText");
|
13629
13740
|
}
|
13630
13741
|
return () => {
|
13631
|
-
var
|
13742
|
+
var N, B, q;
|
13632
13743
|
return createVNode("div", {
|
13633
|
-
class:
|
13744
|
+
class: $.value,
|
13634
13745
|
"kg-frm_id": o.formID,
|
13635
13746
|
ref: b
|
13636
13747
|
}, [createVNode(Table, {
|
@@ -13646,31 +13757,31 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13646
13757
|
dataSource: U.value,
|
13647
13758
|
loading: g.value,
|
13648
13759
|
rowKey: u.id.value,
|
13649
|
-
rowClassName: (
|
13760
|
+
rowClassName: (B = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : B.kgRowClassName,
|
13650
13761
|
expandColumnWidth: 28,
|
13651
13762
|
expandedRowKeys: v.value,
|
13652
13763
|
rowSelection: M.value,
|
13653
|
-
customRow: (
|
13654
|
-
onClick: (
|
13764
|
+
customRow: (H) => ({
|
13765
|
+
onClick: (J) => x(J, H)
|
13655
13766
|
}),
|
13656
13767
|
onResizeColumn: Z,
|
13657
13768
|
onChange: re,
|
13658
|
-
onExpand:
|
13769
|
+
onExpand: ue
|
13659
13770
|
}, {
|
13660
|
-
headerCell:
|
13661
|
-
bodyCell:
|
13662
|
-
emptyText:
|
13771
|
+
headerCell: ge,
|
13772
|
+
bodyCell: fe,
|
13773
|
+
emptyText: ve,
|
13663
13774
|
expandedRowRender: (q = n == null ? void 0 : n.KgTable) == null ? void 0 : q.expandedRowRender,
|
13664
|
-
summary:
|
13775
|
+
summary: se
|
13665
13776
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
13666
|
-
class:
|
13777
|
+
class: P.value
|
13667
13778
|
}, [createVNode("div", {
|
13668
13779
|
class: "left"
|
13669
13780
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
13670
|
-
kgShowClearCheck:
|
13781
|
+
kgShowClearCheck: D.value.length > 0,
|
13671
13782
|
kgShowClearTable: w.total > 0,
|
13672
|
-
kgShowLocate:
|
13673
|
-
kgTotal:
|
13783
|
+
kgShowLocate: D.value.length === 1,
|
13784
|
+
kgTotal: D.value.length,
|
13674
13785
|
kgDisabled: k.value
|
13675
13786
|
}, null)]), createVNode("div", {
|
13676
13787
|
class: "right"
|
@@ -13678,21 +13789,21 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13678
13789
|
size: "default",
|
13679
13790
|
current: w.pageIndex,
|
13680
13791
|
pageSize: w.pageSize,
|
13681
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
13792
|
+
pageSizeOptions: u.pageSizeOptions.value.map((H) => String(H)),
|
13682
13793
|
total: w.total,
|
13683
13794
|
showSizeChanger: !0,
|
13684
13795
|
showQuickJumper: !1,
|
13685
13796
|
hideOnSinglePage: !1,
|
13686
|
-
disabled:
|
13797
|
+
disabled: V.value,
|
13687
13798
|
locale: {
|
13688
13799
|
page: ""
|
13689
13800
|
},
|
13690
|
-
showTotal: (
|
13691
|
-
from:
|
13692
|
-
to:
|
13693
|
-
total:
|
13801
|
+
showTotal: (H, J) => l.t("kg.KgTable.totalText", {
|
13802
|
+
from: J[0],
|
13803
|
+
to: J[1],
|
13804
|
+
total: H
|
13694
13805
|
}),
|
13695
|
-
onChange: (
|
13806
|
+
onChange: (H, J) => _e(H, J)
|
13696
13807
|
}, null)])])]);
|
13697
13808
|
};
|
13698
13809
|
}
|
@@ -13917,8 +14028,8 @@ const KgButtonCreate = defineComponent({
|
|
13917
14028
|
attrs: a
|
13918
14029
|
}) {
|
13919
14030
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13920
|
-
var C, T, A, k,
|
13921
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((A = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((
|
14031
|
+
var C, T, A, k, V, O, I, M;
|
14032
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((A = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((O = (V = o.selectedRows.value) == null ? void 0 : V.length) != null ? O : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13922
14033
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
13923
14034
|
async function m() {
|
13924
14035
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -14117,8 +14228,8 @@ const KgButtonCreate = defineComponent({
|
|
14117
14228
|
...KgVarUtil.parseCommandParameter((C = (E = o.value) == null ? void 0 : E.cmd_prm) != null ? C : "")
|
14118
14229
|
}), g;
|
14119
14230
|
}), d = computed(() => {
|
14120
|
-
var g, b, E, C, T, A, k,
|
14121
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !a.p((
|
14231
|
+
var g, b, E, C, T, A, k, V;
|
14232
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !a.p((V = o.value) == null ? void 0 : V.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14122
14233
|
}), m = ref(!1);
|
14123
14234
|
async function v(g) {
|
14124
14235
|
if (!i.value)
|
@@ -14282,35 +14393,35 @@ const KgButtonCreate = defineComponent({
|
|
14282
14393
|
}
|
14283
14394
|
let m = null;
|
14284
14395
|
const v = async () => {
|
14285
|
-
var E, C, T, A, k,
|
14396
|
+
var E, C, T, A, k, V;
|
14286
14397
|
m == null || m.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
14287
14398
|
const b = s.selectedRows.value;
|
14288
14399
|
try {
|
14289
|
-
const
|
14400
|
+
const O = await httpClient().request({
|
14290
14401
|
method: (C = (E = e.kgButton) == null ? void 0 : E.cmd_method) != null ? C : "POST",
|
14291
14402
|
url: d,
|
14292
14403
|
params: KgVarUtil.parseCommandParameter((A = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? A : ""),
|
14293
14404
|
data: b != null ? b : []
|
14294
14405
|
});
|
14295
14406
|
if (((k = e.kgButton) == null ? void 0 : k.reload_all_after_done_flg) === 1) {
|
14296
|
-
if (((
|
14407
|
+
if (((V = e.kgButton) == null ? void 0 : V.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
14297
14408
|
datas: M
|
14298
14409
|
}) => {
|
14299
|
-
const
|
14300
|
-
return
|
14410
|
+
const $ = M.value, P = intersectionWith$1($, b != null ? b : [], (U, D) => (U == null ? void 0 : U[s.id.value]) === (D == null ? void 0 : D[s.id.value]));
|
14411
|
+
return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
|
14301
14412
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
14302
14413
|
button: e.kgButton,
|
14303
|
-
data:
|
14414
|
+
data: O
|
14304
14415
|
}))
|
14305
14416
|
return;
|
14306
14417
|
a.search(!0);
|
14307
14418
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
14308
14419
|
button: e.kgButton,
|
14309
|
-
data:
|
14420
|
+
data: O
|
14310
14421
|
}))
|
14311
14422
|
return;
|
14312
|
-
} catch (
|
14313
|
-
console.error(
|
14423
|
+
} catch (O) {
|
14424
|
+
console.error(O);
|
14314
14425
|
} finally {
|
14315
14426
|
r.store.setIsOtherRequesting(r.formID, !1), m == null || m.hideLoading();
|
14316
14427
|
}
|
@@ -14410,8 +14521,8 @@ const KgButtonCreate = defineComponent({
|
|
14410
14521
|
}
|
14411
14522
|
});
|
14412
14523
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
14413
|
-
var C, T, A, k,
|
14414
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((A = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((
|
14524
|
+
var C, T, A, k, V, O, I, M;
|
14525
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((A = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((O = (V = l.selectedRows.value) == null ? void 0 : V.length) != null ? O : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14415
14526
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
14416
14527
|
async function m() {
|
14417
14528
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -15177,7 +15288,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15177
15288
|
row: C,
|
15178
15289
|
model: T
|
15179
15290
|
}) => {
|
15180
|
-
var k,
|
15291
|
+
var k, V, O;
|
15181
15292
|
const A = o.store.getSystemVarProfileDetails(o.formID);
|
15182
15293
|
switch (i.value = A ? cloneDeep(unref(toRaw(A))) : [], !0) {
|
15183
15294
|
case g: {
|
@@ -15194,17 +15305,17 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15194
15305
|
id: C.id
|
15195
15306
|
}
|
15196
15307
|
});
|
15197
|
-
i.value = i.value.map((
|
15308
|
+
i.value = i.value.map(($) => {
|
15198
15309
|
var U;
|
15199
|
-
const
|
15200
|
-
return
|
15310
|
+
const P = (U = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : U.find((D) => D.var_nam === $.var_nam);
|
15311
|
+
return P ? {
|
15312
|
+
...$,
|
15201
15313
|
...P,
|
15202
|
-
|
15203
|
-
|
15204
|
-
} : P;
|
15314
|
+
id: $.id
|
15315
|
+
} : $;
|
15205
15316
|
});
|
15206
|
-
const M = (
|
15207
|
-
c.value = i.value.filter((
|
15317
|
+
const M = (V = (k = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : k.map(($) => $.var_nam)) != null ? V : [];
|
15318
|
+
c.value = i.value.filter(($) => M.includes($.var_nam)).map(($) => $.id);
|
15208
15319
|
} catch (I) {
|
15209
15320
|
throw I;
|
15210
15321
|
} finally {
|
@@ -15217,7 +15328,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15217
15328
|
}
|
15218
15329
|
switch (!0) {
|
15219
15330
|
case E: {
|
15220
|
-
T.value.prf_var_nam = ((
|
15331
|
+
T.value.prf_var_nam = ((O = T.value.prf_var_nam) != null ? O : "") + "_COPY";
|
15221
15332
|
break;
|
15222
15333
|
}
|
15223
15334
|
}
|
@@ -15287,9 +15398,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15287
15398
|
onItemSelectAll: T,
|
15288
15399
|
onItemSelect: A
|
15289
15400
|
}) => {
|
15290
|
-
const k = b.sort((
|
15401
|
+
const k = b.sort((V, O) => {
|
15291
15402
|
var I, M;
|
15292
|
-
return ((I =
|
15403
|
+
return ((I = V.srtseq) != null ? I : 0) - ((M = O.srtseq) != null ? M : 0);
|
15293
15404
|
});
|
15294
15405
|
return u.value = k, createVNode(Table, {
|
15295
15406
|
pagination: !1,
|
@@ -15302,11 +15413,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15302
15413
|
columns: g === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
15303
15414
|
rowKey: "id",
|
15304
15415
|
dataSource: k,
|
15305
|
-
customRow: (
|
15306
|
-
let
|
15307
|
-
onClick: (I) => p(I,
|
15416
|
+
customRow: (V) => {
|
15417
|
+
let O = {
|
15418
|
+
onClick: (I) => p(I, V, g, E)
|
15308
15419
|
};
|
15309
|
-
return g === "right" && (
|
15420
|
+
return g === "right" && (O["kg-host-frm_id"] = o.formID, O["kg-var_nam"] = V.var_nam), O;
|
15310
15421
|
},
|
15311
15422
|
rowSelection: v({
|
15312
15423
|
disabled: C,
|
@@ -15333,9 +15444,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15333
15444
|
disabled: g || T.disabled
|
15334
15445
|
}),
|
15335
15446
|
onSelectAll(T, A) {
|
15336
|
-
const k = A.filter((
|
15337
|
-
key:
|
15338
|
-
}) =>
|
15447
|
+
const k = A.filter((V) => !V.disabled).map(({
|
15448
|
+
key: V
|
15449
|
+
}) => V);
|
15339
15450
|
E(k, T);
|
15340
15451
|
},
|
15341
15452
|
onSelect({
|
@@ -15550,23 +15661,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15550
15661
|
});
|
15551
15662
|
_useLayoutHeaderResizeObserver();
|
15552
15663
|
const p = _useFormModel(v, y), g = computed(() => {
|
15553
|
-
var
|
15554
|
-
if (!isNil((
|
15664
|
+
var K, x, Y, Q;
|
15665
|
+
if (!isNil((x = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : x.kgDisabled))
|
15555
15666
|
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
|
15556
15667
|
if (!isNil(e.kgDisabled))
|
15557
15668
|
return e.kgDisabled;
|
15558
15669
|
}), b = computed(() => {
|
15559
|
-
var
|
15560
|
-
return !!(g.value || l.isRetrieving.value || ((
|
15670
|
+
var K, x;
|
15671
|
+
return !!(g.value || l.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
15561
15672
|
}), E = computed(() => !!(g.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), C = computed(() => !!(g.value || l.isRetrieving.value)), T = ref({
|
15562
15673
|
visible: !1
|
15563
15674
|
}), A = computed(() => y.value.kgHeight === m.value), k = computed(() => {
|
15564
|
-
var
|
15565
|
-
if (n.t((
|
15675
|
+
var K, x, Y;
|
15676
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
|
15566
15677
|
return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
|
15567
|
-
}),
|
15568
|
-
var
|
15569
|
-
switch ((
|
15678
|
+
}), V = computed(() => {
|
15679
|
+
var K;
|
15680
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
15570
15681
|
case 1:
|
15571
15682
|
return !0;
|
15572
15683
|
case 0:
|
@@ -15574,56 +15685,56 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15574
15685
|
default:
|
15575
15686
|
return !0;
|
15576
15687
|
}
|
15577
|
-
}),
|
15578
|
-
let
|
15579
|
-
return o.value && (
|
15688
|
+
}), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), M = computed(() => {
|
15689
|
+
let K = "kg-search";
|
15690
|
+
return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
15580
15691
|
});
|
15581
|
-
async function
|
15692
|
+
async function $(K = !1) {
|
15582
15693
|
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), b.value) {
|
15583
15694
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
|
15584
15695
|
return;
|
15585
15696
|
}
|
15586
15697
|
o.value ? v.value && v.value.validate().then(async () => {
|
15587
15698
|
await s.store.emit(n.formID, "search", {
|
15588
|
-
resetPageIndex:
|
15699
|
+
resetPageIndex: K
|
15589
15700
|
});
|
15590
|
-
}).catch((
|
15701
|
+
}).catch((x) => {
|
15591
15702
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
15592
|
-
e:
|
15703
|
+
e: x
|
15593
15704
|
});
|
15594
15705
|
}) : await s.store.emit(n.formID, "search", {
|
15595
|
-
resetPageIndex:
|
15706
|
+
resetPageIndex: K
|
15596
15707
|
});
|
15597
15708
|
}
|
15598
|
-
s.store.setSearchFn(n.formID,
|
15599
|
-
async function
|
15709
|
+
s.store.setSearchFn(n.formID, $);
|
15710
|
+
async function P() {
|
15600
15711
|
p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
15601
15712
|
await s.store.emit(n.formID, "reset", {});
|
15602
|
-
}).catch((
|
15713
|
+
}).catch((K) => {
|
15603
15714
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
15604
|
-
e:
|
15715
|
+
e: K
|
15605
15716
|
});
|
15606
15717
|
}) : await s.store.emit(n.formID, "reset", {});
|
15607
15718
|
}
|
15608
|
-
s.store.setResetFn(n.formID,
|
15719
|
+
s.store.setResetFn(n.formID, P);
|
15609
15720
|
function U() {
|
15610
|
-
return
|
15721
|
+
return $(!0), Promise.resolve(!0);
|
15611
15722
|
}
|
15612
|
-
function
|
15613
|
-
var
|
15723
|
+
function D() {
|
15724
|
+
var K;
|
15614
15725
|
return createVNode("div", {
|
15615
15726
|
class: "title",
|
15616
|
-
onClick:
|
15617
|
-
}, [((
|
15727
|
+
onClick: L
|
15728
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
15618
15729
|
class: "kg-search-title-left",
|
15619
|
-
onClick: (
|
15620
|
-
|
15730
|
+
onClick: (x) => {
|
15731
|
+
x.stopPropagation(), x.preventDefault();
|
15621
15732
|
}
|
15622
15733
|
}, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
15623
15734
|
}
|
15624
15735
|
function w() {
|
15625
|
-
var
|
15626
|
-
return ((Y = (
|
15736
|
+
var K, x, Y, Q;
|
15737
|
+
return ((Y = (x = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : x.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
15627
15738
|
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
15628
15739
|
"onUpdate:value": (z) => n.store.setCurrentVarProfileMasterID(n.formID, z),
|
15629
15740
|
disabled: E.value,
|
@@ -15654,13 +15765,13 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15654
15765
|
hostFormID: n.formID
|
15655
15766
|
}, null)]);
|
15656
15767
|
}
|
15657
|
-
function
|
15658
|
-
var
|
15659
|
-
return createVNode(Fragment, null, [w(), !(((
|
15768
|
+
function R() {
|
15769
|
+
var K, x, Y, Q, z;
|
15770
|
+
return createVNode(Fragment, null, [w(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
|
15660
15771
|
type: "primary",
|
15661
15772
|
ghost: !b.value,
|
15662
15773
|
disabled: b.value,
|
15663
|
-
onClick:
|
15774
|
+
onClick: P,
|
15664
15775
|
class: "kg-search-btn-reset"
|
15665
15776
|
}, {
|
15666
15777
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
@@ -15670,31 +15781,31 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15670
15781
|
kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
|
15671
15782
|
kgText: k.value,
|
15672
15783
|
kgColor: (z = n.varButtonSearch.value) == null ? void 0 : z.color,
|
15673
|
-
kgPrimary:
|
15784
|
+
kgPrimary: V.value,
|
15674
15785
|
kgLoading: C.value,
|
15675
15786
|
onKgClick: U
|
15676
15787
|
}, null)]);
|
15677
15788
|
}
|
15678
|
-
function
|
15789
|
+
function F() {
|
15679
15790
|
return createVNode(Spin, {
|
15680
15791
|
spinning: I.value
|
15681
15792
|
}, {
|
15682
15793
|
default: () => {
|
15683
|
-
var
|
15794
|
+
var K;
|
15684
15795
|
return [createVNode(KgForm, {
|
15685
15796
|
ref: v,
|
15686
|
-
model: (
|
15797
|
+
model: (K = s.model.value) != null ? K : {}
|
15687
15798
|
}, {
|
15688
15799
|
default: () => [createVNode(Row, {
|
15689
15800
|
gutter: 6
|
15690
15801
|
}, {
|
15691
15802
|
default: () => {
|
15692
|
-
var
|
15693
|
-
return [(
|
15803
|
+
var x;
|
15804
|
+
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((Y) => createVNode(KgForm.Item, {
|
15694
15805
|
key: Y.var_nam,
|
15695
15806
|
kgVarName: Y.var_nam,
|
15696
15807
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
15697
|
-
onKgSubmit: () =>
|
15808
|
+
onKgSubmit: () => $(!0)
|
15698
15809
|
}, null))];
|
15699
15810
|
}
|
15700
15811
|
})]
|
@@ -15702,12 +15813,12 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15702
15813
|
}
|
15703
15814
|
});
|
15704
15815
|
}
|
15705
|
-
function
|
15816
|
+
function L() {
|
15706
15817
|
A.value ? y.value.kgHeight = u.value : y.value.kgHeight = m.value;
|
15707
15818
|
}
|
15708
15819
|
return () => createVNode(KgResizable, {
|
15709
15820
|
kgHeight: y.value.kgHeight,
|
15710
|
-
"onUpdate:kgHeight": (
|
15821
|
+
"onUpdate:kgHeight": (K) => y.value.kgHeight = K,
|
15711
15822
|
kgMinHeight: m.value,
|
15712
15823
|
kgMaxHeight: d.value,
|
15713
15824
|
kgDisabled: !i.value,
|
@@ -15725,17 +15836,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15725
15836
|
default: () => [createVNode("div", {
|
15726
15837
|
class: "ant-collapse-header"
|
15727
15838
|
}, [createVNode(Spin, {
|
15728
|
-
spinning:
|
15839
|
+
spinning: O.value
|
15729
15840
|
}, {
|
15730
|
-
default: () => [
|
15841
|
+
default: () => [D(), createVNode("div", {
|
15731
15842
|
class: "ant-collapse-extra"
|
15732
|
-
}, [
|
15843
|
+
}, [R()])]
|
15733
15844
|
})])]
|
15734
15845
|
}), createVNode("div", {
|
15735
15846
|
class: "ant-collapse-content ant-collapse-content-active"
|
15736
15847
|
}, [createVNode("div", {
|
15737
15848
|
class: "ant-collapse-content-box"
|
15738
|
-
}, [
|
15849
|
+
}, [F()])])])])]
|
15739
15850
|
});
|
15740
15851
|
}
|
15741
15852
|
});
|
@@ -16206,27 +16317,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16206
16317
|
columnWidth: 32,
|
16207
16318
|
hideSelectAll: !0,
|
16208
16319
|
selectedRowKeys: d,
|
16209
|
-
onSelect: (
|
16320
|
+
onSelect: (P) => V(P)
|
16210
16321
|
}), v = ref({
|
16211
16322
|
visible: !1
|
16212
16323
|
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), p = computed(() => {
|
16213
|
-
var
|
16214
|
-
return !!u.value || ((
|
16324
|
+
var P;
|
16325
|
+
return !!u.value || ((P = a.getSelectedVarCatalog) == null ? void 0 : P.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
16215
16326
|
}), g = computed(() => !!(!unref(u) || unref(n) || unref(s))), b = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
16216
|
-
watch(() => a.getSelectedVar, (
|
16217
|
-
|
16327
|
+
watch(() => a.getSelectedVar, (P) => {
|
16328
|
+
P ? E() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
16218
16329
|
}, {
|
16219
16330
|
immediate: !0
|
16220
|
-
}), watch(() => a.getSelectedVarCatalog, async (
|
16221
|
-
var U,
|
16222
|
-
i.value.var_text = (U =
|
16331
|
+
}), watch(() => a.getSelectedVarCatalog, async (P) => {
|
16332
|
+
var U, D;
|
16333
|
+
i.value.var_text = (U = P == null ? void 0 : P.var_text) != null ? U : "", (D = o.value) == null || D.clearValidate();
|
16223
16334
|
});
|
16224
|
-
async function E(
|
16225
|
-
var U,
|
16335
|
+
async function E(P = !1) {
|
16336
|
+
var U, D, w;
|
16226
16337
|
n.value = !0;
|
16227
16338
|
try {
|
16228
16339
|
const {
|
16229
|
-
records:
|
16340
|
+
records: R
|
16230
16341
|
} = await List({
|
16231
16342
|
params: {
|
16232
16343
|
pageNo: 1,
|
@@ -16237,27 +16348,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16237
16348
|
order: "asc"
|
16238
16349
|
}
|
16239
16350
|
});
|
16240
|
-
if (u.value = null, c.value =
|
16241
|
-
const
|
16242
|
-
var
|
16243
|
-
return
|
16351
|
+
if (u.value = null, c.value = R != null ? R : [], P) {
|
16352
|
+
const F = c.value.find((L) => {
|
16353
|
+
var K;
|
16354
|
+
return L.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
16244
16355
|
});
|
16245
|
-
a.setSelectedVarCatalog(
|
16356
|
+
a.setSelectedVarCatalog(F != null ? F : null), d.value = F != null && F.id ? [F.id] : [];
|
16246
16357
|
} else
|
16247
|
-
a.setSelectedVarCatalog((
|
16248
|
-
} catch (
|
16249
|
-
KgLogger.debug(
|
16358
|
+
a.setSelectedVarCatalog((D = c.value[0]) != null ? D : null), d.value = (w = c.value[0]) != null && w.id ? [c.value[0].id] : [];
|
16359
|
+
} catch (R) {
|
16360
|
+
KgLogger.debug(R == null ? void 0 : R.message);
|
16250
16361
|
} finally {
|
16251
16362
|
n.value = !1;
|
16252
16363
|
}
|
16253
16364
|
}
|
16254
16365
|
async function C() {
|
16255
|
-
var
|
16366
|
+
var P, U, D;
|
16256
16367
|
try {
|
16257
|
-
s.value = !0, await ((
|
16368
|
+
s.value = !0, await ((P = o.value) == null ? void 0 : P.validate());
|
16258
16369
|
const w = new VarCatalog({
|
16259
16370
|
...(U = a.getSelectedVarCatalog) != null ? U : {},
|
16260
|
-
var_text: (
|
16371
|
+
var_text: (D = i.value) == null ? void 0 : D.var_text
|
16261
16372
|
});
|
16262
16373
|
w.id ? w.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (w.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(w, "id"), await Add({
|
16263
16374
|
data: w
|
@@ -16285,33 +16396,33 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16285
16396
|
}
|
16286
16397
|
}
|
16287
16398
|
function T({
|
16288
|
-
isAllForm:
|
16399
|
+
isAllForm: P,
|
16289
16400
|
isAllLanguage: U
|
16290
16401
|
}) {
|
16291
|
-
var
|
16402
|
+
var D, w, R;
|
16292
16403
|
u.value = new VarCatalog({
|
16293
16404
|
id: "",
|
16294
16405
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
16295
|
-
grp_nam: (
|
16406
|
+
grp_nam: (D = a.getSelectedVar) == null ? void 0 : D.grp_nam,
|
16296
16407
|
var_nam: (w = a.getSelectedVar) == null ? void 0 : w.var_nam,
|
16297
|
-
frm_id:
|
16298
|
-
locale_id: U ? "ALL" : (
|
16408
|
+
frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
16409
|
+
locale_id: U ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
|
16299
16410
|
var_text: ""
|
16300
16411
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
16301
16412
|
}
|
16302
16413
|
function A() {
|
16303
16414
|
var U;
|
16304
16415
|
c.value = without$1(c.value, u.value), u.value = null;
|
16305
|
-
const
|
16306
|
-
a.setSelectedVarCatalog(
|
16416
|
+
const P = (U = c.value[0]) != null ? U : null;
|
16417
|
+
a.setSelectedVarCatalog(P), d.value = P ? [P.id] : [];
|
16307
16418
|
}
|
16308
16419
|
function k() {
|
16309
16420
|
KgUtil.confirm({
|
16310
16421
|
onOk: async () => {
|
16311
|
-
var
|
16422
|
+
var P;
|
16312
16423
|
await Delete({
|
16313
16424
|
params: {
|
16314
|
-
id: (
|
16425
|
+
id: (P = a.getSelectedVarCatalog) == null ? void 0 : P.id
|
16315
16426
|
}
|
16316
16427
|
}, {
|
16317
16428
|
successMessageMode: "none",
|
@@ -16322,23 +16433,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16322
16433
|
}
|
16323
16434
|
});
|
16324
16435
|
}
|
16325
|
-
function
|
16436
|
+
function V(P) {
|
16326
16437
|
var U;
|
16327
|
-
((U = a.getSelectedVarCatalog) == null ? void 0 : U.id) !==
|
16438
|
+
((U = a.getSelectedVarCatalog) == null ? void 0 : U.id) !== P.id && (unref(u) ? KgUtil.confirm({
|
16328
16439
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
16329
16440
|
onOk: () => {
|
16330
|
-
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(
|
16441
|
+
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(P)), d.value = [P.id];
|
16331
16442
|
}
|
16332
|
-
}) : (a.setSelectedVarCatalog(unref(
|
16443
|
+
}) : (a.setSelectedVarCatalog(unref(P)), d.value = [P.id]));
|
16333
16444
|
}
|
16334
|
-
function
|
16445
|
+
function O() {
|
16335
16446
|
v.value.visible = !0;
|
16336
16447
|
}
|
16337
16448
|
function I() {
|
16338
16449
|
return createVNode("div", {
|
16339
16450
|
class: "buttons"
|
16340
16451
|
}, [createVNode(Button, {
|
16341
|
-
onClick:
|
16452
|
+
onClick: O,
|
16342
16453
|
disabled: y.value,
|
16343
16454
|
type: "primary"
|
16344
16455
|
}, {
|
@@ -16354,7 +16465,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16354
16465
|
})]);
|
16355
16466
|
}
|
16356
16467
|
function M() {
|
16357
|
-
let
|
16468
|
+
let P, U;
|
16358
16469
|
return createVNode("div", {
|
16359
16470
|
class: "form"
|
16360
16471
|
}, [createVNode(Form, {
|
@@ -16371,7 +16482,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16371
16482
|
}, {
|
16372
16483
|
default: () => [createVNode(Textarea, {
|
16373
16484
|
value: i.value.var_text,
|
16374
|
-
"onUpdate:value": (
|
16485
|
+
"onUpdate:value": (D) => i.value.var_text = D,
|
16375
16486
|
disabled: !a.getSelectedVarCatalog
|
16376
16487
|
}, null), createVNode("button", {
|
16377
16488
|
hidden: !0
|
@@ -16382,8 +16493,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16382
16493
|
}, [createVNode(Button, {
|
16383
16494
|
disabled: g.value,
|
16384
16495
|
onClick: A
|
16385
|
-
}, _isSlot(
|
16386
|
-
default: () => [
|
16496
|
+
}, _isSlot(P = t.t("common.cancelText")) ? P : {
|
16497
|
+
default: () => [P]
|
16387
16498
|
}), createVNode(Button, {
|
16388
16499
|
loading: s.value,
|
16389
16500
|
disabled: b.value,
|
@@ -16393,10 +16504,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16393
16504
|
default: () => [U]
|
16394
16505
|
})])]);
|
16395
16506
|
}
|
16396
|
-
function P
|
16397
|
-
var
|
16507
|
+
function $(P) {
|
16508
|
+
var D;
|
16398
16509
|
let U = "";
|
16399
|
-
return
|
16510
|
+
return P.id || (U += " ant-table-row-create"), P.id === ((D = a.getSelectedVarCatalog) == null ? void 0 : D.id) && (U += " ant-table-row-selected "), U;
|
16400
16511
|
}
|
16401
16512
|
return () => createVNode("div", {
|
16402
16513
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -16412,14 +16523,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16412
16523
|
rowKey: "id",
|
16413
16524
|
dataSource: c.value,
|
16414
16525
|
loading: n.value,
|
16415
|
-
rowClassName:
|
16526
|
+
rowClassName: $,
|
16416
16527
|
rowSelection: m.value,
|
16417
|
-
customRow: (
|
16418
|
-
onClick: () =>
|
16528
|
+
customRow: (P) => ({
|
16529
|
+
onClick: () => V(P)
|
16419
16530
|
})
|
16420
16531
|
}, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
|
16421
16532
|
visible: v.value.visible,
|
16422
|
-
"onUpdate:visible": (
|
16533
|
+
"onUpdate:visible": (P) => v.value.visible = P,
|
16423
16534
|
onKgOk: T
|
16424
16535
|
}, null)]);
|
16425
16536
|
}
|
@@ -16743,18 +16854,18 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16743
16854
|
customRender: ({
|
16744
16855
|
record: T
|
16745
16856
|
}) => {
|
16746
|
-
var k,
|
16857
|
+
var k, V, O;
|
16747
16858
|
const A = T;
|
16748
|
-
return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (
|
16859
|
+
return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (V = A.whId) != null ? V : " "]), createVNode("div", {
|
16749
16860
|
class: "address"
|
16750
|
-
}, [(
|
16861
|
+
}, [(O = A.adrId) != null ? O : " "])]);
|
16751
16862
|
}
|
16752
16863
|
}]), u = ref([]), d = computed(() => {
|
16753
16864
|
var A;
|
16754
16865
|
const T = (A = s.value) == null ? void 0 : A.toUpperCase();
|
16755
16866
|
return u.value.filter((k) => {
|
16756
|
-
var
|
16757
|
-
return ((
|
16867
|
+
var V, O, I, M, $, P;
|
16868
|
+
return ((O = (V = k.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : O.includes(T)) || ((M = (I = k.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : M.includes(T)) || ((P = ($ = k.adrId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : P.includes(T));
|
16758
16869
|
});
|
16759
16870
|
}), m = computed(() => {
|
16760
16871
|
var T, A;
|