ss-component-new 1.3.340 → 1.3.342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-C-XJYnXR.js → MTLLoader-Ajg9K91w.js} +1 -1
- package/dist/{MTLLoader-Dx_OCevv.cjs → MTLLoader-PBhLgTVu.cjs} +1 -1
- package/dist/{OrbitControls-B55yzIKX.cjs → OrbitControls-C10-pt6H.cjs} +1 -1
- package/dist/{OrbitControls-BB87FyuR.js → OrbitControls-CgEewitL.js} +1 -1
- package/dist/{URDFLoader-Uh4bBb-n.cjs → URDFLoader-Bj47zJKE.cjs} +1 -1
- package/dist/{URDFLoader-DgP2bMhH.js → URDFLoader-CvMjtZ-x.js} +2 -2
- package/dist/{animationData-CF6benhM.js → animationData-BLdkUJ2X.js} +3 -3
- package/dist/{animationData-BfEyrEkb.cjs → animationData-D9-6Rod5.cjs} +1 -1
- package/dist/array-D7Bu5gb2.cjs +1 -0
- package/dist/{array-Dz0LlM28.js → array-DKwq_BSC.js} +38 -39
- package/dist/clone-BUCnBgnS.js +8 -0
- package/dist/clone-y_gmwkJo.cjs +1 -0
- package/dist/day-BNr9Td9D.cjs +7 -0
- package/dist/day-BV-VjzXX.js +2382 -0
- package/dist/{dayjs.min-bC5IyY3C.js → dayjs.min-B8ub8S6d.js} +4 -4
- package/dist/{dayjs.min-CSW85jLQ.cjs → dayjs.min-Bo5ALhPO.cjs} +1 -1
- package/dist/{iconfont-DV-mBuRs.js → iconfont-Cl-SDAtC.js} +2 -2
- package/dist/{iconfont-rvMUQHIL.cjs → iconfont-DpN6kvUK.cjs} +1 -1
- package/dist/index-6iwwUgL6.cjs +104 -0
- package/dist/{index-Dcp8sI4C.js → index-9V23Nn2F.js} +4 -4
- package/dist/index-9WLF0N-m.cjs +15 -0
- package/dist/{index-Ca3THBbJ.cjs → index-B0V9Wfze.cjs} +1 -1
- package/dist/index-B0cDSro0.cjs +1 -0
- package/dist/index-B4Yau3Cx.cjs +1 -0
- package/dist/index-B4u9cnxn.cjs +1 -0
- package/dist/{index-rW-jQkgq.js → index-B4yv_CI9.js} +9 -10
- package/dist/index-B5u9ckAG.cjs +1 -0
- package/dist/{index-C6gCT4vd.js → index-BGRqQYv0.js} +70 -71
- package/dist/{index-CbBP02RV.js → index-BLHM2RZs.js} +4 -4
- package/dist/{index-C4NN-IA4.js → index-BMt9iXGt.js} +16 -17
- package/dist/index-BO9LCv0L.js +327 -0
- package/dist/index-BTpsNI8m.cjs +1 -0
- package/dist/index-Bb9xuBcN.cjs +1 -0
- package/dist/{index-CHAqLCtD.js → index-Bieh0oMN.js} +8 -8
- package/dist/{index-BWpqDCVF.cjs → index-Bl1R6hLx.cjs} +1 -1
- package/dist/index-BndWdAyT.js +168 -0
- package/dist/index-BqtZ8oXB.cjs +1 -0
- package/dist/{index-CHIMUYG3.js → index-BxSJzmcq.js} +16 -17
- package/dist/{index-D0gKkud0.js → index-C3_fcg5b.js} +8 -20
- package/dist/{index-BSCoLGXF.js → index-CLasTJZ7.js} +318 -318
- package/dist/{index-0VkKesv_.js → index-CPuSbD0o.js} +13 -14
- package/dist/{index-DGwbEHLN.js → index-CUmttoQs.js} +6 -7
- package/dist/index-CWea8Hwx.cjs +2 -0
- package/dist/index-Cjsv9UB2.cjs +1 -0
- package/dist/{index-CHnN0kSC.js → index-CkJ5sZmH.js} +268 -279
- package/dist/{index-BPpYDffY.cjs → index-CyAk6NlY.cjs} +1 -1
- package/dist/index-Cz8oXtNa.cjs +1 -0
- package/dist/index-D0D-8tq3.cjs +1 -0
- package/dist/index-D28carCM.cjs +25 -0
- package/dist/{index-Ijbw1FIL.js → index-D2iun0qB.js} +18 -19
- package/dist/{index-BTgJ9oD-.cjs → index-D8TKh-Ur.cjs} +1 -1
- package/dist/index-DBl4_nFE.cjs +1 -0
- package/dist/{index-DMt7y2yA.js → index-DCBM-gqv.js} +104 -113
- package/dist/{index-COowXWF7.cjs → index-DCHyRwyR.cjs} +1 -1
- package/dist/index-DDz6oLBR.cjs +1 -0
- package/dist/{index-DWP-FYxV.js → index-DGaoFZNU.js} +13 -14
- package/dist/index-DJ3sA4Gm.cjs +1 -0
- package/dist/{index-c1EWDQO1.js → index-DKYHED4o.js} +1 -1
- package/dist/{index-CYgpY06q.js → index-DScuDjxN.js} +4 -4
- package/dist/{index-voXPz7Hq.js → index-DaHM_OEL.js} +251 -260
- package/dist/{index-S2ChvJMP.js → index-Dd6fkS6a.js} +1 -1
- package/dist/{index-D6Zkrpou.js → index-DehN_tZl.js} +13 -14
- package/dist/index-DfxDifWX.cjs +1 -0
- package/dist/{index-Bdh2uHRO.js → index-DimgHus_.js} +44 -45
- package/dist/index-DkR9zIgE.cjs +1 -0
- package/dist/index-DlDpjgK7.cjs +1 -0
- package/dist/{index-DN4OcDlg.js → index-Dmstdf9f.js} +1 -1
- package/dist/index-Ds0ibmGw.cjs +1 -0
- package/dist/{index-DLLST1Nd.js → index-DsfZZrDe.js} +11 -12
- package/dist/{index-Zvul3j_r.cjs → index-Dw5QRbm2.cjs} +1 -1
- package/dist/index-Dz06Dix4.js +21 -0
- package/dist/{index-C3lScvOV.cjs → index-Pmf6bCKe.cjs} +1 -1
- package/dist/index-_aEslAdL.cjs +1 -0
- package/dist/index-bs1KW4Mf.js +10008 -0
- package/dist/{index-CgjHHxqY.js → index-czdl81QC.js} +6 -7
- package/dist/index-fxwUfoBD.cjs +1 -0
- package/dist/index-jFQKdLGf.cjs +1 -0
- package/dist/{index-DyJCopUt.js → index-pfsYhNVv.js} +3 -4
- package/dist/index-qyNzhZ9p.js +68 -0
- package/dist/{index-9nQLsFiY.js → index-zwvfPNTm.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CHrvpoVb.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BDgIVZve.js} +1950 -1956
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dyd5heHe.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DAAbs6bU.cjs} +336 -336
- package/dist/main-BrOVZokA.cjs +11 -0
- package/dist/{main-Cd_mObtH.js → main-GGbIOSca.js} +8 -9
- package/dist/menu-CYazzvub.cjs +12 -0
- package/dist/menu-DGzm1FYA.js +5675 -0
- package/dist/menuIndex-Br2dXQqi.cjs +1 -0
- package/dist/menuIndex-CoVR5ix7.js +134 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +13 -13
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +115 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +10 -5
- package/dist/{threeModel-CIZ5D8Df.js → threeModel-B8afF4RO.js} +4 -4
- package/dist/{threeModel-Dekl17Re.cjs → threeModel-BIcXUfRq.cjs} +1 -1
- package/dist/threePreview-CuXGNvBL.cjs +1 -0
- package/dist/{threePreview-B46ButBi.js → threePreview-DLxW-XYV.js} +6 -7
- package/dist/{threeSceneView-CoQQCgZ3.cjs → threeSceneView-DHahXsWx.cjs} +1 -1
- package/dist/{threeSceneView-D4mxD9hv.js → threeSceneView-RZtjgaQI.js} +14 -16
- package/dist/{threeSceneViewForCPMPIP-BR01ytzC.cjs → threeSceneViewForCPMPIP-0_i3LOfz.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DTtZGOcw.js → threeSceneViewForCPMPIP-DMhM6ZvH.js} +10 -11
- package/dist/threeTrackPathView-CrlluuTz.cjs +1 -0
- package/dist/{threeTrackPathView-BQPS8ajS.js → threeTrackPathView-cclE9z18.js} +87 -88
- package/dist/threeViewerHost-BaEB4k1F.cjs +1 -0
- package/dist/{threeViewerHost-CsMI9jbX.js → threeViewerHost-LoU6OtMI.js} +10 -11
- package/dist/{urdfTree-umPKeRFh.cjs → urdfTree-BTD0A42y.cjs} +1 -1
- package/dist/{urdfTree-B118FC_3.js → urdfTree-RdS14ARy.js} +1 -1
- package/dist/{workpieceTreePanel-CwUXRyn3.cjs → workpieceTreePanel-CfwoCG1K.cjs} +1 -1
- package/dist/{workpieceTreePanel-D9TnLdIy.js → workpieceTreePanel-Q4_hCBXx.js} +4 -4
- package/package.json +1 -1
- package/dist/array-Dk18oefG.cjs +0 -1
- package/dist/clone-BDBSWARv.cjs +0 -1
- package/dist/clone-BqeCvECh.js +0 -8
- package/dist/index--E8u7lHy.cjs +0 -12
- package/dist/index-B38fQMRk.cjs +0 -1
- package/dist/index-BIg-Nt0x.cjs +0 -25
- package/dist/index-BQO25T-T.cjs +0 -1
- package/dist/index-BchGbZ1v.cjs +0 -15
- package/dist/index-Bio1_C_H.cjs +0 -1
- package/dist/index-BmJV5eVh.js +0 -4669
- package/dist/index-BtyugMgY.cjs +0 -1
- package/dist/index-BzeH13wt.cjs +0 -1
- package/dist/index-C3-1AlM-.js +0 -2765
- package/dist/index-C9baGOvW.js +0 -9647
- package/dist/index-CMsGT7Tl.cjs +0 -1
- package/dist/index-COTur3RT.cjs +0 -1
- package/dist/index-CUp0Z80f.cjs +0 -2
- package/dist/index-CoX9mofW.cjs +0 -1
- package/dist/index-CyQV3nI9.cjs +0 -1
- package/dist/index-DBhc2SoQ.cjs +0 -1
- package/dist/index-DBrXonf1.cjs +0 -1
- package/dist/index-DEfKSijb.cjs +0 -7
- package/dist/index-DNyLSjIf.cjs +0 -1
- package/dist/index-DOQApax-.cjs +0 -1
- package/dist/index-DtlQjI5L.cjs +0 -1
- package/dist/index-FJ_oMfF3.cjs +0 -1
- package/dist/index-L9DruvvE.cjs +0 -1
- package/dist/index-T25jN7df.cjs +0 -104
- package/dist/index-W6w3oiQ2.cjs +0 -1
- package/dist/index-ipcwULw-.js +0 -167
- package/dist/main-FOjt8u8O.cjs +0 -11
- package/dist/menu-7kw8Lwp_.cjs +0 -1
- package/dist/menu-CK0ndSHP.js +0 -1132
- package/dist/menuIndex-Ba-9R5jd.cjs +0 -1
- package/dist/menuIndex-DiNvd_FY.js +0 -125
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threePreview-DcCfaIpB.cjs +0 -1
- package/dist/threeTrackPathView-C6IiddAw.cjs +0 -1
- package/dist/threeViewerHost-B3elQtpE.cjs +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-_aEslAdL.cjs"),r=require("./index-D28carCM.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),N=require("./menu-CYazzvub.cjs"),Ye=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DAAbs6bU.cjs");const Ze=require("./request-BC2w2vGr.cjs"),He=require("./index-CUw6nGTo.cjs"),me=require("./index-9WLF0N-m.cjs"),et=require("vue-router"),ge=require("./index-RoXicHV9.cjs"),R=require("./index-CW4qJdP8.cjs"),tt=require("./index-D28carCM.cjs"),ot=require("./menuIndex-Br2dXQqi.cjs"),ke=require("./index-6iwwUgL6.cjs"),Me=require("./index-fxwUfoBD.cjs"),lt=require("./index-B5u9ckAG.cjs"),st=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ie=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-9WLF0N-m.cjs")).then(r=>r.index));Ie.install=r=>{r.component("ssMenu",Ie)};const we={__name:"index",props:{name:String},setup(r){const c=r,I=t.computed(()=>Ze.Icons[c.name]);return t.onMounted(()=>{}),(d,a)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(I.value)))]),_:1})}}},Ee=(r,c,I=0)=>{let d=r;return d!=null&&d.every(a=>Array.isArray(a))&&(d!=null&&d.every(a=>Array.isArray(a)&&a.length===1)?d=d==null?void 0:d.filter(a=>(a==null?void 0:a[0])!==(c==null?void 0:c[I])):d=d==null?void 0:d.map(a=>{if(a!=null&&a.find(l=>l===(c==null?void 0:c[I]))&&(c==null?void 0:c.length)!==1){let l=N.cloneDeep(c),n=a==null?void 0:a.filter(C=>C!==(l==null?void 0:l[I])),S=I+1,b=Ee(n,l,S),B=[];B.push(a==null?void 0:a[0]),b==null||b.forEach(C=>{B.push(C)}),a=B}return a})),d},xe=(r,c,I,d=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([I]):a=a==null?void 0:a.map(l=>{if(l!=null&&l.find(n=>n===(c==null?void 0:c[d]))&&(c==null?void 0:c.length)!==1){let n=N.cloneDeep(c),S=l==null?void 0:l.filter(w=>w!==(n==null?void 0:n[d])),b=d+1,B=xe(S,n,I,b),C=[];C.push(l==null?void 0:l[0]),B==null||B.forEach(w=>{C.push(w)}),l=C}return l})),a},Te=(r,c,I,d,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])===I&&(n=[d]),n)):l=l==null?void 0:l.map(n=>{if(n!=null&&n.find(S=>S===(c==null?void 0:c[a]))&&(c==null?void 0:c.length)!==1){let S=N.cloneDeep(c),b=n==null?void 0:n.filter(L=>L!==(S==null?void 0:S[a])),B=a+1,C=Te(b,S,I,d,B),w=[];w.push(n==null?void 0:n[0]),C==null||C.forEach(L=>{w.push(L)}),n=w}return n})),l};function qe(r="menu"){return{name:r,components:{SvgIcon:Ye.SvgIcon,ssMenu:Ie,DynamicIcon:we,ssDialog:He.ssDialog,ssInput:me.ssInput},setup(c,{emit:I}){const d=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=N.useMenuState(),n=N.useModelComp(N.pinia),S=N.useLoginState(N.pinia),{loginUserInfo:b}=N.storeToRefs(S),B=t.ref(0),C=et.useRouter(),w=t.ref(),{asideMenus:L,menuTriggerType:i,platform:ue}=N.storeToRefs(l),{fixMenuStatus:De}=N.storeToRefs(n),{isSuperAdmin:_e}=lt.useRole(),Se=t.computed(()=>d==null?void 0:d.mode),E=o=>o==null?void 0:o.map(e=>{var f,v;return!(e!=null&&e.children)||((f=e==null?void 0:e.children)==null?void 0:f.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=E(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 f,v;return!(e!=null&&e.children)||((f=e==null?void 0:e.children)==null?void 0:f.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=E(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("/"),I("node-click",o,s)},Fe=async o=>{const s=ot.findNodeByPropInTree(Be.value,"path",o);l.setActiveAsideMenu(s),n.setRouteToChildPath(""),De.value?n.setFixMenuStatus(!1):(W.value&&(i.value="open"),i.value==="click"?B.value===1?l.setActiveMenuPath(sessionStorage.getItem("pageKey")):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=>tt.getComponent(o),je=t.ref({}),Oe=t.ref([]),Y=t.ref({}),J=t.ref({}),Pe=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},be=t.ref({}),Ke=o=>{l.setCacheInputMenu({type:U.type,data:o}),l.setIsRefreshMenus(!0)},Re=async(o,s,e)=>{var f,v,k,O,M,G,V,Z,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce;if(s==="create"){let A=(e==null?void 0:e.title)+"(1)",$=(v=(f=e==null?void 0:e.path)==null?void 0:f.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}),F=await ke.getItemData((M=(O=(k=e==null?void 0:e.path)==null?void 0:k.split("/"))==null?void 0:O.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:M.join("/"),sessionStorage.getItem("systemKey"),"");if($.push(A),$=$==null?void 0:$.join("/"),(F==null?void 0:F.length)>0){let D=F==null?void 0:F[0],y=(V=(G=D==null?void 0:D.compData)==null?void 0:G.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:V.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 K,j;if(_.length===1)((K=_==null?void 0:_[0])==null?void 0:K[u])===(e==null?void 0:e.title)&&(P=_==null?void 0:_[0],P[u]=A);else{let p=(j=y==null?void 0:y.filter(h=>h!=="操作"))==null?void 0:j.map(h=>h==null?void 0:h.prop),q=_==null?void 0:_.filter(h=>!(h!=null&&h.id)),x=ke.getValueToObjectValue(q,p);x[u]=A,P=x}}),await R.createInsofDataApi({key:{type:"data",pageKey:(le=(oe=(te=e==null?void 0:e.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((_,K)=>{var j,p;return K!==((p=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:p.length)-1}))==null?void 0:le.join("/"),tableId:D==null?void 0:D.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(se=b.value)==null?void 0:se.id,createUserLayer:((ie=b.value)==null?void 0:ie.dept)||((ae=b.value)==null?void 0:ae.部门名称)},value:{tableData:P}})}}await ke.newLoadingConstruct(e==null?void 0:e.path,$),l.setUpdateMenuStatus(!1),await Me.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")w.value=e;else if(s==="delete"){let A=[];(A==null?void 0:A.length)>0&&await R.batchDeleteInsofDataApi({ids:A}),l.setUpdateMenuStatus(!1),await Me.verifyStructureDataToStore(),l.setActiveMenuPath((ve=(fe=(he=e==null?void 0:e.path)==null?void 0:he.split("/"))==null?void 0:fe.filter(($,F)=>{var D,y;return F!==((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,A,$,F,D,y,u,T,P,_,K,j;let e=await R.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),f=(H=(Z=e==null?void 0:e.data)==null?void 0:Z.result)==null?void 0:H[0],v=(m=f==null?void 0:f.value)==null?void 0:m.pageData;v.compData=(ee=v.compData)==null?void 0:ee.map(p=>{var q,x;return(p==null?void 0:p.key)==="menuContents"&&(p.contents=Te(p.contents,(q=s==null?void 0:s.path)==null?void 0:q.split("/"),s==null?void 0:s.title,(x=o==null?void 0:o.target)==null?void 0:x.value)),p}),f!=null&&f.id&&await R.updateInsofDataApi({id:f==null?void 0:f.id,value:{pageData:v}});let k=(oe=(te=s==null?void 0:s.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((p,q)=>{var x,h;return q!==((h=(x=s==null?void 0:s.path)==null?void 0:x.split("/"))==null?void 0:h.length)-1}),O=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 M=await ke.getItemData(O,sessionStorage.getItem("systemKey"),"");if(((ne=(re=(ae=(ie=(se=M==null?void 0:M[0])==null?void 0:se.compData)==null?void 0:ie.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:ae.contents)==null?void 0:re[0])==null?void 0:ne.directiveLabel)==="#isMain"){let p=(fe=(he=(de=(pe=(ce=M==null?void 0:M[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,q=(Ce=(ye=(ve=M==null?void 0:M[0])==null?void 0:ve.compData)==null?void 0:ye.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:Ce.contents,x=(D=(F=($=(A=M==null?void 0:M[0])==null?void 0:A.compData)==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:F.contents)==null?void 0:D.map(g=>g==null?void 0:g.prop),h;if(q==null||q.forEach(g=>{var X;let Q=ke.getValueToObjectValue(g,x);(Q==null?void 0:Q[p])===s.title&&(h=Q,h[p]=(X=o==null?void 0:o.target)==null?void 0:X.value)}),h){let g={};for(let X in h)X!=="id"&&(g[X]=h==null?void 0:h[X]);let Q=[{id:h==null?void 0:h.id,value:{tableData:g}}];await R.batchUpdateInsofDataApi({dataList:Q})}}let G=await R.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:s==null?void 0:s.path}}),V=(u=(y=G==null?void 0:G.data)==null?void 0:y.result)==null?void 0:u.map(p=>({id:p==null?void 0:p.id,key:p==null?void 0:p.key}));V=V==null?void 0:V.map(p=>(p.key.pageKey=k,p)),(V==null?void 0:V.length)>0&&await R.batchUpdateInsofDataApi({dataList:V}),l.setUpdateMenuStatus(!1),await Me.verifyStructureDataToStore(),l.setActiveMenuPath((_=(P=(T=s==null?void 0:s.path)==null?void 0:T.split("/"))==null?void 0:P.filter((p,q)=>{var x,h;return q!==((h=(x=s==null?void 0:s.path)==null?void 0:x.split("/"))==null?void 0:h.length)-1}))==null?void 0:_.join("/")),l.setActiveTopMenuPath((j=(K=s==null?void 0:s.path)==null?void 0:K.split("/"))==null?void 0:j[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),w.value=void 0},Je=async(o,s)=>{U.type=Pe(s==null?void 0:s.operateType),await Re(s,U.type,o),J.value=o,be.value=s},We=()=>{U.show=!1},Ge=o=>o==null?void 0:o.filter(s=>s.allowInherit),Qe=()=>{var e,f,v,k,O;let o;U.type==="create"&&(o=((e=J.value)==null?void 0:e.path)+"/"+Y.value[(f=Y.value)==null?void 0:f.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[(O=Y.value)==null?void 0:O.prop],path:o};console.log("clickSubmitForm",be.value,J.value,s),Ke(s),U.show=!1},Xe=o=>{var e,f;const s=(e=o==null?void 0:o.contents)==null?void 0:e.find(v=>v.key==="formContent");s&&(Y.value=(f=s==null?void 0:s.contents)==null?void 0:f.reduce((v,k)=>(v[k.key]=k.value,v.prop=k.key,v),{}))},W=t.ref(!1);return{isCollapse:W,handleMenuCollapse:()=>{W.value=!W.value},handleCompChange:Xe,dialogForm:je,dialogRenderComps:Oe,getComponents:Ue,clickSubmitForm:Qe,dialogInfo:U,beforeDialogDestroy:We,clickMenuIcon:Je,mode:Se,renderMenuList:Be,clickMenu:Ae,openMenu:Fe,closeMenu:Ne,changeMenuStyle:z,fixElement:w,onBlur:ze,isSuperAdmin:_e}}}}const it=t.defineComponent(qe()),at=["title"],rt={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},nt={key:2,class:"menu-operate-icon"},ct={class:"menu-config-wrap"},pt=["onClick"],dt={class:"module-dialog-content"};function ht(r,c,I,d,a,l){var L;const n=t.resolveComponent("ss-input"),S=t.resolveComponent("svg-icon"),b=t.resolveComponent("el-popover"),B=t.resolveComponent("ss-menu"),C=t.resolveComponent("el-button"),w=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(B,{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,Se;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,at)):t.createCommentVNode("",!0),r.fixElement&&(i==null?void 0:i.path)===((_e=r.fixElement)==null?void 0:_e.path)?(t.openBlock(),t.createElementBlock("span",rt,[t.createVNode(n,{value:i.title,onBlur:E=>r.onBlur(E,i)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),i!=null&&i.config&&((Se=i==null?void 0:i.config)==null?void 0:Se.length)>0&&r.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",nt,[t.createVNode(b,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(S,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",ct,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i==null?void 0:i.config,E=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:E.id,onClick:Be=>r.clickMenuIcon(i,E)},[t.createVNode(S,{name:E==null?void 0:E.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(E==null?void 0:E.operateType),1)],8,pt))),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(S,{name:r.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(w,{class:"module-dialog",title:r.dialogInfo.title,visible:r.dialogInfo.show,width:r.dialogInfo.width,onBeforeDestroy:r.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",dt,[(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=st._export_sfc(it,[["render",ht],["__scopeId","data-v-b8641e04"]]),ft=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:xe,default:Ve,deleteSelectMenu:Ee,fixSelectMenu:Te,setComponent:qe},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=we;exports.index=ft;exports.ssMenu=Ie;exports.ssVMenu=Ve;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./menu-CYazzvub.cjs"),_=require("./index-D28carCM.cjs"),r=require("./index-Dub2SbvH.cjs"),C=require("./index-CW4qJdP8.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const d=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(d),p=l.ref([]),f=async()=>{var o,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((o=e==null?void 0:e.data)==null?void 0:o.type)==="success"){let i=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return i=(a=u.cloneDeep(i))==null?void 0:a.map(s=>{var m;const b=Object.values((m=s==null?void 0:s.value)==null?void 0:m.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),i}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,o)=>(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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./menu-CYazzvub.cjs"),f=require("./request-BC2w2vGr.cjs"),d=require("vue"),I=u.useLoginState(u.pinia),{systemUrl:s,extraUrl:n}=u.storeToRefs(I);let p=s.value===""||!s.value?"http://222.92.178.198:63002":s.value,v=n.value===""||!n.value?"http://139.196.154.85:20015":n.value;d.watch(()=>s.value,()=>{p=s.value===""||!s.value?"http://222.92.178.198:63002":s.value},{deep:!0,immediate:!0});d.watch(()=>n.value,()=>{v=n.value===""||!n.value?"http://139.196.154.85:20015":n.value},{deep:!0,immediate:!0});function U(a){return f.service({url:v+"/api/face/face-verify",method:"post",data:a})}function F(a){return f.service({url:p+"/platform/updatedata_faceURL",method:"post",data:a})}const S=()=>{const a=u.useLoginState(),{platId:m,userName:y,account:c,isSuperAdmin:g}=u.useUserInfo(),i=async t=>{if(!t)return;const e=new FormData;e.set("file",t);const r=a.systemInfo.plat_id;return e.set("systemKey",r),await U(e)};return{updateFacePhoto:async t=>{const e=a.loginUserInfo,{password:r}=e||{},o={platId:m.value,userName:y.value,password:r,faceURL:t};g.value&&(o.platId=""),await F(o)},initVerifySelf:async t=>{var l;const e=await i(t),{account:r,password:o}=((l=e==null?void 0:e.data)==null?void 0:l.data)||{};if(!c)return!1;const h=a.loginUserInfo,{password:w}=h||{};return r===c.value&&o===w},initVerify:async t=>await i(t)}};exports.useFaceRecognition=S;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ref as A, computed as c, onMounted as _ } from "vue";
|
|
2
2
|
import { useRouter as C } from "vue-router";
|
|
3
|
-
import { u as g,
|
|
4
|
-
import { p as E } from "./index-BmJV5eVh.js";
|
|
3
|
+
import { u as g, p as h, o as R, c as b, i as S, m as E } from "./menu-DGzm1FYA.js";
|
|
5
4
|
const l = {
|
|
6
5
|
ALLOW: {
|
|
7
6
|
value: "允许"
|
|
@@ -20,7 +19,7 @@ const l = {
|
|
|
20
19
|
isRouter: !0,
|
|
21
20
|
children: [],
|
|
22
21
|
childMenus: []
|
|
23
|
-
},
|
|
22
|
+
}, K = {
|
|
24
23
|
BASE: {
|
|
25
24
|
label: "基础信息",
|
|
26
25
|
value: "base"
|
|
@@ -29,8 +28,8 @@ const l = {
|
|
|
29
28
|
label: "修改密码",
|
|
30
29
|
value: "reset-password-by-face-recognition"
|
|
31
30
|
}
|
|
32
|
-
},
|
|
33
|
-
const u = C(), s = g(
|
|
31
|
+
}, T = () => {
|
|
32
|
+
const u = C(), s = g(h), { platId: o, isSuperAdmin: i } = R(), p = (e) => {
|
|
34
33
|
const { id: t } = e;
|
|
35
34
|
return {
|
|
36
35
|
id: t,
|
|
@@ -46,7 +45,7 @@ const l = {
|
|
|
46
45
|
const e = {
|
|
47
46
|
pageName: M,
|
|
48
47
|
platId: o.value
|
|
49
|
-
}, t = await
|
|
48
|
+
}, t = await S(e);
|
|
50
49
|
return ((a = t == null ? void 0 : t.data) == null ? void 0 : a.result) || [];
|
|
51
50
|
}, f = async () => {
|
|
52
51
|
const e = await w();
|
|
@@ -75,12 +74,12 @@ const l = {
|
|
|
75
74
|
});
|
|
76
75
|
}, P = async (e) => {
|
|
77
76
|
const t = await v(e);
|
|
78
|
-
return await
|
|
77
|
+
return await E(t);
|
|
79
78
|
};
|
|
80
79
|
return {
|
|
81
80
|
isSuperAdmin: i,
|
|
82
81
|
toPersonalCenter: () => {
|
|
83
|
-
const e =
|
|
82
|
+
const e = b(D);
|
|
84
83
|
s.setAsideMenus([e]), s.setActiveMenuPath(e == null ? void 0 : e.path), s.setActiveAsideMenu(e), u.push(e.path);
|
|
85
84
|
},
|
|
86
85
|
isAllowReplacePassword: I,
|
|
@@ -89,6 +88,6 @@ const l = {
|
|
|
89
88
|
};
|
|
90
89
|
};
|
|
91
90
|
export {
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
K as t,
|
|
92
|
+
T as u
|
|
94
93
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I=require("vue"),y=require("./index-6iwwUgL6.cjs"),s=require("./menu-CYazzvub.cjs"),N=require("./request-BC2w2vGr.cjs"),A=require("./day-BNr9Td9D.cjs"),Le=require("./index-D0D-8tq3.cjs"),we=s.useLoginState(s.pinia),{systemUrl:g}=s.storeToRefs(we);let q=g.value===""||!g.value?"http://222.92.178.198:63002":g.value;I.watch(()=>g.value,()=>{q=g.value===""||!g.value?"http://222.92.178.198:63002":g.value},{deep:!0,immediate:!0});function V(r){return N.service({url:`${q}/platform/import_data`,method:"post",data:r})}function O(r){return N.service({url:`${q}/platform/export_data`,method:"post",data:r,responseType:"blob"})}function Te(r=""){const l=r.match(/filename\*=UTF-8''([^;]+)/i);if(l)return decodeURIComponent(l[1]);const p=r.match(/filename=["']?([^"';]+)["']?/);return p?p[1]:"download.xlsx"}const $=r=>{var b,L;const l=((b=r==null?void 0:r.headers)==null?void 0:b["content-type"])||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",p=new Blob([r.data],{type:l}),T=(L=r==null?void 0:r.headers)==null?void 0:L["content-disposition"],h=Te(T)||"数据.xlsx",i=window.URL.createObjectURL(p),u=document.createElement("a");u.href=i,u.setAttribute("download",h),document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(i)},De=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],C="role",f={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},d={EDITABLE:{value:"editable",label:"可编辑",tag:"primary"},DISABLED:{value:"disabled",label:"不可编辑",tag:"info"}},Re={TABLE:{value:"Table"}},Ee=["查看","查看三维模型","导出paraform","导出","导出全部","导出选中"],Be=()=>{const r=s.useLoginState(),l=s.useMenuState(s.pinia),{isSuperAdmin:p,userId:T,userName:h,platId:i}=s.useUserInfo(),{pageInfo:u,setPageNum:b,setPageSize:L}=Le.usePageInfo(),P=I.ref([]),G=t=>{const{propertyType:e}=t||{};return e===Re.TABLE.value},D=I.ref({}),M=I.computed(()=>{var e;return p.value?!0:((e=D.value)==null?void 0:e.status)===d.EDITABLE.value}),z=t=>{var o,c;const e=A.formatterTimeStr(Date.now()),{id:a=0}=r.loginUserInfo||{},n=s.cloneDeep(t);return n.update_user_id=a,n.update_user_name=h.value,n.update_time=e,n.checked_ids=((c=(o=n==null?void 0:n.main_ids)==null?void 0:o.map)==null?void 0:c.call(o,m=>{const{id:_}=m;return _}))||[],n},x=t=>{let e=[];return t.forEach(a=>{var n;if(a.isPropertyLeaf){const o=s.cloneDeep(a);e.push(o)}a.children&&((n=a.children)==null?void 0:n.length)>0&&(e=e.concat(x(a.children)))}),e},U=(t=[])=>{let e=[];for(let a=0;a<t.length;a++){const n=t[a],o=n.children||[];delete n.children,e.push(n),o&&o.length>0&&(e=e.concat(U(o)))}return e},j=t=>{let e=[];return t.forEach(a=>{if(a.isPropertyLeaf){const n=U(a.params);e=e.concat(n)}}),e},S=(t,e)=>{const a=r.loginUserInfo,{id:n=0}=a||{},o=A.formatterTimeStr(Date.now());let c={name:"",code:"",order_no:1,data_scope:1,remark:"",tenant_id:"",create_time:o,update_time:o,create_user_id:n,create_user_name:h.value,update_user_id:n,update_user_name:h.value,status:f.ENABLE.value,main_ids:[],checked_ids:[],params:[]};const{checkAll:m,tree:_}=e||{};if(m&&_){const v=x(_),be=v.map(B=>({...B,department_scope:"unlimited"}));c.main_ids=be,c.checked_ids=v.map(B=>B.id),c.params=j(v)}if(t){const v=z(t);c={...c,...v}}return c},R=t=>{const e=[t];return{platId:i.value,changeRoleData:e}},H=async t=>await s.getRoleList({platId:t}),Q=async()=>{var e;l.setImportLoading(!0);const t=await H(i.value).finally(()=>{l.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},k=()=>({name:""}),w=I.ref(k()),K=()=>{w.value=k()},W=()=>({platId:i.value,pageNum:u.value.pageNum,pageSize:u.value.pageSize,filter:{...w.value}}),J=async t=>{var a;const e=await s.getByPage(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},X=async()=>{const t=W(),e=await J(t),{total:a}=e||{};return u.value.total=a,e||{}},Y=async t=>{delete t.role_id;const e=R(t);await s.createRole(e)},Z=async t=>{l.setImportLoading(!0),await Y(t).finally(()=>{l.setImportLoading(!1)})},ee=async t=>{const e=R(t);await s.updateRole(e)},te=async t=>{l.setImportLoading(!0),await ee(t).finally(()=>{l.setImportLoading(!1)})},ae=async t=>{const{role_id:e}=t,a={platId:i.value,role_id:[e]};await s.deleteRole(a)},ne=async t=>{await A.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-role-message-modal",confirmButtonClass:"delete-role-confirm"}),l.setImportLoading(!0),await ae(t).finally(()=>{l.setImportLoading(!1)})},oe=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.label)||t},re=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.tag)||"info"},se=async t=>{var a;const e=await s.getPropertyAuthTree(t);return((a=e==null?void 0:e.data)==null?void 0:a.result)||[]},le=async t=>{const e={platId:i.value,includeHidden:!0,roleIds:t};l.setImportLoading(!0);const a=await se(e).finally(()=>{l.setImportLoading(!1)});P.value=a},ce=(t="")=>{const e=t.toUpperCase(),a=d==null?void 0:d[e];return(a==null?void 0:a.label)||t},ie=(t="")=>{const e=t.toUpperCase(),a=d==null?void 0:d[e];return(a==null?void 0:a.tag)||"info"},E=t=>t===d.EDITABLE.value,ue=(t,e)=>{const{status:a}=t||{},{tableOperate:n}=e||{};return!!(E(a)||n&&Ee.includes(n))},pe=(t,e)=>{const{status:a}=t||{};return E(a)},de=(t,e)=>{if(p.value)return!0;const{type:a}=e||{};if(y.compType.TABLE===a)return ue(t,e);if(y.compType.FORM===a)return pe(t);const{status:n}=t||{};return E(n)},me=async()=>{var n,o;const e={pageName:"系统管理/角色管理",platId:i.value,userId:T.value},a=await s.getPageDataApi(e);return(o=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:o[0]},fe=async()=>{if(!p.value)return D.value=await me(),D},F=t=>{const e=s.cloneDeep(t);for(let a=0;a<e.length;a++){const n=e==null?void 0:e[a],{id:o,prop:c,children:m}=n||{};n.uniqueKey=`${o}_${c}`,m&&(n.children=F(m))}return e},ye=async t=>{var a;const e=await V(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},ge=async t=>{const e=new FormData,a=S(),{create_user_id:n,update_user_id:o,create_user_name:c,update_user_name:m}=a;return e.set("platId",i.value),e.set("file",t),e.set("tableType",C),e.set("create_user_id",n),e.set("update_user_id",o),e.set("create_user_name",c),e.set("update_user_name",m),await ye(e)},he=async t=>await O(t),_e=async()=>{const t={platId:i.value,tableType:C,filter:w.value},e=await he(t);return $(e),e},ve=[["名称","编码","备注","状态"]],Ie=async()=>{const t=y.utils.aoa_to_sheet(ve),e=y.utils.book_new();y.utils.book_append_sheet(e,t,"角色"),y.writeFileSync(e,"角色模板.xlsx")};return{compType:y.compType,isTableFeature:G,queryInfo:w,resetQuery:K,pageInfo:u,setPageNum:b,setPageSize:L,initGetByPage:X,initRoleList:Q,initCreate:Z,initUpdate:te,initDelete:ne,initRoleRequestData:R,initPropertyAuthTree:le,propertyAuthTree:P,initRoleItem:S,isSuperAdmin:p,getStatusLabelByValue:oe,getStatusTagByValue:re,getFeatureStatusLabelByValue:ce,getFeatureStatusTagByValue:ie,hasEditable:de,initRoleConfig:fe,hasRoleEditAuth:M,buildParamAuthTree:F,initImport:ge,initExport:_e,exportTemplate:Ie}};exports.exportData=O;exports.featureStatusConstants=d;exports.importData=V;exports.initDownloadFileByResponse=$;exports.operateList=De;exports.statusConstants=f;exports.useRole=Be;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { g as pt, b as Cc, e as ti, a as Rh } from "./index-o69TSiJu.js";
|
|
2
|
-
import { c as ae,
|
|
3
|
-
import { d as Bf, s as Gr, p as Mr, u as fi } from "./index-BmJV5eVh.js";
|
|
2
|
+
import { c as ae, N as Lf, s as Gr, p as Mr, b as I0, u as D0, h as Bf, a as fi } from "./menu-DGzm1FYA.js";
|
|
4
3
|
import { E as Y0 } from "./request-CoGtW0Ux.js";
|
|
5
4
|
import { ref as Oa, reactive as no, computed as is, watch as io } from "vue";
|
|
6
5
|
import "./JSEncrypt-B36c1iN5.js";
|
|
7
|
-
const
|
|
6
|
+
const TT = [
|
|
8
7
|
{
|
|
9
8
|
key: "FormName",
|
|
10
9
|
value: "Form"
|
|
@@ -25,7 +24,7 @@ const ST = [
|
|
|
25
24
|
key: "SystemKey",
|
|
26
25
|
value: "System"
|
|
27
26
|
}
|
|
28
|
-
],
|
|
27
|
+
], ST = [
|
|
29
28
|
{
|
|
30
29
|
key: "FormDirect",
|
|
31
30
|
value: "formFlex"
|
|
@@ -158,7 +157,7 @@ const ST = [
|
|
|
158
157
|
}), i;
|
|
159
158
|
};
|
|
160
159
|
return r(e, a);
|
|
161
|
-
}, Uf =
|
|
160
|
+
}, Uf = Lf("modelTableComp", {
|
|
162
161
|
state: () => ({
|
|
163
162
|
tableIndex: 0,
|
|
164
163
|
tableShowThree: "",
|
|
@@ -210,11 +209,11 @@ const ST = [
|
|
|
210
209
|
return l[a[c]] = f, l;
|
|
211
210
|
})) == null ? void 0 : s.filter((f) => f), i;
|
|
212
211
|
}), n;
|
|
213
|
-
},
|
|
212
|
+
}, AT = (e, a) => {
|
|
214
213
|
var s, f;
|
|
215
214
|
const r = ae(e), n = (s = r == null ? void 0 : r.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : s.contents, t = (f = r == null ? void 0 : r.find((c) => (c == null ? void 0 : c.key) === "tableContents")) == null ? void 0 : f.contents;
|
|
216
215
|
return Uh(t, yf(n).slice(0, yf(n).length - 1), a);
|
|
217
|
-
},
|
|
216
|
+
}, FT = (e) => {
|
|
218
217
|
let a = {};
|
|
219
218
|
return e == null || e.forEach((r) => {
|
|
220
219
|
a[r.key] = r.value;
|
|
@@ -247,7 +246,7 @@ const ST = [
|
|
|
247
246
|
};
|
|
248
247
|
})) == null ? void 0 : i.filter((s) => s.key !== "操作"), n;
|
|
249
248
|
});
|
|
250
|
-
},
|
|
249
|
+
}, IT = async (e) => {
|
|
251
250
|
var r, n, t, i;
|
|
252
251
|
let a = "";
|
|
253
252
|
if ((n = (r = ae(e)) == null ? void 0 : r.split("/")) == null || n.forEach((s, f) => {
|
|
@@ -272,7 +271,7 @@ const ST = [
|
|
|
272
271
|
} catch {
|
|
273
272
|
return !1;
|
|
274
273
|
}
|
|
275
|
-
}, Wh = I0(Mr), { loginUserInfo: ms } = Gr(Wh), Hh =
|
|
274
|
+
}, Wh = I0(Mr), { loginUserInfo: ms } = Gr(Wh), Hh = Bf(Mr), { chooseTitle: Nc } = Gr(Hh), Xh = D0(), { activeMenuPath: jt } = Gr(Xh), q0 = [
|
|
276
275
|
{
|
|
277
276
|
key: "@MaxRowNum",
|
|
278
277
|
value: "onNumSlice",
|
|
@@ -555,7 +554,7 @@ const ST = [
|
|
|
555
554
|
}) : (a == null || a.forEach((n) => {
|
|
556
555
|
r[n] = e == null ? void 0 : e[n];
|
|
557
556
|
}), r.id = e == null ? void 0 : e.id), r;
|
|
558
|
-
}, co =
|
|
557
|
+
}, co = Lf("authorityState", {
|
|
559
558
|
state: () => ({
|
|
560
559
|
routerPageStructures: []
|
|
561
560
|
}),
|
|
@@ -564,7 +563,7 @@ const ST = [
|
|
|
564
563
|
this.routerPageStructures = e;
|
|
565
564
|
}
|
|
566
565
|
}
|
|
567
|
-
}), e1 = D0(Mr), { activeMenuPath:
|
|
566
|
+
}), e1 = D0(Mr), { activeMenuPath: DT } = Gr(e1), r1 = I0(Mr), { structureData: a1, loginUserInfo: bT } = Gr(r1), t1 = co(Mr), { routerPageStructures: n1 } = Gr(t1);
|
|
568
567
|
fi(Mr);
|
|
569
568
|
Oa([
|
|
570
569
|
{
|
|
@@ -784,7 +783,7 @@ is(() => {
|
|
|
784
783
|
});
|
|
785
784
|
const p1 = Oa([]);
|
|
786
785
|
i1.value;
|
|
787
|
-
const oo = I0(Mr), { superAdminInfo:
|
|
786
|
+
const oo = I0(Mr), { superAdminInfo: OT, cryptoInfo: CT, loginUserInfo: RT } = Gr(oo), m1 = D0(Mr), { activeMenuPath: g1 } = Gr(m1), Bc = fi(Mr), NT = "123456", v1 = co(Mr), { routerPageStructures: _1 } = Gr(v1);
|
|
788
787
|
Oa(0);
|
|
789
788
|
Oa([
|
|
790
789
|
{
|
|
@@ -825,7 +824,7 @@ const y1 = is(() => {
|
|
|
825
824
|
})) : [];
|
|
826
825
|
});
|
|
827
826
|
Oa();
|
|
828
|
-
const
|
|
827
|
+
const PT = async (e, a, r) => {
|
|
829
828
|
var n, t;
|
|
830
829
|
try {
|
|
831
830
|
const i = await e(a);
|
|
@@ -840,14 +839,14 @@ const MT = async (e, a, r) => {
|
|
|
840
839
|
}
|
|
841
840
|
};
|
|
842
841
|
w1.value;
|
|
843
|
-
const b0 =
|
|
842
|
+
const b0 = Lf("originalState", {
|
|
844
843
|
state: () => ({
|
|
845
844
|
originalPath: "^"
|
|
846
845
|
}),
|
|
847
846
|
actions: {}
|
|
848
847
|
}), T1 = fi(Mr), {
|
|
849
848
|
routeToChildPath: Uc
|
|
850
|
-
} = Gr(T1), S1 = I0(Mr), { loginUserInfo: Wc, cryptoInfo:
|
|
849
|
+
} = Gr(T1), S1 = I0(Mr), { loginUserInfo: Wc, cryptoInfo: MT } = Gr(S1), A1 = b0(Mr), { originalPath: Hc } = Gr(A1), F1 = async (e, a) => {
|
|
851
850
|
const r = sessionStorage.getItem("authority"), n = JSON.parse(r || "");
|
|
852
851
|
if (Array.isArray(n)) {
|
|
853
852
|
let t;
|
|
@@ -1051,13 +1050,13 @@ const uo = (e, a, r) => {
|
|
|
1051
1050
|
return i;
|
|
1052
1051
|
}), a;
|
|
1053
1052
|
}
|
|
1054
|
-
},
|
|
1053
|
+
}, LT = async (e) => {
|
|
1055
1054
|
let a = e;
|
|
1056
1055
|
return a = a == null ? void 0 : a.filter((r) => r), a = N1(a), a != null && a.every((r) => {
|
|
1057
1056
|
var n, t;
|
|
1058
1057
|
return ((t = (n = Object.keys(r)) == null ? void 0 : n.filter((i) => i == null ? void 0 : i.includes("name"))) == null ? void 0 : t.length) === 1;
|
|
1059
1058
|
}) ? a : C1(a);
|
|
1060
|
-
},
|
|
1059
|
+
}, BT = async () => {
|
|
1061
1060
|
var i, s, f, c, l, o, u, x, h, d, p, m, g, y, v, E, T, S, w, B, D, U, L, W, M, se, ne, he, ce, be, K, we, Ae, _, A, I, b, X, ee, Q, Z, J, Te, P, Pe, De, je, Le, ie, ur, ir, ka, Ia, St, Za, Ea, za, Se, Ne, Be, wa, Qe, br, me, Fr, Cr, hr;
|
|
1062
1061
|
In.setImportLoading(!0);
|
|
1063
1062
|
let e = "";
|
|
@@ -1247,7 +1246,7 @@ const uo = (e, a, r) => {
|
|
|
1247
1246
|
}
|
|
1248
1247
|
}
|
|
1249
1248
|
In.setImportLoading(!1);
|
|
1250
|
-
},
|
|
1249
|
+
}, UT = (e, a) => {
|
|
1251
1250
|
let r = e;
|
|
1252
1251
|
const n = [];
|
|
1253
1252
|
let t = "", i = 0;
|
|
@@ -1274,7 +1273,7 @@ const uo = (e, a, r) => {
|
|
|
1274
1273
|
for (const s of r)
|
|
1275
1274
|
i++, s.includes("{") || t.includes("{") || s.includes("[") || t.includes("[") || s.includes("【") || t.includes("【") || s.includes("(") || t.includes("(") || s.includes("(") || t.includes("(") || s.includes("/*") || t.includes("/*") ? (t += s.trim(), ae(t).split("{").length - 1 === ae(t).split("}").length - 1 && ae(t).split("【").length - 1 === ae(t).split("】").length - 1 && ae(t).split("[").length - 1 === ae(t).split("]").length - 1 && ae(t).split("(").length - 1 === ae(t).split(")").length - 1 && ae(t).split("(").length - 1 === ae(t).split(")").length - 1 && ae(t).split("/*").length - 1 === ae(t).split("*/").length - 1 && t[t.length - 1] === a && Gc(t, "'") ? (n.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), t = "") : i === (e == null ? void 0 : e.length) && (n.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), t = "")) : (t += s.trim(), (t == null ? void 0 : t[(t == null ? void 0 : t.length) - 1]) === a && Gc(t, "'") && (n.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), t = ""));
|
|
1276
1275
|
return (t == null ? void 0 : t.length) !== 0 && n.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), n;
|
|
1277
|
-
}, P1 = b0(Mr), { originalPath:
|
|
1276
|
+
}, P1 = b0(Mr), { originalPath: WT } = Gr(P1), M1 = (e) => {
|
|
1278
1277
|
var r, n;
|
|
1279
1278
|
let a = (n = (r = e == null ? void 0 : e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : r.split(",")) == null ? void 0 : n.map((t) => {
|
|
1280
1279
|
var i, s, f, c, l;
|
|
@@ -1319,9 +1318,9 @@ const uo = (e, a, r) => {
|
|
|
1319
1318
|
stringContent: n,
|
|
1320
1319
|
parentStringContent: t
|
|
1321
1320
|
};
|
|
1322
|
-
}, Ef = D0(Mr), { activeMenuPath: gs } = Gr(Ef), L1 =
|
|
1321
|
+
}, Ef = D0(Mr), { activeMenuPath: gs } = Gr(Ef), L1 = Bf(Mr), { chooseTitle: Oi } = Gr(L1);
|
|
1323
1322
|
let Dr = "$R";
|
|
1324
|
-
const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUserInfo:
|
|
1323
|
+
const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUserInfo: HT, systemInfo: Kc } = Gr(U1), ho = fi(Mr), W1 = b0(Mr), { originalPath: H1 } = Gr(W1), { payloadTypes: XT } = Gr(ho), vn = (e, a) => (a == null ? void 0 : a.split(",")).some((n) => Object.keys(e).some((t) => t.startsWith("name") && e[t] === n)), tf = {
|
|
1325
1324
|
onNumSlice: Jh,
|
|
1326
1325
|
onRandomContents: Qh,
|
|
1327
1326
|
onConditionContents: Yh,
|
|
@@ -2225,7 +2224,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
2225
2224
|
name: "",
|
|
2226
2225
|
compData: (B = o == null ? void 0 : o.map((D) => D.value.pageData)) == null ? void 0 : B.filter((D) => Object.values(D).length > 0)
|
|
2227
2226
|
}), g = g.sort((D, U) => D.orderId - U.orderId), g = await R1(g), i ? g : await F1(e, g);
|
|
2228
|
-
},
|
|
2227
|
+
}, GT = async () => {
|
|
2229
2228
|
var e, a;
|
|
2230
2229
|
try {
|
|
2231
2230
|
let r = ((e = Kc.value) == null ? void 0 : e.platform) || "browser";
|
|
@@ -2275,7 +2274,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
2275
2274
|
functionRelatedWords: t == null ? void 0 : t.functionRelatedWords,
|
|
2276
2275
|
calculatorFilter: t == null ? void 0 : t.calculatorFilter
|
|
2277
2276
|
};
|
|
2278
|
-
}),
|
|
2277
|
+
}), $T = (e) => {
|
|
2279
2278
|
const a = [];
|
|
2280
2279
|
function r(n) {
|
|
2281
2280
|
if (Array.isArray(n))
|
|
@@ -2283,7 +2282,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
2283
2282
|
!t.children || t.children.length === 0 ? a.push(t) : r(t.children);
|
|
2284
2283
|
}
|
|
2285
2284
|
return r(e), a;
|
|
2286
|
-
},
|
|
2285
|
+
}, KT = (e, a, r) => ae(e).map((t) => (Array.isArray(t) && (t = t.map((i) => {
|
|
2287
2286
|
var s, f, c;
|
|
2288
2287
|
return (f = (s = j1.value) == null ? void 0 : s.split("/")) == null || f.forEach((l) => {
|
|
2289
2288
|
var o, u, x;
|
|
@@ -2341,7 +2340,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
2341
2340
|
})), i;
|
|
2342
2341
|
}
|
|
2343
2342
|
return a(e);
|
|
2344
|
-
},
|
|
2343
|
+
}, zT = (e) => {
|
|
2345
2344
|
function a(r, n = [], t = "") {
|
|
2346
2345
|
if (!r || r.length === 0) return [];
|
|
2347
2346
|
let i = n;
|
|
@@ -2356,7 +2355,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
2356
2355
|
})), i;
|
|
2357
2356
|
}
|
|
2358
2357
|
return a(e);
|
|
2359
|
-
},
|
|
2358
|
+
}, VT = (e) => {
|
|
2360
2359
|
let a = ae(e);
|
|
2361
2360
|
return a = a == null ? void 0 : a.map((r) => ((r == null ? void 0 : r.type) === "Select" ? r = {
|
|
2362
2361
|
label: r == null ? void 0 : r.label,
|
|
@@ -2578,7 +2577,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
2578
2577
|
}), (d == null ? void 0 : d.length) > 0 && await ti({
|
|
2579
2578
|
dataList: d
|
|
2580
2579
|
});
|
|
2581
|
-
},
|
|
2580
|
+
}, jT = async (e, a, r, n, t) => {
|
|
2582
2581
|
var p, m, g, y, v, E, T, S, w, B, D, U, L, W, M, se, ne, he, ce, be, K, we, Ae;
|
|
2583
2582
|
let i = e;
|
|
2584
2583
|
(i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) !== G0 && (i = "", (m = (p = ae(e)) == null ? void 0 : p.split(G0)) == null || m.forEach((_, A) => {
|
|
@@ -3126,7 +3125,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
3126
3125
|
});
|
|
3127
3126
|
}), o;
|
|
3128
3127
|
}
|
|
3129
|
-
}, ex = b0(Mr), { originalPath: ko } = Gr(ex), rx =
|
|
3128
|
+
}, ex = b0(Mr), { originalPath: ko } = Gr(ex), rx = Bf(Mr), { chooseTitle: Hn } = Gr(rx), ax = D0(Mr), { activeMenuPath: nf } = Gr(ax), Eo = async () => void 0, tx = (e) => {
|
|
3130
3129
|
var n, t, i;
|
|
3131
3130
|
const a = (t = (n = e == null ? void 0 : e.compData) == null ? void 0 : n.find((s) => (s == null ? void 0 : s.key) === "header")) == null ? void 0 : t.contents;
|
|
3132
3131
|
return {
|
|
@@ -3155,12 +3154,12 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
3155
3154
|
}), (r == null ? void 0 : r[(r == null ? void 0 : r.length) - 1]) === "/" && (r = r + ((x = (u = Hn == null ? void 0 : Hn.value) == null ? void 0 : u[0]) == null ? void 0 : x.value));
|
|
3156
3155
|
const t = await Rn(r, sessionStorage.getItem("systemKey"), "", !1, [], !1, void 0);
|
|
3157
3156
|
return t || await Rn(n, sessionStorage.getItem("systemKey"), "", !1, [], !1, void 0);
|
|
3158
|
-
},
|
|
3157
|
+
}, YT = (e) => e.entries().next().done, JT = async (e) => {
|
|
3159
3158
|
var n, t, i;
|
|
3160
3159
|
const a = await nx(e);
|
|
3161
3160
|
let r = [];
|
|
3162
3161
|
return ((n = a == null ? void 0 : a.data) == null ? void 0 : n.type) === "success" && (r = (i = (t = a.data.result) == null ? void 0 : t.map((s) => s.value.pageData)) == null ? void 0 : i.filter((s) => (s == null ? void 0 : s.comp) === "Table"), r = r == null ? void 0 : r.map((s) => tx(s))), r;
|
|
3163
|
-
},
|
|
3162
|
+
}, qT = [
|
|
3164
3163
|
{
|
|
3165
3164
|
key: "单选",
|
|
3166
3165
|
value: "Select"
|
|
@@ -3449,7 +3448,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
3449
3448
|
type: "Select",
|
|
3450
3449
|
options: O0
|
|
3451
3450
|
}
|
|
3452
|
-
],
|
|
3451
|
+
], ZT = [
|
|
3453
3452
|
{
|
|
3454
3453
|
key: "Input",
|
|
3455
3454
|
value: ix
|
|
@@ -3503,7 +3502,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
3503
3502
|
value: "delete",
|
|
3504
3503
|
label: "删除"
|
|
3505
3504
|
}
|
|
3506
|
-
],
|
|
3505
|
+
], QT = [
|
|
3507
3506
|
{
|
|
3508
3507
|
key: "label",
|
|
3509
3508
|
label: "按钮名",
|
|
@@ -3520,7 +3519,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
3520
3519
|
label: "颜色",
|
|
3521
3520
|
type: "Color"
|
|
3522
3521
|
}
|
|
3523
|
-
],
|
|
3522
|
+
], eS = (e) => {
|
|
3524
3523
|
var r, n, t, i, s, f, c, l;
|
|
3525
3524
|
let a = ae(e);
|
|
3526
3525
|
if (((r = a == null ? void 0 : a.find((o) => (o == null ? void 0 : o.name) === "类型")) == null ? void 0 : r.type) === "Select" && ((i = (t = (n = ae(a)) == null ? void 0 : n.find((o) => (o == null ? void 0 : o.name) === "选项值")) == null ? void 0 : t.value) == null ? void 0 : i.length) > 0) {
|
|
@@ -3531,7 +3530,7 @@ const B1 = Uf(Mr), { multipleTableConst: $c } = Gr(B1), U1 = I0(Mr), { loginUser
|
|
|
3531
3530
|
a = a == null ? void 0 : a.map((u) => ((u == null ? void 0 : u.name) === "初始值" && (u.contents = o, u.value = (u == null ? void 0 : u.value) ?? ""), u));
|
|
3532
3531
|
}
|
|
3533
3532
|
return a;
|
|
3534
|
-
},
|
|
3533
|
+
}, rS = async (e) => {
|
|
3535
3534
|
var i, s, f, c;
|
|
3536
3535
|
let a = ae(e);
|
|
3537
3536
|
const r = (i = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "下拉绑定类型")) == null ? void 0 : i.value, n = (s = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "类型")) == null ? void 0 : s.value, t = await fx();
|
|
@@ -27849,7 +27848,7 @@ function iT(e) {
|
|
|
27849
27848
|
r.match(/^\.[a-z]+$/) && (e.bookType = r.slice(1)), e.bookType = a[e.bookType] || e.bookType;
|
|
27850
27849
|
}
|
|
27851
27850
|
}
|
|
27852
|
-
function
|
|
27851
|
+
function aS(e, a, r) {
|
|
27853
27852
|
var n = {};
|
|
27854
27853
|
return n.type = "file", n.file = a, iT(n), Ih(e, n);
|
|
27855
27854
|
}
|
|
@@ -28103,7 +28102,7 @@ function pT(e, a, r, n) {
|
|
|
28103
28102
|
}
|
|
28104
28103
|
return e;
|
|
28105
28104
|
}
|
|
28106
|
-
var
|
|
28105
|
+
var tS = {
|
|
28107
28106
|
encode_col: _a,
|
|
28108
28107
|
encode_row: ba,
|
|
28109
28108
|
encode_cell: tr,
|
|
@@ -28142,20 +28141,20 @@ var nS = {
|
|
|
28142
28141
|
SHEET_VERY_HIDDEN: 2
|
|
28143
28142
|
}
|
|
28144
28143
|
};
|
|
28145
|
-
const mT = b0(Mr), { originalPath: gT } = mT,
|
|
28144
|
+
const mT = b0(Mr), { originalPath: gT } = mT, nS = (e) => {
|
|
28146
28145
|
var f, c;
|
|
28147
28146
|
const a = e == null ? void 0 : e.compData, r = (f = a == null ? void 0 : a.find((l) => (l == null ? void 0 : l.key) === "header")) == null ? void 0 : f.contents, n = r == null ? void 0 : r.findIndex((l, o) => {
|
|
28148
28147
|
const { isMainKey: u } = l;
|
|
28149
28148
|
return u;
|
|
28150
28149
|
}), t = (c = a == null ? void 0 : a.find((l) => (l == null ? void 0 : l.key) === "tableContents")) == null ? void 0 : c.contents, i = t == null ? void 0 : t.map((l) => (l = l == null ? void 0 : l.filter((o) => !(o != null && o.id)), l));
|
|
28151
28150
|
return i == null ? void 0 : i.map((l) => l == null ? void 0 : l[n]);
|
|
28152
|
-
},
|
|
28151
|
+
}, iS = async (e, a) => {
|
|
28153
28152
|
const r = e.join("/"), n = sessionStorage.getItem("systemKey");
|
|
28154
28153
|
return await Rn(`${r}${gT}${a}`, n, "");
|
|
28155
|
-
},
|
|
28154
|
+
}, sS = {
|
|
28156
28155
|
TABLE: "Table",
|
|
28157
28156
|
FORM: "Form"
|
|
28158
|
-
},
|
|
28157
|
+
}, fS = (e, a) => a == null ? void 0 : a.find((n) => {
|
|
28159
28158
|
const { name: t } = n;
|
|
28160
28159
|
return t === e;
|
|
28161
28160
|
}), vT = (e, a = "") => {
|
|
@@ -28172,55 +28171,55 @@ const mT = b0(Mr), { originalPath: gT } = mT, iS = (e) => {
|
|
|
28172
28171
|
r.push(...s);
|
|
28173
28172
|
}
|
|
28174
28173
|
return r;
|
|
28175
|
-
},
|
|
28174
|
+
}, cS = (e, a) => !e || !e.length ? [] : e.filter((n) => {
|
|
28176
28175
|
const { comp: t } = n;
|
|
28177
28176
|
return t === a;
|
|
28178
28177
|
});
|
|
28179
28178
|
export {
|
|
28180
|
-
|
|
28179
|
+
$T as A,
|
|
28181
28180
|
Uf as B,
|
|
28182
|
-
|
|
28181
|
+
KT as C,
|
|
28183
28182
|
X0 as D,
|
|
28184
|
-
|
|
28185
|
-
|
|
28186
|
-
|
|
28187
|
-
|
|
28188
|
-
|
|
28183
|
+
zT as E,
|
|
28184
|
+
VT as F,
|
|
28185
|
+
YT as G,
|
|
28186
|
+
FT as H,
|
|
28187
|
+
qT as I,
|
|
28189
28188
|
tn as J,
|
|
28190
28189
|
px as K,
|
|
28191
|
-
|
|
28192
|
-
|
|
28193
|
-
|
|
28194
|
-
|
|
28195
|
-
|
|
28196
|
-
|
|
28197
|
-
|
|
28198
|
-
|
|
28190
|
+
ZT as L,
|
|
28191
|
+
JT as M,
|
|
28192
|
+
rS as N,
|
|
28193
|
+
eS as O,
|
|
28194
|
+
QT as P,
|
|
28195
|
+
AT as Q,
|
|
28196
|
+
UT as R,
|
|
28197
|
+
IT as S,
|
|
28199
28198
|
Eo as T,
|
|
28200
|
-
|
|
28201
|
-
|
|
28202
|
-
|
|
28199
|
+
NT as U,
|
|
28200
|
+
ST as a,
|
|
28201
|
+
LT as b,
|
|
28203
28202
|
Rn as c,
|
|
28204
28203
|
V0 as d,
|
|
28205
|
-
|
|
28206
|
-
|
|
28204
|
+
GT as e,
|
|
28205
|
+
tS as f,
|
|
28207
28206
|
On as g,
|
|
28208
|
-
|
|
28207
|
+
PT as h,
|
|
28209
28208
|
Ph as i,
|
|
28210
|
-
|
|
28209
|
+
sS as j,
|
|
28211
28210
|
vT as k,
|
|
28212
28211
|
go as l,
|
|
28213
|
-
|
|
28214
|
-
|
|
28215
|
-
|
|
28216
|
-
|
|
28217
|
-
|
|
28212
|
+
cS as m,
|
|
28213
|
+
jT as n,
|
|
28214
|
+
BT as o,
|
|
28215
|
+
fS as p,
|
|
28216
|
+
nS as q,
|
|
28218
28217
|
ao as r,
|
|
28219
|
-
|
|
28218
|
+
iS as s,
|
|
28220
28219
|
Rc as t,
|
|
28221
28220
|
b0 as u,
|
|
28222
|
-
|
|
28223
|
-
|
|
28221
|
+
TT as v,
|
|
28222
|
+
aS as w,
|
|
28224
28223
|
Pc as x,
|
|
28225
28224
|
yf as y,
|
|
28226
28225
|
nx as z
|
|
@@ -1,6 +1,6 @@
|
|
|
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 {
|
|
3
|
-
import { g as
|
|
2
|
+
import { _ as m } from "./index-CLasTJZ7.js";
|
|
3
|
+
import { g as _, c as d } from "./index-Dd6fkS6a.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
6
6
|
{
|
|
@@ -60,11 +60,11 @@ const l = n([]), g = c(() => [
|
|
|
60
60
|
setup(x) {
|
|
61
61
|
const e = p({ ...y });
|
|
62
62
|
i(async () => {
|
|
63
|
-
e.tableData = await
|
|
63
|
+
e.tableData = await _("operate");
|
|
64
64
|
});
|
|
65
65
|
const r = (o) => {
|
|
66
66
|
var t;
|
|
67
|
-
|
|
67
|
+
d(o, (t = e.tableData) == null ? void 0 : t.map((a) => a.id), (a) => {
|
|
68
68
|
a && (e.tableData = []);
|
|
69
69
|
});
|
|
70
70
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { watch as n } from "vue";
|
|
2
|
-
import { s as o, p } from "./
|
|
2
|
+
import { s as o, b as p, p as u } from "./menu-DGzm1FYA.js";
|
|
3
3
|
import { s as r } from "./request-CoGtW0Ux.js";
|
|
4
|
-
|
|
5
|
-
const m = u(p), { systemUrl: a } = o(m);
|
|
4
|
+
const m = p(u), { systemUrl: a } = o(m);
|
|
6
5
|
let e = a.value === "" || !a.value ? "http://222.92.178.198:63002" : a.value;
|
|
7
6
|
n(
|
|
8
7
|
() => a.value,
|
|
@@ -11,42 +10,42 @@ n(
|
|
|
11
10
|
},
|
|
12
11
|
{ deep: !0, immediate: !0 }
|
|
13
12
|
);
|
|
14
|
-
function
|
|
13
|
+
function c(t) {
|
|
15
14
|
return r({
|
|
16
15
|
url: `${e}/platform/getdata_department_tree`,
|
|
17
16
|
method: "post",
|
|
18
17
|
data: t
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
|
-
function
|
|
20
|
+
function g(t) {
|
|
22
21
|
return r({
|
|
23
22
|
url: `${e}/platform/getdata_department`,
|
|
24
23
|
method: "post",
|
|
25
24
|
data: t
|
|
26
25
|
});
|
|
27
26
|
}
|
|
28
|
-
function
|
|
27
|
+
function h(t) {
|
|
29
28
|
return r({
|
|
30
29
|
url: `${e}/platform/createdata_department`,
|
|
31
30
|
method: "post",
|
|
32
31
|
data: t
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
|
-
function
|
|
34
|
+
function y(t) {
|
|
36
35
|
return r({
|
|
37
36
|
url: `${e}/platform/updatedata_department`,
|
|
38
37
|
method: "post",
|
|
39
38
|
data: t
|
|
40
39
|
});
|
|
41
40
|
}
|
|
42
|
-
function
|
|
41
|
+
function _(t) {
|
|
43
42
|
return r({
|
|
44
43
|
url: `${e}/platform/deletedata_department`,
|
|
45
44
|
method: "post",
|
|
46
45
|
data: t
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
|
-
function
|
|
48
|
+
function v(t) {
|
|
50
49
|
return r({
|
|
51
50
|
url: `${e}/platform/getdata_department`,
|
|
52
51
|
method: "post",
|
|
@@ -65,15 +64,15 @@ async function l(t) {
|
|
|
65
64
|
platId: t
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
|
-
async function
|
|
67
|
+
async function $(t) {
|
|
69
68
|
return await l(t);
|
|
70
69
|
}
|
|
71
70
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
c as a,
|
|
72
|
+
g as b,
|
|
73
|
+
h as c,
|
|
74
|
+
_ as d,
|
|
75
|
+
$ as e,
|
|
76
|
+
v as g,
|
|
77
|
+
y as u
|
|
79
78
|
};
|