import{d as w,b7 as z,b as U,r as p,p as N,c as i,e as y,f as I,g as n,h as e,i as s,u,C as P,t as B,k as q,q as R,A as S,F as T,m as b,y as v,_ as j}from"./index.0308b213.js";import{_ as L,l as M}from"./Edit.vue_vue_type_script_setup_true_lang.4e3992e6.js";const O={class:"filter-form"},$=b("\u7B5B\u9009"),G={class:"data"},H={class:"operation-btn"},J=b("\u6DFB\u52A0\u9ED8\u8BA4\u5730\u5740"),K={class:"table"},Q=b("\u7F16\u8F91"),W={class:"bottom"},X={class:"pagination"},Y=w({setup(Z){z();const l=U({page:1,page_size:20,name:"",address_code:""}),g=p([]),C=p(0),_=()=>{M(l).then(r=>{g.value=r.list,C.value=r.count})};_();let d=p(!1),c=p(!1),m=p(0);const h=()=>{c.value=!0,v(()=>{d.value=!0})},A=r=>{m.value=r,c.value=!0,v(()=>{d.value=!0})},D=()=>{m.value=0,d.value=!1,v(()=>{c.value=!1}),_()};return N(()=>[l.page,l.page_size],()=>{_()}),(r,a)=>{const E=i("el-input"),F=i("el-form-item"),f=i("el-button"),V=i("el-form"),o=i("el-table-column"),k=i("el-table"),x=i("el-pagination");return y(),I(T,null,[n("div",O,[e(V,{model:u(l),onSubmit:a[2]||(a[2]=P(()=>{},["prevent"]))},{default:s(()=>[e(F,{class:"tn-el-form-item",label:"\u540D\u79F0"},{default:s(()=>[e(E,{modelValue:u(l).name,"onUpdate:modelValue":a[0]||(a[0]=t=>u(l).name=t),placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",style:{width:"auto"}},null,8,["modelValue"])]),_:1}),e(F,{class:"tn-el-form-item",label:"\u552F\u4E00\u6807\u8BC6\u7801\uFF08\u5F00\u53D1\u7528\u7684\uFF09"},{default:s(()=>[e(E,{modelValue:u(l).address_code,"onUpdate:modelValue":a[1]||(a[1]=t=>u(l).address_code=t),placeholder:"\u8BF7\u8F93\u5165\u552F\u4E00\u6807\u8BC6\u7801",style:{width:"auto"}},null,8,["modelValue"])]),_:1}),e(F,null,{default:s(()=>[e(f,{type:"primary",onClick:_},{default:s(()=>[$]),_:1})]),_:1})]),_:1},8,["model"])]),n("div",G,[n("div",H,[e(f,{type:"primary",onClick:h},{default:s(()=>[J]),_:1})]),n("div",K,[e(k,{data:g.value},{default:s(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"ID",prop:"id"}),e(o,{label:"\u540D\u79F0",prop:"name"}),e(o,{label:"\u5907\u6CE8\u8BF4\u660E",prop:"remark"}),e(o,{label:"\u552F\u4E00\u6807\u8BC6\u7801\uFF08\u5F00\u53D1\u7528\u7684\uFF09",prop:"address_code"}),e(o,{label:"\u5730\u5740",prop:"address"}),e(o,{label:"\u95E8\u724C\u53F7",prop:"number"}),e(o,{label:"\u90AE\u7F16",prop:"zip_code"}),e(o,{label:"\u624B\u673A\u53F7",prop:"phone"}),e(o,{label:"\u7ECF\u7EAC\u5EA6"},{default:s(({row:t})=>[n("div",null,"\u7ECF\u5EA6\uFF1A"+B(t.location_x),1),n("div",null,"\u7EAC\u5EA6\uFF1A"+B(t.location_y),1)]),_:1}),e(o,{label:"\u5730\u5740\u7C7B\u578B",prop:"address_type_text"}),e(o,{label:"\u64CD\u4F5C",align:"center",width:"400"},{default:s(t=>[e(f,{type:"primary",onClick:ee=>A(t.row.id)},{default:s(()=>[Q]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])]),n("div",W,[n("div",X,[e(x,{currentPage:u(l).page,"onUpdate:currentPage":a[3]||(a[3]=t=>u(l).page=t),"page-size":u(l).limit,"onUpdate:page-size":a[4]||(a[4]=t=>u(l).limit=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:C.value},null,8,["currentPage","page-size","total"])])]),u(c)?(y(),q(L,{key:0,modelValue:u(d),"onUpdate:modelValue":a[5]||(a[5]=t=>R(d)?d.value=t:d=t),id:u(m),onOnClose:D},null,8,["modelValue","id"])):S("",!0)],64)}}});const ae=j(Y,[["__scopeId","data-v-a645f791"]]);export{ae as default};
