ss-component-new 1.2.28 → 1.2.30
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-Cqv49Ps8.cjs → MTLLoader-CGJ_BoN_.cjs} +1 -1
- package/dist/{MTLLoader-BreJsr54.js → MTLLoader-DKu2hJu8.js} +1 -1
- package/dist/{OrbitControls-BCu-cP7k.js → OrbitControls-BqqUzhiB.js} +1 -1
- package/dist/{OrbitControls-C956u7BP.cjs → OrbitControls-CcSIJs8U.cjs} +1 -1
- package/dist/{animationData-CMjNjOqc.js → animationData-C9-csPUd.js} +4 -4
- package/dist/{animationData-C3-BiUgV.cjs → animationData-CqnPk9Xj.cjs} +1 -1
- package/dist/array-CNff52dF.cjs +11 -0
- package/dist/array-GAxUIYkk.js +626 -0
- package/dist/config.js +1 -0
- package/dist/{dataUtil-BFjWNDM1.cjs → dataUtil-B8GQMfU9.cjs} +1 -1
- package/dist/{dataUtil-D9l7-XhR.js → dataUtil-CUqnwA-C.js} +2 -2
- package/dist/{fileUtil-D7XVXEhb.js → fileUtil-2jbB0UOW.js} +1 -1
- package/dist/{fileUtil-BFtJHTM0.cjs → fileUtil-DmlOwzdA.cjs} +1 -1
- package/dist/{iconfont-BDfcbq2v.cjs → iconfont-BRjtaT1w.cjs} +1 -1
- package/dist/{iconfont-B9Cj3DQM.js → iconfont-Clbumxhq.js} +2 -2
- package/dist/icons/svg/LowCodeEvent.svg +1 -1
- package/dist/icons/svg/LowCodeExtend.svg +1 -1
- package/dist/icons/svg/LowCodeSetting.svg +1 -1
- package/dist/icons/svg/LowCodeStyle.svg +1 -1
- package/dist/{index-DE-uHAMH.cjs → index-4vFpZiro.cjs} +1 -1
- package/dist/{index-DR7aNxVH.js → index-B1K65cVA.js} +4 -4
- package/dist/{index-C5UpEVah.js → index-B1TG4KX4.js} +2 -2
- package/dist/{index-C_cWjavY.cjs → index-B4kwMjRZ.cjs} +1 -1
- package/dist/{index-BaE0DPgC.js → index-B524ZAt_.js} +52 -52
- package/dist/{index-CMIGSPjz.cjs → index-B5KCSN4c.cjs} +1 -1
- package/dist/index-B6nEh_Jv.js +2865 -0
- package/dist/{index-zLkhy4JK.cjs → index-BDHmuN0R.cjs} +1 -1
- package/dist/{index-Rr9ZBYig.js → index-BH-dztWs.js} +2 -2
- package/dist/{index-DMyPjpxO.cjs → index-BKH5yrms.cjs} +1 -1
- package/dist/index-BQ4Ui0xZ.cjs +1 -0
- package/dist/{index-DqR3IwgZ.js → index-BR2gy9VY.js} +12 -12
- package/dist/{index-CC9RkSBT.cjs → index-BUqXSmZN.cjs} +1 -1
- package/dist/index-BVaHwt5f.cjs +1 -0
- package/dist/{index-gXbhagnF.js → index-BVx8ubcY.js} +3 -3
- package/dist/{index-Dx2X9pR1.js → index-Bf_EwhXB.js} +40 -40
- package/dist/{index-DVqfroe6.cjs → index-Bg67M1I0.cjs} +1 -1
- package/dist/index-Bnlo1Vn9.cjs +1 -0
- package/dist/{index-gPnrvvE9.js → index-BuPMGirQ.js} +3123 -3043
- package/dist/{index-Cwh5m4lg.cjs → index-C4sVFEb2.cjs} +1 -1
- package/dist/{index-CP7b7BrB.cjs → index-C5bKf4Rc.cjs} +1 -1
- package/dist/{index-DY5-ctYG.cjs → index-C8YYklCT.cjs} +1 -1
- package/dist/index-CBzeyNqc.cjs +1 -0
- package/dist/{index-Boazv8yC.js → index-CF3_9CuM.js} +2 -2
- package/dist/index-CGrK7vLD.cjs +15 -0
- package/dist/index-CJz9KUlK.js +2761 -0
- package/dist/index-CLYAJN6W.js +12157 -0
- package/dist/index-CPUuPtdW.cjs +1 -0
- package/dist/index-CQGU-KUl.cjs +1 -0
- package/dist/{index-BZwQB2HO.js → index-CSkbFCKk.js} +8 -8
- package/dist/{index-DiTYB-a4.js → index-CVduLh5F.js} +4 -4
- package/dist/{index-Cd9j5j41.cjs → index-CVfE7lev.cjs} +1 -1
- package/dist/{index-C5fTUrKx.js → index-CWvU6SMj.js} +80 -80
- package/dist/{index-CZu3TggJ.js → index-CkTqgfCV.js} +1 -1
- package/dist/{index-CBFF2bsB.cjs → index-Ct1BlKod.cjs} +1 -1
- package/dist/{index-BqRVuEsE.js → index-Cx-hhVVM.js} +6 -6
- package/dist/{index-LcnC2GQ4.cjs → index-D-vSuC_W.cjs} +1 -1
- package/dist/{index-HduGypr9.js → index-DBDeHECn.js} +7888 -8186
- package/dist/{index-CK5VdzmO.cjs → index-DC41esc7.cjs} +1 -1
- package/dist/index-DEBf-IBT.cjs +21 -0
- package/dist/{index-BwLaQntz.js → index-DKQfWQa7.js} +1 -1
- package/dist/index-DLNYVMBT.js +718 -0
- package/dist/{index-CKY0sj_X.js → index-DNmodmj5.js} +3 -3
- package/dist/{index-D5Dtcn-_.js → index-DOqV1gv2.js} +10 -10
- package/dist/{index-BWxbWhC9.cjs → index-DPJaR6_y.cjs} +1 -1
- package/dist/{index-B8bpiPXB.js → index-DQEoNTv9.js} +1 -1
- package/dist/{index-3QB55tXZ.js → index-D_vF-xur.js} +8 -8
- package/dist/{index-C9_Cxm8G.cjs → index-Dc_H7_4Q.cjs} +1 -1
- package/dist/{index-DsCD1neC.js → index-DnxJ5v5h.js} +2 -2
- package/dist/{index-DHOcRi3S.js → index-DpHuDey-.js} +6 -6
- package/dist/{index-mpoVA-DC.cjs → index-Dyk6Ept4.cjs} +1 -1
- package/dist/{index-zZ9bfGNx.js → index-LjM9Nk8B.js} +17 -17
- package/dist/{index-B33wtiif.cjs → index-M0XPuhvZ.cjs} +1 -1
- package/dist/index-NsYVgt6J.cjs +1 -0
- package/dist/{index-GGokR_Lx.cjs → index-T8lPGzLV.cjs} +1 -1
- package/dist/{index-Sa2hQZ0h.js → index-ZxdNFChm.js} +2 -2
- package/dist/{index-BccOOMaP.cjs → index-eU4qzdNW.cjs} +1 -1
- package/dist/{index-C-8LROmP.js → index-h2jxROLW.js} +2 -2
- package/dist/index-rlStojTL.js +52 -0
- package/dist/{index-TKouySTA.cjs → index-zfSd0dDx.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BAJOxaYG.js +38119 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bz5a6KNq.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs} +105 -105
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-B5pFO8Nu.js} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CfeHVTqR.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-9ANlnWKt.js → index.vue_vue_type_style_index_1_lang-C_-spRZf.js} +5 -5
- package/dist/index.vue_vue_type_style_index_1_lang-C_c9xkIT.js +8381 -0
- package/dist/index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs +32 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs → index.vue_vue_type_style_index_1_lang-Dn15anMU.cjs} +1 -1
- package/dist/{isString-Cqq3-gAK.cjs → isString-D6Z6SOrb.cjs} +1 -1
- package/dist/{isString-BuBBWjRr.js → isString-DBnuELeA.js} +1 -1
- package/dist/{main-Mx9r7ydp.cjs → main-Cqs48dh5.cjs} +1 -1
- package/dist/{main-DpLQlLK2.js → main-D13CgkQa.js} +5 -5
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +12 -12
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-DTwQnnAO.cjs → threeModel-B1Q-W8uT.cjs} +1 -1
- package/dist/{threeModel-CZ-qFwwk.js → threeModel-CdhAh8Bx.js} +5 -5
- package/dist/{threePreview-CUGoEzKf.cjs → threePreview-DFaqe_Df.cjs} +1 -1
- package/dist/{threePreview-DutKTPWH.js → threePreview-qK1L0B-6.js} +4 -4
- package/dist/{threeSceneView-CzgWYHBw.js → threeSceneView-D7A2EUjB.js} +87 -87
- package/dist/{threeSceneView-f1V-z4jr.cjs → threeSceneView-MV6u29zj.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-2sXIw3I1.js → threeSceneViewForCPMPIP-CFMeh1a1.js} +59 -59
- package/dist/{threeSceneViewForCPMPIP-CojHDVHC.cjs → threeSceneViewForCPMPIP-DWIRSSMI.cjs} +1 -1
- package/dist/{threeTrackPathView-BGHiOyJo.cjs → threeTrackPathView-jcnhqw1L.cjs} +1 -1
- package/dist/{threeTrackPathView-DA4_8jas.js → threeTrackPathView-zpNY2aoY.js} +6 -6
- package/dist/{threeViewerHost-D3WDKrIQ.cjs → threeViewerHost-Bmk1dyAX.cjs} +1 -1
- package/dist/{threeViewerHost-BNObp9oA.js → threeViewerHost-SnFuinLz.js} +14 -14
- package/dist/{urdfTree-CWStzmk2.cjs → urdfTree-BhIdc1in.cjs} +1 -1
- package/dist/{urdfTree-CnkPddyT.js → urdfTree-BqMKYhyU.js} +1 -1
- package/dist/{workpieceTreePanel-BvhFt3Xw.js → workpieceTreePanel-CrJBeLgr.js} +5 -5
- package/dist/{workpieceTreePanel-DXyb_Wnw.cjs → workpieceTreePanel-ugZl4wP-.cjs} +1 -1
- package/package.json +2 -2
- package/public/config.js +1 -0
- package/public/icons/svg/LowCodeEvent.svg +1 -1
- package/public/icons/svg/LowCodeExtend.svg +1 -1
- package/public/icons/svg/LowCodeSetting.svg +1 -1
- package/public/icons/svg/LowCodeStyle.svg +1 -1
- package/dist/array-0u9Sf3UC.cjs +0 -11
- package/dist/array-BGIM4b6g.js +0 -1142
- package/dist/index-B9TlIok8.cjs +0 -15
- package/dist/index-BgHY8wmn.cjs +0 -1
- package/dist/index-C1lZkQG-.js +0 -7298
- package/dist/index-CMwwUi6o.js +0 -3621
- package/dist/index-D0XPyuy4.cjs +0 -1
- package/dist/index-D3TgRd-7.cjs +0 -1
- package/dist/index-DEEZPcpU.cjs +0 -1
- package/dist/index-DiRBJiMW.js +0 -43
- package/dist/index-DnFxL5wb.cjs +0 -1
- package/dist/index-Dv1G67_Q.cjs +0 -21
- package/dist/index-OTxJnh9Z.js +0 -2570
- package/dist/index-uIVtG4RY.cjs +0 -1
- package/dist/index-wQJN1jpI.js +0 -2466
- package/dist/index-znR89ub7.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs +0 -37
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js +0 -38930
- package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +0 -32
- package/dist/index.vue_vue_type_style_index_1_lang-DwvuVXW6.js +0 -8249
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as f, computed as S, reactive as P } from "vue";
|
|
2
|
-
import { s as R,
|
|
3
|
-
import {
|
|
4
|
-
const A =
|
|
2
|
+
import { s as R, c9 as $, ca as B, c8 as H, g as _, u as j, p as L, c as J, d as x, E as T } from "./index-DBDeHECn.js";
|
|
3
|
+
import { b4 as z, u as G, d as Q, r as X } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
|
|
4
|
+
const A = j(L), { loginUserInfo: o, cryptoInfo: c } = R(A), Y = G(L), { activeMenuPath: g } = R(Y), Z = f(0), M = S(() => {
|
|
5
5
|
var s, a, t, r, l, n, e, u, p, d, v;
|
|
6
6
|
return [
|
|
7
7
|
{
|
|
@@ -61,13 +61,13 @@ const A = H(L), { loginUserInfo: o, cryptoInfo: c } = R(A), X = Z(L), { activeMe
|
|
|
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
|
}
|
|
@@ -147,7 +147,7 @@ const A = H(L), { loginUserInfo: o, cryptoInfo: c } = R(A), X = Z(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 ? Q((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) => {
|
|
@@ -315,12 +315,12 @@ const A = H(L), { loginUserInfo: o, cryptoInfo: c } = R(A), X = Z(L), { activeMe
|
|
|
315
315
|
signTypes: k,
|
|
316
316
|
signatureLoading: I,
|
|
317
317
|
submitImageAsync: se,
|
|
318
|
-
tabKey:
|
|
318
|
+
tabKey: Z,
|
|
319
319
|
tabsContents: W,
|
|
320
320
|
tempSignTypes: C,
|
|
321
321
|
uploadDisabled: N
|
|
322
322
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
323
323
|
export {
|
|
324
324
|
ge as S,
|
|
325
|
-
|
|
325
|
+
Z as t
|
|
326
326
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, computed as N, ref as p, watch as $, createElementBlock as B, openBlock as b, createVNode as v, createCommentVNode as j, withCtx as u, createTextVNode as T, toDisplayString as I, resolveComponent as k, createBlock as x, Fragment as L, renderList as O, createElementVNode as R, normalizeStyle as q } from "vue";
|
|
2
|
-
import { s as H } from "./index-
|
|
3
|
-
import { d as M, u as P } from "./threeViewerHost-
|
|
4
|
-
import { E as z } from "./index-
|
|
2
|
+
import { s as H } from "./index-B524ZAt_.js";
|
|
3
|
+
import { d as M, u as P } from "./threeViewerHost-SnFuinLz.js";
|
|
4
|
+
import { E as z } from "./index-DBDeHECn.js";
|
|
5
5
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as W } from "./index-
|
|
6
|
+
import { S as W } from "./index-BuPMGirQ.js";
|
|
7
7
|
import { S as E } from "./index-BHtNKL1L.js";
|
|
8
8
|
const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F({
|
|
9
9
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-CfeHVTqR.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=["title"],f={key:0,class:"menu-operate-icon"},h={class:"menu-config-wrap"},_=["onClick"],v={class:"module-dialog-content"};function y(o,l,V,m,M,N){var r;const i=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-popover"),g=e.resolveComponent("ssMenu"),s=e.resolveComponent("el-button"),C=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,{class:"vertical-menu",mode:o.mode,menuList:o.renderMenuList,isCollapse:o.isCollapse,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var a,d;return[e.createElementVNode("span",{title:t.title,class:"menu-title",style:e.normalizeStyle({marginRight:t!=null&&t.config&&((a=t==null?void 0:t.config)==null?void 0:a.length)>0?"25px":"1px"})},e.toDisplayString(t.title??""),13,k),t!=null&&t.config&&((d=t==null?void 0:t.config)==null?void 0:d.length)>0?(e.openBlock(),e.createElementBlock("span",f,[e.createVNode(p,{title:"",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(i,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:w=>o.clickMenuIcon(t,n)},[e.createVNode(i,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,_))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((r=o.renderMenuList)==null?void 0:r.length)>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fold-icon",onClick:l[0]||(l[0]=(...t)=>o.handleMenuCollapse&&o.handleMenuCollapse(...t))},[e.createVNode(i,{name:o.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):e.createCommentVNode("",!0),e.createVNode(C,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(s,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(s,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const B=u._export_sfc(c._sfc_main,[["render",y],["__scopeId","data-v-92477073"]]);exports.setComponent=c.setComponent;exports.default=B;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createElementBlock as J, openBlock as W, createElementVNode as
|
|
1
|
+
import { createElementBlock as J, openBlock as W, createElementVNode as m, renderSlot as $, defineComponent as Y, ref as E, resolveComponent as B, createVNode as k, withCtx as y, reactive as se, watch as ae, onMounted as fe, toDisplayString as V, unref as X, createTextVNode as j } from "vue";
|
|
2
2
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { a as ne, u as oe, p as ce, E as K, s as ye, b as pe, g as q } from "./index-
|
|
4
|
-
import { d as re, r as ge, g as
|
|
3
|
+
import { a as ne, u as oe, p as ce, E as K, s as ye, b as pe, g as q } from "./index-DBDeHECn.js";
|
|
4
|
+
import { d as re, r as ge, g as ve, c as me, b as be, e as he, f as _e, h as we } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
|
|
5
5
|
import { useRouter as Ae } from "vue-router";
|
|
6
|
-
import { v as Ce } from "./index-
|
|
6
|
+
import { v as Ce } from "./index-BH-dztWs.js";
|
|
7
7
|
const ke = {}, Se = { class: "left-wrap" }, Ie = { class: "left-bg" };
|
|
8
8
|
function Te(T, M) {
|
|
9
9
|
return W(), J("div", Se, [
|
|
10
|
-
|
|
10
|
+
m("div", Ie, [
|
|
11
11
|
$(T.$slots, "img", {}, void 0, !0)
|
|
12
12
|
])
|
|
13
13
|
]);
|
|
@@ -28,28 +28,28 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
28
28
|
setup(T, { emit: M }) {
|
|
29
29
|
const b = E("account"), d = M, S = () => {
|
|
30
30
|
d("clickLogin", b.value);
|
|
31
|
-
},
|
|
31
|
+
}, h = (u) => {
|
|
32
32
|
d("handleTabChange", u);
|
|
33
33
|
};
|
|
34
34
|
return (u, g) => {
|
|
35
|
-
const p = B("el-button"),
|
|
35
|
+
const p = B("el-button"), _ = B("el-tab-pane"), v = B("el-tabs");
|
|
36
36
|
return W(), J("div", Ne, [
|
|
37
|
-
k(
|
|
37
|
+
k(v, {
|
|
38
38
|
modelValue: b.value,
|
|
39
39
|
"onUpdate:modelValue": g[0] || (g[0] = (r) => b.value = r),
|
|
40
40
|
class: "right-tabs",
|
|
41
|
-
onTabChange:
|
|
41
|
+
onTabChange: h
|
|
42
42
|
}, {
|
|
43
43
|
default: y(() => [
|
|
44
|
-
k(
|
|
44
|
+
k(_, { name: "account" }, {
|
|
45
45
|
label: y(() => [
|
|
46
46
|
$(u.$slots, "tabLabel1", {}, void 0, !0)
|
|
47
47
|
]),
|
|
48
48
|
default: y(() => [
|
|
49
|
-
|
|
49
|
+
m("div", Le, [
|
|
50
50
|
$(u.$slots, "tabContent1", {}, void 0, !0)
|
|
51
51
|
]),
|
|
52
|
-
|
|
52
|
+
m("div", {
|
|
53
53
|
class: "tab-button special",
|
|
54
54
|
onClick: S
|
|
55
55
|
}, [
|
|
@@ -60,21 +60,21 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
60
60
|
_: 3
|
|
61
61
|
}, 8, ["loading"])
|
|
62
62
|
]),
|
|
63
|
-
|
|
63
|
+
m("div", $e, [
|
|
64
64
|
$(u.$slots, "tabTips1", {}, void 0, !0)
|
|
65
65
|
])
|
|
66
66
|
]),
|
|
67
67
|
_: 3
|
|
68
68
|
}),
|
|
69
|
-
k(
|
|
69
|
+
k(_, { name: "face" }, {
|
|
70
70
|
label: y(() => [
|
|
71
71
|
$(u.$slots, "tabLabel2", {}, void 0, !0)
|
|
72
72
|
]),
|
|
73
73
|
default: y(() => [
|
|
74
|
-
|
|
74
|
+
m("div", Ee, [
|
|
75
75
|
$(u.$slots, "tabContent2", {}, void 0, !0)
|
|
76
76
|
]),
|
|
77
|
-
|
|
77
|
+
m("div", Me, [
|
|
78
78
|
$(u.$slots, "tabTips2", {}, void 0, !0)
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
@@ -110,28 +110,28 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
110
110
|
password: [
|
|
111
111
|
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
112
112
|
]
|
|
113
|
-
}),
|
|
113
|
+
}), h = E(null), u = M;
|
|
114
114
|
return ae(() => b.isClickLogin, (g) => {
|
|
115
115
|
var p;
|
|
116
|
-
g && (b == null ? void 0 : b.activeTabName) === "account" && ((p =
|
|
117
|
-
var
|
|
116
|
+
g && (b == null ? void 0 : b.activeTabName) === "account" && ((p = h.value) == null || p.validate((_) => {
|
|
117
|
+
var v;
|
|
118
118
|
for (let r in d)
|
|
119
|
-
d.hasOwnProperty(r) && (d[r] = (
|
|
120
|
-
u("handleLoginFormChange",
|
|
119
|
+
d.hasOwnProperty(r) && (d[r] = (v = d[r]) == null ? void 0 : v.trim());
|
|
120
|
+
u("handleLoginFormChange", _, _ ? d : null);
|
|
121
121
|
}));
|
|
122
122
|
}, {
|
|
123
123
|
immediate: !0
|
|
124
124
|
}), ae(() => b.activeTabName, (g) => {
|
|
125
125
|
var p;
|
|
126
|
-
g === "account" && ((p =
|
|
126
|
+
g === "account" && ((p = h.value) == null || p.resetFields());
|
|
127
127
|
}), (g, p) => {
|
|
128
|
-
const
|
|
128
|
+
const _ = B("svg-icon"), v = B("el-input"), r = B("el-form-item"), w = B("el-form");
|
|
129
129
|
return W(), J("div", Ve, [
|
|
130
|
-
k(
|
|
130
|
+
k(w, {
|
|
131
131
|
model: d,
|
|
132
132
|
rules: S,
|
|
133
133
|
ref_key: "formRef",
|
|
134
|
-
ref:
|
|
134
|
+
ref: h
|
|
135
135
|
}, {
|
|
136
136
|
default: y(() => [
|
|
137
137
|
k(r, {
|
|
@@ -139,7 +139,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
139
139
|
prop: "account"
|
|
140
140
|
}, {
|
|
141
141
|
default: y(() => [
|
|
142
|
-
k(
|
|
142
|
+
k(v, {
|
|
143
143
|
class: "account-input",
|
|
144
144
|
modelValue: d.account,
|
|
145
145
|
"onUpdate:modelValue": p[0] || (p[0] = (A) => d.account = A),
|
|
@@ -147,7 +147,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
147
147
|
clearable: ""
|
|
148
148
|
}, {
|
|
149
149
|
prefix: y(() => [
|
|
150
|
-
k(
|
|
150
|
+
k(_, {
|
|
151
151
|
name: "account",
|
|
152
152
|
style: { width: "15px", height: "15px" }
|
|
153
153
|
})
|
|
@@ -162,7 +162,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
162
162
|
prop: "password"
|
|
163
163
|
}, {
|
|
164
164
|
default: y(() => [
|
|
165
|
-
k(
|
|
165
|
+
k(v, {
|
|
166
166
|
class: "account-input",
|
|
167
167
|
modelValue: d.password,
|
|
168
168
|
"onUpdate:modelValue": p[1] || (p[1] = (A) => d.password = A),
|
|
@@ -172,7 +172,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
172
172
|
clearable: ""
|
|
173
173
|
}, {
|
|
174
174
|
prefix: y(() => [
|
|
175
|
-
k(
|
|
175
|
+
k(_, {
|
|
176
176
|
name: "password",
|
|
177
177
|
style: { width: "15px", height: "15px" }
|
|
178
178
|
})
|
|
@@ -191,7 +191,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
191
191
|
}), xe = /* @__PURE__ */ z(Be, [["__scopeId", "data-v-48037c0f"]]);
|
|
192
192
|
function De(T) {
|
|
193
193
|
return ne({
|
|
194
|
-
url: "http://
|
|
194
|
+
url: "http://139.196.154.85:20015/api/face/face-verify",
|
|
195
195
|
method: "post",
|
|
196
196
|
data: T
|
|
197
197
|
});
|
|
@@ -205,16 +205,16 @@ const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__P
|
|
|
205
205
|
},
|
|
206
206
|
emits: ["handleLoginFormChange"],
|
|
207
207
|
setup(T, { emit: M }) {
|
|
208
|
-
const b = T, d = M, S = oe(ce),
|
|
208
|
+
const b = T, d = M, S = oe(ce), h = E(null), u = E(null);
|
|
209
209
|
let g = !1;
|
|
210
210
|
const p = async (r) => {
|
|
211
211
|
if (!r)
|
|
212
212
|
return;
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
const A = await De(
|
|
213
|
+
const w = new FormData();
|
|
214
|
+
w.set("file", r), b.systemKey && w.set("systemKey", b.systemKey), console.log("Face Recognition", b.systemKey);
|
|
215
|
+
const A = await De(w), { data: I } = A || {}, { account: L, password: U, layer: x } = (I == null ? void 0 : I.data) || {}, D = I == null ? void 0 : I.msg;
|
|
216
216
|
if (!L) {
|
|
217
|
-
K.
|
|
217
|
+
K.warning(D || "识别失败,请重新识别!");
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
const { privateKey: O } = await S.getModelSecretAsync();
|
|
@@ -223,63 +223,63 @@ const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__P
|
|
|
223
223
|
account: L,
|
|
224
224
|
password: R
|
|
225
225
|
});
|
|
226
|
-
},
|
|
227
|
-
if (!u.value || !
|
|
226
|
+
}, _ = () => {
|
|
227
|
+
if (!u.value || !h.value)
|
|
228
228
|
return;
|
|
229
|
-
const r = u.value,
|
|
229
|
+
const r = u.value, w = r.getContext("2d"), A = h.value;
|
|
230
230
|
r.width = 200, r.height = 200;
|
|
231
231
|
const I = A.videoWidth || 640, L = A.videoHeight || 480, U = Math.min(200 / I, 200 / L), x = I * U, D = L * U, O = (200 - x) / 2, R = (200 - D) / 2;
|
|
232
|
-
|
|
232
|
+
w == null || w.drawImage(A, 0, 0, I, L, O, R, x, D), r.toBlob((G) => {
|
|
233
233
|
if (G) {
|
|
234
234
|
const Z = new File([G], "face.png", { type: "image/png" });
|
|
235
235
|
p(Z);
|
|
236
236
|
}
|
|
237
237
|
}, "image/png");
|
|
238
|
-
},
|
|
239
|
-
if (!
|
|
238
|
+
}, v = async () => {
|
|
239
|
+
if (!h.value || g)
|
|
240
240
|
return;
|
|
241
|
-
const r =
|
|
241
|
+
const r = h.value;
|
|
242
242
|
try {
|
|
243
|
-
const
|
|
243
|
+
const w = await navigator.mediaDevices.getUserMedia({
|
|
244
244
|
video: { facingMode: "user" },
|
|
245
245
|
// 前置;后置用 'environment'
|
|
246
246
|
audio: !1
|
|
247
247
|
});
|
|
248
248
|
if (r) {
|
|
249
249
|
const A = r;
|
|
250
|
-
A.srcObject =
|
|
250
|
+
A.srcObject = w, g = !0;
|
|
251
251
|
}
|
|
252
|
-
} catch
|
|
253
|
-
K.warning("
|
|
252
|
+
} catch {
|
|
253
|
+
K.warning("摄像头启动失败");
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
return ae(() => b.activeTabName, (r) => {
|
|
257
|
-
r === "face" && !g &&
|
|
257
|
+
r === "face" && !g && v();
|
|
258
258
|
}), fe(() => {
|
|
259
|
-
|
|
260
|
-
}), (r,
|
|
261
|
-
|
|
262
|
-
|
|
259
|
+
v();
|
|
260
|
+
}), (r, w) => (W(), J("div", Re, [
|
|
261
|
+
m("div", Oe, [
|
|
262
|
+
m("video", {
|
|
263
263
|
class: "face-video",
|
|
264
264
|
ref_key: "videoRef",
|
|
265
|
-
ref:
|
|
265
|
+
ref: h,
|
|
266
266
|
id: "v",
|
|
267
267
|
autoplay: "",
|
|
268
268
|
playsinline: ""
|
|
269
269
|
}, null, 512)
|
|
270
270
|
]),
|
|
271
|
-
|
|
271
|
+
m("button", {
|
|
272
272
|
class: "face-screenshot",
|
|
273
|
-
onClick:
|
|
273
|
+
onClick: _
|
|
274
274
|
}, "人脸识别"),
|
|
275
|
-
|
|
275
|
+
m("canvas", {
|
|
276
276
|
ref_key: "canvasRef",
|
|
277
277
|
ref: u,
|
|
278
278
|
id: "canvas"
|
|
279
279
|
}, null, 512)
|
|
280
280
|
]));
|
|
281
281
|
}
|
|
282
|
-
}), He = /* @__PURE__ */ z(Fe, [["__scopeId", "data-v-
|
|
282
|
+
}), He = /* @__PURE__ */ z(Fe, [["__scopeId", "data-v-5538dabd"]]);
|
|
283
283
|
function je() {
|
|
284
284
|
return ne({
|
|
285
285
|
url: "/api/sysAuth/login",
|
|
@@ -300,7 +300,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
300
300
|
},
|
|
301
301
|
emits: ["change"],
|
|
302
302
|
setup(T, { emit: M }) {
|
|
303
|
-
const b = Ae(), d = oe(ce), { systemKey: S, systemInfo:
|
|
303
|
+
const b = Ae(), d = oe(ce), { systemKey: S, systemInfo: h, loginUserInfo: u } = ye(d), g = E({
|
|
304
304
|
// sysCTitle: 'INSOFWORKS',
|
|
305
305
|
sysCTitle: "",
|
|
306
306
|
sysETitle: "",
|
|
@@ -323,13 +323,13 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
323
323
|
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
324
324
|
}
|
|
325
325
|
]
|
|
326
|
-
}), p = E("account"),
|
|
327
|
-
|
|
328
|
-
},
|
|
329
|
-
|
|
330
|
-
}, A = (a) =>
|
|
326
|
+
}), p = E("account"), _ = E(!1), v = E(!1), r = () => {
|
|
327
|
+
_.value = !0;
|
|
328
|
+
}, w = (a, t) => {
|
|
329
|
+
_.value = !1, a && Z(t);
|
|
330
|
+
}, A = (a) => ve(a), I = (a) => {
|
|
331
331
|
let t;
|
|
332
|
-
const s =
|
|
332
|
+
const s = me(a), n = be(s), l = he(n), f = _e(l, "parentPath");
|
|
333
333
|
return t = we(f), t;
|
|
334
334
|
}, L = (a, t) => {
|
|
335
335
|
var n, l, f;
|
|
@@ -427,7 +427,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
427
427
|
}), ee = [...de, ...ue];
|
|
428
428
|
if (e = ee == null ? void 0 : ee.find((i) => (i == null ? void 0 : i.account) === (a == null ? void 0 : a.account) || (i == null ? void 0 : i.账号) === (a == null ? void 0 : a.account)), e) {
|
|
429
429
|
if (((f = e.layer) == null ? void 0 : f.toUpperCase()) !== "SUPERADMIN" && (!(e != null && e.状态) || (e == null ? void 0 : e.状态) === "禁用" || (e == null ? void 0 : e.status) === "禁用")) {
|
|
430
|
-
K.error("该用户已被禁用,请联系管理员"),
|
|
430
|
+
K.error("该用户已被禁用,请联系管理员"), v.value = !1;
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
433
|
c = await U(e);
|
|
@@ -436,7 +436,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
436
436
|
if (e.password ? N = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : re(e.password, i) : N = ((C = e.layer) == null ? void 0 : C.toUpperCase()) === "SUPERADMIN" ? e.password : ge, (a == null ? void 0 : a.password) === N)
|
|
437
437
|
P = e;
|
|
438
438
|
else
|
|
439
|
-
throw P = null, K.error("输入的密码错误,请重新输入"),
|
|
439
|
+
throw P = null, K.error("输入的密码错误,请重新输入"), v.value = !1, new Error("输入的密码错误,请重新输入");
|
|
440
440
|
} else
|
|
441
441
|
return K.error("该用户不存在,请重新输入");
|
|
442
442
|
}
|
|
@@ -455,7 +455,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
455
455
|
const f = ((n = (s = t.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
456
456
|
return sessionStorage.setItem("isSuperAdmin", JSON.stringify(f)), sessionStorage.setItem("systemKey", S.value ? S.value : (l = t.matchedUser) == null ? void 0 : l.systemKey), await O(t.matchedUser), !0;
|
|
457
457
|
} else
|
|
458
|
-
throw
|
|
458
|
+
throw v.value = !1, new Error("该用户数据处理失败,请联系管理员");
|
|
459
459
|
}, O = async (a) => {
|
|
460
460
|
var s, n, l, f, o, C, c, e, P;
|
|
461
461
|
const t = await q({
|
|
@@ -495,7 +495,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
495
495
|
}
|
|
496
496
|
}, Z = async (a) => {
|
|
497
497
|
var l, f, o, C;
|
|
498
|
-
|
|
498
|
+
v.value = !0;
|
|
499
499
|
let t = [D(a), R(), G()];
|
|
500
500
|
const s = await Promise.all(t);
|
|
501
501
|
(s == null ? void 0 : s.every((c) => c)) && (await Ce(), b.push("/"), d.setLogRecordAsync({
|
|
@@ -506,28 +506,28 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
506
506
|
}
|
|
507
507
|
}, "/login", "login"));
|
|
508
508
|
}, le = (a) => {
|
|
509
|
-
p.value = a,
|
|
509
|
+
p.value = a, _.value = !1, v.value = !1;
|
|
510
510
|
}, ie = (a) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);
|
|
511
511
|
return (a, t) => (W(), J("div", qe, [
|
|
512
|
-
|
|
513
|
-
|
|
512
|
+
m("div", Je, [
|
|
513
|
+
m("div", We, [
|
|
514
514
|
k(Ke, { class: "login-left-bg" }, {
|
|
515
515
|
img: y(() => {
|
|
516
516
|
var s, n, l, f;
|
|
517
517
|
return [
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
518
|
+
m("div", ze, [
|
|
519
|
+
m("div", null, V(((s = X(h)) == null ? void 0 : s.EnglishName) || "INSOFWORKS"), 1),
|
|
520
|
+
m("div", null, V((n = X(h)) != null && n.chineseName && ie((l = X(h)) == null ? void 0 : l.chineseName) ? (f = X(h)) == null ? void 0 : f.chineseName : "工业软件集成开发平台"), 1)
|
|
521
521
|
]),
|
|
522
|
-
t[0] || (t[0] =
|
|
522
|
+
t[0] || (t[0] = m("div", { class: "divide-line" }, null, -1))
|
|
523
523
|
];
|
|
524
524
|
}),
|
|
525
525
|
_: 1
|
|
526
526
|
})
|
|
527
527
|
]),
|
|
528
|
-
|
|
528
|
+
m("div", Ge, [
|
|
529
529
|
k(Pe, {
|
|
530
|
-
loading:
|
|
530
|
+
loading: v.value,
|
|
531
531
|
onClickLogin: r,
|
|
532
532
|
onHandleTabChange: le
|
|
533
533
|
}, {
|
|
@@ -540,8 +540,8 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
540
540
|
tabContent1: y(() => [
|
|
541
541
|
k(xe, {
|
|
542
542
|
activeTabName: p.value,
|
|
543
|
-
isClickLogin:
|
|
544
|
-
onHandleLoginFormChange:
|
|
543
|
+
isClickLogin: _.value,
|
|
544
|
+
onHandleLoginFormChange: w
|
|
545
545
|
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
546
546
|
]),
|
|
547
547
|
tabButton1: y(() => [
|
|
@@ -554,8 +554,8 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
554
554
|
k(He, {
|
|
555
555
|
systemKey: a.oldSystemKey,
|
|
556
556
|
activeTabName: p.value,
|
|
557
|
-
isClickLogin:
|
|
558
|
-
onHandleLoginFormChange:
|
|
557
|
+
isClickLogin: _.value,
|
|
558
|
+
onHandleLoginFormChange: w
|
|
559
559
|
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
560
560
|
]),
|
|
561
561
|
tabButton2: y(() => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DEBf-IBT.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs"),C=require("./index-CBzeyNqc.cjs"),r=require("./index-B5KCSN4c.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=f.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await c(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(_.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as g, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as f } from "vue";
|
|
2
|
-
import { S as x } from "./index-
|
|
3
|
-
import { s as B } from "./index-
|
|
4
|
-
import { s as F } from "./index-
|
|
5
|
-
import { c as y } from "./index-
|
|
6
|
-
import { u as S } from "./index.vue_vue_type_style_index_1_lang-
|
|
7
|
-
import { p as I, s as N } from "./index-
|
|
2
|
+
import { S as x } from "./index-Bf_EwhXB.js";
|
|
3
|
+
import { s as B } from "./index-B6nEh_Jv.js";
|
|
4
|
+
import { s as F } from "./index-LjM9Nk8B.js";
|
|
5
|
+
import { c as y } from "./index-BuPMGirQ.js";
|
|
6
|
+
import { u as S } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
|
|
7
|
+
import { p as I, s as N } from "./index-DBDeHECn.js";
|
|
8
8
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const E = { class: "menu-module" }, M = {
|
|
10
10
|
class: "table-wrap",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs"),a=require("./index-DEBf-IBT.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T="ElUpload";class R extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new R(i,l.status,o.method,r)}function U(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const D=r=>{typeof XMLHttpRequest>"u"&&a.throwError(T,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(U(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},b=["text","picture","picture-card"];let L=1;const N=()=>Date.now()+L++,x=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:b,default:"text"},httpRequest:{type:a.definePropType(Function),default:D},disabled:Boolean,limit:Number}),F=a.buildProps({...x,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}}),j={style:{"text-align":"left"}},A={class:"cropper-warp"},q={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new B.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),V=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},S=s=>{p.value.clearFiles();const n=s[0];n.uid=N(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),I=e.resolveComponent("el-upload"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(k,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(I,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":V,"on-exceed":S},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("div",q,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),E=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(E,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),P=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));exports.CropperDialog=E;exports.genFileId=N;exports.index=Z;exports.ssAvatar=P;exports.uploadBaseProps=x;exports.uploadListTypes=b;exports.uploadProps=F;
|