You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.1KB

  1. var h=Object.defineProperty;var i=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var f=(e,o,t)=>o in e?h(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,d=(e,o)=>{for(var t in o||(o={}))k.call(o,t)&&f(e,t,o[t]);if(i)for(var t of i(o))T.call(o,t)&&f(e,t,o[t]);return e};var p=(e,o,t)=>new Promise((n,r)=>{var l=a=>{try{c(t.next(a))}catch(s){r(s)}},u=a=>{try{c(t.throw(a))}catch(s){r(s)}},c=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,u);c((t=t.apply(e,o)).next())});import{d as I,I as D,H as N,r as _,o as j,J as E,P as g,f as v,g as M,h as b,i as x,l as m,p as w,_ as B,y as S,z as K}from"./index.812d876b.js";const O=e=>(S("data-v-00f4a4c1"),e=e(),K(),e),R={class:"userManageMenu"},V={class:"treeTitle flexItem"},A=O(()=>x("span",{style:{"font-weight":"600"}},"\u533A\u5212\u9009\u62E9",-1)),J=I({name:"roleManage"}),L=Object.assign(J,{props:{defaultExpandAll:{type:Boolean,default:!0},defaultData:{type:Object,default:void 0},params:{type:Object,default:()=>({regionCode:331100,regionLevel:2})}},emits:["getTree"],setup(e,{emit:o}){const t=D(N.userStore).userInfo,n=e,r=_([]),l=o,u={label:"name"},c=s=>{console.log(s),l("getTree",d({},s))},a=_();return j(()=>p(this,null,function*(){const s=yield E(n.params);r.value=[s.data],n.defaultData?g(()=>{a.value&&a.value.setCurrentKey(n.defaultData.regionCode,!0),l("getTree",d({},a.value.getCurrentNode()))}):g(()=>{a.value&&a.value.setCurrentKey(t.value.regionCode,!0),l("getTree",d({},a.value.getCurrentNode()))})})),(s,P)=>{const y=v("svg-icon"),C=v("el-tree");return M(),b("div",R,[x("div",V,[m(y,{name:"location","svg-class":"svgIcon"}),w("\xA0"),A]),m(C,{ref_key:"treeRef",ref:a,class:"tree",data:r.value,"node-key":"regionCode","highlight-current":!0,props:u,"default-expand-all":e.defaultExpandAll,"current-node-key":e.defaultData&&e.defaultData.code||void 0,"expand-on-click-node":!1,onNodeClick:c},null,8,["data","default-expand-all","current-node-key"])])}}}),U=B(L,[["__scopeId","data-v-00f4a4c1"],["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/components/elTree/index.vue"]]);export{U as E};