yc-vep-ui 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -303,7 +303,7 @@ function De(e) {
303
303
  }
304
304
  function Oe(e) {
305
305
  let t = W();
306
- return t ? t(Hr || Vr, {
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(fi || di, e) : null;
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
- async function er(e, t) {
1747
- let n = `${rr}${e}`;
1746
+ function er(e) {
1747
+ if (e.code !== "ok" && e.message === "无效的token") {
1748
+ 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
- return (await fetch(n, {
1760
+ let r = await fetch(n, {
1753
1761
  headers: $n(),
1754
1762
  method: "GET"
1755
- })).json();
1763
+ });
1764
+ return er(await r.json()), r.json();
1756
1765
  }
1757
- async function tr(e, t) {
1758
- return (await fetch(`${rr}${e}`, {
1766
+ async function nr(e, t, n = {}) {
1767
+ let r = await fetch(`${ir}${e}`, {
1759
1768
  headers: $n(),
1760
1769
  method: "POST",
1761
- body: JSON.stringify(t)
1762
- })).json();
1770
+ body: JSON.stringify(t),
1771
+ ...n
1772
+ });
1773
+ return er(await r.json()), r.json();
1763
1774
  }
1764
- async function nr(e, t) {
1765
- return (await fetch(`${rr}${e}`, {
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: er,
1773
- post: tr,
1774
- blob: nr
1775
- }, rr = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1776
- function ir(e) {
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 ar(e, t) {
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 or(e = {}, t) {
1798
+ function sr(e = {}, t) {
1787
1799
  let n = { ...e };
1788
1800
  return t.forEach((e) => delete n[e]), n;
1789
1801
  }
1790
- function sr(e = /* @__PURE__ */ new Date()) {
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 cr = /* @__PURE__ */ u({
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
- }), lr = "<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>", ur = "<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>", dr = "<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>", fr = "<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>", pr = "<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>", mr = {
1854
- success: lr,
1855
- warning: ur,
1856
- error: dr,
1857
- info: fr
1858
- }, hr = /* @__PURE__ */ V({
1859
- addInstance: () => Sr,
1860
- baseStyles: () => gr,
1861
- closeIcon: () => Er,
1862
- closeInstance: () => Cr,
1863
- createWcElement: () => wr,
1864
- getInstances: () => xr,
1865
- getNextId: () => br,
1866
- icons: () => Tr,
1867
- initStyles: () => yr,
1868
- wcDefaultOptions: () => _r
1869
- }), gr = "\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", _r = {
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 = [], vr = 0;
1874
- function yr(e, t) {
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 Sr(e) {
1898
+ function Cr(e) {
1887
1899
  J.push(e);
1888
1900
  }
1889
- function Cr(e) {
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 wr(e, t) {
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${gr}`, this.shadow.appendChild(e);
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, vr);
1928
+ }, n, yr);
1917
1929
  }
1918
1930
  show(e) {
1919
1931
  let n = this.shadow.querySelector(".vep-wc-container");
1920
- n && t(e, n, vr);
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 Tr = mr, Er = pr, Dr = /* @__PURE__ */ V({
1937
+ var Er = hr, Dr = mr, Or = /* @__PURE__ */ V({
1926
1938
  VepMessage: () => X,
1927
1939
  default: () => X
1928
1940
  }), Y = null;
1929
- function Or(e, t) {
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">${Tr[e.type || "info"]}</span>
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">${Er}</span>` : ""}
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 kr(e) {
1938
- yr("vep-ui-message-styles", gr), Y || (Y = document.createElement("div"), Y.className = "vep-wc-container", document.body.appendChild(Y));
1939
- let t = br(), n = {
1940
- ..._r,
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 = () => Ar(t), i = Or(n, r);
1943
- return Y.appendChild(i), n.duration && n.duration > 0 && setTimeout(r, n.duration), Sr({
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 Ar(e) {
1951
- return Cr(e).then(() => {
1952
- xr().length === 0 && Y && (Y.remove(), Y = null);
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: kr(typeof e == "string" ? { message: e } : e) }));
1956
- X.success = (e, t) => ({ close: kr({
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: kr({
1972
+ }) }), X.warning = (e, t) => ({ close: Ar({
1961
1973
  message: e,
1962
1974
  type: "warning",
1963
1975
  ...t
1964
- }) }), X.error = (e, t) => ({ close: kr({
1976
+ }) }), X.error = (e, t) => ({ close: Ar({
1965
1977
  message: e,
1966
1978
  type: "error",
1967
1979
  ...t
1968
- }) }), X.info = (e, t) => ({ close: kr({
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(xr().map((e) => Ar(e.id)));
1985
+ await Promise.all(Sr().map((e) => jr(e.id)));
1974
1986
  };
1975
- var jr = class extends HTMLElement {
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${gr}`, this.shadow.appendChild(e);
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 = br(), r = {
1999
- ..._r,
2010
+ let n = xr(), r = {
2011
+ ...vr,
2000
2012
  ...e
2001
- }, i = () => this.doClose(n, t), a = Or(r, i);
2002
- t.appendChild(a), r.duration && r.duration > 0 && setTimeout(i, r.duration), Sr({
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 Cr(e).then(() => {
2011
- xr().length === 0 && t.remove();
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", jr);
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 Mr = { style: {
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
- } }, Nr = { style: { flex: "1" } }, Pr = { style: { width: "320px" } }, Fr = { style: {
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
- } }, Ir = { key: 0 }, Lr = { style: {
2042
+ } }, Lr = { key: 0 }, Rr = { style: {
2031
2043
  "overflow-y": "auto",
2032
2044
  height: "90%"
2033
- } }, Rr = { style: {
2045
+ } }, zr = { style: {
2034
2046
  display: "flex",
2035
2047
  "justify-content": "end",
2036
2048
  "align-items": "center"
2037
- } }, zr = /* @__PURE__ */ H(/* @__PURE__ */ u({
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 = ir(f.modelValue || []);
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 = ar([...r, ...e.data.children || []], "code") : e.children = ar([...r, ...e.children || []], "code"), v.loading = !1;
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 = ir([...b.value, ...n]);
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", Mr, [a("div", Nr, [l(s, {
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", Pr, [a("div", Fr, [n[4] ||= a("h3", null, "已选择", -1), b.value.length ? (x(), i("span", Ir, "已选择" + j(b.value.length) + "个用户", 1)) : r("", !0)]), a("div", Lr, [(x(!0), i(e, null, w(b.value, (e) => (x(), i("li", {
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", Rr, [l(p, { onClick: re }, {
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"]]), Br = /* @__PURE__ */ u({
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" ? zr : cr), h({
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
- }), Vr = /* @__PURE__ */ V({ default: () => Hr }), Hr = Br, Ur = { class: "file-left" }, Wr = { class: "file-name" }, Gr = {
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
- }, Kr = ["onClick"], qr = ["onClick"], Jr = ["onClick"], Yr = { class: "file-actions" }, Xr = /* @__PURE__ */ H(/* @__PURE__ */ u({
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", Ur, [
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", Wr, j(e.name), 1),
2307
- e.size ? (x(), i("span", Gr, "(" + j(k(e.size)) + ")", 1)) : r("", !0),
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, Kr)) : r("", !0),
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, qr)) : r("", !0),
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, Jr))
2323
- ]), a("div", Yr, [e.status === "uploading" ? (x(), n(v, {
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"]]), Zr = ["src"], Qr = /* @__PURE__ */ H(/* @__PURE__ */ u({
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, Zr)]),
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 $r(e, n) {
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 ei() {
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
- ei(), window.addEventListener("popstate", ei);
2556
- function ti(e) {
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 ni() {
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: ti(Q.path)
2583
+ params: ni(Q.path)
2572
2584
  };
2573
2585
  }
2574
- function ri() {
2586
+ function ii() {
2575
2587
  function e(e) {
2576
- window.history.pushState({}, "", e), ei();
2588
+ window.history.pushState({}, "", e), ti();
2577
2589
  }
2578
2590
  function t(e) {
2579
- window.history.replaceState({}, "", e), ei();
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 ii(e) {
2604
+ function ai(e) {
2593
2605
  return q.post("/dictionary/mergeDictionaryValue", e);
2594
2606
  }
2595
- function ai(e) {
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 ii(e);
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 oi = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmTqXPG9vBsvUS2cmzdboGWL3vnqBlQ6PNdz8y5UxHe7lH8PyyZaquyNDS4BG00g8Yo1jF2I5Kg8jDd6+KLggKCL9xQSQUouU5nU3XAPnyCHS05oi6h7zaH7pP97DcovNsW5sEblncsMm0Xu9AcNHszIlSiX9fDJqi+bIyELyPWCw4QDmPToB+DsrVXxmUqPKxkjqb4yFghWDZY7nNVK28ra8i9KFj9segH4ujGymCorNPY8f8nEIe2+oxrb+dXGv5xmaBfwi/q7EEyMdzTkSDgUnExnkIhJ+Ki43u9cFFMU94noIsOzmFWJ78JAkiG+I9dE2c0XZx4Asm+tBgw+oQIDAQAB";
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(oi);
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 si(e) {
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 ci() {
2657
- let e = () => localStorage.getItem("TOKEN"), t = S(si(e()) || {});
2668
+ function li() {
2669
+ let e = () => localStorage.getItem("TOKEN"), t = S(ci(e()) || {});
2658
2670
  function n() {
2659
- return si(e());
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 li = /* @__PURE__ */ V({
2669
- useDictionary: () => ai,
2680
+ var ui = /* @__PURE__ */ V({
2681
+ useDictionary: () => oi,
2670
2682
  useFetch: () => Z,
2671
- useRoute: () => ni,
2672
- useRouter: () => ri,
2673
- useTable: () => $r,
2674
- useUser: () => ci
2675
- }), ui = /* @__PURE__ */ u({
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: _ } = ci(), v = l || `${rr}/attachment/uploadAttachment`, y = { token: localStorage.getItem("TOKEN") || "" }, b = t(() => {
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: sr()
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" ? Qr : Xr), h({
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
- }), di = /* @__PURE__ */ V({ default: () => fi }), fi = ui;
2793
+ }), fi = /* @__PURE__ */ V({ default: () => pi }), pi = di;
2782
2794
  //#endregion
2783
2795
  //#region src/components/YcApproval/useDetail.ts
2784
- function pi(e) {
2796
+ function mi(e) {
2785
2797
  return q.post("/process/operateProcess", e);
2786
2798
  }
2787
- function mi(e) {
2788
- let n = ni(), { userInfo: r } = ci(), i = C(), a = C(), o = C({}), s = C(!1), c = S({
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 pi({
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 hi({ processCode: e }) {
2957
- let n = localStorage.getItem("TOkEN"), r = ai({
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 gi = { key: 0 }, _i = /* @__PURE__ */ u({
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 } = ci(), d = C([]), f = C([]);
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", gi, j(e.assigneeName), 1)) : (x(), n(o, {
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
- }), vi = /* @__PURE__ */ u({
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
- }), yi = /* @__PURE__ */ u({
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
- }), bi = { class: "fixed-buttons" }, xi = { key: 0 }, Si = /* @__PURE__ */ u({
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 || ni().params.processCode, u = {
3199
+ let o = t, s = o.processCode || ri().params.processCode, u = {
3188
3200
  IntegratedApprovalProcess: "手工构建流程",
3189
3201
  SoftwareReleaseProcess: "软件释放流程"
3190
- }, { btnActiveMaps: d, toFlowchart: f } = hi({ processCode: s }), { processInfoRef: p, readScopeRef: m, remindRef: h, disabled: g, formData: _, states: v, confirmFields: y, baseFields: b, buttonClick: S, onConfirmSubmit: C } = mi(o);
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", bi, [P(v).buttonList.length ? (x(), i("div", xi, [(x(!0), i(e, null, w(P(v).buttonList, (e) => (x(), n(O, {
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(_i, {
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(vi, {
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(yi, {
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
- }), Ci = /* @__PURE__ */ V({ default: () => wi }), wi = /* @__PURE__ */ H(Si, [["__scopeId", "data-v-ed24f758"]]), Ti = /* @__PURE__ */ u({
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
- }), Ei = /* @__PURE__ */ V({ default: () => Di }), Di = /* @__PURE__ */ H(Ti, [["__scopeId", "data-v-548e27b3"]]), Oi = {
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
- }, ki = { mounted(e) {
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
- } }, Ai = /* @__PURE__ */ V({
3310
- card: () => ki,
3311
- sticky: () => Oi
3312
- }), ji = "Yc", Mi = {
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,37 @@ var gi = { key: 0 }, _i = /* @__PURE__ */ u({
3319
3331
  UiInfiniteScroll: Hn,
3320
3332
  UiDescriptions: qn,
3321
3333
  UiDialog: Zn,
3322
- UiStaffSelect: Vr,
3323
- UiUpload: di,
3324
- YcApproval: Ci,
3325
- YcPageAgent: Ei
3326
- }, Ni = null;
3327
- function Pi(e) {
3328
- Ni = e;
3334
+ UiStaffSelect: Hr,
3335
+ UiUpload: fi,
3336
+ YcApproval: wi,
3337
+ YcPageAgent: Di
3338
+ }, Pi = null;
3339
+ function Fi(e) {
3340
+ Pi = e;
3341
+ }
3342
+ function Ii(e) {
3343
+ localStorage.setItem("authUrl", e);
3329
3344
  }
3330
3345
  function $() {
3331
- return Ni;
3346
+ return Pi;
3332
3347
  }
3333
- var Fi = { install(e, t) {
3334
- t?.elementPlus && t.elementPlus.install(e), Ni ||= {
3348
+ var Li = { install(e, t) {
3349
+ t?.elementPlus && t.elementPlus.install(e), Pi ||= {
3335
3350
  ...e,
3336
3351
  h: f
3337
3352
  };
3338
- for (let [t, n] of Object.entries(Mi)) {
3353
+ for (let [t, n] of Object.entries(Ni)) {
3339
3354
  let r = n?.default || n;
3340
3355
  if (r && (typeof r == "function" || typeof r == "object")) {
3341
- let n = t.replace(/^Ui/, ji);
3356
+ let n = t.replace(/^Ui/, Mi);
3342
3357
  e.component(n, r);
3343
3358
  let i = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3344
3359
  i !== n && e.component(i, r);
3345
3360
  }
3346
3361
  }
3347
3362
  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(Ai)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
3349
- e.config.globalProperties.$message = Dr, e.provide?.("message", Dr);
3363
+ for (let [t, n] of Object.entries(ji)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
3364
+ e.config.globalProperties.$message = Or, e.provide?.("message", Or);
3350
3365
  } };
3351
3366
  //#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, rr as _, Ci as a, ir as b, ci as c, ri as d, $r as f, hr as g, X as h, Ei as i, Ne as j, mn as k, ai as l, Vr as m, Pi as n, di as o, Z as p, Fi as r, li as s, $ as t, ni as u, sr as v, qn as w, ar as x, or as y };
3367
+ export { mn as A, q as C, Pn as D, Hn as E, Ne as M, de as N, wn as O, or as S, qn as T, gr as _, Di as a, sr as b, ui as c, ri as d, ii as f, X as g, Hr as h, Li as i, dn as j, bn as k, li as l, Z as m, Ii as n, wi as o, ei as p, Fi as r, fi as s, $ as t, oi as u, ir as v, Zn as w, ar as x, cr as y };
@@ -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-TwjXXqex.js";
2
- export { r as useDictionary, i as useFetch, a as useRoute, t as useRouter, n as useTable, e as useUser };
1
+ import { d as e, f as t, l as n, m as r, p as i, u as a } from "../entry-DYqfR6-W.js";
2
+ export { a as useDictionary, r as useFetch, e as useRoute, t as useRouter, i as useTable, n as useUser };
@@ -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
  }
@@ -13,4 +13,4 @@ export interface FetchReturn<D> {
13
13
  data?: D;
14
14
  loading: boolean;
15
15
  }
16
- export declare function useFetch<D, Q = Record<string, any>>(url: string, options: FetchOptions<D, Q>): FetchReturn<D>;
16
+ export declare function useFetch<D, Q = Record<string, any>>(url: string, options?: FetchOptions<D, Q>): FetchReturn<D>;
@@ -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-TwjXXqex.js";
2
- export { n as baseUrl, i as formatDate, o as omit, t as request, e as tempToRender, r as uniq, a as uniqBy };
1
+ import { C as e, S as t, b as n, j as r, v as i, x as a, y as o } from "../entry-DYqfR6-W.js";
2
+ export { i as baseUrl, o as formatDate, n as omit, e as request, r as tempToRender, a as uniq, t as uniqBy };
@@ -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-TwjXXqex.js";
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 };
1
+ import { A as e, D as t, E as n, M as r, N as i, O as a, T as o, _ as s, a as c, c as l, g as u, h as d, i as f, k as p, n as m, o as h, r as g, s as _, t as v, w as y } from "./entry-DYqfR6-W.js";
2
+ export { i as UiCard, o as UiDescriptions, y as UiDialog, a as UiEditor, e as UiFilter, p as UiForm, n as UiInfiniteScroll, d as UiStaffSelect, r as UiTable, t as UiTree, _ as UiUpload, s as WcUtils, h as YcApproval, u as YcMessage, c as YcPageAgent, f as default, f as ycPlugin, v as getHostVue, l as hooks, m as setAuthUrl, g as setHostVue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [