1 |
- import{d as E,P as G,r as _,x as L,b as $,a4 as ee,o as n,c as R,f as e,A as t,a as l,a5 as Y,F as z,R as ae,C as u,D as i,k as d,a3 as le,a9 as te,V as re,S as oe,U as se,I as ne,Q as ce,J as _e,W as pe,aa as me,ab as ue,X as ie,Y as de,Z as fe,_ as ye,__tla as ge}from"./index-286756b9.js";import{_ as be,__tla as he}from"./index-ed6c67a8.js";import{_ as ke,__tla as we}from"./DictTag-f72b04ca.js";import{_ as ve,__tla as Ce}from"./ContentWrap-83998678.js";import{a as Ve,D as F,__tla as xe}from"./dict-82dca549.js";import{d as Se,__tla as Ie}from"./formatTime-83e416ef.js";import{b as Te,d as Ue,__tla as De}from"./index-0de8e543.js";import Me,{__tla as Ne}from"./RoleForm-4abb0049.js";import Re,{__tla as Ye}from"./RoleAssignMenuForm-c9fd90ba.js";import ze,{__tla as Fe}from"./RoleDataPermissionForm-fb0c3974.js";import{u as Pe,__tla as Oe}from"./useMessage-084b1e70.js";import{__tla as Ae}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as qe}from"./el-card-d3d5a654.js";import{__tla as He}from"./Dialog-4c2de357.js";import"./constants-637baed6.js";import"./tree-0af4953a.js";import{__tla as Ke}from"./index-1b0f5c8b.js";import{__tla as We}from"./index-e67b1afd.js";import{__tla as Je}from"./index-1aa850ac.js";let P,Qe=Promise.all([(()=>{try{return ge}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Je}catch{}})()]).then(async()=>{P=ye(E({name:"SystemRole",__name:"index",setup(Xe){const v=Pe(),{t:O}=G(),h=_(!0),C=_(0),V=_([]),r=L({pageNo:1,pageSize:10,code:"",name:"",status:void 0,createTime:[],categoryId:1}),x=_();_(!1);const A=p=>{r.categoryId=p.paneName,console.log(r.categoryId),c()},c=async()=>{h.value=!0;try{const p=await Te(r);V.value=p.list,C.value=p.total}finally{h.value=!1}},b=()=>{r.pageNo=1,c()},q=()=>{x.value.resetFields(),b()},S=_(),I=(p,o)=>{S.value.open(p,o)},T=_(),U=_();return $(()=>{c()}),(p,o)=>{const D=te,f=re,H=oe,K=se,W=ne,k=ce,m=_e,J=pe,M=ve,N=me,Q=ue,s=ie,X=ke,Z=de,j=be,y=ee("hasPermi"),B=fe;return n(),R(z,null,[e(M,null,{default:t(()=>[e(J,{ref_key:"queryFormRef",ref:x,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(D,{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:Y(b,["enter"])},null,8,["modelValue"])]),_:1}),e(f,{label:"\u89D2\u8272\u6807\u8BC6",prop:"code"},{default:t(()=>[e(D,{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:Y(b,["enter"])},null,8,["modelValue"])]),_:1}),e(f,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[e(K,{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),R(z,null,ae(l(Ve)(l(F).COMMON_STATUS),a=>(n(),u(H,{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(m,{onClick:b},{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=>I("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(Q,{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(M,null,{default:t(()=>[d((n(),u(Z,{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(X,{type:l(F).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(m,{link:"",type:"primary",onClick:w=>I("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=>{U.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=>{T.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(m,{key:0,link:"",type:"danger",onClick:w=>(async g=>{try{await v.delConfirm(),await Ue(g),v.success(O("common.delSuccess")),await c()}catch{}})(a.row.id)},{default:t(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["system:role:delete"]]])]),_:1})]),_:1},8,["data"])),[[B,l(h)]]),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(C),onPagination:c},null,8,["limit","page","total"])]),_:1}),e(Me,{ref_key:"formRef",ref:S,onSuccess:c},null,512),e(Re,{ref_key:"assignMenuFormRef",ref:U,onSuccess:c},null,512),e(ze,{ref_key:"dataPermissionFormRef",ref:T,onSuccess:c},null,512)],64)}}}),[["__scopeId","data-v-17c20125"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/role/index.vue"]])});export{Qe as __tla,P as default};
|