ss-component-new 1.3.478 → 1.3.480

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-Byr5bNn8.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-CMUsYepp.cjs");require("./index-B7964G2F.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-DKh4EyHV.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-DUkp4ZQk.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BAsHBLV9.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D8TN_LEZ.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BXZ5rAo2.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BLCDNmVk.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Bn_H21fe.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-Boe7qRNS.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-eV1nqK_z.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),q=[r,i,c,l,m,u,a,h,f],P=e=>{q.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=P;exports.platformApi=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-Byr5bNn8.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-CMUsYepp.cjs");require("./index-B7964G2F.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-DKh4EyHV.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-DUkp4ZQk.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BAsHBLV9.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Bx4_opNC.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BXZ5rAo2.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BLCDNmVk.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Bn_H21fe.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-Boe7qRNS.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-eV1nqK_z.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),q=[r,i,c,l,m,u,a,h,f],P=e=>{q.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=P;exports.platformApi=T;
@@ -15,7 +15,7 @@ const s = o(() => import("./index-CeP6fhJc.js").then((t) => t.q));
15
15
  s.install = (t) => {
16
16
  t.component("ssTab", s);
17
17
  };
18
- const r = o(() => import("./index-JW1bo4Ef.js").then((t) => t.i));
18
+ const r = o(() => import("./index-BFxv4IR-.js").then((t) => t.i));
19
19
  r.install = (t) => {
20
20
  t.component("ssMenu", r);
21
21
  };
@@ -1 +1 @@
1
- "use strict";const n=require("vue-router"),t=[{path:"/tenant",name:"Tenant",component:async()=>Promise.resolve().then(()=>require("./index-aYsnw0xY.cjs"))},{path:"/login",name:"Login",component:async()=>Promise.resolve().then(()=>require("./index-DwVrxTC1.cjs"))},{path:"/",name:"Model",component:async()=>Promise.resolve().then(()=>require("./index-DIukLdKX.cjs")),children:[{path:"系统配置/站内信",name:"Message",component:async()=>Promise.resolve().then(()=>require("./index-DPIg2S6M.cjs"))},{path:"系统配置/自动生成",name:"Automatic",component:async()=>Promise.resolve().then(()=>require("./index-B2BAJXIH.cjs"))},{path:"平台管理/菜单管理",name:"Menu",component:async()=>Promise.resolve().then(()=>require("./index-D-4qtOLZ.cjs"))},{path:"平台管理/主菜单管理",name:"MainMenu",component:async()=>Promise.resolve().then(()=>require("./index-BIarUBh3.cjs"))},{path:"系统管理/个人中心",name:"PersonalCenter",component:async()=>Promise.resolve().then(()=>require("./index-DhYB0JA5.cjs"))},{path:"系统维护/登录日志",name:"LoginLog",component:async()=>Promise.resolve().then(()=>require("./index-C1CYcu7q.cjs"))},{path:"系统维护/操作日志",name:"OperateLog",component:async()=>Promise.resolve().then(()=>require("./index-CsRZ0i07.cjs"))},{path:"角色管理",name:"Role",component:async()=>Promise.resolve().then(()=>require("./index-BPNwGIHv.cjs"))},{path:"部门管理",name:"Department",component:async()=>Promise.resolve().then(()=>require("./index-ClhL7VZf.cjs"))},{path:"职位管理",name:"Position",component:async()=>Promise.resolve().then(()=>require("./index-T0lYm3bF.cjs"))},{path:"个人中心",name:"PersonalCenter",component:async()=>Promise.resolve().then(()=>require("./index-CAcprKxu.cjs"))},{path:"log",name:"log",component:async()=>Promise.resolve().then(()=>require("./index-BBoQVqN7.cjs"))}]}],o=n.createRouter({history:n.createWebHashHistory(),routes:t});o.beforeEach((r,s,e)=>{!sessionStorage.getItem("loginToken")&&r.path!=="/login"?e("/login"):e()});module.exports=o;
1
+ "use strict";const n=require("vue-router"),t=[{path:"/tenant",name:"Tenant",component:async()=>Promise.resolve().then(()=>require("./index-aYsnw0xY.cjs"))},{path:"/login",name:"Login",component:async()=>Promise.resolve().then(()=>require("./index-DwVrxTC1.cjs"))},{path:"/",name:"Model",component:async()=>Promise.resolve().then(()=>require("./index-DYm_0Gjd.cjs")),children:[{path:"系统配置/站内信",name:"Message",component:async()=>Promise.resolve().then(()=>require("./index-DPIg2S6M.cjs"))},{path:"系统配置/自动生成",name:"Automatic",component:async()=>Promise.resolve().then(()=>require("./index-B2BAJXIH.cjs"))},{path:"平台管理/菜单管理",name:"Menu",component:async()=>Promise.resolve().then(()=>require("./index-D-4qtOLZ.cjs"))},{path:"平台管理/主菜单管理",name:"MainMenu",component:async()=>Promise.resolve().then(()=>require("./index-BIarUBh3.cjs"))},{path:"系统管理/个人中心",name:"PersonalCenter",component:async()=>Promise.resolve().then(()=>require("./index-DhYB0JA5.cjs"))},{path:"系统维护/登录日志",name:"LoginLog",component:async()=>Promise.resolve().then(()=>require("./index-C1CYcu7q.cjs"))},{path:"系统维护/操作日志",name:"OperateLog",component:async()=>Promise.resolve().then(()=>require("./index-CsRZ0i07.cjs"))},{path:"角色管理",name:"Role",component:async()=>Promise.resolve().then(()=>require("./index-BPNwGIHv.cjs"))},{path:"部门管理",name:"Department",component:async()=>Promise.resolve().then(()=>require("./index-ClhL7VZf.cjs"))},{path:"职位管理",name:"Position",component:async()=>Promise.resolve().then(()=>require("./index-T0lYm3bF.cjs"))},{path:"个人中心",name:"PersonalCenter",component:async()=>Promise.resolve().then(()=>require("./index-CAcprKxu.cjs"))},{path:"log",name:"log",component:async()=>Promise.resolve().then(()=>require("./index-BBoQVqN7.cjs"))}]}],o=n.createRouter({history:n.createWebHashHistory(),routes:t});o.beforeEach((r,s,e)=>{!sessionStorage.getItem("loginToken")&&r.path!=="/login"?e("/login"):e()});module.exports=o;
@@ -13,7 +13,7 @@ const a = [
13
13
  {
14
14
  path: "/",
15
15
  name: "Model",
16
- component: async () => import("./index-4dupsHwD.js"),
16
+ component: async () => import("./index-Bi1oVfaF.js"),
17
17
  // component: async ()=>import('@/components/views/model/component/main.vue'),
18
18
  // component: async ()=>import('@/components/views/canvas/index.vue'),
19
19
  // component: async ()=>import('@/components/views/test/index.vue'),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ss-component-new",
3
3
  "private": false,
4
- "version": "1.3.478",
4
+ "version": "1.3.480",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),w=require("./index-CMUsYepp.cjs"),He=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-Byr5bNn8.cjs");const me=require("./request-Dl8yi2iS.cjs"),et=require("./index-B-pflqKE.cjs"),tt=require("./index-BAsHBLV9.cjs"),ot=require("vue-router"),ke=require("./index-DKh4EyHV.cjs"),z=require("./index-DmwxzDGW.cjs"),lt=require("./index-C1kHWH8t.cjs"),st=require("./menuIndex-CBqMx085.cjs"),ue=require("./index-B7964G2F.cjs"),it=require("./index-DXiuTpL6.cjs"),at=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BAsHBLV9.cjs")).then(r=>r.index));Se.install=r=>{r.component("ssMenu",Se)};const Ee={__name:"index",props:{name:String},setup(r){const c=r,S=t.computed(()=>me.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})}}},xe=(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=xe(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},qe=(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=qe(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 Ve(r="menu"){return{name:r,components:{SvgIcon:He.SvgIcon,ssMenu:Se,DynamicIcon:Ee,ssDialog:et.ssDialog,ssInput:tt.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=ot.useRouter(),E=t.ref(),{asideMenus:L,menuTriggerType:i,platform:De,jumpMenuInform:j}=w.storeToRefs(l),{fixMenuStatus:_e}=w.storeToRefs(n),{isSuperAdmin:Ie}=it.useRole(),q=t.computed(()=>h==null?void 0:h.mode),Be=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=Be(e.children)),e}),we=t.computed(()=>{let o=[...L.value];if((o==null?void 0:o.length)===0)return C.push("/"),[];const s=Ue(o,Le.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=Be(e.children)),e}),o}),Fe=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)},Ne=async o=>{const s=st.findNodeByPropInTree(we.value,"path",o);l.setActiveAsideMenu(s),n.setRouteToChildPath(""),_e.value?n.setFixMenuStatus(!1):(G.value&&(i.value="open"),i.value==="click"?l.setActiveMenuPath(o):G.value||(l.setMenuTriggerType("click"),j.value||l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?C.push(o):C.push("/"),b.value++},$e=o=>{G.value||l.setActiveMenuPath(o)},J=o=>{const s=document.documentElement;o==null||o.forEach(e=>{s.style.setProperty(e.name,e.value)})};t.onMounted(()=>{b.value=1});const Le=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>De.value,o=>{o==="browser"?J(ke.browserVerticalMenuClasses):o==="client"?(J(ke.clientHorizontalMenuClasses),J(ke.clientVerticalMenuClasses)):o==="three"&&(J(ke.threeHorizontalMenuClasses),J(ke.threeVerticalMenuClasses))},{immediate:!0});const Ue=(o,s)=>({isFlag:!0}),U=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Re=o=>lt.getComponent(o),je=t.ref({}),Pe=t.ref([]),Z=t.ref({}),W=t.ref({}),Oe=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Me=t.ref({}),Ke=o=>{l.setCacheInputMenu({type:U.type,data:o}),l.setIsRefreshMenus(!0)},ze=async(o,s,e)=>{var p,v,k,P,B,Q,A,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,ge;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 ue.getItemData((B=(P=(k=e==null?void 0:e.path)==null?void 0:k.split("/"))==null?void 0:P.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=(Q=D==null?void 0:D.compData)==null?void 0:Q.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:A.contents;if(((H=y==null?void 0:y[0])==null?void 0:H.directiveLabel)==="#isMain"){let u=(m=y==null?void 0:y[0])==null?void 0:m.prop,T=(te=(ee=D==null?void 0:D.compData)==null?void 0:ee.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:te.contents,O;T==null||T.forEach(_=>{var K,R;if(_.length===1)((K=_==null?void 0:_[0])==null?void 0:K[u])===(e==null?void 0:e.title)&&(O=_==null?void 0:_[0],O[u]=F);else{let d=(R=y==null?void 0:y.filter(f=>f!=="操作"))==null?void 0:R.map(f=>f==null?void 0:f.prop),V=_==null?void 0:_.filter(f=>!(f!=null&&f.id)),x=ue.getValueToObjectValue(V,d);x[u]=F,O=x}}),await z.createInsofDataApi({key:{type:"data",pageKey:(se=(le=(oe=e==null?void 0:e.path)==null?void 0:oe.split("/"))==null?void 0:le.filter((_,K)=>{var R,d;return K!==((d=(R=e==null?void 0:e.path)==null?void 0:R.split("/"))==null?void 0:d.length)-1}))==null?void 0:se.join("/"),tableId:D==null?void 0:D.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(ie=M.value)==null?void 0:ie.id,createUserLayer:((ae=M.value)==null?void 0:ae.dept)||((re=M.value)==null?void 0:re.部门名称)},value:{tableData:O}})}}await ue.newLoadingConstruct(e==null?void 0:e.path,$),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((pe=(ce=(ne=e==null?void 0:e.path)==null?void 0:ne.split("/"))==null?void 0:ce.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:pe.join("/")),l.setActiveTopMenuPath((he=(de=e==null?void 0:e.path)==null?void 0:de.split("/"))==null?void 0:he[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 z.batchDeleteInsofDataApi({ids:F}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ye=(ve=(fe=e==null?void 0:e.path)==null?void 0:fe.split("/"))==null?void 0:ve.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:ye.join("/")),l.setActiveTopMenuPath((ge=(Ce=e==null?void 0:e.path)==null?void 0:Ce.split("/"))==null?void 0:ge[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},Je=async(o,s)=>{var H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,ge,F,$,N,D,y,u,T,O,_,K,R;let e=await z.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=(m=(H=e==null?void 0:e.data)==null?void 0:H.result)==null?void 0:m[0],v=(ee=p==null?void 0:p.value)==null?void 0:ee.pageData;v.compData=(te=v.compData)==null?void 0:te.map(d=>{var V,x;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,(x=o==null?void 0:o.target)==null?void 0:x.value)),d}),p!=null&&p.id&&await z.updateInsofDataApi({id:p==null?void 0:p.id,value:{pageData:v}});let k=(le=(oe=s==null?void 0:s.path)==null?void 0:oe.split("/"))==null?void 0:le.filter((d,V)=>{var x,f;return V!==((f=(x=s==null?void 0:s.path)==null?void 0:x.split("/"))==null?void 0:f.length)-1}),P=k==null?void 0:k.join("/");k.push((se=o==null?void 0:o.target)==null?void 0:se.value),k=k==null?void 0:k.join("/");let B=await ue.getItemData(P,sessionStorage.getItem("systemKey"),"");if(((ce=(ne=(re=(ae=(ie=B==null?void 0:B[0])==null?void 0:ie.compData)==null?void 0:ae.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:re.contents)==null?void 0:ne[0])==null?void 0:ce.directiveLabel)==="#isMain"){let d=(ve=(fe=(he=(de=(pe=B==null?void 0:B[0])==null?void 0:pe.compData)==null?void 0:de.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:he.contents)==null?void 0:fe[0])==null?void 0:ve.prop,V=(ge=(Ce=(ye=B==null?void 0:B[0])==null?void 0:ye.compData)==null?void 0:Ce.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:ge.contents,x=(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 Y;let X=ue.getValueToObjectValue(g,x);(X==null?void 0:X[d])===s.title&&(f=X,f[d]=(Y=o==null?void 0:o.target)==null?void 0:Y.value)}),f){let g={};for(let Y in f)Y!=="id"&&(g[Y]=f==null?void 0:f[Y]);let X=[{id:f==null?void 0:f.id,value:{tableData:g}}];await z.batchUpdateInsofDataApi({dataList:X})}}let Q=await z.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:s==null?void 0:s.path}}),A=(u=(y=Q==null?void 0:Q.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 z.batchUpdateInsofDataApi({dataList:A}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((_=(O=(T=s==null?void 0:s.path)==null?void 0:T.split("/"))==null?void 0:O.filter((d,V)=>{var x,f;return V!==((f=(x=s==null?void 0:s.path)==null?void 0:x.split("/"))==null?void 0:f.length)-1}))==null?void 0:_.join("/")),l.setActiveTopMenuPath((R=(K=s==null?void 0:s.path)==null?void 0:K.split("/"))==null?void 0:R[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),E.value=void 0},We=async(o,s)=>{U.type=Oe(s==null?void 0:s.operateType),await ze(s,U.type,o),W.value=o,Me.value=s},Ge=()=>{U.show=!1},Qe=o=>o==null?void 0:o.filter(s=>s.allowInherit),Xe=()=>{var e,p,v,k,P;let o;U.type==="create"&&(o=((e=W.value)==null?void 0:e.path)+"/"+Z.value[(p=Z.value)==null?void 0:p.prop]),U.type==="update"&&(o=(v=W.value)==null?void 0:v.path);const s={...W.value,config:Qe((k=W.value)==null?void 0:k.config),children:[],childMenus:[],title:Z.value[(P=Z.value)==null?void 0:P.prop],path:o};console.log("clickSubmitForm",Me.value,W.value,s),Ke(s),U.show=!1},Ye=o=>{var e,p;const s=(e=o==null?void 0:o.contents)==null?void 0:e.find(v=>v.key==="formContent");s&&(Z.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),{}))},G=t.ref(!1),Ze=()=>{G.value=!G.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 j!=null&&j.value?l.setJumpMenuInform(!1):l.setActiveMenuPath((p==null?void 0:p.path)??"")}},{immediate:!0}),{menuRef:Te,isCollapse:G,handleMenuCollapse:Ze,handleCompChange:Ye,dialogForm:je,dialogRenderComps:Pe,getComponents:Re,clickSubmitForm:Xe,dialogInfo:U,beforeDialogDestroy:Ge,clickMenuIcon:We,mode:q,renderMenuList:we,clickMenu:Fe,openMenu:Ne,closeMenu:$e,changeMenuStyle:J,fixElement:E,onBlur:Je,isSuperAdmin:Ie}}}}const rt=t.defineComponent(Ve()),nt=["title"],ct={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},pt={key:2,class:"menu-operate-icon"},dt={class:"menu-config-wrap"},ht=["onClick"],ft={class:"module-dialog-content"};function vt(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 De,j,_e,Ie;return[!r.fixElement||(i==null?void 0:i.path)!==((De=r.fixElement)==null?void 0:De.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:i.title,class:"menu-title",style:t.normalizeStyle({marginRight:i!=null&&i.config&&((j=i==null?void 0:i.config)==null?void 0:j.length)>0?"25px":"1px"})},t.toDisplayString(i.title??""),13,nt)):t.createCommentVNode("",!0),r.fixElement&&(i==null?void 0:i.path)===((_e=r.fixElement)==null?void 0:_e.path)?(t.openBlock(),t.createElementBlock("span",ct,[t.createVNode(n,{value:i.title,onBlur:q=>r.onBlur(q,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",pt,[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",dt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i==null?void 0:i.config,q=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:q.id,onClick:Be=>r.clickMenuIcon(i,q)},[t.createVNode(I,{name:q==null?void 0:q.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(q==null?void 0:q.operateType),1)],8,ht))),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",ft,[(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 Ae=at._export_sfc(rt,[["render",vt],["__scopeId","data-v-a385ba2f"]]),yt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:qe,default:Ae,deleteSelectMenu:xe,fixSelectMenu:be,setComponent:Ve},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Ee;exports.index=yt;exports.ssMenu=Se;exports.ssVMenu=Ae;