import{x as u,c as F,t as k,y as c,z as g,B as S,u as B,i as A,al as f,H as d,I as _,K as L,A as r,O as $,C as R,r as m,k as w,Q as i,J as b,R as y}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import{_ as v,n as D,a as E}from"./index-c87bcfde-1782468512657v=1.0.0.js";import H from"./BaseInfo-894a9fa1-1782468512657v=1.0.0.js";import N from"./AuthInfo-7a1f8c17-1782468512657v=1.0.0.js";import"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import"./role-d87c2313-1782468512657v=1.0.0.js";const T={class:"tabbar_left_container"},q=u({name:"TabbarLeft"}),z=u({...q,props:{value:String},emits:["update:value","tab-click"],setup(e,{emit:t}){let o=e;const a=t,s=F({get(){return o.value},set(n){a("tab-click",n),a("update:value",n)}});return k("active",s),(n,l)=>(c(),g("div",T,[S(n.$slots,"default",{active:B(s)},void 0,!0)]))}});const j=v(z,[["__scopeId","data-v-95b6b0d7"]]),P={class:"tabbar-text font-606"},V=u({name:"TabbarLeftItem"}),Z=u({...V,props:{label:{type:String,default:"\u57FA\u672C\u4FE1\u606F"},name:String,iconName:{type:String,default:"xianxingzijiayou"},disabled:{type:Boolean,default:!1},active:{type:String},elementIcon:{type:String,default:""}},setup(e){const t=e,o=A("active"),a=()=>{t.disabled||(o.value=t.name)};return(s,n)=>{const l=f("el-icon");return c(),g("div",{class:R(["tabbar-item",[B(o)==e.name?"tabbar-active":"",e.disabled?"forbidden-pointer":""]]),onClick:a},[e.elementIcon?(c(),d(l,{key:0},{default:_(()=>[(c(),d(L(e.elementIcon)))]),_:1})):(c(),d(D,{key:1,name:e.iconName,class:"tabbar-icon"},null,8,["name"])),r("span",P,$(e.label),1)],2)}}});const x=v(Z,[["__scopeId","data-v-509f5a06"]]),J={class:"form-section clearfix"},K={class:"flex-section"},M={class:"form-section--bd clearfix"},O=u({__name:"BaseForm",props:{role_id:{}},setup(e){const t=m(""),o=m(""),a=m("0"),s=E();w(()=>{s.query.role_id&&(t.value=s.query.role_id),o.value=s.query.mp_id||""});const n=l=>{a.value=l.position,t.value=l.role_id,o.value=l.mp_id};return(l,p)=>{const I=f("el-col"),h=f("HZPageLayout");return c(),d(h,{isBack:!0,title:"\u89D2\u8272\u7BA1\u7406"},{treeCard:_(()=>[i(j,{value:a.value,"onUpdate:value":p[0]||(p[0]=C=>a.value=C)},{default:_(()=>[i(x,{label:"\u57FA\u672C\u4FE1\u606F","icon-name":"icon_addCard_base_info",name:"0"}),i(x,{label:"\u6743\u9650\u4FE1\u606F","icon-name":"icon_login_info",name:"1",disabled:!t.value},null,8,["disabled"])]),_:1},8,["value"])]),default:_(()=>[r("div",J,[r("div",K,[i(I,{span:23},{default:_(()=>[r("div",M,[b(i(H,{role_id:t.value,onAddRole:n},null,8,["role_id"]),[[y,a.value==="0"]]),b(i(N,{role_id:t.value,mp_id:o.value,onAddRole:n},null,8,["role_id","mp_id"]),[[y,a.value==="1"]])])]),_:1})])])]),_:1})}}});const ee=v(O,[["__scopeId","data-v-67d09f9c"]]);export{ee as default};
