1 |
- import{d as E,A as Q,r as c,g as W,y as $,S as ee,o as n,c as Y,i as e,w as t,a as l,T as F,F as R,B as ae,k as u,l as i,C as d,X as le,H as te,D as re,G as oe,p as se,_ as ne,q as _e,I as ce,Y as pe,Z as me,J as ue,K as ie,L as de,__tla as fe}from"./index-abaca7e8.js";import{_ as ye,__tla as ge}from"./index.vue_vue_type_script_setup_true_lang-f7ebf07b.js";import{_ as he,__tla as be}from"./DictTag.vue_vue_type_script_lang-c84a7172.js";import{_ as ke,__tla as we}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9818245e.js";import{a as ve,D as H,__tla as Ce}from"./dict-885a7988.js";import{d as Ve,__tla as Se}from"./formatTime-0c1ba065.js";import{b as xe,d as Te,__tla as Ue}from"./index-ee7af1bd.js";import Ie,{__tla as Me}from"./RoleForm-c511612a.js";import Ne,{__tla as De}from"./RoleAssignMenuForm-23e5355f.js";import{_ as Ye,__tla as Fe}from"./RoleDataPermissionForm.vue_vue_type_script_setup_true_lang-f394f996.js";import{u as Re,__tla as He}from"./useMessage-7c79d01b.js";import{_ as Ke}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Oe}from"./index-e37a1056.js";import"./color-6e929987.js";import{__tla as Pe}from"./el-card-ff5a526a.js";import{__tla as qe}from"./Dialog-a2f7c92a.js";import"./constants-e43f22dd.js";import"./tree-fd3a041e.js";import{__tla as ze}from"./index-ae52f084.js";import{__tla as Ae}from"./index-3aa4bb8f.js";import{__tla as Be}from"./index-15747431.js";let K,Ge=Promise.all([(()=>{try{return fe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Be}catch{}})()]).then(async()=>{K=Ke(E({name:"SystemRole",__name:"index",setup(Je){const v=Re(),{t:O}=Q(),b=c(!0),C=c(0),V=c([]),r=W({pageNo:1,pageSize:10,code:"",name:"",status:void 0,createTime:[],categoryId:1}),S=c();c(!1);const P=p=>{r.categoryId=p.paneName,_()},_=async()=>{b.value=!0;try{const p=await xe(r);V.value=p.list,C.value=p.total}finally{b.value=!1}},h=()=>{r.pageNo=1,_()},q=()=>{S.value.resetFields(),h()},x=c(),T=(p,o)=>{x.value.open(p,o)},U=c(),I=c();return $(()=>{_()}),(p,o)=>{const M=le,f=te,z=re,A=oe,B=se,k=ne,m=_e,G=ce,N=ke,D=pe,J=me,s=ue,L=he,X=ie,Z=ye,y=ee("hasPermi"),j=de;return n(),Y(R,null,[e(N,null,{default:t(()=>[e(G,{ref_key:"queryFormRef",ref:S,inline:!0,model:l(r),class:"-mb-15px","label-width":"68px"},{default:t(()=>[e(f,{label:"\u89D2\u8272\u540D\u79F0",prop:"name"},{default:t(()=>[e(M,{modelValue:l(r).name,"onUpdate:modelValue":o[0]||(o[0]=a=>l(r).name=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0",onKeyup:F(h,["enter"])},null,8,["modelValue"])]),_:1}),e(f,{label:"\u89D2\u8272\u6807\u8BC6",prop:"code"},{default:t(()=>[e(M,{modelValue:l(r).code,"onUpdate:modelValue":o[1]||(o[1]=a=>l(r).code=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272\u6807\u8BC6",onKeyup:F(h,["enter"])},null,8,["modelValue"])]),_:1}),e(f,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[e(A,{modelValue:l(r).status,"onUpdate:modelValue":o[2]||(o[2]=a=>l(r).status=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:t(()=>[(n(!0),Y(R,null,ae(l(ve)(l(H).COMMON_STATUS),a=>(n(),u(z,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(B,{modelValue:l(r).createTime,"onUpdate:modelValue":o[3]||(o[3]=a=>l(r).createTime=a),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px","end-placeholder":"\u7ED3\u675F\u65E5\u671F","start-placeholder":"\u5F00\u59CB\u65E5\u671F",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1}),e(f,null,{default:t(()=>[e(m,{onClick:h},{default:t(()=>[e(k,{class:"mr-5px",icon:"ep:search"}),i(" \u641C\u7D22 ")]),_:1}),e(m,{onClick:q},{default:t(()=>[e(k,{class:"mr-5px",icon:"ep:refresh"}),i(" \u91CD\u7F6E ")]),_:1}),d((n(),u(m,{plain:"",type:"primary",onClick:o[4]||(o[4]=a=>T("create"))},{default:t(()=>[e(k,{class:"mr-5px",icon:"ep:plus"}),i(" \u65B0\u589E ")]),_:1})),[[y,["system:role:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(J,{modelValue:l(r).categoryId,"onUpdate:modelValue":o[5]||(o[5]=a=>l(r).categoryId=a),onTabClick:P,class:"parent-tabs"},{default:t(()=>[e(D,{label:"\u5E73\u53F0\u89D2\u8272",name:1}),e(D,{label:"\u5546\u6237\u89D2\u8272",name:2})]),_:1},8,["modelValue"]),e(N,null,{default:t(()=>[d((n(),u(X,{data:l(V)},{default:t(()=>[e(s,{align:"center",label:"\u89D2\u8272\u7F16\u53F7",prop:"id"}),e(s,{align:"center",label:"\u89D2\u8272\u540D\u79F0",prop:"name"}),e(s,{align:"center",label:"\u89D2\u8272\u7C7B\u578B",prop:"type"}),e(s,{align:"center",label:"\u89D2\u8272\u6807\u8BC6",prop:"code"}),e(s,{align:"center",label:"\u663E\u793A\u987A\u5E8F",prop:"sort"}),e(s,{align:"center",label:"\u5907\u6CE8",prop:"remark"}),e(s,{align:"center",label:"\u72B6\u6001",prop:"status"},{default:t(a=>[e(L,{type:l(H).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(s,{formatter:l(Ve),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),e(s,{width:300,align:"center",label:"\u64CD\u4F5C"},{default:t(a=>[d((n(),u(m,{link:"",type:"primary",onClick:w=>T("update",a.row.id)},{default:t(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["system:role:update"]]]),d((n(),u(m,{link:"",preIcon:"ep:basketball",title:"\u83DC\u5355\u6743\u9650",type:"primary",onClick:w=>(async g=>{I.value.open(g)})(a.row)},{default:t(()=>[i(" \u83DC\u5355\u6743\u9650 ")]),_:2},1032,["onClick"])),[[y,["system:permission:assign-role-menu"]]]),d((n(),u(m,{link:"",preIcon:"ep:coin",title:"\u6570\u636E\u6743\u9650",type:"primary",onClick:w=>(async g=>{U.value.open(g)})(a.row)},{default:t(()=>[i(" \u6570\u636E\u6743\u9650 ")]),_:2},1032,["onClick"])),[[y,["system:permission:assign-role-data-scope"]]]),d((n(),u(m,{link:"",type:"danger",onClick:w=>(async g=>{try{await v.delConfirm(),await Te(g),v.success(O("common.delSuccess")),await _()}catch{}})(a.row.id)},{default:t(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["system:role:delete"]]])]),_:1})]),_:1},8,["data"])),[[j,l(b)]]),e(Z,{limit:l(r).pageSize,"onUpdate:limit":o[6]||(o[6]=a=>l(r).pageSize=a),page:l(r).pageNo,"onUpdate:page":o[7]||(o[7]=a=>l(r).pageNo=a),total:l(C),onPagination:_},null,8,["limit","page","total"])]),_:1}),e(Ie,{ref_key:"formRef",ref:x,onSuccess:_},null,512),e(Ne,{ref_key:"assignMenuFormRef",ref:I,onSuccess:_},null,512),e(Ye,{ref_key:"dataPermissionFormRef",ref:U,onSuccess:_},null,512)],64)}}}),[["__scopeId","data-v-96df0c65"]])});export{Ge as __tla,K as default};
|