yc-vep-ui 0.6.2 → 0.6.4
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.
|
@@ -303,7 +303,7 @@ function De(e) {
|
|
|
303
303
|
}
|
|
304
304
|
function Oe(e) {
|
|
305
305
|
let t = W();
|
|
306
|
-
return t ? t(
|
|
306
|
+
return t ? t(Ur || Hr, {
|
|
307
307
|
placeholder: "请选择",
|
|
308
308
|
...e,
|
|
309
309
|
searchable: !0
|
|
@@ -311,7 +311,7 @@ function Oe(e) {
|
|
|
311
311
|
}
|
|
312
312
|
function ke(e) {
|
|
313
313
|
let t = W();
|
|
314
|
-
return t ? t(
|
|
314
|
+
return t ? t(pi || fi, e) : null;
|
|
315
315
|
}
|
|
316
316
|
var Ae = {
|
|
317
317
|
button: me,
|
|
@@ -1743,57 +1743,69 @@ function $n() {
|
|
|
1743
1743
|
token: localStorage.getItem("TOKEN") || ""
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
|
-
|
|
1747
|
-
|
|
1746
|
+
function er(e) {
|
|
1747
|
+
if (e.code !== "ok" && e.message === "无效的token") {
|
|
1748
|
+
console.log("=========== 来到 无效的token 拦截器 ==========="), localStorage.setItem("referrer", window.location.href);
|
|
1749
|
+
let e = localStorage.getItem("authUrl") || "";
|
|
1750
|
+
if (!e) return;
|
|
1751
|
+
window.location.href = `http://mpaas-test.app.yuchai.com/oauth2/oauth/authorize?response_type=code&client_id=cict&scope=all&redirect_uri=${e}`;
|
|
1752
|
+
} else localStorage.getItem("referrer") && localStorage.removeItem("referrer");
|
|
1753
|
+
}
|
|
1754
|
+
async function tr(e, t) {
|
|
1755
|
+
let n = `${ir}${e}`;
|
|
1748
1756
|
if (t) {
|
|
1749
1757
|
let e = new URLSearchParams(t).toString();
|
|
1750
1758
|
e && (n = `${n}?${e}`);
|
|
1751
1759
|
}
|
|
1752
|
-
|
|
1760
|
+
let r = await (await fetch(n, {
|
|
1753
1761
|
headers: $n(),
|
|
1754
1762
|
method: "GET"
|
|
1755
1763
|
})).json();
|
|
1764
|
+
return er(r), r;
|
|
1756
1765
|
}
|
|
1757
|
-
async function
|
|
1758
|
-
|
|
1766
|
+
async function nr(e, t, n = {}) {
|
|
1767
|
+
let r = await (await fetch(`${ir}${e}`, {
|
|
1759
1768
|
headers: $n(),
|
|
1760
1769
|
method: "POST",
|
|
1761
|
-
body: JSON.stringify(t)
|
|
1770
|
+
body: JSON.stringify(t),
|
|
1771
|
+
...n
|
|
1762
1772
|
})).json();
|
|
1773
|
+
return er(r), r;
|
|
1763
1774
|
}
|
|
1764
|
-
async function
|
|
1765
|
-
return (await fetch(`${
|
|
1775
|
+
async function rr(e, t, n = {}) {
|
|
1776
|
+
return (await fetch(`${ir}${e}`, {
|
|
1766
1777
|
headers: $n(),
|
|
1767
1778
|
method: "POST",
|
|
1768
|
-
body: JSON.stringify(t)
|
|
1779
|
+
body: JSON.stringify(t),
|
|
1780
|
+
...n
|
|
1769
1781
|
})).blob();
|
|
1770
1782
|
}
|
|
1771
1783
|
var q = {
|
|
1772
|
-
get:
|
|
1773
|
-
post:
|
|
1774
|
-
blob:
|
|
1775
|
-
},
|
|
1776
|
-
function
|
|
1784
|
+
get: tr,
|
|
1785
|
+
post: nr,
|
|
1786
|
+
blob: rr
|
|
1787
|
+
}, ir = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
|
|
1788
|
+
function ar(e) {
|
|
1777
1789
|
return Array.from(new Set(e));
|
|
1778
1790
|
}
|
|
1779
|
-
function
|
|
1791
|
+
function or(e, t) {
|
|
1780
1792
|
let n = /* @__PURE__ */ new Set();
|
|
1781
1793
|
return e.filter((e) => {
|
|
1782
1794
|
let r = typeof t == "function" ? t(e) : e[t];
|
|
1783
1795
|
return n.has(r) ? !1 : (n.add(r), !0);
|
|
1784
1796
|
});
|
|
1785
1797
|
}
|
|
1786
|
-
function
|
|
1798
|
+
function sr(e = {}, t) {
|
|
1787
1799
|
let n = { ...e };
|
|
1788
1800
|
return t.forEach((e) => delete n[e]), n;
|
|
1789
1801
|
}
|
|
1790
|
-
function
|
|
1802
|
+
function cr(e = /* @__PURE__ */ new Date()) {
|
|
1791
1803
|
let t = (e) => e.toString().padStart(2, "0");
|
|
1792
1804
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`;
|
|
1793
1805
|
}
|
|
1794
1806
|
//#endregion
|
|
1795
1807
|
//#region src/components/StaffSelect/default.vue
|
|
1796
|
-
var
|
|
1808
|
+
var lr = /* @__PURE__ */ u({
|
|
1797
1809
|
__name: "default",
|
|
1798
1810
|
props: {
|
|
1799
1811
|
multiple: { type: Boolean },
|
|
@@ -1850,43 +1862,43 @@ var cr = /* @__PURE__ */ u({
|
|
|
1850
1862
|
}, 16, ["modelValue"]);
|
|
1851
1863
|
};
|
|
1852
1864
|
}
|
|
1853
|
-
}),
|
|
1854
|
-
success:
|
|
1855
|
-
warning:
|
|
1856
|
-
error:
|
|
1857
|
-
info:
|
|
1858
|
-
},
|
|
1859
|
-
addInstance: () =>
|
|
1860
|
-
baseStyles: () =>
|
|
1861
|
-
closeIcon: () =>
|
|
1862
|
-
closeInstance: () =>
|
|
1863
|
-
createWcElement: () =>
|
|
1864
|
-
getInstances: () =>
|
|
1865
|
-
getNextId: () =>
|
|
1866
|
-
icons: () =>
|
|
1867
|
-
initStyles: () =>
|
|
1868
|
-
wcDefaultOptions: () =>
|
|
1869
|
-
}),
|
|
1865
|
+
}), ur = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M512 0C228.4 0 0 228.4 0 512s228.4 512 512 512 512-228.4 512-512S795.6 0 512 0zm263.5 371.2l-317.1 317.1c-12.5 12.5-32.8 12.5-45.3 0L187.9 452.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l194.2 194.2 292.9-292.9c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-338.1 338.2z\" fill=\"currentColor\"/></svg>", dr = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" fill=\"currentColor\"/><path d=\"M512 688c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-32-352h64v224h-64V336z\" fill=\"currentColor\"/></svg>", fr = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M512 89.6c-235.2 0-425.6 190.4-425.6 425.6S276.8 940.8 512 940.8 937.6 750.4 937.6 515.2 747.2 89.6 512 89.6zm217.6 585.6c18.8 18.8 18.8 49.6 0 68.8-18.8 18.8-49.6 18.8-68.8 0L512 594.8 363.2 744c-18.8 18.8-49.6 18.8-68.8 0-18.8-18.8-18.8-49.6 0-68.8l148.8-148.8L294.4 377.6c-18.8-18.8-18.8-49.6 0-68.8 18.8-18.8 49.6-18.8 68.8 0l148.8 148.8L660.8 308.8c18.8-18.8 49.6-18.8 68.8 0 18.8 18.8 18.8 49.6 0 68.8L580.8 526.4l148.8 148.8z\" fill=\"currentColor\"/></svg>", pr = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0zm56 768H456V456h112v312zm0-400H456V264h112v104z\" fill=\"currentColor\"/></svg>", mr = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M557.8 512l248.3-248.3c18.8-18.8 18.8-49.6 0-68.8-18.8-18.8-49.6-18.8-68.8 0L512 443.2 263.7 194.9c-18.8-18.8-49.6-18.8-68.8 0-18.8 18.8-18.8 49.6 0 68.8L443.2 512 194.9 760.3c-18.8 18.8-18.8 49.6 0 68.8 18.8 18.8 49.6 18.8 68.8 0L512 580.8l248.3 248.3c18.8 18.8 49.6 18.8 68.8 0 18.8-18.8 18.8-49.6 0-68.8L557.8 512z\" fill=\"currentColor\"/></svg>", hr = {
|
|
1866
|
+
success: ur,
|
|
1867
|
+
warning: dr,
|
|
1868
|
+
error: fr,
|
|
1869
|
+
info: pr
|
|
1870
|
+
}, gr = /* @__PURE__ */ V({
|
|
1871
|
+
addInstance: () => Cr,
|
|
1872
|
+
baseStyles: () => _r,
|
|
1873
|
+
closeIcon: () => Dr,
|
|
1874
|
+
closeInstance: () => wr,
|
|
1875
|
+
createWcElement: () => Tr,
|
|
1876
|
+
getInstances: () => Sr,
|
|
1877
|
+
getNextId: () => xr,
|
|
1878
|
+
icons: () => Er,
|
|
1879
|
+
initStyles: () => br,
|
|
1880
|
+
wcDefaultOptions: () => vr
|
|
1881
|
+
}), _r = "\n .vep-wc-container {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 99999;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n pointer-events: none;\n }\n .vep-wc-item {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 11px 15px;\n border-radius: 4px;\n border: 1px solid #ebeef5;\n background-color: #fff;\n box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);\n font-size: 14px;\n color: #606266;\n pointer-events: auto;\n animation: vep-wc-fade-in 0.3s ease-out;\n max-width: 400px;\n min-width: 200px;\n }\n .vep-wc-item.vep-wc-hide { animation: vep-wc-fade-out 0.3s ease-in forwards; }\n .vep-wc-icon { width: 18px; height: 18px; flex-shrink: 0; }\n .vep-wc-content { flex: 1; word-break: break-word; }\n .vep-wc-close { width: 16px; height: 16px; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; flex-shrink: 0; }\n .vep-wc-close:hover { opacity: 1; }\n .vep-wc--success { background-color: #f0f9eb; border-color: #e1f3d8; }\n .vep-wc--success .vep-wc-icon { color: #67c23a; }\n .vep-wc--warning { background-color: #fdf6ec; border-color: #faecd8; }\n .vep-wc--warning .vep-wc-icon { color: #e6a23c; }\n .vep-wc--error { background-color: #fef0f0; border-color: #fde2e2; }\n .vep-wc--error .vep-wc-icon { color: #f56c6c; }\n .vep-wc--info { background-color: #f4f4f5; border-color: #e9e9eb; }\n .vep-wc--info .vep-wc-icon { color: #909399; }\n @keyframes vep-wc-fade-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }\n @keyframes vep-wc-fade-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }\n", vr = {
|
|
1870
1882
|
type: "info",
|
|
1871
1883
|
duration: 3e3,
|
|
1872
1884
|
showClose: !1
|
|
1873
|
-
}, J = [],
|
|
1874
|
-
function
|
|
1885
|
+
}, J = [], yr = 0;
|
|
1886
|
+
function br(e, t) {
|
|
1875
1887
|
if (!document.getElementById(e)) {
|
|
1876
1888
|
let n = document.createElement("style");
|
|
1877
1889
|
n.id = e, n.textContent = t, document.head.appendChild(n);
|
|
1878
1890
|
}
|
|
1879
1891
|
}
|
|
1880
|
-
function br() {
|
|
1881
|
-
return ++vr;
|
|
1882
|
-
}
|
|
1883
1892
|
function xr() {
|
|
1893
|
+
return ++yr;
|
|
1894
|
+
}
|
|
1895
|
+
function Sr() {
|
|
1884
1896
|
return J;
|
|
1885
1897
|
}
|
|
1886
|
-
function
|
|
1898
|
+
function Cr(e) {
|
|
1887
1899
|
J.push(e);
|
|
1888
1900
|
}
|
|
1889
|
-
function
|
|
1901
|
+
function wr(e) {
|
|
1890
1902
|
return new Promise((t) => {
|
|
1891
1903
|
let n = J.findIndex((t) => t.id === e);
|
|
1892
1904
|
if (n === -1 || J[n].isClosing) {
|
|
@@ -1899,12 +1911,12 @@ function Cr(e) {
|
|
|
1899
1911
|
}, 300);
|
|
1900
1912
|
});
|
|
1901
1913
|
}
|
|
1902
|
-
function
|
|
1914
|
+
function Tr(e, t) {
|
|
1903
1915
|
class n extends HTMLElement {
|
|
1904
1916
|
shadow = this.attachShadow({ mode: "open" });
|
|
1905
1917
|
connectedCallback() {
|
|
1906
1918
|
let e = document.createElement("style");
|
|
1907
|
-
e.textContent = `:host { all: initial; display: block; }\n${
|
|
1919
|
+
e.textContent = `:host { all: initial; display: block; }\n${_r}`, this.shadow.appendChild(e);
|
|
1908
1920
|
let n = document.createElement("div");
|
|
1909
1921
|
n.className = "vep-wc-container", this.shadow.appendChild(n);
|
|
1910
1922
|
let r = this.getAttribute("message");
|
|
@@ -1913,70 +1925,70 @@ function wr(e, t) {
|
|
|
1913
1925
|
type: this.getAttribute("type") || "info",
|
|
1914
1926
|
duration: Number(this.getAttribute("duration")) || 3e3,
|
|
1915
1927
|
showClose: this.hasAttribute("show-close")
|
|
1916
|
-
}, n,
|
|
1928
|
+
}, n, yr);
|
|
1917
1929
|
}
|
|
1918
1930
|
show(e) {
|
|
1919
1931
|
let n = this.shadow.querySelector(".vep-wc-container");
|
|
1920
|
-
n && t(e, n,
|
|
1932
|
+
n && t(e, n, yr);
|
|
1921
1933
|
}
|
|
1922
1934
|
}
|
|
1923
1935
|
return customElements.get(e) || customElements.define(e, n), n;
|
|
1924
1936
|
}
|
|
1925
|
-
var
|
|
1937
|
+
var Er = hr, Dr = mr, Or = /* @__PURE__ */ V({
|
|
1926
1938
|
VepMessage: () => X,
|
|
1927
1939
|
default: () => X
|
|
1928
1940
|
}), Y = null;
|
|
1929
|
-
function
|
|
1941
|
+
function kr(e, t) {
|
|
1930
1942
|
let n = document.createElement("div");
|
|
1931
1943
|
return n.className = `vep-wc-item vep-wc--${e.type}`, n.innerHTML = `
|
|
1932
|
-
<span class="vep-wc-icon">${
|
|
1944
|
+
<span class="vep-wc-icon">${Er[e.type || "info"]}</span>
|
|
1933
1945
|
<span class="vep-wc-content">${e.message}</span>
|
|
1934
|
-
${e.showClose ? `<span class="vep-wc-close">${
|
|
1946
|
+
${e.showClose ? `<span class="vep-wc-close">${Dr}</span>` : ""}
|
|
1935
1947
|
`, n.querySelector(".vep-wc-close")?.addEventListener("click", t), n;
|
|
1936
1948
|
}
|
|
1937
|
-
function
|
|
1938
|
-
|
|
1939
|
-
let t =
|
|
1940
|
-
...
|
|
1949
|
+
function Ar(e) {
|
|
1950
|
+
br("vep-ui-message-styles", _r), Y || (Y = document.createElement("div"), Y.className = "vep-wc-container", document.body.appendChild(Y));
|
|
1951
|
+
let t = xr(), n = {
|
|
1952
|
+
...vr,
|
|
1941
1953
|
...e
|
|
1942
|
-
}, r = () =>
|
|
1943
|
-
return Y.appendChild(i), n.duration && n.duration > 0 && setTimeout(r, n.duration),
|
|
1954
|
+
}, r = () => jr(t), i = kr(n, r);
|
|
1955
|
+
return Y.appendChild(i), n.duration && n.duration > 0 && setTimeout(r, n.duration), Cr({
|
|
1944
1956
|
id: t,
|
|
1945
1957
|
element: i,
|
|
1946
1958
|
options: n,
|
|
1947
1959
|
isClosing: !1
|
|
1948
1960
|
}), r;
|
|
1949
1961
|
}
|
|
1950
|
-
function
|
|
1951
|
-
return
|
|
1952
|
-
|
|
1962
|
+
function jr(e) {
|
|
1963
|
+
return wr(e).then(() => {
|
|
1964
|
+
Sr().length === 0 && Y && (Y.remove(), Y = null);
|
|
1953
1965
|
});
|
|
1954
1966
|
}
|
|
1955
|
-
var X = ((e) => ({ close:
|
|
1956
|
-
X.success = (e, t) => ({ close:
|
|
1967
|
+
var X = ((e) => ({ close: Ar(typeof e == "string" ? { message: e } : e) }));
|
|
1968
|
+
X.success = (e, t) => ({ close: Ar({
|
|
1957
1969
|
message: e,
|
|
1958
1970
|
type: "success",
|
|
1959
1971
|
...t
|
|
1960
|
-
}) }), X.warning = (e, t) => ({ close:
|
|
1972
|
+
}) }), X.warning = (e, t) => ({ close: Ar({
|
|
1961
1973
|
message: e,
|
|
1962
1974
|
type: "warning",
|
|
1963
1975
|
...t
|
|
1964
|
-
}) }), X.error = (e, t) => ({ close:
|
|
1976
|
+
}) }), X.error = (e, t) => ({ close: Ar({
|
|
1965
1977
|
message: e,
|
|
1966
1978
|
type: "error",
|
|
1967
1979
|
...t
|
|
1968
|
-
}) }), X.info = (e, t) => ({ close:
|
|
1980
|
+
}) }), X.info = (e, t) => ({ close: Ar({
|
|
1969
1981
|
message: e,
|
|
1970
1982
|
type: "info",
|
|
1971
1983
|
...t
|
|
1972
1984
|
}) }), X.closeAll = async () => {
|
|
1973
|
-
await Promise.all(
|
|
1985
|
+
await Promise.all(Sr().map((e) => jr(e.id)));
|
|
1974
1986
|
};
|
|
1975
|
-
var
|
|
1987
|
+
var Mr = class extends HTMLElement {
|
|
1976
1988
|
shadow = this.attachShadow({ mode: "open" });
|
|
1977
1989
|
connectedCallback() {
|
|
1978
1990
|
let e = document.createElement("style");
|
|
1979
|
-
e.textContent = `:host { all: initial; display: block; }\n${
|
|
1991
|
+
e.textContent = `:host { all: initial; display: block; }\n${_r}`, this.shadow.appendChild(e);
|
|
1980
1992
|
let t = document.createElement("div");
|
|
1981
1993
|
t.className = "vep-wc-container", this.shadow.appendChild(t);
|
|
1982
1994
|
let n = this.getAttribute("message");
|
|
@@ -1995,11 +2007,11 @@ var jr = class extends HTMLElement {
|
|
|
1995
2007
|
t && this.addMessage(e, t);
|
|
1996
2008
|
}
|
|
1997
2009
|
addMessage(e, t) {
|
|
1998
|
-
let n =
|
|
1999
|
-
...
|
|
2010
|
+
let n = xr(), r = {
|
|
2011
|
+
...vr,
|
|
2000
2012
|
...e
|
|
2001
|
-
}, i = () => this.doClose(n, t), a =
|
|
2002
|
-
t.appendChild(a), r.duration && r.duration > 0 && setTimeout(i, r.duration),
|
|
2013
|
+
}, i = () => this.doClose(n, t), a = kr(r, i);
|
|
2014
|
+
t.appendChild(a), r.duration && r.duration > 0 && setTimeout(i, r.duration), Cr({
|
|
2003
2015
|
id: n,
|
|
2004
2016
|
element: a,
|
|
2005
2017
|
options: r,
|
|
@@ -2007,34 +2019,34 @@ var jr = class extends HTMLElement {
|
|
|
2007
2019
|
});
|
|
2008
2020
|
}
|
|
2009
2021
|
doClose(e, t) {
|
|
2010
|
-
return
|
|
2011
|
-
|
|
2022
|
+
return wr(e).then(() => {
|
|
2023
|
+
Sr().length === 0 && t.remove();
|
|
2012
2024
|
});
|
|
2013
2025
|
}
|
|
2014
2026
|
};
|
|
2015
|
-
customElements.get("vep-message") || customElements.define("vep-message",
|
|
2027
|
+
customElements.get("vep-message") || customElements.define("vep-message", Mr);
|
|
2016
2028
|
//#endregion
|
|
2017
2029
|
//#region src/components/StaffSelect/dialog.vue?vue&type=script&setup=true&lang.ts
|
|
2018
|
-
var
|
|
2030
|
+
var Nr = { style: {
|
|
2019
2031
|
display: "flex",
|
|
2020
2032
|
"max-width": "100%",
|
|
2021
2033
|
gap: "20px",
|
|
2022
2034
|
"overflow-y": "scroll",
|
|
2023
2035
|
height: "400px"
|
|
2024
|
-
} },
|
|
2036
|
+
} }, Pr = { style: { flex: "1" } }, Fr = { style: { width: "320px" } }, Ir = { style: {
|
|
2025
2037
|
display: "flex",
|
|
2026
2038
|
"justify-content": "space-between",
|
|
2027
2039
|
"align-items": "center",
|
|
2028
2040
|
"margin-bottom": "8px",
|
|
2029
2041
|
height: "30px"
|
|
2030
|
-
} },
|
|
2042
|
+
} }, Lr = { key: 0 }, Rr = { style: {
|
|
2031
2043
|
"overflow-y": "auto",
|
|
2032
2044
|
height: "90%"
|
|
2033
|
-
} },
|
|
2045
|
+
} }, zr = { style: {
|
|
2034
2046
|
display: "flex",
|
|
2035
2047
|
"justify-content": "end",
|
|
2036
2048
|
"align-items": "center"
|
|
2037
|
-
} },
|
|
2049
|
+
} }, Br = /* @__PURE__ */ H(/* @__PURE__ */ u({
|
|
2038
2050
|
__name: "dialog",
|
|
2039
2051
|
props: {
|
|
2040
2052
|
modelValue: {},
|
|
@@ -2056,7 +2068,7 @@ var Mr = { style: {
|
|
|
2056
2068
|
requiredVisible: !1
|
|
2057
2069
|
}), y = C([]), b = C([]), T = t(() => v.searchData?.length ? v.searchData : v.staffData), D = t(() => f.required ?? d?.required ?? !1);
|
|
2058
2070
|
L(() => {
|
|
2059
|
-
b.value =
|
|
2071
|
+
b.value = ar(f.modelValue || []);
|
|
2060
2072
|
}), L(() => {
|
|
2061
2073
|
_.value && O();
|
|
2062
2074
|
});
|
|
@@ -2079,7 +2091,7 @@ var Mr = { style: {
|
|
|
2079
2091
|
...e,
|
|
2080
2092
|
code: e.account
|
|
2081
2093
|
}));
|
|
2082
|
-
n ? e.data.children =
|
|
2094
|
+
n ? e.data.children = or([...r, ...e.data.children || []], "code") : e.children = or([...r, ...e.children || []], "code"), v.loading = !1;
|
|
2083
2095
|
}), t?.(e?.children || []));
|
|
2084
2096
|
}
|
|
2085
2097
|
function M(e, { data: t }) {
|
|
@@ -2115,7 +2127,7 @@ var Mr = { style: {
|
|
|
2115
2127
|
}
|
|
2116
2128
|
function I(e, t) {
|
|
2117
2129
|
let n = t?.checkedNodes?.map((e) => `${e.name}(${e.account ?? e.code})`);
|
|
2118
|
-
b.value =
|
|
2130
|
+
b.value = ar([...b.value, ...n]);
|
|
2119
2131
|
}
|
|
2120
2132
|
function z() {
|
|
2121
2133
|
let e = p === "all" ? b.value : b.value?.map((e) => {
|
|
@@ -2171,7 +2183,7 @@ var Mr = { style: {
|
|
|
2171
2183
|
"close-on-click-modal": !1,
|
|
2172
2184
|
"destroy-on-close": ""
|
|
2173
2185
|
}, {
|
|
2174
|
-
default: R(() => [a("div",
|
|
2186
|
+
default: R(() => [a("div", Nr, [a("div", Pr, [l(s, {
|
|
2175
2187
|
placeholder: "请输入",
|
|
2176
2188
|
modelValue: v.filterText,
|
|
2177
2189
|
"onUpdate:modelValue": n[2] ||= (e) => v.filterText = e,
|
|
@@ -2193,7 +2205,7 @@ var Mr = { style: {
|
|
|
2193
2205
|
ref_key: "staffDialogRef",
|
|
2194
2206
|
ref: m,
|
|
2195
2207
|
"node-key": "code"
|
|
2196
|
-
}, null, 8, ["loading", "data"])]), a("div",
|
|
2208
|
+
}, null, 8, ["loading", "data"])]), a("div", Fr, [a("div", Ir, [n[4] ||= a("h3", null, "已选择", -1), b.value.length ? (x(), i("span", Lr, "已选择" + j(b.value.length) + "个用户", 1)) : r("", !0)]), a("div", Rr, [(x(!0), i(e, null, w(b.value, (e) => (x(), i("li", {
|
|
2197
2209
|
key: e,
|
|
2198
2210
|
class: "staff-item"
|
|
2199
2211
|
}, [a("span", null, j(e), 1), l(d, {
|
|
@@ -2202,7 +2214,7 @@ var Mr = { style: {
|
|
|
2202
2214
|
}, {
|
|
2203
2215
|
default: R(() => [l(P(Be))]),
|
|
2204
2216
|
_: 1
|
|
2205
|
-
}, 8, ["onClick"])]))), 128))])])]), a("div",
|
|
2217
|
+
}, 8, ["onClick"])]))), 128))])])]), a("div", zr, [l(p, { onClick: re }, {
|
|
2206
2218
|
default: R(() => [...n[5] ||= [c("取消", -1)]]),
|
|
2207
2219
|
_: 1
|
|
2208
2220
|
}), l(p, {
|
|
@@ -2216,7 +2228,7 @@ var Mr = { style: {
|
|
|
2216
2228
|
}, 8, ["modelValue"])], 64);
|
|
2217
2229
|
};
|
|
2218
2230
|
}
|
|
2219
|
-
}), [["__scopeId", "data-v-f1cfc05c"]]),
|
|
2231
|
+
}), [["__scopeId", "data-v-f1cfc05c"]]), Vr = /* @__PURE__ */ u({
|
|
2220
2232
|
__name: "index",
|
|
2221
2233
|
props: {
|
|
2222
2234
|
multiple: { type: Boolean },
|
|
@@ -2227,7 +2239,7 @@ var Mr = { style: {
|
|
|
2227
2239
|
},
|
|
2228
2240
|
setup(e, { expose: t }) {
|
|
2229
2241
|
let r = e, i = C();
|
|
2230
|
-
return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ?
|
|
2242
|
+
return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ? Br : lr), h({
|
|
2231
2243
|
ref_key: "staffSelectRef",
|
|
2232
2244
|
ref: i
|
|
2233
2245
|
}, {
|
|
@@ -2235,10 +2247,10 @@ var Mr = { style: {
|
|
|
2235
2247
|
...r
|
|
2236
2248
|
}), null, 16));
|
|
2237
2249
|
}
|
|
2238
|
-
}),
|
|
2250
|
+
}), Hr = /* @__PURE__ */ V({ default: () => Ur }), Ur = Vr, Wr = { class: "file-left" }, Gr = { class: "file-name" }, Kr = {
|
|
2239
2251
|
key: 0,
|
|
2240
2252
|
class: "file-size"
|
|
2241
|
-
},
|
|
2253
|
+
}, qr = ["onClick"], Jr = ["onClick"], Yr = ["onClick"], Xr = { class: "file-actions" }, Zr = /* @__PURE__ */ H(/* @__PURE__ */ u({
|
|
2242
2254
|
__name: "file",
|
|
2243
2255
|
props: {
|
|
2244
2256
|
icon: {},
|
|
@@ -2295,7 +2307,7 @@ var Mr = { style: {
|
|
|
2295
2307
|
"hide-upload-text": w.value
|
|
2296
2308
|
}
|
|
2297
2309
|
}), s({
|
|
2298
|
-
file: R(({ file: e }) => [a("div", { class: _(["upload-file-item", { "is-success": e.status === "success" }]) }, [a("div",
|
|
2310
|
+
file: R(({ file: e }) => [a("div", { class: _(["upload-file-item", { "is-success": e.status === "success" }]) }, [a("div", Wr, [
|
|
2299
2311
|
l(v, {
|
|
2300
2312
|
class: "file-icon",
|
|
2301
2313
|
size: 14
|
|
@@ -2303,24 +2315,24 @@ var Mr = { style: {
|
|
|
2303
2315
|
default: R(() => [l(P(Qt))]),
|
|
2304
2316
|
_: 1
|
|
2305
2317
|
}),
|
|
2306
|
-
a("span",
|
|
2307
|
-
e.size ? (x(), i("span",
|
|
2318
|
+
a("span", Gr, j(e.name), 1),
|
|
2319
|
+
e.size ? (x(), i("span", Kr, "(" + j(k(e.size)) + ")", 1)) : r("", !0),
|
|
2308
2320
|
e.downloadUrl ? (x(), i("span", {
|
|
2309
2321
|
key: 1,
|
|
2310
2322
|
class: "download-btn",
|
|
2311
2323
|
onClick: B((t) => M(e), ["stop"])
|
|
2312
|
-
}, "下载", 8,
|
|
2324
|
+
}, "下载", 8, qr)) : r("", !0),
|
|
2313
2325
|
e.downloadUrl ? (x(), i("span", {
|
|
2314
2326
|
key: 2,
|
|
2315
2327
|
class: "copy-btn",
|
|
2316
2328
|
onClick: B((t) => N(e), ["stop"])
|
|
2317
|
-
}, "复制", 8,
|
|
2329
|
+
}, "复制", 8, Jr)) : r("", !0),
|
|
2318
2330
|
P(g) ? r("", !0) : (x(), i("span", {
|
|
2319
2331
|
key: 3,
|
|
2320
2332
|
class: "remove-btn",
|
|
2321
2333
|
onClick: B((t) => A(e), ["stop"])
|
|
2322
|
-
}, "删除", 8,
|
|
2323
|
-
]), a("div",
|
|
2334
|
+
}, "删除", 8, Yr))
|
|
2335
|
+
]), a("div", Xr, [e.status === "uploading" ? (x(), n(v, {
|
|
2324
2336
|
key: 0,
|
|
2325
2337
|
class: "loading-icon",
|
|
2326
2338
|
size: 16
|
|
@@ -2366,7 +2378,7 @@ var Mr = { style: {
|
|
|
2366
2378
|
]);
|
|
2367
2379
|
};
|
|
2368
2380
|
}
|
|
2369
|
-
}), [["__scopeId", "data-v-5540b7b8"]]),
|
|
2381
|
+
}), [["__scopeId", "data-v-5540b7b8"]]), Qr = ["src"], $r = /* @__PURE__ */ H(/* @__PURE__ */ u({
|
|
2370
2382
|
__name: "image",
|
|
2371
2383
|
props: {
|
|
2372
2384
|
icon: {},
|
|
@@ -2425,7 +2437,7 @@ var Mr = { style: {
|
|
|
2425
2437
|
"w-full": "",
|
|
2426
2438
|
src: d.value.url,
|
|
2427
2439
|
alt: "预览"
|
|
2428
|
-
}, null, 8,
|
|
2440
|
+
}, null, 8, Qr)]),
|
|
2429
2441
|
_: 1
|
|
2430
2442
|
}, 8, ["modelValue"])], 64);
|
|
2431
2443
|
};
|
|
@@ -2450,7 +2462,7 @@ function Z(e, n) {
|
|
|
2450
2462
|
}
|
|
2451
2463
|
//#endregion
|
|
2452
2464
|
//#region src/hooks/useTable.ts
|
|
2453
|
-
function
|
|
2465
|
+
function ei(e, n) {
|
|
2454
2466
|
let { realParams: r, ...i } = n, a = C(0), o = A([]), s = S({
|
|
2455
2467
|
total: 0,
|
|
2456
2468
|
page: 1,
|
|
@@ -2544,7 +2556,7 @@ var Q = S({
|
|
|
2544
2556
|
path: "",
|
|
2545
2557
|
mode: "hash"
|
|
2546
2558
|
});
|
|
2547
|
-
function
|
|
2559
|
+
function ti() {
|
|
2548
2560
|
if (Q.hash = window.location.hash, Q.mode = Q.hash.startsWith("#/") || Q.hash.startsWith("#!") ? "hash" : "history", Q.mode === "hash") {
|
|
2549
2561
|
let e = Q.hash.startsWith("#") ? Q.hash.slice(1) : Q.hash;
|
|
2550
2562
|
e.startsWith("/") || (e = "/" + e);
|
|
@@ -2552,8 +2564,8 @@ function ei() {
|
|
|
2552
2564
|
t === -1 ? (Q.path = e, Q.query = {}) : (Q.path = e.slice(0, t), Q.query = Object.fromEntries(new URLSearchParams(e.slice(t + 1))));
|
|
2553
2565
|
} else Q.path = window.location.pathname, Q.query = Object.fromEntries(new URLSearchParams(window.location.search));
|
|
2554
2566
|
}
|
|
2555
|
-
|
|
2556
|
-
function
|
|
2567
|
+
ti(), window.addEventListener("popstate", ti);
|
|
2568
|
+
function ni(e) {
|
|
2557
2569
|
let t = {}, n = e.split("/").filter(Boolean);
|
|
2558
2570
|
for (let e = 0; e < n.length - 1; e += 2) {
|
|
2559
2571
|
let r = n[e]?.replace(/^:/, "") || "", i = n[e + 1] || "";
|
|
@@ -2561,22 +2573,22 @@ function ti(e) {
|
|
|
2561
2573
|
}
|
|
2562
2574
|
return t;
|
|
2563
2575
|
}
|
|
2564
|
-
function
|
|
2576
|
+
function ri() {
|
|
2565
2577
|
return {
|
|
2566
2578
|
hash: Q.hash,
|
|
2567
2579
|
query: Q.query,
|
|
2568
2580
|
path: Q.path,
|
|
2569
2581
|
mode: Q.mode,
|
|
2570
2582
|
fullPath: window.location.href,
|
|
2571
|
-
params:
|
|
2583
|
+
params: ni(Q.path)
|
|
2572
2584
|
};
|
|
2573
2585
|
}
|
|
2574
|
-
function
|
|
2586
|
+
function ii() {
|
|
2575
2587
|
function e(e) {
|
|
2576
|
-
window.history.pushState({}, "", e),
|
|
2588
|
+
window.history.pushState({}, "", e), ti();
|
|
2577
2589
|
}
|
|
2578
2590
|
function t(e) {
|
|
2579
|
-
window.history.replaceState({}, "", e),
|
|
2591
|
+
window.history.replaceState({}, "", e), ti();
|
|
2580
2592
|
}
|
|
2581
2593
|
function n() {
|
|
2582
2594
|
window.history.back();
|
|
@@ -2589,10 +2601,10 @@ function ri() {
|
|
|
2589
2601
|
}
|
|
2590
2602
|
//#endregion
|
|
2591
2603
|
//#region src/hooks/useDictionary.ts
|
|
2592
|
-
function
|
|
2604
|
+
function ai(e) {
|
|
2593
2605
|
return q.post("/dictionary/mergeDictionaryValue", e);
|
|
2594
2606
|
}
|
|
2595
|
-
function
|
|
2607
|
+
function oi(e) {
|
|
2596
2608
|
let { page: t = 1, pageSize: n = 10 } = e || {}, r = A([]), i = A([]), { loading: a, execute: o } = Z("/dictionary/pageQueryDictionaryValue", {
|
|
2597
2609
|
method: "POST",
|
|
2598
2610
|
defaultParams: {
|
|
@@ -2609,7 +2621,7 @@ function ai(e) {
|
|
|
2609
2621
|
}
|
|
2610
2622
|
});
|
|
2611
2623
|
async function s(e) {
|
|
2612
|
-
let t = await
|
|
2624
|
+
let t = await ai(e);
|
|
2613
2625
|
return t.code === "ok" ? t : X.error(t.message);
|
|
2614
2626
|
}
|
|
2615
2627
|
return S({
|
|
@@ -2622,12 +2634,12 @@ function ai(e) {
|
|
|
2622
2634
|
}
|
|
2623
2635
|
//#endregion
|
|
2624
2636
|
//#region src/utils/rsaCrypto.ts
|
|
2625
|
-
var
|
|
2637
|
+
var si = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmTqXPG9vBsvUS2cmzdboGWL3vnqBlQ6PNdz8y5UxHe7lH8PyyZaquyNDS4BG00g8Yo1jF2I5Kg8jDd6+KLggKCL9xQSQUouU5nU3XAPnyCHS05oi6h7zaH7pP97DcovNsW5sEblncsMm0Xu9AcNHszIlSiX9fDJqi+bIyELyPWCw4QDmPToB+DsrVXxmUqPKxkjqb4yFghWDZY7nNVK28ra8i9KFj9segH4ujGymCorNPY8f8nEIe2+oxrb+dXGv5xmaBfwi/q7EEyMdzTkSDgUnExnkIhJ+Ki43u9cFFMU94noIsOzmFWJ78JAkiG+I9dE2c0XZx4Asm+tBgw+oQIDAQAB";
|
|
2626
2638
|
(class e {
|
|
2627
2639
|
static instance;
|
|
2628
2640
|
encryptor;
|
|
2629
2641
|
constructor() {
|
|
2630
|
-
this.encryptor = new ae(), this.encryptor.setPublicKey(
|
|
2642
|
+
this.encryptor = new ae(), this.encryptor.setPublicKey(si);
|
|
2631
2643
|
}
|
|
2632
2644
|
static getInstance() {
|
|
2633
2645
|
return e.instance ||= new e(), e.instance;
|
|
@@ -2638,7 +2650,7 @@ var oi = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmTqXPG9vBsvUS2cmzdboGWL3v
|
|
|
2638
2650
|
return t;
|
|
2639
2651
|
}
|
|
2640
2652
|
}).getInstance();
|
|
2641
|
-
function
|
|
2653
|
+
function ci(e) {
|
|
2642
2654
|
try {
|
|
2643
2655
|
if (!e) return console.warn("Token 为空"), null;
|
|
2644
2656
|
let t = e.split(".");
|
|
@@ -2653,10 +2665,10 @@ function si(e) {
|
|
|
2653
2665
|
}
|
|
2654
2666
|
//#endregion
|
|
2655
2667
|
//#region src/hooks/useUser.ts
|
|
2656
|
-
function
|
|
2657
|
-
let e = () => localStorage.getItem("TOKEN"), t = S(
|
|
2668
|
+
function li() {
|
|
2669
|
+
let e = () => localStorage.getItem("TOKEN"), t = S(ci(e()) || {});
|
|
2658
2670
|
function n() {
|
|
2659
|
-
return
|
|
2671
|
+
return ci(e());
|
|
2660
2672
|
}
|
|
2661
2673
|
return {
|
|
2662
2674
|
userInfo: t,
|
|
@@ -2665,14 +2677,14 @@ function ci() {
|
|
|
2665
2677
|
}
|
|
2666
2678
|
//#endregion
|
|
2667
2679
|
//#region src/hooks/index.ts
|
|
2668
|
-
var
|
|
2669
|
-
useDictionary: () =>
|
|
2680
|
+
var ui = /* @__PURE__ */ V({
|
|
2681
|
+
useDictionary: () => oi,
|
|
2670
2682
|
useFetch: () => Z,
|
|
2671
|
-
useRoute: () =>
|
|
2672
|
-
useRouter: () =>
|
|
2673
|
-
useTable: () =>
|
|
2674
|
-
useUser: () =>
|
|
2675
|
-
}),
|
|
2683
|
+
useRoute: () => ri,
|
|
2684
|
+
useRouter: () => ii,
|
|
2685
|
+
useTable: () => ei,
|
|
2686
|
+
useUser: () => li
|
|
2687
|
+
}), di = /* @__PURE__ */ u({
|
|
2676
2688
|
__name: "index",
|
|
2677
2689
|
props: {
|
|
2678
2690
|
icon: {},
|
|
@@ -2700,7 +2712,7 @@ var li = /* @__PURE__ */ V({
|
|
|
2700
2712
|
"remove"
|
|
2701
2713
|
],
|
|
2702
2714
|
setup(e, { emit: r }) {
|
|
2703
|
-
let i = r, a = e, { type: o = "file", onChange: s, limit: c, action: l, data: u, prop: d, fileList: f, accept: p, disabled: m, ...g } = a, { userInfo: _ } =
|
|
2715
|
+
let i = r, a = e, { type: o = "file", onChange: s, limit: c, action: l, data: u, prop: d, fileList: f, accept: p, disabled: m, ...g } = a, { userInfo: _ } = li(), v = l || `${ir}/attachment/uploadAttachment`, y = { token: localStorage.getItem("TOKEN") || "" }, b = t(() => {
|
|
2704
2716
|
if (!p) return null;
|
|
2705
2717
|
let e = [], t = [];
|
|
2706
2718
|
return p.split(",").forEach((n) => {
|
|
@@ -2733,7 +2745,7 @@ var li = /* @__PURE__ */ V({
|
|
|
2733
2745
|
let n = {
|
|
2734
2746
|
createdByName: _.name || "",
|
|
2735
2747
|
createdBy: _.account || "",
|
|
2736
|
-
creationDate:
|
|
2748
|
+
creationDate: cr()
|
|
2737
2749
|
}, r = u && d && u[d] ? u[d] : a.fileList || [], o = r.some((n) => n?.uid === t.uid || n?.objectKey === e.data?.objectKey), s;
|
|
2738
2750
|
s = o ? r.map((r) => r.uid === t.uid ? {
|
|
2739
2751
|
...r,
|
|
@@ -2752,7 +2764,7 @@ var li = /* @__PURE__ */ V({
|
|
|
2752
2764
|
function j(e, t, n) {
|
|
2753
2765
|
i("update:fileList", n), i("update:modelValue", n);
|
|
2754
2766
|
}
|
|
2755
|
-
return (e, t) => (x(), n(O(P(o) === "image" ?
|
|
2767
|
+
return (e, t) => (x(), n(O(P(o) === "image" ? $r : Zr), h({
|
|
2756
2768
|
ref: "uploadInstance",
|
|
2757
2769
|
name: "file",
|
|
2758
2770
|
action: P(v),
|
|
@@ -2778,14 +2790,14 @@ var li = /* @__PURE__ */ V({
|
|
|
2778
2790
|
"disabled"
|
|
2779
2791
|
]));
|
|
2780
2792
|
}
|
|
2781
|
-
}),
|
|
2793
|
+
}), fi = /* @__PURE__ */ V({ default: () => pi }), pi = di;
|
|
2782
2794
|
//#endregion
|
|
2783
2795
|
//#region src/components/YcApproval/useDetail.ts
|
|
2784
|
-
function
|
|
2796
|
+
function mi(e) {
|
|
2785
2797
|
return q.post("/process/operateProcess", e);
|
|
2786
2798
|
}
|
|
2787
|
-
function
|
|
2788
|
-
let n =
|
|
2799
|
+
function hi(e) {
|
|
2800
|
+
let n = ri(), { userInfo: r } = li(), i = C(), a = C(), o = C({}), s = C(!1), c = S({
|
|
2789
2801
|
code: "",
|
|
2790
2802
|
confirmVisible: !1,
|
|
2791
2803
|
nextAssigneeVisible: !1,
|
|
@@ -2907,7 +2919,7 @@ function mi(e) {
|
|
|
2907
2919
|
let t = await i.value?.validate(), r = await o.value?.validate(), s = await e?.getData?.() || {};
|
|
2908
2920
|
if (t || r || !s || !Object.keys(s).length) return X.warning("存在必填内容未填写,请检查表单必填项!");
|
|
2909
2921
|
Object.assign(l.processInfo, i.value.getValues() || {}), l.instanceHandlerList = o.value.getValues(), l.processData.readScope = a.value?.formData?.readScope || [];
|
|
2910
|
-
let u = await
|
|
2922
|
+
let u = await mi({
|
|
2911
2923
|
processInfo: { ...N(l.processInfo) },
|
|
2912
2924
|
processData: JSON.stringify(l.processData),
|
|
2913
2925
|
instanceHandlerList: l.instanceHandlerList,
|
|
@@ -2953,8 +2965,8 @@ function mi(e) {
|
|
|
2953
2965
|
}
|
|
2954
2966
|
//#endregion
|
|
2955
2967
|
//#region src/components/YcApproval/useBtnActive.ts
|
|
2956
|
-
function
|
|
2957
|
-
let n = localStorage.getItem("TOkEN"), r =
|
|
2968
|
+
function gi({ processCode: e }) {
|
|
2969
|
+
let n = localStorage.getItem("TOkEN"), r = oi({
|
|
2958
2970
|
code: "ApprovalButtonActive",
|
|
2959
2971
|
pageSize: 100
|
|
2960
2972
|
}), i = t(() => {
|
|
@@ -2974,14 +2986,14 @@ function hi({ processCode: e }) {
|
|
|
2974
2986
|
}
|
|
2975
2987
|
//#endregion
|
|
2976
2988
|
//#region src/components/YcApproval/Remind.vue?vue&type=script&setup=true&lang.ts
|
|
2977
|
-
var
|
|
2989
|
+
var _i = { key: 0 }, vi = /* @__PURE__ */ u({
|
|
2978
2990
|
__name: "Remind",
|
|
2979
2991
|
props: {
|
|
2980
2992
|
disabled: { type: Boolean },
|
|
2981
2993
|
formData: {}
|
|
2982
2994
|
},
|
|
2983
2995
|
setup(e, { expose: r }) {
|
|
2984
|
-
let s = o(e, ["formData"]), { userInfo: u } =
|
|
2996
|
+
let s = o(e, ["formData"]), { userInfo: u } = li(), d = C([]), f = C([]);
|
|
2985
2997
|
Z("/process/queryProcessActivity", {
|
|
2986
2998
|
defaultParams: t(() => ({ processId: e.formData?.processInfo?.processId })),
|
|
2987
2999
|
ready: t(() => !!e.formData?.processInfo?.processId && e.formData?.processInfo?.activityCode === "ACT_START"),
|
|
@@ -3067,7 +3079,7 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
|
|
|
3067
3079
|
}),
|
|
3068
3080
|
l(r, { prop: "assigneeName" }, {
|
|
3069
3081
|
header: R(() => [...t[0] ||= [c("处理人 ", -1), a("span", { style: { color: "red" } }, "*", -1)]]),
|
|
3070
|
-
default: R(({ row: e, $index: t }) => [t === 0 ? (x(), i("span",
|
|
3082
|
+
default: R(({ row: e, $index: t }) => [t === 0 ? (x(), i("span", _i, j(e.assigneeName), 1)) : (x(), n(o, {
|
|
3071
3083
|
key: 1,
|
|
3072
3084
|
ref: (e) => f.value[t] = e,
|
|
3073
3085
|
modelValue: e.assigneeName,
|
|
@@ -3090,7 +3102,7 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
|
|
|
3090
3102
|
}, 8, ["icon"]);
|
|
3091
3103
|
};
|
|
3092
3104
|
}
|
|
3093
|
-
}),
|
|
3105
|
+
}), yi = /* @__PURE__ */ u({
|
|
3094
3106
|
__name: "ReadScope",
|
|
3095
3107
|
props: {
|
|
3096
3108
|
disabled: { type: Boolean },
|
|
@@ -3131,7 +3143,7 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
|
|
|
3131
3143
|
}, 8, ["icon"]);
|
|
3132
3144
|
};
|
|
3133
3145
|
}
|
|
3134
|
-
}),
|
|
3146
|
+
}), bi = /* @__PURE__ */ u({
|
|
3135
3147
|
__name: "History",
|
|
3136
3148
|
props: { formData: {} },
|
|
3137
3149
|
setup(e) {
|
|
@@ -3177,22 +3189,22 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
|
|
|
3177
3189
|
}, 8, ["icon"]);
|
|
3178
3190
|
};
|
|
3179
3191
|
}
|
|
3180
|
-
}),
|
|
3192
|
+
}), xi = { class: "fixed-buttons" }, Si = { key: 0 }, Ci = /* @__PURE__ */ u({
|
|
3181
3193
|
__name: "index",
|
|
3182
3194
|
props: {
|
|
3183
3195
|
processCode: {},
|
|
3184
3196
|
getData: { type: Function }
|
|
3185
3197
|
},
|
|
3186
3198
|
setup(t) {
|
|
3187
|
-
let o = t, s = o.processCode ||
|
|
3199
|
+
let o = t, s = o.processCode || ri().params.processCode, u = {
|
|
3188
3200
|
IntegratedApprovalProcess: "手工构建流程",
|
|
3189
3201
|
SoftwareReleaseProcess: "软件释放流程"
|
|
3190
|
-
}, { btnActiveMaps: d, toFlowchart: f } =
|
|
3202
|
+
}, { btnActiveMaps: d, toFlowchart: f } = gi({ processCode: s }), { processInfoRef: p, readScopeRef: m, remindRef: h, disabled: g, formData: _, states: v, confirmFields: y, baseFields: b, buttonClick: S, onConfirmSubmit: C } = hi(o);
|
|
3191
3203
|
return (t, o) => {
|
|
3192
3204
|
let O = E("el-button"), k = E("yc-form"), A = E("yc-card"), M = E("el-card"), N = E("el-dialog"), F = D("sticky");
|
|
3193
3205
|
return x(), i(e, null, [l(M, { style: { margin: "0px 120px" } }, {
|
|
3194
3206
|
default: R(() => [
|
|
3195
|
-
z((x(), i("div",
|
|
3207
|
+
z((x(), i("div", xi, [P(v).buttonList.length ? (x(), i("div", Si, [(x(!0), i(e, null, w(P(v).buttonList, (e) => (x(), n(O, {
|
|
3196
3208
|
key: e.code,
|
|
3197
3209
|
type: P(d)?.get(e.code)?.[1] || "default",
|
|
3198
3210
|
onClick: (t) => P(S)(e.code)
|
|
@@ -3224,19 +3236,19 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
|
|
|
3224
3236
|
_: 1
|
|
3225
3237
|
}, 8, ["icon"]),
|
|
3226
3238
|
T(t.$slots, "default", { data: P(_)?.businessData }, void 0, !0),
|
|
3227
|
-
l(
|
|
3239
|
+
l(vi, {
|
|
3228
3240
|
ref_key: "remindRef",
|
|
3229
3241
|
ref: h,
|
|
3230
3242
|
"form-data": P(_),
|
|
3231
3243
|
disabled: P(g)
|
|
3232
3244
|
}, null, 8, ["form-data", "disabled"]),
|
|
3233
|
-
l(
|
|
3245
|
+
l(yi, {
|
|
3234
3246
|
ref_key: "readScopeRef",
|
|
3235
3247
|
ref: m,
|
|
3236
3248
|
"form-data": P(_),
|
|
3237
3249
|
disabled: P(g)
|
|
3238
3250
|
}, null, 8, ["form-data", "disabled"]),
|
|
3239
|
-
l(
|
|
3251
|
+
l(bi, {
|
|
3240
3252
|
"form-data": P(_),
|
|
3241
3253
|
disabled: P(g)
|
|
3242
3254
|
}, null, 8, ["form-data", "disabled"])
|
|
@@ -3256,7 +3268,7 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
|
|
|
3256
3268
|
}, 8, ["modelValue"])], 64);
|
|
3257
3269
|
};
|
|
3258
3270
|
}
|
|
3259
|
-
}),
|
|
3271
|
+
}), wi = /* @__PURE__ */ V({ default: () => Ti }), Ti = /* @__PURE__ */ H(Ci, [["__scopeId", "data-v-ed24f758"]]), Ei = /* @__PURE__ */ u({
|
|
3260
3272
|
__name: "index",
|
|
3261
3273
|
setup(e) {
|
|
3262
3274
|
let t = C(!1), r = new oe({
|
|
@@ -3279,7 +3291,7 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
|
|
|
3279
3291
|
});
|
|
3280
3292
|
};
|
|
3281
3293
|
}
|
|
3282
|
-
}),
|
|
3294
|
+
}), Di = /* @__PURE__ */ V({ default: () => Oi }), Oi = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-548e27b3"]]), ki = {
|
|
3283
3295
|
mounted(e, t) {
|
|
3284
3296
|
let n = t.value || {}, r = n.target || "body", i = n.top || 0;
|
|
3285
3297
|
e._stickyOriginalStyles = {
|
|
@@ -3304,12 +3316,12 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
|
|
|
3304
3316
|
unmounted(e) {
|
|
3305
3317
|
e._stickyScrollListener && window.removeEventListener("scroll", e._stickyScrollListener), e._stickyOriginalStyles && (e.style.position = e._stickyOriginalStyles.position, e.style.top = e._stickyOriginalStyles.top, e.style.zIndex = e._stickyOriginalStyles.zIndex, e.style.width = e._stickyOriginalStyles.width);
|
|
3306
3318
|
}
|
|
3307
|
-
},
|
|
3319
|
+
}, Ai = { mounted(e) {
|
|
3308
3320
|
e.style.boxShadow = "0px 0px 12px rgba(0, 0, 0, 0.12)", e.style.padding = "20px", e.style.borderRadius = "4px", e.style.border = "1px solid #e4e7ed", e.style.backgroundColor = "#fff";
|
|
3309
|
-
} },
|
|
3310
|
-
card: () =>
|
|
3311
|
-
sticky: () =>
|
|
3312
|
-
}),
|
|
3321
|
+
} }, ji = /* @__PURE__ */ V({
|
|
3322
|
+
card: () => Ai,
|
|
3323
|
+
sticky: () => ki
|
|
3324
|
+
}), Mi = "Yc", Ni = {
|
|
3313
3325
|
UiCard: de,
|
|
3314
3326
|
UiTable: Ne,
|
|
3315
3327
|
UiFilter: mn,
|
|
@@ -3319,34 +3331,34 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
|
|
|
3319
3331
|
UiInfiniteScroll: Hn,
|
|
3320
3332
|
UiDescriptions: qn,
|
|
3321
3333
|
UiDialog: Zn,
|
|
3322
|
-
UiStaffSelect:
|
|
3323
|
-
UiUpload:
|
|
3324
|
-
YcApproval:
|
|
3325
|
-
YcPageAgent:
|
|
3326
|
-
},
|
|
3327
|
-
function
|
|
3328
|
-
|
|
3334
|
+
UiStaffSelect: Hr,
|
|
3335
|
+
UiUpload: fi,
|
|
3336
|
+
YcApproval: wi,
|
|
3337
|
+
YcPageAgent: Di
|
|
3338
|
+
}, Pi = null;
|
|
3339
|
+
function Fi(e) {
|
|
3340
|
+
Pi = e;
|
|
3329
3341
|
}
|
|
3330
3342
|
function $() {
|
|
3331
|
-
return
|
|
3343
|
+
return Pi;
|
|
3332
3344
|
}
|
|
3333
|
-
var
|
|
3334
|
-
t?.elementPlus && t.elementPlus.install(e),
|
|
3345
|
+
var Ii = { install(e, t) {
|
|
3346
|
+
t?.elementPlus && t.elementPlus.install(e), Pi ||= {
|
|
3335
3347
|
...e,
|
|
3336
3348
|
h: f
|
|
3337
3349
|
};
|
|
3338
|
-
for (let [t, n] of Object.entries(
|
|
3350
|
+
for (let [t, n] of Object.entries(Ni)) {
|
|
3339
3351
|
let r = n?.default || n;
|
|
3340
3352
|
if (r && (typeof r == "function" || typeof r == "object")) {
|
|
3341
|
-
let n = t.replace(/^Ui/,
|
|
3353
|
+
let n = t.replace(/^Ui/, Mi);
|
|
3342
3354
|
e.component(n, r);
|
|
3343
3355
|
let i = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
3344
3356
|
i !== n && e.component(i, r);
|
|
3345
3357
|
}
|
|
3346
3358
|
}
|
|
3347
3359
|
for (let [t, n] of Object.entries(cn)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
|
|
3348
|
-
for (let [t, n] of Object.entries(
|
|
3349
|
-
e.config.globalProperties.$message =
|
|
3360
|
+
for (let [t, n] of Object.entries(ji)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
|
|
3361
|
+
e.config.globalProperties.$message = Or, e.provide?.("message", Or);
|
|
3350
3362
|
} };
|
|
3351
3363
|
//#endregion
|
|
3352
|
-
export { dn as A, Zn as C, wn as D, Pn as E, de as M, bn as O, q as S, Hn as T,
|
|
3364
|
+
export { dn as A, Zn as C, wn as D, Pn as E, de as M, bn as O, q as S, Hn as T, ir as _, wi as a, ar as b, li as c, ii as d, ei as f, gr as g, X as h, Di as i, Ne as j, mn as k, oi as l, Hr as m, Fi as n, fi as o, Z as p, Ii as r, ui as s, $ as t, ri as u, cr as v, qn as w, or as x, sr as y };
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-
|
|
1
|
+
import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-CZPCnTLk.js";
|
|
2
2
|
export { r as useDictionary, i as useFetch, a as useRoute, t as useRouter, n as useTable, e as useUser };
|
package/dist/hooks/useFetch.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { UseAsyncStateOptions } from '@vueuse/core';
|
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
export interface FetchOptions<D, Q> extends UseAsyncStateOptions<true, D> {
|
|
4
4
|
method?: 'GET' | 'POST';
|
|
5
|
-
defaultParams?: Q
|
|
5
|
+
defaultParams?: Q | Record<string, any>;
|
|
6
6
|
defaultData?: D;
|
|
7
7
|
ready?: Ref<boolean>;
|
|
8
8
|
}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-
|
|
1
|
+
import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-CZPCnTLk.js";
|
|
2
2
|
export { n as baseUrl, i as formatDate, o as omit, t as request, e as tempToRender, r as uniq, a as uniqBy };
|
package/dist/utils/request.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare function get(url: string, params?: Record<string, any>): Promise<any>;
|
|
2
|
-
declare function post(url: string, body: any): Promise<any>;
|
|
3
|
-
declare function blob(url: string, body: any): Promise<Blob>;
|
|
2
|
+
declare function post(url: string, body: Record<string, any>, cfg?: RequestInit): Promise<any>;
|
|
3
|
+
declare function blob(url: string, body: Record<string, any>, cfg?: RequestInit): Promise<Blob>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
get: typeof get;
|
|
6
6
|
post: typeof post;
|
package/dist/vep-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-
|
|
1
|
+
import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-CZPCnTLk.js";
|
|
2
2
|
export { r as UiCard, v as UiDescriptions, e as UiDialog, t as UiEditor, d as UiFilter, i as UiForm, a as UiInfiniteScroll, f as UiStaffSelect, u as UiTable, n as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, _ as getHostVue, g as hooks, p as setHostVue };
|