import{_ as y,s as g,v as w,h as T,r as n,o as c,c as l,a,b as r,w as h,F as b,i as k,x as S,j as $,y as D,m as A,z as E,d as _,q as I,p as M,e as x}from"./index.fa63d907.js";import{p as B}from"./common.7ac8c0a9.js";import"./request.e6b427ef.js";const L=g();w(L);const F=T({name:"ServerSupermarket",created(){},watch:{$route:function(e){this.cateMenuChange(e.path)}},data(){return{menu:[{title:"\u6211\u7684\u670D\u52A1",path:"/usercenter/myservice",icon:"Menu",active:!0},{title:"\u6211\u7684\u5DE5\u5177",path:"/usercenter/mytool",icon:"Tools",active:!1},{title:"\u6211\u7684\u5E94\u7528",path:"/usercenter/myapplication",icon:"CollectionTag",active:!1},{title:"\u7533\u8BF7\u8FDB\u5EA6",path:"/usercenter/myapply",icon:"Coin",active:!1},{title:"\u5BC6\u94A5\u7BA1\u7406",path:"/usercenter/mykey",icon:"Lock",active:!1},{title:"\u5C5E\u6027\u914D\u7F6E",path:"/usercenter/myattribute",icon:"DataLine",active:!1},{title:"\u8D26\u6237\u4FE1\u606F",path:"/usercenter/myinfo",icon:"UserFilled",active:!1}],currentArticleId:null,content:"",articleTitle:"",isShowAllCate:!1,cateTree:[]}},created(){this.cateMenuChange(this.$route.path),this.getCateTree()},methods:{getCateTree(){B("/CimApiDescCategory/LoadTree").then(e=>{e.code==200&&(this.cateTree=e.data,this.cateTree.forEach((t,s)=>{s==0?this.cateTree[s].show=!0:this.cateTree[s].show=!0,this.cateTree[s].children=[],t.child.length>0&&t.child.forEach((i,m)=>{let d={name:i.name,active:!1,id:i.id};this.cateTree[s].children.push(d)})}))})},closeCate(){this.isShowAllCate=!this.isShowAllCate,this.cateTree.forEach((e,t)=>{this.cateTree[t].show=this.isShowAllCate})},showChildrenCate(e){this.cateTree[e].show=!this.cateTree[e].show},cateMenuChange(e){this.menu.forEach((t,s)=>{t.path==e?this.menu[s].active=!0:this.menu[s].active=!1})},selectCate(e,t){this.menu.forEach((s,i)=>{this.menu[i].active=!1}),this.menu[e].active=!0,this.$router.push(t.path)}},setup(){S([]);let e=$({});return{...{},...e}}}),f=e=>(M("data-v-dde42ea4"),e=e(),x(),e),N={style:{background:"#f1f3f5",width:"100%"}},V=f(()=>a("div",{class:"page-title-bg"},[a("div",{class:"page-title-container"}," \u7BA1\u7406\u4E2D\u5FC3 ")],-1)),j={class:"main-container",style:{width:"1266px",margin:"0px auto"}},z=_("\u9996\u9875"),q={class:"user-center-container"},U={class:"cate-container"},G=f(()=>a("div",{class:"cate-container-title"}," \u7BA1\u7406\u4E2D\u5FC3 ",-1)),H=["onClick"],J={style:{float:"left",position:"relative",top:"2px",left:"0px"}},K={class:"article-container"},O={class:"artilce"};function P(e,t,s,i,m,d){const u=n("el-breadcrumb-item"),v=n("el-breadcrumb"),C=n("router-view");return c(),l("div",N,[V,a("div",j,[r(v,{separator:"/"},{default:h(()=>[r(u,{to:{path:"/"}},{default:h(()=>[z]),_:1}),r(u,null,{default:h(()=>[a("span",{onClick:t[0]||(t[0]=o=>e.closeDetail())},"\u7BA1\u7406\u4E2D\u5FC3")]),_:1})]),_:1}),a("div",q,[a("div",U,[G,a("div",null,[(c(!0),l(b,null,k(e.menu,(o,p)=>(c(),l("div",{class:"cate-children",key:p,style:D({color:o.active?"#409eff":"#777","border-color":o.active?"#409eff":"#fff",background:o.active?"#fafafa":"#fff"}),onClick:Q=>e.selectCate(p,o)},[a("span",J,[(c(),A(E(o.icon),{style:{width:"16px",height:"16px"}}))]),_(" "+I(o.title),1)],12,H))),128))])]),a("div",K,[a("div",O,[r(C)])])])])])}var Y=y(F,[["render",P],["__scopeId","data-v-dde42ea4"]]);export{Y as default};
