1 |
- import{d as X,n as E,r as _,f as W,B as Z,P as $,o as s,c as R,i as e,w as t,a as l,Q as z,F,k as ee,l as i,j as p,C as d,U as ae,H as le,D as te,G as re,I as oe,v as se,J as ne,K as ce,L as _e,M as ie,N as pe,_ as ue,__tla as me}from"./index-b2b3c6c4.js";import{_ as de,__tla as fe}from"./index-341fc94c.js";import{_ as ye,__tla as he}from"./DictTag-4199ec8d.js";import{_ as ge,__tla as ke}from"./ContentWrap-e91b2b5a.js";import{a as be,D as O,__tla as we}from"./dict-7f0cc6d2.js";import{d as ve,__tla as xe}from"./formatTime-7e07ce72.js";import{d as Ce}from"./download-20922b56.js";import{b as Se,d as Ve,e as Te,__tla as Ue}from"./index-b9a0b231.js";import Me,{__tla as De}from"./RoleForm-00d346b6.js";import Ne,{__tla as Pe}from"./RoleAssignMenuForm-21189e91.js";import Re,{__tla as ze}from"./RoleDataPermissionForm-a26ea163.js";import{u as Fe,__tla as Oe}from"./useMessage-a5edbb0f.js";import{__tla as He}from"./index-2d76a87c.js";import"./color-6e929987.js";import{__tla as Ke}from"./el-card-bd6e27c9.js";import{__tla as Ye}from"./Dialog-70b24cbf.js";import"./constants-a1da293a.js";import"./tree-0af4953a.js";import{__tla as Ie}from"./index-9f4fa20b.js";import{__tla as Ae}from"./index-f119fff1.js";import{__tla as Ge}from"./index-5a106189.js";let H,je=Promise.all([(()=>{try{return me}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Ge}catch{}})()]).then(async()=>{H=ue(X({name:"SystemRole",__name:"index",setup(qe){const b=Fe(),{t:K}=E(),w=_(!0),C=_(0),S=_([]),r=W({pageNo:1,pageSize:10,code:"",name:"",status:void 0,createTime:[]}),V=_(),v=_(!1),u=async()=>{w.value=!0;try{const m=await Se(r);S.value=m.list,C.value=m.total}finally{w.value=!1}},g=()=>{r.pageNo=1,u()},Y=()=>{V.value.resetFields(),g()},T=_(),U=(m,o)=>{T.value.open(m,o)},M=_(),D=_(),I=async()=>{try{await b.exportConfirm(),v.value=!0;const m=await Te(r);Ce.excel(m,"\u89D2\u8272\u5217\u8868.xls")}catch{}finally{v.value=!1}};return Z(()=>{u()}),(m,o)=>{const N=ae,y=le,A=te,G=re,j=oe,k=se,c=ne,q=ce,P=ge,n=_e,B=ye,J=ie,L=de,f=$("hasPermi"),Q=pe;return s(),R(F,null,[e(P,null,{default:t(()=>[e(q,{ref_key:"queryFormRef",ref:V,inline:!0,model:l(r),class:"-mb-15px","label-width":"68px"},{default:t(()=>[e(y,{label:"\u89D2\u8272\u540D\u79F0",prop:"name"},{default:t(()=>[e(N,{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:z(g,["enter"])},null,8,["modelValue"])]),_:1}),e(y,{label:"\u89D2\u8272\u6807\u8BC6",prop:"code"},{default:t(()=>[e(N,{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:z(g,["enter"])},null,8,["modelValue"])]),_:1}),e(y,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[e(G,{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(()=>[(s(!0),R(F,null,ee(l(be)(l(O).COMMON_STATUS),a=>(s(),i(A,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(j,{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(y,null,{default:t(()=>[e(c,{onClick:g},{default:t(()=>[e(k,{class:"mr-5px",icon:"ep:search"}),p(" \u641C\u7D22 ")]),_:1}),e(c,{onClick:Y},{default:t(()=>[e(k,{class:"mr-5px",icon:"ep:refresh"}),p(" \u91CD\u7F6E ")]),_:1}),d((s(),i(c,{plain:"",type:"primary",onClick:o[4]||(o[4]=a=>U("create"))},{default:t(()=>[e(k,{class:"mr-5px",icon:"ep:plus"}),p(" \u65B0\u589E ")]),_:1})),[[f,["system:role:create"]]]),d((s(),i(c,{loading:l(v),plain:"",type:"success",onClick:I},{default:t(()=>[e(k,{class:"mr-5px",icon:"ep:download"}),p(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[f,["system:role:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(P,null,{default:t(()=>[d((s(),i(J,{data:l(S)},{default:t(()=>[e(n,{align:"center",label:"\u89D2\u8272\u7F16\u53F7",prop:"id"}),e(n,{align:"center",label:"\u89D2\u8272\u540D\u79F0",prop:"name"}),e(n,{align:"center",label:"\u89D2\u8272\u7C7B\u578B",prop:"type"}),e(n,{align:"center",label:"\u89D2\u8272\u6807\u8BC6",prop:"code"}),e(n,{align:"center",label:"\u663E\u793A\u987A\u5E8F",prop:"sort"}),e(n,{align:"center",label:"\u5907\u6CE8",prop:"remark"}),e(n,{align:"center",label:"\u72B6\u6001",prop:"status"},{default:t(a=>[e(B,{type:l(O).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(n,{formatter:l(ve),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),e(n,{width:300,align:"center",label:"\u64CD\u4F5C"},{default:t(a=>[d((s(),i(c,{link:"",type:"primary",onClick:x=>U("update",a.row.id)},{default:t(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[f,["system:role:update"]]]),d((s(),i(c,{link:"",preIcon:"ep:basketball",title:"\u83DC\u5355\u6743\u9650",type:"primary",onClick:x=>(async h=>{D.value.open(h)})(a.row)},{default:t(()=>[p(" \u83DC\u5355\u6743\u9650 ")]),_:2},1032,["onClick"])),[[f,["system:permission:assign-role-menu"]]]),d((s(),i(c,{link:"",preIcon:"ep:coin",title:"\u6570\u636E\u6743\u9650",type:"primary",onClick:x=>(async h=>{M.value.open(h)})(a.row)},{default:t(()=>[p(" \u6570\u636E\u6743\u9650 ")]),_:2},1032,["onClick"])),[[f,["system:permission:assign-role-data-scope"]]]),d((s(),i(c,{link:"",type:"danger",onClick:x=>(async h=>{try{await b.delConfirm(),await Ve(h),b.success(K("common.delSuccess")),await u()}catch{}})(a.row.id)},{default:t(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[f,["system:role:delete"]]])]),_:1})]),_:1},8,["data"])),[[Q,l(w)]]),e(L,{limit:l(r).pageSize,"onUpdate:limit":o[5]||(o[5]=a=>l(r).pageSize=a),page:l(r).pageNo,"onUpdate:page":o[6]||(o[6]=a=>l(r).pageNo=a),total:l(C),onPagination:u},null,8,["limit","page","total"])]),_:1}),e(Me,{ref_key:"formRef",ref:T,onSuccess:u},null,512),e(Ne,{ref_key:"assignMenuFormRef",ref:D,onSuccess:u},null,512),e(Re,{ref_key:"dataPermissionFormRef",ref:M,onSuccess:u},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/system/role/index.vue"]])});export{je as __tla,H as default};
|