index-b7db0a74.js 2.52 KB
import{d as h,a8 as t,_ as d,$ as _,f as i,aa as s,E as g,a9 as C,ac as w}from"./vue-5a35c3f5.js";import{B as T}from"./BasicTable-7dbd57c0.js";import{T as B}from"./componentMap-4d1c941b.js";import"./TableImg.vue_vue_type_style_index_0_lang-6e828edc.js";import{u as D}from"./useTable-e28259fb.js";import{b as R}from"./system-c978e3dc.js";import{u as k}from"./index-76664154.js";import{R as y,c as E,s as S}from"./RoleDrawer-b83fc5a0.js";import{_ as v}from"./index.js";import"./BasicForm-53100365.js";import"./FormItem-ffc5ecef.js";import"./helper-95474dfc.js";import"./antd-6b087f69.js";import"./BasicForm.vue_vue_type_style_index_0_lang-3479a052.js";import"./uniqBy-0cd5a663.js";import"./index-c1c2669a.js";import"./useWindowSizeFn-cc2fb57c.js";import"./useForm-86d11f60.js";import"./RadioButtonGroup-72b65d2e.js";import"./useFormItem-9ea791b8.js";import"./uuid-31b8b5a4.js";import"./merge-4fa735fa.js";import"./onMountedOrActivated-52afb7a7.js";import"./download-3d468407.js";import"./base64Conver-39fc0d26.js";import"./index-1ca3bd8a.js";import"./IconPicker-6bbd557c.js";import"./index-9a895eb5.js";import"./sortable.esm-4ae27e0b.js";const $=h({name:"RoleManagement",components:{BasicTable:T,RoleDrawer:y,TableAction:B},setup(){const[e,{openDrawer:r}]=k(),[l,{reload:m}]=D({title:"角色列表",api:R,columns:E,formConfig:{labelWidth:120,schemas:S},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!1,actionColumn:{width:80,title:"操作",dataIndex:"action",fixed:void 0}});function c(){r(!0,{isUpdate:!1})}function p(o){r(!0,{record:o,isUpdate:!0})}function n(o){console.log(o)}function a(){m()}return{registerTable:l,registerDrawer:e,handleCreate:c,handleEdit:p,handleDelete:n,handleSuccess:a}}});function x(e,r,l,m,c,p){const n=t("a-button"),a=t("TableAction"),o=t("BasicTable"),f=t("RoleDrawer");return d(),_("div",null,[i(o,{onRegister:e.registerTable},{toolbar:s(()=>[i(n,{type:"primary",onClick:e.handleCreate},{default:s(()=>[g(" 新增角色 ")]),_:1},8,["onClick"])]),bodyCell:s(({column:b,record:u})=>[b.key==="action"?(d(),C(a,{key:0,actions:[{icon:"clarity:note-edit-line",onClick:e.handleEdit.bind(null,u)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",placement:"left",confirm:e.handleDelete.bind(null,u)}}]},null,8,["actions"])):w("v-if",!0)]),_:1},8,["onRegister"]),i(f,{onRegister:e.registerDrawer,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])}const se=v($,[["render",x],["__file","E:/allcode/erp/test7901/order-erp-front/src/views/demo/system/role/index.vue"]]);export{se as default};