ss-component-new 1.1.655 → 1.1.656
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/{OrbitControls-D9nKHzWI.cjs → OrbitControls-BJHoziDQ.cjs} +1 -1
- package/dist/{OrbitControls-DwXvs1D0.js → OrbitControls-CJepjLAm.js} +1 -1
- package/dist/icons/svg/App.svg +1 -1
- package/dist/icons/svg/default.svg +1 -0
- package/dist/{index-CCjr219w.cjs → index--Upniuaf.cjs} +1 -1
- package/dist/{index-Dd1dwoeb.cjs → index-8JMgCqil.cjs} +1 -1
- package/dist/{index-CxkOqyPv.cjs → index-B7sNPI-2.cjs} +1 -1
- package/dist/{index-CGQy7TNo.cjs → index-BN9n2T4H.cjs} +1 -1
- package/dist/index-BWR57KtA.js +937 -0
- package/dist/{index-BvZOUOT4.js → index-BZcq6lqc.js} +1 -1
- package/dist/{index-CCUBr4LA.js → index-BlPkKNG_.js} +1 -1
- package/dist/{index-DLKHwlVU.cjs → index-BmOGt9LR.cjs} +1 -1
- package/dist/index-Bql9uSd9.cjs +1 -0
- package/dist/{index-CRvj8aLR.js → index-BsN09BLI.js} +8 -8
- package/dist/{index-Cc40D3dB.cjs → index-C3911xbm.cjs} +1 -1
- package/dist/{index-Bn5W2VSB.cjs → index-CB-0zWkO.cjs} +1 -1
- package/dist/{index-C2WIVd64.js → index-CFc1oz3x.js} +3 -3
- package/dist/{index-DCsNmvBU.cjs → index-CM6HSS02.cjs} +12 -12
- package/dist/{index-C6b4hcJI.cjs → index-CXMa57KM.cjs} +1 -1
- package/dist/{index-BgaEKsCm.cjs → index-CaqEBrVR.cjs} +1 -1
- package/dist/index-Cj5htR9s.cjs +1 -0
- package/dist/{index-BqXlY78Z.js → index-Cr_QMd0J.js} +5 -5
- package/dist/{index-Co6swGtf.js → index-CsHq7mD2.js} +6 -6
- package/dist/{index-ugxO6ZpQ.cjs → index-D4ZmbGCB.cjs} +1 -1
- package/dist/{index-Cr73vrta.cjs → index-D6vD-trt.cjs} +1 -1
- package/dist/{index-DQ3MUufv.cjs → index-D7IMIybo.cjs} +1 -1
- package/dist/{index-2XK4FGHS.js → index-DK4Pnepl.js} +982 -979
- package/dist/index-Dgzh0Eur.cjs +1 -0
- package/dist/{index-CTgARncA.cjs → index-Dm4_oZi-.cjs} +1 -1
- package/dist/{index-RjnJBBx6.js → index-DtTu9OX4.js} +2 -2
- package/dist/{index-C-KBNjgZ.js → index-DyE9lCt7.js} +47 -44
- package/dist/{index-BhgtdEx-.js → index-Q1znt8Z0.js} +2 -2
- package/dist/{index-CPB-ibvL.js → index-XIIYT-A0.js} +6 -6
- package/dist/{index-emRCM9IK.cjs → index-fSieD0VD.cjs} +1 -1
- package/dist/{index-BGpFUEIS.js → index-g1XqI1u_.js} +5 -5
- package/dist/{index-BS3o451k.js → index-kX1Zv5mv.js} +4 -4
- package/dist/{index-BsvVSF4o.js → index-pjqo-wKx.js} +2 -2
- package/dist/index-sGnDwWMZ.js +506 -0
- package/dist/{index-DJDKJtgu.js → index-yOh2aUoj.js} +2 -2
- package/dist/{index-CobgiEdI.js → index-zs2vsQkw.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-DraLJN1H.js → index.vue_vue_type_script_setup_true_lang-B9iSnLp7.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DrwwH91V.cjs → index.vue_vue_type_script_setup_true_lang-CfQmzicD.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CbD8iBb1.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BB1q_NEl.cjs} +35 -35
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CB9HaWen.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js} +956 -961
- package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-BjOBwJ4U.cjs → index.vue_vue_type_style_index_0_scoped_264dc673_lang-3jIQbFoJ.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-cZvH5EKb.js → index.vue_vue_type_style_index_0_scoped_264dc673_lang-Chd_vVxH.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DSsVbBCh.js → index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-DVS9Bqp3.js} +86 -66
- package/dist/index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-hr6rMNSG.cjs +1 -0
- package/dist/{main-C94pWU5b.js → main-CY26_1QU.js} +2 -2
- package/dist/{main-DO-9rBq_.cjs → main-Cl5qS8h8.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-CVaPp35l.cjs → threeModel-DWRJnQ0E.cjs} +1 -1
- package/dist/{threeModel-Tkojgty1.js → threeModel-H_4oJGH7.js} +68 -68
- package/package.json +1 -1
- package/public/icons/svg/App.svg +1 -1
- package/public/icons/svg/default.svg +1 -0
- package/dist/index-BZnOhYs3.cjs +0 -1
- package/dist/index-BpPyRes1.cjs +0 -1
- package/dist/index-BypkILb5.cjs +0 -1
- package/dist/index-Cmfum9Rm.js +0 -1363
- package/dist/index-DWfglGK2.js +0 -533
- package/dist/index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DG35z52M.cjs +0 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ne=require("./index--Upniuaf.cjs"),xe=require("./index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-hr6rMNSG.cjs"),ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),N=require("./index.vue_vue_type_style_index_0_scoped_264dc673_lang-3jIQbFoJ.cjs"),Ee=require("./login-9FT8kgSz.cjs"),m=require("./menu-ScIJ5kqr.cjs"),pe=require("./index-BpPyaNFa.cjs"),he=require("./modelComp-CkSDfH0-.cjs"),be=require("./index-D4ZmbGCB.cjs"),Fe=require("./array-A9Rs-yNQ.cjs"),Te=require("./index-BN9n2T4H.cjs"),Q=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BB1q_NEl.cjs");require("vue-router");const Me=require("./index-Cj5htR9s.cjs"),Ne=require("./threeModel-DWRJnQ0E.cjs"),W=require("./index-CM6HSS02.cjs"),$e=require("./index.vue_vue_type_script_setup_true_lang-CfQmzicD.cjs"),Ae={class:"horizontal-f-18"};function Pe(v,H,o,k,S,L){const l=e.resolveComponent("svg-icon"),I=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(I,{mode:v.mode,menuList:v.renderMenuList,onClickMenu:v.clickMenu,onOpenMenu:v.openMenu,onCloseMenu:v.closeMenu},{title:e.withCtx(({menu:D})=>[e.createVNode(l,{class:"horizontal-icon-18",name:D.icon??"default",style:{"margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",Ae,e.toDisplayString(D.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const Re=ae._export_sfc(N._sfc_main,[["render",Pe],["__scopeId","data-v-6d1fb5a2"]]),je={class:"bread-content"},Ie=["onClick"],qe={key:0,class:"split-title"},Le={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(v,{emit:H}){const o=v,k=e.ref([]),S=H;e.onMounted(()=>{k.value=o==null?void 0:o.breadArray}),e.watch(()=>o==null?void 0:o.breadArray,()=>{k.value=o==null?void 0:o.breadArray},{deep:!0,immediate:!0});const L=l=>{S("click",l)};return(l,I)=>(e.openBlock(),e.createElementBlock("div",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(D,A)=>{var C;return e.openBlock(),e.createElementBlock("div",{key:A,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:Y=>L(D),style:e.normalizeStyle({opacity:((C=k.value)==null?void 0:C.length)-1===A?"0.7":"1"})},e.toDisplayString(D.value),13,Ie),A!==k.value.length-1&&Array.isArray(k.value)?(e.openBlock(),e.createElementBlock("div",qe,e.toDisplayString("/"))):e.createCommentVNode("",!0)])}),128))]))}},Ue=ae._export_sfc(Le,[["__scopeId","data-v-ded7e2bd"]]),fe=[{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"}],Ke={class:"structure-buttons"},Oe={class:"structure-paths"},ze={class:"client-header-user"},Ge={class:"model-select"},He={class:"model-show"},Xe={class:"model-fill"},Je={class:"client-header-menu"},We={class:"client-header-user"},Qe={class:"drop-menu"},Ye={class:"client-main-operate","element-loading-text":"正在加载页面数据..."},Ze={key:0,class:"main-back-btn"},et={class:"main-body"},tt={key:0,class:"item-view-group"},ot={key:2,class:"item-view-child-content"},nt=e.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},emits:["buildContent"],setup(v,{emit:H}){const o=Te.useUnit(m.pinia),{selectTitle:k}=m.storeToRefs(o),S=e.ref(!1),L=e.ref(),l=e.ref(null),I=e.ref(),D=e.ref(!1),A=be.useFormComp(m.pinia),{blobUrls:C}=m.storeToRefs(A),Y=e.ref(!1),V=e.ref(!1),P=e.ref(!1),U=e.ref(!1),z=Ee.useLoginState(),{loginUserInfo:R}=m.storeToRefs(z),X=he.useModelComp(m.pinia),{isEdit:q,routeToChildPath:le}=m.storeToRefs(X),ce=H,te=m.useMenuState(m.pinia),{importLoading:ue,activeAsideMenu:de,contentLoading:me,platName:f,activeMenuPath:E}=m.storeToRefs(te),M=e.ref(""),x=e.computed(()=>de.value.isRouter),j=()=>{sessionStorage.clear(),window.location.reload()},u=()=>{ce("buildContent")},G=async()=>{let c={};const i=await Q.getItemData("弯管仿真加工管理/仿真动画生成",sessionStorage.getItem("systemKey"),""),p=await Q.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let n=["管长","外径"],g={};p==null||p.forEach(r=>{var d;(r==null?void 0:r.comp)==="Form"&&((d=r==null?void 0:r.compData)==null||d.forEach(a=>{var B;(a==null?void 0:a.key)==="formContent"&&((B=a==null?void 0:a.contents)==null||B.forEach(h=>{n.includes(h==null?void 0:h.key)&&(g[h.key]=h.value)}))}))}),i==null||i.forEach(r=>{var d,a,B,h,s,T;if((r==null?void 0:r.comp)==="Table"){let F=[],y=(B=(a=(d=r==null?void 0:r.compData)==null?void 0:d.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:a.contents)==null?void 0:B.map(t=>t==null?void 0:t.label),w=(T=(s=(h=r==null?void 0:r.compData)==null?void 0:h.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:s.contents)==null?void 0:T.map(t=>(t=t==null?void 0:t.filter(_=>!(_!=null&&_.id)),t));w==null||w.forEach(t=>{F.push(Q.getValueToObjectValue(t,y==null?void 0:y.filter(_=>_!=="操作")))}),c[r.name]=F,c[r.name+"Content"]=r}}),c.extra=g,L.value=c},$=c=>{let i=m.cloneDeep(c),p=[],n=[];return i==null||i.forEach((g,r)=>{r===(c==null?void 0:c.length)-1?(n.push(g),p.push(n)):((n==null?void 0:n.length)!==0&&g.includes(".obj")&&(p.push(n),n=[]),n.push(g))}),p},Z=async()=>{var c,i;if(S.value=!0,I.value){const p=I.value;let n=[];if(typeof(p==null?void 0:p.url)=="string"){let g=(c=p==null?void 0:p.url)==null?void 0:c.split(","),r=(i=$(g))==null?void 0:i.map(async d=>{var a,B;if((d==null?void 0:d.length)===1){let h=d==null?void 0:d.map(async s=>{var w,t;let T=await m.axios.get(s,{responseType:"blob",headers:{"Content-Type":"application/json"}});const F=new Blob([T.data],{type:"application/octet-stream;charset=UTF-8"});let y={suffix:"."+((t=s==null?void 0:s.split("."))==null?void 0:t[((w=s==null?void 0:s.split("."))==null?void 0:w.length)-1]),blob:F,mtlBlobs:[]};return n.push(y),y});return await Promise.all(h),h}else{let h=d==null?void 0:d.find(_=>_==null?void 0:_.includes(".obj")),s=await m.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}});const T=new Blob([s.data],{type:"application/octet-stream;charset=UTF-8"});let F=d==null?void 0:d.filter(_=>_==null?void 0:_.includes(".mtl")),y=[],w=F==null?void 0:F.map(async _=>{let O=await m.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}});const se=new Blob([O.data],{type:"application/octet-stream;charset=UTF-8"});return y.push(se),O});await Promise.all(w);let t={suffix:"."+((B=h==null?void 0:h.split("."))==null?void 0:B[((a=h==null?void 0:h.split("."))==null?void 0:a.length)-1]),blob:T,mtlBlobs:y};return n.push(t),t}});await Promise.all(r)}l.value.loadModelByDefaultPath(n)}},K=()=>{D.value=!1,l.value=null};e.watch(()=>E.value,async c=>{c&&(V.value=!0),c==="弯管仿真加工管理/仿真动画生成"?P.value=!0:P.value=!1,c==="弯管仿真加工管理/程序输出"?U.value=!0:U.value=!1,fe!=null&&fe.find(i=>{var p;return(i==null?void 0:i.key)===((p=c==null?void 0:c.split("/"))==null?void 0:p[(c==null?void 0:c.split("/").length)-1])})?Y.value=!0:Y.value=!1},{immediate:!0}),e.watch(()=>[C==null?void 0:C.value],async()=>{var c,i,p,n,g;if(C!=null&&C.value&&((c=C==null?void 0:C.value)==null?void 0:c.length)>0&&!Y.value&&!((i=N.showItems.value)!=null&&i.find(r=>(r==null?void 0:r.name)==="输入")&&((p=N.showItems.value)!=null&&p.find(r=>(r==null?void 0:r.name)==="输出")))){D.value=!0;let r=[];const d=await((n=m.cloneDeep(C==null?void 0:C.value))==null?void 0:n.map(async a=>{var F,y,w,t,_,O,se,_e,ye,Ce;let B,h,s;a!=null&&a.blob.includes("undefined")?s=(y=(F=a==null?void 0:a.blob)==null?void 0:F.split("undefined,"))==null?void 0:y[1]:s=a==null?void 0:a.blob;let T=s==null?void 0:s.split(",");if((T==null?void 0:T.length)>1){let ee=await(T==null?void 0:T.map(async b=>{var J,ge,we,ke,Be,ve;B=await m.axios.get(b,{responseType:"blob",headers:{"Content-Type":"application/json"}});let oe=[];if(((J=a==null?void 0:a.mtlBlobs)==null?void 0:J.length)>0){let Se=await((ge=a==null?void 0:a.mtlBlobs)==null?void 0:ge.map(async De=>{let Ve=await m.axios.get(De,{responseType:"blob",headers:{"Content-Type":"application/json"}});return oe.push(new Blob([Ve.data],{type:"application/octet-stream;charset=UTF-8"})),Ve}));await Promise.all(Se)}return((ke=b==null?void 0:b.split("."))==null?void 0:ke[((we=b==null?void 0:b.split("."))==null?void 0:we.length)-1])!=="undefined"&&r.push({suffix:"."+((ve=b==null?void 0:b.split("."))==null?void 0:ve[((Be=b==null?void 0:b.split("."))==null?void 0:Be.length)-1]),blob:new Blob([B.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:oe}),B}));await Promise.all(ee)}else if(!(s!=null&&s.includes("https://"))&&!(s!=null&&s.includes("http://"))){B=await W.downloadAvatarApi({url:s});let ee=[];if(((w=a==null?void 0:a.mtlBlobs)==null?void 0:w.length)>0){let b=await((t=a==null?void 0:a.mtlBlobs)==null?void 0:t.map(async oe=>{let J=await W.downloadAvatarApi({url:oe});return ee.push(new Blob([J.data],{type:"application/octet-stream;charset=UTF-8"})),J}));await Promise.all(b)}h={suffix:"."+((O=s==null?void 0:s.split("."))==null?void 0:O[((_=s==null?void 0:s.split("."))==null?void 0:_.length)-1]),blob:new Blob([B.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ee}}else{B=await m.axios.get(s,{responseType:"blob",headers:{"Content-Type":"application/json"}});let ee=[];if(((se=a==null?void 0:a.mtlBlobs)==null?void 0:se.length)>0){let b=await((_e=a==null?void 0:a.mtlBlobs)==null?void 0:_e.map(async oe=>{let J=await m.axios.get(oe,{responseType:"blob",headers:{"Content-Type":"application/json"}});return ee.push(new Blob([J.data],{type:"application/octet-stream;charset=UTF-8"})),J}));await Promise.all(b)}h={suffix:"."+((Ce=s==null?void 0:s.split("."))==null?void 0:Ce[((ye=s==null?void 0:s.split("."))==null?void 0:ye.length)-1]),blob:new Blob([B.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ee}}h&&r.push(h)}));await Promise.all(d),(r==null?void 0:r.length)!==0&&((g=l.value)==null||g.loadModelByDefaultPath(r))}},{immediate:!0,deep:!0});const re=async()=>{var i,p,n,g;te.setImportLoading(!0);const c=await m.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey")}});if(((i=c==null?void 0:c.data)==null?void 0:i.code)===200){let r=(g=(n=(p=c==null?void 0:c.data)==null?void 0:p.result)==null?void 0:n.map(d=>{var a;if(((a=d==null?void 0:d.key)==null?void 0:a.layer)!=="superAdmin")return d==null?void 0:d.id}))==null?void 0:g.filter(d=>d);await m.batchDeleteInsofDataApi({ids:r}),te.setRawMenus([])}te.setImportLoading(!1)},ie=async()=>{await be.onSaveBack()};return(c,i)=>{const p=e.resolveComponent("el-dialog"),n=e.resolveComponent("el-button"),g=e.resolveComponent("el-avatar"),r=e.resolveComponent("el-header"),d=e.resolveComponent("el-container"),a=e.resolveComponent("el-icon"),B=e.resolveComponent("el-input"),h=e.resolveComponent("el-aside"),s=e.resolveComponent("router-view"),T=e.resolveComponent("el-main"),F=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{modelValue:S.value,"onUpdate:modelValue":i[0]||(i[0]=y=>S.value=y),style:{height:"700px",width:"1800px"}},{default:e.withCtx(()=>[e.createVNode(Ne.default,{ref_key:"threeModelRef",ref:l,onGetAnimationData:G,animationData:L.value},null,8,["animationData"])]),_:1},8,["modelValue"]),e.withDirectives(e.createVNode(d,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(r,{class:"client-structure-header"},{default:e.withCtx(()=>{var y;return[e.createElementVNode("div",Ke,[e.createVNode(n,{id:"transparentBgButton",onClick:e.unref(N.onBack)},{default:e.withCtx(()=>i[4]||(i[4]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[4]},8,["onClick"]),e.createVNode(n,{id:"transparentBgButton",onClick:i[1]||(i[1]=w=>{var t,_;return e.unref(N.clickSavePage)((_=(t=e.unref(k))==null?void 0:t.map(O=>O.value))==null?void 0:_.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[i[5]||(i[5]=e.createTextVNode(" 保存页面 "))]),_:1,__:[5]})]),e.createElementVNode("div",Oe,[e.createVNode(Ue,{breadArray:e.unref(k),onClick:e.unref(N.onClick)},null,8,["breadArray","onClick"])]),e.createElementVNode("div",ze,[e.renderSlot(c.$slots,"default",{},void 0,!0),e.createVNode(g,{size:35,src:(y=e.unref(R))==null?void 0:y.avatarUrl},{default:e.withCtx(()=>{var w;return[e.createTextVNode(e.toDisplayString(((w=e.unref(R))==null?void 0:w.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(q)==="edit"?(e.openBlock(),e.createBlock(d,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Ge,[e.createVNode(ne.modelSelect)]),e.createElementVNode("div",He,[e.createVNode(ne.modelShow)]),e.createElementVNode("div",Xe,[e.createVNode(ne.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(q)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(d,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(r,{class:"client-header"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"client-header-logo",onClick:Z},e.toDisplayString(e.unref(f)===""?"ISIP":e.unref(f)),1),e.createElementVNode("div",Je,[e.createVNode(Re,{mode:"horizontal"})]),e.createElementVNode("div",We,[e.createVNode(B,{modelValue:M.value,"onUpdate:modelValue":i[2]||(i[2]=y=>M.value=y),clearable:"",placeholder:"搜索"},{prefix:e.withCtx(()=>[e.createVNode(a,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.search_default))]),_:1})]),_:1},8,["modelValue"]),v.showButton?(e.openBlock(),e.createBlock(n,{key:0,id:"transparentBgButton",onClick:u},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[i[6]||(i[6]=e.createTextVNode(" 生成APP "))]),_:1,__:[6]})):e.createCommentVNode("",!0),v.showButton&&e.unref(q)==="view"?(e.openBlock(),e.createBlock(n,{key:1,id:"transparentBgButton",onClick:e.unref(N.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[i[7]||(i[7]=e.createTextVNode(" 修改布局 "))]),_:1,__:[7]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default",{},void 0,!0),e.createVNode(W._sfc_main,null,{dropTitle:e.withCtx(()=>{var y;return[e.createVNode($e._sfc_main,{size:"35",avatarUrl:(y=e.unref(R))==null?void 0:y.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var w,t,_;return[e.createTextVNode(e.toDisplayString((w=e.unref(R))!=null&&w.account?(t=e.unref(R))==null?void 0:t.account:((_=e.unref(R))==null?void 0:_.账号)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Qe,[e.createVNode(W._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:re,modelValue:"清空数据",buttonType:""}),e.createVNode(W._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:j,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3}),e.createVNode(d,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(T,{class:"client-main"},{default:e.withCtx(()=>{var y,w;return[e.createVNode(h,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode(Me.default,{mode:"vertical"})]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",Ye,[e.unref(le)!==""?(e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(W._sfc_main$1,{class:"calculator-content back-content",onClickTrigger:i[3]||(i[3]=t=>e.unref(N.onPageBack)()),modelValue:"返回"})])):e.createCommentVNode("",!0),e.createElementVNode("div",et,[x.value?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList((y=e.unref(m.cloneDeep)(e.unref(N.showItems)))==null?void 0:y.filter(t=>t.comp!=="FormTop"),(t,_)=>{var O;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:_},[((O=t==null?void 0:t.comp)==null?void 0:O.toUpperCase())!=="TABLE"&&t.name?(e.openBlock(),e.createElementBlock("div",tt,e.toDisplayString(t.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(N.getComponents)(t.comp)),{compName:t.name,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:(t==null?void 0:t.id)??_,onChange:e.unref(N.onChange),index:(t==null?void 0:t.id)??_,onContentChange:e.unref(N.onContentChange),onPageChange:e.unref(N.onPageChange)},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128)),!x.value&&!((w=e.unref(m.cloneDeep)(e.unref(N.showItems)))!=null&&w.find(t=>t.comp==="methodButton"))?(e.openBlock(),e.createElementBlock("div",ot,[e.unref(le)!==""?(e.openBlock(),e.createBlock(W._sfc_main$1,{key:0,class:"calculator-content",onClickTrigger:ie,modelValue:"保存"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])),[[F,e.unref(me)]])]}),_:1})]),_:1}),e.createElementVNode("div",null,[e.createVNode(W.ssDialog,{visible:D.value,onBeforeDestroy:K,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(Ne.default,{ref_key:"threeModelRef",ref:l},null,512)]),_:1},8,["visible"])])]),_:3})),[[e.vShow,e.unref(q)==="view"],[F,e.unref(ue)]])],64)}}}),at=ae._export_sfc(nt,[["__scopeId","data-v-132eb7ca"]]),lt={class:"system-wrap"},rt={__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(v,{emit:H}){const o=he.useModelComp(m.pinia),k=Te.useUnit(m.pinia),S=m.useMenuState();e.ref(!1);const L=e.ref(!0),l=v,I=H,D=V=>{I("showChild",V)},A=e.computed(()=>{switch(l==null?void 0:l.platform){case"browser":return xe.browserThemeConfig;case"client":return xe.clientThemeConfig}}),C=V=>{const P=document.documentElement;V==null||V.forEach(U=>{P.style.setProperty(U.name,U.value)})};e.watch(()=>l.platform,(V,P)=>{V&&C(A.value)},{immediate:!0});const Y=()=>{I("buildContent")};return e.watch(()=>[l==null?void 0:l.content,l==null?void 0:l.jsonContents],async()=>{var U,z,R,X;if(((U=l==null?void 0:l.jsonContents)==null?void 0:U.length)>0){o.setOriginalData(l==null?void 0:l.jsonContents);return}if(!(l!=null&&l.content)||((z=l==null?void 0:l.content)==null?void 0:z.length)===0)return;L.value=!0,S.setImportLoading(!0);let V=[],P=[];k.setSelectTitle([]),k.setSelectIndex(""),k.setSelectMenu(""),(X=(R=l==null?void 0:l.content)==null?void 0:R.filter(q=>q!==""))==null||X.forEach(q=>{P.push(N.expandToNewContents(q))}),V=P==null?void 0:P[0],await N.savePageDataAsync(V),await Q.loadingSystemType(),o.setOriginalData(V),S.setImportLoading(!1)},{deep:!0,immediate:!0}),(V,P)=>(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(at,{windowConfig:v.windowConfig,showButton:v.showButton,onBuildContent:Y,onShowChild:D},{default:e.withCtx(()=>[e.renderSlot(V.$slots,"default",{},void 0,!0)]),_:3},8,["windowConfig","showButton"])]))}},it=ae._export_sfc(rt,[["__scopeId","data-v-9ee9b396"]]),st={class:"add-model-content"},ct={key:0,class:"model-operate"},ut={class:"model-select"},dt={class:"model-fill"},mt={key:1,class:"model-view"},pt={__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(v,{emit:H}){const o=v,k=H,S=e.ref([]),L=e.ref(0),l=e.ref([]),I=e.ref([]),D=e.ref(0),A=he.useModelComp(m.pinia),C=m.useMenuState(m.pinia),{itemData:Y,originalData:V}=m.storeToRefs(A),{activeMenuPath:P,platform:U}=m.storeToRefs(C),z=e.ref(null),R=e.ref(0),X=e.ref([]);e.ref("");const q=e.ref(0),le=()=>{k("buildContent")};e.watch(()=>o==null?void 0:o.pageKey,async()=>{let f={};if((o==null?void 0:o.pageKey)!==""){const E=await Q.getItemData(o==null?void 0:o.pageKey,sessionStorage.getItem("systemKey"),""),M=await Q.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let x=["管长","外径"],j={};M==null||M.forEach(u=>{var G;(u==null?void 0:u.comp)==="Form"&&((G=u==null?void 0:u.compData)==null||G.forEach($=>{var Z;($==null?void 0:$.key)==="formContent"&&((Z=$==null?void 0:$.contents)==null||Z.forEach(K=>{x.includes(K==null?void 0:K.key)&&(j[K.key]=K.value)}))}))}),E==null||E.forEach(u=>{var G,$,Z,K,re,ie;if((u==null?void 0:u.comp)==="Table"){let c=[],i=(Z=($=(G=u==null?void 0:u.compData)==null?void 0:G.find(n=>(n==null?void 0:n.key)==="header"))==null?void 0:$.contents)==null?void 0:Z.map(n=>n==null?void 0:n.label),p=(ie=(re=(K=u==null?void 0:u.compData)==null?void 0:K.find(n=>(n==null?void 0:n.key)==="tableContents"))==null?void 0:re.contents)==null?void 0:ie.map(n=>(n=n==null?void 0:n.filter(g=>!(g!=null&&g.id)),n));p==null||p.forEach(n=>{c.push(Q.getValueToObjectValue(n,i==null?void 0:i.filter(g=>g!=="操作")))}),f[u.name]=c,f[u.name+"Content"]=u}}),f.extra=j,k("threeData",f)}},{deep:!0,immediate:!0});const ce=f=>{k("openThreeBuild",f)};e.watch(()=>o==null?void 0:o.pathContent,()=>{(o==null?void 0:o.pathContent)!==""&&A.setSystemPath(o==null?void 0:o.pathContent)},{deep:!0,immediate:!0});const te=f=>{k("contentChange",f)},ue=f=>{var M;const E=(M=m.cloneDeep(f==null?void 0:f.wholeValue))==null?void 0:M.map(x=>{var j;return(x==null?void 0:x.comp)==="Form"&&(x.compData=(j=x.compData)==null?void 0:j.map(u=>((u==null?void 0:u.key)==="formContent"&&(u.contents=Fe.arrayToNumberArray(u==null?void 0:u.contents)),u))),x});k("change",{originalContents:V.value,currentContents:f==null?void 0:f.wholeValue,editContent:f==null?void 0:f.editValue,arrayToContents:E})};e.watch(()=>l.value,()=>{q.value===l.value.length&&l.value.length!==0&&(S.value=l.value)},{deep:!0,immediate:!0});const de=()=>{z.value!==null&&z.value.click()},me=async f=>{C.setActiveMenuPath(""),C.setActiveTopMenuPath(""),C.setAsideMenus([]);const E=f.target.files;if(!E)return;new FileReader,S.value=[],l.value=[],q.value=E.length;const M=Array.from(E).map(async x=>await new Promise(j=>{const u=new FileReader;u.onload=G=>{try{l.value.push(G.target.result),R.value++}catch($){console.error("解析失败:",$);return}},u.onerror=()=>j(`读取 ${x.name} 失败`),u.readAsText(x),f.target.value="",z.value=null,L.value++}));await Promise.all(M)};return e.watch(()=>[o==null?void 0:o.content,o==null?void 0:o.jsonContents],async()=>{await Q.loadingSystemType(),S.value=o.content,I.value=o==null?void 0:o.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>R.value,()=>{var f;((f=X.value)==null?void 0:f.length)!==0&&(A.setOriginalData(X.value),A.setItemData(X.value))},{deep:!0,immediate:!0}),(f,E)=>{const M=e.resolveComponent("svg-icon"),x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",st,[(o==null?void 0:o.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("div",ut,[e.createVNode(ne.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:D.value},[e.createVNode(ne.modelShow)])),e.createElementVNode("div",dt,[e.createVNode(ne.modelFill)])])):e.createCommentVNode("",!0),(o==null?void 0:o.mode)==="view"?(e.openBlock(),e.createElementBlock("div",mt,[(e.openBlock(),e.createBlock(it,{showButton:v.showButton,platform:e.unref(U),content:S.value,onChange:ue,jsonContents:I.value,onContentChange:te,onBuildContent:le,key:D.value,onShowChild:ce},{default:e.withCtx(()=>{var j;return[((j=o==null?void 0:o.jsonContents)==null?void 0:j.length)===0&&(o!=null&&o.showButton)?(e.openBlock(),e.createBlock(x,{key:0,id:"transparentBgButton",onClick:de},{icon:e.withCtx(()=>[e.createVNode(M,{name:"import"})]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("input",{type:"file",key:L.value,ref_key:"fileInput",ref:z,accept:".txt, .inm, .iml, .imd",onChange:me,style:{display:"none"},multiple:""},null,32)),E[0]||(E[0]=e.createTextVNode(" 导入模型 "))]),_:1,__:[0]})):e.createCommentVNode("",!0)]}),_:1},8,["showButton","platform","content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},ft=ae._export_sfc(pt,[["__scopeId","data-v-264dc673"]]);exports.default=ft;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BB1q_NEl.cjs");const n=require("./menu-ScIJ5kqr.cjs"),o=require("./index-BN9n2T4H.cjs"),c=require("./index-BPmwBpKK.cjs"),u=require("./index-BE8DQhoN.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await u.getActivePageStructureId(r.value)}),(l,m)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(o.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -1,11 +1,11 @@
|
|
|
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-g1XqI1u_.js";
|
|
3
3
|
import { p as B, s as V, c as v, E as Z } from "./menu-Bj0eSg6d.js";
|
|
4
4
|
import { u as S } from "./modelComp-CUCWitDo.js";
|
|
5
5
|
import "./array-CrFbJF1B.js";
|
|
6
6
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import ee from "./index-CZtXRS3l.js";
|
|
8
|
-
import { b as te } from "./index-
|
|
8
|
+
import { b as te } from "./index-DK4Pnepl.js";
|
|
9
9
|
import { E as ne } from "./index-CL7Kg1Kn.js";
|
|
10
10
|
const oe = { class: "type-select" }, se = ["onClick"], ae = { class: "list-icon" }, le = {
|
|
11
11
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as It, watch as Is, nextTick as Oo, resolveComponent as Zn, createBlock as ts, openBlock as gn, withCtx as tn, createElementVNode as vn, renderSlot as cc, onMounted as Il, createElementBlock as zn, normalizeClass as hd, toDisplayString as Si, createCommentVNode as rr, createVNode as ln, unref as du, Fragment as ya, renderList as Ma, normalizeStyle as fu, createTextVNode as Ds, defineComponent as pu, computed as ud, createSlots as dd } from "vue";
|
|
2
2
|
import { d as fd, c as tt, b as Va, s as Rs, p as Ls, bB as Nl, u as pd, b2 as md, E as gd, g as _d } from "./menu-Bj0eSg6d.js";
|
|
3
|
-
import { e as ba, d as mu, k as vd, s as hc, f as xd } from "./index-
|
|
3
|
+
import { e as ba, d as mu, k as vd, s as hc, f as xd } from "./index-DK4Pnepl.js";
|
|
4
4
|
import { u as gu } from "./modelComp-CUCWitDo.js";
|
|
5
|
-
import { A as ha, R as yd, a as Md, T as uc, U as bd, V as Sd, F as dc, g as Ha, W as fc, X as Ed, Y as Ad, Z as wd } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
5
|
+
import { A as ha, R as yd, a as Md, T as uc, U as bd, V as Sd, F as dc, g as Ha, W as fc, X as Ed, Y as Ad, Z as wd } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js";
|
|
6
6
|
import { _ as Fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import { u as Td } from "./login-Ct7wC1jE.js";
|
|
8
8
|
const pc = (s) => s.match(/\((.*)\)/)[1], Cd = {
|
|
@@ -225,16 +225,19 @@ const pc = (s) => s.match(/\((.*)\)/)[1], Cd = {
|
|
|
225
225
|
return (i, r) => {
|
|
226
226
|
const a = Zn("el-button");
|
|
227
227
|
return gn(), zn("div", null, [
|
|
228
|
-
(gn(!0), zn(ya, null, Ma(s.buttons, (o) =>
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
228
|
+
(gn(!0), zn(ya, null, Ma(s.buttons, (o) => {
|
|
229
|
+
var l;
|
|
230
|
+
return gn(), ts(a, {
|
|
231
|
+
key: o == null ? void 0 : o.label,
|
|
232
|
+
id: (l = o == null ? void 0 : o.label) != null && l.includes("删除") ? "warningBgButton" : "themeBorderButton",
|
|
233
|
+
onClick: (c) => n(o == null ? void 0 : o.label)
|
|
234
|
+
}, {
|
|
235
|
+
default: tn(() => [
|
|
236
|
+
Ds(Si(o == null ? void 0 : o.label), 1)
|
|
237
|
+
]),
|
|
238
|
+
_: 2
|
|
239
|
+
}, 1032, ["id", "onClick"]);
|
|
240
|
+
}), 128))
|
|
238
241
|
]);
|
|
239
242
|
};
|
|
240
243
|
}
|
|
@@ -30181,53 +30184,53 @@ export {
|
|
|
30181
30184
|
Nt as F,
|
|
30182
30185
|
v_ as G,
|
|
30183
30186
|
__ as H,
|
|
30184
|
-
|
|
30185
|
-
|
|
30186
|
-
|
|
30187
|
+
Et as I,
|
|
30188
|
+
Ps as J,
|
|
30189
|
+
wp as K,
|
|
30187
30190
|
e0 as L,
|
|
30188
30191
|
p_ as M,
|
|
30189
|
-
|
|
30192
|
+
z3 as N,
|
|
30190
30193
|
Io as O,
|
|
30191
30194
|
Cn as P,
|
|
30192
|
-
|
|
30193
|
-
|
|
30195
|
+
pc as Q,
|
|
30196
|
+
uu as R,
|
|
30194
30197
|
Fu as S,
|
|
30195
30198
|
Wu as T,
|
|
30196
30199
|
F3 as U,
|
|
30197
30200
|
N as V,
|
|
30198
30201
|
y_ as W,
|
|
30199
30202
|
M_ as X,
|
|
30200
|
-
|
|
30203
|
+
$3 as Y,
|
|
30201
30204
|
b_ as Z,
|
|
30202
30205
|
x_ as _,
|
|
30203
|
-
|
|
30206
|
+
kd as a,
|
|
30204
30207
|
Yn as a0,
|
|
30205
30208
|
m0 as a1,
|
|
30206
30209
|
Ze as a2,
|
|
30207
30210
|
xr as a3,
|
|
30208
|
-
|
|
30209
|
-
|
|
30210
|
-
|
|
30211
|
-
|
|
30212
|
-
|
|
30213
|
-
|
|
30214
|
-
|
|
30215
|
-
|
|
30216
|
-
|
|
30217
|
-
|
|
30218
|
-
|
|
30219
|
-
|
|
30220
|
-
|
|
30221
|
-
|
|
30222
|
-
|
|
30223
|
-
|
|
30224
|
-
|
|
30225
|
-
|
|
30226
|
-
|
|
30211
|
+
Yt as b,
|
|
30212
|
+
Na as c,
|
|
30213
|
+
g_ as d,
|
|
30214
|
+
$t as e,
|
|
30215
|
+
h0 as f,
|
|
30216
|
+
o0 as g,
|
|
30217
|
+
Bn as h,
|
|
30218
|
+
Pn as i,
|
|
30219
|
+
Ki as j,
|
|
30220
|
+
hi as k,
|
|
30221
|
+
xa as l,
|
|
30222
|
+
No as m,
|
|
30223
|
+
os as n,
|
|
30224
|
+
Hp as o,
|
|
30225
|
+
L3 as p,
|
|
30226
|
+
pn as q,
|
|
30227
|
+
cn as r,
|
|
30228
|
+
ns as s,
|
|
30229
|
+
cr as t,
|
|
30227
30230
|
W3 as u,
|
|
30228
|
-
|
|
30229
|
-
|
|
30230
|
-
|
|
30231
|
-
|
|
30232
|
-
|
|
30231
|
+
Vi as v,
|
|
30232
|
+
Kl as w,
|
|
30233
|
+
vp as x,
|
|
30234
|
+
ni as y,
|
|
30235
|
+
S_ as z
|
|
30233
30236
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as r, onMounted as n, createElementBlock as s, openBlock as c, createVNode as m } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js";
|
|
4
4
|
import { u as i, s as p } from "./menu-Bj0eSg6d.js";
|
|
5
|
-
import {
|
|
5
|
+
import { z as u } from "./index-DyE9lCt7.js";
|
|
6
6
|
import { S as l } from "./index-BmKUUO5G.js";
|
|
7
7
|
import { i as d } from "./index--UImh9jo.js";
|
|
8
8
|
const _ = { class: "role-wrapper" }, k = /* @__PURE__ */ o({
|
|
@@ -1,16 +1,16 @@
|
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
import { s as F, e as y } from "./index-
|
|
5
|
-
import { u as
|
|
2
|
+
import { S as x } from "./index-BZcq6lqc.js";
|
|
3
|
+
import { z as B } from "./index-DyE9lCt7.js";
|
|
4
|
+
import { s as F, e as y } from "./index-DK4Pnepl.js";
|
|
5
|
+
import { u as S, p as I, s as N } from "./menu-Bj0eSg6d.js";
|
|
6
6
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const E = { class: "menu-module" }, M = {
|
|
8
8
|
class: "table-wrap",
|
|
9
9
|
"element-loading-text": "加载中..."
|
|
10
10
|
}, O = { class: "module-dialog-default" }, V = /* @__PURE__ */ C({
|
|
11
11
|
__name: "index",
|
|
12
|
-
setup(
|
|
13
|
-
const e = k({ ...x }), s = v(null), c = I
|
|
12
|
+
setup(z) {
|
|
13
|
+
const e = k({ ...x }), s = v(null), c = S(I), { configMenu: a } = N(c);
|
|
14
14
|
return D(() => {
|
|
15
15
|
var r;
|
|
16
16
|
e.formatFormData(a.value), b(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-CfQmzicD.cjs"),y=require("./index-CM6HSS02.cjs"),C=require("./menu-ScIJ5kqr.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=require("./index-BpPyaNFa.cjs"),A={class:"avatar-model-wrap"},N=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(i,{emit:w}){const u=i,c=w,h=e.computed(()=>"http://139.196.154.85:20013"),p=e.ref(""),d=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.avatarUrl},o=>{d.value=o},{immediate:!0});const S=async()=>{if(!(u!=null&&u.disabled))try{const o=await y.downloadAvatarApi({url:p.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},B=async o=>{var f,g,t,n,l;try{const r=await y.uploadAvatarApi(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(d.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),p.value=(l=(n=r.data)==null?void 0:n.result)==null?void 0:l.url,c("submitImage",d.value))}catch(r){C.ElMessage.error(r)}},b=async()=>{try{if(!d.value)return}catch(o){C.ElMessage.error(o)}};return(o,f)=>{var g,t,n;return e.openBlock(),e.createElementBlock("div",A,[e.createVNode(I._sfc_main,{avatarUrl:d.value,avatarBlob:_.value,onClickAvatar:S,onSubmitImage:B,onDeleteImage:b},{avatarDefault:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString(((l=i.userInfo)==null?void 0:l.account)??"未知"),1)]}),_:1},8,["avatarUrl","avatarBlob"]),e.createElementVNode("span",null,e.toDisplayString((g=i.userInfo)!=null&&g.userName?(t=i.userInfo)==null?void 0:t.userName:(n=i.userInfo)==null?void 0:n.account),1)])}}}),V=x._export_sfc(N,[["__scopeId","data-v-bcb7a17f"]]),E=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:w}){const u=i,c=e.ref({}),h=e.ref([]),p=w,d=t=>{c.value.dialogShow=(t==null?void 0:t.label)==="电子签名",p("clickSignButton",t)},_=()=>{c.value.dialogShow=!1,p("beforeDestroy")},S=e.computed(()=>"http://139.196.154.85:20013"),B=t=>{var a;const n=t.split(","),l=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let s=r.length;const v=new Uint8Array(s);for(;s--;)v[s]=r.charCodeAt(s);return new Blob([v],{type:l})},b=async t=>{var n,l,r;try{const s=await y.uploadAvatarApi(t);((n=s==null?void 0:s.data)==null?void 0:n.code)===200&&p("clickSubmitSign",S.value+"/"+((r=(l=s.data)==null?void 0:l.result)==null?void 0:r.url))}catch(s){C.ElMessage.error(s)}},o=e.ref(""),f=t=>{o.value=t,c.value.dialogShow=!1;const n=new FormData,l=B(t);n.append("file",l,"image.png"),b(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),b(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var l,r,s,v;o.value="",(l=c.value)!=null&&l.dialogShow&&(c.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),c.value=(s=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:s.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const l=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),s=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(y.Signature,{signPadInfo:c.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=c.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:(m=i.userInfo)==null?void 0:m.signature,fit:"contain"},{error:e.withCtx(()=>[e.createVNode(l,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(s,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(s,{key:1,id:"themeButton",disabled:a.disabled,onClick:T=>d(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),U=x._export_sfc(E,[["__scopeId","data-v-b9bd887d"]]);exports.ssAvatar=V;exports.ssSignature=U;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { V as xe, B as al, S as S1, C as L1, P as T1, W as V1,
|
|
1
|
+
import { V as xe, B as al, S as S1, C as L1, P as T1, W as V1, a as P1, A as O1, b as R1, M as s1, X as H1, G as U1, c as cl, d as j1, e as r2, f as N1, D as wl, H as K1, g as i1, h as y2, i as x2, j as Al, E as kl, L as J1, U as y1, k as E2, l as ul, m as dl, O as pl, n as W1, o as G1, p as X1, q as n1, r as q1, F as Y1, s as Z1, t as Q1, v as ea, w as la, x as aa, y as sa, z as g1, I as Z2, J as ia, K as na, T as oa, N as ta, Q as ra, R as ca, Y as b1 } from "./index-DyE9lCt7.js";
|
|
2
2
|
import { ref as Q, watch as He, createElementBlock as be, openBlock as he, createBlock as Ie, computed as b2, onMounted as w1, onUnmounted as ua, Fragment as Se, renderList as Oe, createElementVNode as F, createCommentVNode as Je, toDisplayString as Ce, resolveComponent as Ee, createVNode as ie, defineComponent as C2, normalizeStyle as Dl, normalizeClass as o1, nextTick as t1, onBeforeUnmount as da, withDirectives as A2, unref as je, withCtx as we, isRef as il, vModelRadio as nl, vShow as ol, createTextVNode as Be, reactive as Il, resolveDynamicComponent as sl, renderSlot as hl, createSlots as pa, mergeProps as ha, withModifiers as Q2 } from "vue";
|
|
3
3
|
import { bB as A1, b as F2, s as l2, p as qe, c as i, E as Xe, g as _2, e as fa, u as k1, bx as _1, by as r1, bw as c1 } from "./menu-Bj0eSg6d.js";
|
|
4
|
-
import { d as va, e as e2, f as ma, s as a2, h as C1, a as u1, i as ya, j as ga, b as ba } from "./index-
|
|
5
|
-
import { F as d1, z as wa, I as d2, A as Aa, B as We, C as S2, D as u2, E as D2, G as _l, g as k2, H as ka, J as _a, K as Ca, L as za, M as Ma, N as p1, O as xa, P as Da, Q as Fa } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { O as Ba } from "./OrbitControls-
|
|
4
|
+
import { d as va, e as e2, f as ma, s as a2, h as C1, a as u1, i as ya, j as ga, b as ba } from "./index-DK4Pnepl.js";
|
|
5
|
+
import { F as d1, z as wa, I as d2, A as Aa, B as We, C as S2, D as u2, E as D2, G as _l, g as k2, H as ka, J as _a, K as Ca, L as za, M as Ma, N as p1, O as xa, P as Da, Q as Fa } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js";
|
|
6
|
+
import { O as Ba } from "./OrbitControls-CJepjLAm.js";
|
|
7
7
|
import { u as vl } from "./modelComp-CUCWitDo.js";
|
|
8
8
|
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
import { u as El } from "./login-Ct7wC1jE.js";
|
|
10
10
|
import { E as g2 } from "./index-CL7Kg1Kn.js";
|
|
11
|
-
import { s as $a, a as Ia } from "./index-
|
|
11
|
+
import { s as $a, a as Ia } from "./index-zs2vsQkw.js";
|
|
12
12
|
import Ea from "./index-CZtXRS3l.js";
|
|
13
13
|
const Sa = A1("formComp", {
|
|
14
14
|
state: () => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as w, reactive as M, onMounted as y, watch as V, nextTick as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as w, reactive as M, onMounted as y, watch as V, nextTick as z, resolveComponent as s, createElementBlock as C, openBlock as u, createVNode as r, withCtx as l, createElementVNode as p, toDisplayString as g, Fragment as N, renderList as S, createBlock as R, createTextVNode as _ } from "vue";
|
|
2
|
+
import { z as T } from "./index-DyE9lCt7.js";
|
|
3
3
|
import { j as m } from "./index--UImh9jo.js";
|
|
4
4
|
import { u as A, s as I, c as P } from "./menu-Bj0eSg6d.js";
|
|
5
5
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -23,7 +23,7 @@ const E = { class: "role-wrapper" }, F = { class: "role-dialog-header" }, O = ["
|
|
|
23
23
|
};
|
|
24
24
|
});
|
|
25
25
|
return V(() => x.value, (c) => {
|
|
26
|
-
|
|
26
|
+
z(() => {
|
|
27
27
|
const e = P(c), n = f(e);
|
|
28
28
|
t.tempSysMenus = t.handleAddSysMenusButtons(n), t.menuData = t.addButtonsToTree(n, t.structureButtons);
|
|
29
29
|
});
|
|
@@ -103,7 +103,7 @@ const E = { class: "role-wrapper" }, F = { class: "role-dialog-header" }, O = ["
|
|
|
103
103
|
class: "node-buttons"
|
|
104
104
|
}, {
|
|
105
105
|
default: l(() => [
|
|
106
|
-
(u(!0), C(
|
|
106
|
+
(u(!0), C(N, null, S(h.renderButtons, (a) => (u(), R(n, {
|
|
107
107
|
key: a.title,
|
|
108
108
|
label: a.title,
|
|
109
109
|
value: a.path
|
|
@@ -2,8 +2,8 @@ import { ref as c, reactive as k, computed as M, defineComponent as Z, onMounted
|
|
|
2
2
|
import { s as E, bC as ee, bD as te, bE as ae, g as P, u as se, p as V, bw as re, E as B } from "./menu-Bj0eSg6d.js";
|
|
3
3
|
import { u as L } from "./login-Ct7wC1jE.js";
|
|
4
4
|
import { e as ne, d as oe } from "./crypto-BRyGpjGR.js";
|
|
5
|
-
import { a as le, s as ie } from "./index-
|
|
6
|
-
import { e as ue, j as de } from "./index-
|
|
5
|
+
import { a as le, s as ie } from "./index-zs2vsQkw.js";
|
|
6
|
+
import { e as ue, j as de } from "./index-DK4Pnepl.js";
|
|
7
7
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const $ = L(V), { loginUserInfo: i, cryptoInfo: m } = E($), ge = se(V), { activeMenuPath: w } = E(ge), I = c(0);
|
|
9
9
|
var R, N, x, K;
|