import{u as G}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{g as q}from"./blackListApi-f3bc4cc8-1782572373740v=1.0.0.js";import{u as I,b as J,a as O,_ as $}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{u as j}from"./useGetDIct-7b6bc50c-1782572373740v=1.0.0.js";import{r as h,R as n,O as v,al as i,y as K,c as Q,h as L,n as W,m as X,z as Y,I as ee,J as o,u as t,B as x,P as te,k as ae}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{u as le}from"./useSelection-ba27a2e2-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";const oe=()=>{const g=I();J();const{dictlist:b}=j("get_out_of_line"),s=h([{prop:"keyword",label:"\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u9ED1\u540D\u5355\u540D\u79F0\u3001\u4EBA\u5458\u540D\u79F0"}},{prop:"dictId",label:"\u8FDD\u89C4\u7C7B\u578B",isFilterEnum:!0,enum:b,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u8FDD\u89C4\u7C7B\u578B"}}]),u=(a,p)=>{const f=g.resolve({path:"/gamesModule/blackListMgmt/blackList/detail",query:{id:a.blacklistId,index:p}}).href;window.open(f,"_blank")},r=h([{prop:"checkbox",label:"\u9009\u62E9",type:"selection",width:50,fixed:"left"},{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u540D\u79F0",prop:"name"},{label:"\u8FDD\u89C4\u7C7B\u578B",prop:"dictName"},{label:"\u9ED1\u540D\u5355\u4EBA\u5458",prop:"blacklistMemberCount",render:({row:a})=>n(i("el-link"),{onClick:()=>u(a,0),type:"primary"},{default:()=>[a.blacklistMemberCount,v("\u4EBA")]})},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"}]);return{columns:s,tableColumns:r,dataCallBack:a=>(a.listData.forEach(p=>{}),a),paramCallBack:a=>a}},se=oe,ne={class:"selected-list"},ie={class:"left"},re=K({__name:"BlackListSelectDialog",props:{visible:{type:Boolean,default:!1},title:{default:"\u9009\u62E9\u9ED1\u540D\u5355"},loading:{type:Boolean,default:!1},eventGroupInfo:{default:()=>({})},value:{default:()=>({})},blacklistIdsList:{default:()=>[]}},emits:["update:visible","update:value","submit","update:loading"],setup(g,{emit:b}){const s=g,u=b,r=Q({get:()=>s.visible,set:l=>{u("update:visible",l)}});L(r,l=>{l&&H()}),I(),O();const{tableColumns:B,columns:y,dataCallBack:a,paramCallBack:p}=se(),{isSelected:f,selectedList:k,selectedListIds:ue,selectionChange:D}=le("blacklistId"),_=h();L(()=>s.blacklistIdsList,()=>{s.blacklistIdsList.length>0&&W(()=>{var l;(l=_.value)==null||l.element.clearSelection(),s.blacklistIdsList.forEach(e=>{var m;(m=_.value)==null||m.element.toggleRowSelection(e,!0)})})},{immediate:!0,deep:!0});const{tableData:z,pageable:c,baseParam:w,searchParam:P,totalParam:ce,pageParam:de,handleSizeChange:E,handleCurrentChange:F,getTableList:H,search:R,reset:T,loading:V}=G(q,a,p),C=()=>{u("update:visible",!1)},M=()=>{k.value;let l=k.value.map(e=>({blacklistId:e.blacklistId,name:e.name}));u("submit",l),C()};return X(()=>{w.value.status=1}),(l,e)=>{const m=i("HZSearchForm"),Z=i("HZProTable"),N=i("el-pagination"),A=i("HZPageLayout"),S=i("el-button"),U=i("el-dialog");return Y(),ee(U,{modelValue:t(r),"onUpdate:modelValue":e[2]||(e[2]=d=>ae(r)?r.value=d:null),width:"1000px",title:s.title,"before-close":C},{default:o(()=>[n(A,{isCard:!1},{searchForm:o(()=>[n(m,{"search-param":t(P),columns:t(y),search:t(R),reset:t(T),searchCol:3},null,8,["search-param","columns","search","reset"])]),pagination:o(()=>[x("div",ne,[x("div",ie,"\u5DF2\u9009\u62E9\uFF1A"+te(t(k).length)+"\u6761",1),n(N,{"current-page":t(c).page,"onUpdate:currentPage":e[0]||(e[0]=d=>t(c).page=d),"page-size":t(c).size,"onUpdate:pageSize":e[1]||(e[1]=d=>t(c).size=d),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:t(c).count,onSizeChange:t(E),onCurrentChange:t(F)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])])]),default:o(()=>[n(Z,{columns:t(B),data:t(z),isFlex:!1,loading:t(V),showColSet:!1,"row-key":"blacklistId",ref_key:"tableRef",ref:_,onSelectionChange:t(D)},{tableHeader:o(()=>e[3]||(e[3]=[])),toolButton:o(()=>e[4]||(e[4]=[])),_:1},8,["columns","data","loading","onSelectionChange"])]),_:1})]),footer:o(()=>[n(S,{onClick:C},{default:o(()=>e[5]||(e[5]=[v("\u53D6\u6D88",-1)])),_:1,__:[5]}),n(S,{type:"primary",onClick:M,loading:s.loading},{default:o(()=>e[6]||(e[6]=[v("\u786E\u5B9A",-1)])),_:1,__:[6]},8,["loading"])]),_:1},8,["modelValue","title"])}}});const he=$(re,[["__scopeId","data-v-1c42e740"]]);export{he as default};
