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.
1 lines
1.8 KiB
1 lines
1.8 KiB
import{d as E,r as o,ax as R,G as D,cx as L,a as s,f as M,e as l,b as t,h as n,I as N,Y as v,c,H as p,j as O,$ as S,b3 as V,cz as z,ab as A,b4 as I,aA as $,at as j}from"./index-e450010e.js";import{l as q}from"./postrole-86ae9f12.js";import G from"./setuprole-f8a7164a.js";/* empty css */const H={class:"app-container"},W=E({name:"postpower",inheritAttrs:!1,__name:"index",setup(U){const d=o(!1),i=o(!1),_=o("配置权限"),m=o(),f=o([]),h=R({}),u=o();function b(){h.id="309",d.value=!0,q(h).then(e=>{f.value=e.data.list}).then(()=>{d.value=!1})}function x(e){u.value=e.id}function k(e){_.value="配置"+e.orgname+" < "+e.name+" >权限",i.value=!0,u.value=e.id,m.value=e.adminorg}return D(()=>{b()}),(e,w)=>{const r=V,g=z,C=A,y=I,T=$,B=L("hasPerm"),P=j;return s(),M("div",H,[l(T,{shadow:"never"},{default:t(()=>[l(G,{isShow:n(i),"onUpdate:isShow":w[0]||(w[0]=a=>N(i)?i.value=a:null),title:n(_),orgid:n(m),postid:n(u)},null,8,["isShow","title","orgid","postid"]),v((s(),c(y,{data:n(f),"highlight-current-row":"","tree-props":{children:"child",hasChildren:"haschild"},"row-key":"id","default-expand-all":"",stripe:"",onRowClick:x},{default:t(()=>[l(r,{label:"行政组织 / 岗位",prop:"name"}),l(r,{label:"标识编号",width:"200",prop:"number"}),l(r,{label:"状态",align:"center",width:"150"},{default:t(a=>[a.row.attribute===1?(s(),c(g,{key:0,type:"success"},{default:t(()=>[p("行政组织")]),_:1})):(s(),c(g,{key:1,type:"info"},{default:t(()=>[p("岗位")]),_:1}))]),_:1}),l(r,{fixed:"right",align:"center",label:"操作",width:"220"},{default:t(a=>[a.row.attribute==2?v((s(),c(C,{key:0,type:"primary",link:"",size:"small",onClick:O(Y=>k(a.row),["stop"])},{default:t(()=>[p("编辑权限")]),_:2},1032,["onClick"])),[[B,["124066654198968320"]]]):S("",!0)]),_:1})]),_:1},8,["data"])),[[P,n(d)]])]),_:1})])}}});export{W as default};
|
|
|