@sunny-base-web/effects 0.8.90 → 0.8.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/effects.css +1 -1
- package/dist/index.js +5 -5
- package/dist/index.mjs +691 -685
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Ne, inject as Ft, defineComponent as q, computed as H, openBlock as m, createElementBlock as N, normalizeStyle as EA, normalizeClass as CA, createElementVNode as d, ref as
|
|
1
|
+
import { getCurrentInstance as Ne, inject as Ft, defineComponent as q, computed as H, openBlock as m, createElementBlock as N, normalizeStyle as EA, normalizeClass as CA, createElementVNode as d, ref as p, reactive as uA, onMounted as yA, onUnmounted as je, resolveComponent as x, createVNode as r, withCtx as u, unref as Q, Fragment as oA, renderList as BA, createBlock as W, createCommentVNode as iA, withModifiers as xA, createTextVNode as J, toDisplayString as X, toRefs as yt, watch as lA, isRef as le, nextTick as fA, mergeProps as gg, createSlots as YA, withDirectives as og, vModelText as ng, resolveDynamicComponent as ce, Transition as Xe, KeepAlive as sg, withKeys as zA, markRaw as zt, shallowRef as Bg, renderSlot as $e, Teleport as rg } from "vue";
|
|
2
2
|
import { Message as L, Modal as dA, Tabs as ae, Tree as Cg, Checkbox as lg } from "@arco-design/web-vue";
|
|
3
3
|
import ag from "jsencrypt";
|
|
4
4
|
import { isFunction as At, isUndefined as et, merge as Qg, bindMethods as cg, isString as ig, getCookie as Eg, setCookie as Ig, transformToString as dg, transformToObjectArray as ug } from "@sunny-base-web/utils";
|
|
@@ -1158,7 +1158,7 @@ if (Re()) {
|
|
|
1158
1158
|
JA.src = "http://localhost:8000/CLodopfuncs.js?priority=1", oe.insertBefore(JA, oe.firstChild), JA = document.createElement("script"), JA.src = "http://localhost:18000/CLodopfuncs.js?priority=0", oe.insertBefore(JA, oe.firstChild);
|
|
1159
1159
|
}
|
|
1160
1160
|
function vt(A, e) {
|
|
1161
|
-
var g = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>", t = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>", o = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>", s = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>", n = "<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>", B = "<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>", E = "<br><font color='#FF00FF'>CLodop云打印服务需升级!点击这里<a href='CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>", c = navigator.userAgent.indexOf("MSIE") >= 0 || navigator.userAgent.indexOf("Trident") >= 0,
|
|
1161
|
+
var g = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>", t = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>", o = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>", s = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>", n = "<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>", B = "<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>", E = "<br><font color='#FF00FF'>CLodop云打印服务需升级!点击这里<a href='CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>", c = navigator.userAgent.indexOf("MSIE") >= 0 || navigator.userAgent.indexOf("Trident") >= 0, w = c && navigator.userAgent.indexOf("x64") >= 0, i;
|
|
1162
1162
|
try {
|
|
1163
1163
|
if (Re()) {
|
|
1164
1164
|
try {
|
|
@@ -1171,8 +1171,8 @@ function vt(A, e) {
|
|
|
1171
1171
|
} else
|
|
1172
1172
|
CLODOP.CVERSION < "3.0.0.2" && (c ? document.write(E) : document.documentElement.innerHTML = E + document.documentElement.innerHTML), e?.parentNode, A?.parentNode;
|
|
1173
1173
|
} else if (A != null || e != null || (Le == null ? (i = document.createElement("object"), i.setAttribute("width", 0), i.setAttribute("height", 0), i.setAttribute("style", "position:absolute;left:0px;top:-100px;width:0px;height:0px;"), c ? i.setAttribute("classid", "clsid:2105C259-1E0C-4534-8141-A753534CB4CA") : i.setAttribute("type", "application/x-print-lodop"), document.documentElement.appendChild(i), Le = i) : i = Le), i == null || typeof i.VERSION > "u")
|
|
1174
|
-
return navigator.userAgent.indexOf("Chrome") >= 0 && (document.documentElement.innerHTML = B + document.documentElement.innerHTML), navigator.userAgent.indexOf("Firefox") >= 0 && (document.documentElement.innerHTML = n + document.documentElement.innerHTML),
|
|
1175
|
-
return i.VERSION < "6.0" && (Re() || (
|
|
1174
|
+
return navigator.userAgent.indexOf("Chrome") >= 0 && (document.documentElement.innerHTML = B + document.documentElement.innerHTML), navigator.userAgent.indexOf("Firefox") >= 0 && (document.documentElement.innerHTML = n + document.documentElement.innerHTML), w ? document.write(o) : c ? document.write(g) : document.documentElement.innerHTML = g + document.documentElement.innerHTML, i;
|
|
1175
|
+
return i.VERSION < "6.0" && (Re() || (w ? document.write(s) : c ? document.write(t) : document.documentElement.innerHTML = t + document.documentElement.innerHTML)), i;
|
|
1176
1176
|
} catch (C) {
|
|
1177
1177
|
console.log("getLodop出错:" + C);
|
|
1178
1178
|
}
|
|
@@ -1349,23 +1349,23 @@ class Kn {
|
|
|
1349
1349
|
if (n.handlers && n.handlers.length > 0) {
|
|
1350
1350
|
for (const I of n.handlers)
|
|
1351
1351
|
if (typeof I?.fulfilled == "function") {
|
|
1352
|
-
const
|
|
1353
|
-
|
|
1352
|
+
const f = await I.fulfilled(s);
|
|
1353
|
+
f && (s = f);
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
const B = new Headers();
|
|
1357
1357
|
Object.entries(
|
|
1358
1358
|
s.headers ?? {}
|
|
1359
|
-
).forEach(([I,
|
|
1359
|
+
).forEach(([I, f]) => B.set(I, String(f))), t?.headers && new Headers(t.headers).forEach((I, f) => B.set(f, I)), B.has("accept") || B.set("accept", "text/event-stream");
|
|
1360
1360
|
let E = t?.body ?? g;
|
|
1361
1361
|
const c = (B.get("content-type") || "").toLowerCase();
|
|
1362
1362
|
E && typeof E == "object" && !ArrayBuffer.isView(E) && !(E instanceof ArrayBuffer) && !(E instanceof Blob) && !(E instanceof FormData) && c.includes("application/json") && (E = JSON.stringify(E));
|
|
1363
|
-
const
|
|
1363
|
+
const w = {
|
|
1364
1364
|
...t,
|
|
1365
1365
|
method: s.method,
|
|
1366
1366
|
headers: B,
|
|
1367
1367
|
body: E
|
|
1368
|
-
}, i = await fetch(Rn(o, e),
|
|
1368
|
+
}, i = await fetch(Rn(o, e), w);
|
|
1369
1369
|
if (!i.ok)
|
|
1370
1370
|
throw new Error(`HTTP error! status: ${i.status}`);
|
|
1371
1371
|
const C = i.body?.getReader(), l = new TextDecoder();
|
|
@@ -1373,12 +1373,12 @@ class Kn {
|
|
|
1373
1373
|
throw new Error("No reader");
|
|
1374
1374
|
let a = !1;
|
|
1375
1375
|
for (; !a; ) {
|
|
1376
|
-
const { done: I, value:
|
|
1376
|
+
const { done: I, value: f } = await C.read();
|
|
1377
1377
|
if (I) {
|
|
1378
1378
|
a = !0, l.decode(new Uint8Array(0), { stream: !1 }), t?.onEnd?.(), C.releaseLock?.();
|
|
1379
1379
|
break;
|
|
1380
1380
|
}
|
|
1381
|
-
const D = l.decode(
|
|
1381
|
+
const D = l.decode(f, { stream: !0 });
|
|
1382
1382
|
t?.onMessage?.(D);
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
@@ -1532,8 +1532,8 @@ function Vn(A, e) {
|
|
|
1532
1532
|
async function o(B, E) {
|
|
1533
1533
|
if (console.warn(`Business error code ${B}: ${E}`), B === 530) {
|
|
1534
1534
|
L.warning(E || "登录已过期,请重新登录");
|
|
1535
|
-
const c = SA(),
|
|
1536
|
-
c.setAccessToken(null), await
|
|
1535
|
+
const c = SA(), w = gt(), i = Ze();
|
|
1536
|
+
c.setAccessToken(null), await w.logout(), i.tabs = [], i.cachedTabs = /* @__PURE__ */ new Set();
|
|
1537
1537
|
const C = window.location.hash.slice(1) || "/", l = MA.app?.loginPath || "/auth/login", a = C !== l ? `${l}?redirect=${encodeURIComponent(C)}` : l;
|
|
1538
1538
|
window.location.hash = a;
|
|
1539
1539
|
return;
|
|
@@ -1575,8 +1575,8 @@ function Vn(A, e) {
|
|
|
1575
1575
|
})
|
|
1576
1576
|
), g.addResponseInterceptor(
|
|
1577
1577
|
Sn((B, E) => {
|
|
1578
|
-
const c = E?.response?.data ?? {},
|
|
1579
|
-
L.error(
|
|
1578
|
+
const c = E?.response?.data ?? {}, w = c?.error ?? c?.message ?? "";
|
|
1579
|
+
L.error(w || B);
|
|
1580
1580
|
})
|
|
1581
1581
|
), g;
|
|
1582
1582
|
}
|
|
@@ -1605,14 +1605,14 @@ const Wn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1605
1605
|
},
|
|
1606
1606
|
emits: ["login"],
|
|
1607
1607
|
setup(A, { emit: e }) {
|
|
1608
|
-
const g = e, { t, locale: o } = aA(), s =
|
|
1608
|
+
const g = e, { t, locale: o } = aA(), s = p(), n = p(), B = uA({
|
|
1609
1609
|
username: "",
|
|
1610
1610
|
password: "",
|
|
1611
1611
|
langList: "",
|
|
1612
1612
|
macAddress: "",
|
|
1613
1613
|
cVerificationCode: "",
|
|
1614
1614
|
systemSign: ""
|
|
1615
|
-
}), E =
|
|
1615
|
+
}), E = p(0), c = p([]), w = p([]), i = p(!1), C = p(-1), l = p(!1), a = p(), I = p(""), f = p(!0), D = p(o.value || "zh-CN"), P = H(() => !["slide", "single"].includes(I.value)), v = H(() => `${t("向右滑动")}(${B.cVerificationCode || ""})`), h = (Z) => {
|
|
1616
1616
|
D.value = Z, o.value = Z, sessionStorage.removeItem("langObj"), window.location.reload();
|
|
1617
1617
|
}, z = () => {
|
|
1618
1618
|
const Z = document.querySelector(".d-01"), K = document.querySelector(".d-02");
|
|
@@ -1796,12 +1796,12 @@ const Wn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1796
1796
|
}
|
|
1797
1797
|
}, U = () => new Promise((Z, K) => {
|
|
1798
1798
|
Zn({ usernumb: B.username }).then(($) => {
|
|
1799
|
-
$.code === 200 ? (B.cVerificationCode = $.result.verificationCode, Z()) : (
|
|
1800
|
-
|
|
1799
|
+
$.code === 200 ? (B.cVerificationCode = $.result.verificationCode, Z()) : (f.value = !1, setTimeout(() => {
|
|
1800
|
+
f.value = !0;
|
|
1801
1801
|
}, 5e3), K(new Error("error")));
|
|
1802
1802
|
}).catch(($) => {
|
|
1803
|
-
|
|
1804
|
-
|
|
1803
|
+
f.value = !1, setTimeout(() => {
|
|
1804
|
+
f.value = !0;
|
|
1805
1805
|
}, 5e3), K($);
|
|
1806
1806
|
});
|
|
1807
1807
|
}), V = [es, ts, gs, os, ns, ss, Bs], T = () => {
|
|
@@ -1813,7 +1813,7 @@ const Wn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1813
1813
|
};
|
|
1814
1814
|
return yA(() => {
|
|
1815
1815
|
document.addEventListener("click", gA), z(), R(), M(), Kt({ cXuhao: "LANG_V3" }).then((Z) => {
|
|
1816
|
-
|
|
1816
|
+
w.value = Z.result;
|
|
1817
1817
|
});
|
|
1818
1818
|
}), je(() => {
|
|
1819
1819
|
document.removeEventListener("click", gA);
|
|
@@ -1936,7 +1936,7 @@ const Wn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1936
1936
|
], 2)
|
|
1937
1937
|
]),
|
|
1938
1938
|
default: u(() => [
|
|
1939
|
-
(m(!0), N(oA, null, BA(
|
|
1939
|
+
(m(!0), N(oA, null, BA(w.value, (nA) => (m(), W(sA, {
|
|
1940
1940
|
key: nA.id,
|
|
1941
1941
|
label: nA.cName,
|
|
1942
1942
|
value: nA.cXuhao
|
|
@@ -1947,7 +1947,7 @@ const Wn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1947
1947
|
]),
|
|
1948
1948
|
_: 1
|
|
1949
1949
|
}),
|
|
1950
|
-
|
|
1950
|
+
P.value ? (m(), W(tA, {
|
|
1951
1951
|
key: 0,
|
|
1952
1952
|
"hide-label": ""
|
|
1953
1953
|
}, {
|
|
@@ -1980,7 +1980,7 @@ const Wn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1980
1980
|
ref_key: "verifyPopoverRef",
|
|
1981
1981
|
ref: a
|
|
1982
1982
|
}, [
|
|
1983
|
-
|
|
1983
|
+
f.value ? (m(), W(Q(Dg), {
|
|
1984
1984
|
key: 0,
|
|
1985
1985
|
l: 42,
|
|
1986
1986
|
r: 10,
|
|
@@ -2012,7 +2012,7 @@ const Wn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
2012
2012
|
_: 1
|
|
2013
2013
|
}, 8, ["model"]),
|
|
2014
2014
|
d("div", Is, [
|
|
2015
|
-
|
|
2015
|
+
P.value ? (m(), N("div", ds, [
|
|
2016
2016
|
J(X(Z.$t("如果您无法获取到MAC地址,请先下载并安装插件")) + ": ", 1),
|
|
2017
2017
|
d("a", {
|
|
2018
2018
|
href: `${Q(Ie)}/sunnyoptical_getmac.exe`
|
|
@@ -2427,7 +2427,7 @@ const VA = {
|
|
|
2427
2427
|
{ label: "footer", value: "footer" }
|
|
2428
2428
|
]
|
|
2429
2429
|
}, xs = {}, rA = { ...VA, ...xs }, bt = VA.sfggOpts, Ys = VA.cbTypeOpts, Rc = VA.userSfqyOpts, Nc = VA.nCbtypeOpts, jc = VA.nLikematchOpts, Ks = (A) => {
|
|
2430
|
-
const e =
|
|
2430
|
+
const e = p(), g = p(), t = p(), o = uA({
|
|
2431
2431
|
visible: !1,
|
|
2432
2432
|
data: {},
|
|
2433
2433
|
type: 0,
|
|
@@ -2674,7 +2674,7 @@ const VA = {
|
|
|
2674
2674
|
content: `error:${l.message}`
|
|
2675
2675
|
});
|
|
2676
2676
|
});
|
|
2677
|
-
},
|
|
2677
|
+
}, w = () => {
|
|
2678
2678
|
o.data = {}, o.type = 0, o.confirmLoading = !1;
|
|
2679
2679
|
};
|
|
2680
2680
|
return {
|
|
@@ -2685,7 +2685,7 @@ const VA = {
|
|
|
2685
2685
|
handleNodefileOk: E,
|
|
2686
2686
|
openEditor: B,
|
|
2687
2687
|
handleOk: c,
|
|
2688
|
-
close:
|
|
2688
|
+
close: w,
|
|
2689
2689
|
Form: s,
|
|
2690
2690
|
formApi: n
|
|
2691
2691
|
};
|
|
@@ -2696,7 +2696,7 @@ const VA = {
|
|
|
2696
2696
|
},
|
|
2697
2697
|
emits: ["update:modelValue"],
|
|
2698
2698
|
setup(A, { emit: e }) {
|
|
2699
|
-
const g = A, t = e, o =
|
|
2699
|
+
const g = A, t = e, o = p(g.modelValue ? JSON.parse(g.modelValue) : []);
|
|
2700
2700
|
return lA(
|
|
2701
2701
|
() => g.modelValue,
|
|
2702
2702
|
(s) => {
|
|
@@ -2709,7 +2709,7 @@ const VA = {
|
|
|
2709
2709
|
},
|
|
2710
2710
|
{ deep: !0 }
|
|
2711
2711
|
), (s, n) => {
|
|
2712
|
-
const B = x("a-table-column"), E = x("a-input"), c = x("a-option"),
|
|
2712
|
+
const B = x("a-table-column"), E = x("a-input"), c = x("a-option"), w = x("a-select"), i = x("a-table");
|
|
2713
2713
|
return m(), N("div", Rs, [
|
|
2714
2714
|
r(i, {
|
|
2715
2715
|
data: o.value,
|
|
@@ -2807,7 +2807,7 @@ const VA = {
|
|
|
2807
2807
|
width: 100
|
|
2808
2808
|
}, {
|
|
2809
2809
|
cell: u(({ record: l }) => [
|
|
2810
|
-
r(
|
|
2810
|
+
r(w, {
|
|
2811
2811
|
modelValue: l.type,
|
|
2812
2812
|
"onUpdate:modelValue": (a) => l.type = a,
|
|
2813
2813
|
size: "mini",
|
|
@@ -2870,7 +2870,7 @@ const VA = {
|
|
|
2870
2870
|
},
|
|
2871
2871
|
emits: ["update:modelValue"],
|
|
2872
2872
|
setup(A, { emit: e }) {
|
|
2873
|
-
const g = A, t = e, o =
|
|
2873
|
+
const g = A, t = e, o = p(g.modelValue ? JSON.parse(g.modelValue) : []);
|
|
2874
2874
|
return lA(
|
|
2875
2875
|
() => g.modelValue,
|
|
2876
2876
|
(s) => {
|
|
@@ -2883,7 +2883,7 @@ const VA = {
|
|
|
2883
2883
|
},
|
|
2884
2884
|
{ deep: !0 }
|
|
2885
2885
|
), (s, n) => {
|
|
2886
|
-
const B = x("a-table-column"), E = x("a-input"), c = x("a-option"),
|
|
2886
|
+
const B = x("a-table-column"), E = x("a-input"), c = x("a-option"), w = x("a-select"), i = x("a-table");
|
|
2887
2887
|
return m(), N("div", js, [
|
|
2888
2888
|
r(i, {
|
|
2889
2889
|
data: o.value,
|
|
@@ -2940,7 +2940,7 @@ const VA = {
|
|
|
2940
2940
|
}),
|
|
2941
2941
|
r(B, { title: "选项卡区域类型" }, {
|
|
2942
2942
|
cell: u(({ record: C }) => [
|
|
2943
|
-
r(
|
|
2943
|
+
r(w, {
|
|
2944
2944
|
modelValue: C.type,
|
|
2945
2945
|
"onUpdate:modelValue": (l) => C.type = l,
|
|
2946
2946
|
size: "small",
|
|
@@ -2976,16 +2976,16 @@ const VA = {
|
|
|
2976
2976
|
emits: ["save"],
|
|
2977
2977
|
setup(A, { expose: e, emit: g }) {
|
|
2978
2978
|
const t = g;
|
|
2979
|
-
|
|
2979
|
+
p();
|
|
2980
2980
|
const o = async (a) => {
|
|
2981
|
-
const I = await l.validate(),
|
|
2981
|
+
const I = await l.validate(), f = await l.getValues();
|
|
2982
2982
|
if (I.valid) {
|
|
2983
|
-
if (
|
|
2983
|
+
if (f.cTemplatetype === "0" && zg(f.cViewpath, "Query"))
|
|
2984
2984
|
return L.error({
|
|
2985
2985
|
closable: !0,
|
|
2986
2986
|
content: "error: Form + Table 查询页,组件路径必须以Query结尾"
|
|
2987
2987
|
}), !1;
|
|
2988
|
-
|
|
2988
|
+
w();
|
|
2989
2989
|
} else
|
|
2990
2990
|
return L.error("校验失败: " + Object.keys(I.errors).join(", ")), !1;
|
|
2991
2991
|
}, {
|
|
@@ -2994,7 +2994,7 @@ const VA = {
|
|
|
2994
2994
|
visible: B,
|
|
2995
2995
|
tabMetaEditor: E,
|
|
2996
2996
|
formTabsMetaEditor: c,
|
|
2997
|
-
handleOk:
|
|
2997
|
+
handleOk: w,
|
|
2998
2998
|
close: i,
|
|
2999
2999
|
Form: C,
|
|
3000
3000
|
formApi: l
|
|
@@ -3002,8 +3002,8 @@ const VA = {
|
|
|
3002
3002
|
return e({
|
|
3003
3003
|
openEditor: s
|
|
3004
3004
|
}), (a, I) => {
|
|
3005
|
-
const
|
|
3006
|
-
return m(), W(
|
|
3005
|
+
const f = x("a-auto-complete"), D = x("a-textarea"), P = x("a-modal");
|
|
3006
|
+
return m(), W(P, {
|
|
3007
3007
|
visible: Q(B),
|
|
3008
3008
|
"onUpdate:visible": I[0] || (I[0] = (v) => le(B) ? B.value = v : null),
|
|
3009
3009
|
width: "800px",
|
|
@@ -3017,7 +3017,7 @@ const VA = {
|
|
|
3017
3017
|
default: u(() => [
|
|
3018
3018
|
r(Q(C), null, {
|
|
3019
3019
|
cViewpath: u(({ model: v, field: h }) => [
|
|
3020
|
-
r(
|
|
3020
|
+
r(f, {
|
|
3021
3021
|
modelValue: v[h.name],
|
|
3022
3022
|
"onUpdate:modelValue": (z) => v[h.name] = z,
|
|
3023
3023
|
data: ["Layout", "Second"],
|
|
@@ -3056,7 +3056,7 @@ const VA = {
|
|
|
3056
3056
|
};
|
|
3057
3057
|
}
|
|
3058
3058
|
}, Vs = (A) => {
|
|
3059
|
-
const e =
|
|
3059
|
+
const e = p(), g = uA({
|
|
3060
3060
|
data: [],
|
|
3061
3061
|
moduleId: null,
|
|
3062
3062
|
visible: !1,
|
|
@@ -3084,7 +3084,7 @@ const VA = {
|
|
|
3084
3084
|
closable: !0,
|
|
3085
3085
|
content: "请填写所有必填项"
|
|
3086
3086
|
}), !1;
|
|
3087
|
-
const { fullData:
|
|
3087
|
+
const { fullData: w } = c.getTableData(), i = w.map((l) => ({
|
|
3088
3088
|
cUrl: l.cUrl.trim(),
|
|
3089
3089
|
cDesc: l.cDesc?.trim() || "",
|
|
3090
3090
|
id: l.id,
|
|
@@ -3112,7 +3112,7 @@ const VA = {
|
|
|
3112
3112
|
};
|
|
3113
3113
|
g.data.unshift(c);
|
|
3114
3114
|
}, E = (c) => {
|
|
3115
|
-
g.data = g.data.filter((
|
|
3115
|
+
g.data = g.data.filter((w) => w.id !== c.id);
|
|
3116
3116
|
};
|
|
3117
3117
|
return {
|
|
3118
3118
|
...yt(g),
|
|
@@ -3135,7 +3135,7 @@ const VA = {
|
|
|
3135
3135
|
contentLoading: B,
|
|
3136
3136
|
handleOk: E,
|
|
3137
3137
|
close: c,
|
|
3138
|
-
insertEvent:
|
|
3138
|
+
insertEvent: w,
|
|
3139
3139
|
remove: i,
|
|
3140
3140
|
openEditor: C,
|
|
3141
3141
|
validRules: l
|
|
@@ -3143,7 +3143,7 @@ const VA = {
|
|
|
3143
3143
|
return e({
|
|
3144
3144
|
openEditor: C
|
|
3145
3145
|
}), (a, I) => {
|
|
3146
|
-
const
|
|
3146
|
+
const f = x("vxe-column"), D = x("a-button"), P = x("vxe-table"), v = x("a-modal");
|
|
3147
3147
|
return m(), W(v, {
|
|
3148
3148
|
visible: Q(s),
|
|
3149
3149
|
"onUpdate:visible": I[0] || (I[0] = (h) => le(s) ? s.value = h : null),
|
|
@@ -3157,7 +3157,7 @@ const VA = {
|
|
|
3157
3157
|
onCancel: Q(c)
|
|
3158
3158
|
}, {
|
|
3159
3159
|
default: u(() => [
|
|
3160
|
-
r(
|
|
3160
|
+
r(P, {
|
|
3161
3161
|
ref_key: "editTable",
|
|
3162
3162
|
ref: t,
|
|
3163
3163
|
"row-config": {
|
|
@@ -3180,7 +3180,7 @@ const VA = {
|
|
|
3180
3180
|
"empty-text": "暂无URL信息"
|
|
3181
3181
|
}, {
|
|
3182
3182
|
default: u(() => [
|
|
3183
|
-
r(
|
|
3183
|
+
r(f, {
|
|
3184
3184
|
width: "50%",
|
|
3185
3185
|
field: "cUrl",
|
|
3186
3186
|
title: "接口URL",
|
|
@@ -3196,7 +3196,7 @@ const VA = {
|
|
|
3196
3196
|
]),
|
|
3197
3197
|
_: 1
|
|
3198
3198
|
}),
|
|
3199
|
-
r(
|
|
3199
|
+
r(f, {
|
|
3200
3200
|
field: "cDesc",
|
|
3201
3201
|
title: "描述",
|
|
3202
3202
|
"edit-render": { autofocus: ".vxe-input--inner" }
|
|
@@ -3211,7 +3211,7 @@ const VA = {
|
|
|
3211
3211
|
]),
|
|
3212
3212
|
_: 1
|
|
3213
3213
|
}),
|
|
3214
|
-
r(
|
|
3214
|
+
r(f, {
|
|
3215
3215
|
field: "nClicknum",
|
|
3216
3216
|
title: "记录点击数",
|
|
3217
3217
|
"edit-render": { autofocus: ".vxe-input--inner" }
|
|
@@ -3238,7 +3238,7 @@ const VA = {
|
|
|
3238
3238
|
]),
|
|
3239
3239
|
_: 1
|
|
3240
3240
|
}),
|
|
3241
|
-
r(
|
|
3241
|
+
r(f, {
|
|
3242
3242
|
width: "80",
|
|
3243
3243
|
"show-overflow": "",
|
|
3244
3244
|
align: "center"
|
|
@@ -3249,7 +3249,7 @@ const VA = {
|
|
|
3249
3249
|
status: "success",
|
|
3250
3250
|
shape: "circle",
|
|
3251
3251
|
size: "small",
|
|
3252
|
-
onClick: Q(
|
|
3252
|
+
onClick: Q(w)
|
|
3253
3253
|
}, {
|
|
3254
3254
|
default: u(() => [
|
|
3255
3255
|
r(Q(Gt))
|
|
@@ -3363,7 +3363,7 @@ const _s = /* @__PURE__ */ wA(Ws, [["render", qs]]), $s = { class: "h-full overf
|
|
|
3363
3363
|
},
|
|
3364
3364
|
emits: ["currentChange"],
|
|
3365
3365
|
setup(A, { emit: e }) {
|
|
3366
|
-
const g =
|
|
3366
|
+
const g = p([]), t = p([]), o = p(), s = p(), n = p(), B = e, E = A, c = p(E.appSystem), w = (b) => jA(E.appSystem, ["id", b.id]), i = [
|
|
3367
3367
|
{
|
|
3368
3368
|
key: "create",
|
|
3369
3369
|
label: "新增下级资源",
|
|
@@ -3372,27 +3372,27 @@ const _s = /* @__PURE__ */ wA(Ws, [["render", qs]]), $s = { class: "h-full overf
|
|
|
3372
3372
|
{
|
|
3373
3373
|
key: "edit",
|
|
3374
3374
|
label: "编辑资源",
|
|
3375
|
-
visible: (b) => !
|
|
3375
|
+
visible: (b) => !w(b),
|
|
3376
3376
|
disabled: (b) => b.cModname === "EVERYONE",
|
|
3377
3377
|
handler: (b) => I(b)
|
|
3378
3378
|
},
|
|
3379
3379
|
{
|
|
3380
3380
|
key: "delete",
|
|
3381
3381
|
label: "删除资源",
|
|
3382
|
-
visible: (b) => !
|
|
3382
|
+
visible: (b) => !w(b),
|
|
3383
3383
|
disabled: (b) => b.cModname === "EVERYONE",
|
|
3384
|
-
handler: (b) =>
|
|
3384
|
+
handler: (b) => P(b)
|
|
3385
3385
|
},
|
|
3386
3386
|
{
|
|
3387
3387
|
key: "ModUrl",
|
|
3388
3388
|
label: "模块URL绑定",
|
|
3389
|
-
visible: (b) => !
|
|
3389
|
+
visible: (b) => !w(b),
|
|
3390
3390
|
handler: (b) => s.value.openEditor(b.id)
|
|
3391
3391
|
},
|
|
3392
3392
|
{
|
|
3393
3393
|
key: "PathChange",
|
|
3394
3394
|
label: "菜单路径变更",
|
|
3395
|
-
visible: (b) => !
|
|
3395
|
+
visible: (b) => !w(b),
|
|
3396
3396
|
disabled: (b) => b.cModname === "EVERYONE",
|
|
3397
3397
|
handler: (b) => n?.value.openEditor(b)
|
|
3398
3398
|
},
|
|
@@ -3439,12 +3439,12 @@ const _s = /* @__PURE__ */ wA(Ws, [["render", qs]]), $s = { class: "h-full overf
|
|
|
3439
3439
|
content: `error:${k.message}`
|
|
3440
3440
|
});
|
|
3441
3441
|
});
|
|
3442
|
-
},
|
|
3442
|
+
}, f = (b, F) => {
|
|
3443
3443
|
const k = b.findIndex((y) => y.id === F);
|
|
3444
3444
|
if (k > -1)
|
|
3445
3445
|
return b.splice(k, 1), !0;
|
|
3446
3446
|
for (const y of b)
|
|
3447
|
-
if (y.children?.length &&
|
|
3447
|
+
if (y.children?.length && f(y.children, F))
|
|
3448
3448
|
return !0;
|
|
3449
3449
|
return !1;
|
|
3450
3450
|
}, D = (b) => {
|
|
@@ -3453,7 +3453,7 @@ const _s = /* @__PURE__ */ wA(Ws, [["render", qs]]), $s = { class: "h-full overf
|
|
|
3453
3453
|
return !(y === String(b) || y.startsWith(`${b}-`));
|
|
3454
3454
|
};
|
|
3455
3455
|
g.value = g.value.filter(F), t.value = t.value.filter(F);
|
|
3456
|
-
},
|
|
3456
|
+
}, P = (b) => {
|
|
3457
3457
|
const F = Number(b.id);
|
|
3458
3458
|
dA.confirm({
|
|
3459
3459
|
title: "确认删除",
|
|
@@ -3464,7 +3464,7 @@ const _s = /* @__PURE__ */ wA(Ws, [["render", qs]]), $s = { class: "h-full overf
|
|
|
3464
3464
|
const k = { authResMenu: { id: b.id } };
|
|
3465
3465
|
await Ms(k).then((y) => {
|
|
3466
3466
|
if (y.success) {
|
|
3467
|
-
if (!
|
|
3467
|
+
if (!f(c.value, F)) {
|
|
3468
3468
|
L.error("删除失败,未找到目标节点");
|
|
3469
3469
|
return;
|
|
3470
3470
|
}
|
|
@@ -3607,10 +3607,10 @@ function eB() {
|
|
|
3607
3607
|
metaEdit: E,
|
|
3608
3608
|
setCallmethodsJson: c
|
|
3609
3609
|
} = this;
|
|
3610
|
-
let
|
|
3610
|
+
let w = [];
|
|
3611
3611
|
switch (A === "Button" ? A : `${e}${A}`) {
|
|
3612
3612
|
case "searchFormField":
|
|
3613
|
-
|
|
3613
|
+
w = [{
|
|
3614
3614
|
field: "id",
|
|
3615
3615
|
title: "ID",
|
|
3616
3616
|
width: "60"
|
|
@@ -3657,7 +3657,7 @@ function eB() {
|
|
|
3657
3657
|
const {
|
|
3658
3658
|
row: a,
|
|
3659
3659
|
column: I,
|
|
3660
|
-
rowIndex:
|
|
3660
|
+
rowIndex: f
|
|
3661
3661
|
} = C;
|
|
3662
3662
|
g({
|
|
3663
3663
|
row: a,
|
|
@@ -3965,7 +3965,7 @@ function eB() {
|
|
|
3965
3965
|
}];
|
|
3966
3966
|
break;
|
|
3967
3967
|
case "searchTableField":
|
|
3968
|
-
|
|
3968
|
+
w = [{
|
|
3969
3969
|
field: "id",
|
|
3970
3970
|
title: "ID",
|
|
3971
3971
|
width: "60"
|
|
@@ -4012,7 +4012,7 @@ function eB() {
|
|
|
4012
4012
|
const {
|
|
4013
4013
|
row: a,
|
|
4014
4014
|
column: I,
|
|
4015
|
-
rowIndex:
|
|
4015
|
+
rowIndex: f
|
|
4016
4016
|
} = C;
|
|
4017
4017
|
g({
|
|
4018
4018
|
row: a,
|
|
@@ -4172,7 +4172,7 @@ function eB() {
|
|
|
4172
4172
|
}];
|
|
4173
4173
|
break;
|
|
4174
4174
|
default:
|
|
4175
|
-
A === "Field" ?
|
|
4175
|
+
A === "Field" ? w = [{
|
|
4176
4176
|
field: "id",
|
|
4177
4177
|
title: "ID",
|
|
4178
4178
|
width: "60"
|
|
@@ -4225,7 +4225,7 @@ function eB() {
|
|
|
4225
4225
|
const {
|
|
4226
4226
|
row: a,
|
|
4227
4227
|
column: I,
|
|
4228
|
-
rowIndex:
|
|
4228
|
+
rowIndex: f
|
|
4229
4229
|
} = C;
|
|
4230
4230
|
g({
|
|
4231
4231
|
row: a,
|
|
@@ -4573,7 +4573,7 @@ function eB() {
|
|
|
4573
4573
|
}, null)]
|
|
4574
4574
|
})])]
|
|
4575
4575
|
}
|
|
4576
|
-
}] : A === "Button" && (
|
|
4576
|
+
}] : A === "Button" && (w = tB({
|
|
4577
4577
|
area: e,
|
|
4578
4578
|
setDynamicI18n: o,
|
|
4579
4579
|
deleteRow: n,
|
|
@@ -4581,7 +4581,7 @@ function eB() {
|
|
|
4581
4581
|
}));
|
|
4582
4582
|
break;
|
|
4583
4583
|
}
|
|
4584
|
-
return
|
|
4584
|
+
return w;
|
|
4585
4585
|
}
|
|
4586
4586
|
function tB({
|
|
4587
4587
|
area: A,
|
|
@@ -4892,8 +4892,8 @@ const pt = {
|
|
|
4892
4892
|
__name: "cMetaEditor",
|
|
4893
4893
|
emits: ["metaEmit"],
|
|
4894
4894
|
setup(A, { expose: e, emit: g }) {
|
|
4895
|
-
const t = g, o =
|
|
4896
|
-
o.value = !0, n.value =
|
|
4895
|
+
const t = g, o = p(!1), s = p(""), n = p(null), B = ({ row: c, rowIndex: w }) => {
|
|
4896
|
+
o.value = !0, n.value = w, s.value = JSON.stringify(JSON.parse(c.cMeta || "{}"), null, 2);
|
|
4897
4897
|
}, E = () => {
|
|
4898
4898
|
t("metaEmit", {
|
|
4899
4899
|
rowIndex: n.value,
|
|
@@ -4902,11 +4902,11 @@ const pt = {
|
|
|
4902
4902
|
};
|
|
4903
4903
|
return e({
|
|
4904
4904
|
openInit: B
|
|
4905
|
-
}), (c,
|
|
4905
|
+
}), (c, w) => {
|
|
4906
4906
|
const i = x("a-textarea"), C = x("a-button"), l = x("a-space"), a = x("a-modal");
|
|
4907
4907
|
return m(), W(a, {
|
|
4908
4908
|
visible: o.value,
|
|
4909
|
-
"onUpdate:visible":
|
|
4909
|
+
"onUpdate:visible": w[2] || (w[2] = (I) => o.value = I),
|
|
4910
4910
|
"mask-closable": !1,
|
|
4911
4911
|
"unmount-on-close": !0,
|
|
4912
4912
|
draggable: "",
|
|
@@ -4917,9 +4917,9 @@ const pt = {
|
|
|
4917
4917
|
r(l, null, {
|
|
4918
4918
|
default: u(() => [
|
|
4919
4919
|
r(C, {
|
|
4920
|
-
onClick:
|
|
4920
|
+
onClick: w[1] || (w[1] = (I) => o.value = !1)
|
|
4921
4921
|
}, {
|
|
4922
|
-
default: u(() => [...
|
|
4922
|
+
default: u(() => [...w[3] || (w[3] = [
|
|
4923
4923
|
J("取 消", -1)
|
|
4924
4924
|
])]),
|
|
4925
4925
|
_: 1
|
|
@@ -4928,7 +4928,7 @@ const pt = {
|
|
|
4928
4928
|
type: "primary",
|
|
4929
4929
|
onClick: E
|
|
4930
4930
|
}, {
|
|
4931
|
-
default: u(() => [...
|
|
4931
|
+
default: u(() => [...w[4] || (w[4] = [
|
|
4932
4932
|
J("确 定", -1)
|
|
4933
4933
|
])]),
|
|
4934
4934
|
_: 1
|
|
@@ -4940,7 +4940,7 @@ const pt = {
|
|
|
4940
4940
|
default: u(() => [
|
|
4941
4941
|
r(i, {
|
|
4942
4942
|
modelValue: s.value,
|
|
4943
|
-
"onUpdate:modelValue":
|
|
4943
|
+
"onUpdate:modelValue": w[0] || (w[0] = (I) => s.value = I),
|
|
4944
4944
|
"allow-clear": "",
|
|
4945
4945
|
autoSize: {
|
|
4946
4946
|
minRows: 5,
|
|
@@ -4956,7 +4956,7 @@ const pt = {
|
|
|
4956
4956
|
__name: "chooseTable",
|
|
4957
4957
|
emits: ["chooseTableEmit"],
|
|
4958
4958
|
setup(A, { expose: e, emit: g }) {
|
|
4959
|
-
const { t } = aA(), o =
|
|
4959
|
+
const { t } = aA(), o = p(!1), s = p([]), n = p([]), B = p(!1), E = g, c = [
|
|
4960
4960
|
{
|
|
4961
4961
|
fieldName: "tableName",
|
|
4962
4962
|
label: t("表名"),
|
|
@@ -4970,7 +4970,7 @@ const pt = {
|
|
|
4970
4970
|
showExtraOptions: !1,
|
|
4971
4971
|
onSearch: (a) => {
|
|
4972
4972
|
a !== "" ? (B.value = !0, Ss({ tableName: { name: a } }).then((I) => {
|
|
4973
|
-
n.value = I.result.map((
|
|
4973
|
+
n.value = I.result.map((f) => ({ label: f.name, value: f.name }));
|
|
4974
4974
|
}).finally(() => {
|
|
4975
4975
|
B.value = !1;
|
|
4976
4976
|
})) : n.value = [];
|
|
@@ -4980,7 +4980,7 @@ const pt = {
|
|
|
4980
4980
|
}
|
|
4981
4981
|
}
|
|
4982
4982
|
}
|
|
4983
|
-
],
|
|
4983
|
+
], w = [
|
|
4984
4984
|
{ type: "checkbox", width: 50, fixed: "left" },
|
|
4985
4985
|
{ field: "columnName", title: "字段名", width: 120 },
|
|
4986
4986
|
{ field: "dataType", title: "数据类型", width: 120 },
|
|
@@ -4997,22 +4997,22 @@ const pt = {
|
|
|
4997
4997
|
pageNo: a.pageNo,
|
|
4998
4998
|
pageSize: a.pageSize
|
|
4999
4999
|
};
|
|
5000
|
-
const { result:
|
|
5000
|
+
const { result: f } = await Ls(I);
|
|
5001
5001
|
return {
|
|
5002
|
-
list:
|
|
5003
|
-
total:
|
|
5002
|
+
list: f.records,
|
|
5003
|
+
total: f.total
|
|
5004
5004
|
};
|
|
5005
5005
|
};
|
|
5006
5006
|
return e({
|
|
5007
5007
|
openInit: i
|
|
5008
5008
|
}), (a, I) => (m(), W(Q(Ve), {
|
|
5009
5009
|
visible: o.value,
|
|
5010
|
-
"onUpdate:visible": I[0] || (I[0] = (
|
|
5010
|
+
"onUpdate:visible": I[0] || (I[0] = (f) => o.value = f),
|
|
5011
5011
|
modelValue: s.value,
|
|
5012
|
-
"onUpdate:modelValue": I[1] || (I[1] = (
|
|
5012
|
+
"onUpdate:modelValue": I[1] || (I[1] = (f) => s.value = f),
|
|
5013
5013
|
title: a.$t("选择实体表"),
|
|
5014
5014
|
"form-schema": c,
|
|
5015
|
-
"table-columns":
|
|
5015
|
+
"table-columns": w,
|
|
5016
5016
|
"search-api": l,
|
|
5017
5017
|
"field-names": { label: "tableName", value: "columnName", desc: "comments" },
|
|
5018
5018
|
onConfirm: C
|
|
@@ -5022,7 +5022,7 @@ const pt = {
|
|
|
5022
5022
|
__name: "fieldCallmethod",
|
|
5023
5023
|
emits: ["fieldCallmethodEdit"],
|
|
5024
5024
|
setup(A, { expose: e, emit: g }) {
|
|
5025
|
-
const t =
|
|
5025
|
+
const t = p(!1), o = p(""), s = p(!1), n = uA({
|
|
5026
5026
|
rowIndex: null,
|
|
5027
5027
|
field: null,
|
|
5028
5028
|
fieldDatas: []
|
|
@@ -5039,9 +5039,9 @@ const pt = {
|
|
|
5039
5039
|
customTableHeadFunc: "",
|
|
5040
5040
|
showSheetRowNum: !1,
|
|
5041
5041
|
showMaxExportNumber: !1
|
|
5042
|
-
}), E =
|
|
5043
|
-
|
|
5044
|
-
const c = g,
|
|
5042
|
+
}), E = p();
|
|
5043
|
+
p();
|
|
5044
|
+
const c = g, w = () => {
|
|
5045
5045
|
const I = {
|
|
5046
5046
|
callmethodType: [{ required: !0, message: "请选择", trigger: "change" }]
|
|
5047
5047
|
};
|
|
@@ -5061,16 +5061,16 @@ const pt = {
|
|
|
5061
5061
|
showSheetRowNum: !1,
|
|
5062
5062
|
showMaxExportNumber: !1
|
|
5063
5063
|
});
|
|
5064
|
-
}, C = ({ row: I, rowIndex:
|
|
5065
|
-
if (n.rowIndex =
|
|
5066
|
-
const
|
|
5067
|
-
if (
|
|
5068
|
-
|
|
5069
|
-
else if (nt(
|
|
5070
|
-
Object.assign(B, JSON.parse(
|
|
5064
|
+
}, C = ({ row: I, rowIndex: f, column: D }) => {
|
|
5065
|
+
if (n.rowIndex = f, n.field = D.field, i(), I[D.field]) {
|
|
5066
|
+
const P = I[D.field];
|
|
5067
|
+
if (P.indexOf("@") !== -1)
|
|
5068
|
+
P.split("@")[0].indexOf(",") !== -1 ? nt(P, "{") ? Object.assign(B, JSON.parse(P)) : (B.callmethodType = "导出", B.customType = "是", B.fileName = P.split(",")[0], P.split(",").length === 3 ? (B.handleClassPrefix = P.split(",")[1], B.exportType = P.split(",")[2] === "ALL" ? "一次性批量导出" : "自定义格式导出") : (B.handleClassPrefix = P.split(",")[1], B.exportType = "流式导出")) : (B.callmethodType = "导入", B.import1 = P.split(",")[0].split("@")[0], B.import2 = P.split(",")[0].split("@")[1], B.import3 = P.split(",")[1]);
|
|
5069
|
+
else if (nt(P, "{"))
|
|
5070
|
+
Object.assign(B, JSON.parse(P));
|
|
5071
5071
|
else {
|
|
5072
|
-
B.callmethodType = "导出", B.customType = "否", B.fileName =
|
|
5073
|
-
const v =
|
|
5072
|
+
B.callmethodType = "导出", B.customType = "否", B.fileName = P.split(",")[0], B.handleClassPrefix = P.split(",")[1];
|
|
5073
|
+
const v = P.split(",");
|
|
5074
5074
|
let h = "";
|
|
5075
5075
|
v.length === 3 ? v[2] === "ALL" ? h = "一次性批量导出" : v[2] === "CUSTOM" ? h = "自定义格式导出" : h = "" : h = "流式导出", B.exportType = h;
|
|
5076
5076
|
}
|
|
@@ -5086,9 +5086,9 @@ const pt = {
|
|
|
5086
5086
|
try {
|
|
5087
5087
|
if (await E.value.validate()) return !1;
|
|
5088
5088
|
s.value = !0;
|
|
5089
|
-
let
|
|
5089
|
+
let f = "";
|
|
5090
5090
|
if (B.callmethodType === "导入")
|
|
5091
|
-
|
|
5091
|
+
f = `${B.import1}@${B.import2},${B.import3}`;
|
|
5092
5092
|
else {
|
|
5093
5093
|
const D = {
|
|
5094
5094
|
callmethodType: B.callmethodType,
|
|
@@ -5100,11 +5100,11 @@ const pt = {
|
|
|
5100
5100
|
showSheetRowNum: B.showSheetRowNum,
|
|
5101
5101
|
showMaxExportNumber: B.showMaxExportNumber
|
|
5102
5102
|
};
|
|
5103
|
-
|
|
5103
|
+
f = JSON.stringify(D);
|
|
5104
5104
|
}
|
|
5105
5105
|
c("fieldCallmethodEdit", {
|
|
5106
5106
|
rowIndex: n.rowIndex,
|
|
5107
|
-
json:
|
|
5107
|
+
json: f,
|
|
5108
5108
|
field: n.field
|
|
5109
5109
|
}), t.value = !1;
|
|
5110
5110
|
} catch (I) {
|
|
@@ -5121,11 +5121,11 @@ const pt = {
|
|
|
5121
5121
|
});
|
|
5122
5122
|
}), e({
|
|
5123
5123
|
openInit: C
|
|
5124
|
-
}), (I,
|
|
5125
|
-
const D = x("a-option"),
|
|
5124
|
+
}), (I, f) => {
|
|
5125
|
+
const D = x("a-option"), P = x("a-select"), v = x("a-form-item"), h = x("a-input"), z = x("a-switch"), R = x("a-form"), M = x("a-button"), G = x("a-modal");
|
|
5126
5126
|
return m(), W(G, {
|
|
5127
5127
|
visible: t.value,
|
|
5128
|
-
"onUpdate:visible":
|
|
5128
|
+
"onUpdate:visible": f[11] || (f[11] = (S) => t.value = S),
|
|
5129
5129
|
title: o.value,
|
|
5130
5130
|
width: 800,
|
|
5131
5131
|
"mask-closable": !1
|
|
@@ -5133,7 +5133,7 @@ const pt = {
|
|
|
5133
5133
|
footer: u(() => [
|
|
5134
5134
|
d("div", nB, [
|
|
5135
5135
|
r(M, { onClick: a }, {
|
|
5136
|
-
default: u(() => [...
|
|
5136
|
+
default: u(() => [...f[16] || (f[16] = [
|
|
5137
5137
|
J("取 消", -1)
|
|
5138
5138
|
])]),
|
|
5139
5139
|
_: 1
|
|
@@ -5143,7 +5143,7 @@ const pt = {
|
|
|
5143
5143
|
loading: s.value,
|
|
5144
5144
|
onClick: l
|
|
5145
5145
|
}, {
|
|
5146
|
-
default: u(() => [...
|
|
5146
|
+
default: u(() => [...f[17] || (f[17] = [
|
|
5147
5147
|
J("确 定", -1)
|
|
5148
5148
|
])]),
|
|
5149
5149
|
_: 1
|
|
@@ -5155,7 +5155,7 @@ const pt = {
|
|
|
5155
5155
|
ref_key: "formRef",
|
|
5156
5156
|
ref: E,
|
|
5157
5157
|
model: B,
|
|
5158
|
-
rules:
|
|
5158
|
+
rules: w(),
|
|
5159
5159
|
layout: "vertical"
|
|
5160
5160
|
}, {
|
|
5161
5161
|
default: u(() => [
|
|
@@ -5164,9 +5164,9 @@ const pt = {
|
|
|
5164
5164
|
field: "callmethodType"
|
|
5165
5165
|
}, {
|
|
5166
5166
|
default: u(() => [
|
|
5167
|
-
r(
|
|
5167
|
+
r(P, {
|
|
5168
5168
|
modelValue: B.callmethodType,
|
|
5169
|
-
"onUpdate:modelValue":
|
|
5169
|
+
"onUpdate:modelValue": f[0] || (f[0] = (S) => B.callmethodType = S),
|
|
5170
5170
|
placeholder: "请选择"
|
|
5171
5171
|
}, {
|
|
5172
5172
|
default: u(() => [
|
|
@@ -5189,7 +5189,7 @@ const pt = {
|
|
|
5189
5189
|
default: u(() => [
|
|
5190
5190
|
r(h, {
|
|
5191
5191
|
modelValue: B.import1,
|
|
5192
|
-
"onUpdate:modelValue":
|
|
5192
|
+
"onUpdate:modelValue": f[1] || (f[1] = (S) => B.import1 = S),
|
|
5193
5193
|
placeholder: "请输入"
|
|
5194
5194
|
}, null, 8, ["modelValue"])
|
|
5195
5195
|
]),
|
|
@@ -5202,7 +5202,7 @@ const pt = {
|
|
|
5202
5202
|
default: u(() => [
|
|
5203
5203
|
r(h, {
|
|
5204
5204
|
modelValue: B.import2,
|
|
5205
|
-
"onUpdate:modelValue":
|
|
5205
|
+
"onUpdate:modelValue": f[2] || (f[2] = (S) => B.import2 = S),
|
|
5206
5206
|
placeholder: "请输入"
|
|
5207
5207
|
}, null, 8, ["modelValue"])
|
|
5208
5208
|
]),
|
|
@@ -5215,7 +5215,7 @@ const pt = {
|
|
|
5215
5215
|
default: u(() => [
|
|
5216
5216
|
r(h, {
|
|
5217
5217
|
modelValue: B.import3,
|
|
5218
|
-
"onUpdate:modelValue":
|
|
5218
|
+
"onUpdate:modelValue": f[3] || (f[3] = (S) => B.import3 = S),
|
|
5219
5219
|
placeholder: "请输入"
|
|
5220
5220
|
}, null, 8, ["modelValue"])
|
|
5221
5221
|
]),
|
|
@@ -5230,7 +5230,7 @@ const pt = {
|
|
|
5230
5230
|
default: u(() => [
|
|
5231
5231
|
r(h, {
|
|
5232
5232
|
modelValue: B.fileName,
|
|
5233
|
-
"onUpdate:modelValue":
|
|
5233
|
+
"onUpdate:modelValue": f[4] || (f[4] = (S) => B.fileName = S),
|
|
5234
5234
|
placeholder: "请输入"
|
|
5235
5235
|
}, null, 8, ["modelValue"])
|
|
5236
5236
|
]),
|
|
@@ -5243,7 +5243,7 @@ const pt = {
|
|
|
5243
5243
|
default: u(() => [
|
|
5244
5244
|
r(h, {
|
|
5245
5245
|
modelValue: B.handleClassPrefix,
|
|
5246
|
-
"onUpdate:modelValue":
|
|
5246
|
+
"onUpdate:modelValue": f[5] || (f[5] = (S) => B.handleClassPrefix = S),
|
|
5247
5247
|
placeholder: "请输入"
|
|
5248
5248
|
}, null, 8, ["modelValue"])
|
|
5249
5249
|
]),
|
|
@@ -5254,9 +5254,9 @@ const pt = {
|
|
|
5254
5254
|
field: "exportType"
|
|
5255
5255
|
}, {
|
|
5256
5256
|
default: u(() => [
|
|
5257
|
-
r(
|
|
5257
|
+
r(P, {
|
|
5258
5258
|
modelValue: B.exportType,
|
|
5259
|
-
"onUpdate:modelValue":
|
|
5259
|
+
"onUpdate:modelValue": f[6] || (f[6] = (S) => B.exportType = S),
|
|
5260
5260
|
placeholder: "请选择",
|
|
5261
5261
|
"allow-clear": ""
|
|
5262
5262
|
}, {
|
|
@@ -5277,19 +5277,19 @@ const pt = {
|
|
|
5277
5277
|
field: "bCustomTableHead"
|
|
5278
5278
|
}, {
|
|
5279
5279
|
default: u(() => [
|
|
5280
|
-
r(
|
|
5280
|
+
r(P, {
|
|
5281
5281
|
modelValue: B.bCustomTableHead,
|
|
5282
|
-
"onUpdate:modelValue":
|
|
5282
|
+
"onUpdate:modelValue": f[7] || (f[7] = (S) => B.bCustomTableHead = S)
|
|
5283
5283
|
}, {
|
|
5284
5284
|
default: u(() => [
|
|
5285
5285
|
r(D, { value: !0 }, {
|
|
5286
|
-
default: u(() => [...
|
|
5286
|
+
default: u(() => [...f[12] || (f[12] = [
|
|
5287
5287
|
J("是", -1)
|
|
5288
5288
|
])]),
|
|
5289
5289
|
_: 1
|
|
5290
5290
|
}),
|
|
5291
5291
|
r(D, { value: !1 }, {
|
|
5292
|
-
default: u(() => [...
|
|
5292
|
+
default: u(() => [...f[13] || (f[13] = [
|
|
5293
5293
|
J("否", -1)
|
|
5294
5294
|
])]),
|
|
5295
5295
|
_: 1
|
|
@@ -5306,19 +5306,19 @@ const pt = {
|
|
|
5306
5306
|
field: "customTableHeadFunc"
|
|
5307
5307
|
}, {
|
|
5308
5308
|
default: u(() => [
|
|
5309
|
-
r(
|
|
5309
|
+
r(P, {
|
|
5310
5310
|
modelValue: B.customTableHeadFunc,
|
|
5311
|
-
"onUpdate:modelValue":
|
|
5311
|
+
"onUpdate:modelValue": f[8] || (f[8] = (S) => B.customTableHeadFunc = S)
|
|
5312
5312
|
}, {
|
|
5313
5313
|
default: u(() => [
|
|
5314
5314
|
r(D, { value: "CUSTOM" }, {
|
|
5315
|
-
default: u(() => [...
|
|
5315
|
+
default: u(() => [...f[14] || (f[14] = [
|
|
5316
5316
|
J("自定义完全列", -1)
|
|
5317
5317
|
])]),
|
|
5318
5318
|
_: 1
|
|
5319
5319
|
}),
|
|
5320
5320
|
r(D, { value: "PART" }, {
|
|
5321
|
-
default: u(() => [...
|
|
5321
|
+
default: u(() => [...f[15] || (f[15] = [
|
|
5322
5322
|
J("修改部分", -1)
|
|
5323
5323
|
])]),
|
|
5324
5324
|
_: 1
|
|
@@ -5336,7 +5336,7 @@ const pt = {
|
|
|
5336
5336
|
default: u(() => [
|
|
5337
5337
|
r(z, {
|
|
5338
5338
|
modelValue: B.showSheetRowNum,
|
|
5339
|
-
"onUpdate:modelValue":
|
|
5339
|
+
"onUpdate:modelValue": f[9] || (f[9] = (S) => B.showSheetRowNum = S),
|
|
5340
5340
|
"checked-text": "是",
|
|
5341
5341
|
"unchecked-text": "否"
|
|
5342
5342
|
}, null, 8, ["modelValue"])
|
|
@@ -5350,7 +5350,7 @@ const pt = {
|
|
|
5350
5350
|
default: u(() => [
|
|
5351
5351
|
r(z, {
|
|
5352
5352
|
modelValue: B.showMaxExportNumber,
|
|
5353
|
-
"onUpdate:modelValue":
|
|
5353
|
+
"onUpdate:modelValue": f[10] || (f[10] = (S) => B.showMaxExportNumber = S),
|
|
5354
5354
|
"checked-text": "是",
|
|
5355
5355
|
"unchecked-text": "否"
|
|
5356
5356
|
}, null, 8, ["modelValue"])
|
|
@@ -5396,7 +5396,7 @@ const pt = {
|
|
|
5396
5396
|
},
|
|
5397
5397
|
emits: ["saveResourceCallback"],
|
|
5398
5398
|
setup(A, { emit: e }) {
|
|
5399
|
-
const g = A, t = e, o =
|
|
5399
|
+
const g = A, t = e, o = p([]), s = p(!1), n = p(null), B = p(), E = p(), c = p(), w = p(), i = H(() => eB.call({
|
|
5400
5400
|
type: g.type,
|
|
5401
5401
|
area: g.area,
|
|
5402
5402
|
datePickSetMeta: G,
|
|
@@ -5404,10 +5404,10 @@ const pt = {
|
|
|
5404
5404
|
setDynamicI18n: b,
|
|
5405
5405
|
pickTable: S,
|
|
5406
5406
|
deleteRow: h,
|
|
5407
|
-
insertRow:
|
|
5407
|
+
insertRow: P,
|
|
5408
5408
|
metaEdit: z,
|
|
5409
5409
|
setCallmethodsJson: F
|
|
5410
|
-
})), C =
|
|
5410
|
+
})), C = p({
|
|
5411
5411
|
columns: i,
|
|
5412
5412
|
height: g.height,
|
|
5413
5413
|
data: o,
|
|
@@ -5514,12 +5514,12 @@ const pt = {
|
|
|
5514
5514
|
s.value = !1;
|
|
5515
5515
|
}));
|
|
5516
5516
|
}
|
|
5517
|
-
},
|
|
5517
|
+
}, f = (y) => {
|
|
5518
5518
|
var U = "", V = g.moduleInfo.cViewpath.substring(0, g.moduleInfo.cViewpath.lastIndexOf("/")).split("/"), T = V[V.length - 1];
|
|
5519
5519
|
y === "add" || y === "edit" || y === "del" ? U = T + "/" + y : (y === "daoru" || y === "daochu") && (U = y + "/show"), o.value.push(Be({}, pt[y], { cArea: g.area, cStoremethod: U }));
|
|
5520
5520
|
}, D = () => {
|
|
5521
5521
|
o.value.push({ cArea: g.area });
|
|
5522
|
-
},
|
|
5522
|
+
}, P = ({ rowIndex: y }) => {
|
|
5523
5523
|
o.value.splice(y + 1, 0, { cArea: g.area });
|
|
5524
5524
|
}, v = () => {
|
|
5525
5525
|
o.value = a();
|
|
@@ -5558,7 +5558,7 @@ const pt = {
|
|
|
5558
5558
|
c.value.openInit({ row: y, rowIndex: U, column: V, tableData: o.value });
|
|
5559
5559
|
}, b = ({ row: y, rowIndex: U, column: V }) => {
|
|
5560
5560
|
}, F = ({ row: y, rowIndex: U, column: V }) => {
|
|
5561
|
-
|
|
5561
|
+
w.value.openInit({ row: y, rowIndex: U, column: V, tableData: o.value });
|
|
5562
5562
|
}, k = ({ rowIndex: y, json: U, field: V }) => {
|
|
5563
5563
|
o.value[y][V] = U;
|
|
5564
5564
|
};
|
|
@@ -5574,7 +5574,7 @@ const pt = {
|
|
|
5574
5574
|
r(T, {
|
|
5575
5575
|
size: "mini",
|
|
5576
5576
|
onClick: D,
|
|
5577
|
-
onSelect:
|
|
5577
|
+
onSelect: f
|
|
5578
5578
|
}, {
|
|
5579
5579
|
content: u(() => [
|
|
5580
5580
|
(m(!0), N(oA, null, BA(l.value, (K) => (m(), W(V, {
|
|
@@ -5637,7 +5637,7 @@ const pt = {
|
|
|
5637
5637
|
}, null, 512),
|
|
5638
5638
|
r(sB, {
|
|
5639
5639
|
ref_key: "fieldCallmethodRef",
|
|
5640
|
-
ref:
|
|
5640
|
+
ref: w,
|
|
5641
5641
|
onFieldCallmethodEdit: k
|
|
5642
5642
|
}, null, 512)
|
|
5643
5643
|
]),
|
|
@@ -5654,7 +5654,7 @@ const pt = {
|
|
|
5654
5654
|
}, cB = /* @__PURE__ */ q({
|
|
5655
5655
|
__name: "ConstructionConfig",
|
|
5656
5656
|
setup(A, { expose: e }) {
|
|
5657
|
-
const g =
|
|
5657
|
+
const g = p(!1), t = uA({
|
|
5658
5658
|
moduleInfo: null,
|
|
5659
5659
|
// 为后期模块有模板类型做准备,放一个个moduleInfo在此容器,不然可以直接将muduleInfo传给子组件
|
|
5660
5660
|
activeName: "",
|
|
@@ -5663,8 +5663,8 @@ const pt = {
|
|
|
5663
5663
|
resourceData: {}
|
|
5664
5664
|
}), o = H(() => {
|
|
5665
5665
|
let c = [];
|
|
5666
|
-
const { cTemplatetype:
|
|
5667
|
-
if (
|
|
5666
|
+
const { cTemplatetype: w, cMeta: i } = t.moduleInfo;
|
|
5667
|
+
if (w === "-1")
|
|
5668
5668
|
c = [
|
|
5669
5669
|
{
|
|
5670
5670
|
label: "字段",
|
|
@@ -5677,26 +5677,26 @@ const pt = {
|
|
|
5677
5677
|
key: "Button"
|
|
5678
5678
|
}
|
|
5679
5679
|
];
|
|
5680
|
-
else if (
|
|
5680
|
+
else if (w === "1") {
|
|
5681
5681
|
const C = JSON.parse(i);
|
|
5682
5682
|
c = WA(C, function(l, a, I) {
|
|
5683
|
-
return a.cArea.forEach((
|
|
5683
|
+
return a.cArea.forEach((f) => {
|
|
5684
5684
|
l.push({
|
|
5685
|
-
label: `${
|
|
5685
|
+
label: `${f.label}字段`,
|
|
5686
5686
|
type: "Field",
|
|
5687
|
-
area:
|
|
5688
|
-
key: `${
|
|
5687
|
+
area: f.value,
|
|
5688
|
+
key: `${f.value}Field`
|
|
5689
5689
|
}), l.push({
|
|
5690
|
-
label: `${
|
|
5690
|
+
label: `${f.label}按钮`,
|
|
5691
5691
|
type: "Button",
|
|
5692
|
-
area:
|
|
5693
|
-
key: `${
|
|
5692
|
+
area: f.value,
|
|
5693
|
+
key: `${f.value}Button`
|
|
5694
5694
|
});
|
|
5695
5695
|
}), l;
|
|
5696
5696
|
}, []);
|
|
5697
|
-
} else if (
|
|
5697
|
+
} else if (w === "4") {
|
|
5698
5698
|
const C = JSON.parse(i);
|
|
5699
|
-
c = WA(C, function(a, I,
|
|
5699
|
+
c = WA(C, function(a, I, f) {
|
|
5700
5700
|
return a.push({
|
|
5701
5701
|
label: `${I.label}字段`,
|
|
5702
5702
|
type: "Field",
|
|
@@ -5723,7 +5723,7 @@ const pt = {
|
|
|
5723
5723
|
}
|
|
5724
5724
|
], ...c];
|
|
5725
5725
|
} else {
|
|
5726
|
-
const C = jA(rA.templateList, ["value",
|
|
5726
|
+
const C = jA(rA.templateList, ["value", w])?.cArea;
|
|
5727
5727
|
c = WA(C, function(l, a, I) {
|
|
5728
5728
|
return l.push({
|
|
5729
5729
|
label: `${a}字段`,
|
|
@@ -5742,7 +5742,7 @@ const pt = {
|
|
|
5742
5742
|
});
|
|
5743
5743
|
lA(
|
|
5744
5744
|
() => t.moduleInfo,
|
|
5745
|
-
async (c,
|
|
5745
|
+
async (c, w) => {
|
|
5746
5746
|
if (c) {
|
|
5747
5747
|
const { id: i } = c;
|
|
5748
5748
|
await B(i), t.activeName = o.value.length > 0 ? Ot(o.value).key : "";
|
|
@@ -5764,11 +5764,11 @@ const pt = {
|
|
|
5764
5764
|
const { resButtonList: C, resFieldList: l } = i.result, a = de([
|
|
5765
5765
|
...de(Bt(l, "cArea")),
|
|
5766
5766
|
...de(Bt(C, "cArea"))
|
|
5767
|
-
]), I = WA(a, function(
|
|
5768
|
-
return
|
|
5767
|
+
]), I = WA(a, function(f, D, P) {
|
|
5768
|
+
return f[D] = {
|
|
5769
5769
|
Field: rt(l, ["cArea", D]),
|
|
5770
5770
|
Button: rt(C, ["cArea", D])
|
|
5771
|
-
},
|
|
5771
|
+
}, f;
|
|
5772
5772
|
}, {});
|
|
5773
5773
|
t.resourceData = Be({}, I, {
|
|
5774
5774
|
Field: l,
|
|
@@ -5778,20 +5778,20 @@ const pt = {
|
|
|
5778
5778
|
}).finally(() => {
|
|
5779
5779
|
g.value = !1;
|
|
5780
5780
|
});
|
|
5781
|
-
}, E = ({ area: c, type:
|
|
5781
|
+
}, E = ({ area: c, type: w }) => {
|
|
5782
5782
|
bs({
|
|
5783
5783
|
authResMenu: {
|
|
5784
5784
|
id: t?.moduleInfo?.id
|
|
5785
5785
|
},
|
|
5786
5786
|
area: c
|
|
5787
5787
|
}).then((i) => {
|
|
5788
|
-
const C =
|
|
5789
|
-
c &&
|
|
5788
|
+
const C = w === "Field" ? "resFieldList" : "resButtonList";
|
|
5789
|
+
c && w ? t.resourceData[c][w] = i.result[C] : t.resourceData[w] = i.result[C];
|
|
5790
5790
|
});
|
|
5791
5791
|
};
|
|
5792
5792
|
return e({
|
|
5793
5793
|
editableBaseData: t
|
|
5794
|
-
}), (c,
|
|
5794
|
+
}), (c, w) => {
|
|
5795
5795
|
const i = x("a-tab-pane"), C = x("a-tabs"), l = x("a-empty");
|
|
5796
5796
|
return m(), N("div", {
|
|
5797
5797
|
loading: g.value,
|
|
@@ -5800,7 +5800,7 @@ const pt = {
|
|
|
5800
5800
|
t.moduleInfo ? (m(), N("div", aB, [
|
|
5801
5801
|
r(C, {
|
|
5802
5802
|
modelValue: t.activeName,
|
|
5803
|
-
"onUpdate:modelValue":
|
|
5803
|
+
"onUpdate:modelValue": w[0] || (w[0] = (a) => t.activeName = a),
|
|
5804
5804
|
class: "w-full h-full"
|
|
5805
5805
|
}, {
|
|
5806
5806
|
default: u(() => [
|
|
@@ -5838,7 +5838,7 @@ const pt = {
|
|
|
5838
5838
|
}
|
|
5839
5839
|
},
|
|
5840
5840
|
setup(A) {
|
|
5841
|
-
const e = A, g =
|
|
5841
|
+
const e = A, g = p("300px"), t = p(), o = (s, { node: n }) => {
|
|
5842
5842
|
t.value.editableBaseData.moduleInfo = n;
|
|
5843
5843
|
};
|
|
5844
5844
|
return (s, n) => {
|
|
@@ -5917,7 +5917,7 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
5917
5917
|
},
|
|
5918
5918
|
emits: ["update:visible", "confirm"],
|
|
5919
5919
|
setup(A, { emit: e }) {
|
|
5920
|
-
const g = A, t = e, { t: o } = ie(), s =
|
|
5920
|
+
const g = A, t = e, { t: o } = ie(), s = p(!1), n = p([]), B = p(""), E = p(/* @__PURE__ */ new Map());
|
|
5921
5921
|
lA(
|
|
5922
5922
|
() => g.visible,
|
|
5923
5923
|
async (D) => {
|
|
@@ -5930,8 +5930,8 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
5930
5930
|
const D = await uB({
|
|
5931
5931
|
cCreateuser: g.userId
|
|
5932
5932
|
});
|
|
5933
|
-
n.value = D.result || [], n.value.forEach((
|
|
5934
|
-
|
|
5933
|
+
n.value = D.result || [], n.value.forEach((P) => {
|
|
5934
|
+
P.modList?.forEach((v) => {
|
|
5935
5935
|
v.check === "1" && E.value.set(v.cShowname, v);
|
|
5936
5936
|
});
|
|
5937
5937
|
}), n.value.length > 0 && (B.value = n.value[0].cShowname);
|
|
@@ -5941,31 +5941,31 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
5941
5941
|
s.value = !1;
|
|
5942
5942
|
}
|
|
5943
5943
|
}
|
|
5944
|
-
function
|
|
5944
|
+
function w() {
|
|
5945
5945
|
t("confirm", Array.from(E.value.values())), t("update:visible", !1);
|
|
5946
5946
|
}
|
|
5947
5947
|
function i(D) {
|
|
5948
|
-
const
|
|
5949
|
-
|
|
5948
|
+
const P = new Map(E.value);
|
|
5949
|
+
P.set(D.cShowname, D), E.value = P;
|
|
5950
5950
|
}
|
|
5951
5951
|
function C(D) {
|
|
5952
|
-
const
|
|
5953
|
-
|
|
5952
|
+
const P = new Map(E.value);
|
|
5953
|
+
P.delete(D), E.value = P;
|
|
5954
5954
|
}
|
|
5955
5955
|
function l() {
|
|
5956
5956
|
t("update:visible", !1);
|
|
5957
5957
|
}
|
|
5958
5958
|
const a = H(() => n.value.find((D) => D.cShowname === B.value)), I = H(() => {
|
|
5959
|
-
const D = new Set(
|
|
5960
|
-
return a.value?.modList?.filter((
|
|
5961
|
-
}),
|
|
5962
|
-
return (D,
|
|
5959
|
+
const D = new Set(f.value.map((P) => P.cShowname));
|
|
5960
|
+
return a.value?.modList?.filter((P) => !D.has(P.cShowname)) || [];
|
|
5961
|
+
}), f = H(() => Array.from(E.value.values()));
|
|
5962
|
+
return (D, P) => (m(), W(Q(vA), {
|
|
5963
5963
|
"model-value": g.visible,
|
|
5964
5964
|
title: D.$t("common.create"),
|
|
5965
5965
|
width: 800,
|
|
5966
5966
|
"help-message": D.$t("common.dashboard.quickEntry.addEntryTip"),
|
|
5967
|
-
"onUpdate:modelValue":
|
|
5968
|
-
onOk:
|
|
5967
|
+
"onUpdate:modelValue": P[0] || (P[0] = (v) => t("update:visible", v)),
|
|
5968
|
+
onOk: w,
|
|
5969
5969
|
onClose: l
|
|
5970
5970
|
}, {
|
|
5971
5971
|
default: u(() => [
|
|
@@ -5973,7 +5973,7 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
5973
5973
|
d("div", vB, [
|
|
5974
5974
|
d("div", DB, X(D.$t("common.dashboard.quickEntry.category")), 1),
|
|
5975
5975
|
d("div", mB, [
|
|
5976
|
-
s.value ? (m(), N("div", bB, [...
|
|
5976
|
+
s.value ? (m(), N("div", bB, [...P[1] || (P[1] = [
|
|
5977
5977
|
d("div", { class: "w-5 h-5 border-2 border-[var(--color-border-2)] border-t-[rgb(var(--primary-6))] rounded-full animate-spin" }, null, -1)
|
|
5978
5978
|
])])) : (m(), N("div", pB, [
|
|
5979
5979
|
(m(!0), N(oA, null, BA(n.value, (v) => (m(), N("button", {
|
|
@@ -6048,10 +6048,10 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
6048
6048
|
}),
|
|
6049
6049
|
d("span", WB, X(D.$t("common.dashboard.quickEntry.selected")), 1)
|
|
6050
6050
|
]),
|
|
6051
|
-
d("span", TB, X(
|
|
6051
|
+
d("span", TB, X(f.value.length), 1)
|
|
6052
6052
|
]),
|
|
6053
6053
|
d("div", qB, [
|
|
6054
|
-
|
|
6054
|
+
f.value.length === 0 ? (m(), N("div", _B, [
|
|
6055
6055
|
d("div", $B, [
|
|
6056
6056
|
r(Q(Lg), {
|
|
6057
6057
|
size: 20,
|
|
@@ -6060,7 +6060,7 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
6060
6060
|
]),
|
|
6061
6061
|
d("span", Ar, X(D.$t("common.dashboard.quickEntry.noSelection")), 1)
|
|
6062
6062
|
])) : (m(), N("div", er, [
|
|
6063
|
-
(m(!0), N(oA, null, BA(
|
|
6063
|
+
(m(!0), N(oA, null, BA(f.value, (v) => (m(), N("div", {
|
|
6064
6064
|
key: v.cShowname,
|
|
6065
6065
|
class: "flex items-center justify-between px-3 py-2.5 rounded-lg bg-[var(--color-bg-1)] border border-[rgba(var(--primary-6),0.12)] group"
|
|
6066
6066
|
}, [
|
|
@@ -6093,7 +6093,7 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
6093
6093
|
name: "Dashboard",
|
|
6094
6094
|
__name: "Dashboard",
|
|
6095
6095
|
setup(A) {
|
|
6096
|
-
const { t: e } = ie(), g = XA(), t =
|
|
6096
|
+
const { t: e } = ie(), g = XA(), t = p([]), o = p(!1), s = p(!1), n = H(() => {
|
|
6097
6097
|
const a = (/* @__PURE__ */ new Date()).getHours();
|
|
6098
6098
|
return a < 6 ? e("common.dashboard.greeting.night") : a < 12 ? e("common.dashboard.greeting.morning") : a < 18 ? e("common.dashboard.greeting.afternoon") : e("common.dashboard.greeting.evening");
|
|
6099
6099
|
}), B = H(() => {
|
|
@@ -6121,7 +6121,7 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
6121
6121
|
o.value = !1;
|
|
6122
6122
|
}
|
|
6123
6123
|
}
|
|
6124
|
-
function
|
|
6124
|
+
function w() {
|
|
6125
6125
|
s.value = !0;
|
|
6126
6126
|
}
|
|
6127
6127
|
async function i(a) {
|
|
@@ -6151,7 +6151,7 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
6151
6151
|
return yA(() => {
|
|
6152
6152
|
c();
|
|
6153
6153
|
}), (a, I) => {
|
|
6154
|
-
const
|
|
6154
|
+
const f = x("a-button"), D = x("a-spin"), P = x("a-empty"), v = x("a-card");
|
|
6155
6155
|
return m(), N("div", nr, [
|
|
6156
6156
|
d("header", sr, [
|
|
6157
6157
|
d("div", Br, [
|
|
@@ -6173,10 +6173,10 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
6173
6173
|
]),
|
|
6174
6174
|
d("h2", ir, X(a.$t("common.dashboard.quickEntry.title")), 1)
|
|
6175
6175
|
]),
|
|
6176
|
-
r(
|
|
6176
|
+
r(f, {
|
|
6177
6177
|
type: "text",
|
|
6178
6178
|
size: "small",
|
|
6179
|
-
onClick:
|
|
6179
|
+
onClick: w
|
|
6180
6180
|
}, {
|
|
6181
6181
|
icon: u(() => [
|
|
6182
6182
|
r(Q(TA), { size: 16 })
|
|
@@ -6189,7 +6189,7 @@ const wB = { class: "flex gap-4 min-h-[440px]" }, vB = { class: "w-52 shrink-0 f
|
|
|
6189
6189
|
]),
|
|
6190
6190
|
o.value ? (m(), N("div", Er, [
|
|
6191
6191
|
r(D)
|
|
6192
|
-
])) : t.value.length === 0 ? (m(), W(
|
|
6192
|
+
])) : t.value.length === 0 ? (m(), W(P, {
|
|
6193
6193
|
key: 1,
|
|
6194
6194
|
description: a.$t("common.noData")
|
|
6195
6195
|
}, null, 8, ["description"])) : (m(), N("div", Ir, [
|
|
@@ -6244,7 +6244,9 @@ const pr = {
|
|
|
6244
6244
|
name: "MenuItem",
|
|
6245
6245
|
__name: "menu-item",
|
|
6246
6246
|
props: {
|
|
6247
|
-
menus: {}
|
|
6247
|
+
menus: {},
|
|
6248
|
+
openKeys: {},
|
|
6249
|
+
collapsed: { type: Boolean }
|
|
6248
6250
|
},
|
|
6249
6251
|
setup(A) {
|
|
6250
6252
|
return (e, g) => {
|
|
@@ -6264,9 +6266,12 @@ const pr = {
|
|
|
6264
6266
|
J(" " + X(n.name), 1)
|
|
6265
6267
|
]),
|
|
6266
6268
|
default: u(() => [
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6269
|
+
A.collapsed || A.openKeys.includes(n.path) ? (m(), W(t, {
|
|
6270
|
+
key: 0,
|
|
6271
|
+
menus: n.children,
|
|
6272
|
+
"open-keys": A.openKeys,
|
|
6273
|
+
collapsed: A.collapsed
|
|
6274
|
+
}, null, 8, ["menus", "open-keys", "collapsed"])) : iA("", !0)
|
|
6270
6275
|
]),
|
|
6271
6276
|
_: 2
|
|
6272
6277
|
}, 1024)) : (m(), W(s, {
|
|
@@ -6309,15 +6314,15 @@ const pr = {
|
|
|
6309
6314
|
const E = x("a-breadcrumb-item"), c = x("a-breadcrumb");
|
|
6310
6315
|
return m(), W(c, { class: "ml-4" }, {
|
|
6311
6316
|
default: u(() => [
|
|
6312
|
-
(m(!0), N(oA, null, BA(t.value, (
|
|
6313
|
-
key:
|
|
6317
|
+
(m(!0), N(oA, null, BA(t.value, (w) => (m(), W(E, {
|
|
6318
|
+
key: w.path
|
|
6314
6319
|
}, {
|
|
6315
6320
|
default: u(() => [
|
|
6316
|
-
o(
|
|
6321
|
+
o(w) ? (m(), N("span", Mr, X(w.meta?.title), 1)) : (m(), N("a", {
|
|
6317
6322
|
key: 1,
|
|
6318
|
-
onClick: xA((i) => s(
|
|
6323
|
+
onClick: xA((i) => s(w), ["prevent"]),
|
|
6319
6324
|
class: "cursor-pointer text-[var(--color-text-2)] hover:text-[var(--color-text-1)] transition-colors"
|
|
6320
|
-
}, X(
|
|
6325
|
+
}, X(w.meta?.title), 9, Fr))
|
|
6321
6326
|
]),
|
|
6322
6327
|
_: 2
|
|
6323
6328
|
}, 1024))), 128))
|
|
@@ -6339,7 +6344,7 @@ const pr = {
|
|
|
6339
6344
|
name: "HeaderSearch",
|
|
6340
6345
|
__name: "search",
|
|
6341
6346
|
setup(A) {
|
|
6342
|
-
const e = KA(), g = SA(), t =
|
|
6347
|
+
const e = KA(), g = SA(), t = p(!1), o = p(""), s = p(), n = p(), B = p([]), E = p(0), c = p(!0), w = navigator.platform.toUpperCase().indexOf("MAC") >= 0, i = (M, G = []) => {
|
|
6343
6348
|
let S = [];
|
|
6344
6349
|
for (const O of M) {
|
|
6345
6350
|
const Y = O.meta?.title || O.title || O.name, b = [...G];
|
|
@@ -6365,7 +6370,7 @@ const pr = {
|
|
|
6365
6370
|
E.value = 0;
|
|
6366
6371
|
});
|
|
6367
6372
|
let a = -1, I = -1;
|
|
6368
|
-
const
|
|
6373
|
+
const f = (M) => {
|
|
6369
6374
|
if (a === -1 && I === -1) {
|
|
6370
6375
|
a = M.screenX, I = M.screenY;
|
|
6371
6376
|
return;
|
|
@@ -6375,7 +6380,7 @@ const pr = {
|
|
|
6375
6380
|
t.value = !0, o.value = "", fA(() => {
|
|
6376
6381
|
s.value?.focus();
|
|
6377
6382
|
});
|
|
6378
|
-
},
|
|
6383
|
+
}, P = () => {
|
|
6379
6384
|
o.value = "";
|
|
6380
6385
|
}, v = (M) => {
|
|
6381
6386
|
e.push(M.path), t.value = !1;
|
|
@@ -6413,7 +6418,7 @@ const pr = {
|
|
|
6413
6418
|
class: "text-[var(--color-text-3)]"
|
|
6414
6419
|
}),
|
|
6415
6420
|
G[3] || (G[3] = d("span", { class: "text-[var(--color-text-3)] text-xs" }, "搜索...", -1)),
|
|
6416
|
-
d("span", zr, X(
|
|
6421
|
+
d("span", zr, X(w ? "⌘ K" : "Ctrl K"), 1)
|
|
6417
6422
|
]),
|
|
6418
6423
|
r(S, {
|
|
6419
6424
|
visible: t.value,
|
|
@@ -6424,7 +6429,7 @@ const pr = {
|
|
|
6424
6429
|
top: "100px",
|
|
6425
6430
|
width: "520px",
|
|
6426
6431
|
class: "search-modal",
|
|
6427
|
-
onClose:
|
|
6432
|
+
onClose: P
|
|
6428
6433
|
}, {
|
|
6429
6434
|
default: u(() => [
|
|
6430
6435
|
d("div", kr, [
|
|
@@ -6455,7 +6460,7 @@ const pr = {
|
|
|
6455
6460
|
class: "overflow-y-auto custom-scrollbar p-1.5 flex-1",
|
|
6456
6461
|
ref_key: "listRef",
|
|
6457
6462
|
ref: n,
|
|
6458
|
-
onMousemove:
|
|
6463
|
+
onMousemove: f
|
|
6459
6464
|
}, [
|
|
6460
6465
|
l.value.length > 0 ? (m(), N(oA, { key: 0 }, [
|
|
6461
6466
|
G[4] || (G[4] = d("div", { class: "text-[10px] text-[var(--color-text-4)] px-2 py-1.5 font-medium" }, "应用菜单", -1)),
|
|
@@ -6642,12 +6647,12 @@ const pr = {
|
|
|
6642
6647
|
});
|
|
6643
6648
|
function Zr() {
|
|
6644
6649
|
const A = kt(), e = XA(), g = (n) => {
|
|
6645
|
-
const B = e.resources || [], E = (c,
|
|
6650
|
+
const B = e.resources || [], E = (c, w) => {
|
|
6646
6651
|
for (const i of c) {
|
|
6647
|
-
if (i.cUrl ===
|
|
6652
|
+
if (i.cUrl === w)
|
|
6648
6653
|
return i.id;
|
|
6649
6654
|
if (i.children?.length > 0) {
|
|
6650
|
-
const C = E(i.children,
|
|
6655
|
+
const C = E(i.children, w);
|
|
6651
6656
|
if (C) return C;
|
|
6652
6657
|
}
|
|
6653
6658
|
}
|
|
@@ -6730,17 +6735,17 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
6730
6735
|
name: "Tabbar",
|
|
6731
6736
|
__name: "index",
|
|
6732
6737
|
setup(A) {
|
|
6733
|
-
const e = Ze(), g = SA(), t = kt(), o = KA(), s = We(), { fetchFavorites: n, addCurrentPage: B, removeFavoriteItem: E } = Zr(), { favorites: c, loading:
|
|
6738
|
+
const e = Ze(), g = SA(), t = kt(), o = KA(), s = We(), { fetchFavorites: n, addCurrentPage: B, removeFavoriteItem: E } = Zr(), { favorites: c, loading: w, hasFavorites: i, adding: C } = io(t), l = p(!1), a = (Y) => {
|
|
6734
6739
|
l.value = Y, Y && !i.value && n();
|
|
6735
6740
|
}, I = (Y) => {
|
|
6736
6741
|
Y.cUrl && o.push(Y.cUrl);
|
|
6737
|
-
},
|
|
6742
|
+
}, f = async () => {
|
|
6738
6743
|
const Y = await B(s.path);
|
|
6739
6744
|
Y.success ? L.success(Y.message) : L.warning(Y.message);
|
|
6740
6745
|
}, D = async (Y) => {
|
|
6741
6746
|
const b = await E(Y);
|
|
6742
6747
|
b.success ? L.success(b.message) : L.warning(b.message);
|
|
6743
|
-
},
|
|
6748
|
+
}, P = () => {
|
|
6744
6749
|
e.toggleContentFullScreen();
|
|
6745
6750
|
}, v = (Y) => Y.path === s.path, h = (Y) => {
|
|
6746
6751
|
o.push(Y.path);
|
|
@@ -6799,7 +6804,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
6799
6804
|
await e.toggleTabPin(b);
|
|
6800
6805
|
break;
|
|
6801
6806
|
case "maximize":
|
|
6802
|
-
b.path !== s.path && await o.push(b.path),
|
|
6807
|
+
b.path !== s.path && await o.push(b.path), P();
|
|
6803
6808
|
break;
|
|
6804
6809
|
case "close-other":
|
|
6805
6810
|
await e.closeOtherTabs(b);
|
|
@@ -6846,7 +6851,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
6846
6851
|
d("div", {
|
|
6847
6852
|
class: CA(["flex items-center justify-center w-5 h-5 rounded cursor-pointer text-[var(--color-text-4)] hover:text-[rgb(var(--primary-6))] hover:bg-[var(--color-fill-2)] transition-colors", { "opacity-50 pointer-events-none": Q(C) }]),
|
|
6848
6853
|
title: "收藏当前页面",
|
|
6849
|
-
onClick: xA(
|
|
6854
|
+
onClick: xA(f, ["stop"])
|
|
6850
6855
|
}, [
|
|
6851
6856
|
r(Q(OA), {
|
|
6852
6857
|
icon: Q(C) ? Q(It) : Q(TA),
|
|
@@ -6855,7 +6860,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
6855
6860
|
}, null, 8, ["icon", "class"])
|
|
6856
6861
|
], 2)
|
|
6857
6862
|
]),
|
|
6858
|
-
Q(
|
|
6863
|
+
Q(w) ? (m(), N("div", Tr, [
|
|
6859
6864
|
r(Q(It), {
|
|
6860
6865
|
size: 20,
|
|
6861
6866
|
class: "animate-spin text-[var(--color-text-3)]"
|
|
@@ -7047,7 +7052,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7047
7052
|
}),
|
|
7048
7053
|
d("div", {
|
|
7049
7054
|
class: "flex items-center justify-center w-8 h-8 rounded-sm cursor-pointer transition-colors text-[var(--color-text-2)] hover:bg-[rgba(var(--primary-6),0.1)] hover:text-[rgb(var(--primary-6))]",
|
|
7050
|
-
onClick:
|
|
7055
|
+
onClick: P
|
|
7051
7056
|
}, [
|
|
7052
7057
|
r(Q(OA), {
|
|
7053
7058
|
icon: Q(e).contentFullScreen ? Q(ft) : Q(wt),
|
|
@@ -7062,7 +7067,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7062
7067
|
name: "LanguageToggle",
|
|
7063
7068
|
__name: "language-toggle",
|
|
7064
7069
|
setup(A) {
|
|
7065
|
-
const { locale: e } = ie(), g = xt(), t =
|
|
7070
|
+
const { locale: e } = ie(), g = xt(), t = p([]);
|
|
7066
7071
|
yA(() => {
|
|
7067
7072
|
Kt({ cXuhao: "LANG_V3" }).then((s) => {
|
|
7068
7073
|
t.value = s.result || [];
|
|
@@ -7111,7 +7116,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7111
7116
|
name: "PasswordModal",
|
|
7112
7117
|
__name: "password-modal",
|
|
7113
7118
|
setup(A, { expose: e }) {
|
|
7114
|
-
const g = XA(), t =
|
|
7119
|
+
const g = XA(), t = p(!1), o = p(!1), [s, n] = hA({
|
|
7115
7120
|
schema: [
|
|
7116
7121
|
{
|
|
7117
7122
|
fieldName: "cOldPwd",
|
|
@@ -7181,7 +7186,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7181
7186
|
} finally {
|
|
7182
7187
|
o.value = !1;
|
|
7183
7188
|
}
|
|
7184
|
-
},
|
|
7189
|
+
}, w = () => {
|
|
7185
7190
|
E();
|
|
7186
7191
|
};
|
|
7187
7192
|
return e({
|
|
@@ -7195,7 +7200,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7195
7200
|
fullscreen: !1,
|
|
7196
7201
|
"ok-loading": o.value,
|
|
7197
7202
|
onOk: c,
|
|
7198
|
-
onCancel:
|
|
7203
|
+
onCancel: w
|
|
7199
7204
|
}, {
|
|
7200
7205
|
default: u(() => [
|
|
7201
7206
|
r(Q(s))
|
|
@@ -7207,9 +7212,9 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7207
7212
|
name: "SettingsModal",
|
|
7208
7213
|
__name: "settings-modal",
|
|
7209
7214
|
setup(A, { expose: e }) {
|
|
7210
|
-
const g = wg(), t =
|
|
7215
|
+
const g = wg(), t = p(!1), o = p(!1), s = p(g.primaryColor), n = p(!1), B = p(g.tableRowHeight), E = H(() => ot.find((a) => a.value === B.value)?.label || "默认"), c = () => {
|
|
7211
7216
|
s.value = g.primaryColor, B.value = g.tableRowHeight, t.value = !0;
|
|
7212
|
-
},
|
|
7217
|
+
}, w = () => {
|
|
7213
7218
|
t.value = !1;
|
|
7214
7219
|
}, i = async () => {
|
|
7215
7220
|
o.value = !0;
|
|
@@ -7219,13 +7224,13 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7219
7224
|
o.value = !1;
|
|
7220
7225
|
}
|
|
7221
7226
|
}, C = () => {
|
|
7222
|
-
|
|
7227
|
+
w();
|
|
7223
7228
|
};
|
|
7224
7229
|
return e({
|
|
7225
7230
|
open: c,
|
|
7226
|
-
close:
|
|
7231
|
+
close: w
|
|
7227
7232
|
}), (l, a) => {
|
|
7228
|
-
const I = x("a-color-picker"),
|
|
7233
|
+
const I = x("a-color-picker"), f = x("a-divider"), D = x("a-button"), P = x("a-link");
|
|
7229
7234
|
return m(), W(Q(vA), {
|
|
7230
7235
|
modelValue: t.value,
|
|
7231
7236
|
"onUpdate:modelValue": a[4] || (a[4] = (v) => t.value = v),
|
|
@@ -7261,7 +7266,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7261
7266
|
}, null, 8, ["modelValue", "popup-visible"])
|
|
7262
7267
|
])
|
|
7263
7268
|
]),
|
|
7264
|
-
r(
|
|
7269
|
+
r(f, { class: "!my-4" }),
|
|
7265
7270
|
d("div", EC, [
|
|
7266
7271
|
a[9] || (a[9] = d("span", { class: "text-sm font-medium text-[var(--color-text-1)]" }, "主题色预览", -1)),
|
|
7267
7272
|
d("div", IC, [
|
|
@@ -7286,7 +7291,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7286
7291
|
])]),
|
|
7287
7292
|
_: 1
|
|
7288
7293
|
}, 8, ["style"]),
|
|
7289
|
-
r(
|
|
7294
|
+
r(P, {
|
|
7290
7295
|
style: EA({ color: s.value })
|
|
7291
7296
|
}, {
|
|
7292
7297
|
default: u(() => [...a[8] || (a[8] = [
|
|
@@ -7297,7 +7302,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7297
7302
|
])
|
|
7298
7303
|
])
|
|
7299
7304
|
]),
|
|
7300
|
-
r(
|
|
7305
|
+
r(f, { class: "!my-4" }),
|
|
7301
7306
|
d("div", uC, [
|
|
7302
7307
|
d("div", fC, [
|
|
7303
7308
|
a[10] || (a[10] = d("span", { class: "text-sm font-medium text-[var(--color-text-1)]" }, "表格行高", -1)),
|
|
@@ -7357,9 +7362,9 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7357
7362
|
name: "UserAvatar",
|
|
7358
7363
|
__name: "user-avatar",
|
|
7359
7364
|
setup(A) {
|
|
7360
|
-
const e = KA(), g = XA(), t = SA(), o =
|
|
7361
|
-
const
|
|
7362
|
-
return
|
|
7365
|
+
const e = KA(), g = XA(), t = SA(), o = p(null), s = p(null), n = H(() => {
|
|
7366
|
+
const w = g.name || "";
|
|
7367
|
+
return w.length <= 2 ? w : w.slice(-2);
|
|
7363
7368
|
}), B = () => {
|
|
7364
7369
|
o.value?.open();
|
|
7365
7370
|
}, E = () => {
|
|
@@ -7367,18 +7372,18 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7367
7372
|
}, c = async () => {
|
|
7368
7373
|
try {
|
|
7369
7374
|
await Hn(), sessionStorage.clear(), g.$reset(), t.resetState();
|
|
7370
|
-
const
|
|
7375
|
+
const w = e.currentRoute.value.fullPath;
|
|
7371
7376
|
e.push({
|
|
7372
7377
|
path: "/auth/login",
|
|
7373
7378
|
query: {
|
|
7374
|
-
redirect:
|
|
7379
|
+
redirect: w
|
|
7375
7380
|
}
|
|
7376
7381
|
});
|
|
7377
|
-
} catch (
|
|
7378
|
-
console.error("退出登录失败:",
|
|
7382
|
+
} catch (w) {
|
|
7383
|
+
console.error("退出登录失败:", w);
|
|
7379
7384
|
}
|
|
7380
7385
|
};
|
|
7381
|
-
return (
|
|
7386
|
+
return (w, i) => {
|
|
7382
7387
|
const C = x("a-doption"), l = x("a-dropdown");
|
|
7383
7388
|
return m(), N(oA, null, [
|
|
7384
7389
|
r(l, {
|
|
@@ -7403,7 +7408,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7403
7408
|
r(Q(ro), { size: 16 })
|
|
7404
7409
|
]),
|
|
7405
7410
|
default: u(() => [
|
|
7406
|
-
J(" " + X(
|
|
7411
|
+
J(" " + X(w.$t("common.editPassword")), 1)
|
|
7407
7412
|
]),
|
|
7408
7413
|
_: 1
|
|
7409
7414
|
}),
|
|
@@ -7412,7 +7417,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7412
7417
|
r(Q(Co), { size: 16 })
|
|
7413
7418
|
]),
|
|
7414
7419
|
default: u(() => [
|
|
7415
|
-
J(" " + X(
|
|
7420
|
+
J(" " + X(w.$t("common.settings")), 1)
|
|
7416
7421
|
]),
|
|
7417
7422
|
_: 1
|
|
7418
7423
|
}),
|
|
@@ -7424,7 +7429,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7424
7429
|
r(Q(lo), { size: 16 })
|
|
7425
7430
|
]),
|
|
7426
7431
|
default: u(() => [
|
|
7427
|
-
J(" " + X(
|
|
7432
|
+
J(" " + X(w.$t("common.logout")), 1)
|
|
7428
7433
|
]),
|
|
7429
7434
|
_: 1
|
|
7430
7435
|
})
|
|
@@ -7460,37 +7465,37 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7460
7465
|
name: "BasicLayout",
|
|
7461
7466
|
__name: "index",
|
|
7462
7467
|
setup(A) {
|
|
7463
|
-
const e = xt(), g = SA(), t = Ze(), o = KA(), s = We(), { getCachedTabs: n, getExcludeCachedTabs: B, renderRouteView: E } = vg(t), c =
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7468
|
+
const e = xt(), g = SA(), t = Ze(), o = KA(), s = We(), { getCachedTabs: n, getExcludeCachedTabs: B, renderRouteView: E } = vg(t), c = p(!1), w = p([]), i = p([]), C = (f, D) => {
|
|
7469
|
+
const P = [], v = (h) => {
|
|
7470
|
+
for (const z of h) {
|
|
7471
|
+
if (z.path === D) return !0;
|
|
7472
|
+
if (z.children?.length) {
|
|
7473
|
+
if (P.push(z.path), v(z.children)) return !0;
|
|
7474
|
+
P.pop();
|
|
7475
|
+
}
|
|
7469
7476
|
}
|
|
7470
|
-
|
|
7471
|
-
|
|
7477
|
+
return !1;
|
|
7478
|
+
};
|
|
7479
|
+
return v(f), P;
|
|
7472
7480
|
};
|
|
7473
7481
|
lA(
|
|
7474
|
-
() => s.path,
|
|
7475
|
-
(
|
|
7476
|
-
f.value = [
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
i.value.includes(v) || i.value.push(v);
|
|
7480
|
-
});
|
|
7482
|
+
[() => s.path, () => g.accessMenus],
|
|
7483
|
+
([f]) => {
|
|
7484
|
+
f && (w.value = [f], C(g.accessMenus, f).forEach((D) => {
|
|
7485
|
+
i.value.includes(D) || i.value.push(D);
|
|
7486
|
+
}));
|
|
7481
7487
|
},
|
|
7482
7488
|
{ immediate: !0 }
|
|
7483
|
-
// 立即执行一次以初始化状态
|
|
7484
7489
|
);
|
|
7485
|
-
const l = (
|
|
7486
|
-
c.value =
|
|
7490
|
+
const l = (f, D) => {
|
|
7491
|
+
c.value = f;
|
|
7487
7492
|
}, a = () => {
|
|
7488
7493
|
c.value = !c.value;
|
|
7489
|
-
}, I = (
|
|
7490
|
-
o.push(
|
|
7494
|
+
}, I = (f) => {
|
|
7495
|
+
o.push(f);
|
|
7491
7496
|
};
|
|
7492
|
-
return (
|
|
7493
|
-
const
|
|
7497
|
+
return (f, D) => {
|
|
7498
|
+
const P = x("a-menu"), v = x("a-layout-sider"), h = x("a-layout-header"), z = x("router-view"), R = x("a-layout-content"), M = x("a-layout");
|
|
7494
7499
|
return m(), W(M, {
|
|
7495
7500
|
class: "h-screen w-screen",
|
|
7496
7501
|
ref: "rootLayoutRef"
|
|
@@ -7523,19 +7528,20 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7523
7528
|
], 4)) : iA("", !0),
|
|
7524
7529
|
r(Q(ht), { class: "flex-1 overflow-hidden" }, {
|
|
7525
7530
|
default: u(() => [
|
|
7526
|
-
r(
|
|
7527
|
-
"selected-keys":
|
|
7528
|
-
"onUpdate:selectedKeys": D[0] || (D[0] = (G) =>
|
|
7531
|
+
r(P, {
|
|
7532
|
+
"selected-keys": w.value,
|
|
7533
|
+
"onUpdate:selectedKeys": D[0] || (D[0] = (G) => w.value = G),
|
|
7529
7534
|
"open-keys": i.value,
|
|
7530
7535
|
"onUpdate:openKeys": D[1] || (D[1] = (G) => i.value = G),
|
|
7531
7536
|
onMenuItemClick: I,
|
|
7532
|
-
style: { width: "100%" }
|
|
7533
|
-
"auto-open": !0
|
|
7537
|
+
style: { width: "100%" }
|
|
7534
7538
|
}, {
|
|
7535
7539
|
default: u(() => [
|
|
7536
7540
|
r(Pr, {
|
|
7537
|
-
menus: Q(g).accessMenus
|
|
7538
|
-
|
|
7541
|
+
menus: Q(g).accessMenus,
|
|
7542
|
+
"open-keys": i.value,
|
|
7543
|
+
collapsed: c.value
|
|
7544
|
+
}, null, 8, ["menus", "open-keys", "collapsed"])
|
|
7539
7545
|
]),
|
|
7540
7546
|
_: 1
|
|
7541
7547
|
}, 8, ["selected-keys", "open-keys"])
|
|
@@ -7610,7 +7616,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7610
7616
|
}, 512);
|
|
7611
7617
|
};
|
|
7612
7618
|
}
|
|
7613
|
-
}), Vc = /* @__PURE__ */ wA(XC, [["__scopeId", "data-v-
|
|
7619
|
+
}), Vc = /* @__PURE__ */ wA(XC, [["__scopeId", "data-v-d124d3fa"]]), ZC = ({ t: A }) => {
|
|
7614
7620
|
const e = [
|
|
7615
7621
|
{
|
|
7616
7622
|
fieldName: "cModname",
|
|
@@ -7724,7 +7730,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7724
7730
|
tableColumns: t
|
|
7725
7731
|
} = ZC({
|
|
7726
7732
|
t: e
|
|
7727
|
-
}), o =
|
|
7733
|
+
}), o = p(!1), s = p(""), n = p(!1), B = H(() => {
|
|
7728
7734
|
if (!s.value) return "";
|
|
7729
7735
|
try {
|
|
7730
7736
|
const R = JSON.parse(s.value);
|
|
@@ -7744,15 +7750,15 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7744
7750
|
return j.post("/core/assUserOperationLog/selectForPage", G);
|
|
7745
7751
|
}, {
|
|
7746
7752
|
QueryForm: c,
|
|
7747
|
-
formApi:
|
|
7753
|
+
formApi: w,
|
|
7748
7754
|
Grid: i,
|
|
7749
7755
|
gridApi: C,
|
|
7750
7756
|
submitting: l,
|
|
7751
7757
|
handleGlobalEnter: a,
|
|
7752
7758
|
searchPlanList: I,
|
|
7753
|
-
currentSearchPlan:
|
|
7759
|
+
currentSearchPlan: f,
|
|
7754
7760
|
resourceId: D,
|
|
7755
|
-
nResourceid:
|
|
7761
|
+
nResourceid: P,
|
|
7756
7762
|
handleSearchPlanSearch: v,
|
|
7757
7763
|
handleDefaultPlanLoaded: h
|
|
7758
7764
|
} = kA({
|
|
@@ -7910,7 +7916,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7910
7916
|
},
|
|
7911
7917
|
emits: ["update:visible", "success"],
|
|
7912
7918
|
setup(A, { expose: e, emit: g }) {
|
|
7913
|
-
const { t } = aA(), o = A, s = g, n =
|
|
7919
|
+
const { t } = aA(), o = A, s = g, n = p(null), B = uA({
|
|
7914
7920
|
id: "",
|
|
7915
7921
|
jobGroup: "",
|
|
7916
7922
|
jobDesc: "",
|
|
@@ -7924,7 +7930,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7924
7930
|
glueRemark: "",
|
|
7925
7931
|
childJobId: "",
|
|
7926
7932
|
jobStatus: "1"
|
|
7927
|
-
}), E =
|
|
7933
|
+
}), E = p([]), c = p(!1), w = async () => {
|
|
7928
7934
|
try {
|
|
7929
7935
|
const l = await j.post("/schedule/jobinfo/findJobGroup", {});
|
|
7930
7936
|
l.success && l.data && (E.value = l.data.map((a) => ({
|
|
@@ -7938,7 +7944,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7938
7944
|
lA(() => o.formData, (l) => {
|
|
7939
7945
|
l && Object.assign(B, l);
|
|
7940
7946
|
}, { deep: !0 }), yA(() => {
|
|
7941
|
-
|
|
7947
|
+
w();
|
|
7942
7948
|
});
|
|
7943
7949
|
const i = async () => {
|
|
7944
7950
|
n.value && n.value.validate().then(async () => {
|
|
@@ -7988,7 +7994,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
7988
7994
|
}), s("update:visible", !0);
|
|
7989
7995
|
}
|
|
7990
7996
|
}), (l, a) => {
|
|
7991
|
-
const I = x("a-divider"),
|
|
7997
|
+
const I = x("a-divider"), f = x("a-option"), D = x("a-select"), P = x("a-form-item"), v = x("a-input"), h = x("a-radio"), z = x("a-radio-group"), R = x("a-textarea"), M = x("a-form"), G = x("a-button"), S = x("a-modal");
|
|
7992
7998
|
return m(), W(S, {
|
|
7993
7999
|
title: B.id ? Q(t)("jobinfo.editTitle") : Q(t)("jobinfo.addTitle"),
|
|
7994
8000
|
visible: A.visible,
|
|
@@ -8012,7 +8018,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8012
8018
|
]),
|
|
8013
8019
|
_: 1
|
|
8014
8020
|
}, 8, ["content-position"]),
|
|
8015
|
-
r(
|
|
8021
|
+
r(P, {
|
|
8016
8022
|
label: Q(t)("jobinfo.executor"),
|
|
8017
8023
|
field: "jobGroup",
|
|
8018
8024
|
rules: [{ required: !0, message: Q(t)("jobinfo.selectExecutor") }]
|
|
@@ -8024,7 +8030,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8024
8030
|
placeholder: Q(t)("jobinfo.selectExecutor")
|
|
8025
8031
|
}, {
|
|
8026
8032
|
default: u(() => [
|
|
8027
|
-
(m(!0), N(oA, null, BA(E.value, (O) => (m(), W(
|
|
8033
|
+
(m(!0), N(oA, null, BA(E.value, (O) => (m(), W(f, {
|
|
8028
8034
|
key: O.value,
|
|
8029
8035
|
value: O.value
|
|
8030
8036
|
}, {
|
|
@@ -8039,7 +8045,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8039
8045
|
]),
|
|
8040
8046
|
_: 1
|
|
8041
8047
|
}, 8, ["label", "rules"]),
|
|
8042
|
-
r(
|
|
8048
|
+
r(P, {
|
|
8043
8049
|
label: Q(t)("jobinfo.jobDesc"),
|
|
8044
8050
|
field: "jobDesc",
|
|
8045
8051
|
rules: [{ required: !0, message: Q(t)("jobinfo.inputJobDesc") }]
|
|
@@ -8053,7 +8059,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8053
8059
|
]),
|
|
8054
8060
|
_: 1
|
|
8055
8061
|
}, 8, ["label", "rules"]),
|
|
8056
|
-
r(
|
|
8062
|
+
r(P, {
|
|
8057
8063
|
label: Q(t)("jobinfo.author"),
|
|
8058
8064
|
field: "author",
|
|
8059
8065
|
rules: [{ required: !0, message: Q(t)("jobinfo.inputAuthor") }]
|
|
@@ -8067,7 +8073,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8067
8073
|
]),
|
|
8068
8074
|
_: 1
|
|
8069
8075
|
}, 8, ["label", "rules"]),
|
|
8070
|
-
r(
|
|
8076
|
+
r(P, {
|
|
8071
8077
|
label: Q(t)("jobinfo.alarmEmail"),
|
|
8072
8078
|
field: "alarmEmail"
|
|
8073
8079
|
}, {
|
|
@@ -8086,7 +8092,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8086
8092
|
]),
|
|
8087
8093
|
_: 1
|
|
8088
8094
|
}, 8, ["content-position"]),
|
|
8089
|
-
r(
|
|
8095
|
+
r(P, {
|
|
8090
8096
|
label: Q(t)("jobinfo.scheduleType"),
|
|
8091
8097
|
field: "scheduleType",
|
|
8092
8098
|
rules: [{ required: !0, message: Q(t)("jobinfo.selectScheduleType") }]
|
|
@@ -8115,7 +8121,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8115
8121
|
]),
|
|
8116
8122
|
_: 1
|
|
8117
8123
|
}, 8, ["label", "rules"]),
|
|
8118
|
-
r(
|
|
8124
|
+
r(P, {
|
|
8119
8125
|
label: Q(t)("jobinfo.cronExpression"),
|
|
8120
8126
|
field: "jobCron",
|
|
8121
8127
|
rules: [{ required: B.scheduleType === "CRON", message: Q(t)("jobinfo.inputCronExpression") }]
|
|
@@ -8130,7 +8136,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8130
8136
|
]),
|
|
8131
8137
|
_: 1
|
|
8132
8138
|
}, 8, ["label", "rules"]),
|
|
8133
|
-
r(
|
|
8139
|
+
r(P, {
|
|
8134
8140
|
label: Q(t)("jobinfo.scheduleConf"),
|
|
8135
8141
|
field: "scheduleConf",
|
|
8136
8142
|
rules: [{ required: B.scheduleType === "FIX_RATE", message: Q(t)("jobinfo.inputScheduleConf") }]
|
|
@@ -8151,7 +8157,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8151
8157
|
]),
|
|
8152
8158
|
_: 1
|
|
8153
8159
|
}, 8, ["content-position"]),
|
|
8154
|
-
r(
|
|
8160
|
+
r(P, {
|
|
8155
8161
|
label: Q(t)("jobinfo.glueType"),
|
|
8156
8162
|
field: "glueType",
|
|
8157
8163
|
rules: [{ required: !0, message: Q(t)("jobinfo.selectGlueType") }]
|
|
@@ -8180,7 +8186,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8180
8186
|
]),
|
|
8181
8187
|
_: 1
|
|
8182
8188
|
}, 8, ["label", "rules"]),
|
|
8183
|
-
r(
|
|
8189
|
+
r(P, {
|
|
8184
8190
|
label: Q(t)("jobinfo.jobHandler"),
|
|
8185
8191
|
field: "glueSource",
|
|
8186
8192
|
rules: [{ required: !0, message: Q(t)("jobinfo.inputJobHandler") }]
|
|
@@ -8194,7 +8200,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8194
8200
|
]),
|
|
8195
8201
|
_: 1
|
|
8196
8202
|
}, 8, ["label", "rules"]),
|
|
8197
|
-
r(
|
|
8203
|
+
r(P, {
|
|
8198
8204
|
label: Q(t)("jobinfo.remark"),
|
|
8199
8205
|
field: "glueRemark"
|
|
8200
8206
|
}, {
|
|
@@ -8208,7 +8214,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8208
8214
|
]),
|
|
8209
8215
|
_: 1
|
|
8210
8216
|
}, 8, ["label"]),
|
|
8211
|
-
r(
|
|
8217
|
+
r(P, {
|
|
8212
8218
|
label: Q(t)("jobinfo.childJobId"),
|
|
8213
8219
|
field: "childJobId"
|
|
8214
8220
|
}, {
|
|
@@ -8221,7 +8227,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8221
8227
|
]),
|
|
8222
8228
|
_: 1
|
|
8223
8229
|
}, 8, ["label"]),
|
|
8224
|
-
r(
|
|
8230
|
+
r(P, {
|
|
8225
8231
|
label: Q(t)("jobinfo.jobStatus"),
|
|
8226
8232
|
field: "jobStatus",
|
|
8227
8233
|
rules: [{ required: !0, message: Q(t)("jobinfo.selectJobStatus") }]
|
|
@@ -8284,11 +8290,11 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8284
8290
|
},
|
|
8285
8291
|
emits: ["update:visible", "success"],
|
|
8286
8292
|
setup(A, { expose: e, emit: g }) {
|
|
8287
|
-
const { t } = aA(), o = A, s = g, n =
|
|
8293
|
+
const { t } = aA(), o = A, s = g, n = p(null), B = uA({
|
|
8288
8294
|
id: "",
|
|
8289
8295
|
jobDesc: "",
|
|
8290
8296
|
executorParam: ""
|
|
8291
|
-
}), E =
|
|
8297
|
+
}), E = p(!1);
|
|
8292
8298
|
lA(() => o.formData, (i) => {
|
|
8293
8299
|
i && Object.assign(B, {
|
|
8294
8300
|
id: i.id,
|
|
@@ -8303,14 +8309,14 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8303
8309
|
(await j.post("/schedule/jobinfo/trigger", {
|
|
8304
8310
|
id: B.id,
|
|
8305
8311
|
executorParam: B.executorParam
|
|
8306
|
-
})).success && (L.success(t("jobinfo.executeSuccess")), s("success"),
|
|
8312
|
+
})).success && (L.success(t("jobinfo.executeSuccess")), s("success"), w());
|
|
8307
8313
|
} catch (i) {
|
|
8308
8314
|
console.error("执行失败:", i), L.error(t("jobinfo.executeFailed"));
|
|
8309
8315
|
} finally {
|
|
8310
8316
|
E.value = !1;
|
|
8311
8317
|
}
|
|
8312
8318
|
});
|
|
8313
|
-
},
|
|
8319
|
+
}, w = () => {
|
|
8314
8320
|
n.value && n.value.clearValidate(), Object.assign(B, {
|
|
8315
8321
|
id: "",
|
|
8316
8322
|
jobDesc: "",
|
|
@@ -8330,8 +8336,8 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8330
8336
|
}), s("update:visible", !0);
|
|
8331
8337
|
}
|
|
8332
8338
|
}), (i, C) => {
|
|
8333
|
-
const l = x("a-input"), a = x("a-form-item"), I = x("a-textarea"),
|
|
8334
|
-
return m(), W(
|
|
8339
|
+
const l = x("a-input"), a = x("a-form-item"), I = x("a-textarea"), f = x("a-form"), D = x("a-button"), P = x("a-modal");
|
|
8340
|
+
return m(), W(P, {
|
|
8335
8341
|
title: Q(t)("jobinfo.executeOnce"),
|
|
8336
8342
|
visible: A.visible,
|
|
8337
8343
|
"onUpdate:visible": C[2] || (C[2] = (v) => s("update:visible", v)),
|
|
@@ -8341,7 +8347,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8341
8347
|
footer: !1
|
|
8342
8348
|
}, {
|
|
8343
8349
|
default: u(() => [
|
|
8344
|
-
r(
|
|
8350
|
+
r(f, {
|
|
8345
8351
|
ref_key: "formRef",
|
|
8346
8352
|
ref: n,
|
|
8347
8353
|
model: B,
|
|
@@ -8387,7 +8393,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8387
8393
|
]),
|
|
8388
8394
|
_: 1
|
|
8389
8395
|
}, 8, ["loading"]),
|
|
8390
|
-
r(D, { onClick:
|
|
8396
|
+
r(D, { onClick: w }, {
|
|
8391
8397
|
default: u(() => [
|
|
8392
8398
|
J(X(Q(t)("jobinfo.cancel")), 1)
|
|
8393
8399
|
]),
|
|
@@ -8413,7 +8419,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8413
8419
|
glueSource: "",
|
|
8414
8420
|
glueRemark: "",
|
|
8415
8421
|
version: ""
|
|
8416
|
-
}), B =
|
|
8422
|
+
}), B = p([]), E = p(!1), c = p(!1);
|
|
8417
8423
|
lA(() => o.formData, (a) => {
|
|
8418
8424
|
a && (Object.assign(n, {
|
|
8419
8425
|
id: a.id,
|
|
@@ -8421,9 +8427,9 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8421
8427
|
glueSource: a.glueSource || "",
|
|
8422
8428
|
glueRemark: a.glueRemark || "",
|
|
8423
8429
|
version: ""
|
|
8424
|
-
}),
|
|
8430
|
+
}), w());
|
|
8425
8431
|
}, { deep: !0 });
|
|
8426
|
-
const
|
|
8432
|
+
const w = async () => {
|
|
8427
8433
|
E.value = !0;
|
|
8428
8434
|
try {
|
|
8429
8435
|
const a = await j.post("/schedule/jobcode/get", { id: n.id });
|
|
@@ -8439,7 +8445,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8439
8445
|
E.value = !1;
|
|
8440
8446
|
}
|
|
8441
8447
|
}, i = (a) => {
|
|
8442
|
-
const I = B.value.find((
|
|
8448
|
+
const I = B.value.find((f) => f.value === a);
|
|
8443
8449
|
I && (n.glueSource = I.content, n.glueRemark = I.remark);
|
|
8444
8450
|
}, C = async () => {
|
|
8445
8451
|
c.value = !0;
|
|
@@ -8448,7 +8454,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8448
8454
|
id: n.id,
|
|
8449
8455
|
glueSource: n.glueSource,
|
|
8450
8456
|
glueRemark: n.glueRemark
|
|
8451
|
-
})).success && (L.success(t("jobinfo.saveSuccess")), s("success"),
|
|
8457
|
+
})).success && (L.success(t("jobinfo.saveSuccess")), s("success"), w());
|
|
8452
8458
|
} catch (a) {
|
|
8453
8459
|
console.error("保存失败:", a), L.error(t("jobinfo.saveFailed"));
|
|
8454
8460
|
} finally {
|
|
@@ -8471,7 +8477,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8471
8477
|
glueSource: a.glueSource || "",
|
|
8472
8478
|
glueRemark: a.glueRemark || "",
|
|
8473
8479
|
version: ""
|
|
8474
|
-
}),
|
|
8480
|
+
}), w()) : (Object.assign(n, {
|
|
8475
8481
|
id: "",
|
|
8476
8482
|
jobDesc: "",
|
|
8477
8483
|
glueSource: "",
|
|
@@ -8480,7 +8486,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8480
8486
|
}), B.value = []), s("update:visible", !0);
|
|
8481
8487
|
}
|
|
8482
8488
|
}), (a, I) => {
|
|
8483
|
-
const
|
|
8489
|
+
const f = x("a-option"), D = x("a-select"), P = x("a-textarea"), v = x("a-button"), h = x("a-modal");
|
|
8484
8490
|
return m(), W(h, {
|
|
8485
8491
|
title: Q(t)("jobinfo.glueIde"),
|
|
8486
8492
|
visible: A.visible,
|
|
@@ -8503,7 +8509,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8503
8509
|
onChange: i
|
|
8504
8510
|
}, {
|
|
8505
8511
|
default: u(() => [
|
|
8506
|
-
(m(!0), N(oA, null, BA(B.value, (z) => (m(), W(
|
|
8512
|
+
(m(!0), N(oA, null, BA(B.value, (z) => (m(), W(f, {
|
|
8507
8513
|
key: z.value,
|
|
8508
8514
|
value: z.value
|
|
8509
8515
|
}, {
|
|
@@ -8518,7 +8524,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8518
8524
|
]),
|
|
8519
8525
|
d("div", null, [
|
|
8520
8526
|
d("label", ll, X(Q(t)("jobinfo.codeContent")) + ":", 1),
|
|
8521
|
-
r(
|
|
8527
|
+
r(P, {
|
|
8522
8528
|
modelValue: n.glueSource,
|
|
8523
8529
|
"onUpdate:modelValue": I[1] || (I[1] = (z) => n.glueSource = z),
|
|
8524
8530
|
rows: 20,
|
|
@@ -8527,7 +8533,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8527
8533
|
]),
|
|
8528
8534
|
d("div", null, [
|
|
8529
8535
|
d("label", al, X(Q(t)("jobinfo.remark")) + ":", 1),
|
|
8530
|
-
r(
|
|
8536
|
+
r(P, {
|
|
8531
8537
|
modelValue: n.glueRemark,
|
|
8532
8538
|
"onUpdate:modelValue": I[2] || (I[2] = (z) => n.glueRemark = z),
|
|
8533
8539
|
rows: 4,
|
|
@@ -8574,7 +8580,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8574
8580
|
tableColumns: t
|
|
8575
8581
|
} = Al({
|
|
8576
8582
|
t: e
|
|
8577
|
-
}), o =
|
|
8583
|
+
}), o = p(!1), s = p(!1), n = p(!1), B = p(null), E = p(null), c = p(null), w = async ({
|
|
8578
8584
|
page: b,
|
|
8579
8585
|
formValues: F
|
|
8580
8586
|
}) => {
|
|
@@ -8593,9 +8599,9 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8593
8599
|
formApi: l,
|
|
8594
8600
|
Grid: a,
|
|
8595
8601
|
gridApi: I,
|
|
8596
|
-
submitting:
|
|
8602
|
+
submitting: f,
|
|
8597
8603
|
handleGlobalEnter: D,
|
|
8598
|
-
searchPlanList:
|
|
8604
|
+
searchPlanList: P,
|
|
8599
8605
|
currentSearchPlan: v,
|
|
8600
8606
|
resourceId: h,
|
|
8601
8607
|
nResourceid: z,
|
|
@@ -8606,7 +8612,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8606
8612
|
searchFormSchema: g,
|
|
8607
8613
|
tableColumns: t,
|
|
8608
8614
|
resourceConfig: el,
|
|
8609
|
-
queryFunction:
|
|
8615
|
+
queryFunction: w,
|
|
8610
8616
|
gridEvents: i
|
|
8611
8617
|
}), S = (b) => R.value.filter((F) => F.cSubArea === "columnTable"), O = async (b, F) => {
|
|
8612
8618
|
const {
|
|
@@ -8859,7 +8865,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8859
8865
|
},
|
|
8860
8866
|
emits: ["update:visible"],
|
|
8861
8867
|
setup(A, { expose: e, emit: g }) {
|
|
8862
|
-
const { t } = aA(), o = g, s =
|
|
8868
|
+
const { t } = aA(), o = g, s = p(!1), n = p([]), B = p(""), E = p(!1), c = p(null), w = async (a) => {
|
|
8863
8869
|
B.value = a, n.value = [];
|
|
8864
8870
|
try {
|
|
8865
8871
|
const I = await j.post("/schedule/joblog/logDetail", {
|
|
@@ -8896,12 +8902,12 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8896
8902
|
o("update:visible", !1);
|
|
8897
8903
|
};
|
|
8898
8904
|
return e({
|
|
8899
|
-
show:
|
|
8905
|
+
show: w
|
|
8900
8906
|
}), (a, I) => {
|
|
8901
|
-
const
|
|
8907
|
+
const f = x("a-button"), D = x("a-modal");
|
|
8902
8908
|
return m(), W(D, {
|
|
8903
8909
|
visible: A.visible,
|
|
8904
|
-
"onUpdate:visible": I[1] || (I[1] = (
|
|
8910
|
+
"onUpdate:visible": I[1] || (I[1] = (P) => o("update:visible", P)),
|
|
8905
8911
|
footer: !1,
|
|
8906
8912
|
"mask-closable": !1,
|
|
8907
8913
|
closable: !1,
|
|
@@ -8927,16 +8933,16 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8927
8933
|
class: "overflow-y-auto scroll-smooth bg-[#222]",
|
|
8928
8934
|
style: EA({ height: s.value ? "100vh" : "60vh" })
|
|
8929
8935
|
}, [
|
|
8930
|
-
(m(!0), N(oA, null, BA(n.value, (
|
|
8936
|
+
(m(!0), N(oA, null, BA(n.value, (P, v) => (m(), N("div", {
|
|
8931
8937
|
key: v,
|
|
8932
8938
|
class: "bg-[#222] leading-[28px] text-xs text-[#ccc] whitespace-nowrap hover:bg-[#2b2b2b]"
|
|
8933
8939
|
}, [
|
|
8934
8940
|
d("div", vl, X(v + 1), 1),
|
|
8935
|
-
d("div", Dl, X(
|
|
8941
|
+
d("div", Dl, X(P), 1)
|
|
8936
8942
|
]))), 128))
|
|
8937
8943
|
], 4),
|
|
8938
8944
|
d("div", ml, [
|
|
8939
|
-
r(
|
|
8945
|
+
r(f, {
|
|
8940
8946
|
type: "primary",
|
|
8941
8947
|
status: "danger",
|
|
8942
8948
|
shape: "circle",
|
|
@@ -8948,11 +8954,11 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8948
8954
|
]),
|
|
8949
8955
|
_: 1
|
|
8950
8956
|
}, 8, ["tooltip"]),
|
|
8951
|
-
r(
|
|
8957
|
+
r(f, {
|
|
8952
8958
|
type: "primary",
|
|
8953
8959
|
status: "danger",
|
|
8954
8960
|
shape: "circle",
|
|
8955
|
-
onClick: I[0] || (I[0] = (
|
|
8961
|
+
onClick: I[0] || (I[0] = (P) => s.value = !s.value),
|
|
8956
8962
|
tooltip: Q(t)("joblog.fullscreen")
|
|
8957
8963
|
}, {
|
|
8958
8964
|
icon: u(() => [
|
|
@@ -8960,7 +8966,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8960
8966
|
]),
|
|
8961
8967
|
_: 1
|
|
8962
8968
|
}, 8, ["tooltip"]),
|
|
8963
|
-
r(
|
|
8969
|
+
r(f, {
|
|
8964
8970
|
type: "primary",
|
|
8965
8971
|
status: "danger",
|
|
8966
8972
|
shape: "circle",
|
|
@@ -8972,7 +8978,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
8972
8978
|
]),
|
|
8973
8979
|
_: 1
|
|
8974
8980
|
}, 8, ["tooltip"]),
|
|
8975
|
-
r(
|
|
8981
|
+
r(f, {
|
|
8976
8982
|
type: "primary",
|
|
8977
8983
|
status: "danger",
|
|
8978
8984
|
shape: "circle",
|
|
@@ -9011,7 +9017,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9011
9017
|
tableColumns: t
|
|
9012
9018
|
} = fl({
|
|
9013
9019
|
t: e
|
|
9014
|
-
}), o =
|
|
9020
|
+
}), o = p(!1), s = p(""), n = p(!1), B = p(null), E = async ({
|
|
9015
9021
|
page: G,
|
|
9016
9022
|
formValues: S
|
|
9017
9023
|
}) => {
|
|
@@ -9023,15 +9029,15 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9023
9029
|
return j.post("/schedule/joblog/selectForPage", O);
|
|
9024
9030
|
}, {
|
|
9025
9031
|
QueryForm: c,
|
|
9026
|
-
formApi:
|
|
9032
|
+
formApi: w,
|
|
9027
9033
|
Grid: i,
|
|
9028
9034
|
gridApi: C,
|
|
9029
9035
|
submitting: l,
|
|
9030
9036
|
handleGlobalEnter: a,
|
|
9031
9037
|
searchPlanList: I,
|
|
9032
|
-
currentSearchPlan:
|
|
9038
|
+
currentSearchPlan: f,
|
|
9033
9039
|
resourceId: D,
|
|
9034
|
-
nResourceid:
|
|
9040
|
+
nResourceid: P,
|
|
9035
9041
|
handleSearchPlanSearch: v,
|
|
9036
9042
|
handleDefaultPlanLoaded: h
|
|
9037
9043
|
} = kA({
|
|
@@ -9191,7 +9197,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9191
9197
|
},
|
|
9192
9198
|
emits: ["update:visible", "success"],
|
|
9193
9199
|
setup(A, { expose: e, emit: g }) {
|
|
9194
|
-
const { t } = aA(), o = A, s = g, n =
|
|
9200
|
+
const { t } = aA(), o = A, s = g, n = p(null), B = uA({
|
|
9195
9201
|
appname: "",
|
|
9196
9202
|
title: "",
|
|
9197
9203
|
addressType: "0",
|
|
@@ -9202,11 +9208,11 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9202
9208
|
{ cKeyname: t("jobgroup.autoRegister"), cKeynumb: "0" },
|
|
9203
9209
|
{ cKeyname: t("jobgroup.manualEntry"), cKeynumb: "1" }
|
|
9204
9210
|
]
|
|
9205
|
-
}, c =
|
|
9211
|
+
}, c = p(!1);
|
|
9206
9212
|
lA(() => o.formData, (C) => {
|
|
9207
9213
|
C && Object.assign(B, C);
|
|
9208
9214
|
}, { deep: !0 });
|
|
9209
|
-
const
|
|
9215
|
+
const w = async () => {
|
|
9210
9216
|
n.value && n.value.validate().then(async () => {
|
|
9211
9217
|
c.value = !0;
|
|
9212
9218
|
try {
|
|
@@ -9238,7 +9244,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9238
9244
|
}), s("update:visible", !0);
|
|
9239
9245
|
}
|
|
9240
9246
|
}), (C, l) => {
|
|
9241
|
-
const a = x("a-input"), I = x("a-form-item"),
|
|
9247
|
+
const a = x("a-input"), I = x("a-form-item"), f = x("a-radio"), D = x("a-radio-group"), P = x("a-textarea"), v = x("a-form"), h = x("a-button"), z = x("a-modal");
|
|
9242
9248
|
return m(), W(z, {
|
|
9243
9249
|
title: B.id ? Q(t)("jobgroup.editTitle") : Q(t)("jobgroup.addTitle"),
|
|
9244
9250
|
visible: A.visible,
|
|
@@ -9295,7 +9301,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9295
9301
|
"onUpdate:modelValue": l[2] || (l[2] = (R) => B.addressType = R)
|
|
9296
9302
|
}, {
|
|
9297
9303
|
default: u(() => [
|
|
9298
|
-
(m(!0), N(oA, null, BA(E.zcfsOpts, (R) => (m(), W(
|
|
9304
|
+
(m(!0), N(oA, null, BA(E.zcfsOpts, (R) => (m(), W(f, {
|
|
9299
9305
|
key: R.cKeynumb,
|
|
9300
9306
|
value: R.cKeynumb
|
|
9301
9307
|
}, {
|
|
@@ -9316,7 +9322,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9316
9322
|
rules: [{ required: B.addressType === "1", message: Q(t)("jobgroup.inputMachineAddress") }]
|
|
9317
9323
|
}, {
|
|
9318
9324
|
default: u(() => [
|
|
9319
|
-
r(
|
|
9325
|
+
r(P, {
|
|
9320
9326
|
modelValue: B.addressList,
|
|
9321
9327
|
"onUpdate:modelValue": l[3] || (l[3] = (R) => B.addressList = R),
|
|
9322
9328
|
rows: 4,
|
|
@@ -9334,7 +9340,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9334
9340
|
r(h, {
|
|
9335
9341
|
type: "primary",
|
|
9336
9342
|
loading: c.value,
|
|
9337
|
-
onClick:
|
|
9343
|
+
onClick: w
|
|
9338
9344
|
}, {
|
|
9339
9345
|
default: u(() => [
|
|
9340
9346
|
J(X(Q(t)("jobgroup.save")), 1)
|
|
@@ -9369,7 +9375,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9369
9375
|
tableColumns: t
|
|
9370
9376
|
} = Sl({
|
|
9371
9377
|
t: e
|
|
9372
|
-
}), o =
|
|
9378
|
+
}), o = p(!1), s = p(null), n = async ({
|
|
9373
9379
|
page: G,
|
|
9374
9380
|
formValues: S
|
|
9375
9381
|
}) => {
|
|
@@ -9386,15 +9392,15 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9386
9392
|
}, {
|
|
9387
9393
|
QueryForm: E,
|
|
9388
9394
|
formApi: c,
|
|
9389
|
-
Grid:
|
|
9395
|
+
Grid: w,
|
|
9390
9396
|
gridApi: i,
|
|
9391
9397
|
submitting: C,
|
|
9392
9398
|
handleGlobalEnter: l,
|
|
9393
9399
|
searchPlanList: a,
|
|
9394
9400
|
currentSearchPlan: I,
|
|
9395
|
-
resourceId:
|
|
9401
|
+
resourceId: f,
|
|
9396
9402
|
nResourceid: D,
|
|
9397
|
-
resourceButtons:
|
|
9403
|
+
resourceButtons: P,
|
|
9398
9404
|
handleSearchPlanSearch: v,
|
|
9399
9405
|
handleDefaultPlanLoaded: h
|
|
9400
9406
|
} = kA({
|
|
@@ -9403,7 +9409,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9403
9409
|
resourceConfig: Ul,
|
|
9404
9410
|
queryFunction: n,
|
|
9405
9411
|
gridEvents: B
|
|
9406
|
-
}), z = (G) =>
|
|
9412
|
+
}), z = (G) => P.value.filter((S) => S.cSubArea === "columnTable"), R = async (G, S) => {
|
|
9407
9413
|
const {
|
|
9408
9414
|
handle: O
|
|
9409
9415
|
} = G;
|
|
@@ -9450,7 +9456,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9450
9456
|
["enter"]
|
|
9451
9457
|
)),
|
|
9452
9458
|
tabindex: "-1"
|
|
9453
|
-
}, [d("div", xl, [d("div", Yl, [r(Q(E))]), d("div", Kl, [r(Q(
|
|
9459
|
+
}, [d("div", xl, [d("div", Yl, [r(Q(E))]), d("div", Kl, [r(Q(w), {
|
|
9454
9460
|
class: "flex-1"
|
|
9455
9461
|
}, {
|
|
9456
9462
|
actionSlot: u(({
|
|
@@ -9708,21 +9714,21 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9708
9714
|
__name: "ZdyxlkAdd",
|
|
9709
9715
|
emits: ["success"],
|
|
9710
9716
|
setup(A, { expose: e, emit: g }) {
|
|
9711
|
-
const { t } = aA(), o =
|
|
9717
|
+
const { t } = aA(), o = p(!1), s = p("add"), n = p(!1), B = g, [E, c] = hA({
|
|
9712
9718
|
layout: "vertical",
|
|
9713
9719
|
size: "small",
|
|
9714
9720
|
labelWidth: 120,
|
|
9715
9721
|
showDefaultActions: !1,
|
|
9716
9722
|
scrollToFirstError: !0,
|
|
9717
9723
|
schema: []
|
|
9718
|
-
}), { addEditFormSchema:
|
|
9724
|
+
}), { addEditFormSchema: w } = Nt({ t, formApi: c });
|
|
9719
9725
|
c.setState({
|
|
9720
|
-
handleValuesChange: (
|
|
9721
|
-
"nCbtype" in
|
|
9726
|
+
handleValuesChange: (f) => {
|
|
9727
|
+
"nCbtype" in f && (f.nCbtype, i(f.nCbtype));
|
|
9722
9728
|
}
|
|
9723
9729
|
});
|
|
9724
|
-
const i = (
|
|
9725
|
-
const D =
|
|
9730
|
+
const i = (f) => {
|
|
9731
|
+
const D = f === "0";
|
|
9726
9732
|
c.updateSchema([
|
|
9727
9733
|
{
|
|
9728
9734
|
fieldName: "cValcol",
|
|
@@ -9736,31 +9742,31 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9736
9742
|
};
|
|
9737
9743
|
e({
|
|
9738
9744
|
addInit: async () => {
|
|
9739
|
-
o.value = !0, s.value = "add", c.setState({ schema:
|
|
9745
|
+
o.value = !0, s.value = "add", c.setState({ schema: w }), c.resetForm(), c.setValues({ nCbtype: "0" }), await fA(), i("0");
|
|
9740
9746
|
},
|
|
9741
|
-
editInit: async (
|
|
9747
|
+
editInit: async (f) => {
|
|
9742
9748
|
n.value = !0, s.value = "edit";
|
|
9743
9749
|
let D = null;
|
|
9744
9750
|
try {
|
|
9745
|
-
const
|
|
9746
|
-
|
|
9747
|
-
} catch (
|
|
9748
|
-
console.error("查询失败:",
|
|
9751
|
+
const P = await j.post("/core/assSelect/update_init", { id: f.id });
|
|
9752
|
+
P.code === 200 && P.result && (D = { ...P.result }, D.nCbtype !== void 0 && (D.nCbtype = String(D.nCbtype)), D.nLikematch !== void 0 && (D.nLikematch = String(D.nLikematch)), D.nSfcommon !== void 0 && (D.nSfcommon = String(D.nSfcommon)), D.nType !== void 0 && (D.nType = String(D.nType)));
|
|
9753
|
+
} catch (P) {
|
|
9754
|
+
console.error("查询失败:", P), L.error(t("zdyxlk.queryFailed"));
|
|
9749
9755
|
}
|
|
9750
|
-
o.value = !0, await fA(), c.setState({ schema:
|
|
9756
|
+
o.value = !0, await fA(), c.setState({ schema: w }), c.resetForm(), D && (c.setValues(D, !1), c.updateSchema([{
|
|
9751
9757
|
fieldName: "cNum",
|
|
9752
9758
|
componentProps: { disabled: !0 }
|
|
9753
9759
|
}]), i(D.nCbtype)), n.value = !1;
|
|
9754
9760
|
}
|
|
9755
9761
|
});
|
|
9756
9762
|
const a = async () => {
|
|
9757
|
-
const { valid:
|
|
9758
|
-
if (!
|
|
9759
|
-
const
|
|
9763
|
+
const { valid: f } = await c.validate();
|
|
9764
|
+
if (!f) return !1;
|
|
9765
|
+
const P = { ...await c.getValues() };
|
|
9760
9766
|
try {
|
|
9761
9767
|
const v = await j.post(
|
|
9762
9768
|
s.value === "add" ? "/core/assSelect/insert" : "/core/assSelect/update",
|
|
9763
|
-
|
|
9769
|
+
P
|
|
9764
9770
|
);
|
|
9765
9771
|
return v.code === 200 ? (L.success(s.value === "add" ? t("zdyxlk.addSuccess") : t("zdyxlk.editSuccess")), o.value = !1, B("success"), !0) : (L.error(v.message || t("zdyxlk.saveFailed")), !1);
|
|
9766
9772
|
} catch (v) {
|
|
@@ -9769,7 +9775,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9769
9775
|
}, I = () => {
|
|
9770
9776
|
o.value = !1;
|
|
9771
9777
|
};
|
|
9772
|
-
return (
|
|
9778
|
+
return (f, D) => (m(), W(Q(vA), {
|
|
9773
9779
|
"model-value": o.value,
|
|
9774
9780
|
title: s.value === "add" ? Q(t)("zdyxlk.addTitle") : Q(t)("zdyxlk.editTitle"),
|
|
9775
9781
|
"on-before-ok": a,
|
|
@@ -9791,7 +9797,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9791
9797
|
}, Wl = ["onClick"], Tl = /* @__PURE__ */ q({
|
|
9792
9798
|
__name: "ZdyxlkQuery",
|
|
9793
9799
|
setup(A) {
|
|
9794
|
-
const e =
|
|
9800
|
+
const e = p(), {
|
|
9795
9801
|
t: g
|
|
9796
9802
|
} = aA(), {
|
|
9797
9803
|
searchFormSchema: t,
|
|
@@ -9852,15 +9858,15 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9852
9858
|
QueryForm: B,
|
|
9853
9859
|
formApi: E,
|
|
9854
9860
|
Grid: c,
|
|
9855
|
-
gridApi:
|
|
9861
|
+
gridApi: w,
|
|
9856
9862
|
submitting: i,
|
|
9857
9863
|
handleGlobalEnter: C,
|
|
9858
9864
|
searchPlanList: l,
|
|
9859
9865
|
currentSearchPlan: a,
|
|
9860
9866
|
resourceId: I,
|
|
9861
|
-
nResourceid:
|
|
9867
|
+
nResourceid: f,
|
|
9862
9868
|
resourceButtons: D,
|
|
9863
|
-
handleSearchPlanSearch:
|
|
9869
|
+
handleSearchPlanSearch: P,
|
|
9864
9870
|
handleDefaultPlanLoaded: v
|
|
9865
9871
|
} = kA({
|
|
9866
9872
|
searchFormSchema: t,
|
|
@@ -9887,7 +9893,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9887
9893
|
const S = await j.post("/core/assSelect/delete", {
|
|
9888
9894
|
id: M.id
|
|
9889
9895
|
});
|
|
9890
|
-
S.code === 200 ? (L.success(S.message),
|
|
9896
|
+
S.code === 200 ? (L.success(S.message), w.value?.refresh()) : L.error(S.message);
|
|
9891
9897
|
} catch (S) {
|
|
9892
9898
|
console.error("删除失败:", S), L.error(g("zdyxlk.deleteFailed"));
|
|
9893
9899
|
}
|
|
@@ -9919,7 +9925,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
9919
9925
|
})])]), r(Zl, {
|
|
9920
9926
|
ref_key: "ZdyxlkAddRef",
|
|
9921
9927
|
ref: e,
|
|
9922
|
-
onSuccess: M[0] || (M[0] = () => Q(
|
|
9928
|
+
onSuccess: M[0] || (M[0] = () => Q(w).commitProxy("query"))
|
|
9923
9929
|
}, null, 512)], 32));
|
|
9924
9930
|
}
|
|
9925
9931
|
}), qc = /* @__PURE__ */ wA(Tl, [["__scopeId", "data-v-2065aa57"]]), jt = ({ t: A }) => {
|
|
@@ -10064,28 +10070,28 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10064
10070
|
__name: "AssSendoaAdd",
|
|
10065
10071
|
emits: ["success"],
|
|
10066
10072
|
setup(A, { expose: e, emit: g }) {
|
|
10067
|
-
const { t } = aA(), o =
|
|
10073
|
+
const { t } = aA(), o = p(!1), s = p("add"), n = p(!1), B = g, [E, c] = hA({
|
|
10068
10074
|
layout: "vertical",
|
|
10069
10075
|
size: "small",
|
|
10070
10076
|
labelWidth: 120,
|
|
10071
10077
|
showDefaultActions: !1,
|
|
10072
10078
|
scrollToFirstError: !0,
|
|
10073
10079
|
schema: []
|
|
10074
|
-
}), { addEditFormSchema:
|
|
10080
|
+
}), { addEditFormSchema: w } = jt({ t });
|
|
10075
10081
|
e({
|
|
10076
10082
|
addInit: async () => {
|
|
10077
|
-
o.value = !0, s.value = "add", c.setState({ schema:
|
|
10083
|
+
o.value = !0, s.value = "add", c.setState({ schema: w }), c.resetForm(), await fA();
|
|
10078
10084
|
},
|
|
10079
10085
|
editInit: async (I) => {
|
|
10080
10086
|
n.value = !0, s.value = "edit";
|
|
10081
|
-
let
|
|
10087
|
+
let f = null;
|
|
10082
10088
|
try {
|
|
10083
10089
|
const D = await j.post("/core/assSendoa/update_init", { assSendoa: { id: I.id } });
|
|
10084
|
-
D.code === 200 && D.result && (
|
|
10090
|
+
D.code === 200 && D.result && (f = { ...D.result }, f.nSign !== void 0 && (f.nSign = String(f.nSign)));
|
|
10085
10091
|
} catch (D) {
|
|
10086
10092
|
console.error("查询失败:", D), L.error(t("assSendoa.queryFailed"));
|
|
10087
10093
|
}
|
|
10088
|
-
o.value = !0, await fA(), c.setState({ schema:
|
|
10094
|
+
o.value = !0, await fA(), c.setState({ schema: w }), c.resetForm(), f && c.setValues(f, !1), n.value = !1;
|
|
10089
10095
|
}
|
|
10090
10096
|
});
|
|
10091
10097
|
const l = async () => {
|
|
@@ -10093,18 +10099,18 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10093
10099
|
if (!I) return !1;
|
|
10094
10100
|
const D = { assSendoa: { ...await c.getValues() } };
|
|
10095
10101
|
try {
|
|
10096
|
-
const
|
|
10102
|
+
const P = await j.post(
|
|
10097
10103
|
s.value === "add" ? "/core/assSendoa/insert" : "/core/assSendoa/update",
|
|
10098
10104
|
D
|
|
10099
10105
|
);
|
|
10100
|
-
return
|
|
10101
|
-
} catch (
|
|
10102
|
-
return console.error("保存失败:",
|
|
10106
|
+
return P.code === 200 ? (L.success(s.value === "add" ? t("assSendoa.addSuccess") : t("assSendoa.editSuccess")), o.value = !1, B("success"), !0) : (L.error(P.message || t("assSendoa.saveFailed")), !1);
|
|
10107
|
+
} catch (P) {
|
|
10108
|
+
return console.error("保存失败:", P), L.error(t("assSendoa.saveFailed")), !1;
|
|
10103
10109
|
}
|
|
10104
10110
|
}, a = () => {
|
|
10105
10111
|
o.value = !1;
|
|
10106
10112
|
};
|
|
10107
|
-
return (I,
|
|
10113
|
+
return (I, f) => (m(), W(Q(vA), {
|
|
10108
10114
|
"model-value": o.value,
|
|
10109
10115
|
title: s.value === "add" ? Q(t)("assSendoa.addTitle") : Q(t)("assSendoa.editTitle"),
|
|
10110
10116
|
"on-before-ok": l,
|
|
@@ -10126,7 +10132,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10126
10132
|
}, ta = ["onClick"], ga = /* @__PURE__ */ q({
|
|
10127
10133
|
__name: "AssSendoaQuery",
|
|
10128
10134
|
setup(A) {
|
|
10129
|
-
const e =
|
|
10135
|
+
const e = p(), {
|
|
10130
10136
|
t: g
|
|
10131
10137
|
} = aA(), {
|
|
10132
10138
|
searchFormSchema: t,
|
|
@@ -10183,15 +10189,15 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10183
10189
|
QueryForm: B,
|
|
10184
10190
|
formApi: E,
|
|
10185
10191
|
Grid: c,
|
|
10186
|
-
gridApi:
|
|
10192
|
+
gridApi: w,
|
|
10187
10193
|
submitting: i,
|
|
10188
10194
|
handleGlobalEnter: C,
|
|
10189
10195
|
searchPlanList: l,
|
|
10190
10196
|
currentSearchPlan: a,
|
|
10191
10197
|
resourceId: I,
|
|
10192
|
-
nResourceid:
|
|
10198
|
+
nResourceid: f,
|
|
10193
10199
|
resourceButtons: D,
|
|
10194
|
-
handleSearchPlanSearch:
|
|
10200
|
+
handleSearchPlanSearch: P,
|
|
10195
10201
|
handleDefaultPlanLoaded: v
|
|
10196
10202
|
} = kA({
|
|
10197
10203
|
searchFormSchema: t,
|
|
@@ -10218,7 +10224,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10218
10224
|
const S = await j.post("/core/assSendoa/delete", {
|
|
10219
10225
|
id: M.id
|
|
10220
10226
|
});
|
|
10221
|
-
S.code === 200 ? (L.success(S.message),
|
|
10227
|
+
S.code === 200 ? (L.success(S.message), w.value?.refresh()) : L.error(S.message);
|
|
10222
10228
|
} catch (S) {
|
|
10223
10229
|
console.error("删除失败:", S), L.error(g("assSendoa.deleteFailed"));
|
|
10224
10230
|
}
|
|
@@ -10250,7 +10256,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10250
10256
|
})])]), r(_l, {
|
|
10251
10257
|
ref_key: "AssSendoaAddRef",
|
|
10252
10258
|
ref: e,
|
|
10253
|
-
onSuccess: M[0] || (M[0] = () => Q(
|
|
10259
|
+
onSuccess: M[0] || (M[0] = () => Q(w).commitProxy("query"))
|
|
10254
10260
|
}, null, 512)], 32));
|
|
10255
10261
|
}
|
|
10256
10262
|
}), _c = /* @__PURE__ */ wA(ga, [["__scopeId", "data-v-53c27ad8"]]), oa = ({ t: A }) => {
|
|
@@ -10364,7 +10370,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10364
10370
|
}, E = () => {
|
|
10365
10371
|
t("close");
|
|
10366
10372
|
};
|
|
10367
|
-
return (c,
|
|
10373
|
+
return (c, w) => (m(), W(Q(vA), {
|
|
10368
10374
|
"model-value": A.visible,
|
|
10369
10375
|
title: "预览查询弹窗",
|
|
10370
10376
|
"on-before-ok": B,
|
|
@@ -10393,7 +10399,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10393
10399
|
tableColumns: t
|
|
10394
10400
|
} = oa({
|
|
10395
10401
|
t: e
|
|
10396
|
-
}), o =
|
|
10402
|
+
}), o = p(!1), s = p(""), n = async ({
|
|
10397
10403
|
page: M,
|
|
10398
10404
|
formValues: G
|
|
10399
10405
|
}) => {
|
|
@@ -10449,15 +10455,15 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10449
10455
|
}, {
|
|
10450
10456
|
QueryForm: E,
|
|
10451
10457
|
formApi: c,
|
|
10452
|
-
Grid:
|
|
10458
|
+
Grid: w,
|
|
10453
10459
|
gridApi: i,
|
|
10454
10460
|
submitting: C,
|
|
10455
10461
|
handleGlobalEnter: l,
|
|
10456
10462
|
searchPlanList: a,
|
|
10457
10463
|
currentSearchPlan: I,
|
|
10458
|
-
resourceId:
|
|
10464
|
+
resourceId: f,
|
|
10459
10465
|
nResourceid: D,
|
|
10460
|
-
resourceButtons:
|
|
10466
|
+
resourceButtons: P,
|
|
10461
10467
|
handleSearchPlanSearch: v,
|
|
10462
10468
|
handleDefaultPlanLoaded: h
|
|
10463
10469
|
} = kA({
|
|
@@ -10466,7 +10472,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10466
10472
|
resourceConfig: na,
|
|
10467
10473
|
queryFunction: n,
|
|
10468
10474
|
gridEvents: B
|
|
10469
|
-
}), z = (M) =>
|
|
10475
|
+
}), z = (M) => P.value.filter((G) => G.cSubArea === "columnTable"), R = async (M, G) => {
|
|
10470
10476
|
const {
|
|
10471
10477
|
handle: S
|
|
10472
10478
|
} = M;
|
|
@@ -10508,7 +10514,7 @@ const Vr = { class: "flex items-center w-full h-[30px] bg-[var(--color-bg-2)] bo
|
|
|
10508
10514
|
["enter"]
|
|
10509
10515
|
)),
|
|
10510
10516
|
tabindex: "-1"
|
|
10511
|
-
}, [d("div", Ba, [d("div", ra, [r(Q(E))]), d("div", Ca, [r(Q(
|
|
10517
|
+
}, [d("div", Ba, [d("div", ra, [r(Q(E))]), d("div", Ca, [r(Q(w), {
|
|
10512
10518
|
class: "flex-1"
|
|
10513
10519
|
}, {
|
|
10514
10520
|
actionSlot: u(({
|
|
@@ -10655,12 +10661,12 @@ class ca {
|
|
|
10655
10661
|
B || (B = o.loadOptions(s, g), this.loadingPromises.set(n, B));
|
|
10656
10662
|
try {
|
|
10657
10663
|
const E = await B;
|
|
10658
|
-
E && typeof E == "object" && Object.keys(E).forEach((
|
|
10659
|
-
this.cache.set(
|
|
10664
|
+
E && typeof E == "object" && Object.keys(E).forEach((w) => {
|
|
10665
|
+
this.cache.set(w, E[w]);
|
|
10660
10666
|
});
|
|
10661
10667
|
const c = {};
|
|
10662
|
-
return e.forEach((
|
|
10663
|
-
c[String(
|
|
10668
|
+
return e.forEach((w) => {
|
|
10669
|
+
c[String(w)] = this.cache.get(String(w)) || [];
|
|
10664
10670
|
}), c;
|
|
10665
10671
|
} finally {
|
|
10666
10672
|
this.loadingPromises.delete(n);
|
|
@@ -10708,7 +10714,7 @@ function qA(A) {
|
|
|
10708
10714
|
fieldMapping: g,
|
|
10709
10715
|
immediate: t = !0,
|
|
10710
10716
|
forceReload: o = !1
|
|
10711
|
-
} = A, s =
|
|
10717
|
+
} = A, s = p({}), n = p(!1), B = async () => {
|
|
10712
10718
|
if (!(!e || e.length === 0)) {
|
|
10713
10719
|
n.value = !0;
|
|
10714
10720
|
try {
|
|
@@ -10735,7 +10741,7 @@ function qA(A) {
|
|
|
10735
10741
|
...s.value,
|
|
10736
10742
|
...C
|
|
10737
10743
|
};
|
|
10738
|
-
},
|
|
10744
|
+
}, w = (i) => {
|
|
10739
10745
|
if (ne.clearCache(i), i) {
|
|
10740
10746
|
const C = { ...s.value };
|
|
10741
10747
|
delete C[String(i)], s.value = C;
|
|
@@ -10750,16 +10756,16 @@ function qA(A) {
|
|
|
10750
10756
|
load: B,
|
|
10751
10757
|
getOptions: E,
|
|
10752
10758
|
reload: c,
|
|
10753
|
-
clearCache:
|
|
10759
|
+
clearCache: w
|
|
10754
10760
|
};
|
|
10755
10761
|
}
|
|
10756
10762
|
function _A(A, e = !0) {
|
|
10757
10763
|
const g = H(() => {
|
|
10758
10764
|
const E = typeof A == "object" && "value" in A ? A.value : A, c = [];
|
|
10759
|
-
return E.forEach((
|
|
10760
|
-
|
|
10761
|
-
fieldName:
|
|
10762
|
-
...
|
|
10765
|
+
return E.forEach((w) => {
|
|
10766
|
+
w.selectOptions?.dictCode && c.push({
|
|
10767
|
+
fieldName: w.fieldName || "",
|
|
10768
|
+
...w.selectOptions
|
|
10763
10769
|
});
|
|
10764
10770
|
}), c;
|
|
10765
10771
|
}), t = H(() => {
|
|
@@ -10774,11 +10780,11 @@ function _A(A, e = !0) {
|
|
|
10774
10780
|
immediate: !1
|
|
10775
10781
|
}), B = H(() => (typeof A == "object" && "value" in A ? A.value : A).map((c) => {
|
|
10776
10782
|
if (c.selectOptions?.dictCode) {
|
|
10777
|
-
const
|
|
10783
|
+
const w = c.componentProps, i = String(c.selectOptions.dictCode);
|
|
10778
10784
|
return {
|
|
10779
10785
|
...c,
|
|
10780
10786
|
componentProps: (C) => ({
|
|
10781
|
-
...typeof
|
|
10787
|
+
...typeof w == "function" ? w(C) : w,
|
|
10782
10788
|
options: o.value[i] || []
|
|
10783
10789
|
})
|
|
10784
10790
|
};
|
|
@@ -10851,12 +10857,12 @@ class ia {
|
|
|
10851
10857
|
B || (B = o.loadOptions(s, g), this.loadingPromises.set(n, B));
|
|
10852
10858
|
try {
|
|
10853
10859
|
const E = await B;
|
|
10854
|
-
E && typeof E == "object" && Object.keys(E).forEach((
|
|
10855
|
-
this.cache.set(
|
|
10860
|
+
E && typeof E == "object" && Object.keys(E).forEach((w) => {
|
|
10861
|
+
this.cache.set(w, E[w]);
|
|
10856
10862
|
});
|
|
10857
10863
|
const c = {};
|
|
10858
|
-
return e.forEach((
|
|
10859
|
-
c[String(
|
|
10864
|
+
return e.forEach((w) => {
|
|
10865
|
+
c[String(w)] = this.cache.get(String(w)) || [];
|
|
10860
10866
|
}), c;
|
|
10861
10867
|
} finally {
|
|
10862
10868
|
this.loadingPromises.delete(n);
|
|
@@ -10899,7 +10905,7 @@ class ia {
|
|
|
10899
10905
|
}
|
|
10900
10906
|
const se = new ia();
|
|
10901
10907
|
function Ea(A) {
|
|
10902
|
-
const { numbList: e, fieldMapping: g, immediate: t = !0, forceReload: o = !1 } = A, s =
|
|
10908
|
+
const { numbList: e, fieldMapping: g, immediate: t = !0, forceReload: o = !1 } = A, s = p({}), n = p(!1), B = async () => {
|
|
10903
10909
|
if (!(!e || e.length === 0)) {
|
|
10904
10910
|
n.value = !0;
|
|
10905
10911
|
try {
|
|
@@ -10926,7 +10932,7 @@ function Ea(A) {
|
|
|
10926
10932
|
...s.value,
|
|
10927
10933
|
...C
|
|
10928
10934
|
};
|
|
10929
|
-
},
|
|
10935
|
+
}, w = (i) => {
|
|
10930
10936
|
if (se.clearCache(i), i) {
|
|
10931
10937
|
const C = { ...s.value };
|
|
10932
10938
|
delete C[String(i)], s.value = C;
|
|
@@ -10941,7 +10947,7 @@ function Ea(A) {
|
|
|
10941
10947
|
load: B,
|
|
10942
10948
|
getOptions: E,
|
|
10943
10949
|
reload: c,
|
|
10944
|
-
clearCache:
|
|
10950
|
+
clearCache: w
|
|
10945
10951
|
};
|
|
10946
10952
|
}
|
|
10947
10953
|
function $A(A, e = {}) {
|
|
@@ -10978,7 +10984,7 @@ function $A(A, e = {}) {
|
|
|
10978
10984
|
}
|
|
10979
10985
|
return C;
|
|
10980
10986
|
});
|
|
10981
|
-
}),
|
|
10987
|
+
}), w = H(() => {
|
|
10982
10988
|
const i = {};
|
|
10983
10989
|
return o.value.forEach((C) => {
|
|
10984
10990
|
if (C.autoSelectFirst) {
|
|
@@ -10989,14 +10995,14 @@ function $A(A, e = {}) {
|
|
|
10989
10995
|
});
|
|
10990
10996
|
return console.log("[useSchemaPermissionLoader] immediate:", g, "codes.value.length:", s.value.length), g && s.value.length > 0 && yA(async () => {
|
|
10991
10997
|
console.log("[useSchemaPermissionLoader] onMounted triggered, calling load()"), await E();
|
|
10992
|
-
const i =
|
|
10998
|
+
const i = w.value;
|
|
10993
10999
|
Object.keys(i).length > 0 && t && await t(i);
|
|
10994
11000
|
}), {
|
|
10995
11001
|
enhancedSchema: c,
|
|
10996
11002
|
optionsMap: n,
|
|
10997
11003
|
loading: B,
|
|
10998
11004
|
load: E,
|
|
10999
|
-
autoSelectDefaults:
|
|
11005
|
+
autoSelectDefaults: w
|
|
11000
11006
|
};
|
|
11001
11007
|
}
|
|
11002
11008
|
function ti(A) {
|
|
@@ -11056,7 +11062,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11056
11062
|
emits: ["update:visible", "success"],
|
|
11057
11063
|
setup(A, { emit: e }) {
|
|
11058
11064
|
const { t: g } = aA(), { addFormSchema: t } = Te({ t: g }), o = A, s = e;
|
|
11059
|
-
|
|
11065
|
+
p(!1);
|
|
11060
11066
|
const [n, B] = ee({ schema: t });
|
|
11061
11067
|
lA(() => o.visible, (i) => {
|
|
11062
11068
|
i && (B.resetForm(), o.cExresnum && B.setValues({
|
|
@@ -11081,7 +11087,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11081
11087
|
return console.error("新增失败:", i), !1;
|
|
11082
11088
|
}
|
|
11083
11089
|
}
|
|
11084
|
-
function
|
|
11090
|
+
function w() {
|
|
11085
11091
|
s("update:visible", !1);
|
|
11086
11092
|
}
|
|
11087
11093
|
return (i, C) => (m(), W(Q(vA), {
|
|
@@ -11090,7 +11096,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11090
11096
|
width: 700,
|
|
11091
11097
|
"on-before-ok": c,
|
|
11092
11098
|
"onUpdate:modelValue": C[0] || (C[0] = (l) => s("update:visible", l)),
|
|
11093
|
-
onClose:
|
|
11099
|
+
onClose: w
|
|
11094
11100
|
}, {
|
|
11095
11101
|
default: u(() => [
|
|
11096
11102
|
r(Q(n))
|
|
@@ -11108,7 +11114,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11108
11114
|
emits: ["update:visible", "success"],
|
|
11109
11115
|
setup(A, { emit: e }) {
|
|
11110
11116
|
const { t: g } = aA(), { addFormSchema: t } = Te({ t: g }), o = A, s = e;
|
|
11111
|
-
|
|
11117
|
+
p(!1);
|
|
11112
11118
|
const [n, B] = ee({ schema: t });
|
|
11113
11119
|
lA(() => o.visible, (i) => {
|
|
11114
11120
|
i && o.row && (B.resetForm(), B.setValues({ ...o.row }), B.updateSchema([{
|
|
@@ -11133,7 +11139,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11133
11139
|
return console.error("修改失败:", i), !1;
|
|
11134
11140
|
}
|
|
11135
11141
|
}
|
|
11136
|
-
function
|
|
11142
|
+
function w() {
|
|
11137
11143
|
s("update:visible", !1);
|
|
11138
11144
|
}
|
|
11139
11145
|
return (i, C) => (m(), W(Q(vA), {
|
|
@@ -11142,7 +11148,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11142
11148
|
width: 700,
|
|
11143
11149
|
"on-before-ok": c,
|
|
11144
11150
|
"onUpdate:modelValue": C[0] || (C[0] = (l) => s("update:visible", l)),
|
|
11145
|
-
onClose:
|
|
11151
|
+
onClose: w
|
|
11146
11152
|
}, {
|
|
11147
11153
|
default: u(() => [
|
|
11148
11154
|
r(Q(n))
|
|
@@ -11217,15 +11223,15 @@ const da = /* @__PURE__ */ q({
|
|
|
11217
11223
|
QueryForm: B,
|
|
11218
11224
|
formApi: E,
|
|
11219
11225
|
Grid: c,
|
|
11220
|
-
gridApi:
|
|
11226
|
+
gridApi: w,
|
|
11221
11227
|
submitting: i,
|
|
11222
11228
|
handleGlobalEnter: C,
|
|
11223
11229
|
searchPlanList: l,
|
|
11224
11230
|
currentSearchPlan: a,
|
|
11225
11231
|
resourceId: I,
|
|
11226
|
-
nResourceid:
|
|
11232
|
+
nResourceid: f,
|
|
11227
11233
|
handleSearchPlanSearch: D,
|
|
11228
|
-
handleDefaultPlanLoaded:
|
|
11234
|
+
handleDefaultPlanLoaded: P,
|
|
11229
11235
|
businessResumeState: v
|
|
11230
11236
|
} = kA({
|
|
11231
11237
|
searchFormSchema: g,
|
|
@@ -11243,7 +11249,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11243
11249
|
lazy: !0
|
|
11244
11250
|
});
|
|
11245
11251
|
function h() {
|
|
11246
|
-
const U =
|
|
11252
|
+
const U = w.getSelection();
|
|
11247
11253
|
if (U.length > 1) {
|
|
11248
11254
|
L.warning(e("common.selectOne"));
|
|
11249
11255
|
return;
|
|
@@ -11251,7 +11257,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11251
11257
|
U.length === 1 ? (b.value = U[0].cExresnum, F.value = U[0].id, O.value = U[0].id, Y.value = U[0].cExresname) : (b.value = "", F.value = "", O.value = "0", Y.value = ""), S.value = !0;
|
|
11252
11258
|
}
|
|
11253
11259
|
function z() {
|
|
11254
|
-
const U =
|
|
11260
|
+
const U = w.getSelection();
|
|
11255
11261
|
if (U.length !== 1) {
|
|
11256
11262
|
L.warning("请选择一条数据进行修改");
|
|
11257
11263
|
return;
|
|
@@ -11260,7 +11266,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11260
11266
|
y.value = V, k.value = !0;
|
|
11261
11267
|
}
|
|
11262
11268
|
async function R(U) {
|
|
11263
|
-
const V =
|
|
11269
|
+
const V = w.getSelection();
|
|
11264
11270
|
if (V.length === 0) {
|
|
11265
11271
|
L.warning("请选择要操作的数据");
|
|
11266
11272
|
return;
|
|
@@ -11277,13 +11283,13 @@ const da = /* @__PURE__ */ q({
|
|
|
11277
11283
|
cSign: U
|
|
11278
11284
|
}
|
|
11279
11285
|
});
|
|
11280
|
-
L.success(AA.message || e("otherPermissions.signSuccess")),
|
|
11286
|
+
L.success(AA.message || e("otherPermissions.signSuccess")), w.commitProxy("query");
|
|
11281
11287
|
} catch (AA) {
|
|
11282
11288
|
console.error("操作失败:", AA);
|
|
11283
11289
|
}
|
|
11284
11290
|
}
|
|
11285
11291
|
function M() {
|
|
11286
|
-
const U =
|
|
11292
|
+
const U = w.getSelection();
|
|
11287
11293
|
if (U.length === 0) {
|
|
11288
11294
|
L.warning(e("common.selectData"));
|
|
11289
11295
|
return;
|
|
@@ -11305,7 +11311,7 @@ const da = /* @__PURE__ */ q({
|
|
|
11305
11311
|
id: V.id
|
|
11306
11312
|
}
|
|
11307
11313
|
});
|
|
11308
|
-
L.success(T.message || e("otherPermissions.delSuccess")),
|
|
11314
|
+
L.success(T.message || e("otherPermissions.delSuccess")), w.commitProxy("query");
|
|
11309
11315
|
} catch (T) {
|
|
11310
11316
|
console.error("删除失败:", T);
|
|
11311
11317
|
}
|
|
@@ -11313,9 +11319,9 @@ const da = /* @__PURE__ */ q({
|
|
|
11313
11319
|
});
|
|
11314
11320
|
}
|
|
11315
11321
|
function G() {
|
|
11316
|
-
|
|
11322
|
+
w.commitProxy("query");
|
|
11317
11323
|
}
|
|
11318
|
-
const S =
|
|
11324
|
+
const S = p(!1), O = p("0"), Y = p(""), b = p(""), F = p(""), k = p(!1), y = p(null);
|
|
11319
11325
|
return (U, V) => (m(), N("div", {
|
|
11320
11326
|
class: "other-permissions-query h-full flex flex-col bg-[var(--color-fill-2)]",
|
|
11321
11327
|
onKeydown: V[2] || (V[2] = zA(
|
|
@@ -11361,14 +11367,14 @@ const pa = { class: "h-full w-full overflow-auto bg-[var(--color-fill-2)]" }, Pa
|
|
|
11361
11367
|
}, Na = { class: "flex items-center gap-3" }, ja = { class: "shrink-0 w-20 text-sm text-[var(--color-text-2)]" }, Xa = { class: "flex items-center gap-3" }, Za = { class: "shrink-0 w-20 text-sm text-[var(--color-text-2)]" }, Va = { class: "flex items-center justify-between" }, Ja = { class: "text-sm text-[var(--color-text-1)]" }, Ha = { class: "text-xs text-[var(--color-text-4)] mt-0.5" }, Wa = { class: "shrink-0 p-2 bg-[var(--color-bg-2)] border-t border-[var(--color-border-1)]" }, Ta = { class: "flex justify-end" }, oi = /* @__PURE__ */ q({
|
|
11362
11368
|
__name: "SystemSetting",
|
|
11363
11369
|
setup(A) {
|
|
11364
|
-
const { t: e } = ie(), g =
|
|
11370
|
+
const { t: e } = ie(), g = p(!1), t = p(!1), o = uA({
|
|
11365
11371
|
initialPassword: "",
|
|
11366
11372
|
weakPasswords: [],
|
|
11367
11373
|
showSubMenuIcon: !0,
|
|
11368
11374
|
showAgent: !1,
|
|
11369
11375
|
agentUrl: "",
|
|
11370
11376
|
agentToken: ""
|
|
11371
|
-
}), s =
|
|
11377
|
+
}), s = p([]), n = p(""), B = H(() => o.showAgent), E = () => {
|
|
11372
11378
|
const C = n.value.trim();
|
|
11373
11379
|
if (!C) {
|
|
11374
11380
|
L.warning(e("common.systemSetting.enterWeakPassword"));
|
|
@@ -11381,7 +11387,7 @@ const pa = { class: "h-full w-full overflow-auto bg-[var(--color-fill-2)]" }, Pa
|
|
|
11381
11387
|
s.value.push({ id: Date.now().toString(), password: C }), o.weakPasswords = s.value.map((l) => l.password), n.value = "";
|
|
11382
11388
|
}, c = (C) => {
|
|
11383
11389
|
s.value = s.value.filter((l) => l.id !== C), o.weakPasswords = s.value.map((l) => l.password);
|
|
11384
|
-
},
|
|
11390
|
+
}, w = async () => {
|
|
11385
11391
|
g.value = !0;
|
|
11386
11392
|
try {
|
|
11387
11393
|
((await ma()).result || []).forEach((a) => {
|
|
@@ -11392,9 +11398,9 @@ const pa = { class: "h-full w-full overflow-auto bg-[var(--color-fill-2)]" }, Pa
|
|
|
11392
11398
|
case "PwdStrVal":
|
|
11393
11399
|
try {
|
|
11394
11400
|
const I = JSON.parse(a.cValue || "{}");
|
|
11395
|
-
I.list && Array.isArray(I.list) && (s.value = I.list.map((
|
|
11401
|
+
I.list && Array.isArray(I.list) && (s.value = I.list.map((f, D) => ({
|
|
11396
11402
|
id: String(D),
|
|
11397
|
-
password:
|
|
11403
|
+
password: f
|
|
11398
11404
|
})), o.weakPasswords = I.list);
|
|
11399
11405
|
} catch (I) {
|
|
11400
11406
|
console.error("Parse weak password config failed", I);
|
|
@@ -11479,8 +11485,8 @@ const pa = { class: "h-full w-full overflow-auto bg-[var(--color-fill-2)]" }, Pa
|
|
|
11479
11485
|
t.value = !1;
|
|
11480
11486
|
}
|
|
11481
11487
|
};
|
|
11482
|
-
return
|
|
11483
|
-
const a = x("a-input-password"), I = x("a-input"),
|
|
11488
|
+
return w(), (C, l) => {
|
|
11489
|
+
const a = x("a-input-password"), I = x("a-input"), f = x("a-button"), D = x("a-tag"), P = x("a-card"), v = x("a-switch"), h = x("a-spin");
|
|
11484
11490
|
return m(), N("div", pa, [
|
|
11485
11491
|
r(h, {
|
|
11486
11492
|
loading: g.value,
|
|
@@ -11490,7 +11496,7 @@ const pa = { class: "h-full w-full overflow-auto bg-[var(--color-fill-2)]" }, Pa
|
|
|
11490
11496
|
d("div", Pa, [
|
|
11491
11497
|
d("div", Ma, [
|
|
11492
11498
|
d("div", Fa, [
|
|
11493
|
-
r(
|
|
11499
|
+
r(P, {
|
|
11494
11500
|
title: Q(e)("common.systemSetting.securitySetting"),
|
|
11495
11501
|
bordered: !1
|
|
11496
11502
|
}, {
|
|
@@ -11521,7 +11527,7 @@ const pa = { class: "h-full w-full overflow-auto bg-[var(--color-fill-2)]" }, Pa
|
|
|
11521
11527
|
size: "small",
|
|
11522
11528
|
onPressEnter: E
|
|
11523
11529
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
11524
|
-
r(
|
|
11530
|
+
r(f, {
|
|
11525
11531
|
type: "primary",
|
|
11526
11532
|
size: "small",
|
|
11527
11533
|
onClick: E
|
|
@@ -11553,7 +11559,7 @@ const pa = { class: "h-full w-full overflow-auto bg-[var(--color-fill-2)]" }, Pa
|
|
|
11553
11559
|
_: 1
|
|
11554
11560
|
}, 8, ["title"]),
|
|
11555
11561
|
d("div", La, [
|
|
11556
|
-
r(
|
|
11562
|
+
r(P, {
|
|
11557
11563
|
title: Q(e)("common.systemSetting.agentSetting"),
|
|
11558
11564
|
bordered: !1
|
|
11559
11565
|
}, {
|
|
@@ -11601,7 +11607,7 @@ const pa = { class: "h-full w-full overflow-auto bg-[var(--color-fill-2)]" }, Pa
|
|
|
11601
11607
|
]),
|
|
11602
11608
|
_: 1
|
|
11603
11609
|
}, 8, ["title"]),
|
|
11604
|
-
r(
|
|
11610
|
+
r(P, {
|
|
11605
11611
|
title: Q(e)("common.systemSetting.interfaceSetting"),
|
|
11606
11612
|
bordered: !1
|
|
11607
11613
|
}, {
|
|
@@ -11627,7 +11633,7 @@ const pa = { class: "h-full w-full overflow-auto bg-[var(--color-fill-2)]" }, Pa
|
|
|
11627
11633
|
]),
|
|
11628
11634
|
d("div", Wa, [
|
|
11629
11635
|
d("div", Ta, [
|
|
11630
|
-
r(
|
|
11636
|
+
r(f, {
|
|
11631
11637
|
type: "primary",
|
|
11632
11638
|
loading: t.value,
|
|
11633
11639
|
onClick: i
|
|
@@ -11895,7 +11901,7 @@ function Ht({
|
|
|
11895
11901
|
...o ? { objectToValueFields: o } : {}
|
|
11896
11902
|
});
|
|
11897
11903
|
E = I;
|
|
11898
|
-
const
|
|
11904
|
+
const f = (z) => z.map((R) => {
|
|
11899
11905
|
if (R.selectOptions?.dictCode) {
|
|
11900
11906
|
const M = String(R.selectOptions.dictCode), G = C.value[M] || [];
|
|
11901
11907
|
return {
|
|
@@ -11909,7 +11915,7 @@ function Ht({
|
|
|
11909
11915
|
return R;
|
|
11910
11916
|
}), D = uA({
|
|
11911
11917
|
id: "meta-grid",
|
|
11912
|
-
columns:
|
|
11918
|
+
columns: f(e),
|
|
11913
11919
|
data: [],
|
|
11914
11920
|
size: "mini",
|
|
11915
11921
|
editRules: g,
|
|
@@ -11936,13 +11942,13 @@ function Ht({
|
|
|
11936
11942
|
...s && { aggregateConfig: s }
|
|
11937
11943
|
});
|
|
11938
11944
|
lA(() => C.value, () => {
|
|
11939
|
-
D.columns =
|
|
11945
|
+
D.columns = f(e);
|
|
11940
11946
|
}, { deep: !0 });
|
|
11941
|
-
const [
|
|
11947
|
+
const [P, v] = ZA({
|
|
11942
11948
|
gridOptions: D,
|
|
11943
11949
|
gridEvents: n
|
|
11944
11950
|
}), h = v.reloadData.bind(v);
|
|
11945
|
-
return v.reloadData = (z) => (D.data = z, h(z)), [a, I,
|
|
11951
|
+
return v.reloadData = (z) => (D.data = z, h(z)), [a, I, P, v];
|
|
11946
11952
|
}
|
|
11947
11953
|
const tQ = /* @__PURE__ */ q({
|
|
11948
11954
|
name: "DataDictionaryAdd",
|
|
@@ -11955,7 +11961,7 @@ const tQ = /* @__PURE__ */ q({
|
|
|
11955
11961
|
emits: ["update:visible", "success"],
|
|
11956
11962
|
setup(A, { emit: e }) {
|
|
11957
11963
|
const g = A, t = e;
|
|
11958
|
-
|
|
11964
|
+
p(!1);
|
|
11959
11965
|
const [o, s, n, B] = Ht({
|
|
11960
11966
|
formSchema: Xt,
|
|
11961
11967
|
tableColumns: Zt,
|
|
@@ -11975,26 +11981,26 @@ const tQ = /* @__PURE__ */ q({
|
|
|
11975
11981
|
const l = await B.getFullData(), a = l.filter((h) => h.key).map((h) => h.key), I = new Set(a);
|
|
11976
11982
|
if (a.length !== I.size)
|
|
11977
11983
|
return L.warning("属性键不能重复"), !1;
|
|
11978
|
-
const
|
|
11984
|
+
const f = await s.getValues(), D = {};
|
|
11979
11985
|
l.forEach((h) => {
|
|
11980
11986
|
h.key && (D[h.key] = h.value || "");
|
|
11981
11987
|
});
|
|
11982
|
-
const
|
|
11988
|
+
const P = {
|
|
11983
11989
|
authDict: {
|
|
11984
|
-
cXuhao:
|
|
11985
|
-
cName:
|
|
11986
|
-
cSign:
|
|
11990
|
+
cXuhao: f.cXuhao,
|
|
11991
|
+
cName: f.cName,
|
|
11992
|
+
cSign: f.cSign,
|
|
11987
11993
|
nParent: g.parentId || "0",
|
|
11988
|
-
nOrder:
|
|
11994
|
+
nOrder: f.nOrder || 0,
|
|
11989
11995
|
cMeta: JSON.stringify(D)
|
|
11990
11996
|
}
|
|
11991
|
-
}, v = await j.post("/core/authDict/add",
|
|
11997
|
+
}, v = await j.post("/core/authDict/add", P);
|
|
11992
11998
|
return L.success(v.message), t("success"), !0;
|
|
11993
11999
|
} catch (i) {
|
|
11994
12000
|
return console.error("新增失败:", i), !1;
|
|
11995
12001
|
}
|
|
11996
12002
|
}
|
|
11997
|
-
function
|
|
12003
|
+
function w() {
|
|
11998
12004
|
t("update:visible", !1);
|
|
11999
12005
|
}
|
|
12000
12006
|
return (i, C) => (m(), W(Q(vA), {
|
|
@@ -12003,7 +12009,7 @@ const tQ = /* @__PURE__ */ q({
|
|
|
12003
12009
|
width: 700,
|
|
12004
12010
|
"on-before-ok": c,
|
|
12005
12011
|
"onUpdate:modelValue": C[0] || (C[0] = (l) => t("update:visible", l)),
|
|
12006
|
-
onClose:
|
|
12012
|
+
onClose: w
|
|
12007
12013
|
}, {
|
|
12008
12014
|
default: u(() => [
|
|
12009
12015
|
r(Q(o)),
|
|
@@ -12028,8 +12034,8 @@ function Wt({
|
|
|
12028
12034
|
onAutoSelect: (a) => Ae(a, o)
|
|
12029
12035
|
}), B = (() => {
|
|
12030
12036
|
const a = /* @__PURE__ */ new Set();
|
|
12031
|
-
return e.forEach((
|
|
12032
|
-
|
|
12037
|
+
return e.forEach((f) => {
|
|
12038
|
+
f.type === "grid" && f.gridConfig && f.gridConfig.columns.forEach((D) => {
|
|
12033
12039
|
D.selectOptions?.dictCode && a.add(D.selectOptions.dictCode);
|
|
12034
12040
|
});
|
|
12035
12041
|
}), Array.from(a);
|
|
@@ -12038,7 +12044,7 @@ function Wt({
|
|
|
12038
12044
|
immediate: !1
|
|
12039
12045
|
});
|
|
12040
12046
|
B.length > 0 && c();
|
|
12041
|
-
const [
|
|
12047
|
+
const [w, i] = hA({
|
|
12042
12048
|
layout: "horizontal",
|
|
12043
12049
|
size: "small",
|
|
12044
12050
|
labelWidth: 100,
|
|
@@ -12052,10 +12058,10 @@ function Wt({
|
|
|
12052
12058
|
...g ? { objectToValueFields: g } : {}
|
|
12053
12059
|
});
|
|
12054
12060
|
o = i;
|
|
12055
|
-
const C = Bg([]), l =
|
|
12061
|
+
const C = Bg([]), l = p([]);
|
|
12056
12062
|
return e.forEach((a, I) => {
|
|
12057
12063
|
if (a.type === "grid" && a.gridConfig) {
|
|
12058
|
-
const
|
|
12064
|
+
const f = uA({
|
|
12059
12065
|
id: `grid-${I}`,
|
|
12060
12066
|
columns: a.gridConfig.columns,
|
|
12061
12067
|
data: [],
|
|
@@ -12079,7 +12085,7 @@ function Wt({
|
|
|
12079
12085
|
...a.gridConfig.aggregateConfig && { aggregateConfig: a.gridConfig.aggregateConfig }
|
|
12080
12086
|
});
|
|
12081
12087
|
lA(() => E.value, (h) => {
|
|
12082
|
-
|
|
12088
|
+
f.columns = (f.columns || []).map((z) => {
|
|
12083
12089
|
if (z.selectOptions?.dictCode) {
|
|
12084
12090
|
const R = String(z.selectOptions.dictCode), M = h[R] || [];
|
|
12085
12091
|
return {
|
|
@@ -12093,17 +12099,17 @@ function Wt({
|
|
|
12093
12099
|
return z;
|
|
12094
12100
|
});
|
|
12095
12101
|
}, { deep: !0 });
|
|
12096
|
-
const [D,
|
|
12097
|
-
gridOptions:
|
|
12102
|
+
const [D, P] = ZA({
|
|
12103
|
+
gridOptions: f
|
|
12098
12104
|
}), v = {
|
|
12099
|
-
...
|
|
12100
|
-
reloadData: (h) => (
|
|
12101
|
-
validate: () =>
|
|
12102
|
-
getFullData: () =>
|
|
12105
|
+
...P,
|
|
12106
|
+
reloadData: (h) => (f.data = h, P.reloadData(h)),
|
|
12107
|
+
validate: () => P.validate(),
|
|
12108
|
+
getFullData: () => P.getFullData()
|
|
12103
12109
|
};
|
|
12104
12110
|
C.value.push(zt(D)), l.value.push(v);
|
|
12105
12111
|
}
|
|
12106
|
-
}), [
|
|
12112
|
+
}), [w, i, C, l];
|
|
12107
12113
|
}
|
|
12108
12114
|
const gQ = /* @__PURE__ */ q({
|
|
12109
12115
|
name: "DataDictionaryUpdate",
|
|
@@ -12115,8 +12121,8 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12115
12121
|
emits: ["update:visible", "success"],
|
|
12116
12122
|
setup(A, { emit: e }) {
|
|
12117
12123
|
const { TabPane: g } = ae, t = A, o = e;
|
|
12118
|
-
|
|
12119
|
-
const s =
|
|
12124
|
+
p(!1);
|
|
12125
|
+
const s = p(0), [n, B, E, c] = Wt({
|
|
12120
12126
|
formSchema: Xt,
|
|
12121
12127
|
tabsConfig: Pt
|
|
12122
12128
|
});
|
|
@@ -12137,13 +12143,13 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12137
12143
|
nOrder: I.authDict.nOrder
|
|
12138
12144
|
}), I.authDict.cMeta)
|
|
12139
12145
|
try {
|
|
12140
|
-
const
|
|
12141
|
-
key:
|
|
12142
|
-
value:
|
|
12146
|
+
const f = JSON.parse(I.authDict.cMeta), D = Object.keys(f).map((P) => ({
|
|
12147
|
+
key: P,
|
|
12148
|
+
value: f[P]
|
|
12143
12149
|
}));
|
|
12144
12150
|
c.value[0].reloadData(D);
|
|
12145
|
-
} catch (
|
|
12146
|
-
console.error("解析额外属性失败:",
|
|
12151
|
+
} catch (f) {
|
|
12152
|
+
console.error("解析额外属性失败:", f);
|
|
12147
12153
|
}
|
|
12148
12154
|
I.childList && I.childList.length > 0 ? c.value[1].reloadData(I.childList) : c.value[1].reloadData([]);
|
|
12149
12155
|
}
|
|
@@ -12152,25 +12158,25 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12152
12158
|
}
|
|
12153
12159
|
}
|
|
12154
12160
|
});
|
|
12155
|
-
const
|
|
12161
|
+
const w = H(() => "修改字典");
|
|
12156
12162
|
async function i() {
|
|
12157
12163
|
try {
|
|
12158
12164
|
const { valid: l } = await B.validate();
|
|
12159
12165
|
if (!l || await c.value[0].validate()) return !1;
|
|
12160
|
-
const I = await c.value[0].getFullData(),
|
|
12161
|
-
if (
|
|
12166
|
+
const I = await c.value[0].getFullData(), f = I.filter((M) => M.key).map((M) => M.key), D = new Set(f);
|
|
12167
|
+
if (f.length !== D.size)
|
|
12162
12168
|
return L.warning("属性键不能重复"), !1;
|
|
12163
|
-
const
|
|
12169
|
+
const P = await B.getValues(), v = {};
|
|
12164
12170
|
I.forEach((M) => {
|
|
12165
12171
|
M.key && (v[M.key] = M.value || "");
|
|
12166
12172
|
});
|
|
12167
12173
|
const h = await c.value[1].getFullData(), z = {
|
|
12168
12174
|
authDict: {
|
|
12169
12175
|
id: t.row?.id,
|
|
12170
|
-
cXuhao:
|
|
12171
|
-
cName:
|
|
12172
|
-
cSign:
|
|
12173
|
-
nOrder:
|
|
12176
|
+
cXuhao: P.cXuhao,
|
|
12177
|
+
cName: P.cName,
|
|
12178
|
+
cSign: P.cSign,
|
|
12179
|
+
nOrder: P.nOrder || 0,
|
|
12174
12180
|
cMeta: JSON.stringify(v),
|
|
12175
12181
|
nParent: t.row?.nParent || 0,
|
|
12176
12182
|
nType: t.row?.nType || 1
|
|
@@ -12187,7 +12193,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12187
12193
|
}
|
|
12188
12194
|
return (l, a) => (m(), W(Q(vA), {
|
|
12189
12195
|
"model-value": t.visible,
|
|
12190
|
-
title:
|
|
12196
|
+
title: w.value,
|
|
12191
12197
|
width: 700,
|
|
12192
12198
|
"on-before-ok": i,
|
|
12193
12199
|
"onUpdate:modelValue": a[1] || (a[1] = (I) => o("update:visible", I)),
|
|
@@ -12200,13 +12206,13 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12200
12206
|
"onUpdate:modelValue": a[0] || (a[0] = (I) => s.value = I)
|
|
12201
12207
|
}, {
|
|
12202
12208
|
default: u(() => [
|
|
12203
|
-
(m(!0), N(oA, null, BA(Q(Pt), (I,
|
|
12204
|
-
key:
|
|
12209
|
+
(m(!0), N(oA, null, BA(Q(Pt), (I, f) => (m(), W(Q(g), {
|
|
12210
|
+
key: f,
|
|
12205
12211
|
title: I.title
|
|
12206
12212
|
}, {
|
|
12207
12213
|
default: u(() => [
|
|
12208
|
-
(m(), W(ce(Q(E)[
|
|
12209
|
-
id: `grid-${
|
|
12214
|
+
(m(), W(ce(Q(E)[f]), {
|
|
12215
|
+
id: `grid-${f}`,
|
|
12210
12216
|
border: "",
|
|
12211
12217
|
"max-height": "300"
|
|
12212
12218
|
}, null, 8, ["id"]))
|
|
@@ -12288,13 +12294,13 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12288
12294
|
gridApi: B,
|
|
12289
12295
|
submitting: E,
|
|
12290
12296
|
handleGlobalEnter: c,
|
|
12291
|
-
searchPlanList:
|
|
12297
|
+
searchPlanList: w,
|
|
12292
12298
|
currentSearchPlan: i,
|
|
12293
12299
|
resourceId: C,
|
|
12294
12300
|
nResourceid: l,
|
|
12295
12301
|
handleSearchPlanSearch: a,
|
|
12296
12302
|
handleDefaultPlanLoaded: I,
|
|
12297
|
-
businessResumeState:
|
|
12303
|
+
businessResumeState: f
|
|
12298
12304
|
} = kA({
|
|
12299
12305
|
searchFormSchema: _a,
|
|
12300
12306
|
tableColumns: $a,
|
|
@@ -12309,14 +12315,14 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12309
12315
|
},
|
|
12310
12316
|
treeConfig: t,
|
|
12311
12317
|
lazy: !0
|
|
12312
|
-
}), D =
|
|
12318
|
+
}), D = p(!1), P = p("0"), v = p(""), h = p(!1), z = p(void 0);
|
|
12313
12319
|
function R() {
|
|
12314
12320
|
const Y = B.getSelection();
|
|
12315
12321
|
if (Y.length > 1) {
|
|
12316
12322
|
L.warning("最多只能选择一条数据作为父级");
|
|
12317
12323
|
return;
|
|
12318
12324
|
}
|
|
12319
|
-
Y.length === 1 ? (
|
|
12325
|
+
Y.length === 1 ? (P.value = Y[0].id, v.value = Y[0].cName) : (P.value = "0", v.value = ""), D.value = !0;
|
|
12320
12326
|
}
|
|
12321
12327
|
function M() {
|
|
12322
12328
|
const Y = B.getSelection();
|
|
@@ -12399,7 +12405,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12399
12405
|
})])]), r(tQ, {
|
|
12400
12406
|
visible: D.value,
|
|
12401
12407
|
"onUpdate:visible": b[0] || (b[0] = (F) => D.value = F),
|
|
12402
|
-
"parent-id":
|
|
12408
|
+
"parent-id": P.value,
|
|
12403
12409
|
"parent-name": v.value,
|
|
12404
12410
|
onSuccess: O
|
|
12405
12411
|
}, null, 8, ["visible", "parent-id", "parent-name"]), r(gQ, {
|
|
@@ -12408,7 +12414,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12408
12414
|
row: z.value,
|
|
12409
12415
|
onSuccess: O
|
|
12410
12416
|
}, null, 8, ["visible", "row"]), r(Q(te), {
|
|
12411
|
-
state: Q(
|
|
12417
|
+
state: Q(f)
|
|
12412
12418
|
}, null, 8, ["state"])], 32));
|
|
12413
12419
|
}
|
|
12414
12420
|
}), ni = /* @__PURE__ */ wA(BQ, [["__scopeId", "data-v-4940c6dd"]]), rQ = [
|
|
@@ -12623,7 +12629,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12623
12629
|
emits: ["update:visible", "success"],
|
|
12624
12630
|
setup(A, { emit: e }) {
|
|
12625
12631
|
const g = A, t = e;
|
|
12626
|
-
|
|
12632
|
+
p(!1);
|
|
12627
12633
|
const [o, s, n, B] = Ht({
|
|
12628
12634
|
formSchema: Tt,
|
|
12629
12635
|
tableColumns: qt,
|
|
@@ -12643,26 +12649,26 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12643
12649
|
const l = await B.getFullData(), a = l.filter((h) => h.key).map((h) => h.key), I = new Set(a);
|
|
12644
12650
|
if (a.length !== I.size)
|
|
12645
12651
|
return L.warning("属性键不能重复"), !1;
|
|
12646
|
-
const
|
|
12652
|
+
const f = await s.getValues(), D = {};
|
|
12647
12653
|
l.forEach((h) => {
|
|
12648
12654
|
h.key && (D[h.key] = h.value || "");
|
|
12649
12655
|
});
|
|
12650
|
-
const
|
|
12656
|
+
const P = {
|
|
12651
12657
|
authDict: {
|
|
12652
|
-
cXuhao:
|
|
12653
|
-
cName:
|
|
12654
|
-
cSign:
|
|
12658
|
+
cXuhao: f.cXuhao,
|
|
12659
|
+
cName: f.cName,
|
|
12660
|
+
cSign: f.cSign,
|
|
12655
12661
|
nParent: g.parentId || "0",
|
|
12656
|
-
nOrder:
|
|
12662
|
+
nOrder: f.nOrder || 0,
|
|
12657
12663
|
cMeta: JSON.stringify(D)
|
|
12658
12664
|
}
|
|
12659
|
-
}, v = await j.post("/core/authDict/addBS",
|
|
12665
|
+
}, v = await j.post("/core/authDict/addBS", P);
|
|
12660
12666
|
return L.success(v.message), t("success"), !0;
|
|
12661
12667
|
} catch (i) {
|
|
12662
12668
|
return console.error("新增失败:", i), !1;
|
|
12663
12669
|
}
|
|
12664
12670
|
}
|
|
12665
|
-
function
|
|
12671
|
+
function w() {
|
|
12666
12672
|
t("update:visible", !1);
|
|
12667
12673
|
}
|
|
12668
12674
|
return (i, C) => (m(), W(Q(vA), {
|
|
@@ -12671,7 +12677,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12671
12677
|
width: 700,
|
|
12672
12678
|
"on-before-ok": c,
|
|
12673
12679
|
"onUpdate:modelValue": C[0] || (C[0] = (l) => t("update:visible", l)),
|
|
12674
|
-
onClose:
|
|
12680
|
+
onClose: w
|
|
12675
12681
|
}, {
|
|
12676
12682
|
default: u(() => [
|
|
12677
12683
|
r(Q(o)),
|
|
@@ -12694,8 +12700,8 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12694
12700
|
emits: ["update:visible", "success"],
|
|
12695
12701
|
setup(A, { emit: e }) {
|
|
12696
12702
|
const { TabPane: g } = ae, t = A, o = e;
|
|
12697
|
-
|
|
12698
|
-
const s =
|
|
12703
|
+
p(!1);
|
|
12704
|
+
const s = p(0), [n, B, E, c] = Wt({
|
|
12699
12705
|
formSchema: Tt,
|
|
12700
12706
|
tabsConfig: Mt
|
|
12701
12707
|
});
|
|
@@ -12716,13 +12722,13 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12716
12722
|
nOrder: I.authDict.nOrder
|
|
12717
12723
|
}), I.authDict.cMeta)
|
|
12718
12724
|
try {
|
|
12719
|
-
const
|
|
12720
|
-
key:
|
|
12721
|
-
value:
|
|
12725
|
+
const f = JSON.parse(I.authDict.cMeta), D = Object.keys(f).map((P) => ({
|
|
12726
|
+
key: P,
|
|
12727
|
+
value: f[P]
|
|
12722
12728
|
}));
|
|
12723
12729
|
c.value[0].reloadData(D);
|
|
12724
|
-
} catch (
|
|
12725
|
-
console.error("解析额外属性失败:",
|
|
12730
|
+
} catch (f) {
|
|
12731
|
+
console.error("解析额外属性失败:", f);
|
|
12726
12732
|
}
|
|
12727
12733
|
I.childList && I.childList.length > 0 ? c.value[1].reloadData(I.childList) : c.value[1].reloadData([]);
|
|
12728
12734
|
}
|
|
@@ -12731,25 +12737,25 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12731
12737
|
}
|
|
12732
12738
|
}
|
|
12733
12739
|
});
|
|
12734
|
-
const
|
|
12740
|
+
const w = H(() => "修改字典");
|
|
12735
12741
|
async function i() {
|
|
12736
12742
|
try {
|
|
12737
12743
|
const { valid: l } = await B.validate();
|
|
12738
12744
|
if (!l || await c.value[0].validate()) return !1;
|
|
12739
|
-
const I = await c.value[0].getFullData(),
|
|
12740
|
-
if (
|
|
12745
|
+
const I = await c.value[0].getFullData(), f = I.filter((M) => M.key).map((M) => M.key), D = new Set(f);
|
|
12746
|
+
if (f.length !== D.size)
|
|
12741
12747
|
return L.warning("属性键不能重复"), !1;
|
|
12742
|
-
const
|
|
12748
|
+
const P = await B.getValues(), v = {};
|
|
12743
12749
|
I.forEach((M) => {
|
|
12744
12750
|
M.key && (v[M.key] = M.value || "");
|
|
12745
12751
|
});
|
|
12746
12752
|
const h = await c.value[1].getFullData(), z = {
|
|
12747
12753
|
authDict: {
|
|
12748
12754
|
id: t.row?.id,
|
|
12749
|
-
cXuhao:
|
|
12750
|
-
cName:
|
|
12751
|
-
cSign:
|
|
12752
|
-
nOrder:
|
|
12755
|
+
cXuhao: P.cXuhao,
|
|
12756
|
+
cName: P.cName,
|
|
12757
|
+
cSign: P.cSign,
|
|
12758
|
+
nOrder: P.nOrder || 0,
|
|
12753
12759
|
cMeta: JSON.stringify(v),
|
|
12754
12760
|
nParent: t.row?.nParent || 0,
|
|
12755
12761
|
nType: t.row?.nType || 1
|
|
@@ -12766,7 +12772,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12766
12772
|
}
|
|
12767
12773
|
return (l, a) => (m(), W(Q(vA), {
|
|
12768
12774
|
"model-value": t.visible,
|
|
12769
|
-
title:
|
|
12775
|
+
title: w.value,
|
|
12770
12776
|
width: 700,
|
|
12771
12777
|
"on-before-ok": i,
|
|
12772
12778
|
"onUpdate:modelValue": a[1] || (a[1] = (I) => o("update:visible", I)),
|
|
@@ -12779,13 +12785,13 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12779
12785
|
"onUpdate:modelValue": a[0] || (a[0] = (I) => s.value = I)
|
|
12780
12786
|
}, {
|
|
12781
12787
|
default: u(() => [
|
|
12782
|
-
(m(!0), N(oA, null, BA(Q(Mt), (I,
|
|
12783
|
-
key:
|
|
12788
|
+
(m(!0), N(oA, null, BA(Q(Mt), (I, f) => (m(), W(Q(g), {
|
|
12789
|
+
key: f,
|
|
12784
12790
|
title: I.title
|
|
12785
12791
|
}, {
|
|
12786
12792
|
default: u(() => [
|
|
12787
|
-
(m(), W(ce(Q(E)[
|
|
12788
|
-
id: `grid-${
|
|
12793
|
+
(m(), W(ce(Q(E)[f]), {
|
|
12794
|
+
id: `grid-${f}`,
|
|
12789
12795
|
border: "",
|
|
12790
12796
|
"max-height": "300"
|
|
12791
12797
|
}, null, 8, ["id"]))
|
|
@@ -12867,13 +12873,13 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12867
12873
|
gridApi: B,
|
|
12868
12874
|
submitting: E,
|
|
12869
12875
|
handleGlobalEnter: c,
|
|
12870
|
-
searchPlanList:
|
|
12876
|
+
searchPlanList: w,
|
|
12871
12877
|
currentSearchPlan: i,
|
|
12872
12878
|
resourceId: C,
|
|
12873
12879
|
nResourceid: l,
|
|
12874
12880
|
handleSearchPlanSearch: a,
|
|
12875
12881
|
handleDefaultPlanLoaded: I,
|
|
12876
|
-
businessResumeState:
|
|
12882
|
+
businessResumeState: f
|
|
12877
12883
|
} = kA({
|
|
12878
12884
|
searchFormSchema: CQ,
|
|
12879
12885
|
tableColumns: lQ,
|
|
@@ -12888,14 +12894,14 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12888
12894
|
},
|
|
12889
12895
|
treeConfig: t,
|
|
12890
12896
|
lazy: !0
|
|
12891
|
-
}), D =
|
|
12897
|
+
}), D = p(!1), P = p("0"), v = p(""), h = p(!1), z = p(null);
|
|
12892
12898
|
function R() {
|
|
12893
12899
|
const Y = B.getSelection();
|
|
12894
12900
|
if (Y.length > 1) {
|
|
12895
12901
|
L.warning("最多只能选择一条数据作为父级");
|
|
12896
12902
|
return;
|
|
12897
12903
|
}
|
|
12898
|
-
Y.length === 1 ? (
|
|
12904
|
+
Y.length === 1 ? (P.value = Y[0].id, v.value = Y[0].cName) : (P.value = "0", v.value = ""), D.value = !0;
|
|
12899
12905
|
}
|
|
12900
12906
|
function M() {
|
|
12901
12907
|
const Y = B.getSelection();
|
|
@@ -12975,7 +12981,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12975
12981
|
})])]), r(cQ, {
|
|
12976
12982
|
visible: D.value,
|
|
12977
12983
|
"onUpdate:visible": b[0] || (b[0] = (F) => D.value = F),
|
|
12978
|
-
"parent-id":
|
|
12984
|
+
"parent-id": P.value,
|
|
12979
12985
|
"parent-name": v.value,
|
|
12980
12986
|
onSuccess: O
|
|
12981
12987
|
}, null, 8, ["visible", "parent-id", "parent-name"]), r(iQ, {
|
|
@@ -12984,7 +12990,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
12984
12990
|
row: z.value,
|
|
12985
12991
|
onSuccess: O
|
|
12986
12992
|
}, null, 8, ["visible", "row"]), r(Q(te), {
|
|
12987
|
-
state: Q(
|
|
12993
|
+
state: Q(f)
|
|
12988
12994
|
}, null, 8, ["state"])], 32));
|
|
12989
12995
|
}
|
|
12990
12996
|
}), si = /* @__PURE__ */ wA(uQ, [["__scopeId", "data-v-24b85090"]]), Ee = ({ t: A, formApi: e }) => {
|
|
@@ -13211,7 +13217,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13211
13217
|
},
|
|
13212
13218
|
colProps: { span: 12 }
|
|
13213
13219
|
}
|
|
13214
|
-
],
|
|
13220
|
+
], w = [
|
|
13215
13221
|
{ type: "checkbox", width: 40, align: "center" },
|
|
13216
13222
|
{ field: "cRolenumb", title: A("user.cRolenumb"), minWidth: 100 },
|
|
13217
13223
|
{ field: "cRolename", title: A("user.cRolename"), minWidth: 200 },
|
|
@@ -13236,32 +13242,32 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13236
13242
|
resourceConfig: B,
|
|
13237
13243
|
addEditFormSchema: E,
|
|
13238
13244
|
authFormSchema: c,
|
|
13239
|
-
authGridColumns:
|
|
13245
|
+
authGridColumns: w,
|
|
13240
13246
|
bindMacGridColumns: i
|
|
13241
13247
|
};
|
|
13242
13248
|
}, fQ = /* @__PURE__ */ q({
|
|
13243
13249
|
__name: "UserAdd",
|
|
13244
13250
|
emits: ["success"],
|
|
13245
13251
|
setup(A, { expose: e, emit: g }) {
|
|
13246
|
-
const { t } = aA(), o =
|
|
13252
|
+
const { t } = aA(), o = p(!1), s = p("add"), n = g, [B, E] = ee({
|
|
13247
13253
|
schema: [],
|
|
13248
13254
|
objectToValueFields: ["cWork"]
|
|
13249
|
-
}), { addEditFormSchema: c } = Ee({ t, formApi: E }),
|
|
13255
|
+
}), { addEditFormSchema: c } = Ee({ t, formApi: E }), w = () => {
|
|
13250
13256
|
o.value = !0, s.value = "add", E.setState({ schema: c }), E.resetForm(), E.setValues({
|
|
13251
13257
|
nMainAccount: "1",
|
|
13252
13258
|
nOuterUser: "0"
|
|
13253
13259
|
});
|
|
13254
13260
|
}, i = async (I) => {
|
|
13255
13261
|
s.value = "edit";
|
|
13256
|
-
const
|
|
13257
|
-
o.value = !0, await fA(), E.setState({ schema: c }), E.resetForm(),
|
|
13258
|
-
...
|
|
13259
|
-
nMainAccount:
|
|
13260
|
-
nOuterUser:
|
|
13262
|
+
const f = await j.post("/core/authUser/queryById", { authUser: { id: I.id } });
|
|
13263
|
+
o.value = !0, await fA(), E.setState({ schema: c }), E.resetForm(), f.code === 200 && E.setValues({
|
|
13264
|
+
...f.result,
|
|
13265
|
+
nMainAccount: f.result.nMainAccount.toString(),
|
|
13266
|
+
nOuterUser: f.result.nOuterUser.toString()
|
|
13261
13267
|
}, !1);
|
|
13262
13268
|
};
|
|
13263
13269
|
e({
|
|
13264
|
-
addInit:
|
|
13270
|
+
addInit: w,
|
|
13265
13271
|
editInit: i,
|
|
13266
13272
|
detailInit: (I) => {
|
|
13267
13273
|
i(I);
|
|
@@ -13272,13 +13278,13 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13272
13278
|
if (!I) return !1;
|
|
13273
13279
|
const D = {
|
|
13274
13280
|
authUser: await E.getValues()
|
|
13275
|
-
},
|
|
13276
|
-
return
|
|
13281
|
+
}, P = await j.post(s.value === "add" ? "/core/authUser/add" : "/core/authUser/edit", D);
|
|
13282
|
+
return P.code === 200 ? (L.success(P.message), o.value = !1, n("success"), !0) : (L.error(P.message), !1);
|
|
13277
13283
|
};
|
|
13278
13284
|
function a() {
|
|
13279
13285
|
o.value = !1;
|
|
13280
13286
|
}
|
|
13281
|
-
return (I,
|
|
13287
|
+
return (I, f) => (m(), W(Q(vA), {
|
|
13282
13288
|
"model-value": o.value,
|
|
13283
13289
|
title: s.value === "add" ? Q(t)("user.addTitle") : Q(t)("user.editTitle"),
|
|
13284
13290
|
width: 600,
|
|
@@ -13295,8 +13301,8 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13295
13301
|
__name: "UserChooseRole",
|
|
13296
13302
|
emits: ["chooseRoleEmit"],
|
|
13297
13303
|
setup(A, { expose: e, emit: g }) {
|
|
13298
|
-
const { t } = aA(), o =
|
|
13299
|
-
|
|
13304
|
+
const { t } = aA(), o = p(!1), s = p([]);
|
|
13305
|
+
p([]), p(!1);
|
|
13300
13306
|
const n = g, B = [
|
|
13301
13307
|
{
|
|
13302
13308
|
fieldName: "cRolenumb",
|
|
@@ -13329,7 +13335,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13329
13335
|
{ field: "cSystem", title: t("user.cSystem"), width: 120 }
|
|
13330
13336
|
], c = () => {
|
|
13331
13337
|
o.value = !0;
|
|
13332
|
-
},
|
|
13338
|
+
}, w = (C) => {
|
|
13333
13339
|
n("chooseRoleEmit", C);
|
|
13334
13340
|
}, i = async (C) => {
|
|
13335
13341
|
var l = {
|
|
@@ -13358,17 +13364,17 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13358
13364
|
"table-columns": E,
|
|
13359
13365
|
"search-api": i,
|
|
13360
13366
|
"field-names": { label: "cRolename", value: "cRolenumb" },
|
|
13361
|
-
onConfirm:
|
|
13367
|
+
onConfirm: w
|
|
13362
13368
|
}, null, 8, ["visible", "modelValue", "title"]));
|
|
13363
13369
|
}
|
|
13364
13370
|
}), vQ = /* @__PURE__ */ q({
|
|
13365
13371
|
__name: "UserAuth",
|
|
13366
13372
|
emits: ["success"],
|
|
13367
13373
|
setup(A, { expose: e, emit: g }) {
|
|
13368
|
-
const t =
|
|
13374
|
+
const t = p(), { t: o } = aA(), s = p(!1), n = g, [B, E] = ee({ schema: [] }), { authFormSchema: c, authGridColumns: w } = Ee({ t: o, formApi: E }), [i, C] = ZA({
|
|
13369
13375
|
gridOptions: {
|
|
13370
13376
|
data: [],
|
|
13371
|
-
columns:
|
|
13377
|
+
columns: w,
|
|
13372
13378
|
border: !0,
|
|
13373
13379
|
size: "mini",
|
|
13374
13380
|
maxHeight: 400,
|
|
@@ -13398,7 +13404,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13398
13404
|
function I() {
|
|
13399
13405
|
s.value = !1;
|
|
13400
13406
|
}
|
|
13401
|
-
const
|
|
13407
|
+
const f = () => {
|
|
13402
13408
|
t.value.openInit();
|
|
13403
13409
|
}, D = async (v) => {
|
|
13404
13410
|
const h = await C.getFullData();
|
|
@@ -13411,7 +13417,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13411
13417
|
nSensitive: z.nSensitive
|
|
13412
13418
|
});
|
|
13413
13419
|
});
|
|
13414
|
-
},
|
|
13420
|
+
}, P = () => {
|
|
13415
13421
|
C.deleteSelection();
|
|
13416
13422
|
};
|
|
13417
13423
|
return (v, h) => {
|
|
@@ -13431,7 +13437,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13431
13437
|
default: u(() => [
|
|
13432
13438
|
r(z, {
|
|
13433
13439
|
type: "primary",
|
|
13434
|
-
onClick:
|
|
13440
|
+
onClick: f
|
|
13435
13441
|
}, {
|
|
13436
13442
|
default: u(() => [
|
|
13437
13443
|
J(X(Q(o)("common.create")), 1)
|
|
@@ -13440,7 +13446,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13440
13446
|
}),
|
|
13441
13447
|
r(z, {
|
|
13442
13448
|
type: "primary",
|
|
13443
|
-
onClick:
|
|
13449
|
+
onClick: P
|
|
13444
13450
|
}, {
|
|
13445
13451
|
default: u(() => [
|
|
13446
13452
|
J(X(Q(o)("common.deleteSelected")), 1)
|
|
@@ -13467,7 +13473,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13467
13473
|
__name: "UserBindMac",
|
|
13468
13474
|
emits: ["success"],
|
|
13469
13475
|
setup(A, { expose: e, emit: g }) {
|
|
13470
|
-
const { t } = aA(), o =
|
|
13476
|
+
const { t } = aA(), o = p(!1), s = p({}), n = g, { bindMacGridColumns: B } = Ee({ t }), [E, c] = ZA({
|
|
13471
13477
|
gridOptions: {
|
|
13472
13478
|
data: [],
|
|
13473
13479
|
columns: B,
|
|
@@ -13484,8 +13490,8 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13484
13490
|
});
|
|
13485
13491
|
e({
|
|
13486
13492
|
openInit: async (I) => {
|
|
13487
|
-
const
|
|
13488
|
-
|
|
13493
|
+
const f = await j.post("/core/authUser/queryMac", { cUsernumb: I.cUsernumb }), D = f.code === 200 ? f.result : [];
|
|
13494
|
+
f.code === 200 && (s.value = I), o.value = !0, await fA(), c.reloadData(D);
|
|
13489
13495
|
}
|
|
13490
13496
|
});
|
|
13491
13497
|
const i = async () => {
|
|
@@ -13496,8 +13502,8 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13496
13502
|
authUserMac: {
|
|
13497
13503
|
cUsernumb: s.value.cUsernumb
|
|
13498
13504
|
}
|
|
13499
|
-
},
|
|
13500
|
-
return
|
|
13505
|
+
}, P = await j.post("/core/authUser/saveMac", D);
|
|
13506
|
+
return P.code === 200 ? (L.success(P.message), o.value = !1, n("success"), !0) : (L.error(P.message), !1);
|
|
13501
13507
|
};
|
|
13502
13508
|
function C() {
|
|
13503
13509
|
o.value = !1;
|
|
@@ -13507,8 +13513,8 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13507
13513
|
}, a = () => {
|
|
13508
13514
|
c.deleteSelection();
|
|
13509
13515
|
};
|
|
13510
|
-
return (I,
|
|
13511
|
-
const D = x("a-button"),
|
|
13516
|
+
return (I, f) => {
|
|
13517
|
+
const D = x("a-button"), P = x("a-space");
|
|
13512
13518
|
return m(), W(Q(vA), {
|
|
13513
13519
|
"model-value": o.value,
|
|
13514
13520
|
title: Q(t)("user.bindMacTitle"),
|
|
@@ -13519,7 +13525,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13519
13525
|
default: u(() => [
|
|
13520
13526
|
r(Q(E), null, {
|
|
13521
13527
|
toolbar: u(() => [
|
|
13522
|
-
r(
|
|
13528
|
+
r(P, { class: "mb-2" }, {
|
|
13523
13529
|
default: u(() => [
|
|
13524
13530
|
r(D, {
|
|
13525
13531
|
type: "primary",
|
|
@@ -13557,7 +13563,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13557
13563
|
__name: "UserOtherAuth",
|
|
13558
13564
|
emits: ["success"],
|
|
13559
13565
|
setup(A, { expose: e, emit: g }) {
|
|
13560
|
-
const { t } = aA(), o =
|
|
13566
|
+
const { t } = aA(), o = p(!1), s = p([]), n = p({}), B = (i, C) => {
|
|
13561
13567
|
C.forEach((l) => {
|
|
13562
13568
|
l.check = !!i;
|
|
13563
13569
|
});
|
|
@@ -13579,7 +13585,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13579
13585
|
}, C = await j.post("/core/authUser/saveUserExres", i);
|
|
13580
13586
|
return C.code === 200 ? (L.success(C.message), o.value = !1, !0) : (L.error(C.message), !1);
|
|
13581
13587
|
};
|
|
13582
|
-
function
|
|
13588
|
+
function w() {
|
|
13583
13589
|
o.value = !1;
|
|
13584
13590
|
}
|
|
13585
13591
|
return (i, C) => {
|
|
@@ -13590,7 +13596,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13590
13596
|
width: 900,
|
|
13591
13597
|
class: "macAddressDialog",
|
|
13592
13598
|
"on-before-ok": c,
|
|
13593
|
-
onClose:
|
|
13599
|
+
onClose: w
|
|
13594
13600
|
}, {
|
|
13595
13601
|
default: u(() => [
|
|
13596
13602
|
d("div", null, [
|
|
@@ -13612,7 +13618,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13612
13618
|
d("td", yQ, [
|
|
13613
13619
|
(m(!0), N(oA, null, BA(a.authExresList, (I) => (m(), W(l, {
|
|
13614
13620
|
modelValue: I.check,
|
|
13615
|
-
"onUpdate:modelValue": (
|
|
13621
|
+
"onUpdate:modelValue": (f) => I.check = f
|
|
13616
13622
|
}, {
|
|
13617
13623
|
default: u(() => [
|
|
13618
13624
|
J(X(I.cExresnum + "-" + I.cExresname) + " ", 1),
|
|
@@ -13638,7 +13644,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13638
13644
|
}, GQ = /* @__PURE__ */ q({
|
|
13639
13645
|
__name: "UserQuery",
|
|
13640
13646
|
setup(A) {
|
|
13641
|
-
const e =
|
|
13647
|
+
const e = p(), g = p(), t = p(), o = p(), s = KA(), {
|
|
13642
13648
|
t: n
|
|
13643
13649
|
} = aA(), {
|
|
13644
13650
|
searchFormSchema: B,
|
|
@@ -13646,7 +13652,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13646
13652
|
resourceConfig: c
|
|
13647
13653
|
} = Ee({
|
|
13648
13654
|
t: n
|
|
13649
|
-
}),
|
|
13655
|
+
}), w = async ({
|
|
13650
13656
|
page: F,
|
|
13651
13657
|
formValues: k
|
|
13652
13658
|
}) => {
|
|
@@ -13790,9 +13796,9 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13790
13796
|
formApi: l,
|
|
13791
13797
|
Grid: a,
|
|
13792
13798
|
gridApi: I,
|
|
13793
|
-
submitting:
|
|
13799
|
+
submitting: f,
|
|
13794
13800
|
handleGlobalEnter: D,
|
|
13795
|
-
searchPlanList:
|
|
13801
|
+
searchPlanList: P,
|
|
13796
13802
|
currentSearchPlan: v,
|
|
13797
13803
|
resourceId: h,
|
|
13798
13804
|
nResourceid: z,
|
|
@@ -13803,7 +13809,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13803
13809
|
searchFormSchema: B,
|
|
13804
13810
|
tableColumns: E,
|
|
13805
13811
|
resourceConfig: c,
|
|
13806
|
-
queryFunction:
|
|
13812
|
+
queryFunction: w,
|
|
13807
13813
|
gridEvents: i,
|
|
13808
13814
|
showCheckbox: !0
|
|
13809
13815
|
}), {
|
|
@@ -13979,7 +13985,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13979
13985
|
},
|
|
13980
13986
|
colProps: { span: 12 }
|
|
13981
13987
|
}
|
|
13982
|
-
],
|
|
13988
|
+
], w = [
|
|
13983
13989
|
{ type: "checkbox", width: 40, align: "center" },
|
|
13984
13990
|
{ field: "cUsernumb", title: A("user.cUsernumb"), minWidth: 100 },
|
|
13985
13991
|
{ field: "cUsername", title: A("user.cUsername"), minWidth: 200 },
|
|
@@ -13999,7 +14005,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
13999
14005
|
resourceConfig: B,
|
|
14000
14006
|
addEditFormSchema: E,
|
|
14001
14007
|
authFormSchema: c,
|
|
14002
|
-
authGridColumns:
|
|
14008
|
+
authGridColumns: w
|
|
14003
14009
|
};
|
|
14004
14010
|
}, LQ = { class: "h-full flex flex-col" }, xQ = { class: "mt-5 flex-1 overflow-hidden" }, YQ = { class: "mb-3 text-sm font-medium" }, KQ = { class: "h-[calc(100%-36px)] overflow-auto" }, RQ = {
|
|
14005
14011
|
class: "extra-container ml-[250px] mr-auto",
|
|
@@ -14012,7 +14018,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14012
14018
|
__name: "RoleAdd",
|
|
14013
14019
|
emits: ["success"],
|
|
14014
14020
|
setup(A, { expose: e, emit: g }) {
|
|
14015
|
-
const { t } = aA(), o =
|
|
14021
|
+
const { t } = aA(), o = p(!1), s = p("add"), n = p(), B = p(), E = p(!1), c = g, w = uA({
|
|
14016
14022
|
treeData: [],
|
|
14017
14023
|
defaultChecked: [],
|
|
14018
14024
|
expandedKeys: []
|
|
@@ -14024,12 +14030,12 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14024
14030
|
});
|
|
14025
14031
|
if (k.code === 200) {
|
|
14026
14032
|
const y = k.result;
|
|
14027
|
-
|
|
14033
|
+
w.treeData = h(y), C(w.treeData);
|
|
14028
14034
|
}
|
|
14029
14035
|
}, C = (F) => {
|
|
14030
14036
|
F.forEach((k) => {
|
|
14031
14037
|
k.buttonList && k.buttonList.length && k.buttonList.forEach((y) => {
|
|
14032
|
-
y.checked =
|
|
14038
|
+
y.checked = w.defaultChecked.includes(String(y.id));
|
|
14033
14039
|
}), k.children && C(k.children);
|
|
14034
14040
|
});
|
|
14035
14041
|
}, l = (F) => {
|
|
@@ -14047,7 +14053,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14047
14053
|
}
|
|
14048
14054
|
return !1;
|
|
14049
14055
|
};
|
|
14050
|
-
return y(
|
|
14056
|
+
return y(w.treeData, F), k;
|
|
14051
14057
|
}, I = (F, k) => {
|
|
14052
14058
|
const y = k.node, U = k.checked, V = [...F];
|
|
14053
14059
|
if (U) {
|
|
@@ -14083,16 +14089,16 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14083
14089
|
};
|
|
14084
14090
|
y.children && AA(y.children, !1);
|
|
14085
14091
|
}
|
|
14086
|
-
|
|
14087
|
-
}, [
|
|
14092
|
+
w.defaultChecked = V;
|
|
14093
|
+
}, [f, D] = hA({
|
|
14088
14094
|
layout: "horizontal",
|
|
14089
14095
|
size: "small",
|
|
14090
14096
|
labelWidth: 100,
|
|
14091
14097
|
showDefaultActions: !1,
|
|
14092
14098
|
scrollToFirstError: !0,
|
|
14093
14099
|
schema: []
|
|
14094
|
-
}), { addEditFormSchema:
|
|
14095
|
-
F ? (await i(F),
|
|
14100
|
+
}), { addEditFormSchema: P } = qe({ t, formApi: D }), v = async (F) => {
|
|
14101
|
+
F ? (await i(F), w.defaultChecked = []) : (w.treeData = [], w.defaultChecked = []);
|
|
14096
14102
|
};
|
|
14097
14103
|
D.setState({
|
|
14098
14104
|
handleValuesChange: (F, k) => {
|
|
@@ -14106,7 +14112,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14106
14112
|
U.children.forEach((AA) => {
|
|
14107
14113
|
if (AA.cType === "2") {
|
|
14108
14114
|
const gA = AA.label || AA.name || AA.text || AA.cName || AA.id;
|
|
14109
|
-
V.push({ ...AA, label: gA, checked:
|
|
14115
|
+
V.push({ ...AA, label: gA, checked: w.defaultChecked.includes(String(AA.id)) });
|
|
14110
14116
|
} else
|
|
14111
14117
|
T.push(h([AA])[0]);
|
|
14112
14118
|
}), U.buttonList = V, U.children = T.length ? T : void 0;
|
|
@@ -14124,9 +14130,9 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14124
14130
|
return null;
|
|
14125
14131
|
}, R = (F) => {
|
|
14126
14132
|
if (F.checked) {
|
|
14127
|
-
|
|
14128
|
-
const k = z(
|
|
14129
|
-
k && (
|
|
14133
|
+
w.defaultChecked.includes(F.id) || w.defaultChecked.push(F.id);
|
|
14134
|
+
const k = z(w.treeData, F.id);
|
|
14135
|
+
k && (w.defaultChecked.includes(k.id) || w.defaultChecked.push(k.id), ((V, T) => {
|
|
14130
14136
|
let AA = [];
|
|
14131
14137
|
const gA = (K, $) => {
|
|
14132
14138
|
for (const tA of K)
|
|
@@ -14148,27 +14154,27 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14148
14154
|
break;
|
|
14149
14155
|
}
|
|
14150
14156
|
return AA;
|
|
14151
|
-
})(k,
|
|
14152
|
-
|
|
14157
|
+
})(k, w.treeData).forEach((V) => {
|
|
14158
|
+
w.defaultChecked.includes(V) || w.defaultChecked.push(V);
|
|
14153
14159
|
}));
|
|
14154
14160
|
} else {
|
|
14155
|
-
const k =
|
|
14156
|
-
k !== -1 &&
|
|
14161
|
+
const k = w.defaultChecked.indexOf(F.id);
|
|
14162
|
+
k !== -1 && w.defaultChecked.splice(k, 1);
|
|
14157
14163
|
}
|
|
14158
14164
|
}, M = (F, k, y) => {
|
|
14159
|
-
|
|
14165
|
+
w.expandedKeys = F;
|
|
14160
14166
|
}, G = async () => {
|
|
14161
|
-
o.value = !0, s.value = "add", D.setState({ schema:
|
|
14167
|
+
o.value = !0, s.value = "add", D.setState({ schema: P }), D.resetForm(), w.treeData = [], w.defaultChecked = [], w.treeData = [], await fA(), n.value && n.value.toggleMaximize();
|
|
14162
14168
|
}, S = async (F) => {
|
|
14163
14169
|
E.value = !0, s.value = "edit";
|
|
14164
14170
|
const k = await j.post("/core/authRole/update_init", { authRole: { id: F.id } });
|
|
14165
|
-
if (o.value = !0, await fA(), D.setState({ schema:
|
|
14171
|
+
if (o.value = !0, await fA(), D.setState({ schema: P }), D.resetForm(), k.code === 200) {
|
|
14166
14172
|
D.setValues(k.result.role, !1), D.updateSchema([{
|
|
14167
14173
|
fieldName: "cRolenumb",
|
|
14168
14174
|
componentProps: { disabled: !0 }
|
|
14169
|
-
}]),
|
|
14175
|
+
}]), w.defaultChecked = (k.result.resourceidList || []).map(String);
|
|
14170
14176
|
const y = k.result.treeList || [];
|
|
14171
|
-
|
|
14177
|
+
w.treeData = h(y), C(w.treeData), w.expandedKeys = [];
|
|
14172
14178
|
}
|
|
14173
14179
|
await fA(), n.value && n.value.toggleMaximize(), E.value = !1;
|
|
14174
14180
|
};
|
|
@@ -14184,7 +14190,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14184
14190
|
if (!F) return !1;
|
|
14185
14191
|
const y = {
|
|
14186
14192
|
authRole: await D.getValues(),
|
|
14187
|
-
idList:
|
|
14193
|
+
idList: w.defaultChecked
|
|
14188
14194
|
}, U = await j.post(s.value === "add" ? "/core/authRole/saveRole" : "/core/authRole/saveUpdateRole", y);
|
|
14189
14195
|
return U.code === 200 ? (L.success(U.message), o.value = !1, c("success"), !0) : (L.error(U.message), !1);
|
|
14190
14196
|
};
|
|
@@ -14201,19 +14207,19 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14201
14207
|
}, {
|
|
14202
14208
|
default: u(() => [
|
|
14203
14209
|
d("div", LQ, [
|
|
14204
|
-
r(Q(
|
|
14210
|
+
r(Q(f)),
|
|
14205
14211
|
d("div", xQ, [
|
|
14206
14212
|
d("h4", YQ, X(Q(t)("role.resourceConfig")), 1),
|
|
14207
14213
|
d("div", KQ, [
|
|
14208
14214
|
r(Q(Cg), {
|
|
14209
14215
|
ref_key: "treeRef",
|
|
14210
14216
|
ref: B,
|
|
14211
|
-
data:
|
|
14217
|
+
data: w.treeData,
|
|
14212
14218
|
"node-key": "id",
|
|
14213
14219
|
checkable: !0,
|
|
14214
14220
|
"check-strictly": !0,
|
|
14215
|
-
"checked-keys":
|
|
14216
|
-
"expanded-keys":
|
|
14221
|
+
"checked-keys": w.defaultChecked,
|
|
14222
|
+
"expanded-keys": w.expandedKeys,
|
|
14217
14223
|
"field-names": { key: "id", title: "label", children: "children", disabled: "disabled" },
|
|
14218
14224
|
"default-expand-all": !1,
|
|
14219
14225
|
onExpand: M,
|
|
@@ -14251,7 +14257,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14251
14257
|
__name: "RoleChooseUser",
|
|
14252
14258
|
emits: ["chooseUserEmit"],
|
|
14253
14259
|
setup(A, { expose: e, emit: g }) {
|
|
14254
|
-
const { t } = aA(), o =
|
|
14260
|
+
const { t } = aA(), o = p(!1), s = p([]), n = g, B = [
|
|
14255
14261
|
{
|
|
14256
14262
|
fieldName: "cUsernumb",
|
|
14257
14263
|
label: t("user.cUsernumb"),
|
|
@@ -14280,7 +14286,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14280
14286
|
{ field: "cJobname", title: t("role.jobname"), width: 120 }
|
|
14281
14287
|
], c = () => {
|
|
14282
14288
|
s.value = [], o.value = !0;
|
|
14283
|
-
},
|
|
14289
|
+
}, w = (C) => {
|
|
14284
14290
|
n("chooseUserEmit", C);
|
|
14285
14291
|
}, i = async (C) => {
|
|
14286
14292
|
var l = {
|
|
@@ -14309,14 +14315,14 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14309
14315
|
"table-columns": E,
|
|
14310
14316
|
"search-api": i,
|
|
14311
14317
|
"field-names": { label: "cUsername", value: "id" },
|
|
14312
|
-
onConfirm:
|
|
14318
|
+
onConfirm: w
|
|
14313
14319
|
}, null, 8, ["visible", "modelValue", "title"]));
|
|
14314
14320
|
}
|
|
14315
14321
|
}), ZQ = /* @__PURE__ */ q({
|
|
14316
14322
|
__name: "RoleAuth",
|
|
14317
14323
|
emits: ["success"],
|
|
14318
14324
|
setup(A, { expose: e, emit: g }) {
|
|
14319
|
-
const t =
|
|
14325
|
+
const t = p(), { t: o } = aA(), s = p(!1), n = p(null), B = p([]), E = g, [c, w] = ee({ schema: [] }), { authFormSchema: i, authGridColumns: C } = qe({ t: o, formApi: w }), [l, a] = ZA({
|
|
14320
14326
|
gridOptions: {
|
|
14321
14327
|
data: [],
|
|
14322
14328
|
columns: C,
|
|
@@ -14334,13 +14340,13 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14334
14340
|
const R = await j.post("/core/authRole/findRoleUser", {
|
|
14335
14341
|
authRole: { id: z.id }
|
|
14336
14342
|
}), M = R.code === 200 ? R.result.authUserList || [] : [];
|
|
14337
|
-
B.value = JSON.parse(JSON.stringify(M)), s.value = !0, await fA(),
|
|
14343
|
+
B.value = JSON.parse(JSON.stringify(M)), s.value = !0, await fA(), w.setState({ schema: i }), w.resetForm(), w.setValues({
|
|
14338
14344
|
cRolenumb: z.cRolenumb,
|
|
14339
14345
|
cRolename: z.cRolename
|
|
14340
14346
|
}), a.reloadData(M);
|
|
14341
14347
|
}
|
|
14342
14348
|
});
|
|
14343
|
-
const
|
|
14349
|
+
const f = () => {
|
|
14344
14350
|
t.value.openInit();
|
|
14345
14351
|
}, D = async (z) => {
|
|
14346
14352
|
const R = await a.getFullData();
|
|
@@ -14352,12 +14358,12 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14352
14358
|
cUsernumb: M.cUsernumb
|
|
14353
14359
|
});
|
|
14354
14360
|
});
|
|
14355
|
-
},
|
|
14361
|
+
}, P = () => {
|
|
14356
14362
|
a.deleteSelection();
|
|
14357
14363
|
}, v = async () => {
|
|
14358
|
-
const { valid: z } = await
|
|
14364
|
+
const { valid: z } = await w.validate();
|
|
14359
14365
|
if (!z) return !1;
|
|
14360
|
-
await
|
|
14366
|
+
await w.getValues();
|
|
14361
14367
|
const R = await a.getFullData(), M = await a.$grid.getRemoveRecords(), G = R.filter(
|
|
14362
14368
|
(Y) => !B.value.some((b) => b.id === Y.id)
|
|
14363
14369
|
), S = {
|
|
@@ -14389,7 +14395,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14389
14395
|
default: u(() => [
|
|
14390
14396
|
r(M, {
|
|
14391
14397
|
type: "primary",
|
|
14392
|
-
onClick:
|
|
14398
|
+
onClick: f
|
|
14393
14399
|
}, {
|
|
14394
14400
|
default: u(() => [
|
|
14395
14401
|
J(X(Q(o)("common.create")), 1)
|
|
@@ -14398,7 +14404,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14398
14404
|
}),
|
|
14399
14405
|
r(M, {
|
|
14400
14406
|
type: "primary",
|
|
14401
|
-
onClick:
|
|
14407
|
+
onClick: P
|
|
14402
14408
|
}, {
|
|
14403
14409
|
default: u(() => [
|
|
14404
14410
|
J(X(Q(o)("common.deleteSelected")), 1)
|
|
@@ -14430,7 +14436,7 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14430
14436
|
}, WQ = /* @__PURE__ */ q({
|
|
14431
14437
|
__name: "RoleQuery",
|
|
14432
14438
|
setup(A) {
|
|
14433
|
-
const e =
|
|
14439
|
+
const e = p(), g = p(), {
|
|
14434
14440
|
t
|
|
14435
14441
|
} = aA(), {
|
|
14436
14442
|
searchFormSchema: o,
|
|
@@ -14498,15 +14504,15 @@ const gQ = /* @__PURE__ */ q({
|
|
|
14498
14504
|
}
|
|
14499
14505
|
}, {
|
|
14500
14506
|
QueryForm: c,
|
|
14501
|
-
formApi:
|
|
14507
|
+
formApi: w,
|
|
14502
14508
|
Grid: i,
|
|
14503
14509
|
gridApi: C,
|
|
14504
14510
|
submitting: l,
|
|
14505
14511
|
handleGlobalEnter: a,
|
|
14506
14512
|
searchPlanList: I,
|
|
14507
|
-
currentSearchPlan:
|
|
14513
|
+
currentSearchPlan: f,
|
|
14508
14514
|
resourceId: D,
|
|
14509
|
-
nResourceid:
|
|
14515
|
+
nResourceid: P,
|
|
14510
14516
|
handleSearchPlanSearch: v,
|
|
14511
14517
|
handleDefaultPlanLoaded: h,
|
|
14512
14518
|
businessResumeState: z
|
|
@@ -14590,10 +14596,10 @@ const qQ = {
|
|
|
14590
14596
|
}), n = s?.result || s, B = {};
|
|
14591
14597
|
return Object.keys(n).forEach((E) => {
|
|
14592
14598
|
const c = n[E] || [];
|
|
14593
|
-
B[E] = c.map((
|
|
14594
|
-
label: o(
|
|
14595
|
-
value:
|
|
14596
|
-
...
|
|
14599
|
+
B[E] = c.map((w) => ({
|
|
14600
|
+
label: o(w),
|
|
14601
|
+
value: w[t],
|
|
14602
|
+
...w
|
|
14597
14603
|
// 保留原始字段
|
|
14598
14604
|
}));
|
|
14599
14605
|
}), B;
|
|
@@ -14796,14 +14802,14 @@ function Bc(A) {
|
|
|
14796
14802
|
};
|
|
14797
14803
|
}
|
|
14798
14804
|
function rc(A) {
|
|
14799
|
-
const { cFieldtype: e, cLabel: g, cProp: t, cMeta: o, cSeltype: s, cSelval: n, cRequired: B, cPlaceholder: E, nOrder: c, cSign:
|
|
14805
|
+
const { cFieldtype: e, cLabel: g, cProp: t, cMeta: o, cSeltype: s, cSelval: n, cRequired: B, cPlaceholder: E, nOrder: c, cSign: w, cShow: i, nLg: C, cDefVal: l, nI18ndata: a, cDirectives: I, cDynamicShow: f, cDynamicRules: D, cDynamicDisabled: P, cWidth: v } = A, h = o ? JSON.parse(o) : {};
|
|
14800
14806
|
var z = {
|
|
14801
14807
|
components: e,
|
|
14802
14808
|
label: g,
|
|
14803
14809
|
fieldName: t,
|
|
14804
14810
|
componentProps: {
|
|
14805
14811
|
placeholder: E,
|
|
14806
|
-
disabled:
|
|
14812
|
+
disabled: w === "0"
|
|
14807
14813
|
},
|
|
14808
14814
|
hidden: i !== "1",
|
|
14809
14815
|
// 是否隐藏字段(静态隐藏,不参与联动逻辑)。
|
|
@@ -14816,7 +14822,7 @@ function rc(A) {
|
|
|
14816
14822
|
};
|
|
14817
14823
|
return z = { ...z, ...h }, (e === "Input" || e === "Select") && (z.componentProps.allowClear = !0), s && n && h.components !== "DatePicker" && (z.componentProps.options = Ag(A), s === "3" && (z.components = "SunnyCustomizeSelect", z.componentProps.cNum = n)), z.dependencies = {
|
|
14818
14824
|
show: (R) => {
|
|
14819
|
-
const M = JSON.parse(
|
|
14825
|
+
const M = JSON.parse(f), G = Ce(M, R);
|
|
14820
14826
|
return G ? new Function(`return ${G}`)() : !0;
|
|
14821
14827
|
},
|
|
14822
14828
|
required: (R) => {
|
|
@@ -14824,21 +14830,21 @@ function rc(A) {
|
|
|
14824
14830
|
return G ? new Function(`return ${G}`)() : !0;
|
|
14825
14831
|
},
|
|
14826
14832
|
disabled: (R) => {
|
|
14827
|
-
const M = JSON.parse(
|
|
14833
|
+
const M = JSON.parse(P), G = Ce(M, R);
|
|
14828
14834
|
return G ? new Function(`return ${G}`)() : !1;
|
|
14829
14835
|
}
|
|
14830
14836
|
}, z;
|
|
14831
14837
|
}
|
|
14832
14838
|
function Cc(A) {
|
|
14833
|
-
const { cLabel: e, cProp: g, cFieldtype: t, cMeta: o, cSeltype: s, cSelval: n, cWidth: B, nOrder: E, nBill: c, cSign:
|
|
14834
|
-
var
|
|
14839
|
+
const { cLabel: e, cProp: g, cFieldtype: t, cMeta: o, cSeltype: s, cSelval: n, cWidth: B, nOrder: E, nBill: c, cSign: w, cRequired: i, cShow: C, cDirectives: l, cEntityTable: a, cDynamicRules: I, cDynamicDisabled: f } = A, D = o ? JSON.parse(o) : {};
|
|
14840
|
+
var P = {
|
|
14835
14841
|
title: e,
|
|
14836
14842
|
field: g,
|
|
14837
14843
|
width: B,
|
|
14838
14844
|
...FA[t] ?? {},
|
|
14839
14845
|
params: {
|
|
14840
14846
|
required: i === "0",
|
|
14841
|
-
disabled:
|
|
14847
|
+
disabled: w === "0",
|
|
14842
14848
|
visible: C === "0",
|
|
14843
14849
|
order: E,
|
|
14844
14850
|
nBill: c,
|
|
@@ -14849,7 +14855,7 @@ function Cc(A) {
|
|
|
14849
14855
|
// dynamicRules: cDynamicRules,
|
|
14850
14856
|
// components: cFieldtype,
|
|
14851
14857
|
};
|
|
14852
|
-
return
|
|
14858
|
+
return P = { ...D, ...P }, s && n && (P.params.options = Ag(A)), P;
|
|
14853
14859
|
}
|
|
14854
14860
|
function _e(A) {
|
|
14855
14861
|
const e = ue(fe(A.resFieldList.map((s) => ({
|
|
@@ -14924,7 +14930,7 @@ const lc = () => ({
|
|
|
14924
14930
|
findDefSearchPlan: (A) => j.post("/core/assSearchplan/findDefSearchPlan", A)
|
|
14925
14931
|
}), tg = lc();
|
|
14926
14932
|
function kA(A) {
|
|
14927
|
-
const { searchFormSchema: e, tableColumns: g, dataType: t, resourceConfig: o, queryFunction: s, gridEvents: n, treeConfig: B, loadMethod: E, objectToValueFields: c, fieldMappingTime:
|
|
14933
|
+
const { searchFormSchema: e, tableColumns: g, dataType: t, resourceConfig: o, queryFunction: s, gridEvents: n, treeConfig: B, loadMethod: E, objectToValueFields: c, fieldMappingTime: w, arrayToStringFields: i, lazy: C, autoLoad: l = !0, showCheckbox: a = !0, aggregateConfig: I, queryOnReset: f = !0 } = A, { toolbarButtonClick: D, ...P } = n || {}, { resourceId: v, nResourceid: h, cModnumb: z } = o, R = p([]), M = p(void 0), G = p(!1), { enhancedSchema: S } = _A(e);
|
|
14928
14934
|
let O;
|
|
14929
14935
|
const { enhancedSchema: Y } = $A(S, {
|
|
14930
14936
|
onAutoSelect: (_) => Ae(_, O)
|
|
@@ -14951,7 +14957,7 @@ function kA(A) {
|
|
|
14951
14957
|
actionColProps: { span: 24, sm: 12, md: 8, lg: 6, xl: 4 },
|
|
14952
14958
|
schema: Y.value,
|
|
14953
14959
|
objectToValueFields: c,
|
|
14954
|
-
fieldMappingTime:
|
|
14960
|
+
fieldMappingTime: w,
|
|
14955
14961
|
arrayToStringFields: i
|
|
14956
14962
|
});
|
|
14957
14963
|
O = F;
|
|
@@ -15085,7 +15091,7 @@ function kA(A) {
|
|
|
15085
15091
|
gridEvents: {
|
|
15086
15092
|
sortChange: y,
|
|
15087
15093
|
toolbarButtonClick: T,
|
|
15088
|
-
...
|
|
15094
|
+
...P
|
|
15089
15095
|
}
|
|
15090
15096
|
}), Z = async (_) => {
|
|
15091
15097
|
await F.setValues(_), await gA.commitProxy("query");
|
|
@@ -15130,13 +15136,13 @@ function kA(A) {
|
|
|
15130
15136
|
}
|
|
15131
15137
|
},
|
|
15132
15138
|
handleReset: async () => {
|
|
15133
|
-
await F.resetForm(),
|
|
15139
|
+
await F.resetForm(), f && gA.commitProxy("query");
|
|
15134
15140
|
}
|
|
15135
15141
|
});
|
|
15136
15142
|
function $(_) {
|
|
15137
15143
|
_.target instanceof HTMLTextAreaElement || (_.preventDefault(), F.submitForm());
|
|
15138
15144
|
}
|
|
15139
|
-
const tA =
|
|
15145
|
+
const tA = p([]), eA = p(
|
|
15140
15146
|
g.find((_) => [1, 2, 3].includes(_.params?.nBill)) || null
|
|
15141
15147
|
), sA = async () => {
|
|
15142
15148
|
if (!z) {
|
|
@@ -15197,7 +15203,7 @@ function Qi(A) {
|
|
|
15197
15203
|
formConfig: t,
|
|
15198
15204
|
grid1: o,
|
|
15199
15205
|
grid2: s
|
|
15200
|
-
} = A, { resourceId: n, nResourceid: B, cModnumb: E } = e, c =
|
|
15206
|
+
} = A, { resourceId: n, nResourceid: B, cModnumb: E } = e, c = p([]), w = p(void 0), i = p(!1);
|
|
15201
15207
|
let C = null, l = null;
|
|
15202
15208
|
if (t?.searchFormSchema?.length) {
|
|
15203
15209
|
const { enhancedSchema: K } = _A(t.searchFormSchema);
|
|
@@ -15234,7 +15240,7 @@ function Qi(A) {
|
|
|
15234
15240
|
}
|
|
15235
15241
|
});
|
|
15236
15242
|
}
|
|
15237
|
-
const a =
|
|
15243
|
+
const a = p(null), I = p([]), { toolbarButtonClick: f, ...D } = o.gridEvents || {}, P = uA({
|
|
15238
15244
|
id: "DualListGrid1",
|
|
15239
15245
|
border: !0,
|
|
15240
15246
|
size: "mini",
|
|
@@ -15286,7 +15292,7 @@ function Qi(A) {
|
|
|
15286
15292
|
}
|
|
15287
15293
|
}
|
|
15288
15294
|
}
|
|
15289
|
-
}), v =
|
|
15295
|
+
}), v = p(
|
|
15290
15296
|
o.tableColumns.find((K) => [1, 2, 3].includes(K.params?.nBill)) || null
|
|
15291
15297
|
), h = uA({
|
|
15292
15298
|
visible: !1,
|
|
@@ -15307,9 +15313,9 @@ function Qi(A) {
|
|
|
15307
15313
|
z(K);
|
|
15308
15314
|
return;
|
|
15309
15315
|
}
|
|
15310
|
-
await
|
|
15316
|
+
await f?.(K);
|
|
15311
15317
|
}, [M, G] = xe({
|
|
15312
|
-
gridOptions:
|
|
15318
|
+
gridOptions: P,
|
|
15313
15319
|
gridEvents: {
|
|
15314
15320
|
sortChange: () => G.commitProxy("query"),
|
|
15315
15321
|
currentChange: ({ row: K }) => {
|
|
@@ -15321,7 +15327,7 @@ function Qi(A) {
|
|
|
15321
15327
|
toolbarButtonClick: R,
|
|
15322
15328
|
...D
|
|
15323
15329
|
}
|
|
15324
|
-
}), S =
|
|
15330
|
+
}), S = p(null), O = p([]), { toolbarButtonClick: Y, ...b } = s.gridEvents || {}, F = uA({
|
|
15325
15331
|
id: "DualListGrid2",
|
|
15326
15332
|
border: !0,
|
|
15327
15333
|
size: "mini",
|
|
@@ -15397,7 +15403,7 @@ function Qi(A) {
|
|
|
15397
15403
|
searchPlanConfig: {
|
|
15398
15404
|
enable: !0,
|
|
15399
15405
|
formConfig: l.getState().schema,
|
|
15400
|
-
currentSearchPlan:
|
|
15406
|
+
currentSearchPlan: w.value,
|
|
15401
15407
|
searchPlanList: c.value,
|
|
15402
15408
|
resourceId: n,
|
|
15403
15409
|
nResourceid: B,
|
|
@@ -15405,14 +15411,14 @@ function Qi(A) {
|
|
|
15405
15411
|
onSearch: V,
|
|
15406
15412
|
onDefaultPlanLoaded: T,
|
|
15407
15413
|
onUpdateCurrentSearchPlan: (K) => {
|
|
15408
|
-
|
|
15414
|
+
w.value = K;
|
|
15409
15415
|
},
|
|
15410
15416
|
onUpdateSearchPlanList: (K) => {
|
|
15411
15417
|
c.value = K;
|
|
15412
15418
|
}
|
|
15413
15419
|
}
|
|
15414
15420
|
});
|
|
15415
|
-
}, 0), lA([c,
|
|
15421
|
+
}, 0), lA([c, w], ([K, $]) => {
|
|
15416
15422
|
l.setState({
|
|
15417
15423
|
searchPlanConfig: {
|
|
15418
15424
|
...l.getState().searchPlanConfig,
|
|
@@ -15421,7 +15427,7 @@ function Qi(A) {
|
|
|
15421
15427
|
}
|
|
15422
15428
|
});
|
|
15423
15429
|
}, { deep: !0 }));
|
|
15424
|
-
const AA =
|
|
15430
|
+
const AA = p([]), gA = async () => {
|
|
15425
15431
|
if (!E) {
|
|
15426
15432
|
console.warn("[useDualList] 未配置 cModnumb,跳过资源获取");
|
|
15427
15433
|
return;
|
|
@@ -15441,8 +15447,8 @@ function Qi(A) {
|
|
|
15441
15447
|
name: PA("common.queryBusinessHistory"),
|
|
15442
15448
|
code: "operationLog/FindBusiness",
|
|
15443
15449
|
params: JSON.stringify({ billColumn: v.value })
|
|
15444
|
-
}), tA.length > 0 && (
|
|
15445
|
-
...
|
|
15450
|
+
}), tA.length > 0 && (P.toolbarConfig = {
|
|
15451
|
+
...P.toolbarConfig,
|
|
15446
15452
|
buttons: tA
|
|
15447
15453
|
}), eA.length > 0 && (F.toolbarConfig = {
|
|
15448
15454
|
...F.toolbarConfig,
|
|
@@ -15473,7 +15479,7 @@ function Qi(A) {
|
|
|
15473
15479
|
submitting: i,
|
|
15474
15480
|
handleGlobalEnter: Z,
|
|
15475
15481
|
searchPlanList: c,
|
|
15476
|
-
currentSearchPlan:
|
|
15482
|
+
currentSearchPlan: w,
|
|
15477
15483
|
resourceId: n,
|
|
15478
15484
|
nResourceid: B,
|
|
15479
15485
|
resourceButtons: AA,
|
|
@@ -15498,7 +15504,7 @@ function ci() {
|
|
|
15498
15504
|
};
|
|
15499
15505
|
}
|
|
15500
15506
|
function ii(A) {
|
|
15501
|
-
const e =
|
|
15507
|
+
const e = p(!1), g = p({});
|
|
15502
15508
|
return {
|
|
15503
15509
|
loading: e,
|
|
15504
15510
|
resourceButtons: g,
|
|
@@ -15531,7 +15537,7 @@ function Ei({
|
|
|
15531
15537
|
height: B = "auto",
|
|
15532
15538
|
gridId: E = "table-grid",
|
|
15533
15539
|
gridEvents: c,
|
|
15534
|
-
showOverflow:
|
|
15540
|
+
showOverflow: w = "tooltip",
|
|
15535
15541
|
aggregateConfig: i,
|
|
15536
15542
|
scrollY: C
|
|
15537
15543
|
} = {}) {
|
|
@@ -15540,11 +15546,11 @@ function Ei({
|
|
|
15540
15546
|
return A.forEach((O) => {
|
|
15541
15547
|
O.selectOptions?.dictCode && S.add(O.selectOptions.dictCode);
|
|
15542
15548
|
}), Array.from(S);
|
|
15543
|
-
})(), { optionsMap: I, load:
|
|
15549
|
+
})(), { optionsMap: I, load: f } = qA({
|
|
15544
15550
|
numbList: a,
|
|
15545
15551
|
immediate: !1
|
|
15546
15552
|
});
|
|
15547
|
-
a.length > 0 &&
|
|
15553
|
+
a.length > 0 && f();
|
|
15548
15554
|
const D = (S) => S.map((O) => {
|
|
15549
15555
|
if (O.selectOptions?.dictCode) {
|
|
15550
15556
|
const Y = String(O.selectOptions.dictCode), b = I.value[Y] || [];
|
|
@@ -15557,13 +15563,13 @@ function Ei({
|
|
|
15557
15563
|
};
|
|
15558
15564
|
}
|
|
15559
15565
|
return O;
|
|
15560
|
-
}),
|
|
15566
|
+
}), P = {
|
|
15561
15567
|
id: E,
|
|
15562
15568
|
columns: D(A),
|
|
15563
15569
|
data: t,
|
|
15564
15570
|
height: B,
|
|
15565
15571
|
size: "mini",
|
|
15566
|
-
showOverflow:
|
|
15572
|
+
showOverflow: w,
|
|
15567
15573
|
columnConfig: {
|
|
15568
15574
|
resizable: !0
|
|
15569
15575
|
},
|
|
@@ -15580,15 +15586,15 @@ function Ei({
|
|
|
15580
15586
|
...i && { aggregateConfig: i },
|
|
15581
15587
|
...C && { scrollY: C }
|
|
15582
15588
|
};
|
|
15583
|
-
o && (
|
|
15584
|
-
...
|
|
15589
|
+
o && (P.editRules = e, P.clipConfig = He()), g.length > 0 && (P.toolbarConfig = {
|
|
15590
|
+
...P.toolbarConfig,
|
|
15585
15591
|
enabled: !0,
|
|
15586
15592
|
buttons: g
|
|
15587
|
-
},
|
|
15588
|
-
...
|
|
15593
|
+
}, P.zoomConfig = { enabled: !0 }, P.customConfig = {
|
|
15594
|
+
...P.customConfig,
|
|
15589
15595
|
visibleMethod: (S) => !(S.column.type === "checkbox" || S.column.type === "seq")
|
|
15590
15596
|
});
|
|
15591
|
-
const v = uA(
|
|
15597
|
+
const v = uA(P);
|
|
15592
15598
|
lA(() => I.value, () => {
|
|
15593
15599
|
v.columns = D(A);
|
|
15594
15600
|
}, { deep: !0 });
|
|
@@ -15621,40 +15627,40 @@ function Ei({
|
|
|
15621
15627
|
return [h, G];
|
|
15622
15628
|
}
|
|
15623
15629
|
function Ii(A) {
|
|
15624
|
-
const e =
|
|
15630
|
+
const e = p(!1), g = p(!1), t = p({}), o = p([]), s = H({
|
|
15625
15631
|
get: () => o.value,
|
|
15626
|
-
set: (
|
|
15627
|
-
o.value =
|
|
15632
|
+
set: (f) => {
|
|
15633
|
+
o.value = f;
|
|
15628
15634
|
}
|
|
15629
|
-
}), n = (
|
|
15630
|
-
o.value =
|
|
15631
|
-
}, B = () => Je.businessSearchAdapter, E = (
|
|
15635
|
+
}), n = (f) => {
|
|
15636
|
+
o.value = f;
|
|
15637
|
+
}, B = () => Je.businessSearchAdapter, E = (f) => async (D) => f?.search ? await f.search({
|
|
15632
15638
|
...D,
|
|
15633
15639
|
cNum: A.cNum
|
|
15634
15640
|
}) : (console.warn("[useBusinessSearchModal] No search adapter configured."), { records: [], total: 0 }), c = async () => {
|
|
15635
|
-
const
|
|
15636
|
-
if (!
|
|
15641
|
+
const f = B();
|
|
15642
|
+
if (!f?.loadConfig) {
|
|
15637
15643
|
console.warn("[useBusinessSearchModal] No loadConfig adapter configured.");
|
|
15638
15644
|
return;
|
|
15639
15645
|
}
|
|
15640
15646
|
g.value = !0;
|
|
15641
15647
|
try {
|
|
15642
|
-
const D = await
|
|
15643
|
-
D.searchApi = E(
|
|
15648
|
+
const D = await f.loadConfig(A.cNum);
|
|
15649
|
+
D.searchApi = E(f), t.value = D;
|
|
15644
15650
|
} catch (D) {
|
|
15645
15651
|
console.error("[useBusinessSearchModal] Failed to load config:", D);
|
|
15646
15652
|
} finally {
|
|
15647
15653
|
g.value = !1;
|
|
15648
15654
|
}
|
|
15649
|
-
},
|
|
15655
|
+
}, w = async () => {
|
|
15650
15656
|
t.value.title || await c(), e.value = !0;
|
|
15651
|
-
}, i = (
|
|
15652
|
-
o.value =
|
|
15657
|
+
}, i = (f) => {
|
|
15658
|
+
o.value = f, e.value = !1, A.onConfirm?.(f);
|
|
15653
15659
|
}, C = H(() => {
|
|
15654
|
-
const
|
|
15655
|
-
return !v.some((z) => z.type === "checkbox" || z.type === "radio") && v.length > 0 && (
|
|
15660
|
+
const f = A.multiple ?? t.value.multiple ?? !0, D = A.fieldNames || t.value.fieldNames || { label: "label", value: "value" }, v = [...t.value.tableColumns || []];
|
|
15661
|
+
return !v.some((z) => z.type === "checkbox" || z.type === "radio") && v.length > 0 && (f ? v.unshift({ type: "checkbox", width: 50, fixed: "left", align: "center" }) : v.unshift({ type: "radio", width: 50, fixed: "left", align: "center" })), {
|
|
15656
15662
|
...t.value,
|
|
15657
|
-
multiple:
|
|
15663
|
+
multiple: f,
|
|
15658
15664
|
fieldNames: D,
|
|
15659
15665
|
defaultModel: A.defaultModel || t.value.defaultModel,
|
|
15660
15666
|
tableColumns: v
|
|
@@ -15664,27 +15670,27 @@ function Ii(A) {
|
|
|
15664
15670
|
visible: e,
|
|
15665
15671
|
loading: g,
|
|
15666
15672
|
modalProps: C,
|
|
15667
|
-
open:
|
|
15673
|
+
open: w,
|
|
15668
15674
|
handleConfirm: i,
|
|
15669
15675
|
selectedValues: s,
|
|
15670
15676
|
setSelectedValues: n,
|
|
15671
|
-
transformToTableFormat: (
|
|
15672
|
-
const v =
|
|
15677
|
+
transformToTableFormat: (f, D, P) => {
|
|
15678
|
+
const v = f[D];
|
|
15673
15679
|
if (typeof v != "string" || v === "") return;
|
|
15674
|
-
const h = l(), z =
|
|
15675
|
-
|
|
15680
|
+
const h = l(), z = P && f[P] ? String(f[P]) : void 0;
|
|
15681
|
+
f[D] = ug(v, {
|
|
15676
15682
|
valueKey: h.value || "value",
|
|
15677
15683
|
labelKey: h.label || "label"
|
|
15678
15684
|
}, z);
|
|
15679
15685
|
},
|
|
15680
|
-
transformToStorageFormat: (
|
|
15681
|
-
const v =
|
|
15686
|
+
transformToStorageFormat: (f, D, P) => {
|
|
15687
|
+
const v = f[D];
|
|
15682
15688
|
if (!Array.isArray(v)) return;
|
|
15683
15689
|
const h = l(), z = dg(v, {
|
|
15684
15690
|
valueKey: h.value || "value",
|
|
15685
15691
|
labelKey: h.label || "label"
|
|
15686
15692
|
});
|
|
15687
|
-
|
|
15693
|
+
f[D] = z.value, P && (f[P] = z.displayValue);
|
|
15688
15694
|
}
|
|
15689
15695
|
};
|
|
15690
15696
|
}
|
|
@@ -15734,7 +15740,7 @@ const ic = /* @__PURE__ */ q({
|
|
|
15734
15740
|
state: {}
|
|
15735
15741
|
},
|
|
15736
15742
|
setup(A) {
|
|
15737
|
-
const e = A, g =
|
|
15743
|
+
const e = A, g = p([]), t = p(!1), o = H(() => [
|
|
15738
15744
|
{ field: "cDanju", title: PA("common.businessHistory.billNo"), minWidth: 100 },
|
|
15739
15745
|
{ field: "cDongzuo", title: PA("common.businessHistory.action"), minWidth: 80 },
|
|
15740
15746
|
{ field: "cModname", title: PA("common.businessHistory.moduleName"), minWidth: 100 },
|
|
@@ -15742,7 +15748,7 @@ const ic = /* @__PURE__ */ q({
|
|
|
15742
15748
|
{ field: "dCreate", title: PA("common.businessHistory.operationTime"), minWidth: 150 },
|
|
15743
15749
|
{ field: "cMethod", title: PA("common.businessHistory.interfaceMethod"), minWidth: 120 },
|
|
15744
15750
|
{ field: "cUrl", title: PA("common.businessHistory.interfaceUrl"), minWidth: 150 }
|
|
15745
|
-
]), s =
|
|
15751
|
+
]), s = p([]), n = p(""), B = p(!1), E = H(() => s.value.find((v) => v.cName === n.value)), c = H(() => {
|
|
15746
15752
|
const v = E.value;
|
|
15747
15753
|
if (!v) return [];
|
|
15748
15754
|
try {
|
|
@@ -15756,7 +15762,7 @@ const ic = /* @__PURE__ */ q({
|
|
|
15756
15762
|
} catch {
|
|
15757
15763
|
return [];
|
|
15758
15764
|
}
|
|
15759
|
-
}),
|
|
15765
|
+
}), w = H(() => {
|
|
15760
15766
|
const v = E.value;
|
|
15761
15767
|
if (!v) return [];
|
|
15762
15768
|
try {
|
|
@@ -15803,7 +15809,7 @@ const ic = /* @__PURE__ */ q({
|
|
|
15803
15809
|
}
|
|
15804
15810
|
async function C({ row: v }) {
|
|
15805
15811
|
if (!v.logUuid) {
|
|
15806
|
-
|
|
15812
|
+
P();
|
|
15807
15813
|
return;
|
|
15808
15814
|
}
|
|
15809
15815
|
B.value = !0;
|
|
@@ -15827,13 +15833,13 @@ const ic = /* @__PURE__ */ q({
|
|
|
15827
15833
|
const z = v[h];
|
|
15828
15834
|
return z && typeof z == "object" && "value" in z ? z.value : z;
|
|
15829
15835
|
}
|
|
15830
|
-
function
|
|
15836
|
+
function f() {
|
|
15831
15837
|
D(), e.state.visible = !1;
|
|
15832
15838
|
}
|
|
15833
15839
|
function D() {
|
|
15834
|
-
g.value = [],
|
|
15840
|
+
g.value = [], P();
|
|
15835
15841
|
}
|
|
15836
|
-
function
|
|
15842
|
+
function P() {
|
|
15837
15843
|
s.value = [], n.value = "";
|
|
15838
15844
|
}
|
|
15839
15845
|
return (v, h) => {
|
|
@@ -15846,7 +15852,7 @@ const ic = /* @__PURE__ */ q({
|
|
|
15846
15852
|
footer: !1,
|
|
15847
15853
|
"mask-closable": !0,
|
|
15848
15854
|
"unmount-on-close": "",
|
|
15849
|
-
onCancel:
|
|
15855
|
+
onCancel: f
|
|
15850
15856
|
}, {
|
|
15851
15857
|
default: u(() => [
|
|
15852
15858
|
r(R, {
|
|
@@ -15899,7 +15905,7 @@ const ic = /* @__PURE__ */ q({
|
|
|
15899
15905
|
"show-overflow": "",
|
|
15900
15906
|
"keep-source": "",
|
|
15901
15907
|
size: "small",
|
|
15902
|
-
data:
|
|
15908
|
+
data: w.value,
|
|
15903
15909
|
loading: B.value,
|
|
15904
15910
|
border: "inner",
|
|
15905
15911
|
"max-height": "300px",
|
|
@@ -15930,7 +15936,7 @@ const ic = /* @__PURE__ */ q({
|
|
|
15930
15936
|
}), te = /* @__PURE__ */ wA(ic, [["__scopeId", "data-v-73d7f187"]]);
|
|
15931
15937
|
class NA {
|
|
15932
15938
|
static instance;
|
|
15933
|
-
_isLoading =
|
|
15939
|
+
_isLoading = p(!1);
|
|
15934
15940
|
/**
|
|
15935
15941
|
* 当前是否处于加载状态(响应式)
|
|
15936
15942
|
*/
|