| 1 |
- var _=(y,L,d)=>new Promise((w,C)=>{var p=s=>{try{u(d.next(s))}catch(o){C(o)}},n=s=>{try{u(d.throw(s))}catch(o){C(o)}},u=s=>s.done?w(s.value):Promise.resolve(s.value).then(p,n);u((d=d.apply(y,L)).next())});import j from"./TabInfo-CcxMRp3O.js";import v from"./CBBInfo-CGNBeIRP.js";import A from"./Platform-B0xFGXSC.js";import I from"./SettingDrawer-Dt7UHk1w.js";import{e as N,w as J,a as O,u as T,b as U,h as Q,s as z,t as E}from"./test-VrWWj5h0.js";import{u as V}from"./index-Mu5dydaG.js";import{b as $}from"./homeApi-D_Ga5UF9.js";import{u as H,_ as W}from"./entry/index-BaQQ7BQ_.js";import{d as Y,Y as q,f as S,o as G,Z as x,_ as B,k as a,a7 as c,u as l,$ as i,F as K,a9 as X,a1 as t0,a0 as k}from"./vue-CF9JqwIh.js";import{Q as h,R as Z}from"./antd-ILpsl5AZ.js";import"./CollectionDrawer-BJ9MSk7_.js";import"./attentionApi-BvKhIRFN.js";import"./index-BegijP1T.js";import"./platformApi-CkNy4PSH.js";const R=[{id:"1848983265543766017",title:"软件CBB",type:"software",info:[{title:"嵌入式",type:"embeded",icon:N,routing:[]},{title:"Web",type:"web",icon:J,routing:[]},{title:"移动端",type:"app",icon:O,routing:[]},{title:"UI",type:"ui",icon:T,routing:[]},{title:"算法",type:"algorithm",icon:U,routing:[]}]},{id:"1848984138072244226",title:"硬件CBB",type:"hardware",info:[{title:"硬件",icon:Q,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:[]}]}],e0={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}]},a0="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",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(-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"},i0={class:"home-module_cbb home-module_cbb--1"},n0={class:"mb-4 home-module_cbb home-module_cbb--2"},r0={class:"mb-4 home-module_cbb home-module_cbb--3"},l0={class:"home-module_cbb home-module_cbb--4"},c0={class:"flex items-center justify-between home-module_other"},d0=["onClick"],u0={class:"home-module_other-item_value"},m0={class:"home-module_other-item_label"},f0={class:"home-module_me"},p0=Y({__name:"index",setup(y){const L=q(),{createMessage:d}=H(),[w,{openDrawer:C}]=V(),p=S([{label:"共享工具",value:0,path:"/bizBasic/tool/toolSortware"},{label:"文档规范",value:0,path:"/bizBasic/doc/docSoftware"}]);G(()=>_(this,null,function*(){yield s()}));const n=S(R),u=S(e0);function s(){return _(this,null,function*(){const e=yield $({});o(e,"pingtai",4),o(e,"software",0),o(e,"hardware",1),o(e,"structure",2),o(e,"test",3),o(e,"tool",5),o(e,"doc",6)})}function o(e,m,r){const f=JSON.parse(JSON.stringify(e)).filter(t=>t.ownerRoutePath==m),M=JSON.parse(JSON.stringify(R));m=="pingtai"?u.value.info=f.map(t=>(t.title=t.platformName,t.desc=t.profile,t.icon=(t==null?void 0:t.dictName)=="技术平台"?o0:a0,t)).slice(0,3):m=="software"?n.value[0].info=M[r].info.map(t=>(t.routing=f.filter(b=>b.secondRoutePath==t.type).slice(0,4),t)):m=="tool"?p.value[0].value=f.resourceCount||0:m=="doc"?p.value[1].value=f.resourceCount||0:n.value[r].info=M[r].info.map(t=>(t.routing=f.filter(b=>b.ownerRoutePath==t.type).slice(0,4),t))}function g(e){e.id||e.type=="pingtai"?C(!0,{record:e}):d.warning("暂无数据")}function P(e){L.push(e.path)}function F(){return _(this,null,function*(){yield s()})}return(e,m)=>(x(),B("div",s0,[a(l(Z),{gutter:16},{default:c(()=>[a(l(h),{span:16},{default:c(()=>[a(l(Z),{class:"mb-2"},{default:c(()=>[a(l(h),{span:12},{default:c(()=>[i("div",i0,[a(v,{data:n.value[0],onSetting:g},null,8,["data"])])]),_:1}),a(l(h),{span:12},{default:c(()=>[i("div",n0,[a(v,{data:n.value[1],onSetting:g},null,8,["data"])]),i("div",r0,[a(v,{data:n.value[2],onSetting:g},null,8,["data"])]),i("div",l0,[a(v,{data:n.value[3],onSetting:g},null,8,["data"])])]),_:1})]),_:1}),a(l(h),{span:24,class:"cnt"},{default:c(()=>[a(A,{data:u.value,class:"enter-y",onSetting:g},null,8,["data"])]),_:1})]),_:1}),a(l(h),{span:8},{default:c(()=>[i("div",c0,[(x(!0),B(K,null,X(p.value,(r,D)=>(x(),B("div",{key:r.label,class:t0(["home-module_other-item","home-module_other-item--"+D])},[i("div",{class:"home-module_other-item_cnt",onClick:f=>P(r)},[i("div",u0,k(r.value),1),i("div",m0,k(r.label),1)],8,d0)],2))),128))]),i("div",f0,[a(j,{onSuccess:F})])]),_:1})]),_:1}),a(I,{onRegister:l(w),onSuccess:F},null,8,["onRegister"])]))}}),k0=W(p0,[["__scopeId","data-v-dd691daf"]]);export{k0 as default};
|