数通智联化工云平台
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
2.0 KiB

import{d as R,r as n,ar as D,X as M,aY as N,o as l,b as L,a as t,w as o,f as s,D as O,a7 as v,c as d,j as p,s as S,N as V,aT as U,aZ as j,G as q,aU as z,ao as A,aM as G}from"./index-b0696d90.js";/* empty css */import{_ as I}from"./edit-b02c4768.js";import{l as X}from"./postrole-2ce055d5.js";import Y from"./setuprole-de19097a.js";/* empty css *//* empty css *//* empty css *//* empty css */const Z={class:"app-container"},ne=R({name:"postpower",inheritAttrs:!1,__name:"index",setup($){const c=n(!1),i=n(!1),_=n("配置权限"),m=n(),f=n([]),h=D({}),u=n();function b(){h.id="309",c.value=!0,X(h).then(e=>{f.value=e.data.list}).then(()=>{c.value=!1})}function k(e){u.value=e.id}function C(e){_.value="配置"+e.orgname+" < "+e.name+" >权限",i.value=!0,u.value=e.id,m.value=e.adminorg}return M(()=>{b()}),(e,w)=>{const r=U,g=j,x=I,y=q,T=z,B=A,P=N("hasPerm"),E=G;return l(),L("div",Z,[t(B,{shadow:"never"},{default:o(()=>[t(Y,{isShow:s(i),"onUpdate:isShow":w[0]||(w[0]=a=>O(i)?i.value=a:null),title:s(_),orgid:s(m),postid:s(u)},null,8,["isShow","title","orgid","postid"]),v((l(),d(T,{data:s(f),"highlight-current-row":"","tree-props":{children:"child",hasChildren:"haschild"},"row-key":"id","default-expand-all":"",border:"",onRowClick:k},{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(),d(g,{key:0,type:"success"},{default:o(()=>[p("行政组织")]),_:1})):(l(),d(g,{key:1,type:"info"},{default:o(()=>[p("岗位")]),_:1}))]),_:1}),t(r,{fixed:"right",align:"center",label:"操作",width:"220"},{default:o(a=>[a.row.attribute==2?v((l(),d(y,{key:0,type:"primary",link:"",size:"small",onClick:S(F=>C(a.row),["stop"])},{default:o(()=>[t(x),p("编辑权限 ")]),_:2},1032,["onClick"])),[[P,["124066654198968320"]]]):V("",!0)]),_:1})]),_:1},8,["data"])),[[E,s(c)]])]),_:1})])}}});export{ne as default};