ss-component-new 1.3.113 → 1.3.115
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/{MTLLoader-y4B1LPuT.js → MTLLoader-C-9g5iRs.js} +36 -36
- package/dist/{MTLLoader-BviVUPWi.cjs → MTLLoader-CfO9qTqV.cjs} +1 -1
- package/dist/{OrbitControls-390k2OM3.js → OrbitControls-B2gEQ18i.js} +1 -1
- package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-DoGWhGYE.cjs} +1 -1
- package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-BWZcLTTH.js} +193 -193
- package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BlsYqWJQ.cjs} +1 -1
- package/dist/{animationData-B1Jlpr7b.cjs → animationData-BjpsMpYe.cjs} +1 -1
- package/dist/{animationData-DfDLy_M4.js → animationData-CK7mtjyo.js} +18 -18
- package/dist/{array-ymebeoXj.cjs → array-4sEK1Tp6.cjs} +1 -1
- package/dist/{array-DLBDgy0c.js → array-C61a4nGq.js} +5 -5
- package/dist/{iconfont-BYa5tDrN.js → iconfont-BEEudegG.js} +37 -37
- package/dist/{iconfont-cBX7rs7k.cjs → iconfont-w8ZxNH1R.cjs} +1 -1
- package/dist/{index-DMzBNabY.js → index--HdSHCHH.js} +1 -1
- package/dist/{index-YwMY3Aya.js → index-2A65FWWp.js} +7 -7
- package/dist/{index-SeEbZNcJ.cjs → index-32lNvNQY.cjs} +1 -1
- package/dist/{index-CVySIgt4.cjs → index-AjU4645d.cjs} +1 -1
- package/dist/{index-bbJ9Y_oO.js → index-B2h_bCtP.js} +3 -3
- package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
- package/dist/{index--hQDmx_x.js → index-BADcwiJj.js} +2 -2
- package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
- package/dist/index-BGo77kB8.cjs +1 -0
- package/dist/{index-BjAtlMRE.cjs → index-BHDqgLbZ.cjs} +1 -1
- package/dist/{index-8TMkI46d.js → index-BJxcMaQu.js} +5 -5
- package/dist/{index-NdxRkX7O.js → index-BaMfm3q6.js} +959 -956
- package/dist/index-BdXsBH1P.cjs +13 -0
- package/dist/{index-B9g8IV0C.cjs → index-Bd_SZg7S.cjs} +1 -1
- package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
- package/dist/{index-UytjSmc1.cjs → index-BiA-_xPC.cjs} +1 -1
- package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
- package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
- package/dist/{index-CVwsrCrZ.cjs → index-BxNotDao.cjs} +12 -12
- package/dist/{index-DaX27S_0.js → index-BxcjTlnl.js} +31 -31
- package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
- package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
- package/dist/{index-DpIzJvIr.cjs → index-C5dht9fE.cjs} +1 -1
- package/dist/{index-BVURmufk.js → index-CANPj8uh.js} +7 -7
- package/dist/{index-BXZlLwr6.cjs → index-CHVJAILH.cjs} +1 -1
- package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
- package/dist/{index-Cu75UXH1.js → index-CPq8y_kH.js} +2 -2
- package/dist/{index-CJiEoadC.js → index-CRv6JQ2C.js} +5 -5
- package/dist/{index-CXkaTWVT.js → index-Cl2nQDI1.js} +2 -2
- package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
- package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
- package/dist/{index-BIOl9xBh.js → index-CutPkLky.js} +2 -2
- package/dist/{index-4p0yEeUu.js → index-CyWkVCgH.js} +1 -1
- package/dist/{index-DdCyGfF9.cjs → index-D8LkomEw.cjs} +1 -1
- package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
- package/dist/{index-mabPGJUl.js → index-DC6oFcJ3.js} +2191 -2186
- package/dist/index-DMp47JRO.cjs +1 -0
- package/dist/{index-CEiscADV.cjs → index-DNQnpERW.cjs} +1 -1
- package/dist/{index-D39f9FDD.cjs → index-DNSrAjI9.cjs} +1 -1
- package/dist/index-DavcqNxP.cjs +1 -0
- package/dist/{index-DBdrmcqM.cjs → index-DefT5mRw.cjs} +1 -1
- package/dist/index-DgBjwajW.js +456 -0
- package/dist/index-DiowIVZT.cjs +36 -0
- package/dist/{index-BxmhgJuz.js → index-DjITcxoB.js} +1 -1
- package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
- package/dist/index-DsOOj9Lf.cjs +1 -0
- package/dist/{index-JJBPRJiI.cjs → index-DsgMH4OH.cjs} +1 -1
- package/dist/{index-C6_KNp1M.cjs → index-DtABq3r6.cjs} +1 -1
- package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
- package/dist/{index-DLK6UU4l.cjs → index-LqtTDLKt.cjs} +1 -1
- package/dist/index-SJHk-hwy.cjs +1 -0
- package/dist/{index-DnJB2OQC.cjs → index-UCzD4hzW.cjs} +1 -1
- package/dist/{index-CIoHy7Dg.js → index-ZhE5DWe_.js} +3 -3
- package/dist/{index-CYXsxIou.js → index-a2aJc3TK.js} +1 -1
- package/dist/{index-BfNg0B2v.js → index-eiZuqNHp.js} +3167 -3138
- package/dist/{index-C2yeqxnB.js → index-eyvk-8N6.js} +3 -3
- package/dist/index-h4MsH7WN.cjs +1 -0
- package/dist/{index-Drd5_tIE.js → index-voXoCiq0.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Ctc5O7Al.js} +17645 -18043
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-yeqe0Dqi.cjs} +392 -392
- package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-CIY5Sa-o.js} +722 -712
- package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-fwFKG5I3.cjs} +3 -3
- package/dist/{main-b1OREkjD.js → main-Bv-bP073.js} +4 -4
- package/dist/{main-ChE0Sl1V.cjs → main-CojqsPyy.cjs} +1 -1
- package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
- package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CUViA1pV.js → threeModel-D3f91Rt6.js} +62 -62
- package/dist/{threeModel-BTiM-_yY.cjs → threeModel-DdDMV2Z7.cjs} +1 -1
- package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BbT2A1VX.cjs} +1 -1
- package/dist/{threePreview-fEcukbqP.js → threePreview-fvD6ZuLp.js} +102 -102
- package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-BslSyd85.js} +133 -133
- package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-DoaygXsI.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-CwkRm33h.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-DqFJ61VU.js} +8 -8
- package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-2EPeOu-l.js} +49 -49
- package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-Qy1rvMIK.cjs} +1 -1
- package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-BCN3cVBD.cjs} +1 -1
- package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-Bys_DQyR.js} +17 -17
- package/dist/{urdfTree-B9gafrR3.js → urdfTree-Dj3GmZU4.js} +1 -1
- package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-Dj_MX-rV.cjs} +1 -1
- package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-CfqOi5LU.js} +81 -81
- package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel-sLZ6i9PT.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-8ddlDjHL.js +0 -455
- package/dist/index-BLGT4-wX.cjs +0 -1
- package/dist/index-CTGhzBZx.cjs +0 -1
- package/dist/index-D7Ao1GyZ.cjs +0 -1
- package/dist/index-DUqjjluX.cjs +0 -1
- package/dist/index-DczQgLYk.cjs +0 -13
- package/dist/index-NtRUaVwS.cjs +0 -1
- package/dist/index-aMvM6ti6.cjs +0 -1
- package/dist/index-kutaq0AT.cjs +0 -36
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { b as
|
|
3
|
-
import { u as E } from "./index-
|
|
1
|
+
import { defineComponent as I, computed as v, watch as B, onMounted as f, onUnmounted as D, resolveComponent as K, createElementBlock as L, openBlock as j, createVNode as x } from "vue";
|
|
2
|
+
import { b as z, p as _, s as b } from "./index-Cn5h5u4P.js";
|
|
3
|
+
import { u as E } from "./index-DpdFnDS3.js";
|
|
4
4
|
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const T = /* @__PURE__ */
|
|
5
|
+
const T = /* @__PURE__ */ I({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
windowConfig: {
|
|
@@ -49,54 +49,56 @@ const T = /* @__PURE__ */ v({
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo"],
|
|
52
|
-
setup(o, { emit:
|
|
53
|
-
const
|
|
52
|
+
setup(o, { emit: c }) {
|
|
53
|
+
const i = z(_), { loginUserInfo: u } = b(i), { initSystemInfo: l } = E(), e = o, s = c, y = v(() => {
|
|
54
54
|
var t, n;
|
|
55
55
|
return (e == null ? void 0 : e.showButton) || ((n = (t = u.value) == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
56
56
|
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, { immediate: !0 })
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
B(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
|
|
58
|
+
i.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
|
|
59
|
+
}, { immediate: !0 }), f(async () => {
|
|
60
|
+
e.systemInfo ? i.setSystemInfo(e.systemInfo) : await l();
|
|
61
|
+
});
|
|
62
|
+
const w = () => {
|
|
63
|
+
s("buildContent");
|
|
62
64
|
}, r = () => {
|
|
63
|
-
|
|
64
|
-
}, w = (t) => {
|
|
65
|
-
i("openThreeBuild", t);
|
|
65
|
+
s("setLoginInfo");
|
|
66
66
|
}, g = (t) => {
|
|
67
|
-
|
|
67
|
+
s("openThreeBuild", t);
|
|
68
|
+
}, h = (t) => {
|
|
69
|
+
s("threeData", t);
|
|
68
70
|
}, a = () => {
|
|
69
71
|
var m;
|
|
70
|
-
const t = e != null && e.windowConfig ? (m = e == null ? void 0 : e.windowConfig) == null ? void 0 : m.width : window.innerWidth, n = 1920, d = 16,
|
|
71
|
-
document.documentElement.style.fontSize = `${
|
|
72
|
+
const t = e != null && e.windowConfig ? (m = e == null ? void 0 : e.windowConfig) == null ? void 0 : m.width : window.innerWidth, n = 1920, d = 16, C = t / n, S = d * C;
|
|
73
|
+
document.documentElement.style.fontSize = `${S}px`;
|
|
72
74
|
};
|
|
73
|
-
return
|
|
75
|
+
return f(() => {
|
|
74
76
|
a(), window.addEventListener("resize", a);
|
|
75
77
|
}), D(() => {
|
|
76
78
|
window.removeEventListener("resize", a);
|
|
77
79
|
}), (t, n) => {
|
|
78
80
|
const d = K("router-view");
|
|
79
|
-
return
|
|
80
|
-
|
|
81
|
+
return j(), L("div", null, [
|
|
82
|
+
x(d, {
|
|
81
83
|
mode: e == null ? void 0 : e.mode,
|
|
82
84
|
content: e == null ? void 0 : e.content,
|
|
83
85
|
jsonContents: e == null ? void 0 : e.jsonContents,
|
|
84
86
|
pathContent: e == null ? void 0 : e.pathContent,
|
|
85
|
-
showButton:
|
|
87
|
+
showButton: y.value,
|
|
86
88
|
nodeDev: e == null ? void 0 : e.nodeDev,
|
|
87
89
|
windowConfig: o.windowConfig,
|
|
88
90
|
systemInfo: o.systemInfo,
|
|
89
91
|
"old-systemKey": o.systemKey,
|
|
90
|
-
onBuildContent:
|
|
91
|
-
onOpenThreeBuild:
|
|
92
|
+
onBuildContent: w,
|
|
93
|
+
onOpenThreeBuild: g,
|
|
92
94
|
pageKey: o.pageKey,
|
|
93
|
-
onThreeData:
|
|
95
|
+
onThreeData: h,
|
|
94
96
|
onSetLoginInfo: r
|
|
95
97
|
}, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey"])
|
|
96
98
|
]);
|
|
97
99
|
};
|
|
98
100
|
}
|
|
99
|
-
}), k = /* @__PURE__ */ M(T, [["__scopeId", "data-v-
|
|
101
|
+
}), k = /* @__PURE__ */ M(T, [["__scopeId", "data-v-6e0a9ede"]]);
|
|
100
102
|
export {
|
|
101
103
|
k as default
|
|
102
104
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-yeqe0Dqi.cjs"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={__name:"index",props:{optionContents:{type:Object,default:()=>{}}},setup(a){const s=a;let t=null,n=null;const r=e.ref({}),o=e.ref(null),u=()=>{o.value&&(n=new ResizeObserver(()=>{i()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,c(),window.addEventListener("resize",i),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,c()}),e.onUnmounted(()=>{n&&n.disconnect(),window.removeEventListener("resize",i)});const i=()=>{t.resize()},c=()=>{t&&t.dispose(),t=d.init(o.value);const l=r.value;t.setOption(l),t.resize()};return(l,f)=>(e.openBlock(),e.createElementBlock("div",{id:"chartModelId",class:"chart-model-class",ref_key:"chartModelRef",ref:o},null,512))}},v=p._export_sfc(_,[["__scopeId","data-v-69d6e63f"]]);exports.ssChart=v;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as f, computed as A, reactive as P } from "vue";
|
|
2
|
-
import { az as
|
|
3
|
-
import { s as _, b as
|
|
4
|
-
const S =
|
|
2
|
+
import { az as $, aA as B, aw as H, g as R, u as j, E as T } from "./index-WLdc1goT.js";
|
|
3
|
+
import { s as _, b as z, Q as J, u as x, p as L, c as Q, R as G, T as X } from "./index-Cn5h5u4P.js";
|
|
4
|
+
const S = z(L), { loginUserInfo: o, cryptoInfo: c } = _(S), Y = x(L), { activeMenuPath: g } = _(Y), Z = f(0), M = A(() => {
|
|
5
5
|
var s, a, t, r, l, n, e, u, p, d, v;
|
|
6
6
|
return [
|
|
7
7
|
{
|
|
@@ -55,19 +55,19 @@ const S = j(L), { loginUserInfo: o, cryptoInfo: c } = _(S), Y = x(L), { activeMe
|
|
|
55
55
|
}), C = f([
|
|
56
56
|
{
|
|
57
57
|
label: "签字版",
|
|
58
|
-
icon:
|
|
58
|
+
icon: $,
|
|
59
59
|
type: "button",
|
|
60
60
|
disabled: !1
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
label: "电子签名",
|
|
64
|
-
icon:
|
|
64
|
+
icon: B,
|
|
65
65
|
type: "button",
|
|
66
66
|
disabled: !1
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
label: "上传手写签名",
|
|
70
|
-
icon:
|
|
70
|
+
icon: H,
|
|
71
71
|
type: "buttonUpload",
|
|
72
72
|
disabled: !1
|
|
73
73
|
}
|
|
@@ -112,10 +112,10 @@ const S = j(L), { loginUserInfo: o, cryptoInfo: c } = _(S), Y = x(L), { activeMe
|
|
|
112
112
|
}
|
|
113
113
|
}, V = async (s, a) => {
|
|
114
114
|
var r, l, n;
|
|
115
|
-
const t =
|
|
115
|
+
const t = Q(s);
|
|
116
116
|
t == null || delete t.id;
|
|
117
117
|
try {
|
|
118
|
-
const e = await
|
|
118
|
+
const e = await j({
|
|
119
119
|
id: (r = o.value) == null ? void 0 : r.id,
|
|
120
120
|
value: {
|
|
121
121
|
tableData: t
|
|
@@ -147,7 +147,7 @@ const S = j(L), { loginUserInfo: o, cryptoInfo: c } = _(S), Y = x(L), { activeMe
|
|
|
147
147
|
var n, e, u, p, d, v;
|
|
148
148
|
let r;
|
|
149
149
|
const l = a;
|
|
150
|
-
((e = (n = o.value) == null ? void 0 : n.layer) == null ? void 0 : e.toUpperCase()) !== "SUPERADMIN" ? r = (u = o.value) != null && u.password ?
|
|
150
|
+
((e = (n = o.value) == null ? void 0 : n.layer) == null ? void 0 : e.toUpperCase()) !== "SUPERADMIN" ? r = (u = o.value) != null && u.password ? G((p = o.value) == null ? void 0 : p.password, (d = c == null ? void 0 : c.value) == null ? void 0 : d.privateKey) : X : r = (v = o.value) == null ? void 0 : v.password, r === l ? t() : t(new Error("输入的密码与原密码不匹配,请重新输入"));
|
|
151
151
|
}, le = (s, a, t) => {
|
|
152
152
|
a ? t() : t(new Error("请输入密码"));
|
|
153
153
|
}, ne = (s, a, t) => {
|
|
@@ -169,7 +169,7 @@ const S = j(L), { loginUserInfo: o, cryptoInfo: c } = _(S), Y = x(L), { activeMe
|
|
|
169
169
|
...i,
|
|
170
170
|
isFormColHidden: (w == null ? void 0 : w.includes(i == null ? void 0 : i.prop)) || (i == null ? void 0 : i.label) === "操作"
|
|
171
171
|
})));
|
|
172
|
-
const h = (v = y.contents) == null ? void 0 : v.find((i) => (i == null ? void 0 : i.prop) === "password"),
|
|
172
|
+
const h = (v = y.contents) == null ? void 0 : v.find((i) => (i == null ? void 0 : i.prop) === "password"), O = [
|
|
173
173
|
{
|
|
174
174
|
...h,
|
|
175
175
|
label: "当前密码",
|
|
@@ -189,7 +189,7 @@ const S = j(L), { loginUserInfo: o, cryptoInfo: c } = _(S), Y = x(L), { activeMe
|
|
|
189
189
|
validator: ne
|
|
190
190
|
}
|
|
191
191
|
];
|
|
192
|
-
b.otherCols =
|
|
192
|
+
b.otherCols = O, pe(o.value);
|
|
193
193
|
}
|
|
194
194
|
}, ue = (s) => {
|
|
195
195
|
q.value = s;
|
|
@@ -200,7 +200,7 @@ const S = j(L), { loginUserInfo: o, cryptoInfo: c } = _(S), Y = x(L), { activeMe
|
|
|
200
200
|
...o.value,
|
|
201
201
|
status: ((r = o.value) == null ? void 0 : r.status) ?? "启用",
|
|
202
202
|
// 目前是超管密码明文传输,非超管用户密码加密传输
|
|
203
|
-
password: ((n = (l = o.value) == null ? void 0 : l.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? s == null ? void 0 : s.confirmNewPass :
|
|
203
|
+
password: ((n = (l = o.value) == null ? void 0 : l.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? s == null ? void 0 : s.confirmNewPass : J(s == null ? void 0 : s.confirmNewPass, (e = c.value) == null ? void 0 : e.publicKey)
|
|
204
204
|
}), a === "保存基本信息" && (t = {
|
|
205
205
|
...o.value,
|
|
206
206
|
...s,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const f=require("vue"),y=require("./index-Dc6Q0f3F.cjs"),g=require("./index-
|
|
1
|
+
"use strict";const f=require("vue"),y=require("./index-Dc6Q0f3F.cjs"),g=require("./index-DiowIVZT.cjs"),D=g.useLoginState(g.pinia),{loginUserInfo:u,cryptoInfo:w}=g.storeToRefs(D),V=g.useMenuState(g.pinia),{activeMenuPath:b}=g.storeToRefs(V),P=f.ref(0),R=f.computed(()=>{var s,a,t,r,n,l,e,o,p,d,v;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((p=u.value)==null?void 0:p.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((d=u.value)==null?void 0:d.layer)==="superAdmin"?"启用":((v=u.value)==null?void 0:v.状态)??"未知"}]}),W=()=>{},U=f.ref(!1),h=f.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=f.ref([{label:"签字版",icon:y.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:y.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:y.upload_filled_default,type:"buttonUpload",disabled:!1}]),I=f.ref(!1),T=f.ref(!1),M=f.ref(!1),_=f.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=b.value)!=null&&r.startsWith("/")?(n=b.value)==null?void 0:n.substring(1):b.value;return Array.isArray(a)?(M.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),$=f.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:_.value}]),O=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,p,d,v;const a=await y.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const c={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(v=(d=(p=a.data.result)==null?void 0:p[0])==null?void 0:d.key)==null?void 0:v.layer};D.setLoginUserInfo(c)}},q=async(s,a)=>{var r,n,l;const t=g.cloneDeep(s);t==null||delete t.id;try{const e=await y.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),y.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},b.value))}catch{y.ElMessage.error("修改响应失败")}finally{U.value=!1,I.value=!1,T.value=!1}},B=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};I.value=s==="avatarUrl",T.value=s==="signature",await q(r,"图片修改")},m=f.reactive({baseCols:[],otherCols:[]}),K=f.ref([]),k=f.ref(),H=(s,a,t)=>{var l,e,o,p,d,v;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?g.decryptData((p=u.value)==null?void 0:p.password,(d=w==null?void 0:w.value)==null?void 0:d.privateKey):g.resetPassword:r=(v=u.value)==null?void 0:v.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},j=(s,a,t)=>{a?t():t(new Error("请输入密码"))},x=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,p,d,v;const s=await y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const c=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(p=R.value)==null?void 0:p.map(i=>i==null?void 0:i.prop);m.baseCols=c&&((d=c.contents)==null?void 0:d.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(v=c.contents)==null?void 0:v.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:H},{...A,label:"新密码",prop:"newtPass",validator:j},{...A,label:"确认密码",prop:"confirmNewPass",validator:x}];m.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:g.encryptData(s==null?void 0:s.confirmNewPass,(e=w.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},E=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=b.value)!=null&&r.startsWith("/")?(n=b.value)==null?void 0:n.substring(1):b.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=m.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=E())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=m.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=m.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(p,d,v)=>o.validator(p,d,v),trigger:"blur"}],e),{}),buttonValue:(l=E())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:I,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:O,clickTabButton:G,getUserTableHeadersAsync:J,itemData:$,loading:U,refreshLoginUserInfoAsync:N,rowContents:R,signPadInfo:h,signTypes:_,signatureLoading:T,submitImageAsync:B,tabKey:P,tabsContents:K,tempSignTypes:S,uploadDisabled:M},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=P;
|