import{_ as b,s as g,v as w,h as T,r as l,o as i,c as n,a,b as r,w as h,F as k,i as y,x as S,j as $,y as A,m as D,z as E,d as _,q as I,p as x,e as B}from"./index.fa63d907.js";import{p as M}from"./common.7ac8c0a9.js";import"./request.e6b427ef.js";const N=g();w(N);const V=T({name:"ServerSupermarket",created(){},watch:{$route:function(e){this.cateMenuChange(e.path)}},data(){return{menu:[{title:"\u5173\u4E8E\u6211\u4EEC",path:"/about/aboutus",active:!0},{title:"\u514D\u8D23\u58F0\u660E",path:"/about/disclaimer",active:!1},{title:"\u8054\u7CFB\u6211\u4EEC",path:"/about/contactus",active:!1},{title:"\u610F\u89C1\u53CD\u9988",path:"/about/feedback",active:!1}],currentArticleId:null,content:"",articleTitle:"",isShowAllCate:!1,cateTree:[]}},created(){this.cateMenuChange(this.$route.path),this.getCateTree()},methods:{getCateTree(){M("/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((c,m)=>{let d={name:c.name,active:!1,id:c.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,c)=>{this.menu[c].active=!1}),this.menu[e].active=!0,this.$router.push(t.path)}},setup(){S([]);let e=$({});return{...{},...e}}}),f=e=>(x("data-v-988fcb92"),e=e(),B(),e),j=f(()=>a("div",{class:"page-title-bg"},[a("div",{class:"page-title-container"}," \u5173\u4E8E\u6211\u4EEC ")],-1)),z={class:"main-container",style:{width:"1266px",margin:"0px auto"}},F=_("\u9996\u9875"),L={class:"data-container"},q={class:"cate-container"},G=f(()=>a("div",{class:"cate-container-title"}," \u5173\u4E8E\u6211\u4EEC ",-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,c,m,d){const u=l("el-breadcrumb-item"),v=l("el-breadcrumb"),C=l("router-view");return i(),n("div",null,[j,a("div",z,[r(v,{separator:"/"},{default:h(()=>[r(u,{to:{path:"/"}},{default:h(()=>[F]),_:1}),r(u,null,{default:h(()=>[a("span",{onClick:t[0]||(t[0]=o=>e.closeDetail())},"\u5173\u4E8E\u6211\u4EEC")]),_:1})]),_:1}),a("div",L,[a("div",q,[G,a("div",null,[(i(!0),n(k,null,y(e.menu,(o,p)=>(i(),n("div",{class:"cate-children",key:p,style:A({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,[(i(),D(E(o.icon),{style:{width:"16px",height:"16px"}}))]),_(" "+I(o.title),1)],12,H))),128))])]),a("div",K,[a("div",O,[r(C)])])])])])}var X=b(V,[["render",P],["__scopeId","data-v-988fcb92"]]);export{X as default};
