ss-component-new 1.3.430 → 1.3.432

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.
Files changed (45) hide show
  1. package/dist/{array-0RI_MV-5.cjs → array-luuLL6CX.cjs} +1 -1
  2. package/dist/{array-DeAl78t6.js → array-wB3zPS0S.js} +2 -2
  3. package/dist/{index-8V0NHmW6.cjs → index--Q8dq5DS.cjs} +1 -1
  4. package/dist/{index-fH3hPSMI.js → index-0HXpXJO6.js} +16 -16
  5. package/dist/{index-Dz_V4Aef.cjs → index-B99I_vDk.cjs} +1 -1
  6. package/dist/index-BGbr6Njb.cjs +2 -0
  7. package/dist/{index-DbPbr5TD.js → index-BOz_MAHK.js} +4 -4
  8. package/dist/{index-DCfi_waU.cjs → index-BRqKT37j.cjs} +1 -1
  9. package/dist/{index-ToiCtVRE.js → index-BZ3P1ll8.js} +2 -2
  10. package/dist/{index-DO5zum3x.js → index-Bq7AQN37.js} +1 -1
  11. package/dist/{index-YzkBsOrM.js → index-C2qa2ljw.js} +2 -2
  12. package/dist/{index-B6e2oM-P.cjs → index-C4bA0jPu.cjs} +1 -1
  13. package/dist/{index-DgTbfgjE.js → index-CJow9MRO.js} +1 -1
  14. package/dist/{index-DM4iU2Ab.cjs → index-CMpvaYXO.cjs} +1 -1
  15. package/dist/{index-DSKIm3im.js → index-CYnI31LU.js} +1 -1
  16. package/dist/{index-C-rFa3VT.js → index-CgMsDp37.js} +1 -1
  17. package/dist/{index-DDAEpzaB.cjs → index-CiPgqhA6.cjs} +1 -1
  18. package/dist/{index-CGqnKnrd.js → index-CynRFydr.js} +1 -1
  19. package/dist/{index-Call_60N.cjs → index-D0FUzQhj.cjs} +1 -1
  20. package/dist/{index-CGaJRFh6.cjs → index-D1kQL369.cjs} +1 -1
  21. package/dist/{index-BTfuvT7M.cjs → index-DQD6jg8m.cjs} +1 -1
  22. package/dist/{index-BEyBnEnd.js → index-DXbOEeAm.js} +2 -2
  23. package/dist/{index-Dn7UEQUd.js → index-DZ-jLFih.js} +1 -1
  24. package/dist/{index-Dxs-F0xJ.js → index-DbIRquOl.js} +3 -3
  25. package/dist/{index-BpYkNRvs.cjs → index-DnwoeTr-.cjs} +1 -1
  26. package/dist/{index-DqmyyzfP.cjs → index-fsO0R02I.cjs} +1 -1
  27. package/dist/{index-p9kkXcpR.js → index-iGRV5jtr.js} +4446 -4455
  28. package/dist/{index-CIMnUwEB.cjs → index-wRPswAvQ.cjs} +1 -1
  29. package/dist/{main-2_nRO_Yd.cjs → main-G0V83rc_.cjs} +1 -1
  30. package/dist/{main-hbDYKA6O.js → main-JSkTNHXB.js} +2 -2
  31. package/dist/ss-component.cjs +1 -1
  32. package/dist/ss-component.css +1 -1
  33. package/dist/ss-component.js +6 -6
  34. package/dist/ss-component2.cjs +1 -1
  35. package/dist/ss-component2.js +8 -8
  36. package/dist/{threeModel-C1V8R9PI.js → threeModel-CkZ94OPN.js} +1 -1
  37. package/dist/{threeModel-z-ti4e5E.cjs → threeModel-Df9F-OvR.cjs} +1 -1
  38. package/dist/{threeSceneView-BCuH_gVn.js → threeSceneView-BEoquzn3.js} +3 -3
  39. package/dist/{threeSceneView-CTHpWmwg.cjs → threeSceneView-Blh_DkGZ.cjs} +1 -1
  40. package/dist/{threeSceneViewForCPMPIP-CsDzXB39.cjs → threeSceneViewForCPMPIP-BxzpG0Ns.cjs} +1 -1
  41. package/dist/{threeSceneViewForCPMPIP-Dyb60cS_.js → threeSceneViewForCPMPIP-c-Kv5yPO.js} +1 -1
  42. package/dist/{threeViewerHost-2yySAP_2.js → threeViewerHost-DBcfrh7A.js} +1 -1
  43. package/dist/{threeViewerHost-Bk3vNumJ.cjs → threeViewerHost-D_4JNLXj.cjs} +1 -1
  44. package/package.json +1 -1
  45. package/dist/index-CWzVeyId.cjs +0 -2
@@ -4,14 +4,14 @@ var Ci = (e, a, r) => Np(e, typeof a != "symbol" ? a + "" : a, r);
4
4
  import { ref as se, watch as bl, nextTick as Yr, resolveComponent as Sl, createBlock as gl, openBlock as ce, withCtx as Fe, createElementVNode as ve, renderSlot as cn, defineComponent as oi, computed as Vl, createElementBlock as Xe, createCommentVNode as Pl, normalizeStyle as si, toDisplayString as al, onMounted as rn, onUnmounted as iu, withModifiers as jr, createVNode as Le, createTextVNode as wl, Fragment as Fl, renderList as ar, normalizeClass as Hi, onBeforeUnmount as eo, unref as Jl, createSlots as nu, mergeProps as su, resolveDynamicComponent as Ji, shallowRef as Uc, reactive as xi, getCurrentInstance as qc, inject as jt, provide as Us, toRef as Lp, onBeforeMount as Wc, watchEffect as Rp, getCurrentScope as Pp, onScopeDispose as Hp, toRefs as ju, withDirectives as jp, vShow as Fp } from "vue";
5
5
  import { o as Up, q as qp, E as Ol, b as Ri, l as Kc, i as Fu, a as Uu, ar as Gc, as as Wp, at as Kp, au as At, aq as qu } from "./request-XJsZ4h2T.js";
6
6
  import { e as un, c as Ce, s as nr, i as Dn, p as lr, b as zn, u as In, j as En, n as Yc, a as On, a6 as Bo, a5 as ou, a3 as bo, q as ao, h as mi, a7 as bn, m as $o, k as Io, E as Qi, t as qs, a8 as Gp, a9 as ko, aa as Yp, a1 as Jp } from "./index-BK-oz1IK.js";
7
- import { S as Xp, b as ei, _ as Wu, f as Zp, h as Jc, i as Ts, j as Ko, a as wr, k as Qp, l as Vp, m as ef, d as tu, e as af, c as lf, n as rf, o as nf } from "./index-C-rFa3VT.js";
7
+ import { S as Xp, b as ei, _ as Wu, f as Zp, h as Jc, i as Ts, j as Ko, a as wr, k as Qp, l as Vp, m as ef, d as tu, e as af, c as lf, n as rf, o as nf } from "./index-CgMsDp37.js";
8
8
  import { f as Ia, A as xs, B as Ws, C as sf, g as Kr, D as of, k as ns, E as No, t as Zs, F as tf, G as uf, H as cf, d as Ds, I as lo, r as df, j as Ks, J as pf, c as _i, b as zs, K as ff, u as uu, L as Fi, M as Go, N as hf, O as vf, P as yf, Q as gf, s as Ln, l as mf, R as bf, w as kf, S as _f, T as xf, U as wf, V as Xc, W as Bi, X as ws, Y as kn, Z as es, _ as Tt, $ as Sf, o as Af, a0 as Et, a1 as Tf, a2 as Ef } from "./index-BF5SUWUn.js";
9
9
  import { _ as br } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { r as Df, I as Ku, J as zf, K as If, C as Of, c as Dt, u as Zc, N as Hs, O as Mf, Q as Qc, R as Vc, s as zt, U as Cf, t as Bf, h as Zn, B as $f, V as It, Y as Gu, k as gs, l as Rs, Z as Nf, w as Lf, _ as Rf, $ as Pf, a0 as ed, d as ad, a1 as Yu } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BUMDcqtn.js";
11
11
  import { s as Vr } from "./index-11kpzK0A.js";
12
- import { a as ld, T as rd } from "./threeViewerHost-2yySAP_2.js";
12
+ import { a as ld, T as rd } from "./threeViewerHost-DBcfrh7A.js";
13
13
  import { g as _s, u as Ft, c as id, a as ro, e as cu, b as Lo } from "./index-DUq4XELr.js";
14
- import { a as Hf, s as jf } from "./index-DgTbfgjE.js";
14
+ import { a as Hf, s as jf } from "./index-CJow9MRO.js";
15
15
  import { u as nd } from "./index-BTgKT-Kp.js";
16
16
  /* empty css */
17
17
  import { i as Ro } from "./isString-ChmgnNIb.js";
@@ -1919,7 +1919,7 @@ const n3 = (e) => {
1919
1919
  let Ee = (D = Ia(r, "@")) == null ? void 0 : D[1];
1920
1920
  u = (q = (re = Ia(r, "@")) == null ? void 0 : re[0]) == null ? void 0 : q.replace(Ue, ""), (u == null ? void 0 : u[(u == null ? void 0 : u.length) - 1]) === "@" && (u = u == null ? void 0 : u.slice(0, (u == null ? void 0 : u.length) - 1));
1921
1921
  let Ma = "";
1922
- Ma = Ia(r, ")"), Ma = Ma == null ? void 0 : Ma.filter((Da, Oe) => Oe !== 0 && Oe !== (Ma == null ? void 0 : Ma.length) - 1), ((_e = Ia(r, "&")) == null ? void 0 : _e.length) > 1 && (Ma == null ? void 0 : Ma.length) <= 2 && (R = "", u = "", Ma = Ia(r, ")")), (Ma == null ? void 0 : Ma.length) > 0 && (($e = sf(Ma)) == null || $e.forEach((Da) => {
1922
+ Ma = Ia(r, ")"), Ma = Ma == null ? void 0 : Ma.filter((Da, Oe) => Oe !== 0 && Oe !== (Ma == null ? void 0 : Ma.length) - 1), ((_e = Ia(r, "&")) == null ? void 0 : _e.length) > 1 && (Ma == null ? void 0 : Ma.length) < 2 && (R = "", u = "", Ma = Ia(r, ")")), (Ma == null ? void 0 : Ma.length) > 0 && (($e = sf(Ma)) == null || $e.forEach((Da) => {
1923
1923
  var we, pl, Nl, ql, er;
1924
1924
  let Oe = "", je = [], We = "";
1925
1925
  (Da == null ? void 0 : Da.length) > 1 && (We = "@" + (Da == null ? void 0 : Da[0]), We = Pi(We));
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-Dz_V4Aef.cjs"),d=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=()=>{const l=e.ref("日志管理"),n=e.ref(),o=e.ref([{key:"header",contents:[{prop:"name",align:"center",isRun:!1,label:"日志名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"time",align:"center",isRun:!1,label:"生成时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"sort",align:"operator",isRun:!1,label:"操作人",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"remark",align:"center",isRun:!1,label:"备注",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作",isMainKey:!0}]},{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:[[{id:764397741125751},"test","test","test","test"]]}]);return{compName:l,changedRow:n,tableInfo:o,handleItemDataChange:a=>{},clickRowButton:async(a,r)=>{}}},f={class:"log-management"},m={class:"body"},p=e.defineComponent({__name:"index",setup(l){const{compName:n,changedRow:o,tableInfo:s,handleItemDataChange:i,clickRowButton:a}=u();return(r,t)=>(e.openBlock(),e.createElementBlock("div",f,[t[0]||(t[0]=e.createElementVNode("div",{class:"header"},null,-1)),e.createElementVNode("div",m,[e.createVNode(c.ssTable,{compName:e.unref(n),itemData:e.unref(s),changedContent:e.unref(o),onChange:e.unref(i),onOnButtonClick:e.unref(a)},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"])]),t[1]||(t[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]))}}),g=d._export_sfc(p,[["__scopeId","data-v-5bfd5576"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-B99I_vDk.cjs"),d=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=()=>{const l=e.ref("日志管理"),n=e.ref(),o=e.ref([{key:"header",contents:[{prop:"name",align:"center",isRun:!1,label:"日志名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"time",align:"center",isRun:!1,label:"生成时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"sort",align:"operator",isRun:!1,label:"操作人",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"remark",align:"center",isRun:!1,label:"备注",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作",isMainKey:!0}]},{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:[[{id:764397741125751},"test","test","test","test"]]}]);return{compName:l,changedRow:n,tableInfo:o,handleItemDataChange:a=>{},clickRowButton:async(a,r)=>{}}},f={class:"log-management"},m={class:"body"},p=e.defineComponent({__name:"index",setup(l){const{compName:n,changedRow:o,tableInfo:s,handleItemDataChange:i,clickRowButton:a}=u();return(r,t)=>(e.openBlock(),e.createElementBlock("div",f,[t[0]||(t[0]=e.createElementVNode("div",{class:"header"},null,-1)),e.createElementVNode("div",m,[e.createVNode(c.ssTable,{compName:e.unref(n),itemData:e.unref(s),changedContent:e.unref(o),onChange:e.unref(i),onOnButtonClick:e.unref(a)},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"])]),t[1]||(t[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]))}}),g=d._export_sfc(p,[["__scopeId","data-v-5bfd5576"]]);exports.default=g;
@@ -4,11 +4,11 @@ import { u as Se, o as _t, s as de, f as ce } from "./index-BTgKT-Kp.js";
4
4
  import { G as Le, H as ft, u as vt, p as gt } from "./index-BK-oz1IK.js";
5
5
  import { s as _e } from "./index-11kpzK0A.js";
6
6
  import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BUMDcqtn.js";
7
- import "./index-DbPbr5TD.js";
7
+ import "./index-BOz_MAHK.js";
8
8
  import "./index-BHtNKL1L.js";
9
9
  import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
10
10
  import "./index-BF5SUWUn.js";
11
- import "./index-DgTbfgjE.js";
11
+ import "./index-CJow9MRO.js";
12
12
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  import { c as me } from "./clone-BDsG8VVj.js";
14
14
  const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-content-wrapper" }, Ct = { class: "node-label-wrapper" }, bt = { class: "node-label" }, wt = /* @__PURE__ */ J({
@@ -1,5 +1,5 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { W as m } from "./index-DbPbr5TD.js";
2
+ import { W as m } from "./index-BOz_MAHK.js";
3
3
  import { g as d, c as _ } from "./index-sl2ZbrIv.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
@@ -1,8 +1,8 @@
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 m, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
2
2
  import { S as x } from "./index-Ca_pqbsS.js";
3
- import { W as B } from "./index-DbPbr5TD.js";
3
+ import { W as B } from "./index-BOz_MAHK.js";
4
4
  import { s as F } from "./index-11kpzK0A.js";
5
- import { b as y } from "./index-C-rFa3VT.js";
5
+ import { b as y } from "./index-CgMsDp37.js";
6
6
  import { u as S, p as I, s as N } from "./index-BK-oz1IK.js";
7
7
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const E = { class: "menu-module" }, M = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Dz_V4Aef.cjs"),n=require("./index-DyCQbiMc.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-B99I_vDk.cjs"),n=require("./index-DyCQbiMc.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
@@ -5,7 +5,7 @@ import { g as Q, u as we } from "./index-DUq4XELr.js";
5
5
  import { J as X } from "./JSEncrypt-B36c1iN5.js";
6
6
  import { a3 as Se } from "./index-BF5SUWUn.js";
7
7
  import { A as _e } from "./index-Lhh-KMx5.js";
8
- import { u as Y, l as Ce } from "./index-C-rFa3VT.js";
8
+ import { u as Y, l as Ce } from "./index-CgMsDp37.js";
9
9
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { S as x } from "./index-BHtNKL1L.js";
11
11
  function Ae(t, s) {
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),C=require("./request-Dl8yi2iS.cjs"),_=require("./index-xN3pvlzo.cjs"),N=require("./index-DmwxzDGW.cjs"),M=require("./JSEncrypt-IYbV4kRj.cjs"),Q=require("./index-B9MP9Z_h.cjs"),X=require("./index-C3JpBKyN.cjs"),T=require("./index-BpYkNRvs.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new M.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new M.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const V=_.useLoginState(_.pinia),{loginUserInfo:p,cryptoInfo:x}=_.storeToRefs(V),ee=_.useMenuState(_.pinia),{activeMenuPath:A}=_.storeToRefs(ee),L=e.ref(0),K=e.computed(()=>{var r,s,t,o,l,u,a,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=p.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((a=p.value)==null?void 0:a.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),te=()=>{},q=e.ref(!1),E=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),D=e.ref([{label:"签字版",icon:C.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:C.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:C.upload_filled_default,type:"buttonUpload",disabled:!1}]),P=e.ref(!1),$=e.ref(!1),z=e.ref(!1),O=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),t=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(z.value=!(s!=null&&s.includes(`${t}/上传头像`)),(u=D.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?D.value:[]}),ae=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:O.value}]),re=r=>{E.dialogShow=r.label==="电子签名"},W=()=>{E.dialogShow=!1},j=async r=>{var t,o,l,u,a,f,b,m,y;const s=await N.getInsofDataApi({id:r});if(((t=s==null?void 0:s.data)==null?void 0:t.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(a=s.data.result)==null?void 0:a[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};V.setLoginUserInfo(d)}},H=async(r,s)=>{var o,l,u;const t=_.cloneDeep(r);t==null||delete t.id;try{const a=await N.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:t}});((l=a==null?void 0:a.data)==null?void 0:l.code)===200&&(W(),C.ElMessage.success("修改成功"),await j((u=p.value)==null?void 0:u.id),await V.setLogRecordAsync({type:s,data:r},A.value))}catch{C.ElMessage.error("修改响应失败")}finally{q.value=!1,P.value=!1,$.value=!1}},se=async(r,s)=>{var l;const t=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[t]:s};P.value=r==="avatarUrl",$.value=r==="signature",await H(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),J=e.ref([]),G=e.ref(),ne=(r,s,t)=>{var u,a,f,b,m,y;let o;const l=s;((a=(u=p.value)==null?void 0:u.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?Z((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):Q.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},oe=(r,s,t)=>{s?t():t(new Error("请输入密码"))},le=(r,s,t)=>{var o;s!==((o=G.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},ue=async()=>{var s,t,o,l,u,a,f,b,m,y;const r=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((t=r.data.result)==null?void 0:t.length)>0){const d=(f=(a=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:a.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=K.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ne},{...S,label:"新密码",prop:"newtPass",validator:oe},{...S,label:"确认密码",prop:"confirmNewPass",validator:le}];I.otherCols=i,de(p.value)}},ie=r=>{G.value=r},ce=async({content:r,buttonName:s})=>{var o,l,u,a,f;let t;s==="确定"&&(t={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:Y(r==null?void 0:r.confirmNewPass,(a=x.value)==null?void 0:a.publicKey)}),s==="保存基本信息"&&(t={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),q.value=!0,await H(t,s)},F=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),t=JSON.parse(s||"");if(Array.isArray(t)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,a=t!=null&&t.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=t!=null&&t.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:a,other:f}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?r:null},de=r=>{var s,t,o,l,u;J.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,prop:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:r[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=F())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((a,f)=>(a[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],a),{}),buttonValue:(u=F())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},pe=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:P,beforeSignDestroy:W,changeFormTrigger:ie,clickFormButton:te,clickSignButton:re,clickTabButton:ce,getUserTableHeadersAsync:ue,itemData:ae,loading:q,refreshLoginUserInfoAsync:j,rowContents:K,signPadInfo:E,signTypes:O,signatureLoading:$,submitImageAsync:se,tabKey:L,tabsContents:J,tempSignTypes:D,uploadDisabled:z},Symbol.toStringTag,{value:"Module"})),fe={class:"avatar-model-wrap"},ge={key:0},ve=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(r,{emit:s}){const t=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),a=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=t.userInfo)==null?void 0:d.头像},d=>{a.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(t!=null&&t.disabled))try{const d=await _.platformDownloadFile({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await T.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(a.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){C.ElMessage.error(g)}},y=async()=>{try{if(!a.value)return}catch(d){C.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(X.Avatar,{avatarUrl:a.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:t==null?void 0:t.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ye=R._export_sfc(ve,[["__scopeId","data-v-1a1f2575"]]),be=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const t=r,o=e.ref({}),l=e.ref([]),u=s,a=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await T.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){C.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>t==null?void 0:t.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(T.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:he=>a(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),me=R._export_sfc(be,[["__scopeId","data-v-ce5a2314"]]);exports.State=pe;exports.ssAvatar=ye;exports.ssSignature=me;exports.tabKey=L;
1
+ "use strict";const e=require("vue"),C=require("./request-Dl8yi2iS.cjs"),_=require("./index-xN3pvlzo.cjs"),N=require("./index-DmwxzDGW.cjs"),M=require("./JSEncrypt-IYbV4kRj.cjs"),Q=require("./index-B9MP9Z_h.cjs"),X=require("./index-C3JpBKyN.cjs"),T=require("./index-DnwoeTr-.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new M.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new M.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const V=_.useLoginState(_.pinia),{loginUserInfo:p,cryptoInfo:x}=_.storeToRefs(V),ee=_.useMenuState(_.pinia),{activeMenuPath:A}=_.storeToRefs(ee),L=e.ref(0),K=e.computed(()=>{var r,s,t,o,l,u,a,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=p.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((a=p.value)==null?void 0:a.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),te=()=>{},q=e.ref(!1),E=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),D=e.ref([{label:"签字版",icon:C.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:C.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:C.upload_filled_default,type:"buttonUpload",disabled:!1}]),P=e.ref(!1),$=e.ref(!1),z=e.ref(!1),O=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),t=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(z.value=!(s!=null&&s.includes(`${t}/上传头像`)),(u=D.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?D.value:[]}),ae=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:O.value}]),re=r=>{E.dialogShow=r.label==="电子签名"},W=()=>{E.dialogShow=!1},j=async r=>{var t,o,l,u,a,f,b,m,y;const s=await N.getInsofDataApi({id:r});if(((t=s==null?void 0:s.data)==null?void 0:t.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(a=s.data.result)==null?void 0:a[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};V.setLoginUserInfo(d)}},H=async(r,s)=>{var o,l,u;const t=_.cloneDeep(r);t==null||delete t.id;try{const a=await N.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:t}});((l=a==null?void 0:a.data)==null?void 0:l.code)===200&&(W(),C.ElMessage.success("修改成功"),await j((u=p.value)==null?void 0:u.id),await V.setLogRecordAsync({type:s,data:r},A.value))}catch{C.ElMessage.error("修改响应失败")}finally{q.value=!1,P.value=!1,$.value=!1}},se=async(r,s)=>{var l;const t=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[t]:s};P.value=r==="avatarUrl",$.value=r==="signature",await H(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),J=e.ref([]),G=e.ref(),ne=(r,s,t)=>{var u,a,f,b,m,y;let o;const l=s;((a=(u=p.value)==null?void 0:u.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?Z((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):Q.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},oe=(r,s,t)=>{s?t():t(new Error("请输入密码"))},le=(r,s,t)=>{var o;s!==((o=G.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},ue=async()=>{var s,t,o,l,u,a,f,b,m,y;const r=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((t=r.data.result)==null?void 0:t.length)>0){const d=(f=(a=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:a.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=K.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ne},{...S,label:"新密码",prop:"newtPass",validator:oe},{...S,label:"确认密码",prop:"confirmNewPass",validator:le}];I.otherCols=i,de(p.value)}},ie=r=>{G.value=r},ce=async({content:r,buttonName:s})=>{var o,l,u,a,f;let t;s==="确定"&&(t={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:Y(r==null?void 0:r.confirmNewPass,(a=x.value)==null?void 0:a.publicKey)}),s==="保存基本信息"&&(t={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),q.value=!0,await H(t,s)},F=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),t=JSON.parse(s||"");if(Array.isArray(t)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,a=t!=null&&t.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=t!=null&&t.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:a,other:f}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?r:null},de=r=>{var s,t,o,l,u;J.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,prop:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:r[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=F())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((a,f)=>(a[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],a),{}),buttonValue:(u=F())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},pe=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:P,beforeSignDestroy:W,changeFormTrigger:ie,clickFormButton:te,clickSignButton:re,clickTabButton:ce,getUserTableHeadersAsync:ue,itemData:ae,loading:q,refreshLoginUserInfoAsync:j,rowContents:K,signPadInfo:E,signTypes:O,signatureLoading:$,submitImageAsync:se,tabKey:L,tabsContents:J,tempSignTypes:D,uploadDisabled:z},Symbol.toStringTag,{value:"Module"})),fe={class:"avatar-model-wrap"},ge={key:0},ve=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(r,{emit:s}){const t=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),a=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=t.userInfo)==null?void 0:d.头像},d=>{a.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(t!=null&&t.disabled))try{const d=await _.platformDownloadFile({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await T.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(a.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){C.ElMessage.error(g)}},y=async()=>{try{if(!a.value)return}catch(d){C.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(X.Avatar,{avatarUrl:a.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:t==null?void 0:t.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ye=R._export_sfc(ve,[["__scopeId","data-v-1a1f2575"]]),be=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const t=r,o=e.ref({}),l=e.ref([]),u=s,a=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await T.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){C.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>t==null?void 0:t.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(T.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:he=>a(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),me=R._export_sfc(be,[["__scopeId","data-v-ce5a2314"]]);exports.State=pe;exports.ssAvatar=ye;exports.ssSignature=me;exports.tabKey=L;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
2
2
  import { u as h, p as k, s as x, c as m } from "./index-BK-oz1IK.js";
3
- import { W as M } from "./index-DbPbr5TD.js";
3
+ import { W as M } from "./index-BOz_MAHK.js";
4
4
  import { a as D, d as T, f as S } from "./index-BmZwVwZC.js";
5
5
  import { g as w } from "./index-DUq4XELr.js";
6
6
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -8,7 +8,7 @@ import { _ as Y0 } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js
8
8
  import { k as Ki, A as $9, W as l8 } from "./index-BF5SUWUn.js";
9
9
  /* empty css */
10
10
  import { s as J4 } from "./index-11kpzK0A.js";
11
- import { T as Xi, a as j9 } from "./threeViewerHost-2yySAP_2.js";
11
+ import { T as Xi, a as j9 } from "./threeViewerHost-DBcfrh7A.js";
12
12
  import { A as W9 } from "./index-Lhh-KMx5.js";
13
13
  var U9 = "[object Date]";
14
14
  function I9(n) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DyCQbiMc.cjs"),r=require("./index-Dz_V4Aef.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DyCQbiMc.cjs"),r=require("./index-B99I_vDk.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
2
2
  import { S as m } from "./index-sl2ZbrIv.js";
3
- import { W as _ } from "./index-DbPbr5TD.js";
3
+ import { W as _ } from "./index-BOz_MAHK.js";
4
4
  import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
6
6
  __name: "index",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-xN3pvlzo.cjs"),_=require("./index-Dz_V4Aef.cjs"),r=require("./index-B1FeUhQ3.cjs"),C=require("./index-DmwxzDGW.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.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 f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.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(_.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-xN3pvlzo.cjs"),_=require("./index-B99I_vDk.cjs"),r=require("./index-B1FeUhQ3.cjs"),C=require("./index-DmwxzDGW.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.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 f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.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(_.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-fh5hS-5q.cjs"),_=require("./index-Dz_V4Aef.cjs"),m=require("./index-B-pflqKE.cjs"),h=require("./index-BpYkNRvs.cjs"),l=require("./index-xN3pvlzo.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-fh5hS-5q.cjs"),_=require("./index-B99I_vDk.cjs"),m=require("./index-B-pflqKE.cjs"),h=require("./index-DnwoeTr-.cjs"),l=require("./index-xN3pvlzo.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),w=require("./index-xN3pvlzo.cjs"),Ze=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs");const He=require("./request-Dl8yi2iS.cjs"),me=require("./index-B-pflqKE.cjs"),et=require("./index-BpYkNRvs.cjs"),tt=require("vue-router"),ge=require("./index-DKh4EyHV.cjs"),K=require("./index-DmwxzDGW.cjs"),ot=require("./index-Dz_V4Aef.cjs"),lt=require("./menuIndex-8KYc1zS9.cjs"),ke=require("./index-B9MP9Z_h.cjs"),st=require("./index-CZuPznao.cjs"),it=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BpYkNRvs.cjs")).then(r=>r.index));Se.install=r=>{r.component("ssMenu",Se)};const Me={__name:"index",props:{name:String},setup(r){const c=r,S=t.computed(()=>He.Icons[c.name]);return t.onMounted(()=>{}),(h,a)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.value)))]),_:1})}}},Ee=(r,c,S=0)=>{let h=r;return h!=null&&h.every(a=>Array.isArray(a))&&(h!=null&&h.every(a=>Array.isArray(a)&&a.length===1)?h=h==null?void 0:h.filter(a=>(a==null?void 0:a[0])!==(c==null?void 0:c[S])):h=h==null?void 0:h.map(a=>{if(a!=null&&a.find(l=>l===(c==null?void 0:c[S]))&&(c==null?void 0:c.length)!==1){let l=w.cloneDeep(c),n=a==null?void 0:a.filter(C=>C!==(l==null?void 0:l[S])),I=S+1,M=Ee(n,l,I),b=[];b.push(a==null?void 0:a[0]),M==null||M.forEach(C=>{b.push(C)}),a=b}return a})),h},xe=(r,c,S,h=0)=>{let a=r;return a!=null&&a.every(l=>Array.isArray(l))&&(a!=null&&a.every(l=>Array.isArray(l)&&l.length===1)?a.push([S]):a=a==null?void 0:a.map(l=>{if(l!=null&&l.find(n=>n===(c==null?void 0:c[h]))&&(c==null?void 0:c.length)!==1){let n=w.cloneDeep(c),I=l==null?void 0:l.filter(E=>E!==(n==null?void 0:n[h])),M=h+1,b=xe(I,n,S,M),C=[];C.push(l==null?void 0:l[0]),b==null||b.forEach(E=>{C.push(E)}),l=C}return l})),a},be=(r,c,S,h,a=0)=>{let l=r;return l!=null&&l.every(n=>Array.isArray(n))&&(l!=null&&l.every(n=>Array.isArray(n)&&n.length===1)?l=l==null?void 0:l.map(n=>((n==null?void 0:n[0])===S&&(n=[h]),n)):l=l==null?void 0:l.map(n=>{if(n!=null&&n.find(I=>I===(c==null?void 0:c[a]))&&(c==null?void 0:c.length)!==1){let I=w.cloneDeep(c),M=n==null?void 0:n.filter(L=>L!==(I==null?void 0:I[a])),b=a+1,C=be(M,I,S,h,b),E=[];E.push(n==null?void 0:n[0]),C==null||C.forEach(L=>{E.push(L)}),n=E}return n})),l};function qe(r="menu"){return{name:r,components:{SvgIcon:Ze.SvgIcon,ssMenu:Se,DynamicIcon:Me,ssDialog:me.ssDialog,ssInput:et.ssInput},setup(c,{emit:S}){const h=t.defineProps({mode:{type:String,default:"vertical"}}),a=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),l=w.useMenuState(),n=w.useModelComp(w.pinia),I=w.useLoginState(w.pinia),{loginUserInfo:M}=w.storeToRefs(I),b=t.ref(0),C=tt.useRouter(),E=t.ref(),{asideMenus:L,menuTriggerType:i,platform:ue}=w.storeToRefs(l),{fixMenuStatus:De}=w.storeToRefs(n),{isSuperAdmin:_e}=st.useRole(),Ie=t.computed(()=>h==null?void 0:h.mode),x=o=>o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=x(e.children)),e}),Be=t.computed(()=>{let o=[...L.value];if((o==null?void 0:o.length)===0)return C.push("/"),[];const s=Le(o,$e.value);return s.isFlag||(o=s==null?void 0:s.data),o=o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=x(e.children)),e}),o}),Ae=async(o,s)=>{n.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(o==null?void 0:o.path),l.setActiveAsideMenu(o),o.isRouter?C.push(o.path):C.push("/"),S("node-click",o,s)},Fe=async o=>{const s=lt.findNodeByPropInTree(Be.value,"path",o);l.setActiveAsideMenu(s),n.setRouteToChildPath(""),De.value?n.setFixMenuStatus(!1):(W.value&&(i.value="open"),i.value==="click"?l.setActiveMenuPath(o):W.value||(l.setMenuTriggerType("click"),l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?C.push(o):C.push("/"),b.value++},Ne=o=>{W.value||l.setActiveMenuPath(o)},z=o=>{const s=document.documentElement;o==null||o.forEach(e=>{s.style.setProperty(e.name,e.value)})};t.onMounted(()=>{b.value=1});const $e=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>ue.value,o=>{o==="browser"?z(ge.browserVerticalMenuClasses):o==="client"?(z(ge.clientHorizontalMenuClasses),z(ge.clientVerticalMenuClasses)):o==="three"&&(z(ge.threeHorizontalMenuClasses),z(ge.threeVerticalMenuClasses))},{immediate:!0});const Le=(o,s)=>({isFlag:!0}),U=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Ue=o=>ot.getComponent(o),je=t.ref({}),Re=t.ref([]),Y=t.ref({}),J=t.ref({}),Pe=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},we=t.ref({}),Oe=o=>{l.setCacheInputMenu({type:U.type,data:o}),l.setIsRefreshMenus(!0)},Ke=async(o,s,e)=>{var p,v,k,R,B,G,A,Z,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce;if(s==="create"){let F=(e==null?void 0:e.title)+"(1)",$=(v=(p=e==null?void 0:e.path)==null?void 0:p.split("/"))==null?void 0:v.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}),N=await ke.getItemData((B=(R=(k=e==null?void 0:e.path)==null?void 0:k.split("/"))==null?void 0:R.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:B.join("/"),sessionStorage.getItem("systemKey"),"");if($.push(F),$=$==null?void 0:$.join("/"),(N==null?void 0:N.length)>0){let D=N==null?void 0:N[0],y=(A=(G=D==null?void 0:D.compData)==null?void 0:G.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:A.contents;if(((Z=y==null?void 0:y[0])==null?void 0:Z.directiveLabel)==="#isMain"){let u=(H=y==null?void 0:y[0])==null?void 0:H.prop,T=(ee=(m=D==null?void 0:D.compData)==null?void 0:m.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:ee.contents,P;T==null||T.forEach(_=>{var O,j;if(_.length===1)((O=_==null?void 0:_[0])==null?void 0:O[u])===(e==null?void 0:e.title)&&(P=_==null?void 0:_[0],P[u]=F);else{let d=(j=y==null?void 0:y.filter(f=>f!=="操作"))==null?void 0:j.map(f=>f==null?void 0:f.prop),V=_==null?void 0:_.filter(f=>!(f!=null&&f.id)),q=ke.getValueToObjectValue(V,d);q[u]=F,P=q}}),await K.createInsofDataApi({key:{type:"data",pageKey:(le=(oe=(te=e==null?void 0:e.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((_,O)=>{var j,d;return O!==((d=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:d.length)-1}))==null?void 0:le.join("/"),tableId:D==null?void 0:D.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(se=M.value)==null?void 0:se.id,createUserLayer:((ie=M.value)==null?void 0:ie.dept)||((ae=M.value)==null?void 0:ae.部门名称)},value:{tableData:P}})}}await ke.newLoadingConstruct(e==null?void 0:e.path,$),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ce=(ne=(re=e==null?void 0:e.path)==null?void 0:re.split("/"))==null?void 0:ne.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:ce.join("/")),l.setActiveTopMenuPath((de=(pe=e==null?void 0:e.path)==null?void 0:pe.split("/"))==null?void 0:de[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}else if(s==="update")E.value=e;else if(s==="delete"){let F=[];(F==null?void 0:F.length)>0&&await K.batchDeleteInsofDataApi({ids:F}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ve=(fe=(he=e==null?void 0:e.path)==null?void 0:he.split("/"))==null?void 0:fe.filter(($,N)=>{var D,y;return N!==((y=(D=e==null?void 0:e.path)==null?void 0:D.split("/"))==null?void 0:y.length)-1}))==null?void 0:ve.join("/")),l.setActiveTopMenuPath((Ce=(ye=e==null?void 0:e.path)==null?void 0:ye.split("/"))==null?void 0:Ce[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},ze=async(o,s)=>{var Z,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,F,$,N,D,y,u,T,P,_,O,j;let e=await K.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=(H=(Z=e==null?void 0:e.data)==null?void 0:Z.result)==null?void 0:H[0],v=(m=p==null?void 0:p.value)==null?void 0:m.pageData;v.compData=(ee=v.compData)==null?void 0:ee.map(d=>{var V,q;return(d==null?void 0:d.key)==="menuContents"&&(d.contents=be(d.contents,(V=s==null?void 0:s.path)==null?void 0:V.split("/"),s==null?void 0:s.title,(q=o==null?void 0:o.target)==null?void 0:q.value)),d}),p!=null&&p.id&&await K.updateInsofDataApi({id:p==null?void 0:p.id,value:{pageData:v}});let k=(oe=(te=s==null?void 0:s.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((d,V)=>{var q,f;return V!==((f=(q=s==null?void 0:s.path)==null?void 0:q.split("/"))==null?void 0:f.length)-1}),R=k==null?void 0:k.join("/");k.push((le=o==null?void 0:o.target)==null?void 0:le.value),k=k==null?void 0:k.join("/");let B=await ke.getItemData(R,sessionStorage.getItem("systemKey"),"");if(((ne=(re=(ae=(ie=(se=B==null?void 0:B[0])==null?void 0:se.compData)==null?void 0:ie.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ae.contents)==null?void 0:re[0])==null?void 0:ne.directiveLabel)==="#isMain"){let d=(fe=(he=(de=(pe=(ce=B==null?void 0:B[0])==null?void 0:ce.compData)==null?void 0:pe.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:de.contents)==null?void 0:he[0])==null?void 0:fe.prop,V=(Ce=(ye=(ve=B==null?void 0:B[0])==null?void 0:ve.compData)==null?void 0:ye.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:Ce.contents,q=(D=(N=($=(F=B==null?void 0:B[0])==null?void 0:F.compData)==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:N.contents)==null?void 0:D.map(g=>g==null?void 0:g.prop),f;if(V==null||V.forEach(g=>{var X;let Q=ke.getValueToObjectValue(g,q);(Q==null?void 0:Q[d])===s.title&&(f=Q,f[d]=(X=o==null?void 0:o.target)==null?void 0:X.value)}),f){let g={};for(let X in f)X!=="id"&&(g[X]=f==null?void 0:f[X]);let Q=[{id:f==null?void 0:f.id,value:{tableData:g}}];await K.batchUpdateInsofDataApi({dataList:Q})}}let G=await K.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:s==null?void 0:s.path}}),A=(u=(y=G==null?void 0:G.data)==null?void 0:y.result)==null?void 0:u.map(d=>({id:d==null?void 0:d.id,key:d==null?void 0:d.key}));A=A==null?void 0:A.map(d=>(d.key.pageKey=k,d)),(A==null?void 0:A.length)>0&&await K.batchUpdateInsofDataApi({dataList:A}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((_=(P=(T=s==null?void 0:s.path)==null?void 0:T.split("/"))==null?void 0:P.filter((d,V)=>{var q,f;return V!==((f=(q=s==null?void 0:s.path)==null?void 0:q.split("/"))==null?void 0:f.length)-1}))==null?void 0:_.join("/")),l.setActiveTopMenuPath((j=(O=s==null?void 0:s.path)==null?void 0:O.split("/"))==null?void 0:j[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),E.value=void 0},Je=async(o,s)=>{U.type=Pe(s==null?void 0:s.operateType),await Ke(s,U.type,o),J.value=o,we.value=s},We=()=>{U.show=!1},Ge=o=>o==null?void 0:o.filter(s=>s.allowInherit),Qe=()=>{var e,p,v,k,R;let o;U.type==="create"&&(o=((e=J.value)==null?void 0:e.path)+"/"+Y.value[(p=Y.value)==null?void 0:p.prop]),U.type==="update"&&(o=(v=J.value)==null?void 0:v.path);const s={...J.value,config:Ge((k=J.value)==null?void 0:k.config),children:[],childMenus:[],title:Y.value[(R=Y.value)==null?void 0:R.prop],path:o};console.log("clickSubmitForm",we.value,J.value,s),Oe(s),U.show=!1},Xe=o=>{var e,p;const s=(e=o==null?void 0:o.contents)==null?void 0:e.find(v=>v.key==="formContent");s&&(Y.value=(p=s==null?void 0:s.contents)==null?void 0:p.reduce((v,k)=>(v[k.key]=k.value,v.prop=k.key,v),{}))},W=t.ref(!1),Ye=()=>{W.value=!W.value},Te=t.ref(null);return t.watch(()=>L.value,async o=>{var s,e;if(o){await t.nextTick();const p=o==null?void 0:o[0];if(((s=p==null?void 0:p.children)==null?void 0:s.length)>0){const v=p==null?void 0:p.path;Te.value&&((e=Te.value)==null||e.openMenuRefByIndex(v))}else l.setActiveMenuPath((p==null?void 0:p.path)??"")}},{immediate:!0}),{menuRef:Te,isCollapse:W,handleMenuCollapse:Ye,handleCompChange:Xe,dialogForm:je,dialogRenderComps:Re,getComponents:Ue,clickSubmitForm:Qe,dialogInfo:U,beforeDialogDestroy:We,clickMenuIcon:Je,mode:Ie,renderMenuList:Be,clickMenu:Ae,openMenu:Fe,closeMenu:Ne,changeMenuStyle:z,fixElement:E,onBlur:ze,isSuperAdmin:_e}}}}const at=t.defineComponent(qe()),rt=["title"],nt={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},ct={key:2,class:"menu-operate-icon"},pt={class:"menu-config-wrap"},dt=["onClick"],ht={class:"module-dialog-content"};function ft(r,c,S,h,a,l){var L;const n=t.resolveComponent("ss-input"),I=t.resolveComponent("svg-icon"),M=t.resolveComponent("el-popover"),b=t.resolveComponent("ss-menu"),C=t.resolveComponent("el-button"),E=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(b,{ref:"menuRef",class:"vertical-menu",mode:r.mode,menuList:r.renderMenuList,isCollapse:r.isCollapse,uniqueOpened:!0,onClickMenu:r.clickMenu,onOpenMenu:r.openMenu,onCloseMenu:r.closeMenu},{title:t.withCtx(({menu:i})=>{var ue,De,_e,Ie;return[!r.fixElement||(i==null?void 0:i.path)!==((ue=r.fixElement)==null?void 0:ue.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:i.title,class:"menu-title",style:t.normalizeStyle({marginRight:i!=null&&i.config&&((De=i==null?void 0:i.config)==null?void 0:De.length)>0?"25px":"1px"})},t.toDisplayString(i.title??""),13,rt)):t.createCommentVNode("",!0),r.fixElement&&(i==null?void 0:i.path)===((_e=r.fixElement)==null?void 0:_e.path)?(t.openBlock(),t.createElementBlock("span",nt,[t.createVNode(n,{value:i.title,onBlur:x=>r.onBlur(x,i)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),i!=null&&i.config&&((Ie=i==null?void 0:i.config)==null?void 0:Ie.length)>0&&r.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",ct,[t.createVNode(M,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(I,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",pt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i==null?void 0:i.config,x=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:x.id,onClick:Be=>r.clickMenuIcon(i,x)},[t.createVNode(I,{name:x==null?void 0:x.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(x==null?void 0:x.operateType),1)],8,dt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((L=r.renderMenuList)==null?void 0:L.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:c[0]||(c[0]=(...i)=>r.handleMenuCollapse&&r.handleMenuCollapse(...i))},[t.createVNode(I,{name:r.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(E,{class:"module-dialog",title:r.dialogInfo.title,visible:r.dialogInfo.show,width:r.dialogInfo.width,onBeforeDestroy:r.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",ht,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.dialogRenderComps,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.getComponents((i==null?void 0:i.comp)??"Input")),{itemData:i==null?void 0:i.compData,key:i==null?void 0:i.id,content:(i==null?void 0:i.contents)??[],config:i==null?void 0:i.config,onContentChange:r.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(C,{id:"themeBorderButton",onClick:r.beforeDialogDestroy},{default:t.withCtx(()=>c[1]||(c[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(C,{id:"themeButton",onClick:r.clickSubmitForm},{default:t.withCtx(()=>c[2]||(c[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Ve=it._export_sfc(at,[["render",ft],["__scopeId","data-v-a385ba2f"]]),vt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:xe,default:Ve,deleteSelectMenu:Ee,fixSelectMenu:be,setComponent:qe},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Me;exports.index=vt;exports.ssMenu=Se;exports.ssVMenu=Ve;
1
+ "use strict";const t=require("vue"),w=require("./index-xN3pvlzo.cjs"),Ze=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs");const He=require("./request-Dl8yi2iS.cjs"),me=require("./index-B-pflqKE.cjs"),et=require("./index-DnwoeTr-.cjs"),tt=require("vue-router"),ge=require("./index-DKh4EyHV.cjs"),K=require("./index-DmwxzDGW.cjs"),ot=require("./index-B99I_vDk.cjs"),lt=require("./menuIndex-8KYc1zS9.cjs"),ke=require("./index-B9MP9Z_h.cjs"),st=require("./index-CZuPznao.cjs"),it=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DnwoeTr-.cjs")).then(r=>r.index));Se.install=r=>{r.component("ssMenu",Se)};const Me={__name:"index",props:{name:String},setup(r){const c=r,S=t.computed(()=>He.Icons[c.name]);return t.onMounted(()=>{}),(h,a)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.value)))]),_:1})}}},Ee=(r,c,S=0)=>{let h=r;return h!=null&&h.every(a=>Array.isArray(a))&&(h!=null&&h.every(a=>Array.isArray(a)&&a.length===1)?h=h==null?void 0:h.filter(a=>(a==null?void 0:a[0])!==(c==null?void 0:c[S])):h=h==null?void 0:h.map(a=>{if(a!=null&&a.find(l=>l===(c==null?void 0:c[S]))&&(c==null?void 0:c.length)!==1){let l=w.cloneDeep(c),n=a==null?void 0:a.filter(C=>C!==(l==null?void 0:l[S])),I=S+1,M=Ee(n,l,I),b=[];b.push(a==null?void 0:a[0]),M==null||M.forEach(C=>{b.push(C)}),a=b}return a})),h},xe=(r,c,S,h=0)=>{let a=r;return a!=null&&a.every(l=>Array.isArray(l))&&(a!=null&&a.every(l=>Array.isArray(l)&&l.length===1)?a.push([S]):a=a==null?void 0:a.map(l=>{if(l!=null&&l.find(n=>n===(c==null?void 0:c[h]))&&(c==null?void 0:c.length)!==1){let n=w.cloneDeep(c),I=l==null?void 0:l.filter(E=>E!==(n==null?void 0:n[h])),M=h+1,b=xe(I,n,S,M),C=[];C.push(l==null?void 0:l[0]),b==null||b.forEach(E=>{C.push(E)}),l=C}return l})),a},be=(r,c,S,h,a=0)=>{let l=r;return l!=null&&l.every(n=>Array.isArray(n))&&(l!=null&&l.every(n=>Array.isArray(n)&&n.length===1)?l=l==null?void 0:l.map(n=>((n==null?void 0:n[0])===S&&(n=[h]),n)):l=l==null?void 0:l.map(n=>{if(n!=null&&n.find(I=>I===(c==null?void 0:c[a]))&&(c==null?void 0:c.length)!==1){let I=w.cloneDeep(c),M=n==null?void 0:n.filter(L=>L!==(I==null?void 0:I[a])),b=a+1,C=be(M,I,S,h,b),E=[];E.push(n==null?void 0:n[0]),C==null||C.forEach(L=>{E.push(L)}),n=E}return n})),l};function qe(r="menu"){return{name:r,components:{SvgIcon:Ze.SvgIcon,ssMenu:Se,DynamicIcon:Me,ssDialog:me.ssDialog,ssInput:et.ssInput},setup(c,{emit:S}){const h=t.defineProps({mode:{type:String,default:"vertical"}}),a=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),l=w.useMenuState(),n=w.useModelComp(w.pinia),I=w.useLoginState(w.pinia),{loginUserInfo:M}=w.storeToRefs(I),b=t.ref(0),C=tt.useRouter(),E=t.ref(),{asideMenus:L,menuTriggerType:i,platform:ue}=w.storeToRefs(l),{fixMenuStatus:De}=w.storeToRefs(n),{isSuperAdmin:_e}=st.useRole(),Ie=t.computed(()=>h==null?void 0:h.mode),x=o=>o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=x(e.children)),e}),Be=t.computed(()=>{let o=[...L.value];if((o==null?void 0:o.length)===0)return C.push("/"),[];const s=Le(o,$e.value);return s.isFlag||(o=s==null?void 0:s.data),o=o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=x(e.children)),e}),o}),Ae=async(o,s)=>{n.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(o==null?void 0:o.path),l.setActiveAsideMenu(o),o.isRouter?C.push(o.path):C.push("/"),S("node-click",o,s)},Fe=async o=>{const s=lt.findNodeByPropInTree(Be.value,"path",o);l.setActiveAsideMenu(s),n.setRouteToChildPath(""),De.value?n.setFixMenuStatus(!1):(W.value&&(i.value="open"),i.value==="click"?l.setActiveMenuPath(o):W.value||(l.setMenuTriggerType("click"),l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?C.push(o):C.push("/"),b.value++},Ne=o=>{W.value||l.setActiveMenuPath(o)},z=o=>{const s=document.documentElement;o==null||o.forEach(e=>{s.style.setProperty(e.name,e.value)})};t.onMounted(()=>{b.value=1});const $e=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>ue.value,o=>{o==="browser"?z(ge.browserVerticalMenuClasses):o==="client"?(z(ge.clientHorizontalMenuClasses),z(ge.clientVerticalMenuClasses)):o==="three"&&(z(ge.threeHorizontalMenuClasses),z(ge.threeVerticalMenuClasses))},{immediate:!0});const Le=(o,s)=>({isFlag:!0}),U=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Ue=o=>ot.getComponent(o),je=t.ref({}),Re=t.ref([]),Y=t.ref({}),J=t.ref({}),Pe=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},we=t.ref({}),Oe=o=>{l.setCacheInputMenu({type:U.type,data:o}),l.setIsRefreshMenus(!0)},Ke=async(o,s,e)=>{var p,v,k,R,B,G,A,Z,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce;if(s==="create"){let F=(e==null?void 0:e.title)+"(1)",$=(v=(p=e==null?void 0:e.path)==null?void 0:p.split("/"))==null?void 0:v.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}),N=await ke.getItemData((B=(R=(k=e==null?void 0:e.path)==null?void 0:k.split("/"))==null?void 0:R.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:B.join("/"),sessionStorage.getItem("systemKey"),"");if($.push(F),$=$==null?void 0:$.join("/"),(N==null?void 0:N.length)>0){let D=N==null?void 0:N[0],y=(A=(G=D==null?void 0:D.compData)==null?void 0:G.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:A.contents;if(((Z=y==null?void 0:y[0])==null?void 0:Z.directiveLabel)==="#isMain"){let u=(H=y==null?void 0:y[0])==null?void 0:H.prop,T=(ee=(m=D==null?void 0:D.compData)==null?void 0:m.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:ee.contents,P;T==null||T.forEach(_=>{var O,j;if(_.length===1)((O=_==null?void 0:_[0])==null?void 0:O[u])===(e==null?void 0:e.title)&&(P=_==null?void 0:_[0],P[u]=F);else{let d=(j=y==null?void 0:y.filter(f=>f!=="操作"))==null?void 0:j.map(f=>f==null?void 0:f.prop),V=_==null?void 0:_.filter(f=>!(f!=null&&f.id)),q=ke.getValueToObjectValue(V,d);q[u]=F,P=q}}),await K.createInsofDataApi({key:{type:"data",pageKey:(le=(oe=(te=e==null?void 0:e.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((_,O)=>{var j,d;return O!==((d=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:d.length)-1}))==null?void 0:le.join("/"),tableId:D==null?void 0:D.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(se=M.value)==null?void 0:se.id,createUserLayer:((ie=M.value)==null?void 0:ie.dept)||((ae=M.value)==null?void 0:ae.部门名称)},value:{tableData:P}})}}await ke.newLoadingConstruct(e==null?void 0:e.path,$),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ce=(ne=(re=e==null?void 0:e.path)==null?void 0:re.split("/"))==null?void 0:ne.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:ce.join("/")),l.setActiveTopMenuPath((de=(pe=e==null?void 0:e.path)==null?void 0:pe.split("/"))==null?void 0:de[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}else if(s==="update")E.value=e;else if(s==="delete"){let F=[];(F==null?void 0:F.length)>0&&await K.batchDeleteInsofDataApi({ids:F}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ve=(fe=(he=e==null?void 0:e.path)==null?void 0:he.split("/"))==null?void 0:fe.filter(($,N)=>{var D,y;return N!==((y=(D=e==null?void 0:e.path)==null?void 0:D.split("/"))==null?void 0:y.length)-1}))==null?void 0:ve.join("/")),l.setActiveTopMenuPath((Ce=(ye=e==null?void 0:e.path)==null?void 0:ye.split("/"))==null?void 0:Ce[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},ze=async(o,s)=>{var Z,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,F,$,N,D,y,u,T,P,_,O,j;let e=await K.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=(H=(Z=e==null?void 0:e.data)==null?void 0:Z.result)==null?void 0:H[0],v=(m=p==null?void 0:p.value)==null?void 0:m.pageData;v.compData=(ee=v.compData)==null?void 0:ee.map(d=>{var V,q;return(d==null?void 0:d.key)==="menuContents"&&(d.contents=be(d.contents,(V=s==null?void 0:s.path)==null?void 0:V.split("/"),s==null?void 0:s.title,(q=o==null?void 0:o.target)==null?void 0:q.value)),d}),p!=null&&p.id&&await K.updateInsofDataApi({id:p==null?void 0:p.id,value:{pageData:v}});let k=(oe=(te=s==null?void 0:s.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((d,V)=>{var q,f;return V!==((f=(q=s==null?void 0:s.path)==null?void 0:q.split("/"))==null?void 0:f.length)-1}),R=k==null?void 0:k.join("/");k.push((le=o==null?void 0:o.target)==null?void 0:le.value),k=k==null?void 0:k.join("/");let B=await ke.getItemData(R,sessionStorage.getItem("systemKey"),"");if(((ne=(re=(ae=(ie=(se=B==null?void 0:B[0])==null?void 0:se.compData)==null?void 0:ie.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ae.contents)==null?void 0:re[0])==null?void 0:ne.directiveLabel)==="#isMain"){let d=(fe=(he=(de=(pe=(ce=B==null?void 0:B[0])==null?void 0:ce.compData)==null?void 0:pe.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:de.contents)==null?void 0:he[0])==null?void 0:fe.prop,V=(Ce=(ye=(ve=B==null?void 0:B[0])==null?void 0:ve.compData)==null?void 0:ye.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:Ce.contents,q=(D=(N=($=(F=B==null?void 0:B[0])==null?void 0:F.compData)==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:N.contents)==null?void 0:D.map(g=>g==null?void 0:g.prop),f;if(V==null||V.forEach(g=>{var X;let Q=ke.getValueToObjectValue(g,q);(Q==null?void 0:Q[d])===s.title&&(f=Q,f[d]=(X=o==null?void 0:o.target)==null?void 0:X.value)}),f){let g={};for(let X in f)X!=="id"&&(g[X]=f==null?void 0:f[X]);let Q=[{id:f==null?void 0:f.id,value:{tableData:g}}];await K.batchUpdateInsofDataApi({dataList:Q})}}let G=await K.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:s==null?void 0:s.path}}),A=(u=(y=G==null?void 0:G.data)==null?void 0:y.result)==null?void 0:u.map(d=>({id:d==null?void 0:d.id,key:d==null?void 0:d.key}));A=A==null?void 0:A.map(d=>(d.key.pageKey=k,d)),(A==null?void 0:A.length)>0&&await K.batchUpdateInsofDataApi({dataList:A}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((_=(P=(T=s==null?void 0:s.path)==null?void 0:T.split("/"))==null?void 0:P.filter((d,V)=>{var q,f;return V!==((f=(q=s==null?void 0:s.path)==null?void 0:q.split("/"))==null?void 0:f.length)-1}))==null?void 0:_.join("/")),l.setActiveTopMenuPath((j=(O=s==null?void 0:s.path)==null?void 0:O.split("/"))==null?void 0:j[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),E.value=void 0},Je=async(o,s)=>{U.type=Pe(s==null?void 0:s.operateType),await Ke(s,U.type,o),J.value=o,we.value=s},We=()=>{U.show=!1},Ge=o=>o==null?void 0:o.filter(s=>s.allowInherit),Qe=()=>{var e,p,v,k,R;let o;U.type==="create"&&(o=((e=J.value)==null?void 0:e.path)+"/"+Y.value[(p=Y.value)==null?void 0:p.prop]),U.type==="update"&&(o=(v=J.value)==null?void 0:v.path);const s={...J.value,config:Ge((k=J.value)==null?void 0:k.config),children:[],childMenus:[],title:Y.value[(R=Y.value)==null?void 0:R.prop],path:o};console.log("clickSubmitForm",we.value,J.value,s),Oe(s),U.show=!1},Xe=o=>{var e,p;const s=(e=o==null?void 0:o.contents)==null?void 0:e.find(v=>v.key==="formContent");s&&(Y.value=(p=s==null?void 0:s.contents)==null?void 0:p.reduce((v,k)=>(v[k.key]=k.value,v.prop=k.key,v),{}))},W=t.ref(!1),Ye=()=>{W.value=!W.value},Te=t.ref(null);return t.watch(()=>L.value,async o=>{var s,e;if(o){await t.nextTick();const p=o==null?void 0:o[0];if(((s=p==null?void 0:p.children)==null?void 0:s.length)>0){const v=p==null?void 0:p.path;Te.value&&((e=Te.value)==null||e.openMenuRefByIndex(v))}else l.setActiveMenuPath((p==null?void 0:p.path)??"")}},{immediate:!0}),{menuRef:Te,isCollapse:W,handleMenuCollapse:Ye,handleCompChange:Xe,dialogForm:je,dialogRenderComps:Re,getComponents:Ue,clickSubmitForm:Qe,dialogInfo:U,beforeDialogDestroy:We,clickMenuIcon:Je,mode:Ie,renderMenuList:Be,clickMenu:Ae,openMenu:Fe,closeMenu:Ne,changeMenuStyle:z,fixElement:E,onBlur:ze,isSuperAdmin:_e}}}}const at=t.defineComponent(qe()),rt=["title"],nt={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},ct={key:2,class:"menu-operate-icon"},pt={class:"menu-config-wrap"},dt=["onClick"],ht={class:"module-dialog-content"};function ft(r,c,S,h,a,l){var L;const n=t.resolveComponent("ss-input"),I=t.resolveComponent("svg-icon"),M=t.resolveComponent("el-popover"),b=t.resolveComponent("ss-menu"),C=t.resolveComponent("el-button"),E=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(b,{ref:"menuRef",class:"vertical-menu",mode:r.mode,menuList:r.renderMenuList,isCollapse:r.isCollapse,uniqueOpened:!0,onClickMenu:r.clickMenu,onOpenMenu:r.openMenu,onCloseMenu:r.closeMenu},{title:t.withCtx(({menu:i})=>{var ue,De,_e,Ie;return[!r.fixElement||(i==null?void 0:i.path)!==((ue=r.fixElement)==null?void 0:ue.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:i.title,class:"menu-title",style:t.normalizeStyle({marginRight:i!=null&&i.config&&((De=i==null?void 0:i.config)==null?void 0:De.length)>0?"25px":"1px"})},t.toDisplayString(i.title??""),13,rt)):t.createCommentVNode("",!0),r.fixElement&&(i==null?void 0:i.path)===((_e=r.fixElement)==null?void 0:_e.path)?(t.openBlock(),t.createElementBlock("span",nt,[t.createVNode(n,{value:i.title,onBlur:x=>r.onBlur(x,i)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),i!=null&&i.config&&((Ie=i==null?void 0:i.config)==null?void 0:Ie.length)>0&&r.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",ct,[t.createVNode(M,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(I,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",pt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i==null?void 0:i.config,x=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:x.id,onClick:Be=>r.clickMenuIcon(i,x)},[t.createVNode(I,{name:x==null?void 0:x.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(x==null?void 0:x.operateType),1)],8,dt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((L=r.renderMenuList)==null?void 0:L.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:c[0]||(c[0]=(...i)=>r.handleMenuCollapse&&r.handleMenuCollapse(...i))},[t.createVNode(I,{name:r.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(E,{class:"module-dialog",title:r.dialogInfo.title,visible:r.dialogInfo.show,width:r.dialogInfo.width,onBeforeDestroy:r.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",ht,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.dialogRenderComps,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.getComponents((i==null?void 0:i.comp)??"Input")),{itemData:i==null?void 0:i.compData,key:i==null?void 0:i.id,content:(i==null?void 0:i.contents)??[],config:i==null?void 0:i.config,onContentChange:r.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(C,{id:"themeBorderButton",onClick:r.beforeDialogDestroy},{default:t.withCtx(()=>c[1]||(c[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(C,{id:"themeButton",onClick:r.clickSubmitForm},{default:t.withCtx(()=>c[2]||(c[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Ve=it._export_sfc(at,[["render",ft],["__scopeId","data-v-a385ba2f"]]),vt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:xe,default:Ve,deleteSelectMenu:Ee,fixSelectMenu:be,setComponent:qe},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Me;exports.index=vt;exports.ssMenu=Se;exports.ssVMenu=Ve;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as p, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
2
- import { S as I, t as x, s as w, a as L } from "./index-DgTbfgjE.js";
2
+ import { S as I, t as x, s as w, a as L } from "./index-CJow9MRO.js";
3
3
  import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BUMDcqtn.js";
4
4
  import "./index-BHtNKL1L.js";
5
- import { e as E } from "./index-C-rFa3VT.js";
5
+ import { e as E } from "./index-CgMsDp37.js";
6
6
  import "./index-BF5SUWUn.js";
7
7
  import { b as N, s as U } from "./index-BK-oz1IK.js";
8
8
  import "./request-XJsZ4h2T.js";
@@ -1,5 +1,5 @@
1
1
  import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
2
- import { W as C } from "./index-DbPbr5TD.js";
2
+ import { W as C } from "./index-BOz_MAHK.js";
3
3
  import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const b = () => {
5
5
  const i = l("日志管理"), o = l(), a = l([
@@ -4,16 +4,16 @@ import { S as Tt } from "./index-BHtNKL1L.js";
4
4
  import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BUMDcqtn.js";
5
5
  import { I as Mt } from "./request-XJsZ4h2T.js";
6
6
  import { s as wt } from "./index-11kpzK0A.js";
7
- import { c as ut } from "./index-C-rFa3VT.js";
7
+ import { c as ut } from "./index-CgMsDp37.js";
8
8
  import { useRouter as At } from "vue-router";
9
9
  import { a as Bt, e as Et, f as Ft, g as Lt, h as Ut } from "./index-ChNfRlIP.js";
10
10
  import { g as qe, u as jt, b as Je, c as Pt, a as Ot } from "./index-DUq4XELr.js";
11
- import { g as Rt } from "./index-DbPbr5TD.js";
11
+ import { g as Rt } from "./index-BOz_MAHK.js";
12
12
  import { f as Kt } from "./menuIndex-CPrSvY9F.js";
13
13
  import { c as We, d as Ge, n as $t } from "./index-BF5SUWUn.js";
14
14
  import { u as zt } from "./index-BTgKT-Kp.js";
15
15
  import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Ue = yt(() => import("./index-C-rFa3VT.js").then((i) => i.p));
16
+ const Ue = yt(() => import("./index-CgMsDp37.js").then((i) => i.p));
17
17
  Ue.install = (i) => {
18
18
  i.component("ssMenu", Ue);
19
19
  };