import{d as V,a4 as P,b as f,p as F,c as d,e as z,f as I,g as o,h as t,i as u,u as a,w as S,v as L,a1 as R,F as U,m as g,E as y,R as N,S as $,_ as q}from"./index.0308b213.js";import{a as K,g as O}from"./mobile.d01453fc.js";const j=m=>(N("data-v-9deb265f"),m=m(),$(),m),M={class:"container"},T={class:"row"},G=j(()=>o("span",null,"\u4E0A\u4F20",-1)),H={class:"row"},J=g("\u5BFC\u5165"),Q={class:"filter-form"},W=g("\u7B5B\u9009"),X={class:"data"},Y={class:"table"},Z={class:"table-operation-btn"},ee={class:"bottom"},te=g("\u5220\u9664"),oe={class:"bottom"},le={class:"pagination"},ae=V({setup(m){const h=P(),n=f({keyword:"",uid:"",timeRange:[],page:1,limit:20}),i=f({btnLoading:!1,formData:new FormData,filePath:""}),w=()=>{var l;(l=document.getElementById("file"))==null||l.click()},C=l=>{i.formData=new FormData;let e=l.target.files[0];i.formData.append("excel",e),i.filePath=e.name,console.log("\u6587\u4EF6",e)},B=()=>{if(!i.filePath){y.error("\u8BF7\u9009\u62E9\u6587\u4EF6");return}i.btnLoading=!0,console.log("\u73FE\u5728\u958B\u59CB\u4E0A\u50B3"),K(i.formData).then(l=>{y.success("\u5BFC\u5165\u6210\u529F"),r()}).finally(()=>{i.btnLoading=!1})},_=f({list:[],count:0}),r=()=>{O(n).then(l=>{_.list=l.list,_.count=l.count})};return F(()=>[n.page,n.limit],()=>{r()}),F(()=>h.query.uid,l=>{l&&(n.uid=l),r()},{immediate:!0}),(l,e)=>{const D=d("FolderOpened"),x=d("el-icon"),b=d("el-input"),c=d("el-button"),v=d("el-form-item"),E=d("el-form"),p=d("el-table-column"),k=d("el-table"),A=d("el-pagination");return z(),I(U,null,[o("div",M,[o("div",T,[t(b,{modelValue:a(i).filePath,"onUpdate:modelValue":e[1]||(e[1]=s=>a(i).filePath=s),disabled:!0},{append:u(()=>[o("div",{class:"btn-wrap",onClick:e[0]||(e[0]=s=>w())},[t(x,{size:18},{default:u(()=>[t(D)]),_:1}),G])]),_:1},8,["modelValue"]),S(o("input",{id:"file",type:"file",onChange:C},null,544),[[L,!1]])]),o("div",H,[t(c,{type:"primary",loading:a(i).btnLoading,onClick:e[2]||(e[2]=s=>B())},{default:u(()=>[J]),_:1},8,["loading"])])]),o("div",Q,[t(E,{model:a(n),"label-width":"80px"},{default:u(()=>[t(v,{class:"tn-el-form-item",label:"\u6A21\u7CCA\u6761\u4EF6"},{default:u(()=>[t(b,{modelValue:a(n).keyword,"onUpdate:modelValue":e[3]||(e[3]=s=>a(n).keyword=s),placeholder:"\u59D3\u540D/\u624B\u673A\u53F7",onKeyup:e[4]||(e[4]=R(()=>{},["enter"]))},null,8,["modelValue"])]),_:1}),t(v,null,{default:u(()=>[t(c,{type:"primary",onClick:e[5]||(e[5]=s=>r())},{default:u(()=>[W]),_:1})]),_:1})]),_:1},8,["model"])]),o("div",X,[o("div",Y,[t(k,{data:a(_).list,onSelectionChange:e[7]||(e[7]=()=>{})},{default:u(()=>[t(p,{label:"id",prop:"id"}),t(p,{label:"uid",prop:"uid"}),t(p,{label:"\u59D3\u540D",prop:"name"}),t(p,{label:"\u624B\u673A\u53F7\u7801",prop:"mobile"}),t(p,{label:"\u6DFB\u52A0\u65F6\u95F4",prop:"addtime"}),t(p,{fixed:"right",label:"\u64CD\u4F5C",width:"340px"},{default:u(s=>[o("div",Z,[o("div",ee,[t(c,{size:"small",type:"danger",onClick:e[6]||(e[6]=()=>{})},{default:u(()=>[te]),_:1})])])]),_:1})]),_:1},8,["data"])])]),o("div",oe,[o("div",le,[t(A,{currentPage:a(n).page,"onUpdate:currentPage":e[8]||(e[8]=s=>a(n).page=s),"page-size":a(n).limit,"onUpdate:page-size":e[9]||(e[9]=s=>a(n).limit=s),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:a(_).count},null,8,["currentPage","page-size","total"])])])],64)}}});const ie=q(ae,[["__scopeId","data-v-9deb265f"]]);export{ie as default};
