| 1 |
- var v=(F,b,u)=>new Promise((w,C)=>{var f=s=>{try{m(u.next(s))}catch(o){C(o)}},r=s=>{try{m(u.throw(s))}catch(o){C(o)}},m=s=>s.done?w(s.value):Promise.resolve(s.value).then(f,r);m((u=u.apply(F,b)).next())});import A from"./TabInfo-BSJfslQn.js";import L from"./CBBInfo-Ba2XHYy1.js";import I from"./Platform-B3vVhnZO.js";import J from"./SettingDrawer-DaLs4ieZ.js";import{e as N,w as O,a as j,u as Q,b as T,h as U,s as z,t as E}from"./imageEnum-BRgYKvjO.js";import{u as H}from"./index-DYp2Qjp4.js";import{b as V,a as $}from"./homeApi-D4oEWrgg.js";import{u as W,_ as Y}from"./entry/index-CRWhxBeP.js";import{d as q,Y as G,f as x,o as K,Z as B,_ as y,k as a,a5 as d,u as c,$ as n,F as X,a7 as t0,a1 as e0,a0 as k}from"./vue-DM5HGU8Z.js";import{Q as h,R as Z}from"./antd-BfqWtMX3.js";import"./CollectionDrawer-llWW3FOp.js";import"./common-DpkSdXuu.js";import"./index-lE2idd8k.js";import"./sysOrgApi-tY_yXKfV.js";import"./attentionApi-BlenvL9Y.js";import"./cateApi-BE6kfD5q.js";import"./index-CsuwBPym.js";const R=[{id:"1848983265543766017",title:"软件CBB",type:"software",info:[{title:"嵌入式",type:"embeded",icon:N,routing:[]},{title:"Web",type:"web",icon:O,routing:[]},{title:"移动端",type:"app",icon:j,routing:[]},{title:"UI",type:"ui",icon:Q,routing:[]},{title:"算法",type:"algorithm",icon:T,routing:[]}]},{id:"1848984138072244226",title:"硬件CBB",type:"hardware",info:[{title:"硬件",icon:U,type:"hardware",routing:[]}]},{id:"1848984398920204290",title:"结构CBB",type:"structure",info:[{title:"结构",icon:z,type:"structure",routing:[]}]},{id:"1848984602402668546",title:"测试CBB",type:"test",info:[{title:"测试",icon:E,type:"test",routing:[]}]}],a0={id:"1848982925285048321",title:"产品技术平台",type:"pingtai",info:[{title:"平台1",desc:"平台1平台1平台1平台1平台1平台1平台1平台1平台1平台1",icon:N},{title:"平台2",desc:"平台2平台2平台2平台2平台2平台2平台2平台2平台2平台2",icon:z},{title:"平台3",desc:"平台2平台2平台2平台2平台2平台2平台2平台2平台2平台2",icon:E}]},o0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='28px'%20height='28px'%20viewBox='0%200%2028%2028'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e产品平台图标%3c/title%3e%3cg%20id='页面-3'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='切图'%20transform='translate(-314.000000,%20-92.000000)'%3e%3cg%20id='编组-54'%20transform='translate(318.000000,%2093.000000)'%3e%3cpath%20d='M2,11.3994949%20L7,11.3994949%20C8.1045695,11.3994949%209,10.5040644%209,9.39949494%20L9,4.39949494%20C9,3.29492544%208.1045695,2.39949494%207,2.39949494%20L2,2.39949494%20C0.8954305,2.39949494%201.3527075e-16,3.29492544%200,4.39949494%20L0,9.39949494%20C-1.3527075e-16,10.5040644%200.8954305,11.3994949%202,11.3994949%20Z%20M2,23.3994949%20L7,23.3994949%20C8.1045695,23.3994949%209,22.5040644%209,21.3994949%20L9,16.3994949%20C9,15.2949254%208.1045695,14.3994949%207,14.3994949%20L2,14.3994949%20C0.8954305,14.3994949%201.3527075e-16,15.2949254%200,16.3994949%20L0,21.3994949%20C-1.3527075e-16,22.5040644%200.8954305,23.3994949%202,23.3994949%20Z%20M14,23.3994949%20L19,23.3994949%20C20.1045695,23.3994949%2021,22.5040644%2021,21.3994949%20L21,16.3994949%20C21,15.2949254%2020.1045695,14.3994949%2019,14.3994949%20L14,14.3994949%20C12.8954305,14.3994949%2012,15.2949254%2012,16.3994949%20L12,21.3994949%20C12,22.5040644%2012.8954305,23.3994949%2014,23.3994949%20Z'%20id='形状结合'%20fill='%23073AFF'%3e%3c/path%3e%3cpath%20d='M8.5,2.89949494%20L18.5,2.89949494%20C19.6045695,2.89949494%2020.5,3.79492544%2020.5,4.89949494%20L20.5,14.8994949%20C20.5,16.0040644%2019.6045695,16.8994949%2018.5,16.8994949%20L8.5,16.8994949%20C7.3954305,16.8994949%206.5,16.0040644%206.5,14.8994949%20L6.5,4.89949494%20C6.5,3.79492544%207.3954305,2.89949494%208.5,2.89949494%20Z'%20id='矩形备份-147'%20fill='%23AEBFFF'%20transform='translate(13.500000,%209.899495)%20scale(1,%20-1)%20rotate(45.000000)%20translate(-13.500000,%20-9.899495)%20'%3e%3c/path%3e%3cpath%20d='M18.8989322,14.3994271%20L14.9142136,18.3847763%20C14.133165,19.1658249%2012.866835,19.1658249%2012.0857864,18.3847763%20L12.0857864,18.3847763%20L11.9999322,18.2994271%20L12,16.3994949%20C12,15.3451331%2012.8158778,14.4813298%2013.8507377,14.4049807%20L14,14.3994949%20L18.8989322,14.3994271%20Z%20M8.99993219,4.49942712%20L9,9.39949494%20C9,10.5040644%208.1045695,11.3994949%207,11.3994949%20L7,11.3994949%20L5.09993219,11.3994271%20L5.01471863,11.3137085%20C4.27477786,10.5737677%204.23583361,9.39828358%204.89788587,8.61249614%20L5.01471863,8.48528137%20L8.99993219,4.49942712%20Z'%20id='形状结合'%20fill='%230027BE'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",i0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='28px'%20height='28px'%20viewBox='0%200%2028%2028'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e技术平台图标%3c/title%3e%3cg%20id='页面-3'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='切图'%20transform='translate(-352.000000,%20-92.000000)'%3e%3cg%20id='编组-53'%20transform='translate(356.000000,%2096.000000)'%3e%3cpath%20d='M2,0%20L19,0%20C20.1045695,-2.02906125e-16%2021,0.8954305%2021,2%20L21,14%20C21,15.1045695%2020.1045695,16%2019,16%20L2,16%20C0.8954305,16%201.3527075e-16,15.1045695%200,14%20L0,2%20C-1.3527075e-16,0.8954305%200.8954305,2.02906125e-16%202,0%20Z'%20id='矩形'%20fill='%23073AFF'%20transform='translate(10.500000,%208.000000)%20scale(1,%20-1)%20translate(-10.500000,%20-8.000000)%20'%3e%3c/path%3e%3cpath%20d='M8,0%20L13,0%20C14.1045695,-2.02906125e-16%2015,0.8954305%2015,2%20L15,21%20L15,21%20L6,21%20L6,2%20C6,0.8954305%206.8954305,2.02906125e-16%208,0%20Z'%20id='矩形备份-46'%20fill='%23AEBFFF'%20transform='translate(10.500000,%2010.500000)%20scale(1,%20-1)%20translate(-10.500000,%20-10.500000)%20'%3e%3c/path%3e%3cpath%20d='M15,0%20L15,16%20L6,16%20L6,0%20L15,0%20Z'%20id='形状结合'%20fill='%230027BE'%20transform='translate(10.500000,%208.000000)%20scale(1,%20-1)%20translate(-10.500000,%20-8.000000)%20'%3e%3c/path%3e%3cpath%20d='M6.07972369,6.95392666%20L4.50031204,8.6009686%20L4.50031204,8.6009686%20L5.886412,10.0455166%20C6.23575469,10.4095902%206.23577006,10.9844022%205.88644684,11.3484944%20C5.55518245,11.6937643%205.00674305,11.705118%204.66147317,11.3738536%20C4.6528755,11.3656047%204.64444891,11.3571793%204.63619877,11.3485827%20L2.66425065,9.29384421%20C2.29301729,8.90702497%202.29289237,8.29626643%202.66396746,7.90929536%20L4.82886588,5.65165782%20C5.16008191,5.30625328%205.70859127,5.29475122%206.05399581,5.62596725%20C6.06256428,5.63418374%206.07096298,5.64257545%206.0791866,5.65113707%20C6.42868287,6.01499772%206.42891982,6.58977797%206.07972369,6.95392666%20Z%20M14.9199749,6.95387657%20L16.499688,8.6009686%20L16.499688,8.6009686%20L15.1133763,10.0454832%20C14.7639766,10.4095522%2014.7639766,10.9844254%2015.1133763,11.3484944%20C15.4447813,11.6938131%2015.9933742,11.7050924%2016.338693,11.3736875%20C16.3472624,11.3654633%2016.3556619,11.3570638%2016.363886,11.3484944%20L18.3357153,9.29387965%20C18.7069624,8.90704611%2018.7070717,8.29626026%2018.3359631,7.90929388%20L16.1708138,5.65162586%20C15.8395631,5.30622057%2015.2910251,5.29474598%2014.9456198,5.62599664%20C14.937062,5.63420376%2014.9286735,5.64258567%2014.9204597,5.65113707%20C14.5709713,6.01498959%2014.5707574,6.589764%2014.9199749,6.95387657%20Z%20M8.90857083,10.9799958%20C8.49339432,10.7018764%208.37248392,10.1452278%208.63487107,9.71993389%20L10.8776731,6.08465653%20C11.1277229,5.67935986%2011.6589861,5.55350736%2012.0642828,5.80355712%20C12.0734397,5.80920652%2012.0824901,5.81502681%2012.0914292,5.82101494%20C12.5066057,6.09913433%2012.6275161,6.65578292%2012.3651289,7.08107684%20L10.1223269,10.7163542%20C9.87227712,11.1216509%209.34101386,11.2475034%208.93571718,10.9974536%20C8.92656027,10.9918042%208.9175099,10.9859839%208.90857083,10.9799958%20Z'%20id='形状结合'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",s0={class:"main"},n0={class:"home-module_cbb home-module_cbb--1"},r0={class:"mb-4 home-module_cbb home-module_cbb--2"},l0={class:"mb-4 home-module_cbb home-module_cbb--3"},c0={class:"home-module_cbb home-module_cbb--4"},d0={class:"flex items-center justify-between home-module_other"},u0=["onClick"],m0={class:"home-module_other-item_value"},f0={class:"home-module_other-item_label"},p0={class:"home-module_me"},g0=q({__name:"index",setup(F){const b=G(),{createMessage:u}=W(),[w,{openDrawer:C}]=H(),f=x([{label:"共享工具",value:0,path:"/bizBasic/tool/toolSortware"},{label:"文档规范",value:0,path:"/bizBasic/doc/docSoftware"}]);K(()=>v(this,null,function*(){yield s()}));const r=x(R),m=x(a0);function s(){return v(this,null,function*(){const e=yield V({});o(e,"pingtai",4),o(e,"software",0),o(e,"hardware",1),o(e,"structure",2),o(e,"test",3);const i=yield $({});o(i,"共享工具",5),o(i,"文档规范",6)})}function o(e,i,l){const g=JSON.parse(JSON.stringify(e)),_=g.filter(t=>t.ownerRoutePath==i),M=JSON.parse(JSON.stringify(R));i=="pingtai"?m.value.info=_.map(t=>(t.title=t.platformName,t.desc=t.profile,t.icon=(t==null?void 0:t.dictName)=="技术平台"?i0:o0,t)).slice(0,3):i=="software"?r.value[0].info=M[l].info.map(t=>(t.routing=_.filter(S=>S.secondRoutePath==t.type).slice(0,4),t)):i=="共享工具"?f.value[0].value=g.filter(t=>t.name==i)[0].totalCount||0:i=="文档规范"?f.value[1].value=g.filter(t=>t.name==i)[0].totalCount||0:r.value[l].info=M[l].info.map(t=>(t.routing=_.filter(S=>S.ownerRoutePath==t.type).slice(0,4),t))}function p(e){e.id||e.type=="pingtai"?C(!0,{record:e}):u.warning("暂无数据")}function P(e){b.push(e.path)}function D(){return v(this,null,function*(){yield s()})}return(e,i)=>(B(),y("div",s0,[a(c(Z),{gutter:16},{default:d(()=>[a(c(h),{span:16},{default:d(()=>[a(c(Z),{class:"mb-2"},{default:d(()=>[a(c(h),{span:12},{default:d(()=>[n("div",n0,[a(L,{data:r.value[0],onSetting:p},null,8,["data"])])]),_:1}),a(c(h),{span:12},{default:d(()=>[n("div",r0,[a(L,{data:r.value[1],onSetting:p},null,8,["data"])]),n("div",l0,[a(L,{data:r.value[2],onSetting:p},null,8,["data"])]),n("div",c0,[a(L,{data:r.value[3],onSetting:p},null,8,["data"])])]),_:1})]),_:1}),a(c(h),{span:24,class:"cnt"},{default:d(()=>[a(I,{data:m.value,class:"enter-y",onSetting:p},null,8,["data"])]),_:1})]),_:1}),a(c(h),{span:8},{default:d(()=>[n("div",d0,[(B(!0),y(X,null,t0(f.value,(l,g)=>(B(),y("div",{key:l.label,class:e0(["home-module_other-item","home-module_other-item--"+g])},[n("div",{class:"home-module_other-item_cnt",onClick:_=>P(l)},[n("div",m0,k(l.value),1),n("div",f0,k(l.label),1)],8,u0)],2))),128))]),n("div",p0,[a(A,{onSuccess:D})])]),_:1})]),_:1}),a(J,{onRegister:c(w),onSuccess:D},null,8,["onRegister"])]))}}),z0=Y(g0,[["__scopeId","data-v-198bd39c"]]);export{z0 as default};
|