ss-component-new 1.1.595 → 1.1.596
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/{crypto-AruyYTHF.js → crypto-BRyGpjGR.js} +430 -503
- package/dist/{crypto-CyF3hwB4.cjs → crypto-CRbcEKIz.cjs} +11 -11
- package/dist/{index-CtKkkNVO.js → index-4me0w_d_.js} +1 -1
- package/dist/index-B-P2iW5F.cjs +1 -0
- package/dist/index-BFKRXrzQ.cjs +1 -0
- package/dist/{index--x1v2tVg.js → index-BIu-jTfc.js} +1 -1
- package/dist/index-BJi_ECqJ.cjs +1 -0
- package/dist/{index-kHf3YLFM.js → index-BOb-2bQ6.js} +1 -1
- package/dist/{index-OwBy9Gpy.js → index-BhIXAFkM.js} +4 -3
- package/dist/index-BiqWWf_i.cjs +1 -0
- package/dist/{index-ROm5ioP3.js → index-Bk3SowMg.js} +1 -1
- package/dist/{index-CaYc-fdU.cjs → index-BmX_GIIO.cjs} +1 -1
- package/dist/{index-QCZigjx6.js → index-Bq9zvPYq.js} +1 -1
- package/dist/{index-BNRTUsQy.js → index-BrR-UBrL.js} +2 -2
- package/dist/{index-CGjO9Rfc.js → index-BriwvEur.js} +1 -1
- package/dist/{index-DbfXZuSO.js → index-BurAdhpz.js} +2 -2
- package/dist/{index-DulzcrfM.js → index-C1KIIGh8.js} +2 -2
- package/dist/{index-BCEAEGRT.js → index-C7x-mC0R.js} +82 -81
- package/dist/{index-DnfA7Rxr.cjs → index-CB4s2Qtu.cjs} +1 -1
- package/dist/{index-BEhahmXR.cjs → index-CUnz8HhY.cjs} +1 -1
- package/dist/{index-pPqGNFo4.cjs → index-CwYjbsHf.cjs} +1 -1
- package/dist/index-DFdkXYtv.js +4373 -0
- package/dist/{index-BDyEsCzC.cjs → index-DHuIlYC1.cjs} +1 -1
- package/dist/index-DJc0EPc7.cjs +1 -0
- package/dist/{index-thv0_1C7.cjs → index-DSsJ2-ii.cjs} +1 -1
- package/dist/{index-Bn_QEmCm.cjs → index-DTKpspvK.cjs} +1 -1
- package/dist/index-DUjNOx49.cjs +1 -0
- package/dist/{index-DU7mec17.js → index-Db0lTu76.js} +1 -1
- package/dist/index-K05hKXiU.cjs +1 -0
- package/dist/{index-CoXYZaFu.cjs → index-P7MVl516.cjs} +1 -1
- package/dist/index-R71UAxtE.cjs +1 -0
- package/dist/{index-B_wxih7J.js → index-TRcS4V2m.js} +2 -2
- package/dist/{index-B8CqF9dV.js → index-Zt6huWXY.js} +4 -4
- package/dist/{index-kBwJORKQ.js → index-_h1qmm7b.js} +6 -6
- package/dist/{index-CAFMHjaK.js → index-bALhgSe4.js} +22 -21
- package/dist/index-n20urAJT.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-DztskrHi.js → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-C4KOyCan.js} +2 -2
- package/dist/index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CHdcwZZm.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DrVsYebD.js → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang--Ckdd4kI.js} +51 -51
- package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-CUaHvGT0.cjs → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DNiiRDF0.cjs} +10 -10
- package/dist/login-BBvcYktp.cjs +1 -0
- package/dist/login-afGmER0u.js +129 -0
- package/dist/{main-Bv6-X84h.js → main-BdwwE9kL.js} +2 -2
- package/dist/{main-BcnpB9rQ.cjs → main-CBruCFMa.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +3 -3
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/package.json +1 -1
- package/dist/index-BA2jgTGT.cjs +0 -1
- package/dist/index-BYIt5bNH.cjs +0 -1
- package/dist/index-Boa9Jb6y.cjs +0 -1
- package/dist/index-CNZyrawL.cjs +0 -1
- package/dist/index-CWYl8R8Z.cjs +0 -1
- package/dist/index-DMcamypJ.cjs +0 -1
- package/dist/index-DiRp2gT0.cjs +0 -1
- package/dist/index-Dl_vrtf5.cjs +0 -1
- package/dist/index-hsD4_RoH.cjs +0 -1
- package/dist/index-jNlKGITs.js +0 -4369
- package/dist/index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-ooefAkbS.cjs +0 -1
- package/dist/menuIndex-BUbnVBfn.cjs +0 -1
- package/dist/menuIndex-w5mHOEmH.js +0 -60
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),te=require("./index-BmX_GIIO.cjs"),De=require("./index-DSsJ2-ii.cjs"),g=require("./index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DNiiRDF0.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),n=require("./menu-DYsWoy6Z.cjs"),Re=require("./login-BBvcYktp.cjs"),ue=require("./index-BpPyaNFa.cjs"),ge=require("./modelComp-8s0tWZDU.cjs"),W=require("./index-DQm7DvqZ.cjs"),Q=require("./index-B4LVTE2a.cjs"),Ee=require("./index.vue_vue_type_script_setup_true_lang-CKo9xhlB.cjs"),Fe=require("./threeModel-DQIGp3UU.cjs"),Le=require("./index-B-P2iW5F.cjs");require("vue-router");const qe=require("./array-mnEYd91h.cjs"),Se=require("./index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CHdcwZZm.cjs");function Ke(N,X,t,B,R,K){const s=e.resolveComponent("svg-icon"),O=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(O,{mode:N.mode,menuList:N.renderMenuList,onClickMenu:N.clickMenu,onOpenMenu:N.openMenu,onCloseMenu:N.closeMenu},{title:e.withCtx(({menu:b})=>[e.createVNode(s,{name:b.icon??"Fold",style:{width:"clamp(16px, 1.25rem, 20px)",height:"clamp(16px, 1.25rem, 20px)","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(b.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const Ae=de._export_sfc(g._sfc_main,[["render",Ke],["__scopeId","data-v-5c2d7ed2"]]),Oe={class:"bread-content"},ze=["onClick"],Ge={key:0,class:"split-title"},He={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(N,{emit:X}){const t=N,B=e.ref([]),R=X;e.onMounted(()=>{B.value=t==null?void 0:t.breadArray}),e.watch(()=>t==null?void 0:t.breadArray,()=>{B.value=t==null?void 0:t.breadArray},{deep:!0,immediate:!0});const K=s=>{R("click",s)};return(s,O)=>(e.openBlock(),e.createElementBlock("div",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(b,E)=>{var G;return e.openBlock(),e.createElementBlock("div",{key:E,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:ae=>K(b),style:e.normalizeStyle({opacity:((G=B.value)==null?void 0:G.length)-1===E?"0.7":"1"})},e.toDisplayString(b.value),13,ze),E!==B.value.length-1&&Array.isArray(B.value)?(e.openBlock(),e.createElementBlock("div",Ge,e.toDisplayString("/"))):e.createCommentVNode("",!0)])}),128))]))}},$e=de._export_sfc(He,[["__scopeId","data-v-ded7e2bd"]]),Xe={class:"structure-buttons"},Je={class:"structure-paths"},We={class:"client-header-user"},Qe={class:"model-select"},Ye={class:"model-show"},Ze={class:"model-fill"},et={class:"client-header-menu"},tt={class:"client-header-user"},ot={class:"drop-menu"},at={class:"client-main-operate","element-loading-text":"正在加载页面数据..."},nt={key:0,class:"item-view-group"},lt=e.defineComponent({__name:"index2",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},setup(N){const X=Q.useUnit(n.pinia),{selectTitle:t}=n.storeToRefs(X),B=Re.useLoginState(),{loginUserInfo:R}=n.storeToRefs(B),K=ge.useModelComp(n.pinia),{isEdit:s,routeToChildPath:O}=n.storeToRefs(K),b=n.useMenuState(n.pinia),{importLoading:E,activeAsideMenu:G,contentLoading:ae}=n.storeToRefs(b),v=e.ref(""),U=e.computed(()=>G.value.isRouter),L=()=>{sessionStorage.clear(),window.location.reload()},q=async()=>{var m,A,Z,ee;b.setImportLoading(!0);const T=await n.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey")}});if(((m=T==null?void 0:T.data)==null?void 0:m.code)===200){let J=(ee=(Z=(A=T==null?void 0:T.data)==null?void 0:A.result)==null?void 0:Z.map($=>{var ne;if(((ne=$==null?void 0:$.key)==null?void 0:ne.layer)!=="superAdmin")return $==null?void 0:$.id}))==null?void 0:ee.filter($=>$);await n.batchDeleteInsofDataApi({ids:J}),b.setRawMenus([])}b.setImportLoading(!1)},Y=()=>{b.setActiveMenuPath(O.value),K.setRouteToChildPath("")};return(T,m)=>{const A=e.resolveComponent("el-button"),Z=e.resolveComponent("el-avatar"),ee=e.resolveComponent("el-header"),J=e.resolveComponent("el-container"),$=e.resolveComponent("el-icon"),ne=e.resolveComponent("el-input"),C=e.resolveComponent("el-aside"),I=e.resolveComponent("router-view"),V=e.resolveComponent("el-main"),F=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createVNode(J,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(ee,{class:"client-structure-header"},{default:e.withCtx(()=>{var k;return[e.createElementVNode("div",Xe,[e.createVNode(A,{id:"transparentBgButton",onClick:e.unref(g.onBack)},{default:e.withCtx(()=>m[2]||(m[2]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[2]},8,["onClick"]),e.createVNode(A,{id:"transparentBgButton",onClick:m[0]||(m[0]=r=>{var z,H;return e.unref(g.clickSavePage)((H=(z=e.unref(t))==null?void 0:z.map(se=>se.value))==null?void 0:H.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(ue.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[m[3]||(m[3]=e.createTextVNode(" 保存页面 "))]),_:1,__:[3]})]),e.createElementVNode("div",Je,[e.createVNode($e,{breadArray:e.unref(t),onClick:e.unref(g.onClick)},null,8,["breadArray","onClick"])]),e.createElementVNode("div",We,[e.renderSlot(T.$slots,"default",{},void 0,!0),e.createVNode(Z,{size:35,src:(k=e.unref(R))==null?void 0:k.avatarUrl},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString(((r=e.unref(R))==null?void 0:r.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(s)==="edit"?(e.openBlock(),e.createBlock(J,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Qe,[e.createVNode(te.modelSelect)]),e.createElementVNode("div",Ye,[e.createVNode(te.modelShow)]),e.createElementVNode("div",Ze,[e.createVNode(te.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(s)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(J,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(ee,{class:"client-header"},{default:e.withCtx(()=>[m[6]||(m[6]=e.createElementVNode("div",{class:"client-header-logo"}," ISIP ",-1)),e.createElementVNode("div",et,[e.createVNode(Ae,{mode:"horizontal"})]),e.createElementVNode("div",tt,[e.createVNode(ne,{modelValue:v.value,"onUpdate:modelValue":m[1]||(m[1]=k=>v.value=k),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode($,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.search_default))]),_:1})]),_:1},8,["modelValue"]),N.showButton?(e.openBlock(),e.createBlock(A,{key:0,id:"transparentBgButton",onClick:e.unref(g.clickGenerateApp)},{icon:e.withCtx(()=>[e.createVNode(ue.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[m[4]||(m[4]=e.createTextVNode(" 生成APP "))]),_:1,__:[4]},8,["onClick"])):e.createCommentVNode("",!0),N.showButton&&e.unref(s)==="view"?(e.openBlock(),e.createBlock(A,{key:1,id:"transparentBgButton",onClick:e.unref(g.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(ue.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[m[5]||(m[5]=e.createTextVNode(" 修改布局 "))]),_:1,__:[5]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(T.$slots,"default",{},void 0,!0),e.createVNode(W._sfc_main,null,{dropTitle:e.withCtx(()=>{var k;return[e.createVNode(Ee._sfc_main,{size:"35",avatarUrl:(k=e.unref(R))==null?void 0:k.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString(((r=e.unref(R))==null?void 0:r.account)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",ot,[e.createVNode(W._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:q,modelValue:"清空数据",buttonType:""}),e.createVNode(W._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:L,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3,__:[6]}),e.createVNode(J,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(V,{class:"client-main"},{default:e.withCtx(()=>{var k;return[e.createVNode(C,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode(De.default,{mode:"vertical"})]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",at,[U.value?(e.openBlock(),e.createBlock(I,{key:0})):e.createCommentVNode("",!0),e.unref(O)!==""?(e.openBlock(),e.createBlock(W._sfc_main$1,{key:1,class:"calculator-content back-content",onClickTrigger:Y,modelValue:"返回"})):e.createCommentVNode("",!0),U.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList((k=e.unref(n.cloneDeep)(e.unref(g.showItems)))==null?void 0:k.filter(r=>r.comp!=="FormTop"),(r,z)=>{var H;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:z},[((H=r==null?void 0:r.comp)==null?void 0:H.toUpperCase())!=="TABLE"&&r.name?(e.openBlock(),e.createElementBlock("div",nt,e.toDisplayString(r.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g.getComponents)(r.comp)),{compName:r.name,itemData:r==null?void 0:r.compData,childItemData:r==null?void 0:r.itemChildData,key:(r==null?void 0:r.id)??z,onChange:e.unref(g.onChange),index:(r==null?void 0:r.id)??z,onContentChange:e.unref(g.onContentChange),onPageChange:e.unref(g.onPageChange)},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128))])),[[F,e.unref(ae)]])]}),_:1})]),_:1})]),_:3})),[[e.vShow,e.unref(s)==="view"],[F,e.unref(E)]])],64)}}}),rt=de._export_sfc(lt,[["__scopeId","data-v-ac977f64"]]),_e=[{key:"FitCurve_Eleven",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35326658522693",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources"},{key:"MakeShape",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018179530309",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018179530309",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources"},{key:"FillEmpty",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018289382469",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018289382469",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources"},{key:"ToolPathFakeFast",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35484063607109",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35484063607109",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources"},{key:"FiveAxisCalculator",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35237389477957",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35237389477957",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources"},{key:"DetectionAlgorithm",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"},{key:"FeatureSelectionAlgorithm_FFS",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35277984187973",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35277984187973",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources"},{key:"AIParameterOptimization",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"}],we=[{key:"型线生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"},{key:"曲面生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"},{key:"叶片生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"},{key:"轨迹规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"},{key:"加工规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"},{key:"产品检测",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"},{key:"参数筛选训练方法",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"}],it={class:"structure-buttons"},st={class:"structure-paths"},ct={class:"client-header-user"},ut={class:"model-select"},dt={class:"model-show"},pt={class:"model-fill"},mt={class:"client-header-menu"},ht={class:"client-header-user"},ft={class:"drop-menu"},gt={class:"client-main-operate","element-loading-text":"正在加载页面数据..."},Ct={key:0,class:"item-view-group"},_t=e.defineComponent({__name:"index2",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},emits:["showChild","buildContent"],setup(N,{emit:X}){const t=Q.useUnit(n.pinia),B=e.ref(!1);e.ref(0),e.ref(!1);const{selectTitle:R}=n.storeToRefs(t),K=e.ref(!1),s=e.ref(!1);e.ref(!1);const O=Q.useTableComp(n.pinia),b=e.ref(!1),{tableShowThree:E}=n.storeToRefs(O),G=e.ref(),ae=Re.useLoginState(),{loginUserInfo:v}=n.storeToRefs(ae);e.ref(null);const U=ge.useModelComp(n.pinia),{isEdit:L}=n.storeToRefs(U),q=n.useMenuState(n.pinia),Y=Le.useFormComp(n.pinia),{objUrl:T,blobUrls:m}=n.storeToRefs(Y),A=e.ref(null);e.ref(!1);const Z=e.ref(),ee=e.ref(!0);e.ref(!1);const{importLoading:J,activeMenuPath:$,activeTopMenuPath:ne,platName:C,activeAsideMenu:I,contentLoading:V}=n.storeToRefs(q),F=e.ref(!1),k=e.ref(!1),r=e.ref(!1),z=X;e.watch(()=>$.value,async o=>{o&&(r.value=!0),o==="弯管仿真加工管理/仿真动画生成"?F.value=!0:F.value=!1,o==="弯管仿真加工管理/程序输出"?k.value=!0:k.value=!1,we!=null&&we.find(l=>{var a;return(l==null?void 0:l.key)===((a=o==null?void 0:o.split("/"))==null?void 0:a[(o==null?void 0:o.split("/").length)-1])})?b.value=!0:b.value=!1},{immediate:!0});const H=o=>{if((o==null?void 0:o.type)==="table"){let l=Object.values(o==null?void 0:o.row),a=l==null?void 0:l.find(c=>typeof c=="string"&&((c==null?void 0:c.includes(".urdf"))||(c==null?void 0:c.includes(".obj"))));a&&(G.value={url:a,row:o==null?void 0:o.row},z("showChild",{url:a,row:o==null?void 0:o.row}))}},se=()=>{sessionStorage.clear(),window.location.reload()},he=async()=>{var l,a,c,y;q.setImportLoading(!0);const o=await n.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey")}});if(((l=o==null?void 0:o.data)==null?void 0:l.code)===200){let i=(y=(c=(a=o==null?void 0:o.data)==null?void 0:a.result)==null?void 0:c.map(p=>{var d;if(((d=p==null?void 0:p.key)==null?void 0:d.layer)!=="superAdmin")return p==null?void 0:p.id}))==null?void 0:y.filter(p=>p);await n.batchDeleteInsofDataApi({ids:i}),q.setRawMenus([])}q.setImportLoading(!1)},pe=async o=>{var c,y,i,p,d,S,w;const l=(c=o==null?void 0:o.split("/"))==null?void 0:c[0],a=await n.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey"),pageKey:l}});return((y=a==null?void 0:a.data)==null?void 0:y.type)==="success"?((w=(S=(d=(p=(i=a==null?void 0:a.data)==null?void 0:i.result)==null?void 0:p[0])==null?void 0:d.value)==null?void 0:S.tableData)==null?void 0:w.隐藏三维显示)!==!0:!0};e.watch(()=>g.showItems.value,()=>{var o,l,a,c,y;if(((o=g.showItems.value)==null?void 0:o.length)===2&&((l=g.showItems.value)!=null&&l.find(i=>(i==null?void 0:i.name)==="输入"))&&((a=g.showItems.value)!=null&&a.find(i=>(i==null?void 0:i.name)==="输出"))){const i=(c=g.showItems.value)==null?void 0:c.find(p=>(p==null?void 0:p.name)==="输出");s.value=((y=i==null?void 0:i.comp)==null?void 0:y.toUpperCase())==="FORM",K.value=!0}else K.value=!1,s.value=!1},{deep:!0,immediate:!0}),e.watch(()=>$.value,async()=>{$.value&&(ee.value=await pe($.value))},{deep:!0,immediate:!0}),e.watch(()=>[T.value,A.value],()=>{var o;((o=T.value)==null?void 0:o.length)>0&&A.value&&A.value.addModelsFromUrls(T.value)},{immediate:!0,deep:!0}),e.watch(()=>[m==null?void 0:m.value],async()=>{var o,l,a,c,y;if(m!=null&&m.value&&((o=m==null?void 0:m.value)==null?void 0:o.length)>0&&!b.value&&!((l=g.showItems.value)!=null&&l.find(i=>(i==null?void 0:i.name)==="输入")&&((a=g.showItems.value)!=null&&a.find(i=>(i==null?void 0:i.name)==="输出")))){B.value=!0;let i=[];const p=await((c=n.cloneDeep(m==null?void 0:m.value))==null?void 0:c.map(async d=>{var f,_,h,j,M,re,fe,ye,ve,ke;let S,w,u;d!=null&&d.blob.includes("undefined")?u=(_=(f=d==null?void 0:d.blob)==null?void 0:f.split("undefined,"))==null?void 0:_[1]:u=d==null?void 0:d.blob;let D=u==null?void 0:u.split(",");if((D==null?void 0:D.length)>1){let ie=await(D==null?void 0:D.map(async P=>{var oe,Be,Ve,Ne,xe,be;S=await n.axios.get(P,{responseType:"blob",headers:{"Content-Type":"application/json"}});let ce=[];if(((oe=d==null?void 0:d.mtlBlobs)==null?void 0:oe.length)>0){let je=await((Be=d==null?void 0:d.mtlBlobs)==null?void 0:Be.map(async Ue=>{let Te=await n.axios.get(Ue,{responseType:"blob",headers:{"Content-Type":"application/json"}});return ce.push(new Blob([Te.data],{type:"application/octet-stream;charset=UTF-8"})),Te}));await Promise.all(je)}return((Ne=P==null?void 0:P.split("."))==null?void 0:Ne[((Ve=P==null?void 0:P.split("."))==null?void 0:Ve.length)-1])!=="undefined"&&i.push({suffix:"."+((be=P==null?void 0:P.split("."))==null?void 0:be[((xe=P==null?void 0:P.split("."))==null?void 0:xe.length)-1]),blob:new Blob([S.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ce}),S}));await Promise.all(ie)}else if(!(u!=null&&u.includes("https://"))&&!(u!=null&&u.includes("http://"))){S=await W.downloadAvatarApi({url:u});let ie=[];if(((h=d==null?void 0:d.mtlBlobs)==null?void 0:h.length)>0){let P=await((j=d==null?void 0:d.mtlBlobs)==null?void 0:j.map(async ce=>{let oe=await W.downloadAvatarApi({url:ce});return ie.push(new Blob([oe.data],{type:"application/octet-stream;charset=UTF-8"})),oe}));await Promise.all(P)}w={suffix:"."+((re=u==null?void 0:u.split("."))==null?void 0:re[((M=u==null?void 0:u.split("."))==null?void 0:M.length)-1]),blob:new Blob([S.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ie}}else{S=await n.axios.get(u,{responseType:"blob",headers:{"Content-Type":"application/json"}});let ie=[];if(((fe=d==null?void 0:d.mtlBlobs)==null?void 0:fe.length)>0){let P=await((ye=d==null?void 0:d.mtlBlobs)==null?void 0:ye.map(async ce=>{let oe=await n.axios.get(ce,{responseType:"blob",headers:{"Content-Type":"application/json"}});return ie.push(new Blob([oe.data],{type:"application/octet-stream;charset=UTF-8"})),oe}));await Promise.all(P)}w={suffix:"."+((ke=u==null?void 0:u.split("."))==null?void 0:ke[((ve=u==null?void 0:u.split("."))==null?void 0:ve.length)-1]),blob:new Blob([S.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ie}}w&&i.push(w)}));await Promise.all(p),(i==null?void 0:i.length)!==0&&((y=A.value)==null||y.loadModelByDefaultPath(i))}},{immediate:!0,deep:!0});const me=()=>{B.value=!1,A.value=null};e.watch(()=>E.value,async()=>{var l,a,c,y;if(E.value!==""&&E.value){let i=(l=$.value)==null?void 0:l.split("/"),p=i[(i==null?void 0:i.length)-2];const S=(((a=_e==null?void 0:_e.find(D=>(D==null?void 0:D.key)===p))==null?void 0:a.download)??"")+"/"+E.value,w=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),u=await n.axios.post(S,null,{responseType:"blob",headers:{Authorization:w,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});var o=new Blob([u.data],{type:"application/octet-stream;charset=UTF-8"});""+((y=(c=E.value)==null?void 0:c.split("."))==null?void 0:y[1])}},{deep:!0,immediate:!0});const x=e.ref("");e.ref("open"),e.ref("open"),e.ref(!1),e.computed(()=>g.showItems.value);const le=e.computed(()=>I.value.isRouter),Me=o=>{let l=n.cloneDeep(o),a=[],c=[];return l==null||l.forEach((y,i)=>{i===(o==null?void 0:o.length)-1?(c.push(y),a.push(c)):((c==null?void 0:c.length)!==0&&y.includes(".obj")&&(a.push(c),c=[]),c.push(y))}),a},Pe=async()=>{let o={};const l=await Q.getItemData("弯管仿真加工管理/仿真动画生成",sessionStorage.getItem("systemKey"),"");l==null||l.forEach(a=>{var c,y,i,p,d,S;if((a==null?void 0:a.comp)==="Table"){let w=[],u=(i=(y=(c=a==null?void 0:a.compData)==null?void 0:c.find(f=>(f==null?void 0:f.key)==="header"))==null?void 0:y.contents)==null?void 0:i.map(f=>f==null?void 0:f.label),D=(S=(d=(p=a==null?void 0:a.compData)==null?void 0:p.find(f=>(f==null?void 0:f.key)==="tableContents"))==null?void 0:d.contents)==null?void 0:S.map(f=>(f=f==null?void 0:f.filter(_=>!(_!=null&&_.id)),f));D==null||D.forEach(f=>{w.push(Q.getValueToObjectValue(f,u==null?void 0:u.filter(_=>_!=="操作")))}),o[a.name]=w,o[a.name+"Content"]=a}}),Z.value=o},Ce=e.ref(!1),Ie=async()=>{var o,l;if(Ce.value=!0,G.value){const a=G.value;let c=[];if(typeof(a==null?void 0:a.url)=="string"){let y=(o=a==null?void 0:a.url)==null?void 0:o.split(","),i=(l=Me(y))==null?void 0:l.map(async p=>{var d,S;if((p==null?void 0:p.length)===1){let w=p==null?void 0:p.map(async u=>{var h,j;let D=await n.axios.get(u,{responseType:"blob",headers:{"Content-Type":"application/json"}});const f=new Blob([D.data],{type:"application/octet-stream;charset=UTF-8"});let _={suffix:"."+((j=u==null?void 0:u.split("."))==null?void 0:j[((h=u==null?void 0:u.split("."))==null?void 0:h.length)-1]),blob:f,mtlBlobs:[]};return c.push(_),_});return await Promise.all(w),w}else{let w=p==null?void 0:p.find(M=>M==null?void 0:M.includes(".obj")),u=await n.axios.get(w,{responseType:"blob",headers:{"Content-Type":"application/json"}});const D=new Blob([u.data],{type:"application/octet-stream;charset=UTF-8"});let f=p==null?void 0:p.filter(M=>M==null?void 0:M.includes(".mtl")),_=[],h=f==null?void 0:f.map(async M=>{let re=await n.axios.get(w,{responseType:"blob",headers:{"Content-Type":"application/json"}});const fe=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"});return _.push(fe),re});await Promise.all(h);let j={suffix:"."+((S=w==null?void 0:w.split("."))==null?void 0:S[((d=w==null?void 0:w.split("."))==null?void 0:d.length)-1]),blob:D,mtlBlobs:_};return c.push(j),j}});await Promise.all(i)}A.value.loadModelByDefaultPath(c)}};return(o,l)=>{const a=e.resolveComponent("el-dialog"),c=e.resolveComponent("el-button"),y=e.resolveComponent("el-avatar"),i=e.resolveComponent("el-header"),p=e.resolveComponent("el-container"),d=e.resolveComponent("el-icon"),S=e.resolveComponent("el-input"),w=e.resolveComponent("el-aside"),u=e.resolveComponent("router-view"),D=e.resolveComponent("el-main"),f=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(a,{modelValue:Ce.value,"onUpdate:modelValue":l[0]||(l[0]=_=>Ce.value=_),style:{height:"700px",width:"1800px"}},{default:e.withCtx(()=>[e.createVNode(Fe.default,{ref_key:"threeModelRef",ref:A,onGetAnimationData:Pe,animationData:Z.value},null,8,["animationData"])]),_:1},8,["modelValue"]),e.withDirectives(e.createVNode(p,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(i,{class:"client-structure-header"},{default:e.withCtx(()=>{var _;return[e.createElementVNode("div",it,[e.createVNode(c,{id:"transparentBgButton",onClick:e.unref(g.onBack)},{default:e.withCtx(()=>l[3]||(l[3]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[3]},8,["onClick"]),e.createVNode(c,{id:"transparentBgButton",onClick:l[1]||(l[1]=h=>{var j,M;return e.unref(g.clickSavePage)((M=(j=e.unref(R))==null?void 0:j.map(re=>re.value))==null?void 0:M.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(ue.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[l[4]||(l[4]=e.createTextVNode(" 保存页面 "))]),_:1,__:[4]})]),e.createElementVNode("div",st,[e.createVNode($e,{breadArray:e.unref(R),onClick:e.unref(g.onClick)},null,8,["breadArray","onClick"])]),e.createElementVNode("div",ct,[e.renderSlot(o.$slots,"default",{},void 0,!0),e.createVNode(y,{size:35,src:(_=e.unref(v))==null?void 0:_.avatarUrl},{default:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(((h=e.unref(v))==null?void 0:h.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(L)==="edit"?(e.openBlock(),e.createBlock(p,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",ut,[e.createVNode(te.modelSelect)]),e.createElementVNode("div",dt,[e.createVNode(te.modelShow)]),e.createElementVNode("div",pt,[e.createVNode(te.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(L)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(p,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(i,{class:"client-header"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"client-header-logo",onClick:Ie},e.toDisplayString(e.unref(C)===""?"CPMPIP":e.unref(C)),1),e.createElementVNode("div",mt,[e.createVNode(Ae,{mode:"horizontal"})]),e.createElementVNode("div",ht,[e.createVNode(S,{modelValue:x.value,"onUpdate:modelValue":l[2]||(l[2]=_=>x.value=_),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode(d,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.search_default))]),_:1})]),_:1},8,["modelValue"]),N.showButton?(e.openBlock(),e.createBlock(c,{key:0,id:"transparentBgButton",onClick:e.unref(g.clickGenerateApp)},{icon:e.withCtx(()=>[e.createVNode(ue.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[l[5]||(l[5]=e.createTextVNode(" 生成APP "))]),_:1,__:[5]},8,["onClick"])):e.createCommentVNode("",!0),N.showButton&&e.unref(L)==="view"?(e.openBlock(),e.createBlock(c,{key:1,id:"transparentBgButton",onClick:e.unref(g.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(ue.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[l[6]||(l[6]=e.createTextVNode(" 修改布局 "))]),_:1,__:[6]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0),e.createVNode(W._sfc_main,null,{dropTitle:e.withCtx(()=>{var _;return[e.createVNode(Ee._sfc_main,{size:"35",avatarUrl:(_=e.unref(v))==null?void 0:_.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(((h=e.unref(v))==null?void 0:h.account)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",ft,[e.createVNode(W._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:he,modelValue:"清空数据",buttonType:""}),e.createVNode(W._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:se,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3}),e.createVNode(p,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(D,{class:"client-main"},{default:e.withCtx(()=>{var _;return[e.createVNode(w,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode(De.default,{mode:"vertical"})]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",gt,[le.value?(e.openBlock(),e.createBlock(u,{key:0})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList((_=e.unref(n.cloneDeep)(e.unref(g.showItems)))==null?void 0:_.filter(h=>h.comp!=="FormTop"),(h,j)=>{var M;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:j},[((M=h==null?void 0:h.comp)==null?void 0:M.toUpperCase())!=="TABLE"&&h.name?(e.openBlock(),e.createElementBlock("div",Ct,e.toDisplayString(h.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g.getComponents)(h.comp)),{compName:h.name,itemData:h==null?void 0:h.compData,childItemData:h==null?void 0:h.itemChildData,key:(h==null?void 0:h.id)??j,onChange:e.unref(g.onChange),index:(h==null?void 0:h.id)??j,onContentChange:e.unref(g.onContentChange),onPageChange:e.unref(g.onPageChange),onRowClick:H},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128))])),[[f,e.unref(V)]])]}),_:1})]),_:1})]),_:3})),[[e.vShow,e.unref(L)==="view"],[f,e.unref(J)]]),e.createElementVNode("div",null,[e.createVNode(W.ssDialog,{visible:B.value,onBeforeDestroy:me,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(Fe.default,{ref_key:"threeModelRef",ref:A},null,512)]),_:1},8,["visible"])])],64)}}}),wt=de._export_sfc(_t,[["__scopeId","data-v-825916d9"]]),yt={class:"system-wrap"},vt={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},platform:{type:String,default:"browser"},showButton:{type:Boolean,default:!0},content:String,jsonContents:Array},emits:["buildContent","showChild"],setup(N,{emit:X}){const t=ge.useModelComp(n.pinia),B=Q.useUnit(n.pinia),R=n.useMenuState();e.ref(!1);const K=e.ref(!0),s=N,O=X,b=v=>{O("showChild",v)},E=e.computed(()=>{switch(s==null?void 0:s.platform){case"browser":return Se.browserThemeConfig;case"client":return Se.clientThemeConfig}}),G=v=>{const U=document.documentElement;v==null||v.forEach(L=>{U.style.setProperty(L.name,L.value)})};e.watch(()=>s.platform,(v,U)=>{v&&G(E.value)},{immediate:!0});const ae=()=>{O("buildContent")};return e.watch(()=>[s==null?void 0:s.content,s==null?void 0:s.jsonContents],async()=>{var L,q,Y,T;if(((L=s==null?void 0:s.jsonContents)==null?void 0:L.length)>0){t.setOriginalData(s==null?void 0:s.jsonContents);return}if(!(s!=null&&s.content)||((q=s==null?void 0:s.content)==null?void 0:q.length)===0)return;K.value=!0,R.setImportLoading(!0);let v=[],U=[];B.setSelectTitle([]),B.setSelectIndex(""),B.setSelectMenu(""),(T=(Y=s==null?void 0:s.content)==null?void 0:Y.filter(m=>m!==""))==null||T.forEach(m=>{U.push(g.expandToNewContents(m))}),v=U==null?void 0:U[0],await g.savePageDataAsync(v),await Q.loadingSystemType(),t.setOriginalData(v),R.setImportLoading(!1)},{deep:!0,immediate:!0}),(v,U)=>(e.openBlock(),e.createElementBlock("div",yt,[N.platform==="browser"?(e.openBlock(),e.createBlock(rt,{key:0,showButton:N.showButton},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default",{},void 0,!0)]),_:3},8,["showButton"])):(e.openBlock(),e.createBlock(wt,{key:1,windowConfig:N.windowConfig,showButton:N.showButton,onBuildContent:ae,onShowChild:b},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default",{},void 0,!0)]),_:3},8,["windowConfig","showButton"]))]))}},kt=de._export_sfc(vt,[["__scopeId","data-v-5e89b0de"]]),Bt={class:"add-model-content"},Vt={key:0,class:"model-operate"},Nt={class:"model-select"},xt={class:"model-fill"},bt={key:1,class:"model-view"},Tt={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},pathContent:{type:String,default:""},pageKey:{type:String,default:""}},emits:["change","contentChange","buildContent","openThreeBuild","threeData"],setup(N,{emit:X}){const t=N,B=X,R=e.ref([]),K=e.ref(0),s=e.ref([]),O=e.ref([]),b=e.ref(0),E=ge.useModelComp(n.pinia),G=n.useMenuState(n.pinia),{itemData:ae,originalData:v}=n.storeToRefs(E),{activeMenuPath:U,platform:L}=n.storeToRefs(G),q=e.ref(null),Y=e.ref(0),T=e.ref([]);e.ref("");const m=e.ref(0),A=()=>{B("buildContent")};e.watch(()=>t==null?void 0:t.pageKey,async()=>{let C={};if((t==null?void 0:t.pageKey)!==""){const I=await Q.getItemData(t==null?void 0:t.pageKey,sessionStorage.getItem("systemKey"),"",t==null?void 0:t.pageKey);I==null||I.forEach(V=>{var F,k,r,z,H,se;if((V==null?void 0:V.comp)==="Table"){let he=[],pe=(r=(k=(F=V==null?void 0:V.compData)==null?void 0:F.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:k.contents)==null?void 0:r.map(x=>x==null?void 0:x.label),me=(se=(H=(z=V==null?void 0:V.compData)==null?void 0:z.find(x=>(x==null?void 0:x.key)==="tableContents"))==null?void 0:H.contents)==null?void 0:se.map(x=>(x=x==null?void 0:x.filter(le=>!(le!=null&&le.id)),x));me==null||me.forEach(x=>{he.push(Q.getValueToObjectValue(x,pe==null?void 0:pe.filter(le=>le!=="操作")))}),C[V.name]=he,C[V.name+"Content"]=V}}),B("threeData",C)}},{deep:!0,immediate:!0});const Z=C=>{B("openThreeBuild",C)};e.watch(()=>t==null?void 0:t.pathContent,()=>{(t==null?void 0:t.pathContent)!==""&&E.setSystemPath(t==null?void 0:t.pathContent)},{deep:!0,immediate:!0});const ee=C=>{B("contentChange",C)},J=C=>{var V;const I=(V=n.cloneDeep(C==null?void 0:C.wholeValue))==null?void 0:V.map(F=>{var k;return(F==null?void 0:F.comp)==="Form"&&(F.compData=(k=F.compData)==null?void 0:k.map(r=>((r==null?void 0:r.key)==="formContent"&&(r.contents=qe.arrayToNumberArray(r==null?void 0:r.contents)),r))),F});B("change",{originalContents:v.value,currentContents:C==null?void 0:C.wholeValue,editContent:C==null?void 0:C.editValue,arrayToContents:I})};e.watch(()=>s.value,()=>{m.value===s.value.length&&s.value.length!==0&&(R.value=s.value)},{deep:!0,immediate:!0});const $=()=>{q.value!==null&&q.value.click()},ne=async C=>{const I=C.target.files;if(!I)return;new FileReader,R.value=[],s.value=[],m.value=I.length;const V=Array.from(I).map(async F=>await new Promise(k=>{const r=new FileReader;r.onload=z=>{try{s.value.push(z.target.result),Y.value++}catch(H){console.error("解析失败:",H);return}},r.onerror=()=>k(`读取 ${F.name} 失败`),r.readAsText(F),C.target.value="",q.value=null,K.value++}));await Promise.all(V)};return e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],async()=>{await Q.loadingSystemType(),R.value=t.content,O.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>Y.value,()=>{var C;((C=T.value)==null?void 0:C.length)!==0&&(E.setOriginalData(T.value),E.setItemData(T.value))},{deep:!0,immediate:!0}),(C,I)=>{const V=e.resolveComponent("svg-icon"),F=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Bt,[(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",Vt,[e.createElementVNode("div",Nt,[e.createVNode(te.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:b.value},[e.createVNode(te.modelShow)])),e.createElementVNode("div",xt,[e.createVNode(te.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",bt,[(e.openBlock(),e.createBlock(kt,{showButton:N.showButton,platform:e.unref(L),content:R.value,onChange:J,jsonContents:O.value,onContentChange:ee,onBuildContent:A,key:b.value,onShowChild:Z},{default:e.withCtx(()=>{var k;return[((k=t==null?void 0:t.jsonContents)==null?void 0:k.length)===0&&(t!=null&&t.showButton)?(e.openBlock(),e.createBlock(F,{key:0,id:"transparentBgButton",onClick:$},{icon:e.withCtx(()=>[e.createVNode(V,{name:"import"})]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("input",{type:"file",key:K.value,ref_key:"fileInput",ref:q,accept:".txt, .inm, .iml, .imd",onChange:ne,style:{display:"none"},multiple:""},null,32)),I[0]||(I[0]=e.createTextVNode(" 导入模型 "))]),_:1,__:[0]})):e.createCommentVNode("",!0)]}),_:1},8,["showButton","platform","content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},Ft=de._export_sfc(Tt,[["__scopeId","data-v-c4f9c92c"]]);exports.default=Ft;
|
|
@@ -1,5 +1,5 @@
|
|
|
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 u, openBlock as m, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
|
|
2
|
-
import { S as x } from "./index-
|
|
2
|
+
import { S as x } from "./index-C1KIIGh8.js";
|
|
3
3
|
import { D as B } from "./index-CjrWmm5T.js";
|
|
4
4
|
import { s as F, e as y } from "./index-CdV-dIPz.js";
|
|
5
5
|
import { u as S, p as I, s as N } from "./menu-Qw1eGtzq.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),g=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),g=require("./index-B-P2iW5F.cjs"),c=require("./menu-DYsWoy6Z.cjs"),B=require("./modelComp-8s0tWZDU.cjs");require("./array-mnEYd91h.cjs");const y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T=require("./index-C31XRLFj.cjs"),F=require("./index-DQm7DvqZ.cjs"),O=require("./index-l52VRsV3.cjs"),R={class:"type-select"},b=["onClick"],L={class:"list-icon"},U={__name:"index",setup(V){const u=B.useModelComp(c.pinia),{itemData:r}=c.storeToRefs(u),C=_=>{const d=c.cloneDeep(r.value);d.push({comp:_.comp,name:_.name,compData:[]}),u.setItemData(d)};return(_,d)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g.slotContent),(f,v)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:v},[e.createElementVNode("div",{class:"list-content",onClick:k=>C(f)},[e.createElementVNode("div",L,[e.createVNode(i,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,b)]))),128))])}}},z=y._export_sfc(U,[["__scopeId","data-v-1f87163f"]]),H={class:"fill-content"},j={class:"operate-content"},A={class:"collapse-title-content"},G={class:"collapse-title-item"},J={key:1},K=["onClick"],P={class:"icon-content"},Q={key:0,class:"edit-content"},W=["onClick"],X={class:"comp-child"},Y={__name:"index",setup(V){const u=B.useModelComp(c.pinia),{itemData:r,originalData:C}=c.storeToRefs(u),_=e.ref([]);e.ref([]);const d=e.ref([]),i=e.ref([]),f=s=>{var n;let a=(n=c.cloneDeep(i.value))==null?void 0:n.map((t,o)=>(s===o&&(t.content=!0),t));i.value=a},v=s=>{var n;let a=(n=c.cloneDeep(i.value))==null?void 0:n.map((t,o)=>(s===o&&(t.content=!1),t));i.value=a,_.value=c.cloneDeep(r.value)},k=(s,a)=>{var h;let n=(h=c.cloneDeep(i.value))==null?void 0:h.map((l,m)=>(s===m&&(l.content=!1),l));i.value=n;const t=c.cloneDeep(r.value),o=t==null?void 0:t.filter((l,m)=>(m===s&&(l.name=a),l));u.setOriginalData(o),u.setItemData(o)};e.watch(()=>r.value,()=>{var s,a,n;!r.value||((s=r.value)==null?void 0:s.length)===0?_.value=[]:_.value=(a=c.cloneDeep(r.value))==null?void 0:a.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),d.value=_.value,i.value=(n=c.cloneDeep(d.value))==null?void 0:n.map((t,o)=>({id:o,content:!1}))},{deep:!0,immediate:!0});const S=s=>g.getComponent(s),M=(s,a,n)=>{var o,h;if(!s)return;let t=c.cloneDeep(r.value);t=(o=t==null?void 0:t.map((l,m)=>(m===n&&(l.compData=s),l)))==null?void 0:o.filter(l=>(l==null?void 0:l.comp)!=="methodButton"),i.value=(h=c.cloneDeep(t))==null?void 0:h.map((l,m)=>({id:m,content:!1})),u.setOriginalData(t),u.setItemData(t)},q=s=>{O.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const a=c.cloneDeep(r.value),n=a==null?void 0:a.filter((t,o)=>o!==s);u.setOriginalData(n),u.setItemData(n),c.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(s,a)=>{const n=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",H,[a[1]||(a[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",j,[e.createVNode(T.default,{class:"collapse-content",collapseContents:_.value},{title:e.withCtx(({item:t,index:o})=>{var h,l,m,D,E,N,w,x,$,I;return[e.createElementVNode("div",A,[e.createElementVNode("div",G,[(l=(h=i.value)==null?void 0:h.find(p=>p.id===o))!=null&&l.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:t.name&&t.name!==""?"8px":"0px"})},e.toDisplayString(t.name),5)),(D=(m=i.value)==null?void 0:m.find(p=>p.id===o))!=null&&D.content?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(F._sfc_main$2,{modelValue:t.name,"onUpdate:modelValue":p=>t.name=p,onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(N=(E=i.value)==null?void 0:E.find(p=>p.id===o))!=null&&N.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(p=>f(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Edit",style:{width:"16px",height:"16px"}})],8,K))]),e.createElementVNode("div",P,[(x=(w=i.value)==null?void 0:w.find(p=>p.id===o))!=null&&x.content?(e.openBlock(),e.createElementBlock("div",Q,[e.createVNode(n,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(p=>v(o),["stop"])},null,8,["onClick"]),e.createVNode(n,{name:"Save",onClick:e.withModifiers(p=>k(o,t.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(I=($=i.value)==null?void 0:$.find(p=>p.id===o))!=null&&I.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(p=>q(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Delete",style:{width:"16px",height:"16px"}})],8,W))])])]}),content:e.withCtx(({item:t,index:o})=>{var h,l;return[e.createElementVNode("div",X,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S(t.comp+"Operate")),{itemContents:t==null?void 0:t.compData,originalItemContents:(l=(h=d.value)==null?void 0:h.find((m,D)=>D===o))==null?void 0:l.compData,onChange:m=>M(m,t,o)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},Z=y._export_sfc(Y,[["__scopeId","data-v-27bd1564"]]),ee={key:0,class:"show-content"},te={style:{display:"flex"}},oe={__name:"index",setup(V){const u=B.useModelComp(c.pinia),{itemData:r}=c.storeToRefs(u),C=e.ref([]);e.watch(()=>r.value,()=>{var d;!r.value||((d=r.value)==null?void 0:d.length)===0?C.value=[]:C.value=c.cloneDeep(r.value)},{deep:!0,immediate:!0});const _=d=>g.getComponent(d);return(d,i)=>{var f;return((f=C.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(v,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",te,e.toDisplayString(v.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=y._export_sfc(oe,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=Z;exports.modelSelect=z;exports.modelShow=ne;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as L, createElementBlock as _, openBlock as r, Fragment as j, renderList as q, unref as W, createElementVNode as C, createVNode as D, toDisplayString as E, ref as I, watch as A, withCtx as z, createBlock as G, resolveDynamicComponent as H, createCommentVNode as y, normalizeStyle as X, withModifiers as w } from "vue";
|
|
2
|
-
import { s as Y, g as J } from "./index-
|
|
2
|
+
import { s as Y, g as J } from "./index-DFdkXYtv.js";
|
|
3
3
|
import { p as B, s as V, c as v, E as Z } from "./menu-Qw1eGtzq.js";
|
|
4
4
|
import { u as S } from "./modelComp-y7HaQuVQ.js";
|
|
5
5
|
import "./array-wJSGLzMi.js";
|
|
@@ -3,8 +3,8 @@ import "./index-BHtNKL1L.js";
|
|
|
3
3
|
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfEICeD4.js";
|
|
4
4
|
import { u as i, s as p } from "./menu-Qw1eGtzq.js";
|
|
5
5
|
import { D as u } from "./index-CjrWmm5T.js";
|
|
6
|
-
import { S as l } from "./index-
|
|
7
|
-
import { i as d } from "./index-
|
|
6
|
+
import { S as l } from "./index-Db0lTu76.js";
|
|
7
|
+
import { i as d } from "./index-C7x-mC0R.js";
|
|
8
8
|
const _ = { class: "role-wrapper" }, k = /* @__PURE__ */ o({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(f) {
|
|
@@ -3,7 +3,7 @@ import "./index-BHtNKL1L.js";
|
|
|
3
3
|
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfEICeD4.js";
|
|
4
4
|
import { u as R, s as A, c as M } from "./menu-Qw1eGtzq.js";
|
|
5
5
|
import { D as I } from "./index-CjrWmm5T.js";
|
|
6
|
-
import { j as _ } from "./index-
|
|
6
|
+
import { j as _ } from "./index-C7x-mC0R.js";
|
|
7
7
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const E = { class: "role-wrapper" }, F = { class: "role-dialog-header" }, O = ["title"], P = { class: "dialog-footer" }, j = /* @__PURE__ */ v({
|
|
9
9
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
|
|
2
2
|
import { D as m } from "./index-CjrWmm5T.js";
|
|
3
|
-
import { S as l, i as d } from "./index-
|
|
3
|
+
import { S as l, i as d } from "./index-C7x-mC0R.js";
|
|
4
4
|
import { u as g, s as p } from "./menu-Qw1eGtzq.js";
|
|
5
|
-
import { u as f } from "./
|
|
5
|
+
import { u as f } from "./login-afGmER0u.js";
|
|
6
6
|
const M = /* @__PURE__ */ o({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(h) {
|
|
@@ -2,8 +2,8 @@ import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } f
|
|
|
2
2
|
import { c as J, s as be, g as U, u as he, E as S, p as $, bO as ae, bM as oe, bP as Ce, f as Ie } from "./menu-Qw1eGtzq.js";
|
|
3
3
|
import { u as ke } from "./modelComp-y7HaQuVQ.js";
|
|
4
4
|
import { u as Te } from "./index-CjrWmm5T.js";
|
|
5
|
-
import { f as Me } from "./index-
|
|
6
|
-
import { a as Se } from "./
|
|
5
|
+
import { f as Me } from "./index-C7x-mC0R.js";
|
|
6
|
+
import { a as Se } from "./login-afGmER0u.js";
|
|
7
7
|
const F = ke($), ne = Te($), C = he($), { menus: ue, configMenu: O, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
|
|
8
8
|
var e, t;
|
|
9
9
|
return [
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ref as u, computed as E, reactive as H, nextTick as X, watch as Y } from "vue";
|
|
2
2
|
import { bR as Te, g as N, s as S, E as g, c as O, bO as Z, bM as m, bP as ee, p as k, u as te } from "./menu-Qw1eGtzq.js";
|
|
3
|
-
import { u as se
|
|
4
|
-
import { u as
|
|
3
|
+
import { u as se } from "./login-afGmER0u.js";
|
|
4
|
+
import { u as Ke } from "./modelComp-y7HaQuVQ.js";
|
|
5
|
+
import { d as ne, i as Pe, e as G } from "./crypto-BRyGpjGR.js";
|
|
5
6
|
import { E as we } from "./index-CmXpvujN.js";
|
|
6
7
|
const re = Te("authorityState", {
|
|
7
8
|
state: () => ({
|
|
@@ -12,7 +13,7 @@ const re = Te("authorityState", {
|
|
|
12
13
|
this.routerPageStructures = e;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
}), De = te(k), { activeMenuPath: v } = S(De), ae = se(k), { structureData: $e } = S(ae), Me = re(k), { routerPageStructures: Re } = S(Me),
|
|
16
|
+
}), De = te(k), { activeMenuPath: v } = S(De), ae = se(k), { structureData: $e } = S(ae), Me = re(k), { routerPageStructures: Re } = S(Me), oe = Ke(k), Ie = u([
|
|
16
17
|
{
|
|
17
18
|
label: "角色名称",
|
|
18
19
|
value: "",
|
|
@@ -120,28 +121,28 @@ const re = Te("authorityState", {
|
|
|
120
121
|
// }
|
|
121
122
|
]), j = u([]), Fe = E(() => {
|
|
122
123
|
var n, s, t, r, a;
|
|
123
|
-
const e = (n = Re.value) == null ? void 0 : n.find((
|
|
124
|
-
var
|
|
125
|
-
return ((
|
|
124
|
+
const e = (n = Re.value) == null ? void 0 : n.find((c) => {
|
|
125
|
+
var o;
|
|
126
|
+
return ((o = c == null ? void 0 : c.comp) == null ? void 0 : o.toUpperCase()) === "TABLE";
|
|
126
127
|
});
|
|
127
128
|
if (e) {
|
|
128
|
-
j.value = (r = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((
|
|
129
|
-
const
|
|
130
|
-
if ((
|
|
129
|
+
j.value = (r = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : r.filter((o) => (o == null ? void 0 : o.label) !== "操作");
|
|
130
|
+
const c = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((o) => {
|
|
131
|
+
if ((o == null ? void 0 : o.key) === "rowButton") {
|
|
131
132
|
let l = [];
|
|
132
|
-
return K.value ? l = [...
|
|
133
|
-
...
|
|
133
|
+
return K.value ? l = [...o == null ? void 0 : o.contents, { label: "授权" }] : l = o == null ? void 0 : o.contents, {
|
|
134
|
+
...o,
|
|
134
135
|
contents: l
|
|
135
136
|
};
|
|
136
137
|
}
|
|
137
|
-
return
|
|
138
|
+
return o;
|
|
138
139
|
});
|
|
139
|
-
return de(
|
|
140
|
+
return de(c), c;
|
|
140
141
|
}
|
|
141
142
|
return [];
|
|
142
143
|
}), xe = (e) => {
|
|
143
144
|
W(e.singleContent, e.buttonName, w.value);
|
|
144
|
-
}, b = u({}),
|
|
145
|
+
}, b = u({}), ce = u(), B = async (e, n, s) => {
|
|
145
146
|
var t, r;
|
|
146
147
|
try {
|
|
147
148
|
const a = await e(n);
|
|
@@ -180,7 +181,7 @@ const re = Te("authorityState", {
|
|
|
180
181
|
s + 1 < e.length && Array.isArray(e[s + 1]) ? (t.children = ie(e[s + 1]), s += 2) : s += 1, n.push(t);
|
|
181
182
|
}
|
|
182
183
|
return n;
|
|
183
|
-
},
|
|
184
|
+
}, fe = (e) => {
|
|
184
185
|
const n = [];
|
|
185
186
|
let s = 0;
|
|
186
187
|
for (; s < (e == null ? void 0 : e.length); ) {
|
|
@@ -194,7 +195,7 @@ const re = Te("authorityState", {
|
|
|
194
195
|
path: t
|
|
195
196
|
};
|
|
196
197
|
return s.children && s.children.length > 0 && (r.children = _(s.children, t)), r;
|
|
197
|
-
}),
|
|
198
|
+
}), ye = (e, n) => e.reduce((s, t) => {
|
|
198
199
|
const r = t[n];
|
|
199
200
|
return s[r] || (s[r] = []), s[r].push(t), s;
|
|
200
201
|
}, {}), ge = (e) => {
|
|
@@ -203,10 +204,10 @@ const re = Te("authorityState", {
|
|
|
203
204
|
!r.children || r.children.length === 0 ? n.push(r) : r.children.forEach((a) => s(a));
|
|
204
205
|
}
|
|
205
206
|
return e.forEach((r) => s(r)), n == null ? void 0 : n.map((r) => {
|
|
206
|
-
var a,
|
|
207
|
+
var a, c, o;
|
|
207
208
|
return {
|
|
208
209
|
...r,
|
|
209
|
-
parentPath: (
|
|
210
|
+
parentPath: (o = (c = (a = r.path) == null ? void 0 : a.split("/")) == null ? void 0 : c.slice(0, -1)) == null ? void 0 : o.join("/")
|
|
210
211
|
};
|
|
211
212
|
});
|
|
212
213
|
}, pe = (e) => Object.entries(e).map(([s, t]) => ({
|
|
@@ -244,23 +245,23 @@ const re = Te("authorityState", {
|
|
|
244
245
|
for (const s in e)
|
|
245
246
|
e[s].forEach((r) => {
|
|
246
247
|
var l, h;
|
|
247
|
-
const a = (l = r.path) != null && l.startsWith("/") ? (h = r.path) == null ? void 0 : h.substring(1) : r.path,
|
|
248
|
-
let
|
|
249
|
-
|
|
250
|
-
let
|
|
251
|
-
|
|
248
|
+
const a = (l = r.path) != null && l.startsWith("/") ? (h = r.path) == null ? void 0 : h.substring(1) : r.path, c = a == null ? void 0 : a.split("/");
|
|
249
|
+
let o = n;
|
|
250
|
+
c.forEach((f) => {
|
|
251
|
+
let y = o.find(($) => $.title === f);
|
|
252
|
+
y || (y = { title: f, path: r.path, children: [] }, o.push(y)), o = y.children;
|
|
252
253
|
});
|
|
253
254
|
});
|
|
254
255
|
return n;
|
|
255
256
|
}, We = (e) => {
|
|
256
257
|
const n = {};
|
|
257
258
|
return e.forEach((s) => {
|
|
258
|
-
const { path: t, checkedButtons: r } = s, a = t,
|
|
259
|
-
title:
|
|
260
|
-
path:
|
|
259
|
+
const { path: t, checkedButtons: r } = s, a = t, c = r.map((o) => ({
|
|
260
|
+
title: o.split("/").pop() || "",
|
|
261
|
+
path: o,
|
|
261
262
|
parentPath: a
|
|
262
263
|
}));
|
|
263
|
-
n[a] =
|
|
264
|
+
n[a] = c;
|
|
264
265
|
}), n;
|
|
265
266
|
}, ve = (e) => {
|
|
266
267
|
let n = [];
|
|
@@ -277,8 +278,8 @@ const re = Te("authorityState", {
|
|
|
277
278
|
const n = [];
|
|
278
279
|
for (const s of e) {
|
|
279
280
|
if (!Array.isArray(s) || s.length !== 2) continue;
|
|
280
|
-
const [t, r] = s, a = be(r),
|
|
281
|
-
|
|
281
|
+
const [t, r] = s, a = be(r), c = n.indexOf(t);
|
|
282
|
+
c === -1 ? n.push(t, a) : n[c + 1] = Ae(n[c + 1], a);
|
|
282
283
|
}
|
|
283
284
|
return n;
|
|
284
285
|
}, be = (e) => {
|
|
@@ -306,7 +307,7 @@ const re = Te("authorityState", {
|
|
|
306
307
|
}
|
|
307
308
|
return s;
|
|
308
309
|
}, Ve = async (e, n) => {
|
|
309
|
-
if (b.value = O(n),
|
|
310
|
+
if (b.value = O(n), oe.setRefreshCurStructure(!1), e === "授权") {
|
|
310
311
|
console.log("clickRowButton0", d.value), console.log("clickRowButton1", b.value[d.value]);
|
|
311
312
|
const s = _e(b.value[d.value]);
|
|
312
313
|
console.log("clickRowButton4", s);
|
|
@@ -314,8 +315,8 @@ const re = Te("authorityState", {
|
|
|
314
315
|
if (s)
|
|
315
316
|
t = b.value[d.value];
|
|
316
317
|
else {
|
|
317
|
-
const r =
|
|
318
|
-
t = pe(
|
|
318
|
+
const r = fe(b.value[d.value]), a = _(r), c = ge(a), o = ye(c, "parentPath");
|
|
319
|
+
t = pe(o);
|
|
319
320
|
}
|
|
320
321
|
console.log("clickRowButton5", t), await X(), A.title = `【${n.a0}】授权`, A.show = !0, t && Array.isArray(t) && le(D.value, t);
|
|
321
322
|
}
|
|
@@ -339,8 +340,8 @@ const re = Te("authorityState", {
|
|
|
339
340
|
var r;
|
|
340
341
|
if (Array.isArray(t == null ? void 0 : t.tableData)) {
|
|
341
342
|
let a = { id: t.id };
|
|
342
|
-
return (r = t == null ? void 0 : t.tableData) == null || r.forEach((
|
|
343
|
-
a[`a${
|
|
343
|
+
return (r = t == null ? void 0 : t.tableData) == null || r.forEach((c, o) => {
|
|
344
|
+
a[`a${o}`] = c;
|
|
344
345
|
}), a;
|
|
345
346
|
} else
|
|
346
347
|
return {
|
|
@@ -354,7 +355,7 @@ const re = Te("authorityState", {
|
|
|
354
355
|
t.label && e && (s[t.label] = (e == null ? void 0 : e[`a${r}`]) ?? null);
|
|
355
356
|
}), s;
|
|
356
357
|
}, W = (e, n, s) => {
|
|
357
|
-
var a,
|
|
358
|
+
var a, c, o, l;
|
|
358
359
|
const t = O(e);
|
|
359
360
|
t != null && t.id && delete t.id;
|
|
360
361
|
const r = U(t, j.value);
|
|
@@ -362,7 +363,7 @@ const re = Te("authorityState", {
|
|
|
362
363
|
key: {
|
|
363
364
|
type: "data",
|
|
364
365
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
365
|
-
pageKey: (a = v.value) != null && a.startsWith("/") ? (
|
|
366
|
+
pageKey: (a = v.value) != null && a.startsWith("/") ? (c = v.value) == null ? void 0 : c.substring(1) : v.value,
|
|
366
367
|
tableId: s
|
|
367
368
|
},
|
|
368
369
|
value: {
|
|
@@ -378,7 +379,7 @@ const re = Te("authorityState", {
|
|
|
378
379
|
key: {
|
|
379
380
|
type: "data",
|
|
380
381
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
381
|
-
pageKey: (
|
|
382
|
+
pageKey: (o = v.value) != null && o.startsWith("/") ? (l = v.value) == null ? void 0 : l.substring(1) : v.value,
|
|
382
383
|
tableId: s
|
|
383
384
|
},
|
|
384
385
|
value: {
|
|
@@ -390,7 +391,7 @@ const re = Te("authorityState", {
|
|
|
390
391
|
id: e.id
|
|
391
392
|
}, n).then((h) => {
|
|
392
393
|
n && h && g.success(n + "成功");
|
|
393
|
-
}),
|
|
394
|
+
}), oe.setRefreshCurStructure(!0);
|
|
394
395
|
}, ke = (e) => {
|
|
395
396
|
let n = [];
|
|
396
397
|
return e == null || e.forEach((s) => {
|
|
@@ -425,7 +426,7 @@ const re = Te("authorityState", {
|
|
|
425
426
|
var s, t;
|
|
426
427
|
return console.log("isPenultimate", e, n), ((t = (s = n == null ? void 0 : n.data) == null ? void 0 : s.renderButtons) == null ? void 0 : t.length) > 0 ? "is-penultimate" : "";
|
|
427
428
|
}, w = u(0), He = async (e) => {
|
|
428
|
-
var t, r, a,
|
|
429
|
+
var t, r, a, c, o;
|
|
429
430
|
let n;
|
|
430
431
|
const s = await N({
|
|
431
432
|
key: {
|
|
@@ -435,7 +436,7 @@ const re = Te("authorityState", {
|
|
|
435
436
|
pageKey: e != null && e.startsWith("/") ? e == null ? void 0 : e.substring(1) : e
|
|
436
437
|
}
|
|
437
438
|
});
|
|
438
|
-
return ((t = s == null ? void 0 : s.data) == null ? void 0 : t.code) === 200 && (r = s == null ? void 0 : s.data) != null && r.result && ((a = s == null ? void 0 : s.data) == null ? void 0 : a.result.length) > 0 && (n = (
|
|
439
|
+
return ((t = s == null ? void 0 : s.data) == null ? void 0 : t.code) === 200 && (r = s == null ? void 0 : s.data) != null && r.result && ((a = s == null ? void 0 : s.data) == null ? void 0 : a.result.length) > 0 && (n = (o = (c = s == null ? void 0 : s.data.result) == null ? void 0 : c[0]) == null ? void 0 : o.id, w.value = n), n;
|
|
439
440
|
}, D = u([]), Xe = u([
|
|
440
441
|
{
|
|
441
442
|
path: "资源管理",
|
|
@@ -454,7 +455,7 @@ const re = Te("authorityState", {
|
|
|
454
455
|
};
|
|
455
456
|
Y(() => T.value.length, () => {
|
|
456
457
|
var e;
|
|
457
|
-
(e =
|
|
458
|
+
(e = ce.value) == null || e.setCheckedKeys([...T.value]);
|
|
458
459
|
});
|
|
459
460
|
Y(() => A.show, (e) => {
|
|
460
461
|
e || (D.value = ue(D.value));
|
|
@@ -466,11 +467,11 @@ const F = E(() => {
|
|
|
466
467
|
return ((a = (r = t == null ? void 0 : t.key) == null ? void 0 : r.pageKey) == null ? void 0 : a.toUpperCase()) !== "MENU";
|
|
467
468
|
});
|
|
468
469
|
return [...e == null ? void 0 : e.map((t) => {
|
|
469
|
-
var
|
|
470
|
+
var c, o, l, h;
|
|
470
471
|
const r = /button/i;
|
|
471
|
-
let a = (l = (
|
|
472
|
+
let a = (l = (o = (c = t == null ? void 0 : t.value) == null ? void 0 : c.pageData) == null ? void 0 : o.compData) == null ? void 0 : l.filter((f) => r.test(f == null ? void 0 : f.key));
|
|
472
473
|
return a = Array.from(
|
|
473
|
-
new Set(a == null ? void 0 : a.flatMap((
|
|
474
|
+
new Set(a == null ? void 0 : a.flatMap((f) => f.contents.map((y) => y.label)))
|
|
474
475
|
), {
|
|
475
476
|
path: (h = t == null ? void 0 : t.key) == null ? void 0 : h.pageKey,
|
|
476
477
|
buttons: a
|
|
@@ -487,21 +488,21 @@ const F = E(() => {
|
|
|
487
488
|
if (Array.isArray(e))
|
|
488
489
|
return Q.value = me(e), e == null ? void 0 : e.map((s) => {
|
|
489
490
|
var r, a;
|
|
490
|
-
const t = n == null ? void 0 : n.find((
|
|
491
|
+
const t = n == null ? void 0 : n.find((c) => (c == null ? void 0 : c.path) === (s == null ? void 0 : s.path));
|
|
491
492
|
return s.childMenus && s.childMenus.length > 0 ? {
|
|
492
493
|
...s,
|
|
493
|
-
renderButtons: s.carryData ? (r = t == null ? void 0 : t.buttons) == null ? void 0 : r.map((
|
|
494
|
-
title:
|
|
495
|
-
path: s.path + "/" +
|
|
494
|
+
renderButtons: s.carryData ? (r = t == null ? void 0 : t.buttons) == null ? void 0 : r.map((c) => ({
|
|
495
|
+
title: c,
|
|
496
|
+
path: s.path + "/" + c
|
|
496
497
|
})) : [],
|
|
497
498
|
checkedButtons: [],
|
|
498
499
|
children: x(s.childMenus, F.value),
|
|
499
500
|
childMenus: x(s.childMenus, F.value)
|
|
500
501
|
} : {
|
|
501
502
|
...s,
|
|
502
|
-
renderButtons: s.carryData ? (a = t == null ? void 0 : t.buttons) == null ? void 0 : a.map((
|
|
503
|
-
title:
|
|
504
|
-
path: s.path + "/" +
|
|
503
|
+
renderButtons: s.carryData ? (a = t == null ? void 0 : t.buttons) == null ? void 0 : a.map((c) => ({
|
|
504
|
+
title: c,
|
|
505
|
+
path: s.path + "/" + c
|
|
505
506
|
})) : [],
|
|
506
507
|
checkedButtons: []
|
|
507
508
|
};
|
|
@@ -521,7 +522,7 @@ const F = E(() => {
|
|
|
521
522
|
]
|
|
522
523
|
}
|
|
523
524
|
]
|
|
524
|
-
},
|
|
525
|
+
}, vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
525
526
|
__proto__: null,
|
|
526
527
|
addButtonsToTree: x,
|
|
527
528
|
addPathToTree: _,
|
|
@@ -532,7 +533,7 @@ const F = E(() => {
|
|
|
532
533
|
clickRowButton: Ve,
|
|
533
534
|
clickSubmitAuthority: Ge,
|
|
534
535
|
closeAuthorizeDialog: ze,
|
|
535
|
-
convertArrayToTree:
|
|
536
|
+
convertArrayToTree: fe,
|
|
536
537
|
convertIndexToLabel: U,
|
|
537
538
|
customNodeClass: Je,
|
|
538
539
|
getActivePageStructureId: He,
|
|
@@ -540,7 +541,7 @@ const F = E(() => {
|
|
|
540
541
|
getFirstArrayProperty: he,
|
|
541
542
|
getLeafNodesRecursive: ge,
|
|
542
543
|
getPageDataAsync: qe,
|
|
543
|
-
groupByField:
|
|
544
|
+
groupByField: ye,
|
|
544
545
|
handleItemDataChange: xe,
|
|
545
546
|
handleNodeBtnChange: Ze,
|
|
546
547
|
handleNodeCheckChange: Ye,
|
|
@@ -558,7 +559,7 @@ const F = E(() => {
|
|
|
558
559
|
submitTableAsyncByVerify: W,
|
|
559
560
|
tempRolePageData: et,
|
|
560
561
|
tempSysMenus: Q,
|
|
561
|
-
treeRef:
|
|
562
|
+
treeRef: ce
|
|
562
563
|
}, Symbol.toStringTag, { value: "Module" })), Se = se(k), { superAdminInfo: tt, cryptoInfo: i } = S(Se), st = te(k), { activeMenuPath: p } = S(st), M = "123456", nt = re(k), { routerPageStructures: rt } = S(nt), V = u(0), at = u([
|
|
563
564
|
{
|
|
564
565
|
label: "用户名称",
|
|
@@ -568,30 +569,30 @@ const F = E(() => {
|
|
|
568
569
|
]), K = E(() => {
|
|
569
570
|
const e = sessionStorage.getItem("isSuperAdmin");
|
|
570
571
|
return e ? JSON.parse(e) : !1;
|
|
571
|
-
}),
|
|
572
|
+
}), ot = (e) => {
|
|
572
573
|
console.log("handleQueryChange", e);
|
|
573
574
|
}, z = u([]), R = E(() => {
|
|
574
575
|
var n, s, t, r, a;
|
|
575
|
-
const e = (n = rt.value) == null ? void 0 : n.find((
|
|
576
|
-
var
|
|
577
|
-
return ((
|
|
576
|
+
const e = (n = rt.value) == null ? void 0 : n.find((c) => {
|
|
577
|
+
var o;
|
|
578
|
+
return ((o = c == null ? void 0 : c.comp) == null ? void 0 : o.toUpperCase()) === "TABLE";
|
|
578
579
|
});
|
|
579
580
|
if (e) {
|
|
580
|
-
z.value = (r = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((
|
|
581
|
-
const
|
|
582
|
-
if ((
|
|
583
|
-
const l = [...
|
|
581
|
+
z.value = (r = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : r.filter((o) => (o == null ? void 0 : o.label) !== "操作");
|
|
582
|
+
const c = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((o) => {
|
|
583
|
+
if ((o == null ? void 0 : o.key) === "rowButton") {
|
|
584
|
+
const l = [...o == null ? void 0 : o.contents, { label: "重置密码" }];
|
|
584
585
|
return {
|
|
585
|
-
...
|
|
586
|
+
...o,
|
|
586
587
|
contents: l
|
|
587
588
|
};
|
|
588
589
|
}
|
|
589
|
-
return
|
|
590
|
+
return o;
|
|
590
591
|
});
|
|
591
|
-
return console.log(245,
|
|
592
|
+
return console.log(245, c), c;
|
|
592
593
|
}
|
|
593
594
|
return [];
|
|
594
|
-
}),
|
|
595
|
+
}), ct = (e) => {
|
|
595
596
|
q(e.singleContent, e.buttonName, V.value);
|
|
596
597
|
}, I = u(), lt = (e) => {
|
|
597
598
|
console.log("onDoubleClick", e);
|
|
@@ -642,35 +643,35 @@ const F = E(() => {
|
|
|
642
643
|
g.error(a);
|
|
643
644
|
}
|
|
644
645
|
}, q = (e, n, s) => {
|
|
645
|
-
var a,
|
|
646
|
+
var a, c, o, l, h, f;
|
|
646
647
|
const t = O(e);
|
|
647
648
|
t != null && t.id && delete t.id;
|
|
648
649
|
const r = U(t, z.value);
|
|
649
|
-
|
|
650
|
+
Pe() && r && (!r.password && K.value ? r.password = G(M, (a = i == null ? void 0 : i.value) == null ? void 0 : a.publicKey) : r.password && K.value && (r.password = G(r == null ? void 0 : r.password, (c = i == null ? void 0 : i.value) == null ? void 0 : c.publicKey))), n === "新增" ? P(Z, {
|
|
650
651
|
key: {
|
|
651
652
|
type: "data",
|
|
652
653
|
layer: r == null ? void 0 : r.layer,
|
|
653
654
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
654
|
-
pageKey: (
|
|
655
|
+
pageKey: (o = p.value) != null && o.startsWith("/") ? (l = p.value) == null ? void 0 : l.substring(1) : p.value,
|
|
655
656
|
tableId: s
|
|
656
657
|
},
|
|
657
658
|
value: {
|
|
658
659
|
tableData: r
|
|
659
660
|
}
|
|
660
|
-
}, n).then((
|
|
661
|
+
}, n).then((y) => {
|
|
661
662
|
var $;
|
|
662
663
|
I.value = {
|
|
663
664
|
...e,
|
|
664
|
-
newId:
|
|
665
|
+
newId: y,
|
|
665
666
|
password: K.value ? ne((e == null ? void 0 : e.password) ?? M, ($ = i == null ? void 0 : i.value) == null ? void 0 : $.privateKey) : e == null ? void 0 : e.password
|
|
666
|
-
}, n &&
|
|
667
|
+
}, n && y && g.success(n + "成功");
|
|
667
668
|
}) : n === "编辑" || n === "重置密码" ? P(m, {
|
|
668
669
|
id: e.id,
|
|
669
670
|
key: {
|
|
670
671
|
type: "data",
|
|
671
672
|
layer: r == null ? void 0 : r.layer,
|
|
672
673
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
673
|
-
pageKey: (h = p.value) != null && h.startsWith("/") ? (
|
|
674
|
+
pageKey: (h = p.value) != null && h.startsWith("/") ? (f = p.value) == null ? void 0 : f.substring(1) : p.value,
|
|
674
675
|
tableId: s
|
|
675
676
|
},
|
|
676
677
|
value: {
|
|
@@ -721,14 +722,14 @@ const F = E(() => {
|
|
|
721
722
|
]
|
|
722
723
|
}
|
|
723
724
|
]
|
|
724
|
-
},
|
|
725
|
+
}, bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
725
726
|
__proto__: null,
|
|
726
727
|
changedRow: I,
|
|
727
728
|
clickRowButton: ut,
|
|
728
729
|
columns: z,
|
|
729
730
|
getPageDataAsync: Ce,
|
|
730
|
-
handleItemDataChange:
|
|
731
|
-
handleQueryChange:
|
|
731
|
+
handleItemDataChange: ct,
|
|
732
|
+
handleQueryChange: ot,
|
|
732
733
|
handleSubmitAsync: P,
|
|
733
734
|
loginUserIsSuper: K,
|
|
734
735
|
onDoubleClick: lt,
|
|
@@ -741,17 +742,17 @@ const F = E(() => {
|
|
|
741
742
|
tempUserPageData: ht
|
|
742
743
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
743
744
|
export {
|
|
744
|
-
|
|
745
|
+
bt as S,
|
|
745
746
|
_ as a,
|
|
746
747
|
ge as b,
|
|
747
|
-
|
|
748
|
-
|
|
748
|
+
fe as c,
|
|
749
|
+
ye as d,
|
|
749
750
|
Ce as e,
|
|
750
751
|
P as f,
|
|
751
752
|
he as g,
|
|
752
753
|
pe as h,
|
|
753
754
|
He as i,
|
|
754
|
-
|
|
755
|
+
vt as j,
|
|
755
756
|
M as r,
|
|
756
757
|
q as s,
|
|
757
758
|
re as u
|