import{d as v,Y as E,h as N,ai as S,r as n,aj as b,o as r,f as d,w as t,b as e,k as s,a7 as _,a2 as H,l as c}from"./index.e3896b23.js";import{_ as R}from"./add-or-update.vue_vue_type_script_setup_true_lang.d8c4f684.js";import"./post.de075824.js";const O=c("\u67E5\u8BE2"),j=c("\u65B0\u589E"),K=c("\u5220\u9664"),I=c("\u4FEE\u6539"),P=c("\u5220\u9664"),T=v({name:"SysPostIndex"}),M=v({...T,setup(Y){const a=E({dataListUrl:"/sys/post/page",deleteUrl:"/sys/post",queryForm:{postCode:"",postName:"",status:""}}),g=N(),C=h=>{g.value.init(h)},{getDataList:f,selectionChangeHandle:k,sizeChangeHandle:D,currentChangeHandle:V,deleteBatchHandle:y}=S(a);return(h,l)=>{const F=n("el-input"),u=n("el-form-item"),w=n("fast-select"),i=n("el-button"),z=n("el-form"),p=n("el-table-column"),q=n("fast-table-column"),U=n("el-table"),x=n("el-pagination"),B=n("el-card"),m=b("auth"),L=b("loading");return r(),d(B,null,{default:t(()=>[e(z,{inline:!0,model:a.queryForm,onKeyup:l[6]||(l[6]=H(o=>s(f)(),["enter"]))},{default:t(()=>[e(u,null,{default:t(()=>[e(F,{modelValue:a.queryForm.postCode,"onUpdate:modelValue":l[0]||(l[0]=o=>a.queryForm.postCode=o),placeholder:"\u5C97\u4F4D\u7F16\u7801",clearable:""},null,8,["modelValue"])]),_:1}),e(u,null,{default:t(()=>[e(F,{modelValue:a.queryForm.postName,"onUpdate:modelValue":l[1]||(l[1]=o=>a.queryForm.postName=o),placeholder:"\u5C97\u4F4D\u540D\u79F0",clearable:""},null,8,["modelValue"])]),_:1}),e(u,null,{default:t(()=>[e(w,{modelValue:a.queryForm.status,"onUpdate:modelValue":l[2]||(l[2]=o=>a.queryForm.status=o),"dict-type":"post_status",clearable:"",placeholder:"\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(u,null,{default:t(()=>[e(i,{onClick:l[3]||(l[3]=o=>s(f)())},{default:t(()=>[O]),_:1})]),_:1}),e(u,null,{default:t(()=>[_((r(),d(i,{type:"primary",onClick:l[4]||(l[4]=o=>C())},{default:t(()=>[j]),_:1})),[[m,"sys:post:save"]])]),_:1}),e(u,null,{default:t(()=>[_((r(),d(i,{type:"danger",onClick:l[5]||(l[5]=o=>s(y)())},{default:t(()=>[K]),_:1})),[[m,"sys:post:delete"]])]),_:1})]),_:1},8,["model"]),_((r(),d(U,{data:a.dataList,border:"",style:{width:"100%"},onSelectionChange:s(k)},{default:t(()=>[e(p,{type:"selection","header-align":"center",align:"center",width:"50"}),e(p,{prop:"postCode",label:"\u5C97\u4F4D\u7F16\u7801","header-align":"center",align:"center"}),e(p,{prop:"postName",label:"\u5C97\u4F4D\u540D\u79F0","header-align":"center",align:"center"}),e(p,{prop:"sort",label:"\u6392\u5E8F","header-align":"center",align:"center"}),e(q,{prop:"status",label:"\u72B6\u6001","dict-type":"post_status"}),e(p,{label:"\u64CD\u4F5C",fixed:"right","header-align":"center",align:"center",width:"150"},{default:t(o=>[_((r(),d(i,{type:"primary",link:"",onClick:$=>C(o.row.id)},{default:t(()=>[I]),_:2},1032,["onClick"])),[[m,"sys:post:update"]]),_((r(),d(i,{type:"primary",link:"",onClick:$=>s(y)(o.row.id)},{default:t(()=>[P]),_:2},1032,["onClick"])),[[m,"sys:post:delete"]])]),_:1})]),_:1},8,["data","onSelectionChange"])),[[L,a.dataListLoading]]),e(x,{"current-page":a.page,"page-sizes":a.pageSizes,"page-size":a.limit,total:a.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:s(D),onCurrentChange:s(V)},null,8,["current-page","page-sizes","page-size","total","onSizeChange","onCurrentChange"]),e(R,{ref_key:"addOrUpdateRef",ref:g,onRefreshDataList:s(f)},null,8,["onRefreshDataList"])]),_:1})}}});export{M as default};
