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