halov 26.902.0 → 26.910.2
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/halov.es.js +254 -254
- package/dist/halov.umd.cjs +3 -3
- package/package.json +66 -66
package/dist/halov.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("img[data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("img[data-v-f7799232]{display:block;max-width:100%}.app-tab-item[data-v-df170cc3]{border-top-width:2px}[data-v-e7319d81] .n-upload-trigger{display:block}.item-box[data-v-e7319d81]{display:block;flex-grow:1}.form-input[data-v-e7319d81]{display:block}.text-input[data-v-e7319d81]{font-size:small;display:block;text-align:end;padding-right:4px}.detail-page-card-center[data-v-6dec6e5e]{width:1080px;align-self:center;margin:1em}div[data-v-8b391a0f] div.n-form-item-feedback-wrapper{display:none}div[data-v-8b391a0f] .n-form-item-blank{margin-bottom:4px}.n-form-item.n-form-item--left-labelled.n-form-item--auto-label-width>label{min-width:8em}[data-v-18129d6e] .n-upload-trigger{display:block}.edit-title-btn{visibility:hidden}.main-detail-panel[data-v-ca4664e2]{display:flex;width:100%;height:100%;overflow:hidden;--n-resize-trigger-color: rgb(224, 224, 230, .24);--n-resize-trigger-color-hover: #36ad6a}.dark .main-detail-panel[data-v-ca4664e2]{--n-resize-trigger-color: rgba(255, 255, 255, .24);--n-resize-trigger-color-hover: #7fe7c4}.main-detail-panel.horizontal[data-v-ca4664e2]{flex-direction:row}.main-detail-panel.vertical[data-v-ca4664e2]{flex-direction:column}.panel[data-v-ca4664e2]{overflow:auto;display:flex;flex-direction:column}.divider[data-v-ca4664e2]{background-color:var(--n-resize-trigger-color);cursor:col-resize;transition:background .2s}.main-detail-panel.horizontal .divider[data-v-ca4664e2]{width:4px;height:100%}.main-detail-panel.vertical .divider[data-v-ca4664e2]{height:4px;width:100%;cursor:row-resize}.divider.dragging[data-v-ca4664e2],.divider[data-v-ca4664e2]:hover{background-color:var(--n-resize-trigger-color-hover)}.icon-container[data-v-ff87aac6]{display:flex;flex-direction:row;flex-wrap:wrap;padding-right:4px;padding-bottom:4px}.icon-button[data-v-ff87aac6]{max-width:100px;height:90px;width:80px;margin:4px 0 0 4px}.menu-spin>.n-spin-content{height:100%;display:flex;flex-direction:column}.user-name-box[data-v-d85ebb4a]{background:#abf3;position:relative;z-index:1;width:6rem;height:27px;line-height:27px;border-radius:0 27px 27px 0;left:20px;top:6px}.user-name-label[data-v-d85ebb4a]{padding-left:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;text-align:center}.app-tabs{margin-bottom:0}.app-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type{--n-tab-color: #D1D5DB;--n-tab-text-color: #1E1B4B;--n-tab-text-color-active: #1E1B4B;--n-tab-border-color: #A3A3A3}.dark .app-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type{--n-tab-color: #27272A;--n-tab-text-color: #71717A;--n-tab-text-color-active: #D4D4D8;--n-tab-border-color: #525252}.app-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-tab.n-tabs-tab--active{background-color:#f4f4f5;border-bottom-color:#f4f4f5;font-weight:bolder;border-top-color:#1e40af}.dark .app-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-tab.n-tabs-tab--active{background-color:#171717;border-bottom-color:#171717;border-top-color:#e2e8f0}.app-tab-label{padding:0 1em}.d-block{display:block}.d-none{display:none}.d-flex{display:flex}.d-inline{display:inline}.d-inline-block{display:inline-block}.n-form .n-form-item .n-form-item-feedback-wrapper:empty{display:none}.n-form .n-form-item{margin-bottom:4px}.n-data-table-td,.n-data-table-th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.n-dropdown-menu.n-dropdown{min-width:150px}.text-monospace,.halo-form-code input,.halo-form-code-u input,.halo-form-code-l input{font-family:Monaco,Consolas,Liberation Mono,SimHei,Courier New,monospace}.halo-form-code-u input,.halo-form-code-u{text-transform:uppercase}.halo-form-code-l input,.halo-form-code-l{text-transform:lowercase}.halo-form-wrap{white-space:wrap;overflow-wrap:break-word;display:inline-block}.h-100{height:100%}.h-50{height:50%}td .halo-form-code,td .halo-form-code-u,td .halo-form-code-l{font-family:Monaco,Consolas,Liberation Mono,SimHei,Courier New,monospace}td.text-num{font-family:Monaco,Consolas,Liberation Mono,SimHei,Courier New,monospace;text-align:right}td.text-date,td.text-time,td.text-datetime{font-family:Monaco,Consolas,Liberation Mono,SimHei,Courier New,monospace}td .percent-mark{margin-left:4px;margin-right:2px}td .percent-mark svg{margin:0 auto;display:block}td .status-tag{border-radius:2px;border-width:0 0 0 4px;border-style:solid;padding:0 4px;font-size:smaller;border-color:#9999}td .status-New,td .status-Created,td .status-Standby{border-color:#8bc34a99}td .status-True,td .status-true,td .status-Success,td .status-Succeeded,td .status-Succeed,td .status-Good,td .status-InStock,td .status-Passed,td .status-Resolved,td .status-Processing,td .status-InProduction,td .status-Allowed,td .status-Qualified,td .status-Loaded{border-color:#18a05899}td .status-False,td .status-false,td .status-NonGood,td .status-Failed,td .status-Rejected,td .status-Abnormal,td .status-Forbidden,td .status-Defective{border-color:#d0305099}td .status-Confirmed,td .status-Dispatched,td .status-Inspected{border-color:#3f51b599}td .status-Consumed,td .status-Finished,td .status-Unloaded{border-color:#607d8b99}td .status-Ignored{border-color:#79554899}td .status-OutStock,td .status-Cancelled{border-color:#9e9e9e99}td .status-InTransit{border-color:#78909c99}td .status-InFactory{border-color:#43a04799}td .status-InGarage{border-color:#673ab799}td .status-Doubt,td .status-Paused{border-color:#ffc10799}td .status-Read{border-color:#ffc107cc}td .status-Write{border-color:#673ab7cc}.n-data-table .n-data-table-th .n-data-table-sorter:not(.n-data-table-sorter--asc):not(.n-data-table-sorter--desc){display:none}.n-data-table .btn-cell-ref .n-button__content{opacity:.2}.n-data-table .btn-cell-ref:hover .n-button__content{opacity:1;color:#673ab7}.n-data-table .btn-cell-qr .n-button__content{opacity:.2}.n-data-table .btn-cell-qr:hover .n-button__content{opacity:1;color:#673ab7}.n-data-table-td:not(.check-mark) .cell-unchecked{display:none}.draging-ghost{opacity:.5;background:#c8ebfb}.drag-sorting-handle{cursor:row-resize}.pg-item{margin:1px;border:1px solid transparent;padding:2px;border-radius:3px;display:flex;flex-direction:row;align-items:center}.pg-item:hover{border-color:#eee}.dark .pg-item:hover{border-color:#fff6}.pg-label{padding:0 2px;white-space:nowrap;max-width:50%;text-overflow:clip}.pg-value{padding-left:.5em;padding-right:1em;position:relative}.menu-icon{border-radius:2px}.menu-icon-blank{width:16px;height:16px}.text-positive{color:#00c853}.text-negative,.text-danger{color:#b71c1c}ul,li{list-style:none}html,body,#app,.n-config-provider{height:100%;margin:0;padding:0}.flex-column{display:flex;flex-direction:column}.flex-row{display:flex;flex-direction:row}.flex-1{flex:1 1 0}.flex-grow-1{flex-grow:1}.flex-shrink-1{flex-shrink:1}.flex-wrap{flex-wrap:wrap}.gap1{gap:1em}.gap05{gap:.5em}.gap025{gap:.25em}.gap015{gap:.15em}.gap01{gap:.1em}.gap-x-1{column-gap:1em}.gap-x-05{column-gap:.5em}.gap-x-25{column-gap:.25em}.gap-y-1{row-gap:1em}.gap-y-05{row-gap:.5em}.gap-y-25{row-gap:.25em}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.week-0{background-color:#a5d6a7}input.ime-off,.ime-off input{ime-mode:disabled}.h-scroll{overflow-x:scroll}.v-scroll{overflow-y:scroll}.tabs-card.n-card>.n-card__content{padding:0}.tabs-card.n-card>.n-card__content .n-tab-pane{padding:0}.tabs-card.n-card>.n-card__content .n-tab-pane>.n-card{border-top:0}.info-card{flex-grow:1;margin-top:1em}.info-card>.n-card__content{display:flex;flex-direction:column}.info-card>.n-card__content>.n-tabs{flex-grow:1}.info-card>.n-card__content>.n-tabs>.n-tab-pane{flex-grow:1;display:flex;flex-direction:column}.info-card>.n-card__content>.n-tabs>.n-tab-pane>div{flex-grow:1;display:flex;flex-direction:column}.page-component.n-space>div:first-child{flex-grow:1;display:flex;flex-direction:column}.form-create .n-input--disabled .n-input__input-el,.form-create .n-input--disabled .n-input__placeholder,.form-create .n-input--disabled .n-input__textarea-el,.form-create .n-base-selection--disabled .n-base-selection-overlay__wrapper{color:#000;font-weight:700}.bordered{border:1px solid var(--n-border-color);border-radius:var(--n-border-radius)}.n-dialog__content .line,.n-message__content .line{display:block}.n-tree-node-content__text{white-space:nowrap}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
var Go = Object.defineProperty;
|
|
3
3
|
var Ko = (e, n, t) => n in e ? Go(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
4
4
|
var pe = (e, n, t) => Ko(e, typeof n != "symbol" ? n + "" : n, t);
|
|
5
|
-
import { inject as ke, defineComponent as P, ref as
|
|
5
|
+
import { inject as ke, defineComponent as P, ref as z, watch as te, openBlock as y, createElementBlock as D, normalizeStyle as ce, createElementVNode as A, createCommentVNode as ee, computed as ye, createBlock as N, unref as r, withCtx as f, Fragment as Ce, renderList as Ie, createTextVNode as Q, toDisplayString as H, createVNode as v, renderSlot as de, h as U, onMounted as ge, reactive as _t, toRefs as Wo, resolveComponent as re, createStaticVNode as Xt, withModifiers as Zo, withDirectives as $e, vShow as Be, resolveDynamicComponent as Ht, KeepAlive as Yo, normalizeClass as Ue, createSlots as Vt, onUnmounted as Qo } from "vue";
|
|
6
6
|
import Fe from "axios";
|
|
7
7
|
import { default as Lf } from "axios";
|
|
8
8
|
import { useRouter as tt, RouterLink as Jt } from "vue-router";
|
|
9
|
-
import { NTabs as tn, NTab as ln, NButton as q, NDropdown as rt, NIcon as J, NImage as nn, useMessage as Ye, NForm as Lt, NInputGroup as He, NInput as Oe, NColorPicker as Xo, NDatePicker as Jo, NTimePicker as qo, NSelect as Ze, useDialog as qt, useModal as on, useLoadingBar as el, NQrCode as ea, NDynamicTags as ta, NModal as _e, NSpace as
|
|
9
|
+
import { NTabs as tn, NTab as ln, NButton as q, NDropdown as rt, NIcon as J, NImage as nn, useMessage as Ye, NForm as Lt, NInputGroup as He, NInput as Oe, NColorPicker as Xo, NDatePicker as Jo, NTimePicker as qo, NSelect as Ze, useDialog as qt, useModal as on, useLoadingBar as el, NQrCode as ea, NDynamicTags as ta, NModal as _e, NSpace as we, NText as Te, NFormItem as ut, NGrid as Mt, NGridItem as Gt, NProgress as an, NSpin as Ve, NCard as dt, NSwitch as la, NDataTable as tl, NInputNumber as zt, NInputGroupLabel as rn, NTag as na, NPagination as ll, NUpload as oa, NUploadDragger as aa, NAlert as ra, NButtonGroup as sa, NFormItemGi as ia, NTree as ua, NH3 as da, NEmpty as ca, NBreadcrumb as fa, NBreadcrumbItem as pa, NScrollbar as ma, NRadioGroup as ga, NRadio as ha, NMenu as sn } from "naive-ui";
|
|
10
10
|
import { defineStore as ct } from "pinia";
|
|
11
11
|
import ze from "moment";
|
|
12
12
|
import Je from "mustache";
|
|
@@ -129,7 +129,7 @@ const xa = ["src"], Ca = /* @__PURE__ */ P({
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
setup(e) {
|
|
132
|
-
const n = e, t =
|
|
132
|
+
const n = e, t = z(n.src);
|
|
133
133
|
te(
|
|
134
134
|
() => n.src,
|
|
135
135
|
(o) => {
|
|
@@ -151,7 +151,7 @@ const xa = ["src"], Ca = /* @__PURE__ */ P({
|
|
|
151
151
|
for (const [l, o] of n)
|
|
152
152
|
t[l] = o;
|
|
153
153
|
return t;
|
|
154
|
-
}, Ia = /* @__PURE__ */ Ae(Ca, [["__scopeId", "data-v-
|
|
154
|
+
}, Ia = /* @__PURE__ */ Ae(Ca, [["__scopeId", "data-v-f7799232"]]);
|
|
155
155
|
function ka() {
|
|
156
156
|
try {
|
|
157
157
|
const e = sessionStorage.getItem("tabs");
|
|
@@ -570,11 +570,11 @@ function rs() {
|
|
|
570
570
|
if (h = h || open("", "_blank"), h && (h.document.title = h.document.body.innerText = "downloading..."), typeof i == "string") return l(i, s, g);
|
|
571
571
|
var d = i.type === "application/octet-stream", w = /constructor/i.test(u.HTMLElement) || u.safari, _ = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
572
572
|
if ((_ || d && w || c) && typeof FileReader < "u") {
|
|
573
|
-
var
|
|
574
|
-
|
|
575
|
-
var b =
|
|
573
|
+
var L = new FileReader();
|
|
574
|
+
L.onloadend = function() {
|
|
575
|
+
var b = L.result;
|
|
576
576
|
b = _ ? b : b.replace(/^data:[^;]*;/, "data:attachment/file;"), h ? h.location.href = b : location = b, h = null;
|
|
577
|
-
},
|
|
577
|
+
}, L.readAsDataURL(i);
|
|
578
578
|
} else {
|
|
579
579
|
var Y = u.URL || u.webkitURL, M = Y.createObjectURL(i);
|
|
580
580
|
h ? h.location = M : location.href = M, h = null, setTimeout(function() {
|
|
@@ -674,7 +674,7 @@ function ps(e, n) {
|
|
|
674
674
|
function ef(e, n, t, l, o, a) {
|
|
675
675
|
const u = {
|
|
676
676
|
name: e,
|
|
677
|
-
label: n ||
|
|
677
|
+
label: n || be(e),
|
|
678
678
|
editor: t || "text",
|
|
679
679
|
dataType: t,
|
|
680
680
|
nullable: !0,
|
|
@@ -777,7 +777,7 @@ function of(e, n) {
|
|
|
777
777
|
return l / t;
|
|
778
778
|
}
|
|
779
779
|
const At = "YYYY/MM/DD HH:mm:ss", et = "YYYY/MM/DD", St = "HH:mm:ss";
|
|
780
|
-
function
|
|
780
|
+
function be(e) {
|
|
781
781
|
return e.length ? os(e) : e;
|
|
782
782
|
}
|
|
783
783
|
function Pe(e) {
|
|
@@ -1010,10 +1010,10 @@ function sf(e, n) {
|
|
|
1010
1010
|
if (e)
|
|
1011
1011
|
if (n)
|
|
1012
1012
|
for (const l of n)
|
|
1013
|
-
typeof l == "string" ? t[
|
|
1013
|
+
typeof l == "string" ? t[be(l)] = e[l] : t[be(l.name)] = e[l.name];
|
|
1014
1014
|
else
|
|
1015
1015
|
for (const l in e)
|
|
1016
|
-
t[
|
|
1016
|
+
t[be(l)] = e[l];
|
|
1017
1017
|
return t;
|
|
1018
1018
|
}
|
|
1019
1019
|
function uf(e, n) {
|
|
@@ -1796,7 +1796,7 @@ const yi = ["src"], pt = /* @__PURE__ */ P({
|
|
|
1796
1796
|
size: { default: 16 }
|
|
1797
1797
|
},
|
|
1798
1798
|
setup(e) {
|
|
1799
|
-
const n = e, t =
|
|
1799
|
+
const n = e, t = z(l(n.path));
|
|
1800
1800
|
function l(o) {
|
|
1801
1801
|
if (o) return `/api/core/SystemIcons/Icons?path=${encodeURIComponent(o)}`;
|
|
1802
1802
|
}
|
|
@@ -1816,7 +1816,7 @@ const yi = ["src"], pt = /* @__PURE__ */ P({
|
|
|
1816
1816
|
emits: ["update:currentTab", "closeTab", "closeAll", "closeOthers"],
|
|
1817
1817
|
setup(e, { emit: n }) {
|
|
1818
1818
|
var _;
|
|
1819
|
-
const t = e, l = n, { t: o } = ie(), a = cn(), u = ft(), c =
|
|
1819
|
+
const t = e, l = n, { t: o } = ie(), a = cn(), u = ft(), c = ye(() => u.menuCollapsed), m = ((_ = Dn()) == null ? void 0 : _.menuPosition) ?? "side", i = () => u.setMenuCollapsed(!u.menuCollapsed), s = z(t.currentTab), g = ye(() => [
|
|
1820
1820
|
{
|
|
1821
1821
|
label: o("Close"),
|
|
1822
1822
|
key: "close-current"
|
|
@@ -1833,28 +1833,28 @@ const yi = ["src"], pt = /* @__PURE__ */ P({
|
|
|
1833
1833
|
type: "divider",
|
|
1834
1834
|
key: "------------1"
|
|
1835
1835
|
},
|
|
1836
|
-
...t.tabs.map((
|
|
1837
|
-
label: o(
|
|
1838
|
-
key:
|
|
1839
|
-
url:
|
|
1836
|
+
...t.tabs.map((L) => ({
|
|
1837
|
+
label: o(L.title),
|
|
1838
|
+
key: L.id,
|
|
1839
|
+
url: L.url
|
|
1840
1840
|
}))
|
|
1841
1841
|
]);
|
|
1842
|
-
function h(
|
|
1843
|
-
t.tabs.find((M) => M.id ==
|
|
1842
|
+
function h(L) {
|
|
1843
|
+
t.tabs.find((M) => M.id == L) && a.closeTab(L), l("closeTab", L);
|
|
1844
1844
|
}
|
|
1845
|
-
function d(
|
|
1846
|
-
if (
|
|
1845
|
+
function d(L) {
|
|
1846
|
+
if (L.key == "close-current" || L.key == "close-all" || L.key == "close-others")
|
|
1847
1847
|
return U(J, null, {
|
|
1848
1848
|
default: () => U(Bs)
|
|
1849
1849
|
});
|
|
1850
|
-
if (
|
|
1850
|
+
if (L.key && L.key == s.value)
|
|
1851
1851
|
return U(J, null, {
|
|
1852
1852
|
default: () => U(zs)
|
|
1853
1853
|
});
|
|
1854
1854
|
}
|
|
1855
|
-
function w(
|
|
1856
|
-
if (typeof
|
|
1857
|
-
switch (
|
|
1855
|
+
function w(L) {
|
|
1856
|
+
if (typeof L == "string" && L)
|
|
1857
|
+
switch (L) {
|
|
1858
1858
|
case "close-current":
|
|
1859
1859
|
l("closeTab", s.value);
|
|
1860
1860
|
break;
|
|
@@ -1865,18 +1865,18 @@ const yi = ["src"], pt = /* @__PURE__ */ P({
|
|
|
1865
1865
|
l("closeOthers", s.value);
|
|
1866
1866
|
break;
|
|
1867
1867
|
default:
|
|
1868
|
-
s.value =
|
|
1868
|
+
s.value = L;
|
|
1869
1869
|
break;
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
1872
|
return te(
|
|
1873
1873
|
() => t.currentTab,
|
|
1874
|
-
(
|
|
1875
|
-
s.value =
|
|
1874
|
+
(L) => {
|
|
1875
|
+
s.value = L;
|
|
1876
1876
|
}
|
|
1877
|
-
), te(s, (
|
|
1878
|
-
|
|
1879
|
-
}), (
|
|
1877
|
+
), te(s, (L) => {
|
|
1878
|
+
L != t.currentTab && l("update:currentTab", L);
|
|
1879
|
+
}), (L, Y) => L.tabs.length ? (y(), N(r(tn), {
|
|
1880
1880
|
key: 0,
|
|
1881
1881
|
type: "card",
|
|
1882
1882
|
closable: "",
|
|
@@ -1886,7 +1886,7 @@ const yi = ["src"], pt = /* @__PURE__ */ P({
|
|
|
1886
1886
|
"onUpdate:value": Y[0] || (Y[0] = (M) => s.value = M)
|
|
1887
1887
|
}, {
|
|
1888
1888
|
prefix: f(() => [
|
|
1889
|
-
de(
|
|
1889
|
+
de(L.$slots, "prefix", {}, () => [
|
|
1890
1890
|
r(m) == "side" ? (y(), N(r(q), {
|
|
1891
1891
|
key: 0,
|
|
1892
1892
|
text: "",
|
|
@@ -1930,7 +1930,7 @@ const yi = ["src"], pt = /* @__PURE__ */ P({
|
|
|
1930
1930
|
})
|
|
1931
1931
|
]),
|
|
1932
1932
|
default: f(() => [
|
|
1933
|
-
(y(!0), D(
|
|
1933
|
+
(y(!0), D(Ce, null, Ie(L.tabs, (M) => (y(), N(r(ln), {
|
|
1934
1934
|
key: M.id,
|
|
1935
1935
|
name: M.id,
|
|
1936
1936
|
title: M.id,
|
|
@@ -1952,7 +1952,7 @@ const yi = ["src"], pt = /* @__PURE__ */ P({
|
|
|
1952
1952
|
_: 3
|
|
1953
1953
|
}, 8, ["value"])) : ee("", !0);
|
|
1954
1954
|
}
|
|
1955
|
-
}), bi = /* @__PURE__ */ Ae(wi, [["__scopeId", "data-v-
|
|
1955
|
+
}), bi = /* @__PURE__ */ Ae(wi, [["__scopeId", "data-v-df170cc3"]]), xi = P({
|
|
1956
1956
|
props: {
|
|
1957
1957
|
direction: {
|
|
1958
1958
|
type: String,
|
|
@@ -1968,7 +1968,7 @@ const yi = ["src"], pt = /* @__PURE__ */ P({
|
|
|
1968
1968
|
}
|
|
1969
1969
|
},
|
|
1970
1970
|
setup(e) {
|
|
1971
|
-
const n =
|
|
1971
|
+
const n = z(void 0);
|
|
1972
1972
|
let t = 0;
|
|
1973
1973
|
function l() {
|
|
1974
1974
|
const u = n.value;
|
|
@@ -2056,7 +2056,7 @@ const Mi = /* @__PURE__ */ P({
|
|
|
2056
2056
|
gs1Format: { type: Boolean }
|
|
2057
2057
|
},
|
|
2058
2058
|
setup(e) {
|
|
2059
|
-
const n = e, t =
|
|
2059
|
+
const n = e, t = z(void 0), l = () => {
|
|
2060
2060
|
t.value = Si(n.code || "", {
|
|
2061
2061
|
render: n.render,
|
|
2062
2062
|
format: n.format,
|
|
@@ -2166,14 +2166,14 @@ const mt = ct("account", () => {
|
|
|
2166
2166
|
},
|
|
2167
2167
|
emits: ["close"],
|
|
2168
2168
|
setup(e, { emit: n }) {
|
|
2169
|
-
const t = n, { t: l } = ie(), o = Ye(), a = ke("axios"), u = mt(), c =
|
|
2169
|
+
const t = n, { t: l } = ie(), o = Ye(), a = ke("axios"), u = mt(), c = z({
|
|
2170
2170
|
oldPassword: "",
|
|
2171
2171
|
newPassword: "",
|
|
2172
2172
|
confirmPassword: ""
|
|
2173
|
-
}), m =
|
|
2174
|
-
var
|
|
2175
|
-
return (
|
|
2176
|
-
}), g =
|
|
2173
|
+
}), m = z(!1), i = z(null), s = ye(() => {
|
|
2174
|
+
var L;
|
|
2175
|
+
return (L = u.userInfo) == null ? void 0 : L.userName;
|
|
2176
|
+
}), g = z([]), h = {
|
|
2177
2177
|
oldPassword: [
|
|
2178
2178
|
{
|
|
2179
2179
|
required: !0,
|
|
@@ -2194,8 +2194,8 @@ const mt = ct("account", () => {
|
|
|
2194
2194
|
]
|
|
2195
2195
|
};
|
|
2196
2196
|
function d() {
|
|
2197
|
-
var
|
|
2198
|
-
s.value && !m.value && i.value && ((
|
|
2197
|
+
var L;
|
|
2198
|
+
s.value && !m.value && i.value && ((L = i.value) == null || L.validate((Y) => {
|
|
2199
2199
|
if (!Y)
|
|
2200
2200
|
if (c.value.confirmPassword != c.value.newPassword) {
|
|
2201
2201
|
o.error(l("Confirm the password is inconsistent, please check and re-enter."));
|
|
@@ -2211,10 +2211,10 @@ const mt = ct("account", () => {
|
|
|
2211
2211
|
);
|
|
2212
2212
|
}));
|
|
2213
2213
|
}
|
|
2214
|
-
async function w(
|
|
2214
|
+
async function w(L, Y, M) {
|
|
2215
2215
|
try {
|
|
2216
2216
|
const b = {
|
|
2217
|
-
userName:
|
|
2217
|
+
userName: L,
|
|
2218
2218
|
oldPassword: Y,
|
|
2219
2219
|
newPassword: M
|
|
2220
2220
|
}, C = await a.post("/api/core/account/changePassword", b);
|
|
@@ -2225,19 +2225,19 @@ const mt = ct("account", () => {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
async function _() {
|
|
2227
2227
|
try {
|
|
2228
|
-
const
|
|
2229
|
-
|
|
2230
|
-
} catch (
|
|
2231
|
-
console.error(
|
|
2228
|
+
const L = await a.get("/api/core/system/passwordOptions");
|
|
2229
|
+
L.isSuccess && L.value != null ? g.value = L.value : o.error(l(L.errorMessage || "Error"));
|
|
2230
|
+
} catch (L) {
|
|
2231
|
+
console.error(L), o.error((L == null ? void 0 : L.toString()) || l("Error"));
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
2234
|
return ge(() => {
|
|
2235
2235
|
_();
|
|
2236
|
-
}), (
|
|
2236
|
+
}), (L, Y) => {
|
|
2237
2237
|
const M = re("n-input"), b = re("n-form-item"), C = re("n-spin"), S = re("n-text"), R = re("n-button"), X = re("n-modal");
|
|
2238
2238
|
return y(), N(X, {
|
|
2239
|
-
show:
|
|
2240
|
-
onClose: Y[3] || (Y[3] = () =>
|
|
2239
|
+
show: L.show,
|
|
2240
|
+
onClose: Y[3] || (Y[3] = () => L.$emit("close")),
|
|
2241
2241
|
class: "custom-card",
|
|
2242
2242
|
title: r(l)("Change Password"),
|
|
2243
2243
|
style: { width: "300px" },
|
|
@@ -2246,7 +2246,7 @@ const mt = ct("account", () => {
|
|
|
2246
2246
|
}, {
|
|
2247
2247
|
footer: f(() => [
|
|
2248
2248
|
g.value.length ? (y(), D("ul", _i, [
|
|
2249
|
-
(y(!0), D(
|
|
2249
|
+
(y(!0), D(Ce, null, Ie(g.value, (j) => (y(), D("li", { key: j }, [
|
|
2250
2250
|
v(S, { depth: "3" }, {
|
|
2251
2251
|
default: f(() => [
|
|
2252
2252
|
Q(H(j), 1)
|
|
@@ -3349,7 +3349,7 @@ const mt = ct("account", () => {
|
|
|
3349
3349
|
defaultCollapsed: { type: Boolean }
|
|
3350
3350
|
},
|
|
3351
3351
|
setup(e) {
|
|
3352
|
-
const n = e, { t } = ie(), l =
|
|
3352
|
+
const n = e, { t } = ie(), l = z(n.defaultCollapsed ?? !1), o = () => {
|
|
3353
3353
|
l.value = !l.value;
|
|
3354
3354
|
};
|
|
3355
3355
|
return (a, u) => (y(), D("div", Lu, [
|
|
@@ -3452,7 +3452,7 @@ function ju(e, n) {
|
|
|
3452
3452
|
if (typeof o == "string" && o)
|
|
3453
3453
|
l.push({
|
|
3454
3454
|
name: o,
|
|
3455
|
-
label: t(
|
|
3455
|
+
label: t(be(o)),
|
|
3456
3456
|
visibility: !0,
|
|
3457
3457
|
editor: "text"
|
|
3458
3458
|
});
|
|
@@ -3465,7 +3465,7 @@ function ju(e, n) {
|
|
|
3465
3465
|
maxValue: o.maxValue,
|
|
3466
3466
|
group: o.group,
|
|
3467
3467
|
nullable: o.required == null ? Ou(o.dataType) : !o.required,
|
|
3468
|
-
label: o.title ? t(o.title) : t(
|
|
3468
|
+
label: o.title ? t(o.title) : t(be(o.name)),
|
|
3469
3469
|
visibility: !0,
|
|
3470
3470
|
readonly: o.readonly,
|
|
3471
3471
|
sortable: o.sortable,
|
|
@@ -3545,7 +3545,7 @@ function Xn(e) {
|
|
|
3545
3545
|
if (typeof t == "string")
|
|
3546
3546
|
n.push({
|
|
3547
3547
|
name: t,
|
|
3548
|
-
title:
|
|
3548
|
+
title: be(t),
|
|
3549
3549
|
sortIndex: 0,
|
|
3550
3550
|
visible: !0
|
|
3551
3551
|
});
|
|
@@ -3595,7 +3595,7 @@ function Eu(e, n) {
|
|
|
3595
3595
|
const u = {
|
|
3596
3596
|
name: a.name,
|
|
3597
3597
|
role: a.role && !Array.isArray(a.role) ? [a.role] : a.role,
|
|
3598
|
-
label: a.title ? t(a.title) : t(
|
|
3598
|
+
label: a.title ? t(a.title) : t(be(a.name)),
|
|
3599
3599
|
editor: a.editor || a.dataType || "text",
|
|
3600
3600
|
dataType: a.dataType,
|
|
3601
3601
|
nullable: !0,
|
|
@@ -3753,7 +3753,7 @@ const Qt = /* @__PURE__ */ P({
|
|
|
3753
3753
|
const t = e, l = n, o = (c) => {
|
|
3754
3754
|
const m = ys(c);
|
|
3755
3755
|
return m === void 0 ? null : m;
|
|
3756
|
-
}, a =
|
|
3756
|
+
}, a = z(o(t.value)), u = (c) => {
|
|
3757
3757
|
if (c != null) {
|
|
3758
3758
|
a.value = c;
|
|
3759
3759
|
const m = t.type == "date" ? Nn(c) : On(c);
|
|
@@ -3806,7 +3806,7 @@ const Qt = /* @__PURE__ */ P({
|
|
|
3806
3806
|
l("update:value", i);
|
|
3807
3807
|
} else
|
|
3808
3808
|
l("update:value", null);
|
|
3809
|
-
}, u =
|
|
3809
|
+
}, u = z(o(t.value));
|
|
3810
3810
|
return te(
|
|
3811
3811
|
() => t.value,
|
|
3812
3812
|
(c) => u.value = o(c)
|
|
@@ -3827,7 +3827,7 @@ const Qt = /* @__PURE__ */ P({
|
|
|
3827
3827
|
},
|
|
3828
3828
|
emits: ["update:value"],
|
|
3829
3829
|
setup(e, { emit: n }) {
|
|
3830
|
-
const t = e, l = n, { t: o } = ie(), a =
|
|
3830
|
+
const t = e, l = n, { t: o } = ie(), a = z(typeof t.value == "boolean" ? t.value.toString() : ""), u = [
|
|
3831
3831
|
{ value: null, label: "" },
|
|
3832
3832
|
{ value: "true", label: o("Yes") },
|
|
3833
3833
|
{ value: "false", label: o("No") }
|
|
@@ -3998,7 +3998,7 @@ const Qt = /* @__PURE__ */ P({
|
|
|
3998
3998
|
]
|
|
3999
3999
|
)
|
|
4000
4000
|
});
|
|
4001
|
-
},
|
|
4001
|
+
}, L = (b = !1) => {
|
|
4002
4002
|
a++, (b || a > 0) && o.start();
|
|
4003
4003
|
}, Y = (b = !1) => {
|
|
4004
4004
|
a = Math.max(0, a - 1), (b || a <= 0) && o.finish();
|
|
@@ -4018,14 +4018,14 @@ const Qt = /* @__PURE__ */ P({
|
|
|
4018
4018
|
showSearchModal: w,
|
|
4019
4019
|
showQrModal: _,
|
|
4020
4020
|
loadingBar: (b = !0) => {
|
|
4021
|
-
b ?
|
|
4021
|
+
b ? L() : Y();
|
|
4022
4022
|
},
|
|
4023
|
-
showLoadingBar:
|
|
4023
|
+
showLoadingBar: L,
|
|
4024
4024
|
hideLoadingBar: Y
|
|
4025
4025
|
};
|
|
4026
4026
|
};
|
|
4027
4027
|
function Uu() {
|
|
4028
|
-
const e =
|
|
4028
|
+
const e = z(/* @__PURE__ */ new Map()), n = (i) => (e.value.has(i) || e.value.set(i, {
|
|
4029
4029
|
isLocked: !1,
|
|
4030
4030
|
waitingQueue: []
|
|
4031
4031
|
}), e.value.get(i));
|
|
@@ -4102,13 +4102,13 @@ const Re = () => {
|
|
|
4102
4102
|
});
|
|
4103
4103
|
}
|
|
4104
4104
|
async function a(s) {
|
|
4105
|
-
var g, h, d, w, _,
|
|
4105
|
+
var g, h, d, w, _, L, Y;
|
|
4106
4106
|
try {
|
|
4107
4107
|
(g = s.loadingStatus) == null || g.call(null, !0);
|
|
4108
4108
|
let M;
|
|
4109
4109
|
s.data ? M = await n.post(s.url, s.data) : M = await n.post(s.url), (h = s.callback) == null || h.call(null, M), M.isSuccess ? ((d = s.success) == null || d.call(null, M.value), s.successMessage === !0 ? e.message("Successful operation.", "success") : typeof s.successMessage == "string" && e.message(s.successMessage, "success")) : ((w = s.fail) == null || w.call(null, M), M.errorMessage && console.error(M.errorMessage), s.failMessage ? e.message(s.failMessage, "error") : e.message(M.errorMessage ?? ((_ = M.value) == null ? void 0 : _.toString()) ?? "Error", "error"));
|
|
4110
4110
|
} catch (M) {
|
|
4111
|
-
((
|
|
4111
|
+
((L = s.exception) == null ? void 0 : L.call(null, M)) != !0 && e.message(await l(M) ?? s.failMessage ?? "Error");
|
|
4112
4112
|
} finally {
|
|
4113
4113
|
(Y = s.loadingStatus) == null || Y.call(null, !1);
|
|
4114
4114
|
}
|
|
@@ -4129,12 +4129,12 @@ const Re = () => {
|
|
|
4129
4129
|
var g, h, d, w, _;
|
|
4130
4130
|
try {
|
|
4131
4131
|
(g = s.loadingStatus) == null || g.call(null, !0);
|
|
4132
|
-
let
|
|
4133
|
-
if (
|
|
4134
|
-
return (h = s.callback) == null || h.call(null,
|
|
4135
|
-
s.quiet != !0 && e.message(
|
|
4136
|
-
} catch (
|
|
4137
|
-
((w = s.exception) == null ? void 0 : w.call(null,
|
|
4132
|
+
let L = await n.get(s.url);
|
|
4133
|
+
if (L.isSuccess)
|
|
4134
|
+
return (h = s.callback) == null || h.call(null, L.value), L.value;
|
|
4135
|
+
s.quiet != !0 && e.message(L.errorMessage ?? ((d = L.value) == null ? void 0 : d.toString()) ?? "Error", "error");
|
|
4136
|
+
} catch (L) {
|
|
4137
|
+
((w = s.exception) == null ? void 0 : w.call(null, L)) != !0 && e.message(await l(L) ?? "Error", "error");
|
|
4138
4138
|
} finally {
|
|
4139
4139
|
(_ = s.loadingStatus) == null || _.call(null, !1);
|
|
4140
4140
|
}
|
|
@@ -4176,7 +4176,7 @@ const Re = () => {
|
|
|
4176
4176
|
},
|
|
4177
4177
|
emits: ["update:value"],
|
|
4178
4178
|
setup(e, { emit: n }) {
|
|
4179
|
-
const t = e, l = n, o = ft(), a = Re(), u =
|
|
4179
|
+
const t = e, l = n, o = ft(), a = Re(), u = z(i(t.value)), c = z([]);
|
|
4180
4180
|
async function m() {
|
|
4181
4181
|
if (t.tagSource) {
|
|
4182
4182
|
const g = await o.fetchSharedData(
|
|
@@ -4229,12 +4229,12 @@ const Re = () => {
|
|
|
4229
4229
|
}, u = () => {
|
|
4230
4230
|
var i, s, g, h;
|
|
4231
4231
|
return t.value ? Array.isArray(t.value) ? t.value.join(`
|
|
4232
|
-
`) : ((h = (g = (s = (i = t.value) == null ? void 0 : i.replace(/\n/g, ",")) == null ? void 0 : s.split(",")) == null ? void 0 : g.map((w) => w.trim())) == null ? void 0 : h.filter((w, _,
|
|
4232
|
+
`) : ((h = (g = (s = (i = t.value) == null ? void 0 : i.replace(/\n/g, ",")) == null ? void 0 : s.split(",")) == null ? void 0 : g.map((w) => w.trim())) == null ? void 0 : h.filter((w, _, L) => w && L.indexOf(w) == _)).join(`
|
|
4233
4233
|
`) : t.value;
|
|
4234
4234
|
}, c = () => {
|
|
4235
4235
|
var s, g, h;
|
|
4236
4236
|
return m.value ? ((h = (g = (s = m.value) == null ? void 0 : s.split(/\r?\n/)) == null ? void 0 : g.map((d) => d.trim())) == null ? void 0 : h.filter((d, w, _) => d && _.indexOf(d) == w)).join(",") : "";
|
|
4237
|
-
}, m =
|
|
4237
|
+
}, m = z(u());
|
|
4238
4238
|
return te(
|
|
4239
4239
|
() => t.value,
|
|
4240
4240
|
() => {
|
|
@@ -4249,7 +4249,7 @@ const Re = () => {
|
|
|
4249
4249
|
onClose: s[2] || (s[2] = () => i.$emit("update:show", !1))
|
|
4250
4250
|
}, {
|
|
4251
4251
|
action: f(() => [
|
|
4252
|
-
v(r(
|
|
4252
|
+
v(r(we), { justify: "space-between" }, {
|
|
4253
4253
|
default: f(() => [
|
|
4254
4254
|
v(r(q), {
|
|
4255
4255
|
type: "primary",
|
|
@@ -4276,7 +4276,7 @@ const Re = () => {
|
|
|
4276
4276
|
})
|
|
4277
4277
|
]),
|
|
4278
4278
|
default: f(() => [
|
|
4279
|
-
v(r(
|
|
4279
|
+
v(r(we), { vertical: "" }, {
|
|
4280
4280
|
default: f(() => [
|
|
4281
4281
|
v(r(Te), null, {
|
|
4282
4282
|
default: f(() => [
|
|
@@ -4312,7 +4312,7 @@ const Re = () => {
|
|
|
4312
4312
|
},
|
|
4313
4313
|
emits: ["update:value"],
|
|
4314
4314
|
setup(e, { emit: n }) {
|
|
4315
|
-
const t = e, l = n, { t: o } = ie(), a =
|
|
4315
|
+
const t = e, l = n, { t: o } = ie(), a = z(!1), u = t.config;
|
|
4316
4316
|
function c() {
|
|
4317
4317
|
a.value = !a.value;
|
|
4318
4318
|
}
|
|
@@ -4380,7 +4380,7 @@ const Re = () => {
|
|
|
4380
4380
|
},
|
|
4381
4381
|
emits: ["update:value"],
|
|
4382
4382
|
setup(e, { emit: n }) {
|
|
4383
|
-
const t = e, l = n, o =
|
|
4383
|
+
const t = e, l = n, o = z(t.value), { t: a } = ie(), u = ke("axios"), c = z(void 0), m = z(!1), i = z(!1), s = () => {
|
|
4384
4384
|
var d;
|
|
4385
4385
|
if (typeof ((d = t.formItem) == null ? void 0 : d.editor) == "function")
|
|
4386
4386
|
return t.formItem.editor.call(t.formItem, {
|
|
@@ -4399,9 +4399,9 @@ const Re = () => {
|
|
|
4399
4399
|
w != null && w.length ? o.value = w[0] : o.value = null;
|
|
4400
4400
|
}
|
|
4401
4401
|
}, h = (d) => {
|
|
4402
|
-
var _,
|
|
4402
|
+
var _, L;
|
|
4403
4403
|
const w = (_ = t.formItem) == null ? void 0 : _.valueSource;
|
|
4404
|
-
w && w.type == "remote" && w.sourceUrl && w.filterable && il(u, w, { searchWords: d }, (Y) => w.i18n ? a(Y) : Y, ((
|
|
4404
|
+
w && w.type == "remote" && w.sourceUrl && w.filterable && il(u, w, { searchWords: d }, (Y) => w.i18n ? a(Y) : Y, ((L = t.formItem) == null ? void 0 : L.nullable) != !1);
|
|
4405
4405
|
};
|
|
4406
4406
|
return te(o, (d) => {
|
|
4407
4407
|
l("update:value", d);
|
|
@@ -4414,8 +4414,8 @@ const Re = () => {
|
|
|
4414
4414
|
var d, w;
|
|
4415
4415
|
(w = (d = t.formItem) == null ? void 0 : d.role) != null && w.length && (m.value = t.formItem.role.includes("list"), c.value = t.formItem.role.map((_) => `halo-form-${_}`).join(" "));
|
|
4416
4416
|
}), (d, w) => {
|
|
4417
|
-
var X, j, $, K, T, I, B, V, O, le, F, oe, fe, ve, Se,
|
|
4418
|
-
const _ = re("n-switch"),
|
|
4417
|
+
var X, j, $, K, T, I, B, V, O, le, F, oe, fe, ve, Se, xe, ae, Me;
|
|
4418
|
+
const _ = re("n-switch"), L = re("n-text"), Y = re("n-select"), M = re("n-input-number"), b = re("n-checkbox"), C = re("n-input"), S = re("n-icon"), R = re("n-button");
|
|
4419
4419
|
return d.formItem ? (y(), D("div", Du, [
|
|
4420
4420
|
typeof d.formItem.editor == "function" ? (y(), N(Yo, { key: 0 }, [
|
|
4421
4421
|
(y(), N(Ht(s), {
|
|
@@ -4466,7 +4466,7 @@ const Re = () => {
|
|
|
4466
4466
|
}, {
|
|
4467
4467
|
action: f(() => [
|
|
4468
4468
|
d.formItem.valueSource.filterable ? (y(), D("div", Pu, [
|
|
4469
|
-
v(
|
|
4469
|
+
v(L, {
|
|
4470
4470
|
depth: "3",
|
|
4471
4471
|
italic: ""
|
|
4472
4472
|
}, {
|
|
@@ -4580,7 +4580,7 @@ const Re = () => {
|
|
|
4580
4580
|
type: "textarea",
|
|
4581
4581
|
placeholder: d.placeholder ?? "",
|
|
4582
4582
|
readonly: d.readonly,
|
|
4583
|
-
style: ce((
|
|
4583
|
+
style: ce((xe = d.formItem.editorConfig) == null ? void 0 : xe.style)
|
|
4584
4584
|
}, null, 8, ["value", "class", "placeholder", "readonly", "style"])) : (y(), N(C, {
|
|
4585
4585
|
key: 17,
|
|
4586
4586
|
value: o.value,
|
|
@@ -4647,7 +4647,7 @@ const Re = () => {
|
|
|
4647
4647
|
},
|
|
4648
4648
|
emits: ["itemChange"],
|
|
4649
4649
|
setup(e, n) {
|
|
4650
|
-
const { t } = ie(), l = ke("axios"), o =
|
|
4650
|
+
const { t } = ie(), l = ke("axios"), o = z(null), a = z([]), u = z(e.columns || 1), c = z({}), m = z(g(e.formItems)), i = d(e.formItems), s = z(void 0);
|
|
4651
4651
|
function g(b) {
|
|
4652
4652
|
return b ? [...new Set(b.map((S) => S.group))].map(
|
|
4653
4653
|
(S) => ({
|
|
@@ -4692,7 +4692,7 @@ const Re = () => {
|
|
|
4692
4692
|
C.valueSource && (C.valueSource.type == "remote" || C.valueSource.type == "function") && w(C, C.valueSource);
|
|
4693
4693
|
});
|
|
4694
4694
|
}
|
|
4695
|
-
function
|
|
4695
|
+
function L(b, C) {
|
|
4696
4696
|
n.emit("itemChange", { item: b, data: e.data, value: C });
|
|
4697
4697
|
}
|
|
4698
4698
|
function Y(b) {
|
|
@@ -4715,7 +4715,7 @@ const Re = () => {
|
|
|
4715
4715
|
model: c,
|
|
4716
4716
|
rules: i,
|
|
4717
4717
|
formColumns: u,
|
|
4718
|
-
updateValue:
|
|
4718
|
+
updateValue: L,
|
|
4719
4719
|
formGroups: m,
|
|
4720
4720
|
isReadonly: Y,
|
|
4721
4721
|
isVisible: M
|
|
@@ -4737,7 +4737,7 @@ function Zu(e, n, t, l, o, a) {
|
|
|
4737
4737
|
type: "line"
|
|
4738
4738
|
}, {
|
|
4739
4739
|
default: f(() => [
|
|
4740
|
-
(y(!0), D(
|
|
4740
|
+
(y(!0), D(Ce, null, Ie(e.formGroups, (w) => (y(), N(s, {
|
|
4741
4741
|
key: w,
|
|
4742
4742
|
name: w.label,
|
|
4743
4743
|
tab: e.t(w.label)
|
|
@@ -4749,7 +4749,7 @@ function Zu(e, n, t, l, o, a) {
|
|
|
4749
4749
|
class: "flex-grow-1"
|
|
4750
4750
|
}, {
|
|
4751
4751
|
default: f(() => [
|
|
4752
|
-
(y(!0), D(
|
|
4752
|
+
(y(!0), D(Ce, null, Ie(w.items, (_) => $e((y(), N(m, {
|
|
4753
4753
|
ref_for: !0,
|
|
4754
4754
|
ref: "formItemsRef",
|
|
4755
4755
|
key: _.name,
|
|
@@ -4763,7 +4763,7 @@ function Zu(e, n, t, l, o, a) {
|
|
|
4763
4763
|
v(u, {
|
|
4764
4764
|
"form-item": _,
|
|
4765
4765
|
value: e.model[_.name],
|
|
4766
|
-
"onUpdate:value": [(
|
|
4766
|
+
"onUpdate:value": [(L) => e.model[_.name] = L, (L) => e.updateValue(_, L)],
|
|
4767
4767
|
readonly: e.isReadonly(_),
|
|
4768
4768
|
label: _.label,
|
|
4769
4769
|
class: "form-input"
|
|
@@ -4800,7 +4800,7 @@ function Zu(e, n, t, l, o, a) {
|
|
|
4800
4800
|
"x-gap": "8"
|
|
4801
4801
|
}, {
|
|
4802
4802
|
default: f(() => [
|
|
4803
|
-
(y(!0), D(
|
|
4803
|
+
(y(!0), D(Ce, null, Ie(e.formGroups, (w) => (y(), N(h, { key: w }, {
|
|
4804
4804
|
default: f(() => [
|
|
4805
4805
|
v(i, {
|
|
4806
4806
|
cols: e.formColumns,
|
|
@@ -4808,7 +4808,7 @@ function Zu(e, n, t, l, o, a) {
|
|
|
4808
4808
|
class: "flex-grow-1"
|
|
4809
4809
|
}, {
|
|
4810
4810
|
default: f(() => [
|
|
4811
|
-
(y(!0), D(
|
|
4811
|
+
(y(!0), D(Ce, null, Ie(w.items, (_) => $e((y(), N(m, {
|
|
4812
4812
|
ref_for: !0,
|
|
4813
4813
|
ref: "formItemsRef",
|
|
4814
4814
|
key: _.name,
|
|
@@ -4822,7 +4822,7 @@ function Zu(e, n, t, l, o, a) {
|
|
|
4822
4822
|
v(u, {
|
|
4823
4823
|
"form-item": _,
|
|
4824
4824
|
value: e.model[_.name],
|
|
4825
|
-
"onUpdate:value": [(
|
|
4825
|
+
"onUpdate:value": [(L) => e.model[_.name] = L, (L) => e.updateValue(_, L)],
|
|
4826
4826
|
readonly: e.isReadonly(_),
|
|
4827
4827
|
label: _.label,
|
|
4828
4828
|
class: "form-input"
|
|
@@ -4859,7 +4859,7 @@ function Zu(e, n, t, l, o, a) {
|
|
|
4859
4859
|
class: "flex-grow-1"
|
|
4860
4860
|
}, {
|
|
4861
4861
|
default: f(() => [
|
|
4862
|
-
(y(!0), D(
|
|
4862
|
+
(y(!0), D(Ce, null, Ie(e.formItems, (w) => $e((y(), N(m, {
|
|
4863
4863
|
ref_for: !0,
|
|
4864
4864
|
ref: "formItemsRef",
|
|
4865
4865
|
key: w.name,
|
|
@@ -4902,7 +4902,7 @@ function Zu(e, n, t, l, o, a) {
|
|
|
4902
4902
|
_: 3
|
|
4903
4903
|
}, 8, ["model", "rules"]);
|
|
4904
4904
|
}
|
|
4905
|
-
const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-
|
|
4905
|
+
const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-e7319d81"]]), Yu = { class: "pg-value flex-grow-1" }, ao = /* @__PURE__ */ P({
|
|
4906
4906
|
__name: "PropertyGrid",
|
|
4907
4907
|
props: {
|
|
4908
4908
|
columns: { default: 1 },
|
|
@@ -4912,7 +4912,7 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
4912
4912
|
justify: {}
|
|
4913
4913
|
},
|
|
4914
4914
|
setup(e) {
|
|
4915
|
-
const n = e, { t } = ie(), l =
|
|
4915
|
+
const n = e, { t } = ie(), l = z(a()), o = () => {
|
|
4916
4916
|
l.value = a();
|
|
4917
4917
|
};
|
|
4918
4918
|
function a() {
|
|
@@ -4924,14 +4924,14 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
4924
4924
|
if (typeof g == "string")
|
|
4925
4925
|
(!i || c[g]) && u.push({
|
|
4926
4926
|
name: g,
|
|
4927
|
-
label: t(
|
|
4927
|
+
label: t(be(g)),
|
|
4928
4928
|
value: c[g],
|
|
4929
4929
|
span: 1
|
|
4930
4930
|
});
|
|
4931
4931
|
else {
|
|
4932
4932
|
const h = {
|
|
4933
4933
|
name: g.name ?? g.label,
|
|
4934
|
-
label: t(g.label ||
|
|
4934
|
+
label: t(g.label || be(g.name)),
|
|
4935
4935
|
value: c[g.name],
|
|
4936
4936
|
span: g.span || 1,
|
|
4937
4937
|
dataType: g.dataType,
|
|
@@ -4943,7 +4943,7 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
4943
4943
|
for (const g of c)
|
|
4944
4944
|
(!i || g.value) && u.push({
|
|
4945
4945
|
name: g.label,
|
|
4946
|
-
label: t(
|
|
4946
|
+
label: t(be(g.label)),
|
|
4947
4947
|
value: g.value,
|
|
4948
4948
|
span: 1
|
|
4949
4949
|
});
|
|
@@ -4951,7 +4951,7 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
4951
4951
|
for (const g in c)
|
|
4952
4952
|
(!i || c[g]) && u.push({
|
|
4953
4953
|
name: g,
|
|
4954
|
-
label: t(
|
|
4954
|
+
label: t(be(g)),
|
|
4955
4955
|
value: c[g],
|
|
4956
4956
|
span: 1
|
|
4957
4957
|
});
|
|
@@ -4968,7 +4968,7 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
4968
4968
|
"item-responsive": ""
|
|
4969
4969
|
}, {
|
|
4970
4970
|
default: f(() => [
|
|
4971
|
-
(y(!0), D(
|
|
4971
|
+
(y(!0), D(Ce, null, Ie(l.value.filter((m) => !u.hideEmpty || m.value), (m) => (y(), N(r(Gt), {
|
|
4972
4972
|
class: "pg-item",
|
|
4973
4973
|
key: m.label,
|
|
4974
4974
|
span: m.span
|
|
@@ -5044,7 +5044,7 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
5044
5044
|
},
|
|
5045
5045
|
emits: ["refresh"],
|
|
5046
5046
|
setup(e) {
|
|
5047
|
-
const { t: n } = ie(), t =
|
|
5047
|
+
const { t: n } = ie(), t = z(!0), l = z(localStorage.getItem("detail-page-full-size") == "true"), o = z(localStorage.getItem("detail-page-show-info") != "false"), a = () => {
|
|
5048
5048
|
l.value = !l.value, localStorage.setItem("detail-page-full-size", l.value.toString());
|
|
5049
5049
|
}, u = () => {
|
|
5050
5050
|
t.value = !t.value;
|
|
@@ -5204,7 +5204,7 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
5204
5204
|
_: 3
|
|
5205
5205
|
}, 8, ["show"]));
|
|
5206
5206
|
}
|
|
5207
|
-
}), rd = /* @__PURE__ */ Ae(ad, [["__scopeId", "data-v-
|
|
5207
|
+
}), rd = /* @__PURE__ */ Ae(ad, [["__scopeId", "data-v-6dec6e5e"]]), sd = { style: { "min-height": "50px" } }, ro = /* @__PURE__ */ P({
|
|
5208
5208
|
__name: "ExportModal",
|
|
5209
5209
|
props: {
|
|
5210
5210
|
show: { type: Boolean },
|
|
@@ -5214,7 +5214,7 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
5214
5214
|
},
|
|
5215
5215
|
emits: ["export", "close"],
|
|
5216
5216
|
setup(e) {
|
|
5217
|
-
const n = e, { t } = ie(), l =
|
|
5217
|
+
const n = e, { t } = ie(), l = z(null), o = z(c()), a = z(null), u = z(m());
|
|
5218
5218
|
function c() {
|
|
5219
5219
|
let i = [
|
|
5220
5220
|
{ label: t("Excel"), value: "excel" },
|
|
@@ -5249,7 +5249,7 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
5249
5249
|
onClose: s[4] || (s[4] = () => i.$emit("close"))
|
|
5250
5250
|
}, {
|
|
5251
5251
|
action: f(() => [
|
|
5252
|
-
v(r(
|
|
5252
|
+
v(r(we), { justify: "space-between" }, {
|
|
5253
5253
|
default: f(() => [
|
|
5254
5254
|
v(r(q), {
|
|
5255
5255
|
onClick: s[2] || (s[2] = () => i.$emit("export", l.value, a.value)),
|
|
@@ -5354,7 +5354,7 @@ const oo = /* @__PURE__ */ Ae(Vu, [["render", Zu], ["__scopeId", "data-v-b01b239
|
|
|
5354
5354
|
},
|
|
5355
5355
|
emits: ["change"],
|
|
5356
5356
|
setup(e, n) {
|
|
5357
|
-
const { t } = ie(), l = ft(), o =
|
|
5357
|
+
const { t } = ie(), l = ft(), o = ye(() => l.isFullscreen);
|
|
5358
5358
|
function a(i) {
|
|
5359
5359
|
i || (i = document.body), i.requestFullscreen && i.requestFullscreen();
|
|
5360
5360
|
}
|
|
@@ -5422,7 +5422,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5422
5422
|
let d = await n.get(`/api/core/Account/CheckPermissions?permissions=${encodeURIComponent(h.join())}`);
|
|
5423
5423
|
d.isSuccess && d.value != null ? (a++, d.value.forEach((w) => {
|
|
5424
5424
|
t[w] = !0;
|
|
5425
|
-
const _ = o.find((
|
|
5425
|
+
const _ = o.find((L) => L.id == w);
|
|
5426
5426
|
_ && (t[_.name] = !0);
|
|
5427
5427
|
}), g == null || g.call(null, t)) : console.error(d.errorMessage);
|
|
5428
5428
|
} catch (d) {
|
|
@@ -5460,10 +5460,10 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5460
5460
|
},
|
|
5461
5461
|
emits: ["close", "update:pageSize", "update:config"],
|
|
5462
5462
|
setup(e, { emit: n }) {
|
|
5463
|
-
const t = e, l = n, { t: o } = ie(), a = Re(), u = ke("axios"), c = Ye(), m = so(["2E2466DDD34847C8B33460E4277A6528"]), i =
|
|
5463
|
+
const t = e, l = n, { t: o } = ie(), a = Re(), u = ke("axios"), c = Ye(), m = so(["2E2466DDD34847C8B33460E4277A6528"]), i = z(t.pageSize), s = z(!1), g = z(!1), h = (C) => C ? C.map(
|
|
5464
5464
|
(S, R) => ({
|
|
5465
5465
|
columnId: S.name,
|
|
5466
|
-
title: S.title ? o(S.title) : o(
|
|
5466
|
+
title: S.title ? o(S.title) : o(be(S.name)),
|
|
5467
5467
|
visible: !0,
|
|
5468
5468
|
sortIndex: R
|
|
5469
5469
|
})
|
|
@@ -5533,7 +5533,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5533
5533
|
}
|
|
5534
5534
|
});
|
|
5535
5535
|
};
|
|
5536
|
-
async function
|
|
5536
|
+
async function L() {
|
|
5537
5537
|
if (!t.gridId) return;
|
|
5538
5538
|
const C = {
|
|
5539
5539
|
dataGridId: t.gridId,
|
|
@@ -5584,7 +5584,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5584
5584
|
() => t.gridColumns,
|
|
5585
5585
|
() => M.value = h(t.gridColumns)
|
|
5586
5586
|
), te(s, () => Y());
|
|
5587
|
-
const M =
|
|
5587
|
+
const M = z(h(t.gridColumns)), b = [
|
|
5588
5588
|
{ title: o("Name"), key: "title" },
|
|
5589
5589
|
{
|
|
5590
5590
|
title: o("Visible"),
|
|
@@ -5624,7 +5624,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5624
5624
|
v(R, { justify: "space-between" }, {
|
|
5625
5625
|
default: f(() => [
|
|
5626
5626
|
v(r(q), {
|
|
5627
|
-
onClick:
|
|
5627
|
+
onClick: L,
|
|
5628
5628
|
style: { "min-width": "100px" },
|
|
5629
5629
|
type: "primary"
|
|
5630
5630
|
}, {
|
|
@@ -5698,14 +5698,14 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5698
5698
|
},
|
|
5699
5699
|
emits: ["update:value"],
|
|
5700
5700
|
setup(e, { emit: n }) {
|
|
5701
|
-
const t = e, l = n, { t: o } = ie(), a = ke("axios"), u =
|
|
5701
|
+
const t = e, l = n, { t: o } = ie(), a = ke("axios"), u = z(!1), c = z([]);
|
|
5702
5702
|
async function m(s) {
|
|
5703
5703
|
let g = t.sourceUrl;
|
|
5704
5704
|
if (g) {
|
|
5705
|
-
const h = t.labelFormatter, d = t.keyField, w = t.labelField, _ = t.subLabelField,
|
|
5705
|
+
const h = t.labelFormatter, d = t.keyField, w = t.labelField, _ = t.subLabelField, L = t.additionalQuery;
|
|
5706
5706
|
u.value = !0, c.value = [];
|
|
5707
5707
|
try {
|
|
5708
|
-
|
|
5708
|
+
L && (g = he(g, L, !0));
|
|
5709
5709
|
const Y = await a.get(g);
|
|
5710
5710
|
if (Y.isSuccess && Y.value != null) {
|
|
5711
5711
|
let M = Y.value;
|
|
@@ -5749,7 +5749,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5749
5749
|
"onUpdate:value": i
|
|
5750
5750
|
}, {
|
|
5751
5751
|
default: f(() => [
|
|
5752
|
-
(y(!0), D(
|
|
5752
|
+
(y(!0), D(Ce, null, Ie(c.value, (w) => (y(), N(h, {
|
|
5753
5753
|
key: w.value,
|
|
5754
5754
|
value: w.value,
|
|
5755
5755
|
label: w.label
|
|
@@ -5776,7 +5776,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5776
5776
|
if (typeof b == "string")
|
|
5777
5777
|
M.push({
|
|
5778
5778
|
name: b,
|
|
5779
|
-
label:
|
|
5779
|
+
label: be(b),
|
|
5780
5780
|
editor: "text",
|
|
5781
5781
|
nullable: !0,
|
|
5782
5782
|
visibility: !0,
|
|
@@ -5796,14 +5796,14 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5796
5796
|
l.searchArgs[b] != null && (M[b] = l.searchArgs[b]);
|
|
5797
5797
|
return M;
|
|
5798
5798
|
}, s = () => {
|
|
5799
|
-
for (const M in
|
|
5800
|
-
|
|
5799
|
+
for (const M in L)
|
|
5800
|
+
L[M] = null;
|
|
5801
5801
|
}, g = async (M) => {
|
|
5802
5802
|
var C, S;
|
|
5803
5803
|
const b = M.valueSource;
|
|
5804
5804
|
if (b) {
|
|
5805
5805
|
if (b.type == "remote" && b.sourceUrl)
|
|
5806
|
-
await il(u, b, null, (R) => b.i18n ? a(R) : R, !1), M.nullable == !1 && ((C = b.values) != null && C.length) && (
|
|
5806
|
+
await il(u, b, null, (R) => b.i18n ? a(R) : R, !1), M.nullable == !1 && ((C = b.values) != null && C.length) && (L[M.name] = b.values[0].value);
|
|
5807
5807
|
else if (b.type == "function" && b.func) {
|
|
5808
5808
|
b.isLoading = !0;
|
|
5809
5809
|
try {
|
|
@@ -5832,12 +5832,12 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5832
5832
|
return M;
|
|
5833
5833
|
}, d = (M, b) => {
|
|
5834
5834
|
var S, R;
|
|
5835
|
-
let C =
|
|
5835
|
+
let C = L[M];
|
|
5836
5836
|
if (!(typeof C == "string" && (C = C.trim(), C == "" && !b.valueSource))) {
|
|
5837
5837
|
if (Array.isArray((S = b.valueSource) == null ? void 0 : S.values)) {
|
|
5838
5838
|
const X = (R = b.valueSource) == null ? void 0 : R.values;
|
|
5839
5839
|
if (X) {
|
|
5840
|
-
if (X.some((j) => j.value ==
|
|
5840
|
+
if (X.some((j) => j.value == L[M])) C = L[M];
|
|
5841
5841
|
else if (C == "") return;
|
|
5842
5842
|
if (b.dataType == "boolean") {
|
|
5843
5843
|
if (typeof C == "boolean") return C;
|
|
@@ -5850,7 +5850,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5850
5850
|
}
|
|
5851
5851
|
}, w = () => {
|
|
5852
5852
|
o("update:searchArgs", h());
|
|
5853
|
-
}, _ = m(),
|
|
5853
|
+
}, _ = m(), L = _t(i()), Y = z(c(l.groupOptions));
|
|
5854
5854
|
return te(
|
|
5855
5855
|
() => l.groupOptions,
|
|
5856
5856
|
() => Y.value = c(l.groupOptions)
|
|
@@ -5863,19 +5863,19 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5863
5863
|
updateValues: w,
|
|
5864
5864
|
pickValues: h
|
|
5865
5865
|
}), (M, b) => (y(), N(r(Lt), {
|
|
5866
|
-
model:
|
|
5866
|
+
model: L,
|
|
5867
5867
|
"label-placement": "left",
|
|
5868
5868
|
"label-width": "auto"
|
|
5869
5869
|
}, {
|
|
5870
5870
|
default: f(() => [
|
|
5871
|
-
v(r(
|
|
5871
|
+
v(r(we), { vertical: "" }, {
|
|
5872
5872
|
default: f(() => [
|
|
5873
5873
|
v(r(Mt), {
|
|
5874
5874
|
"x-gap": "12",
|
|
5875
5875
|
cols: "1 700:2 1200:3"
|
|
5876
5876
|
}, {
|
|
5877
5877
|
default: f(() => [
|
|
5878
|
-
(y(!0), D(
|
|
5878
|
+
(y(!0), D(Ce, null, Ie(r(_), (C) => (y(), N(r(Gt), {
|
|
5879
5879
|
key: C.name
|
|
5880
5880
|
}, {
|
|
5881
5881
|
default: f(() => [
|
|
@@ -5888,8 +5888,8 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5888
5888
|
default: f(() => [
|
|
5889
5889
|
v(it, {
|
|
5890
5890
|
"form-item": C,
|
|
5891
|
-
value:
|
|
5892
|
-
"onUpdate:value": (S) =>
|
|
5891
|
+
value: L[C.name + "From"],
|
|
5892
|
+
"onUpdate:value": (S) => L[C.name + "From"] = S,
|
|
5893
5893
|
style: { "flex-grow": "1" },
|
|
5894
5894
|
onInput: b[0] || (b[0] = () => w())
|
|
5895
5895
|
}, null, 8, ["form-item", "value", "onUpdate:value"]),
|
|
@@ -5901,8 +5901,8 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5901
5901
|
}),
|
|
5902
5902
|
v(it, {
|
|
5903
5903
|
"form-item": C,
|
|
5904
|
-
value:
|
|
5905
|
-
"onUpdate:value": (S) =>
|
|
5904
|
+
value: L[C.name + "To"],
|
|
5905
|
+
"onUpdate:value": (S) => L[C.name + "To"] = S,
|
|
5906
5906
|
style: { "flex-grow": "1" },
|
|
5907
5907
|
onInput: b[1] || (b[1] = () => w())
|
|
5908
5908
|
}, null, 8, ["form-item", "value", "onUpdate:value"])
|
|
@@ -5911,8 +5911,8 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5911
5911
|
}, 1024)) : (y(), N(it, {
|
|
5912
5912
|
key: 1,
|
|
5913
5913
|
"form-item": C,
|
|
5914
|
-
value:
|
|
5915
|
-
"onUpdate:value": (S) =>
|
|
5914
|
+
value: L[C.name],
|
|
5915
|
+
"onUpdate:value": (S) => L[C.name] = S,
|
|
5916
5916
|
onInput: b[2] || (b[2] = () => w())
|
|
5917
5917
|
}, null, 8, ["form-item", "value", "onUpdate:value"]))
|
|
5918
5918
|
]),
|
|
@@ -5965,7 +5965,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5965
5965
|
size: { default: "small" }
|
|
5966
5966
|
},
|
|
5967
5967
|
setup(e) {
|
|
5968
|
-
const n = e, t = ft(), l = Re(), o =
|
|
5968
|
+
const n = e, t = ft(), l = Re(), o = z([]);
|
|
5969
5969
|
async function a() {
|
|
5970
5970
|
var c;
|
|
5971
5971
|
const u = ((c = n.tags) == null ? void 0 : c.map((m) => ({
|
|
@@ -5985,7 +5985,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
5985
5985
|
}
|
|
5986
5986
|
}
|
|
5987
5987
|
return te(() => n.tags, () => a()), ge(() => a()), (u, c) => (y(), D("div", vd, [
|
|
5988
|
-
(y(!0), D(
|
|
5988
|
+
(y(!0), D(Ce, null, Ie(o.value, (m) => (y(), N(r(na), {
|
|
5989
5989
|
key: m.value,
|
|
5990
5990
|
title: m.desc,
|
|
5991
5991
|
color: { borderColor: m.color },
|
|
@@ -6028,10 +6028,10 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6028
6028
|
"rowSorting"
|
|
6029
6029
|
],
|
|
6030
6030
|
setup(e, { expose: n, emit: t }) {
|
|
6031
|
-
const l = e, o = t, { t: a } = ie(), u = tt(), c = eo(), m =
|
|
6031
|
+
const l = e, o = t, { t: a } = ie(), u = tt(), c = eo(), m = z(void 0), i = z([]), s = z(void 0), g = () => {
|
|
6032
6032
|
const I = {};
|
|
6033
6033
|
return typeof l.height == "number" ? I.height = `${l.height}px` : typeof l.height == "string" && (I.height = l.height), I;
|
|
6034
|
-
}, h =
|
|
6034
|
+
}, h = z(g()), d = () => {
|
|
6035
6035
|
var V;
|
|
6036
6036
|
const I = i.value, B = (V = l.data) == null ? void 0 : V.filter((O) => I.includes(O[l.keyField]));
|
|
6037
6037
|
o("update:selectedIds", I, B), I.length && o("update:selectedId", I[0]);
|
|
@@ -6043,7 +6043,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6043
6043
|
if (typeof F == "string")
|
|
6044
6044
|
ve = F, oe = {
|
|
6045
6045
|
key: F,
|
|
6046
|
-
title: a(
|
|
6046
|
+
title: a(be(F))
|
|
6047
6047
|
};
|
|
6048
6048
|
else if (ve = F.name || `column_${V}`, !(F.behavior == "none" || F.visible == !1)) if (F.behavior == "link" || F.behavior == "router-link")
|
|
6049
6049
|
oe = {
|
|
@@ -6068,11 +6068,11 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6068
6068
|
render: F.render || Y(F)
|
|
6069
6069
|
};
|
|
6070
6070
|
else {
|
|
6071
|
-
let Se = F.align,
|
|
6071
|
+
let Se = F.align, xe = [];
|
|
6072
6072
|
if (!F.display)
|
|
6073
6073
|
switch (F.dataType) {
|
|
6074
6074
|
case "number":
|
|
6075
|
-
Se = Se || "right", fe = 60,
|
|
6075
|
+
Se = Se || "right", fe = 60, xe.push("text-num");
|
|
6076
6076
|
break;
|
|
6077
6077
|
case "boolean":
|
|
6078
6078
|
Se = Se || "center", fe = 60;
|
|
@@ -6087,12 +6087,12 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6087
6087
|
Se = Se || "center", fe = 80;
|
|
6088
6088
|
break;
|
|
6089
6089
|
case "time":
|
|
6090
|
-
fe = 80,
|
|
6090
|
+
fe = 80, xe.push(`text-${F.dataType}`);
|
|
6091
6091
|
break;
|
|
6092
6092
|
}
|
|
6093
6093
|
if (oe = {
|
|
6094
6094
|
key: ve,
|
|
6095
|
-
title: F.title == null ? a(
|
|
6095
|
+
title: F.title == null ? a(be(F.name)) : F ? a(F.title) : void 0,
|
|
6096
6096
|
titleAlign: "center",
|
|
6097
6097
|
align: Se,
|
|
6098
6098
|
width: F.width || fe,
|
|
@@ -6103,7 +6103,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6103
6103
|
fixed: F.fixed,
|
|
6104
6104
|
// className: className,
|
|
6105
6105
|
render: F.render || Y(F)
|
|
6106
|
-
}, typeof F.className == "string" ?
|
|
6106
|
+
}, typeof F.className == "string" ? xe.push(F.className) : Array.isArray(F.className) && xe.push(...F.className), xe.length && (oe.className = xe.join(" ")), !oe.width && oe.minWidth && (oe.width = oe.minWidth), F.referencePage && typeof oe.width == "number" && (oe.width += 30), F.role && F.role.includes("qr") && typeof oe.width == "number" && (oe.width += 30), F.role && F.role.includes("percent") && typeof oe.width == "number" && (oe.width += 30, oe.align || (oe.align = "right")), (F.textOverflow == "ellipsis" || F.textOverflow == "clip") && (oe.ellipsis = { tooltip: !0 }, oe.resizable = !0, fe || (fe = 400)), F.children && F.children.length) {
|
|
6107
6107
|
const ae = [];
|
|
6108
6108
|
_(ae, F.children), oe.children = ae, ae.some((Me) => Me.width) && (oe.width = void 0);
|
|
6109
6109
|
}
|
|
@@ -6111,7 +6111,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6111
6111
|
oe && !le.has(ve) && (le.add(ve), I.push(oe), typeof F == "object" && typeof F.width == "number" ? O += F.width : O += fe || 150);
|
|
6112
6112
|
}
|
|
6113
6113
|
return O;
|
|
6114
|
-
},
|
|
6114
|
+
}, L = () => {
|
|
6115
6115
|
if (l.columns) {
|
|
6116
6116
|
const I = [];
|
|
6117
6117
|
let B = 0;
|
|
@@ -6215,7 +6215,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6215
6215
|
} else
|
|
6216
6216
|
return [];
|
|
6217
6217
|
}, Y = (I) => (B, V) => {
|
|
6218
|
-
var ve, Se,
|
|
6218
|
+
var ve, Se, xe;
|
|
6219
6219
|
let O = null;
|
|
6220
6220
|
const le = I.display || I.name;
|
|
6221
6221
|
if (I.template && typeof I.template == "function")
|
|
@@ -6245,7 +6245,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6245
6245
|
if (F && !Array.isArray(F) && (F = [F]), F != null && F.length)
|
|
6246
6246
|
if (F.includes("tag")) {
|
|
6247
6247
|
let ae;
|
|
6248
|
-
Array.isArray(B[le]) ? ae = B[le] : ae = (
|
|
6248
|
+
Array.isArray(B[le]) ? ae = B[le] : ae = (xe = (Se = (ve = B[le]) == null ? void 0 : ve.toString()) == null ? void 0 : Se.split(",")) == null ? void 0 : xe.filter((Me) => Me.length), ae && ae.length && (O = U(
|
|
6249
6249
|
uo,
|
|
6250
6250
|
{
|
|
6251
6251
|
tags: ae,
|
|
@@ -6377,7 +6377,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6377
6377
|
if (Array.isArray(l.data) && B != null && B >= 0 && B < l.data.length) {
|
|
6378
6378
|
const V = l.data[B][I.name];
|
|
6379
6379
|
if (typeof V == "string") {
|
|
6380
|
-
const O = a(I.title ??
|
|
6380
|
+
const O = a(I.title ?? be(I.name));
|
|
6381
6381
|
c.showQrModal(V, O);
|
|
6382
6382
|
}
|
|
6383
6383
|
}
|
|
@@ -6411,7 +6411,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6411
6411
|
var V;
|
|
6412
6412
|
const I = (V = s.value) == null ? void 0 : V.$el, B = I == null ? void 0 : I.querySelector("tbody.n-data-table-tbody");
|
|
6413
6413
|
if (B && Array.isArray(l.data)) {
|
|
6414
|
-
const O =
|
|
6414
|
+
const O = z(l.data);
|
|
6415
6415
|
un(B, O, {
|
|
6416
6416
|
animation: 150,
|
|
6417
6417
|
ghostClass: "draging-ghost",
|
|
@@ -6431,7 +6431,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6431
6431
|
}
|
|
6432
6432
|
});
|
|
6433
6433
|
}
|
|
6434
|
-
}, T = L(
|
|
6434
|
+
}, T = z(L());
|
|
6435
6435
|
return te(
|
|
6436
6436
|
() => l.data,
|
|
6437
6437
|
(I) => {
|
|
@@ -6440,7 +6440,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6440
6440
|
}
|
|
6441
6441
|
), te(
|
|
6442
6442
|
() => l.columns,
|
|
6443
|
-
() => T.value =
|
|
6443
|
+
() => T.value = L()
|
|
6444
6444
|
), te(
|
|
6445
6445
|
() => l.height,
|
|
6446
6446
|
() => h.value = g()
|
|
@@ -6493,7 +6493,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6493
6493
|
},
|
|
6494
6494
|
emits: ["searchBack", "resultSelected"],
|
|
6495
6495
|
setup(e, { expose: n, emit: t }) {
|
|
6496
|
-
const l = e, o = t, { t: a } = ie(), u = Ye(), c = ke("axios"), m =
|
|
6496
|
+
const l = e, o = t, { t: a } = ie(), u = Ye(), c = ke("axios"), m = z(null), i = z(1), s = z(0), g = z(!1), h = z(Array()), d = z(Array());
|
|
6497
6497
|
let w = !0;
|
|
6498
6498
|
function _(S) {
|
|
6499
6499
|
if (S) {
|
|
@@ -6503,7 +6503,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6503
6503
|
}), h.value = R, s.value = S.pageCount || 1, i.value = S.pageIndex + 1;
|
|
6504
6504
|
}
|
|
6505
6505
|
}
|
|
6506
|
-
function
|
|
6506
|
+
function L() {
|
|
6507
6507
|
h.value = [], s.value = 0, i.value = 1;
|
|
6508
6508
|
}
|
|
6509
6509
|
function Y(S) {
|
|
@@ -6540,7 +6540,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6540
6540
|
l.searchOnMounted && w && M(1);
|
|
6541
6541
|
}
|
|
6542
6542
|
return te(() => l.config, (S) => {
|
|
6543
|
-
S && (w = !0),
|
|
6543
|
+
S && (w = !0), L();
|
|
6544
6544
|
}), ge(() => C()), n({
|
|
6545
6545
|
searchPage: M,
|
|
6546
6546
|
returnAndClose: b
|
|
@@ -6625,9 +6625,9 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6625
6625
|
},
|
|
6626
6626
|
emits: ["searchBack", "update:show"],
|
|
6627
6627
|
setup(e, { emit: n }) {
|
|
6628
|
-
const t = e, l = n, { t: o } = ie(), a =
|
|
6628
|
+
const t = e, l = n, { t: o } = ie(), a = z(void 0);
|
|
6629
6629
|
let u = !0;
|
|
6630
|
-
const c =
|
|
6630
|
+
const c = z([]);
|
|
6631
6631
|
function m(h, d) {
|
|
6632
6632
|
c.value = d ?? [];
|
|
6633
6633
|
}
|
|
@@ -6728,14 +6728,14 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6728
6728
|
},
|
|
6729
6729
|
emits: ["uploaded", "update:show"],
|
|
6730
6730
|
setup(e, { emit: n }) {
|
|
6731
|
-
const t = e, l = n, { t: o } = ie(), a = Ye(), u = el(), c = ke("axios"), m = Re(), i = _t({}), s =
|
|
6731
|
+
const t = e, l = n, { t: o } = ie(), a = Ye(), u = el(), c = ke("axios"), m = Re(), i = _t({}), s = z(!1), g = z(new Array()), h = z(!1), d = z(void 0), w = z(_());
|
|
6732
6732
|
function _() {
|
|
6733
6733
|
if (t.templateUrl)
|
|
6734
6734
|
return t.templateUrl;
|
|
6735
6735
|
if (t.templateCode)
|
|
6736
6736
|
return `/api/core/DataExchangeTemplates/ImportTemplate?templateCode=${t.templateCode}`;
|
|
6737
6737
|
}
|
|
6738
|
-
async function
|
|
6738
|
+
async function L() {
|
|
6739
6739
|
var C;
|
|
6740
6740
|
if (h.value)
|
|
6741
6741
|
return a.warning("Is uploading..."), !1;
|
|
@@ -6803,12 +6803,12 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6803
6803
|
draggable: ""
|
|
6804
6804
|
}, {
|
|
6805
6805
|
action: f(() => [
|
|
6806
|
-
v(r(
|
|
6806
|
+
v(r(we), { justify: "space-between" }, {
|
|
6807
6807
|
default: f(() => [
|
|
6808
6808
|
v(r(q), {
|
|
6809
6809
|
type: "primary",
|
|
6810
6810
|
style: { "min-width": "100px" },
|
|
6811
|
-
onClick:
|
|
6811
|
+
onClick: L,
|
|
6812
6812
|
disabled: b.disabled || !b.action || h.value
|
|
6813
6813
|
}, {
|
|
6814
6814
|
icon: f(() => [
|
|
@@ -6824,7 +6824,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6824
6824
|
]),
|
|
6825
6825
|
_: 1
|
|
6826
6826
|
}, 8, ["disabled"]),
|
|
6827
|
-
v(r(
|
|
6827
|
+
v(r(we), null, {
|
|
6828
6828
|
default: f(() => [
|
|
6829
6829
|
w.value ? (y(), N(r(q), {
|
|
6830
6830
|
key: 0,
|
|
@@ -6863,7 +6863,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6863
6863
|
default: f(() => [
|
|
6864
6864
|
v(r(Ve), { show: h.value }, {
|
|
6865
6865
|
default: f(() => [
|
|
6866
|
-
v(r(
|
|
6866
|
+
v(r(we), { vertical: "" }, {
|
|
6867
6867
|
default: f(() => [
|
|
6868
6868
|
v(r(oa), {
|
|
6869
6869
|
multiple: b.multiple,
|
|
@@ -6923,7 +6923,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6923
6923
|
_: 3
|
|
6924
6924
|
}, 8, ["show", "title"]));
|
|
6925
6925
|
}
|
|
6926
|
-
}), fo = /* @__PURE__ */ Ae(Sd, [["__scopeId", "data-v-
|
|
6926
|
+
}), fo = /* @__PURE__ */ Ae(Sd, [["__scopeId", "data-v-18129d6e"]]), po = /* @__PURE__ */ P({
|
|
6927
6927
|
__name: "InputModal",
|
|
6928
6928
|
props: {
|
|
6929
6929
|
title: {},
|
|
@@ -6940,7 +6940,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6940
6940
|
emits: ["close", "commit", "update:show", "update:value"],
|
|
6941
6941
|
setup(e, { emit: n }) {
|
|
6942
6942
|
var m;
|
|
6943
|
-
const t = e, l = n, { t: o } = ie(), a =
|
|
6943
|
+
const t = e, l = n, { t: o } = ie(), a = z((m = t.value) == null ? void 0 : m.toString()), u = () => {
|
|
6944
6944
|
l("close"), l("update:show", !1);
|
|
6945
6945
|
}, c = () => {
|
|
6946
6946
|
l("commit", a.value), l("update:value", a.value);
|
|
@@ -6953,7 +6953,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6953
6953
|
onClose: u
|
|
6954
6954
|
}, {
|
|
6955
6955
|
action: f(() => [
|
|
6956
|
-
v(r(
|
|
6956
|
+
v(r(we), { justify: "space-between" }, {
|
|
6957
6957
|
default: f(() => [
|
|
6958
6958
|
v(r(q), {
|
|
6959
6959
|
type: "primary",
|
|
@@ -6982,7 +6982,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
6982
6982
|
default: f(() => [
|
|
6983
6983
|
v(r(Ve), { show: i.submitting }, {
|
|
6984
6984
|
default: f(() => [
|
|
6985
|
-
v(r(
|
|
6985
|
+
v(r(we), { vertical: "" }, {
|
|
6986
6986
|
default: f(() => [
|
|
6987
6987
|
v(r(Te), null, {
|
|
6988
6988
|
default: f(() => [
|
|
@@ -7025,12 +7025,12 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
7025
7025
|
},
|
|
7026
7026
|
emits: ["close", "reset", "update:pageSize", "update:config"],
|
|
7027
7027
|
setup(e, { emit: n }) {
|
|
7028
|
-
const t = e, l = n, { t: o } = ie(), a = Re(), u = so(["2E2466DDD34847C8B33460E4277A6528"]), c = tt(), m =
|
|
7028
|
+
const t = e, l = n, { t: o } = ie(), a = Re(), u = so(["2E2466DDD34847C8B33460E4277A6528"]), c = tt(), m = z(t.pageSize), i = z(!1), s = z(void 0), g = z(void 0), h = z(!1), d = (j) => j ? j.map(($, K) => ({
|
|
7029
7029
|
columnId: $.name,
|
|
7030
|
-
title: $.title ? o($.title) : o(
|
|
7030
|
+
title: $.title ? o($.title) : o(be($.name)),
|
|
7031
7031
|
visible: !0,
|
|
7032
7032
|
sortIndex: K
|
|
7033
|
-
})).sort(($, K) => $.sortIndex - K.sortIndex) : [], w =
|
|
7033
|
+
})).sort(($, K) => $.sortIndex - K.sortIndex) : [], w = z(d(t.gridColumns)), _ = () => {
|
|
7034
7034
|
const j = t.gridId;
|
|
7035
7035
|
j && a.confirmToPost("Reset", "Are you sure reset the configuration of this data grid?", {
|
|
7036
7036
|
url: `/api/core/UserDataGrids/Reset?dataGridId=${j}`,
|
|
@@ -7039,7 +7039,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
7039
7039
|
l("reset");
|
|
7040
7040
|
}
|
|
7041
7041
|
});
|
|
7042
|
-
},
|
|
7042
|
+
}, L = () => {
|
|
7043
7043
|
if (!t.gridId) return;
|
|
7044
7044
|
const j = {
|
|
7045
7045
|
dataGridId: t.gridId,
|
|
@@ -7262,7 +7262,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
7262
7262
|
}, null, 8, ["show", "value", "title"]),
|
|
7263
7263
|
A("div", Ld, [
|
|
7264
7264
|
v(r(q), {
|
|
7265
|
-
onClick:
|
|
7265
|
+
onClick: L,
|
|
7266
7266
|
style: { "min-width": "100px" },
|
|
7267
7267
|
type: "primary"
|
|
7268
7268
|
}, {
|
|
@@ -7423,18 +7423,18 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
7423
7423
|
"rowSorting"
|
|
7424
7424
|
],
|
|
7425
7425
|
setup(e, { expose: n, emit: t }) {
|
|
7426
|
-
const l = e, o = t, { t: a } = ie(), u = ke("axios"), c =
|
|
7426
|
+
const l = e, o = t, { t: a } = ie(), u = ke("axios"), c = z(Array()), m = qt(), i = Ye(), s = el(), g = tt();
|
|
7427
7427
|
let h = [];
|
|
7428
|
-
const d =
|
|
7429
|
-
let
|
|
7430
|
-
const Y =
|
|
7428
|
+
const d = z([]), w = z([]), _ = z([]);
|
|
7429
|
+
let L = 1;
|
|
7430
|
+
const Y = z(1), M = z(0), b = z(0), C = z(l.pageSize), S = z(!0), R = z(!1), X = z(!1), j = z(""), $ = ye(() => {
|
|
7431
7431
|
var p;
|
|
7432
|
-
return !!l.searchAction && ((p = _.value)
|
|
7433
|
-
}), K =
|
|
7432
|
+
return !!l.searchAction && !!((p = _.value) != null && p.length);
|
|
7433
|
+
}), K = ye(() => $.value && !l.getListAction), T = ye(() => !!K.value), I = z(!1), B = z(null), V = z(null), O = z(new Array()), le = z(!1), F = z(void 0), oe = z(void 0), fe = z(void 0), ve = z(!1), Se = z(l.readOnly), xe = z(a("Property")), ae = z(!1), Me = z(!1), se = z([]), $t = z(Rt("page")), fl = z(vo()), Bt = z(void 0), je = z([]), Qe = z(void 0), gt = z(!1);
|
|
7434
7434
|
let Ge;
|
|
7435
|
-
const pl =
|
|
7435
|
+
const pl = z(void 0), Ee = z(void 0), Ke = z(void 0);
|
|
7436
7436
|
let lt = [], nt = 0;
|
|
7437
|
-
const ho =
|
|
7437
|
+
const ho = z({
|
|
7438
7438
|
width: yo(l.modalColumns)
|
|
7439
7439
|
});
|
|
7440
7440
|
function vo() {
|
|
@@ -7724,18 +7724,18 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
7724
7724
|
};
|
|
7725
7725
|
switch (o("beforeShow", k), fe.value = p, F.value = k.value, oe.value = x, ve.value = !0, Se.value = x != "create" && x != "edit", x) {
|
|
7726
7726
|
case "create":
|
|
7727
|
-
|
|
7727
|
+
xe.value = a("New");
|
|
7728
7728
|
break;
|
|
7729
7729
|
case "edit":
|
|
7730
|
-
|
|
7730
|
+
xe.value = a("Edit");
|
|
7731
7731
|
break;
|
|
7732
7732
|
default:
|
|
7733
|
-
|
|
7733
|
+
xe.value = a("Property");
|
|
7734
7734
|
break;
|
|
7735
7735
|
}
|
|
7736
7736
|
}
|
|
7737
7737
|
function bl() {
|
|
7738
|
-
fe.value = void 0, F.value = void 0, oe.value = void 0, ve.value = !1,
|
|
7738
|
+
fe.value = void 0, F.value = void 0, oe.value = void 0, ve.value = !1, xe.value = a("Property");
|
|
7739
7739
|
}
|
|
7740
7740
|
async function Dt() {
|
|
7741
7741
|
var p;
|
|
@@ -8144,8 +8144,8 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8144
8144
|
for (const k of l.extendedMenus)
|
|
8145
8145
|
typeof k == "string" ? p.push({
|
|
8146
8146
|
label: a(k),
|
|
8147
|
-
key:
|
|
8148
|
-
}) : (k.key || (k.key =
|
|
8147
|
+
key: L++
|
|
8148
|
+
}) : (k.key || (k.key = L++), p.push(k));
|
|
8149
8149
|
lt = p, Do(p);
|
|
8150
8150
|
const x = p.filter((k) => k.group == "import" || k.group == "export");
|
|
8151
8151
|
No(x);
|
|
@@ -8183,7 +8183,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8183
8183
|
}
|
|
8184
8184
|
const Fo = (p) => p.map((x) => typeof x == "string" ? {
|
|
8185
8185
|
name: x,
|
|
8186
|
-
title:
|
|
8186
|
+
title: be(x)
|
|
8187
8187
|
} : Object.assign({}, x)), Ho = (p, x) => {
|
|
8188
8188
|
var W;
|
|
8189
8189
|
x.forEach((Z) => {
|
|
@@ -8213,7 +8213,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8213
8213
|
$l(), bt.hasGridId() ? bt.loadGridConfig(() => {
|
|
8214
8214
|
Bl();
|
|
8215
8215
|
}) : (xt(), Bl()), zl();
|
|
8216
|
-
}), te(
|
|
8216
|
+
}), te(ye(Tl), (p, x) => {
|
|
8217
8217
|
JSON.stringify(p) != JSON.stringify(x) && ($l(), l.autoLoad != !1 && nt > 0 && ot());
|
|
8218
8218
|
}), te(
|
|
8219
8219
|
() => l.extendedMenus,
|
|
@@ -8266,7 +8266,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8266
8266
|
v(r(sa), null, {
|
|
8267
8267
|
default: f(() => [
|
|
8268
8268
|
de(p.$slots, "prefix-tools"),
|
|
8269
|
-
p.readOnly ? ee("", !0) : (y(!0), D(
|
|
8269
|
+
p.readOnly ? ee("", !0) : (y(!0), D(Ce, { key: 0 }, Ie(p.batchAdds, (G) => (y(), N(r(q), {
|
|
8270
8270
|
onClick: () => xl(G),
|
|
8271
8271
|
disabled: p.readOnly || p.disabled,
|
|
8272
8272
|
key: G.id
|
|
@@ -8512,9 +8512,9 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8512
8512
|
], 4)
|
|
8513
8513
|
]),
|
|
8514
8514
|
action: f(() => [
|
|
8515
|
-
v(r(
|
|
8515
|
+
v(r(we), { justify: "space-between" }, {
|
|
8516
8516
|
default: f(() => [
|
|
8517
|
-
v(r(
|
|
8517
|
+
v(r(we), null, {
|
|
8518
8518
|
default: f(() => [
|
|
8519
8519
|
v(r(q), {
|
|
8520
8520
|
type: "primary",
|
|
@@ -8658,7 +8658,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8658
8658
|
onRowSorting: x[11] || (x[11] = (G) => p.$emit("rowSorting", G))
|
|
8659
8659
|
}, null, 8, ["data", "columns", "loading", "drag-sorting", "flex-height", "with-edit", "with-delete", "with-details", "multi-select", "max-height", "height", "checkable"])
|
|
8660
8660
|
]),
|
|
8661
|
-
v(r(
|
|
8661
|
+
v(r(we), { justify: "space-between" }, {
|
|
8662
8662
|
default: f(() => [
|
|
8663
8663
|
S.value && C.value > 0 ? (y(), N(r(ll), {
|
|
8664
8664
|
key: 0,
|
|
@@ -8720,12 +8720,12 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8720
8720
|
preset: "card",
|
|
8721
8721
|
draggable: "",
|
|
8722
8722
|
style: ce([ho.value, p.modalStyle]),
|
|
8723
|
-
title:
|
|
8723
|
+
title: xe.value,
|
|
8724
8724
|
"close-on-esc": !1,
|
|
8725
8725
|
"mask-closable": !1
|
|
8726
8726
|
}, {
|
|
8727
8727
|
action: f(() => [
|
|
8728
|
-
v(r(
|
|
8728
|
+
v(r(we), { justify: "space-between" }, {
|
|
8729
8729
|
default: f(() => [
|
|
8730
8730
|
oe.value == "create" || oe.value == "edit" ? (y(), N(r(q), {
|
|
8731
8731
|
key: 0,
|
|
@@ -8881,7 +8881,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8881
8881
|
])
|
|
8882
8882
|
]),
|
|
8883
8883
|
action: f(() => [
|
|
8884
|
-
v(r(
|
|
8884
|
+
v(r(we), { justify: "space-between" }, {
|
|
8885
8885
|
default: f(() => [
|
|
8886
8886
|
t.hideOkButton ? ee("", !0) : (y(), N(r(q), {
|
|
8887
8887
|
key: 0,
|
|
@@ -8939,14 +8939,14 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8939
8939
|
},
|
|
8940
8940
|
emits: ["update:value"],
|
|
8941
8941
|
setup(e, { emit: n }) {
|
|
8942
|
-
const t = e, l = n, { t: o } = ie(), a = ke("axios"), u =
|
|
8942
|
+
const t = e, l = n, { t: o } = ie(), a = ke("axios"), u = z(!1), c = z([]);
|
|
8943
8943
|
let m;
|
|
8944
8944
|
const i = (h) => {
|
|
8945
8945
|
(!m || m != h) && (m = h, s(h));
|
|
8946
8946
|
}, s = async (h) => {
|
|
8947
8947
|
let d = t.sourceUrl;
|
|
8948
8948
|
if (d) {
|
|
8949
|
-
const w = t.labelFormatter, _ = t.keyField,
|
|
8949
|
+
const w = t.labelFormatter, _ = t.keyField, L = t.labelField, Y = t.subLabelField, M = t.insertBlank, b = t.additionalQuery;
|
|
8950
8950
|
u.value = !0, c.value = [];
|
|
8951
8951
|
try {
|
|
8952
8952
|
h && (d = he(d, { searchWords: h })), b && (d = he(d, b, !0));
|
|
@@ -8961,7 +8961,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8961
8961
|
label: w ? w(X) : o(X)
|
|
8962
8962
|
};
|
|
8963
8963
|
{
|
|
8964
|
-
let j = X[
|
|
8964
|
+
let j = X[L || "label"];
|
|
8965
8965
|
if (w && (j = w(j)), t.prefix && (j = t.prefix + j), t.suffix && (j = j + t.suffix), t.i18n && (j = o(j)), Y) {
|
|
8966
8966
|
let $ = X[Y];
|
|
8967
8967
|
typeof $ == "string" && (w && ($ = w($)), t.i18n && ($ = o($)), $ && (j += " " + $));
|
|
@@ -8982,7 +8982,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
8982
8982
|
}
|
|
8983
8983
|
}, g = (h, d) => {
|
|
8984
8984
|
var _;
|
|
8985
|
-
const w = (_ = c.value.find((
|
|
8985
|
+
const w = (_ = c.value.find((L) => L.value == h)) == null ? void 0 : _.data;
|
|
8986
8986
|
l("update:value", h, d, w);
|
|
8987
8987
|
};
|
|
8988
8988
|
return te(() => t.sourceUrl, () => s()), te(() => t.additionalQuery, (h, d) => {
|
|
@@ -9033,7 +9033,7 @@ const fd = /* @__PURE__ */ Ae(dd, [["render", cd]]), so = (e) => {
|
|
|
9033
9033
|
},
|
|
9034
9034
|
emits: ["search", "update:selectedItems"],
|
|
9035
9035
|
setup(e, n) {
|
|
9036
|
-
const { t } = ie(), l =
|
|
9036
|
+
const { t } = ie(), l = z(void 0), o = z(u(e.sourceList)), a = z([]);
|
|
9037
9037
|
function u(h) {
|
|
9038
9038
|
return h ? h.map((d) => ({ isSelected: !1, value: d })) : [];
|
|
9039
9039
|
}
|
|
@@ -9117,9 +9117,9 @@ function Yd(e, n, t, l, o, a) {
|
|
|
9117
9117
|
"content-style": "padding: 4px"
|
|
9118
9118
|
}, {
|
|
9119
9119
|
default: f(() => [
|
|
9120
|
-
(y(!0), D(
|
|
9120
|
+
(y(!0), D(Ce, null, Ie(e.source, (_) => (y(), N(i, {
|
|
9121
9121
|
checked: _.isSelected,
|
|
9122
|
-
"onUpdate:checked": (
|
|
9122
|
+
"onUpdate:checked": (L) => _.isSelected = L,
|
|
9123
9123
|
style: { "align-items": "center" }
|
|
9124
9124
|
}, {
|
|
9125
9125
|
default: f(() => [
|
|
@@ -9190,9 +9190,9 @@ function Yd(e, n, t, l, o, a) {
|
|
|
9190
9190
|
"content-style": "padding: 4px"
|
|
9191
9191
|
}, {
|
|
9192
9192
|
default: f(() => [
|
|
9193
|
-
(y(!0), D(
|
|
9193
|
+
(y(!0), D(Ce, null, Ie(e.target, (_) => (y(), N(i, {
|
|
9194
9194
|
checked: _.isSelected,
|
|
9195
|
-
"onUpdate:checked": (
|
|
9195
|
+
"onUpdate:checked": (L) => _.isSelected = L,
|
|
9196
9196
|
style: { "align-items": "center" }
|
|
9197
9197
|
}, {
|
|
9198
9198
|
default: f(() => [
|
|
@@ -9244,13 +9244,13 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9244
9244
|
detailFolded: { type: Boolean, default: !1 }
|
|
9245
9245
|
},
|
|
9246
9246
|
setup(e) {
|
|
9247
|
-
const n = e, t =
|
|
9247
|
+
const n = e, t = z(n.initialRatio), l = z(!1), o = z(void 0), a = ye(() => n.detailFolded ? {
|
|
9248
9248
|
[n.direction === "horizontal" ? "width" : "height"]: "100%",
|
|
9249
9249
|
[n.direction === "horizontal" ? "height" : "width"]: "100%"
|
|
9250
9250
|
} : {
|
|
9251
9251
|
[n.direction === "horizontal" ? "width" : "height"]: `${t.value * 100}%`,
|
|
9252
9252
|
[n.direction === "horizontal" ? "height" : "width"]: "100%"
|
|
9253
|
-
}), u =
|
|
9253
|
+
}), u = ye(() => n.detailFolded ? {
|
|
9254
9254
|
[n.direction === "horizontal" ? "width" : "height"]: "100%",
|
|
9255
9255
|
[n.direction === "horizontal" ? "height" : "width"]: "100%"
|
|
9256
9256
|
} : {
|
|
@@ -9297,7 +9297,7 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9297
9297
|
], 6))
|
|
9298
9298
|
], 2));
|
|
9299
9299
|
}
|
|
9300
|
-
}), Jd = /* @__PURE__ */ Ae(Xd, [["__scopeId", "data-v-
|
|
9300
|
+
}), Jd = /* @__PURE__ */ Ae(Xd, [["__scopeId", "data-v-ca4664e2"]]), qd = /* @__PURE__ */ P({
|
|
9301
9301
|
__name: "NumberInputModal",
|
|
9302
9302
|
props: {
|
|
9303
9303
|
title: {},
|
|
@@ -9307,7 +9307,7 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9307
9307
|
},
|
|
9308
9308
|
emits: ["update:show", "commit"],
|
|
9309
9309
|
setup(e, { emit: n }) {
|
|
9310
|
-
const t = e, { t: l } = ie(), o =
|
|
9310
|
+
const t = e, { t: l } = ie(), o = z(t.value);
|
|
9311
9311
|
return te(() => t.value, () => o.value = t.value), (a, u) => (y(), N(r(_e), {
|
|
9312
9312
|
title: a.title,
|
|
9313
9313
|
show: a.show,
|
|
@@ -9317,7 +9317,7 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9317
9317
|
onClose: u[3] || (u[3] = () => a.$emit("update:show", !1))
|
|
9318
9318
|
}, {
|
|
9319
9319
|
action: f(() => [
|
|
9320
|
-
v(r(
|
|
9320
|
+
v(r(we), { justify: "space-between" }, {
|
|
9321
9321
|
default: f(() => [
|
|
9322
9322
|
v(r(q), {
|
|
9323
9323
|
type: "primary",
|
|
@@ -9391,7 +9391,7 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9391
9391
|
emits: ["update:selectedId", "update:path"],
|
|
9392
9392
|
setup(e, { emit: n }) {
|
|
9393
9393
|
var K;
|
|
9394
|
-
const t = e, l = n, { t: o } = ie(), a = Re(), u =
|
|
9394
|
+
const t = e, l = n, { t: o } = ie(), a = Re(), u = z(new Array()), c = z(void 0), m = (T, I) => {
|
|
9395
9395
|
for (const B of T) {
|
|
9396
9396
|
if (B.key == I)
|
|
9397
9397
|
return [B];
|
|
@@ -9445,17 +9445,17 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9445
9445
|
}, w = (T) => {
|
|
9446
9446
|
const I = j.value;
|
|
9447
9447
|
if (I) {
|
|
9448
|
-
const B = I.map((V) => V.children ?
|
|
9448
|
+
const B = I.map((V) => V.children ? L(V.children) : []);
|
|
9449
9449
|
$.value = B.flat();
|
|
9450
9450
|
}
|
|
9451
9451
|
}, _ = (T) => {
|
|
9452
9452
|
const I = j.value;
|
|
9453
9453
|
I && ($.value = I.map((B) => B.key));
|
|
9454
|
-
},
|
|
9454
|
+
}, L = (T, I) => {
|
|
9455
9455
|
const B = new Array();
|
|
9456
9456
|
for (const V of T)
|
|
9457
9457
|
if (V.key && B.push(V.key), V.children) {
|
|
9458
|
-
const O =
|
|
9458
|
+
const O = L(V.children);
|
|
9459
9459
|
O.length && B.push(...O);
|
|
9460
9460
|
}
|
|
9461
9461
|
return B;
|
|
@@ -9525,7 +9525,7 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9525
9525
|
if (T == null && (T = t.rootId), u.value.includes(T)) return;
|
|
9526
9526
|
const I = m(j.value, T);
|
|
9527
9527
|
I.length && ($.value = I.map((B) => B.key), u.value = [T]);
|
|
9528
|
-
}, j =
|
|
9528
|
+
}, j = z(h(t.data ?? [])), $ = z(((K = j.value) == null ? void 0 : K.map((T) => T.key)) ?? []);
|
|
9529
9529
|
return te(() => t.additionKeys, () => d()), te(() => t.loadTreeAction, () => d()), te(
|
|
9530
9530
|
() => t.data,
|
|
9531
9531
|
(T) => {
|
|
@@ -9662,7 +9662,7 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9662
9662
|
},
|
|
9663
9663
|
emits: ["update:show"],
|
|
9664
9664
|
setup(e, { emit: n }) {
|
|
9665
|
-
const t = e, l = n, { t: o } = ie(), a = Re(), u =
|
|
9665
|
+
const t = e, l = n, { t: o } = ie(), a = Re(), u = z(!1), c = z(s()), m = z(g()), i = [
|
|
9666
9666
|
{ label: o("Collated (123-123-123)"), value: "Collated" },
|
|
9667
9667
|
{ label: o("Uncollated (111-222-333)"), value: "Uncollated" }
|
|
9668
9668
|
];
|
|
@@ -9721,7 +9721,7 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9721
9721
|
])
|
|
9722
9722
|
]),
|
|
9723
9723
|
action: f(() => [
|
|
9724
|
-
v(r(
|
|
9724
|
+
v(r(we), { justify: "space-between" }, {
|
|
9725
9725
|
default: f(() => [
|
|
9726
9726
|
v(r(q), {
|
|
9727
9727
|
onClick: h,
|
|
@@ -9787,7 +9787,7 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9787
9787
|
},
|
|
9788
9788
|
emits: ["update:show"],
|
|
9789
9789
|
setup(e, { emit: n }) {
|
|
9790
|
-
const t = e, { t: l } = ie(), o =
|
|
9790
|
+
const t = e, { t: l } = ie(), o = ye(() => `/api/core/QR/Image?code=${encodeURIComponent(t.code || "")}&format=CODE_128&width=200&height=200`);
|
|
9791
9791
|
return (a, u) => {
|
|
9792
9792
|
const c = re("n-text");
|
|
9793
9793
|
return y(), N(r(_e), {
|
|
@@ -9844,7 +9844,7 @@ const Qd = /* @__PURE__ */ Ae(Fd, [["render", Yd]]), Xd = /* @__PURE__ */ P({
|
|
|
9844
9844
|
},
|
|
9845
9845
|
emits: ["searchBack"],
|
|
9846
9846
|
setup(e, { emit: n }) {
|
|
9847
|
-
const t = e, l = n, { t: o } = ie(), a =
|
|
9847
|
+
const t = e, l = n, { t: o } = ie(), a = z([]), u = (i, s) => {
|
|
9848
9848
|
a.value = s ?? [];
|
|
9849
9849
|
}, c = () => {
|
|
9850
9850
|
a && l("searchBack", a.value, t.config);
|
|
@@ -9915,7 +9915,7 @@ const gc = { class: "flex-grow-1 flex-column" }, hc = { class: "icon-container"
|
|
|
9915
9915
|
__name: "SelectIconBox",
|
|
9916
9916
|
emits: ["update:selected"],
|
|
9917
9917
|
setup(e, { emit: n }) {
|
|
9918
|
-
const t = n, { t: l } = ie(), o = Re(), a =
|
|
9918
|
+
const t = n, { t: l } = ie(), o = Re(), a = z(sessionStorage.getItem(It)), u = z(h(void 0)), c = z([]), m = z(1), i = z(0), s = z(!1), g = z(sessionStorage.getItem(Jl));
|
|
9919
9919
|
function h(M) {
|
|
9920
9920
|
const b = [{ name: l("Root"), path: "/" }];
|
|
9921
9921
|
if (M) {
|
|
@@ -9938,12 +9938,12 @@ const gc = { class: "flex-grow-1 flex-column" }, hc = { class: "icon-container"
|
|
|
9938
9938
|
M.isDirectory ? a.value = M.path : M.path && t("update:selected", M.path);
|
|
9939
9939
|
}
|
|
9940
9940
|
function w() {
|
|
9941
|
-
|
|
9941
|
+
L(0);
|
|
9942
9942
|
}
|
|
9943
9943
|
function _(M) {
|
|
9944
|
-
|
|
9944
|
+
L(M - 1);
|
|
9945
9945
|
}
|
|
9946
|
-
function
|
|
9946
|
+
function L(M) {
|
|
9947
9947
|
M = Math.max(0, M);
|
|
9948
9948
|
let b = `/api/core/SystemIcons/page?pageSize=${ql}&pageIndex=${M}`;
|
|
9949
9949
|
var C = g.value;
|
|
@@ -9961,16 +9961,16 @@ const gc = { class: "flex-grow-1 flex-column" }, hc = { class: "icon-container"
|
|
|
9961
9961
|
sessionStorage.setItem(Xl, M.toString()), b ? sessionStorage.setItem(It, b) : sessionStorage.removeItem(It), C ? sessionStorage.setItem(Jl, C) : sessionStorage.removeItem(It);
|
|
9962
9962
|
}
|
|
9963
9963
|
return te(a, (M) => {
|
|
9964
|
-
u.value = h(M),
|
|
9964
|
+
u.value = h(M), L(0);
|
|
9965
9965
|
}), ge(() => {
|
|
9966
9966
|
u.value = h(a.value);
|
|
9967
9967
|
let M = Number(sessionStorage.getItem(Xl));
|
|
9968
|
-
|
|
9968
|
+
L(M || 0);
|
|
9969
9969
|
}), (M, b) => (y(), D("div", gc, [
|
|
9970
9970
|
A("div", null, [
|
|
9971
9971
|
v(r(fa), null, {
|
|
9972
9972
|
default: f(() => [
|
|
9973
|
-
(y(!0), D(
|
|
9973
|
+
(y(!0), D(Ce, null, Ie(u.value, (C) => (y(), N(r(pa), {
|
|
9974
9974
|
key: C.path
|
|
9975
9975
|
}, {
|
|
9976
9976
|
default: f(() => [
|
|
@@ -10085,7 +10085,7 @@ const gc = { class: "flex-grow-1 flex-column" }, hc = { class: "icon-container"
|
|
|
10085
10085
|
}, {
|
|
10086
10086
|
default: f(() => [
|
|
10087
10087
|
A("div", hc, [
|
|
10088
|
-
(y(!0), D(
|
|
10088
|
+
(y(!0), D(Ce, null, Ie(c.value, (C) => (y(), N(r(q), {
|
|
10089
10089
|
quaternary: "",
|
|
10090
10090
|
class: "icon-button",
|
|
10091
10091
|
onClick: () => d(C)
|
|
@@ -10130,7 +10130,7 @@ const gc = { class: "flex-grow-1 flex-column" }, hc = { class: "icon-container"
|
|
|
10130
10130
|
})
|
|
10131
10131
|
]));
|
|
10132
10132
|
}
|
|
10133
|
-
}), mo = /* @__PURE__ */ Ae(yc, [["__scopeId", "data-v-
|
|
10133
|
+
}), mo = /* @__PURE__ */ Ae(yc, [["__scopeId", "data-v-ff87aac6"]]), wc = /* @__PURE__ */ P({
|
|
10134
10134
|
__name: "SelectObjectModal",
|
|
10135
10135
|
props: {
|
|
10136
10136
|
show: { type: Boolean },
|
|
@@ -10145,7 +10145,7 @@ const gc = { class: "flex-grow-1 flex-column" }, hc = { class: "icon-container"
|
|
|
10145
10145
|
},
|
|
10146
10146
|
emits: ["update:show", "valueSelected"],
|
|
10147
10147
|
setup(e, { emit: n }) {
|
|
10148
|
-
const t = e, l = n, { t: o } = ie(), a = Re(), u =
|
|
10148
|
+
const t = e, l = n, { t: o } = ie(), a = Re(), u = z(i(t.items)), c = z(!1), m = z(t.selectedValue);
|
|
10149
10149
|
function i(h) {
|
|
10150
10150
|
if (h) {
|
|
10151
10151
|
if (!h.length || typeof h[0] == "object") return h;
|
|
@@ -10192,7 +10192,7 @@ const gc = { class: "flex-grow-1 flex-column" }, hc = { class: "icon-container"
|
|
|
10192
10192
|
onClose: d[2] || (d[2] = () => h.$emit("update:show", !1))
|
|
10193
10193
|
}, {
|
|
10194
10194
|
default: f(() => [
|
|
10195
|
-
v(r(
|
|
10195
|
+
v(r(we), {
|
|
10196
10196
|
vertical: "",
|
|
10197
10197
|
align: "stretch"
|
|
10198
10198
|
}, {
|
|
@@ -10211,9 +10211,9 @@ const gc = { class: "flex-grow-1 flex-column" }, hc = { class: "icon-container"
|
|
|
10211
10211
|
style: { display: "block" }
|
|
10212
10212
|
}, {
|
|
10213
10213
|
default: f(() => [
|
|
10214
|
-
v(r(
|
|
10214
|
+
v(r(we), { vertical: "" }, {
|
|
10215
10215
|
default: f(() => [
|
|
10216
|
-
(y(!0), D(
|
|
10216
|
+
(y(!0), D(Ce, null, Ie(u.value, (w) => (y(), N(r(ha), {
|
|
10217
10217
|
key: w[h.keyName],
|
|
10218
10218
|
value: w[h.keyName]
|
|
10219
10219
|
}, {
|
|
@@ -10237,7 +10237,7 @@ const gc = { class: "flex-grow-1 flex-column" }, hc = { class: "icon-container"
|
|
|
10237
10237
|
_: 1
|
|
10238
10238
|
}),
|
|
10239
10239
|
de(h.$slots, "bottom"),
|
|
10240
|
-
v(r(
|
|
10240
|
+
v(r(we), { justify: "space-between" }, {
|
|
10241
10241
|
default: f(() => [
|
|
10242
10242
|
v(r(q), {
|
|
10243
10243
|
type: "primary",
|
|
@@ -10327,7 +10327,7 @@ const go = () => {
|
|
|
10327
10327
|
currentMenuId: {}
|
|
10328
10328
|
},
|
|
10329
10329
|
setup(e) {
|
|
10330
|
-
const { t: n } = ie(), t = ke("axios"), l = mt(), o = /^https?:\/\//i, a =
|
|
10330
|
+
const { t: n } = ie(), t = ke("axios"), l = mt(), o = /^https?:\/\//i, a = z([]), u = z(void 0), c = go(), m = ye(() => c.systemMenuToNaiveMenu(n, l.menus, void 0, u.value)), i = ye(() => l.isLoadingMenu);
|
|
10331
10331
|
function s(d) {
|
|
10332
10332
|
if (typeof d.href == "string" && d.href && !d.children) {
|
|
10333
10333
|
let w = d.href.startsWith("~") ? d.href.substring(1) : d.href;
|
|
@@ -10338,7 +10338,7 @@ const go = () => {
|
|
|
10338
10338
|
return typeof d.label == "string" ? d.label : "";
|
|
10339
10339
|
}
|
|
10340
10340
|
function g(d) {
|
|
10341
|
-
var w, _,
|
|
10341
|
+
var w, _, L;
|
|
10342
10342
|
if (d.key) {
|
|
10343
10343
|
const Y = (w = c.menuLooks[d.key]) == null ? void 0 : w.icon;
|
|
10344
10344
|
if (Y)
|
|
@@ -10347,7 +10347,7 @@ const go = () => {
|
|
|
10347
10347
|
class: "menu-icon"
|
|
10348
10348
|
});
|
|
10349
10349
|
if ((_ = d.children) != null && _.length) {
|
|
10350
|
-
const M = (
|
|
10350
|
+
const M = (L = d.key) == null ? void 0 : L.toString();
|
|
10351
10351
|
return M && a.value.includes(M) ? U(J, { class: "menu-icon" }, { default: () => U(ou) }) : U(J, { class: "menu-icon" }, { default: () => U(rl) });
|
|
10352
10352
|
} else
|
|
10353
10353
|
return U(J, { class: "menu-icon" }, { default: () => U(Wn) });
|
|
@@ -10367,7 +10367,7 @@ const go = () => {
|
|
|
10367
10367
|
() => l.sessionToken,
|
|
10368
10368
|
() => l.loadMenus()
|
|
10369
10369
|
), (d, w) => {
|
|
10370
|
-
const _ = re("n-scrollbar"),
|
|
10370
|
+
const _ = re("n-scrollbar"), L = re("n-input");
|
|
10371
10371
|
return y(), N(r(Ve), {
|
|
10372
10372
|
show: i.value,
|
|
10373
10373
|
class: "h-100 menu-spin",
|
|
@@ -10393,7 +10393,7 @@ const go = () => {
|
|
|
10393
10393
|
]),
|
|
10394
10394
|
_: 1
|
|
10395
10395
|
}),
|
|
10396
|
-
$e(v(
|
|
10396
|
+
$e(v(L, {
|
|
10397
10397
|
style: { width: "250px" },
|
|
10398
10398
|
placeholder: r(n)("Search Menu"),
|
|
10399
10399
|
clearable: "",
|
|
@@ -10427,7 +10427,7 @@ const go = () => {
|
|
|
10427
10427
|
},
|
|
10428
10428
|
emits: ["update:value"],
|
|
10429
10429
|
setup(e, { emit: n }) {
|
|
10430
|
-
const t = e, l = n, { t: o } = ie(), a =
|
|
10430
|
+
const t = e, l = n, { t: o } = ie(), a = z(!1), u = z(void 0);
|
|
10431
10431
|
function c() {
|
|
10432
10432
|
a.value = !a.value;
|
|
10433
10433
|
}
|
|
@@ -10532,7 +10532,7 @@ const Mc = /* @__PURE__ */ Ae(kc, [["render", Sc]]), Ac = P({
|
|
|
10532
10532
|
NSpin: Ve
|
|
10533
10533
|
},
|
|
10534
10534
|
setup() {
|
|
10535
|
-
const { t: e } = ie(), n = ke("axios"), t = mt(), l = /^https?:\/\//i, o = go(), a =
|
|
10535
|
+
const { t: e } = ie(), n = ke("axios"), t = mt(), l = /^https?:\/\//i, o = go(), a = ye(() => o.systemMenuToNaiveMenu(e, t.menus)), u = ye(() => t.isLoadingMenu);
|
|
10536
10536
|
function c(s) {
|
|
10537
10537
|
if (typeof s.href == "string" && s.href && !s.children) {
|
|
10538
10538
|
let g = s.href.startsWith("~") ? s.href.substr(1) : s.href;
|
|
@@ -10614,7 +10614,7 @@ const Lc = /* @__PURE__ */ Ae(Ac, [["render", _c]]), zc = P({
|
|
|
10614
10614
|
labelRender: Function
|
|
10615
10615
|
},
|
|
10616
10616
|
setup(e, n) {
|
|
10617
|
-
const t = Ye(), l = ke("axios"), { t: o } = ie(), a =
|
|
10617
|
+
const t = Ye(), l = ke("axios"), { t: o } = ie(), a = z(new Array()), u = z(new Array()), c = z(new Array());
|
|
10618
10618
|
function m($, K) {
|
|
10619
10619
|
for (const T of $) {
|
|
10620
10620
|
if (T.key == K)
|
|
@@ -10690,7 +10690,7 @@ const Lc = /* @__PURE__ */ Ae(Ac, [["render", _c]]), zc = P({
|
|
|
10690
10690
|
console.log(I), t.error((I == null ? void 0 : I.toString()) || o("Error"));
|
|
10691
10691
|
}
|
|
10692
10692
|
}
|
|
10693
|
-
async function
|
|
10693
|
+
async function L() {
|
|
10694
10694
|
a.value = [
|
|
10695
10695
|
{
|
|
10696
10696
|
key: e.rootId,
|
|
@@ -10822,11 +10822,11 @@ const Lc = /* @__PURE__ */ Ae(Ac, [["render", _c]]), zc = P({
|
|
|
10822
10822
|
}
|
|
10823
10823
|
}
|
|
10824
10824
|
return ge(() => {
|
|
10825
|
-
|
|
10825
|
+
L();
|
|
10826
10826
|
}), te(
|
|
10827
10827
|
() => e.childrenAction,
|
|
10828
10828
|
() => {
|
|
10829
|
-
|
|
10829
|
+
L();
|
|
10830
10830
|
}
|
|
10831
10831
|
), te(
|
|
10832
10832
|
() => e.path,
|
|
@@ -10869,7 +10869,7 @@ const $c = /* @__PURE__ */ Ae(zc, [["render", Tc]]), Bc = { style: { margin: "0
|
|
|
10869
10869
|
__name: "UserMenu",
|
|
10870
10870
|
setup(e) {
|
|
10871
10871
|
var d;
|
|
10872
|
-
const n = tt(), { t } = ie(), l = qt(), o = ft(), a = mt(), u = cn(), c =
|
|
10872
|
+
const n = tt(), { t } = ie(), l = qt(), o = ft(), a = mt(), u = cn(), c = ye(() => a.userInfo), m = z(!1), i = ye(() => {
|
|
10873
10873
|
var w, _;
|
|
10874
10874
|
return (w = a.userInfo) != null && w.avatar ? `/api/core/avatar?id=${(_ = a.userInfo) == null ? void 0 : _.avatar}` : en;
|
|
10875
10875
|
});
|
|
@@ -10949,7 +10949,7 @@ const $c = /* @__PURE__ */ Ae(zc, [["render", Tc]]), Bc = { style: { margin: "0
|
|
|
10949
10949
|
}
|
|
10950
10950
|
];
|
|
10951
10951
|
return (w, _) => {
|
|
10952
|
-
const
|
|
10952
|
+
const L = re("n-avatar"), Y = re("n-dropdown"), M = re("n-space");
|
|
10953
10953
|
return y(), N(M, { style: { "align-items": "center" } }, {
|
|
10954
10954
|
default: f(() => [
|
|
10955
10955
|
v(Y, {
|
|
@@ -10963,7 +10963,7 @@ const $c = /* @__PURE__ */ Ae(zc, [["render", Tc]]), Bc = { style: { margin: "0
|
|
|
10963
10963
|
var b, C;
|
|
10964
10964
|
return [
|
|
10965
10965
|
A("div", Bc, [
|
|
10966
|
-
v(
|
|
10966
|
+
v(L, {
|
|
10967
10967
|
round: "",
|
|
10968
10968
|
size: "medium",
|
|
10969
10969
|
title: (b = c.value) == null ? void 0 : b.userName,
|
|
@@ -10989,13 +10989,13 @@ const $c = /* @__PURE__ */ Ae(zc, [["render", Tc]]), Bc = { style: { margin: "0
|
|
|
10989
10989
|
});
|
|
10990
10990
|
};
|
|
10991
10991
|
}
|
|
10992
|
-
}), jc = /* @__PURE__ */ Ae(Oc, [["__scopeId", "data-v-
|
|
10992
|
+
}), jc = /* @__PURE__ */ Ae(Oc, [["__scopeId", "data-v-d85ebb4a"]]), Ec = { class: "flex-row" }, Uc = { class: "app-tab-label" }, Dc = { style: { "margin-left": "4px" } }, Pc = /* @__PURE__ */ P({
|
|
10993
10993
|
__name: "TabMenu",
|
|
10994
10994
|
props: {
|
|
10995
10995
|
type: { default: "card" }
|
|
10996
10996
|
},
|
|
10997
10997
|
setup(e) {
|
|
10998
|
-
const n = tt(), t = mt(), l =
|
|
10998
|
+
const n = tt(), t = mt(), l = ye(() => t.menus), o = z(void 0);
|
|
10999
10999
|
n.afterEach((c) => {
|
|
11000
11000
|
!c.path || c.path == "/" || c.name == "blank" || (o.value = a(c.path));
|
|
11001
11001
|
});
|
|
@@ -11031,7 +11031,7 @@ const $c = /* @__PURE__ */ Ae(zc, [["render", Tc]]), Bc = { style: { margin: "0
|
|
|
11031
11031
|
"onUpdate:value": u
|
|
11032
11032
|
}, {
|
|
11033
11033
|
default: f(() => [
|
|
11034
|
-
(y(!0), D(
|
|
11034
|
+
(y(!0), D(Ce, null, Ie(l.value, (i) => (y(), N(r(ln), {
|
|
11035
11035
|
key: i.guid,
|
|
11036
11036
|
name: i.guid
|
|
11037
11037
|
}, {
|
|
@@ -11067,7 +11067,7 @@ const $c = /* @__PURE__ */ Ae(zc, [["render", Tc]]), Bc = { style: { margin: "0
|
|
|
11067
11067
|
},
|
|
11068
11068
|
emits: ["search", "update:search-words"],
|
|
11069
11069
|
setup(e, { emit: n }) {
|
|
11070
|
-
const t = e, l = n, { t: o } = ie(), a =
|
|
11070
|
+
const t = e, l = n, { t: o } = ie(), a = z(t.searchWords || ""), u = () => {
|
|
11071
11071
|
l("update:search-words", a.value), l("search", a.value);
|
|
11072
11072
|
};
|
|
11073
11073
|
return te(
|
|
@@ -11136,7 +11136,7 @@ const kf = ct("fontSize", () => {
|
|
|
11136
11136
|
small: "14px",
|
|
11137
11137
|
medium: "16px",
|
|
11138
11138
|
large: "20px"
|
|
11139
|
-
}, n = "medium", l =
|
|
11139
|
+
}, n = "medium", l = z((() => {
|
|
11140
11140
|
var u;
|
|
11141
11141
|
const a = (u = localStorage.getItem("fontSizeMode")) == null ? void 0 : u.toString();
|
|
11142
11142
|
return a && e[a] ? a : n;
|
|
@@ -11150,7 +11150,7 @@ const kf = ct("fontSize", () => {
|
|
|
11150
11150
|
getFontSize: () => e[l.value ?? n]
|
|
11151
11151
|
};
|
|
11152
11152
|
}), Sf = ct("userConfig", () => {
|
|
11153
|
-
const e = _t({}), n =
|
|
11153
|
+
const e = _t({}), n = ye(() => (s) => e[s]), t = ye(() => ({ ...e }));
|
|
11154
11154
|
function l(s, g) {
|
|
11155
11155
|
e[s] = g, m();
|
|
11156
11156
|
}
|
|
@@ -11327,7 +11327,7 @@ export {
|
|
|
11327
11327
|
Lf as axios,
|
|
11328
11328
|
Si as buildBarcodeUrl,
|
|
11329
11329
|
Eu as buildSearchItems,
|
|
11330
|
-
|
|
11330
|
+
be as camelToWords,
|
|
11331
11331
|
hf as clearObject,
|
|
11332
11332
|
ju as convertItems,
|
|
11333
11333
|
Is as convertPercentValue,
|