import{d as h,O as S,k as l,r as n,o as y,c as g,a as o,z as I,b as e,u as r,t as $,M as z,B}from"./vue.1703796278973.js";import{M as O,a0 as T,ax as V}from"./index.17037962789732.js";import"./index.1703796278973300.js";import"./index.170379627897315.js";import"./index.170379627897317.js";import"./index.1703796278973301.js";import"./index.1703796278973302.js";import"./index.170379627897332.js";import"./index.1703796278973303.js";import"./index.170379627897339.js";import"./index.170379627897316.js";import"./index.170379627897314.js";import"./index.1703796278973304.js";import"./index.1703796278973305.js";import"./index.1703796278973306.js";import"./index.170379627897336.js";import{_ as c}from"./index.vue_vue_type_script_setup_true_name_PermissionButton_lang.1703796278973.js";import{_ as q}from"./AddDialog.vue_vue_type_script_setup_true_lang.1703796278973.js";import{f as M,h as N}from"./role.1703796278973.js";import{h as j}from"./system.1703796278973.js";import{_ as w}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897320.js";import"./index.170379627897321.js";import"./permission.1703796278973.js";import"./index.170379627897337.js";import"./index.170379627897318.js";import"./index.170379627897319.js";import"./comm.1703796278973.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const A={class:"role-container"},D=h({name:"Role"}),E=h({...D,setup(F){const p="system/Role",{jumpPage:v}=j(),k=!!S().query.save,d=[{title:"标识",dataIndex:"id",key:"id",ellipsis:!0,fixed:"left",search:{type:"string"}},{title:"名称",dataIndex:"name",key:"name",ellipsis:!0,search:{type:"string"}},{title:"说明",key:"description",ellipsis:!0,dataIndex:"description",search:{type:"string"}},{title:"操作",dataIndex:"action",key:"action",width:200,fixed:"right",scopedSlots:!0}],_=l({}),u=l(),x=f=>{N(f.id).then(t=>{var a;t.status===200&&((a=u.value)==null||a.reload(),O.success("操作成功!"))})},s=l(k);return(f,t)=>{const a=n("pro-search"),m=n("AIcon"),P=T,C=V,b=n("FullPage"),R=n("page-container");return y(),g(R,null,{default:o(()=>[I("div",A,[e(a,{columns:d,target:"category",onSearch:t[0]||(t[0]=i=>_.value={...i})}),e(b,null,{default:o(()=>[e(C,{ref_key:"tableRef",ref:u,columns:d,request:r(M),model:"TABLE",params:r(_),defaultParams:{pageSize:10,sorts:[{name:"createTime",order:"desc"},{name:"id",order:"desc"}]},pagination:{showSizeChanger:!0,pageSizeOptions:["10","20","50","100"]}},{headerTitle:o(()=>[e(c,{type:"primary",hasPermission:`${p}:add`,onClick:t[1]||(t[1]=i=>s.value=!0)},{default:o(()=>[e(m,{type:"PlusOutlined"}),$("新增 ")]),_:1},8,["hasPermission"])]),action:o(i=>[e(P,{size:16},{default:o(()=>[e(c,{hasPermission:`${p}:update`,type:"link",tooltip:{title:"编辑"},onClick:J=>r(v)("system/Role/Detail",{id:i.id})},{default:o(()=>[e(m,{type:"EditOutlined"})]),_:2},1032,["hasPermission","onClick"]),e(c,{type:"link",hasPermission:`${p}:delete`,tooltip:{title:"删除"},popConfirm:{title:"确定要删除吗",onConfirm:()=>x(i)}},{default:o(()=>[e(m,{type:"DeleteOutlined"})]),_:2},1032,["hasPermission","popConfirm"])]),_:2},1024)]),_:1},8,["request","params"])]),_:1}),r(s)?(y(),g(q,{key:0,visible:r(s),"onUpdate:visible":t[2]||(t[2]=i=>z(s)?s.value=i:null)},null,8,["visible"])):B("",!0)])]),_:1})}}});const ze=w(E,[["__scopeId","data-v-8e3a5666"]]);export{ze as default};
