import{A as z}from"./index.1d26a072.js";import{d as P,a6 as U,b as V,p as N,c as n,e as p,f as T,g as _,h as e,i as l,u as o,k as f,A as b,a2 as I,t as L,m as d,_ as R}from"./index.0308b213.js";import{l as S,m as j}from"./index.bf3882f3.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";const q={class:"filter-form"},O=d("\u4E0D\u9650"),G=d("\u53D1\u9001\u6210\u529F"),H=d("\u53D1\u9001\u5931\u8D25"),J=d("\u7B5B\u9009"),K={class:"data"},M={class:"table"},Q=d("\u5DF2\u53D1\u9001"),W=d("\u53D1\u9001\u5931\u8D25"),X={class:"pagination"},Y=P({setup(Z){const{OpPlatform:D}=U(),s=V({list:[],count:0}),a=V({page:1,limit:10,status:-1,agentid:""}),c=()=>{D.value==="agent"?S(a).then(i=>{s.lists=i.lists,s.count=i.count}):j(a).then(i=>{s.lists=i.lists,s.count=i.count})};c();const k=()=>{c()};return N(()=>[a.page,a.limit,a.agentid,a.status],()=>{c()},{deep:!0}),(i,u)=>{const m=n("el-radio"),A=n("el-radio-group"),g=n("el-form-item"),w=n("el-button"),r=n("el-table-column"),B=n("el-image"),h=n("el-tag"),C=n("el-table"),E=n("el-pagination");return p(),T("div",null,[_("div",q,[e(o(I),{model:o(a),"label-width":"90px"},{default:l(()=>[e(g,{label:"\u53D1\u9001\u72B6\u6001"},{default:l(()=>[e(A,{modelValue:o(a).status,"onUpdate:modelValue":u[0]||(u[0]=t=>o(a).status=t)},{default:l(()=>[e(m,{border:"",label:-1},{default:l(()=>[O]),_:1}),e(m,{border:"",label:1},{default:l(()=>[G]),_:1}),e(m,{border:"",label:0},{default:l(()=>[H]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(D)==="shangpu"?(p(),f(g,{key:0,label:"\u4EE3\u7406\u533A\u57DF"},{default:l(()=>[e(o(z),{modelValue:o(a).agentid,"onUpdate:modelValue":u[1]||(u[1]=t=>o(a).agentid=t)},null,8,["modelValue"])]),_:1})):b("",!0),e(g,null,{default:l(()=>[e(w,{type:"primary",onClick:k},{default:l(()=>[J]),_:1})]),_:1})]),_:1},8,["model"])]),_("div",K,[_("div",M,[e(C,{data:o(s).lists},{default:l(()=>[e(r,{fixed:"",label:"\u6A21\u677F\u540D\u79F0",prop:"template_title",align:"center"}),e(r,{fixed:"",label:"\u4EE3\u7406\u533A\u57DF",prop:"agent_title",align:"center"}),e(r,{fixed:"",label:"UID",prop:"uid",align:"center"}),e(r,{label:"\u7528\u6237\u5934\u50CF"},{default:l(t=>{var x,v,y,F;return[_("span",null,L((v=(x=t==null?void 0:t.row)==null?void 0:x.user)==null?void 0:v.nickname),1),e(B,{style:{width:"50px",height:"50px"},src:(F=(y=t==null?void 0:t.row)==null?void 0:y.user)==null?void 0:F.avatar},null,8,["src"])]}),_:1}),e(r,{label:"\u53D1\u9001\u72B6\u6001"},{default:l(t=>[t.row.status==1?(p(),f(h,{key:0,type:"success"},{default:l(()=>[Q]),_:1})):b("",!0),t.row.status==0?(p(),f(h,{key:1,type:"danger"},{default:l(()=>[W]),_:1})):b("",!0)]),_:1}),e(r,{fixed:"",label:"\u53D1\u9001\u65F6\u95F4",prop:"addtime_cn",align:"center"})]),_:1},8,["data"])])]),_("div",X,[e(E,{currentPage:o(a).page,"onUpdate:currentPage":u[2]||(u[2]=t=>o(a).page=t),"page-size":o(a).limit,"onUpdate:page-size":u[3]||(u[3]=t=>o(a).limit=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:o(s).count},null,8,["currentPage","page-size","total"])])])}}});const ne=R(Y,[["__scopeId","data-v-2b39cfe3"]]);export{ne as default};
