@kengic/vue 0.13.7 → 0.13.8
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var v = (e, t, r) => (
|
1
|
+
var Ke = Object.defineProperty;
|
2
|
+
var Le = (e, t, r) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var v = (e, t, r) => (Le(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { Spin, Tooltip, Select, SelectOption, Button, Modal, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Radio, Switch, Textarea, message, Drawer, Transfer, Table, Tabs, Dropdown, Menu, Tag, Pagination, TableSummary, Upload, ConfigProvider, Card, TabPane } from "ant-design-vue";
|
5
5
|
import { h, nextTick, createVNode, defineComponent, getCurrentInstance, inject, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, computed, onUnmounted, toRefs, unref, watchEffect, Fragment, isVNode, createTextVNode, provide, onMounted, mergeProps, onBeforeUnmount, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
6
6
|
const index$7 = "", en = {
|
@@ -415,8 +415,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
415
415
|
}, m: function w(D, R) {
|
416
416
|
if (D.date() < R.date())
|
417
417
|
return -w(R, D);
|
418
|
-
var $ = 12 * (R.year() - D.year()) + (R.month() - D.month()), P = D.clone().add($, d),
|
419
|
-
return +(-($ + (R - P) / (
|
418
|
+
var $ = 12 * (R.year() - D.year()) + (R.month() - D.month()), P = D.clone().add($, d), G = R - P < 0, N = D.clone().add($ + (G ? -1 : 1), d);
|
419
|
+
return +(-($ + (R - P) / (G ? P - N : N - P)) || 0);
|
420
420
|
}, a: function(w) {
|
421
421
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
422
422
|
}, p: function(w) {
|
@@ -432,8 +432,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
432
432
|
if (!D)
|
433
433
|
return I;
|
434
434
|
if (typeof D == "string") {
|
435
|
-
var
|
436
|
-
C[
|
435
|
+
var G = D.toLowerCase();
|
436
|
+
C[G] && (P = G), R && (C[G] = R, P = G);
|
437
437
|
var N = D.split("-");
|
438
438
|
if (!P && N.length > 1)
|
439
439
|
return w(N[0]);
|
@@ -458,7 +458,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
458
458
|
var D = w.prototype;
|
459
459
|
return D.parse = function(R) {
|
460
460
|
this.$d = function($) {
|
461
|
-
var P = $.date,
|
461
|
+
var P = $.date, G = $.utc;
|
462
462
|
if (P === null)
|
463
463
|
return new Date(NaN);
|
464
464
|
if (K.u(P))
|
@@ -469,7 +469,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
469
469
|
var N = P.match(p);
|
470
470
|
if (N) {
|
471
471
|
var x = N[2] - 1 || 0, Y = (N[7] || "0").substring(0, 3);
|
472
|
-
return
|
472
|
+
return G ? new Date(Date.UTC(N[1], x, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, Y)) : new Date(N[1], x, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, Y);
|
473
473
|
}
|
474
474
|
}
|
475
475
|
return new Date(P);
|
@@ -495,20 +495,20 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
495
495
|
}, D.valueOf = function() {
|
496
496
|
return this.$d.getTime();
|
497
497
|
}, D.startOf = function(R, $) {
|
498
|
-
var P = this,
|
498
|
+
var P = this, G = !!K.u($) || $, N = K.p(R), x = function(ge, ae) {
|
499
499
|
var F = K.w(P.$u ? Date.UTC(P.$y, ae, ge) : new Date(P.$y, ae, ge), P);
|
500
|
-
return
|
500
|
+
return G ? F : F.endOf(c);
|
501
501
|
}, Y = function(ge, ae) {
|
502
|
-
return K.w(P.toDate()[ge].apply(P.toDate("s"), (
|
502
|
+
return K.w(P.toDate()[ge].apply(P.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), P);
|
503
503
|
}, q = this.$W, X = this.$M, J = this.$D, ee = "set" + (this.$u ? "UTC" : "");
|
504
504
|
switch (N) {
|
505
505
|
case E:
|
506
|
-
return
|
506
|
+
return G ? x(1, 0) : x(31, 11);
|
507
507
|
case d:
|
508
|
-
return
|
508
|
+
return G ? x(1, X) : x(0, X + 1);
|
509
509
|
case u:
|
510
|
-
var
|
511
|
-
return x(
|
510
|
+
var le = this.$locale().weekStart || 0, me = (q < le ? q + 7 : q) - le;
|
511
|
+
return x(G ? J - me : J + (6 - me), X);
|
512
512
|
case c:
|
513
513
|
case b:
|
514
514
|
return Y(ee + "Hours", 0);
|
@@ -524,8 +524,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
524
524
|
}, D.endOf = function(R) {
|
525
525
|
return this.startOf(R, !1);
|
526
526
|
}, D.$set = function(R, $) {
|
527
|
-
var P,
|
528
|
-
if (
|
527
|
+
var P, G = K.p(R), N = "set" + (this.$u ? "UTC" : ""), x = (P = {}, P[c] = N + "Date", P[b] = N + "Date", P[d] = N + "Month", P[E] = N + "FullYear", P[i] = N + "Hours", P[o] = N + "Minutes", P[l] = N + "Seconds", P[s] = N + "Milliseconds", P)[G], Y = G === c ? this.$D + ($ - this.$W) : $;
|
528
|
+
if (G === d || G === E) {
|
529
529
|
var q = this.clone().set(b, 1);
|
530
530
|
q.$d[x](Y), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
|
531
531
|
} else
|
@@ -536,11 +536,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
536
536
|
}, D.get = function(R) {
|
537
537
|
return this[K.p(R)]();
|
538
538
|
}, D.add = function(R, $) {
|
539
|
-
var P,
|
539
|
+
var P, G = this;
|
540
540
|
R = Number(R);
|
541
541
|
var N = K.p($), x = function(X) {
|
542
|
-
var J = M(
|
543
|
-
return K.w(J.date(J.date() + Math.round(X * R)),
|
542
|
+
var J = M(G);
|
543
|
+
return K.w(J.date(J.date() + Math.round(X * R)), G);
|
544
544
|
};
|
545
545
|
if (N === d)
|
546
546
|
return this.set(d, this.$M + R);
|
@@ -558,17 +558,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
558
558
|
var $ = this, P = this.$locale();
|
559
559
|
if (!this.isValid())
|
560
560
|
return P.invalidDate || _;
|
561
|
-
var
|
562
|
-
return ae && (ae[F] || ae($,
|
561
|
+
var G = R || "YYYY-MM-DDTHH:mm:ssZ", N = K.z(this), x = this.$H, Y = this.$m, q = this.$M, X = P.weekdays, J = P.months, ee = P.meridiem, le = function(ae, F, U, Q) {
|
562
|
+
return ae && (ae[F] || ae($, G)) || U[F].slice(0, Q);
|
563
563
|
}, me = function(ae) {
|
564
564
|
return K.s(x % 12 || 12, ae, "0");
|
565
|
-
}, ge = ee || function(ae, F,
|
565
|
+
}, ge = ee || function(ae, F, U) {
|
566
566
|
var Q = ae < 12 ? "AM" : "PM";
|
567
|
-
return
|
567
|
+
return U ? Q.toLowerCase() : Q;
|
568
568
|
};
|
569
|
-
return
|
570
|
-
return F || function(
|
571
|
-
switch (
|
569
|
+
return G.replace(m, function(ae, F) {
|
570
|
+
return F || function(U) {
|
571
|
+
switch (U) {
|
572
572
|
case "YY":
|
573
573
|
return String($.$y).slice(-2);
|
574
574
|
case "YYYY":
|
@@ -578,9 +578,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
578
578
|
case "MM":
|
579
579
|
return K.s(q + 1, 2, "0");
|
580
580
|
case "MMM":
|
581
|
-
return
|
581
|
+
return le(P.monthsShort, q, J, 3);
|
582
582
|
case "MMMM":
|
583
|
-
return
|
583
|
+
return le(J, q);
|
584
584
|
case "D":
|
585
585
|
return $.$D;
|
586
586
|
case "DD":
|
@@ -588,9 +588,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
588
588
|
case "d":
|
589
589
|
return String($.$W);
|
590
590
|
case "dd":
|
591
|
-
return
|
591
|
+
return le(P.weekdaysMin, $.$W, X, 2);
|
592
592
|
case "ddd":
|
593
|
-
return
|
593
|
+
return le(P.weekdaysShort, $.$W, X, 3);
|
594
594
|
case "dddd":
|
595
595
|
return X[$.$W];
|
596
596
|
case "H":
|
@@ -624,38 +624,38 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
624
624
|
}, D.utcOffset = function() {
|
625
625
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
626
626
|
}, D.diff = function(R, $, P) {
|
627
|
-
var
|
627
|
+
var G, N = this, x = K.p($), Y = M(R), q = (Y.utcOffset() - this.utcOffset()) * a, X = this - Y, J = function() {
|
628
628
|
return K.m(N, Y);
|
629
629
|
};
|
630
630
|
switch (x) {
|
631
631
|
case E:
|
632
|
-
|
632
|
+
G = J() / 12;
|
633
633
|
break;
|
634
634
|
case d:
|
635
|
-
|
635
|
+
G = J();
|
636
636
|
break;
|
637
637
|
case g:
|
638
|
-
|
638
|
+
G = J() / 3;
|
639
639
|
break;
|
640
640
|
case u:
|
641
|
-
|
641
|
+
G = (X - q) / 6048e5;
|
642
642
|
break;
|
643
643
|
case c:
|
644
|
-
|
644
|
+
G = (X - q) / 864e5;
|
645
645
|
break;
|
646
646
|
case i:
|
647
|
-
|
647
|
+
G = X / n;
|
648
648
|
break;
|
649
649
|
case o:
|
650
|
-
|
650
|
+
G = X / a;
|
651
651
|
break;
|
652
652
|
case l:
|
653
|
-
|
653
|
+
G = X / r;
|
654
654
|
break;
|
655
655
|
default:
|
656
|
-
|
656
|
+
G = X;
|
657
657
|
}
|
658
|
-
return P ?
|
658
|
+
return P ? G : K.a(G);
|
659
659
|
}, D.daysInMonth = function() {
|
660
660
|
return this.endOf(d).$D;
|
661
661
|
}, D.$locale = function() {
|
@@ -663,8 +663,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
663
663
|
}, D.locale = function(R, $) {
|
664
664
|
if (!R)
|
665
665
|
return this.$L;
|
666
|
-
var P = this.clone(),
|
667
|
-
return
|
666
|
+
var P = this.clone(), G = O(R, $, !0);
|
667
|
+
return G && (P.$L = G), P;
|
668
668
|
}, D.clone = function() {
|
669
669
|
return K.w(this.$d, this);
|
670
670
|
}, D.toDate = function() {
|
@@ -4872,7 +4872,7 @@ const emptyIcon = {
|
|
4872
4872
|
...t.data
|
4873
4873
|
}, r);
|
4874
4874
|
}
|
4875
|
-
}), name = "@kengic/vue", version = "0.13.
|
4875
|
+
}), name = "@kengic/vue", version = "0.13.8", data$1 = {
|
4876
4876
|
width: 24,
|
4877
4877
|
height: 24,
|
4878
4878
|
body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
|
@@ -7066,6 +7066,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
7066
7066
|
return t ? (r = e.varSubmitConfigMap.get(t)) != null ? r : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
7067
7067
|
};
|
7068
7068
|
},
|
7069
|
+
getVarSubmitConfigProps(e) {
|
7070
|
+
return (t) => {
|
7071
|
+
if (!t)
|
7072
|
+
return KgLogger.error("frm_id \u4E3A\u7A7A."), {};
|
7073
|
+
const r = e.varSubmitConfigMap.get(t);
|
7074
|
+
return r ? KgUtil.tryParseJSON(r.props) : {};
|
7075
|
+
};
|
7076
|
+
},
|
7069
7077
|
getVarSubmitFields(e) {
|
7070
7078
|
return (t) => {
|
7071
7079
|
var r;
|
@@ -7670,7 +7678,7 @@ function useKgVar(e, t, r = 0) {
|
|
7670
7678
|
const d = (J) => computed(() => u.t(c, J)), g = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), b = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), I = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), V = computed(() => u.isDeletingRequesting(c)), A = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), K = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), H = computed(() => u.getVarButtonCopy(c)), w = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), $ = computed(() => u.getCurrentVarProfileMaster(c)), P = computed(() => {
|
7671
7679
|
var J, ee;
|
7672
7680
|
return (ee = (J = $.value) == null ? void 0 : J.varProfileDetails) != null ? ee : null;
|
7673
|
-
}),
|
7681
|
+
}), G = computed(() => u.getVarGridConfig(c)), N = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
7674
7682
|
return {
|
7675
7683
|
formID: c,
|
7676
7684
|
store: u,
|
@@ -7697,7 +7705,7 @@ function useKgVar(e, t, r = 0) {
|
|
7697
7705
|
currentVarProfileMasterID: R,
|
7698
7706
|
currentVarProfileMaster: $,
|
7699
7707
|
currentVarProfileDetails: P,
|
7700
|
-
varGridConfig:
|
7708
|
+
varGridConfig: G,
|
7701
7709
|
varGridMasters: N,
|
7702
7710
|
currentVarGridMasteID: x,
|
7703
7711
|
currentVarGridMaster: Y,
|
@@ -8615,10 +8623,10 @@ const KgFormItem = defineComponent({
|
|
8615
8623
|
value: $,
|
8616
8624
|
values: P
|
8617
8625
|
}) => {
|
8618
|
-
var
|
8626
|
+
var G;
|
8619
8627
|
switch (w) {
|
8620
8628
|
case e.kgVarName:
|
8621
|
-
D.value && (R ? D.value[e.kgVarName] = P : D.value[e.kgVarName] = $), (
|
8629
|
+
D.value && (R ? D.value[e.kgVarName] = P : D.value[e.kgVarName] = $), (G = n.value) == null || G.validate([e.kgVarName]);
|
8622
8630
|
break;
|
8623
8631
|
}
|
8624
8632
|
return !1;
|
@@ -8629,7 +8637,7 @@ const KgFormItem = defineComponent({
|
|
8629
8637
|
} = _useRules(e), {
|
8630
8638
|
controlType: _
|
8631
8639
|
} = useKgFormItem(e), p = computed(() => {
|
8632
|
-
var D, R, $, P,
|
8640
|
+
var D, R, $, P, G;
|
8633
8641
|
if (l.isRetrieving.value)
|
8634
8642
|
return !0;
|
8635
8643
|
let w = !1;
|
@@ -8652,7 +8660,7 @@ const KgFormItem = defineComponent({
|
|
8652
8660
|
w = ((P = g.value) == null ? void 0 : P.cpy_ena_flg) === 0;
|
8653
8661
|
break;
|
8654
8662
|
case l.isDeleting.value:
|
8655
|
-
w = ((
|
8663
|
+
w = ((G = g.value) == null ? void 0 : G.del_ena_flg) === 0;
|
8656
8664
|
break;
|
8657
8665
|
}
|
8658
8666
|
break;
|
@@ -8674,7 +8682,7 @@ const KgFormItem = defineComponent({
|
|
8674
8682
|
}
|
8675
8683
|
return w;
|
8676
8684
|
}), y = computed(() => {
|
8677
|
-
var D, R, $, P,
|
8685
|
+
var D, R, $, P, G, N, x, Y, q, X;
|
8678
8686
|
let w = 6;
|
8679
8687
|
if (e.kgSpan !== void 0)
|
8680
8688
|
w = e.kgSpan;
|
@@ -8689,7 +8697,7 @@ const KgFormItem = defineComponent({
|
|
8689
8697
|
w = (P = ($ = g.value) == null ? void 0 : $.crt_width) != null ? P : 6;
|
8690
8698
|
break;
|
8691
8699
|
case l.isUpdating.value:
|
8692
|
-
w = (N = (
|
8700
|
+
w = (N = (G = g.value) == null ? void 0 : G.upt_width) != null ? N : 6;
|
8693
8701
|
break;
|
8694
8702
|
case l.isCopying.value:
|
8695
8703
|
w = (Y = (x = g.value) == null ? void 0 : x.cpy_width) != null ? Y : 6;
|
@@ -8704,7 +8712,7 @@ const KgFormItem = defineComponent({
|
|
8704
8712
|
VarSubmitField: g.value
|
8705
8713
|
}), 6);
|
8706
8714
|
}), T = computed(() => {
|
8707
|
-
var D, R, $, P,
|
8715
|
+
var D, R, $, P, G;
|
8708
8716
|
let w = null;
|
8709
8717
|
if (e.kgSpan !== void 0)
|
8710
8718
|
w = e.kgSpan;
|
@@ -8725,7 +8733,7 @@ const KgFormItem = defineComponent({
|
|
8725
8733
|
w = (P = g.value) == null ? void 0 : P.cpy_width;
|
8726
8734
|
break;
|
8727
8735
|
case l.isDeleting.value:
|
8728
|
-
w = (
|
8736
|
+
w = (G = g.value) == null ? void 0 : G.del_width;
|
8729
8737
|
break;
|
8730
8738
|
}
|
8731
8739
|
}
|
@@ -9627,16 +9635,16 @@ const getProps$p = () => ({
|
|
9627
9635
|
setup(e, {
|
9628
9636
|
attrs: t
|
9629
9637
|
}) {
|
9630
|
-
var
|
9638
|
+
var Ce, ke, Me;
|
9631
9639
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
9632
9640
|
inject(DI_KG_VAR__KG_PROPS, null);
|
9633
9641
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
9634
|
-
l.onSubmitSave(async () => (await
|
9642
|
+
l.onSubmitSave(async () => (await ie(), !1)), l.onSubmitCancel(async () => (await ue(), !1)), _useFormModel$1();
|
9635
9643
|
const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), V = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
|
9636
|
-
var
|
9644
|
+
var B, W, Z;
|
9637
9645
|
switch (!0) {
|
9638
9646
|
case s.isCreating.value:
|
9639
|
-
return (
|
9647
|
+
return (B = E.value) != null ? B : [];
|
9640
9648
|
case s.isUpdating.value:
|
9641
9649
|
return (W = _.value) != null ? W : [];
|
9642
9650
|
case s.isCopying.value:
|
@@ -9646,10 +9654,10 @@ const getProps$p = () => ({
|
|
9646
9654
|
}
|
9647
9655
|
return [];
|
9648
9656
|
}), K = computed(() => {
|
9649
|
-
var
|
9657
|
+
var B, W, Z;
|
9650
9658
|
switch (!0) {
|
9651
9659
|
case s.isCreating.value:
|
9652
|
-
return (
|
9660
|
+
return (B = T.value) != null ? B : [];
|
9653
9661
|
case s.isUpdating.value:
|
9654
9662
|
return (W = I.value) != null ? W : [];
|
9655
9663
|
case s.isCopying.value:
|
@@ -9659,10 +9667,10 @@ const getProps$p = () => ({
|
|
9659
9667
|
}
|
9660
9668
|
return [];
|
9661
9669
|
}), L = computed(() => {
|
9662
|
-
var
|
9670
|
+
var B, W, Z, re;
|
9663
9671
|
switch (!0) {
|
9664
9672
|
case s.isCreating.value:
|
9665
|
-
return (
|
9673
|
+
return (B = b.value) != null ? B : [];
|
9666
9674
|
case s.isUpdating.value:
|
9667
9675
|
return (W = p.value) != null ? W : [];
|
9668
9676
|
case s.isCopying.value:
|
@@ -9672,10 +9680,10 @@ const getProps$p = () => ({
|
|
9672
9680
|
}
|
9673
9681
|
return [];
|
9674
9682
|
}), H = computed(() => {
|
9675
|
-
var
|
9683
|
+
var B, W, Z, re;
|
9676
9684
|
switch (!0) {
|
9677
9685
|
case s.isCreating.value:
|
9678
|
-
return (
|
9686
|
+
return (B = k.value) != null ? B : [];
|
9679
9687
|
case s.isUpdating.value:
|
9680
9688
|
return (W = C.value) != null ? W : [];
|
9681
9689
|
case s.isCopying.value:
|
@@ -9687,29 +9695,29 @@ const getProps$p = () => ({
|
|
9687
9695
|
}), w = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => w.value || d.value), R = computed(() => d.value), $ = ref({
|
9688
9696
|
kgWidth: 0
|
9689
9697
|
}), P = computed(() => {
|
9690
|
-
var
|
9691
|
-
return !!(u.value || ee.isFullscreen || ((
|
9692
|
-
}),
|
9693
|
-
var
|
9694
|
-
return u.value ? 398 : (W = (
|
9698
|
+
var B;
|
9699
|
+
return !!(u.value || ee.isFullscreen || ((B = g.value) == null ? void 0 : B.resizable_flg) === 0);
|
9700
|
+
}), G = computed(() => {
|
9701
|
+
var B, W;
|
9702
|
+
return u.value ? 398 : (W = (B = g.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
|
9695
9703
|
}), N = computed(() => {
|
9696
|
-
var
|
9697
|
-
return u.value ? 398 : (W = (
|
9704
|
+
var B, W;
|
9705
|
+
return u.value ? 398 : (W = (B = g.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
|
9698
9706
|
}), x = computed(() => u.value ? 398 : $.value.kgWidth), Y = ref(null);
|
9699
9707
|
_useResizeObserver$1(Y);
|
9700
9708
|
const q = _useTitle(), X = computed(() => u.value ? 400 : $.value.kgWidth && $.value.kgWidth > 0 ? "auto" : 0), J = computed(() => X.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ee = reactive({
|
9701
9709
|
isFullscreen: !1
|
9702
9710
|
}), {
|
9703
|
-
getClass:
|
9711
|
+
getClass: le
|
9704
9712
|
} = _useClass(e, ee), {
|
9705
9713
|
getLayout: me
|
9706
9714
|
} = _useLayout(), {
|
9707
9715
|
getDefaultWidth: ge
|
9708
9716
|
} = _useDefaultWidth(), ae = computed(() => {
|
9709
|
-
var
|
9717
|
+
var B, W, Z;
|
9710
9718
|
switch (me.value) {
|
9711
9719
|
case "horizontal":
|
9712
|
-
switch ((
|
9720
|
+
switch ((B = g.value) == null ? void 0 : B.label_col_unit) {
|
9713
9721
|
case KG_WIDTH_UNIT.SPAN:
|
9714
9722
|
return {
|
9715
9723
|
span: (W = g.value) == null ? void 0 : W.label_col
|
@@ -9725,10 +9733,10 @@ const getProps$p = () => ({
|
|
9725
9733
|
return;
|
9726
9734
|
}
|
9727
9735
|
}), F = computed(() => {
|
9728
|
-
var
|
9736
|
+
var B, W;
|
9729
9737
|
switch (me.value) {
|
9730
9738
|
case "horizontal":
|
9731
|
-
switch ((
|
9739
|
+
switch ((B = g.value) == null ? void 0 : B.label_col_unit) {
|
9732
9740
|
case KG_WIDTH_UNIT.SPAN:
|
9733
9741
|
return {
|
9734
9742
|
span: 24 - ((W = g.value) == null ? void 0 : W.label_col)
|
@@ -9739,24 +9747,37 @@ const getProps$p = () => ({
|
|
9739
9747
|
default:
|
9740
9748
|
return;
|
9741
9749
|
}
|
9742
|
-
}),
|
9743
|
-
|
9750
|
+
}), U = computed(() => {
|
9751
|
+
const B = s.store.getVarSubmitConfigProps(s.formID);
|
9752
|
+
switch (!0) {
|
9753
|
+
case s.isCreating.value:
|
9754
|
+
return B["footer.ok-button.text-var-name.creating"] ? s.t(B["footer.ok-button.text-var-name.creating"]).value : n.t("kg.save");
|
9755
|
+
case s.isUpdating.value:
|
9756
|
+
return B["footer.ok-button.text-var-name.updating"] ? s.t(B["footer.ok-button.text-var-name.updating"]).value : n.t("kg.save");
|
9757
|
+
case s.isCopying.value:
|
9758
|
+
return B["footer.ok-button.text-var-name.copying"] ? s.t(B["footer.ok-button.text-var-name.copying"]).value : n.t("kg.save");
|
9759
|
+
case s.isDeleting.value:
|
9760
|
+
return B["footer.ok-button.text-var-name.deleting"] ? s.t(B["footer.ok-button.text-var-name.deleting"]).value : n.t("kg.delete");
|
9761
|
+
}
|
9762
|
+
return n.t("kg.save");
|
9763
|
+
}), Q = computed(() => i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !ee.isFullscreen);
|
9764
|
+
((Me = (ke = (Ce = n.option.value) == null ? void 0 : Ce.KgModal) == null ? void 0 : ke.drag) == null ? void 0 : Me.on) === !0 && useKgDragModal({
|
9744
9765
|
visible: J,
|
9745
|
-
draggable:
|
9766
|
+
draggable: Q,
|
9746
9767
|
destroyOnClose: ref(!0),
|
9747
9768
|
containerElementSelector: ".ant-drawer-content-wrapper",
|
9748
9769
|
handleElementSelector: ".ant-drawer-header",
|
9749
9770
|
contentElementSelector: ".ant-drawer-content-wrapper"
|
9750
|
-
}), watch(J, (
|
9751
|
-
|
9771
|
+
}), watch(J, (B, W) => {
|
9772
|
+
B === !0 && z(), W === !0 && B === !1 && te();
|
9752
9773
|
}, {
|
9753
9774
|
immediate: !0
|
9754
|
-
}), watch(ge, (
|
9755
|
-
|
9775
|
+
}), watch(ge, (B) => {
|
9776
|
+
B && ($.value.kgWidth = B);
|
9756
9777
|
}, {
|
9757
9778
|
immediate: !0
|
9758
9779
|
});
|
9759
|
-
async function
|
9780
|
+
async function z() {
|
9760
9781
|
if (!await i.store.emit(s.formID, "beforeOpen", {
|
9761
9782
|
isCreating: s.isCreating.value,
|
9762
9783
|
isUpdating: s.isUpdating.value,
|
@@ -9781,10 +9802,10 @@ const getProps$p = () => ({
|
|
9781
9802
|
((se = g.value) == null ? void 0 : se.dft_fullscreen_flg) === 1 && !u.value && (ee.isFullscreen = !0);
|
9782
9803
|
});
|
9783
9804
|
}
|
9784
|
-
async function
|
9805
|
+
async function te() {
|
9785
9806
|
$.value.kgWidth = ge.value, ee.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
9786
9807
|
}
|
9787
|
-
function
|
9808
|
+
function ue() {
|
9788
9809
|
switch (!0) {
|
9789
9810
|
case s.isCreating.value:
|
9790
9811
|
s.store.setIsCreating(s.formID, !1);
|
@@ -9800,8 +9821,8 @@ const getProps$p = () => ({
|
|
9800
9821
|
break;
|
9801
9822
|
}
|
9802
9823
|
}
|
9803
|
-
async function
|
9804
|
-
var
|
9824
|
+
async function ie() {
|
9825
|
+
var B, W;
|
9805
9826
|
try {
|
9806
9827
|
if (await i.store.emit(s.formID, "beforeOk", {
|
9807
9828
|
isCreating: s.isCreating.value,
|
@@ -9814,7 +9835,7 @@ const getProps$p = () => ({
|
|
9814
9835
|
}))
|
9815
9836
|
return;
|
9816
9837
|
try {
|
9817
|
-
await ((
|
9838
|
+
await ((B = i.formRef.value) == null ? void 0 : B.validate());
|
9818
9839
|
} catch (se) {
|
9819
9840
|
KgUtil.throwIfNotFormError(se);
|
9820
9841
|
}
|
@@ -9833,13 +9854,13 @@ const getProps$p = () => ({
|
|
9833
9854
|
await fe();
|
9834
9855
|
break;
|
9835
9856
|
case s.isUpdating.value:
|
9836
|
-
await
|
9857
|
+
await he();
|
9837
9858
|
break;
|
9838
9859
|
case s.isCopying.value:
|
9839
|
-
await
|
9860
|
+
await Se();
|
9840
9861
|
break;
|
9841
9862
|
case s.isDeleting.value:
|
9842
|
-
await
|
9863
|
+
await ve();
|
9843
9864
|
break;
|
9844
9865
|
}
|
9845
9866
|
} catch (Z) {
|
@@ -9848,8 +9869,8 @@ const getProps$p = () => ({
|
|
9848
9869
|
}
|
9849
9870
|
async function fe() {
|
9850
9871
|
var W, Z, re, se, oe, ce;
|
9851
|
-
const
|
9852
|
-
if (!
|
9872
|
+
const B = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
|
9873
|
+
if (!B) {
|
9853
9874
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
9854
9875
|
VarButton: s.varButtonCreate.value
|
9855
9876
|
});
|
@@ -9872,7 +9893,7 @@ const getProps$p = () => ({
|
|
9872
9893
|
return;
|
9873
9894
|
await httpClient().request({
|
9874
9895
|
method: (oe = (se = s.varButtonCreate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
|
9875
|
-
url:
|
9896
|
+
url: B,
|
9876
9897
|
params: ne.value,
|
9877
9898
|
data: de.value
|
9878
9899
|
}), ((ce = s.varButtonCreate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(q.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
|
@@ -9891,10 +9912,10 @@ const getProps$p = () => ({
|
|
9891
9912
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
9892
9913
|
}
|
9893
9914
|
}
|
9894
|
-
async function
|
9915
|
+
async function he() {
|
9895
9916
|
var W, Z, re, se, oe, ce;
|
9896
|
-
const
|
9897
|
-
if (!
|
9917
|
+
const B = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
|
9918
|
+
if (!B) {
|
9898
9919
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
9899
9920
|
VarButton: s.varButtonUpdate.value
|
9900
9921
|
});
|
@@ -9917,7 +9938,7 @@ const getProps$p = () => ({
|
|
9917
9938
|
return;
|
9918
9939
|
await httpClient().request({
|
9919
9940
|
method: (oe = (se = s.varButtonUpdate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
|
9920
|
-
url:
|
9941
|
+
url: B,
|
9921
9942
|
params: ne.value,
|
9922
9943
|
data: de.value
|
9923
9944
|
}), ((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", {
|
@@ -9936,10 +9957,10 @@ const getProps$p = () => ({
|
|
9936
9957
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
9937
9958
|
}
|
9938
9959
|
}
|
9939
|
-
async function
|
9960
|
+
async function Se() {
|
9940
9961
|
var W, Z, re, se, oe, ce, ne, de;
|
9941
|
-
const
|
9942
|
-
if (!
|
9962
|
+
const B = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
|
9963
|
+
if (!B) {
|
9943
9964
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
9944
9965
|
VarButton: s.varButtonCopy.value
|
9945
9966
|
});
|
@@ -9947,11 +9968,11 @@ const getProps$p = () => ({
|
|
9947
9968
|
}
|
9948
9969
|
try {
|
9949
9970
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
9950
|
-
let _e = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCopy.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)),
|
9971
|
+
let _e = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCopy.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), Ee = ref(KgUtil.parseParams({
|
9951
9972
|
...(se = o.selectedFirstRow.value) != null ? se : {},
|
9952
9973
|
...toRaw(i.model.value)
|
9953
9974
|
}, s.formID, r));
|
9954
|
-
if (((oe = g.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete
|
9975
|
+
if (((oe = g.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete Ee.value.id, await i.store.emit(s.formID, "beforeRequest", {
|
9955
9976
|
isCreating: s.isCreating.value,
|
9956
9977
|
isUpdating: s.isUpdating.value,
|
9957
9978
|
isCopying: s.isCopying.value,
|
@@ -9960,14 +9981,14 @@ const getProps$p = () => ({
|
|
9960
9981
|
rows: o.selectedRows.value,
|
9961
9982
|
model: i.model,
|
9962
9983
|
params: _e,
|
9963
|
-
data:
|
9984
|
+
data: Ee
|
9964
9985
|
}))
|
9965
9986
|
return;
|
9966
9987
|
await httpClient().request({
|
9967
9988
|
method: (ne = (ce = s.varButtonCopy.value) == null ? void 0 : ce.cmd_method) != null ? ne : "POST",
|
9968
|
-
url:
|
9989
|
+
url: B,
|
9969
9990
|
params: _e.value,
|
9970
|
-
data:
|
9991
|
+
data: Ee.value
|
9971
9992
|
}), ((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", {
|
9972
9993
|
isCreating: s.isCreating.value,
|
9973
9994
|
isUpdating: s.isUpdating.value,
|
@@ -9984,10 +10005,10 @@ const getProps$p = () => ({
|
|
9984
10005
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
9985
10006
|
}
|
9986
10007
|
}
|
9987
|
-
async function
|
9988
|
-
var W, Z, re, se, oe, ce, ne, de, _e,
|
9989
|
-
const
|
9990
|
-
if (!
|
10008
|
+
async function ve() {
|
10009
|
+
var W, Z, re, se, oe, ce, ne, de, _e, Ee;
|
10010
|
+
const B = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
|
10011
|
+
if (!B) {
|
9991
10012
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
9992
10013
|
VarButton: s.varButtonDelete.value
|
9993
10014
|
});
|
@@ -9995,13 +10016,13 @@ const getProps$p = () => ({
|
|
9995
10016
|
}
|
9996
10017
|
try {
|
9997
10018
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
9998
|
-
let Te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)),
|
10019
|
+
let Te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), we = ref((se = o.selectedRows.value) != null ? se : []);
|
9999
10020
|
if (((oe = s.varButtonDelete.value) == null ? void 0 : oe.del_param_clm) !== "__kg__new_delete_param" && (Te = ref({
|
10000
|
-
ids: (ne = (ce = o.selectedRows.value) == null ? void 0 : ce.map((
|
10001
|
-
var
|
10002
|
-
return (
|
10021
|
+
ids: (ne = (ce = o.selectedRows.value) == null ? void 0 : ce.map((Ve) => {
|
10022
|
+
var De, Oe, Re;
|
10023
|
+
return (Re = Ve[(Oe = (De = s.varButtonDelete.value) == null ? void 0 : De.del_param_clm) != null ? Oe : "id"]) != null ? Re : "";
|
10003
10024
|
})) != null ? ne : []
|
10004
|
-
}),
|
10025
|
+
}), we = ref({})), await i.store.emit(s.formID, "beforeRequest", {
|
10005
10026
|
isCreating: s.isCreating.value,
|
10006
10027
|
isUpdating: s.isUpdating.value,
|
10007
10028
|
isCopying: s.isCopying.value,
|
@@ -10010,17 +10031,17 @@ const getProps$p = () => ({
|
|
10010
10031
|
rows: o.selectedRows.value,
|
10011
10032
|
model: i.model,
|
10012
10033
|
params: Te,
|
10013
|
-
data:
|
10034
|
+
data: we
|
10014
10035
|
}))
|
10015
10036
|
return;
|
10016
10037
|
await httpClient().request({
|
10017
10038
|
method: (_e = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd_method) != null ? _e : "DELETE",
|
10018
|
-
url:
|
10039
|
+
url: B,
|
10019
10040
|
params: Te.value,
|
10020
|
-
data:
|
10041
|
+
data: we.value
|
10021
10042
|
}, {
|
10022
10043
|
joinParamsToUrl: !0
|
10023
|
-
}), ((
|
10044
|
+
}), ((Ee = s.varButtonDelete.value) == null ? void 0 : Ee.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(s.formID, "deleteOk", {
|
10024
10045
|
button: s.varButtonDelete.value,
|
10025
10046
|
rows: o.selectedRows.value
|
10026
10047
|
}), await i.store.emit(s.formID, "ok", {
|
@@ -10039,14 +10060,14 @@ const getProps$p = () => ({
|
|
10039
10060
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
10040
10061
|
}
|
10041
10062
|
}
|
10042
|
-
function
|
10063
|
+
function be(B) {
|
10043
10064
|
var Z, re;
|
10044
|
-
const W = (re = (Z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Z["KgForm.Item"]) == null ? void 0 : re[
|
10065
|
+
const W = (re = (Z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Z["KgForm.Item"]) == null ? void 0 : re[B.var_nam];
|
10045
10066
|
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
10046
|
-
kgVarName:
|
10067
|
+
kgVarName: B.var_nam,
|
10047
10068
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10048
|
-
kgRules: i.rules.value[
|
10049
|
-
onKgSubmit:
|
10069
|
+
kgRules: i.rules.value[B.var_nam],
|
10070
|
+
onKgSubmit: ie
|
10050
10071
|
}, {
|
10051
10072
|
control: ({
|
10052
10073
|
frm_id: se,
|
@@ -10055,7 +10076,7 @@ const getProps$p = () => ({
|
|
10055
10076
|
model: ne,
|
10056
10077
|
varVariableConfig: de,
|
10057
10078
|
varProfileDetail: _e,
|
10058
|
-
varSubmitField:
|
10079
|
+
varSubmitField: Ee
|
10059
10080
|
}) => W({
|
10060
10081
|
frm_id: se,
|
10061
10082
|
varName: oe,
|
@@ -10063,20 +10084,20 @@ const getProps$p = () => ({
|
|
10063
10084
|
model: ne,
|
10064
10085
|
varVariableConfig: de,
|
10065
10086
|
varProfileDetail: _e,
|
10066
|
-
varSubmitField:
|
10087
|
+
varSubmitField: Ee
|
10067
10088
|
})
|
10068
10089
|
}) : createVNode(KgForm.Item, {
|
10069
|
-
kgVarName:
|
10090
|
+
kgVarName: B.var_nam,
|
10070
10091
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10071
|
-
kgRules: i.rules.value[
|
10072
|
-
onKgSubmit:
|
10092
|
+
kgRules: i.rules.value[B.var_nam],
|
10093
|
+
onKgSubmit: ie
|
10073
10094
|
}, null);
|
10074
10095
|
}
|
10075
|
-
function
|
10076
|
-
let
|
10096
|
+
function ye() {
|
10097
|
+
let B, W;
|
10077
10098
|
return createVNode(KgResizable, {
|
10078
10099
|
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10079
|
-
kgMinWidth:
|
10100
|
+
kgMinWidth: G.value,
|
10080
10101
|
kgMaxWidth: N.value,
|
10081
10102
|
kgWidth: x.value,
|
10082
10103
|
kgDisabled: P.value,
|
@@ -10096,11 +10117,11 @@ const getProps$p = () => ({
|
|
10096
10117
|
ref: Y
|
10097
10118
|
}, [M.value.length > 0 && createVNode(Row, {
|
10098
10119
|
gutter: 12
|
10099
|
-
}, _isSlot$9(
|
10100
|
-
default: () => [
|
10120
|
+
}, _isSlot$9(B = M.value.map(be)) ? B : {
|
10121
|
+
default: () => [B]
|
10101
10122
|
}), K.value.length > 0 && H.value.length > 0 && createVNode(Divider, null, null), L.value.length > 0 && createVNode(Row, {
|
10102
10123
|
gutter: 12
|
10103
|
-
}, _isSlot$9(W = L.value.map(
|
10124
|
+
}, _isSlot$9(W = L.value.map(be)) ? W : {
|
10104
10125
|
default: () => [W]
|
10105
10126
|
}), u.value && createVNode("div", {
|
10106
10127
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -10109,41 +10130,41 @@ const getProps$p = () => ({
|
|
10109
10130
|
})]
|
10110
10131
|
});
|
10111
10132
|
}
|
10112
|
-
function
|
10113
|
-
let
|
10133
|
+
function Ae() {
|
10134
|
+
let B;
|
10114
10135
|
return createVNode("div", null, [createVNode(Button, {
|
10115
10136
|
type: "primary",
|
10116
10137
|
ghost: !D.value,
|
10117
10138
|
disabled: D.value,
|
10118
|
-
onClick:
|
10119
|
-
}, _isSlot$9(
|
10120
|
-
default: () => [
|
10139
|
+
onClick: ue
|
10140
|
+
}, _isSlot$9(B = n.t("kg.cancel")) ? B : {
|
10141
|
+
default: () => [B]
|
10121
10142
|
}), createVNode(Button, {
|
10122
10143
|
type: "primary",
|
10123
10144
|
disabled: R.value,
|
10124
10145
|
loading: w.value,
|
10125
10146
|
danger: !!s.isDeleting.value,
|
10126
|
-
onClick:
|
10127
|
-
},
|
10128
|
-
default: () => [
|
10147
|
+
onClick: ie
|
10148
|
+
}, {
|
10149
|
+
default: () => [U.value]
|
10129
10150
|
})]);
|
10130
10151
|
}
|
10131
|
-
function
|
10152
|
+
function Ie() {
|
10132
10153
|
return createVNode("div", {
|
10133
10154
|
title: q.title.value
|
10134
10155
|
}, [q.title.value]);
|
10135
10156
|
}
|
10136
|
-
function
|
10157
|
+
function pe() {
|
10137
10158
|
return createVNode(KgSubmitHeader, {
|
10138
10159
|
isFullscreen: ee.isFullscreen,
|
10139
|
-
"onUpdate:isFullscreen": (
|
10160
|
+
"onUpdate:isFullscreen": (B) => ee.isFullscreen = B,
|
10140
10161
|
kgShowFullscreenButton: !u.value,
|
10141
10162
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
10142
|
-
onKgCancel:
|
10163
|
+
onKgCancel: ue
|
10143
10164
|
}, null);
|
10144
10165
|
}
|
10145
10166
|
return onUnmounted(async () => {
|
10146
|
-
await
|
10167
|
+
await te();
|
10147
10168
|
}), () => createVNode(Drawer, {
|
10148
10169
|
visible: J.value,
|
10149
10170
|
placement: "right",
|
@@ -10152,13 +10173,13 @@ const getProps$p = () => ({
|
|
10152
10173
|
keyboard: !1,
|
10153
10174
|
destroyOnClose: !0,
|
10154
10175
|
width: X.value,
|
10155
|
-
class:
|
10176
|
+
class: le.value,
|
10156
10177
|
"kg-frm_id": s.formID
|
10157
10178
|
}, {
|
10158
|
-
title:
|
10159
|
-
extra:
|
10160
|
-
default:
|
10161
|
-
footer:
|
10179
|
+
title: Ie,
|
10180
|
+
extra: pe,
|
10181
|
+
default: ye,
|
10182
|
+
footer: Ae
|
10162
10183
|
});
|
10163
10184
|
}
|
10164
10185
|
});
|
@@ -11148,6 +11169,7 @@ class VarSubmitConfig {
|
|
11148
11169
|
v(this, "layout");
|
11149
11170
|
v(this, "max_width");
|
11150
11171
|
v(this, "min_width");
|
11172
|
+
v(this, "props");
|
11151
11173
|
v(this, "resizable_flg");
|
11152
11174
|
v(this, "responsive_flg");
|
11153
11175
|
v(this, "upt_dft_width");
|
@@ -11184,6 +11206,7 @@ class VarSubmitConfig {
|
|
11184
11206
|
case "layout":
|
11185
11207
|
case "max_width":
|
11186
11208
|
case "min_width":
|
11209
|
+
case "props":
|
11187
11210
|
case "resizable_flg":
|
11188
11211
|
case "responsive_flg":
|
11189
11212
|
case "upt_dft_width":
|
@@ -13116,7 +13139,7 @@ function _useColumns(e) {
|
|
13116
13139
|
index: C
|
13117
13140
|
}) => C + 1
|
13118
13141
|
}, ...(I = m == null ? void 0 : m.map((C, V) => {
|
13119
|
-
var $, P,
|
13142
|
+
var $, P, G;
|
13120
13143
|
const A = C.var_nam;
|
13121
13144
|
function O() {
|
13122
13145
|
return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
@@ -13138,9 +13161,9 @@ function _useColumns(e) {
|
|
13138
13161
|
var N, x, Y, q, X, J;
|
13139
13162
|
if (((x = (N = E.option.value.KgTable) == null ? void 0 : N.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(b.length <= 0))
|
13140
13163
|
return uniqBy(b.map((ee) => {
|
13141
|
-
var
|
13164
|
+
var le;
|
13142
13165
|
return {
|
13143
|
-
value: (
|
13166
|
+
value: (le = ee == null ? void 0 : ee[A]) != null ? le : "",
|
13144
13167
|
text: l({
|
13145
13168
|
column: {
|
13146
13169
|
dataIndex: A
|
@@ -13185,7 +13208,7 @@ function _useColumns(e) {
|
|
13185
13208
|
align: D(),
|
13186
13209
|
fixed: K(),
|
13187
13210
|
sorter: L(),
|
13188
|
-
sortOrder: (($ = i.value) == null ? void 0 : $.field) === A && (
|
13211
|
+
sortOrder: (($ = i.value) == null ? void 0 : $.field) === A && (G = (P = i.value) == null ? void 0 : P.order) != null ? G : null,
|
13189
13212
|
filteredValue: w(),
|
13190
13213
|
filters: H(),
|
13191
13214
|
onFilter: (N, x) => N === "" ? isNil(x == null ? void 0 : x[A]) || (x == null ? void 0 : x[A]) === "" : (x == null ? void 0 : x[A]) === N,
|
@@ -13367,12 +13390,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13367
13390
|
const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), l = useKgSearch(), o = useKgTable(), i = useKgSubmit();
|
13368
13391
|
l.onSearch(async (F) => (N(F), !1)), l.onReset(async () => (g.value = {}, !1)), o.store.$onAction(async ({
|
13369
13392
|
name: F,
|
13370
|
-
args:
|
13393
|
+
args: U
|
13371
13394
|
}) => {
|
13372
13395
|
switch (F) {
|
13373
13396
|
case "setRowSelect":
|
13374
|
-
if (
|
13375
|
-
const Q =
|
13397
|
+
if (U[0] === s.formID) {
|
13398
|
+
const Q = U[1], z = U[2], te = Q[o.id.value];
|
13376
13399
|
switch (!0) {
|
13377
13400
|
case (z && !w.value.includes(te)):
|
13378
13401
|
x([...w.value, te]);
|
@@ -13384,7 +13407,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13384
13407
|
}
|
13385
13408
|
break;
|
13386
13409
|
case "clearDatas":
|
13387
|
-
|
13410
|
+
U[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0, G(), c.value = []);
|
13388
13411
|
break;
|
13389
13412
|
}
|
13390
13413
|
});
|
@@ -13403,33 +13426,33 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13403
13426
|
datas: m,
|
13404
13427
|
transformDatas: y
|
13405
13428
|
} = _useDatas(), T = computed(() => {
|
13406
|
-
var F,
|
13407
|
-
return (
|
13429
|
+
var F, U;
|
13430
|
+
return (U = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? U : null;
|
13408
13431
|
}), k = computed(() => {
|
13409
|
-
var
|
13432
|
+
var U, Q, z, te, ue, ie, fe, he, Se;
|
13410
13433
|
let F = {
|
13411
13434
|
pageNo: D.pageIndex,
|
13412
13435
|
pageSize: D.pageSize,
|
13413
|
-
column: (Q = (
|
13436
|
+
column: (Q = (U = g.value) == null ? void 0 : U.field) != null ? Q : void 0,
|
13414
13437
|
order: g.value.order === "ascend" ? "asc" : g.value.order === "descend" ? "desc" : void 0,
|
13415
13438
|
...(te = (z = l.model) == null ? void 0 : z.value) != null ? te : {}
|
13416
13439
|
};
|
13417
13440
|
return s.varButtonSearch.value && (F = {
|
13418
13441
|
...F,
|
13419
|
-
...KgVarUtil.parseCommandParameter((
|
13420
|
-
}), (
|
13442
|
+
...KgVarUtil.parseCommandParameter((ie = (ue = s.varButtonSearch.value) == null ? void 0 : ue.cmd_prm) != null ? ie : "")
|
13443
|
+
}), (fe = s.varGridConfig.value) != null && fe.cmd_prm && (F = {
|
13421
13444
|
...F,
|
13422
13445
|
...KgVarUtil.parseCommandParameter((he = s.varGridConfig.value.cmd_prm) != null ? he : "")
|
13423
|
-
}), ((
|
13446
|
+
}), ((Se = s.varGridConfig.value) == null ? void 0 : Se.convert_sort_field_to_under_score_flg) === 1 && F.column && (F.column = snakeCase$1(F.column)), F;
|
13424
13447
|
}), I = computed(() => {
|
13425
|
-
var F,
|
13426
|
-
if (!isNil((
|
13448
|
+
var F, U, Q, z;
|
13449
|
+
if (!isNil((U = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : U.kgDisabled))
|
13427
13450
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgDisabled;
|
13428
13451
|
if (!isNil(e.kgDisabled))
|
13429
13452
|
return e.kgDisabled;
|
13430
13453
|
}), C = computed(() => {
|
13431
|
-
var F,
|
13432
|
-
if (!isNil((
|
13454
|
+
var F, U, Q, z;
|
13455
|
+
if (!isNil((U = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
|
13433
13456
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
|
13434
13457
|
if (!isNil(e.kgCheckboxDisabled))
|
13435
13458
|
return e.kgCheckboxDisabled;
|
@@ -13448,18 +13471,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13448
13471
|
selectedRowKeys: w,
|
13449
13472
|
preserveSelectedRowKeys: !1,
|
13450
13473
|
getCheckboxProps: (F) => {
|
13451
|
-
var
|
13474
|
+
var U;
|
13452
13475
|
return {
|
13453
|
-
disabled: !!I.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((
|
13476
|
+
disabled: !!I.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C, F))
|
13454
13477
|
};
|
13455
13478
|
},
|
13456
13479
|
onSelect: (F) => Y(F),
|
13457
13480
|
onChange: (F) => o.isMultiSelect.value && x(F)
|
13458
13481
|
};
|
13459
13482
|
}), L = computed(() => {
|
13460
|
-
var
|
13483
|
+
var U;
|
13461
13484
|
let F = "kg-table";
|
13462
|
-
switch (((
|
13485
|
+
switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (F += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (F += " kg-table--no-bottom"), i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (F += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
|
13463
13486
|
case "L":
|
13464
13487
|
F += " kg-table--row-l";
|
13465
13488
|
break;
|
@@ -13472,9 +13495,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13472
13495
|
}
|
13473
13496
|
return F;
|
13474
13497
|
}), H = computed(() => {
|
13475
|
-
var
|
13498
|
+
var U;
|
13476
13499
|
let F = "kg-table-bottom";
|
13477
|
-
return ((
|
13500
|
+
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
|
13478
13501
|
}), w = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), D = reactive({
|
13479
13502
|
pageIndex: 1,
|
13480
13503
|
pageSize: 10,
|
@@ -13486,14 +13509,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13486
13509
|
});
|
13487
13510
|
watch(o.pageSizeOptions, (F) => {
|
13488
13511
|
F.length > 0 && !F.includes(D.pageSize) && (D.pageSize = o.pageSizeOption.value);
|
13489
|
-
}), watch([T, o.isReadAutomatically, l.isReady], ([F,
|
13490
|
-
F &&
|
13512
|
+
}), watch([T, o.isReadAutomatically, l.isReady], ([F, U, Q]) => {
|
13513
|
+
F && U && Q && !o.store.getIsRetrieved(s.formID) && N({
|
13491
13514
|
isSearchFirstPage: !0
|
13492
13515
|
});
|
13493
13516
|
}, {
|
13494
13517
|
immediate: !0
|
13495
|
-
}), watch(s.isCreating, (F,
|
13496
|
-
F === !0 ? $() : F === !1 &&
|
13518
|
+
}), watch(s.isCreating, (F, U) => {
|
13519
|
+
F === !0 ? $() : F === !1 && U === !0 && P();
|
13497
13520
|
}), onUnmounted(() => {
|
13498
13521
|
o.store.dispose(s.formID);
|
13499
13522
|
});
|
@@ -13506,13 +13529,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13506
13529
|
}
|
13507
13530
|
}
|
13508
13531
|
function P() {
|
13509
|
-
const F = m.value.find((
|
13532
|
+
const F = m.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
|
13510
13533
|
F && (o.store.setDatas(s.formID, without$1(m.value, F)), o.store.setSelectedRows(s.formID, []));
|
13511
13534
|
}
|
13512
|
-
function
|
13535
|
+
function G(F, U) {
|
13513
13536
|
var Q;
|
13514
13537
|
if (!(!!I.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!K.value) {
|
13515
|
-
if (!
|
13538
|
+
if (!U) {
|
13516
13539
|
o.store.setSelectedRows(s.formID, []);
|
13517
13540
|
return;
|
13518
13541
|
}
|
@@ -13522,13 +13545,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13522
13545
|
case 0:
|
13523
13546
|
break;
|
13524
13547
|
case 1:
|
13525
|
-
o.store.setSelectedRows(s.formID, [
|
13548
|
+
o.store.setSelectedRows(s.formID, [U]);
|
13526
13549
|
break;
|
13527
13550
|
}
|
13528
13551
|
break;
|
13529
13552
|
case 2:
|
13530
13553
|
o.store.emit(s.formID, "rowDoubleClick", {
|
13531
|
-
row:
|
13554
|
+
row: U
|
13532
13555
|
});
|
13533
13556
|
break;
|
13534
13557
|
}
|
@@ -13538,13 +13561,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13538
13561
|
KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`, {
|
13539
13562
|
param: F
|
13540
13563
|
});
|
13541
|
-
const
|
13542
|
-
z && (setTimeout(() =>
|
13564
|
+
const U = watch(o.isReady, (z) => {
|
13565
|
+
z && (setTimeout(() => U()), Q());
|
13543
13566
|
}, {
|
13544
13567
|
immediate: !0
|
13545
13568
|
});
|
13546
13569
|
async function Q() {
|
13547
|
-
var z, te,
|
13570
|
+
var z, te, ue, ie, fe, he, Se;
|
13548
13571
|
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !T.value) {
|
13549
13572
|
KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
|
13550
13573
|
VarButton: s.varButtonSearch.value
|
@@ -13553,59 +13576,59 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13553
13576
|
}
|
13554
13577
|
F.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
|
13555
13578
|
try {
|
13556
|
-
const ve = KgUtil.parseParams(k.value, o.profileFormID.value, t),
|
13579
|
+
const ve = KgUtil.parseParams(k.value, o.profileFormID.value, t), be = ref({});
|
13557
13580
|
if (!await o.store.emit(s.formID, "beforeRetrieve", {
|
13558
13581
|
params: ve,
|
13559
|
-
response:
|
13582
|
+
response: be
|
13560
13583
|
})) {
|
13561
|
-
const
|
13584
|
+
const pe = ((te = (z = n.option.value.KgSearch) == null ? void 0 : z.dynamicQuery) == null ? void 0 : te.on) === !0 && ((ue = s.currentVarProfileMaster.value) == null ? void 0 : ue.dyn_flg) === 1, {
|
13562
13585
|
sql: Ce,
|
13563
13586
|
whereSql: ke,
|
13564
|
-
orderBySql:
|
13565
|
-
} = KgUtil.getQuerySql(k.value, o.profileFormID.value, null, t),
|
13566
|
-
method: (
|
13587
|
+
orderBySql: Me
|
13588
|
+
} = KgUtil.getQuerySql(k.value, o.profileFormID.value, null, t), B = await httpClient().request({
|
13589
|
+
method: (fe = (ie = s.varButtonSearch.value) == null ? void 0 : ie.cmd_method) != null ? fe : "GET",
|
13567
13590
|
url: T.value,
|
13568
13591
|
params: ve,
|
13569
13592
|
data: ve,
|
13570
13593
|
headers: {
|
13571
|
-
[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]:
|
13594
|
+
[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: pe,
|
13572
13595
|
[KG_HTTP_HEADERS.KG_QUERY_SQL]: Ce,
|
13573
13596
|
[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: ke,
|
13574
|
-
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]:
|
13597
|
+
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: Me
|
13575
13598
|
}
|
13576
13599
|
}, {
|
13577
13600
|
isReturnNativeResponse: !0,
|
13578
13601
|
successMessageMode: "none"
|
13579
13602
|
});
|
13580
|
-
if (!
|
13603
|
+
if (!B.data)
|
13581
13604
|
throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
|
13582
|
-
if (![0, 200].includes((he =
|
13583
|
-
throw message.error(
|
13584
|
-
|
13605
|
+
if (![0, 200].includes((he = B.data.code) != null ? he : -1) || !B.data.success)
|
13606
|
+
throw message.error(B.data.message || n.t("kg.KgTable.request-fail-error")), new Error(B.data.message || n.t("kg.KgTable.request-fail-error"));
|
13607
|
+
pe && B.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), be.value = B.data.result, KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
|
13585
13608
|
params: ve,
|
13586
|
-
response:
|
13609
|
+
response: be.value
|
13587
13610
|
});
|
13588
13611
|
}
|
13589
13612
|
const {
|
13590
|
-
datas:
|
13613
|
+
datas: ye,
|
13591
13614
|
total: Ae
|
13592
|
-
} = y(
|
13615
|
+
} = y(be);
|
13593
13616
|
await o.store.emit(s.formID, "beforeSetDatas", {
|
13594
|
-
datas:
|
13617
|
+
datas: ye,
|
13595
13618
|
total: Ae,
|
13596
|
-
setDatas(
|
13597
|
-
o.store.setDatas(s.formID,
|
13619
|
+
setDatas(pe) {
|
13620
|
+
o.store.setDatas(s.formID, pe);
|
13598
13621
|
}
|
13599
|
-
}), d.value = {}, o.store.setDatas(s.formID,
|
13600
|
-
const
|
13601
|
-
|
13622
|
+
}), d.value = {}, o.store.setDatas(s.formID, ye.value), D.total = Ae.value;
|
13623
|
+
const Ie = cloneDeep(w.value);
|
13624
|
+
G(), c.value = [], await nextTick(), F.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, Ie.map((pe) => {
|
13602
13625
|
var Ce;
|
13603
|
-
return (Ce =
|
13604
|
-
}).filter((
|
13605
|
-
page:
|
13606
|
-
datas:
|
13607
|
-
setDatas(
|
13608
|
-
o.store.setDatas(s.formID,
|
13626
|
+
return (Ce = ye.value) == null ? void 0 : Ce.find((ke) => ke[o.id.value] === pe);
|
13627
|
+
}).filter((pe) => !!pe)) : ((Se = s.varGridConfig.value) == null ? void 0 : Se.check_first_row_after_retrieve) === 1 && ye.value.length > 0 && o.store.setSelectedRows(s.formID, [ye.value[0]]), await o.store.emit(s.formID, "retrieve", {
|
13628
|
+
page: be.value,
|
13629
|
+
datas: ye,
|
13630
|
+
setDatas(pe) {
|
13631
|
+
o.store.setDatas(s.formID, pe);
|
13609
13632
|
}
|
13610
13633
|
}), o.store.setIsRetrieved(s.formID, !0);
|
13611
13634
|
} catch (ve) {
|
@@ -13616,18 +13639,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13616
13639
|
}
|
13617
13640
|
}
|
13618
13641
|
function x(F) {
|
13619
|
-
o.store.setSelectedRows(s.formID, F.map((
|
13642
|
+
o.store.setSelectedRows(s.formID, F.map((U) => {
|
13620
13643
|
var Q;
|
13621
|
-
return (Q = m.value) == null ? void 0 : Q.find((z) => z[o.id.value] ===
|
13622
|
-
}).filter((
|
13644
|
+
return (Q = m.value) == null ? void 0 : Q.find((z) => z[o.id.value] === U);
|
13645
|
+
}).filter((U) => !!U));
|
13623
13646
|
}
|
13624
13647
|
function Y(F) {
|
13625
|
-
var
|
13648
|
+
var U, Q;
|
13626
13649
|
switch (o.isMultiSelect.value) {
|
13627
13650
|
case !0:
|
13628
13651
|
{
|
13629
13652
|
const z = F[o.id.value];
|
13630
|
-
w.value.includes(z) ? w.value = without$1(w.value, z) : w.value = [...(
|
13653
|
+
w.value.includes(z) ? w.value = without$1(w.value, z) : w.value = [...(U = w.value) != null ? U : [], z];
|
13631
13654
|
}
|
13632
13655
|
break;
|
13633
13656
|
case !1:
|
@@ -13639,13 +13662,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13639
13662
|
}
|
13640
13663
|
o.store.setSelectedRows(s.formID, w.value.map((z) => {
|
13641
13664
|
var te;
|
13642
|
-
return (te = m.value) == null ? void 0 : te.find((
|
13665
|
+
return (te = m.value) == null ? void 0 : te.find((ue) => ue[o.id.value] === z);
|
13643
13666
|
}).filter((z) => !!z));
|
13644
13667
|
}
|
13645
|
-
function q(F,
|
13646
|
-
|
13668
|
+
function q(F, U) {
|
13669
|
+
U.width = F, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, F);
|
13647
13670
|
}
|
13648
|
-
async function X(F,
|
13671
|
+
async function X(F, U, Q, z) {
|
13649
13672
|
switch (z.action) {
|
13650
13673
|
case "sort": {
|
13651
13674
|
g.value = Q, g.value.order || (g.value.field = void 0), await nextTick(), N({
|
@@ -13654,12 +13677,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13654
13677
|
break;
|
13655
13678
|
}
|
13656
13679
|
case "filter":
|
13657
|
-
d.value =
|
13680
|
+
d.value = U;
|
13658
13681
|
}
|
13659
13682
|
}
|
13660
|
-
function J(F,
|
13683
|
+
function J(F, U) {
|
13661
13684
|
var z;
|
13662
|
-
const Q =
|
13685
|
+
const Q = U[o.id.value];
|
13663
13686
|
switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
|
13664
13687
|
case 0:
|
13665
13688
|
F ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
|
@@ -13669,14 +13692,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13669
13692
|
break;
|
13670
13693
|
}
|
13671
13694
|
}
|
13672
|
-
function ee(F,
|
13673
|
-
|
13695
|
+
function ee(F, U) {
|
13696
|
+
U !== D.pageSize ? (D.pageIndex = 1, D.pageSize = U) : D.pageIndex = F, N();
|
13674
13697
|
}
|
13675
|
-
function
|
13698
|
+
function le({
|
13676
13699
|
title: F,
|
13677
|
-
column:
|
13700
|
+
column: U
|
13678
13701
|
}) {
|
13679
|
-
switch (
|
13702
|
+
switch (U.dataIndex) {
|
13680
13703
|
case "index":
|
13681
13704
|
return createVNode(KgTableSetting, {
|
13682
13705
|
kgDisabled: I.value
|
@@ -13697,18 +13720,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13697
13720
|
index: 0
|
13698
13721
|
}, null), M.value && createVNode(TableSummary.Cell, {
|
13699
13722
|
index: O.value ? 1 : 0
|
13700
|
-
}, null), u.value.map((
|
13701
|
-
const z = String(
|
13702
|
-
let
|
13703
|
-
return O.value && M.value ?
|
13704
|
-
index:
|
13705
|
-
align:
|
13723
|
+
}, null), u.value.map((U, Q) => {
|
13724
|
+
const z = String(U.dataIndex), te = z ? s.store.getVarGridDetail(s.formID, z) : null, ue = (() => ["left", "center", "right"].includes((te == null ? void 0 : te.align) || "") ? te == null ? void 0 : te.align : "left")();
|
13725
|
+
let ie = Q;
|
13726
|
+
return O.value && M.value ? ie += 2 : (O.value || M.value) && (ie += 1), createVNode(TableSummary.Cell, {
|
13727
|
+
index: ie,
|
13728
|
+
align: ue
|
13706
13729
|
}, {
|
13707
13730
|
default: () => {
|
13708
|
-
var
|
13709
|
-
return [(he = (
|
13710
|
-
column:
|
13711
|
-
index:
|
13731
|
+
var fe, he;
|
13732
|
+
return [(he = (fe = r == null ? void 0 : r.KgTable) == null ? void 0 : fe["summary.bodyCell"]) == null ? void 0 : he.call(fe, {
|
13733
|
+
column: U,
|
13734
|
+
index: ie,
|
13712
13735
|
varGridDetail: te
|
13713
13736
|
})];
|
13714
13737
|
}
|
@@ -13721,7 +13744,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13721
13744
|
return !o.isReadAutomatically.value && !o.store.getIsRetrieved(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
13722
13745
|
}
|
13723
13746
|
return () => {
|
13724
|
-
var F,
|
13747
|
+
var F, U, Q;
|
13725
13748
|
return createVNode("div", {
|
13726
13749
|
class: L.value,
|
13727
13750
|
"kg-frm_id": s.formID,
|
@@ -13739,18 +13762,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13739
13762
|
dataSource: m.value,
|
13740
13763
|
loading: b.value,
|
13741
13764
|
rowKey: o.id.value,
|
13742
|
-
rowClassName: (
|
13765
|
+
rowClassName: (U = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : U.kgRowClassName,
|
13743
13766
|
expandColumnWidth: 28,
|
13744
13767
|
expandedRowKeys: c.value,
|
13745
13768
|
rowSelection: K.value,
|
13746
13769
|
customRow: (z) => ({
|
13747
|
-
onClick: (te) =>
|
13770
|
+
onClick: (te) => G(te, z)
|
13748
13771
|
}),
|
13749
13772
|
onResizeColumn: q,
|
13750
13773
|
onChange: X,
|
13751
13774
|
onExpand: J
|
13752
13775
|
}, {
|
13753
|
-
headerCell:
|
13776
|
+
headerCell: le,
|
13754
13777
|
bodyCell: p,
|
13755
13778
|
emptyText: ge,
|
13756
13779
|
expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
|
@@ -15724,7 +15747,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15724
15747
|
var N;
|
15725
15748
|
return createVNode("div", {
|
15726
15749
|
class: "title",
|
15727
|
-
onClick:
|
15750
|
+
onClick: G
|
15728
15751
|
}, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
|
15729
15752
|
class: "kg-search-title-left",
|
15730
15753
|
onClick: (x) => {
|
@@ -15815,7 +15838,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15815
15838
|
}
|
15816
15839
|
});
|
15817
15840
|
}
|
15818
|
-
function
|
15841
|
+
function G() {
|
15819
15842
|
C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
|
15820
15843
|
}
|
15821
15844
|
return () => createVNode(KgResizable, {
|
@@ -16353,8 +16376,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16353
16376
|
});
|
16354
16377
|
if (u.value = null, c.value = R != null ? R : [], L) {
|
16355
16378
|
const $ = c.value.find((P) => {
|
16356
|
-
var
|
16357
|
-
return P.id === ((
|
16379
|
+
var G;
|
16380
|
+
return P.id === ((G = a.getSelectedVarCatalog) == null ? void 0 : G.id);
|
16358
16381
|
});
|
16359
16382
|
a.setSelectedVarCatalog($ != null ? $ : null), d.value = $ != null && $.id ? [$.id] : [];
|
16360
16383
|
} else
|