index-5f3df13b.js 6.9 KB

1
  1. import{d as J,h as L,r as _,e as Z,k as $,Q as ee,o as n,c as z,f as e,w as t,a as l,R,F,q as ae,v as u,m as i,x as d,P as le,V as te,A as re,y as oe,z as se,B as ne,n as ce,C as _e,D as me,W as pe,X as ue,G as ie,H as de,I as fe,_ as ye,__tla as ge}from"./index-430b3151.js";import{_ as he,__tla as be}from"./index-c425c88f.js";import{_ as ke,__tla as we}from"./DictTag-c94c3188.js";import{_ as ve,__tla as Ve}from"./ContentWrap-60842994.js";import{a as xe,D as O,__tla as Ce}from"./dict-603b6a58.js";import{d as Se,__tla as Te}from"./formatTime-00eecbb7.js";import{b as Ue,d as Ie,__tla as Me}from"./index-5a4b7424.js";import De,{__tla as Ne}from"./RoleForm-b3f0c49e.js";import ze,{__tla as Re}from"./RoleAssignMenuForm-711e33b8.js";import Fe,{__tla as Oe}from"./RoleDataPermissionForm-5218f38f.js";import{u as Pe,__tla as Ye}from"./useMessage-d226ba89.js";import{__tla as Ae}from"./index-555139e7.js";import"./color-6e929987.js";import{__tla as He}from"./el-card-dee5b36b.js";import{__tla as Ke}from"./Dialog-cd42c639.js";import"./constants-637baed6.js";import"./tree-0af4953a.js";import{__tla as qe}from"./index-b4c25152.js";import{__tla as We}from"./index-760b82ee.js";import{__tla as Be}from"./index-0e1a661d.js";let P,Ge=Promise.all([(()=>{try{return ge}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Be}catch{}})()]).then(async()=>{P=ye(J({name:"SystemRole",__name:"index",setup(Qe){const v=Pe(),{t:Y}=L(),b=_(!0),V=_(0),x=_([]),r=Z({pageNo:1,pageSize:10,code:"",name:"",status:void 0,createTime:[],categoryId:1}),C=_();_(!1);const A=m=>{r.categoryId=m.paneName,console.log(r.categoryId),c()},c=async()=>{b.value=!0;try{const m=await Ue(r);x.value=m.list,V.value=m.total}finally{b.value=!1}},h=()=>{r.pageNo=1,c()},H=()=>{C.value.resetFields(),h()},S=_(),T=(m,o)=>{S.value.open(m,o)},U=_(),I=_();return $(()=>{c()}),(m,o)=>{const M=te,f=re,K=oe,q=se,W=ne,k=ce,p=_e,B=me,D=ve,N=pe,G=ue,s=ie,Q=ke,X=de,j=he,y=ee("hasPermi"),E=fe;return n(),z(F,null,[e(D,null,{default:t(()=>[e(B,{ref_key:"queryFormRef",ref:C,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:R(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:R(h,["enter"])},null,8,["modelValue"])]),_:1}),e(f,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[e(q,{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),z(F,null,ae(l(xe)(l(O).COMMON_STATUS),a=>(n(),u(K,{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(W,{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(p,{onClick:h},{default:t(()=>[e(k,{class:"mr-5px",icon:"ep:search"}),i(" \u641C\u7D22 ")]),_:1}),e(p,{onClick:H},{default:t(()=>[e(k,{class:"mr-5px",icon:"ep:refresh"}),i(" \u91CD\u7F6E ")]),_:1}),d((n(),u(p,{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(G,{modelValue:l(r).categoryId,"onUpdate:modelValue":o[5]||(o[5]=a=>l(r).categoryId=a),onTabClick:A,class:"parent-tabs"},{default:t(()=>[e(N,{label:"\u5E73\u53F0\u89D2\u8272",name:1}),e(N,{label:"\u5546\u6237\u89D2\u8272",name:2})]),_:1},8,["modelValue"]),e(D,null,{default:t(()=>[d((n(),u(X,{data:l(x)},{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(Q,{type:l(O).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(s,{formatter:l(Se),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(p,{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(p,{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(p,{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"]]]),a.row.name.includes("\u7BA1\u7406\u5458")?le("",!0):d((n(),u(p,{key:0,link:"",type:"danger",onClick:w=>(async g=>{try{await v.delConfirm(),await Ie(g),v.success(Y("common.delSuccess")),await c()}catch{}})(a.row.id)},{default:t(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["system:role:delete"]]])]),_:1})]),_:1},8,["data"])),[[E,l(b)]]),e(j,{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(V),onPagination:c},null,8,["limit","page","total"])]),_:1}),e(De,{ref_key:"formRef",ref:S,onSuccess:c},null,512),e(ze,{ref_key:"assignMenuFormRef",ref:I,onSuccess:c},null,512),e(Fe,{ref_key:"dataPermissionFormRef",ref:U,onSuccess:c},null,512)],64)}}}),[["__scopeId","data-v-17c20125"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/role/index.vue"]])});export{Ge as __tla,P as default};