2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{B as z,C as G,_ as H,M as J,N as Q,$ as W,w as X,D as Y,I as Z,O as ee,P as le}from"./element-plus.9c2fdfa8.js";import{u as ae}from"./usePaging.c22e2b6f.js";import{p as oe,e as te,f as ue,g as ne,t as re,h as se,i as pe}from"./users.a8dce3a8.js";import{d as de,$ as m,a4 as ie,o as r,c as b,U as e,L as a,u as o,R as h,T as v,a7 as C,K as E,a as me,k as ce}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.6e8143ba.js";import"./lodash.47b8af7d.js";import"./axios.96be3cef.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";const _e={class:"flex mt-4 justify-end"},el=de({__name:"list",setup(fe){const t=m({nick_name:"",phone:"",status:"",address:"",province:"",city:"",area:"",street:"",village:"",brigade:""}),{pager:V,getLists:B,resetParams:P,resetPage:N}=ae({fetchFun:te,params:t});m([{label:"lable",id:0,name:"\u6B63\u5E38"},{label:"lable2",id:0,name:"\u5F02\u5E38"}]);const g=(n,u)=>{for(const c in n)n[c]!=null&&n[c]!=null&&(u[c]=n[c]);console.log(u)};B();const y=m([]),k=m([]),x=m([]),A=m([]),U=m([]),D=m([]);oe().then(n=>{g(n,y)});const T=()=>{ue({province:t.province}).then(n=>{g(n,k)})},I=()=>{ne({city:t.city}).then(n=>{g(n,x)})},R=()=>{re({area:t.area}).then(n=>{g(n,A)})},$=()=>{se({street:t.street}).then(n=>{g(n,U)})},q=()=>{console.log(45545),pe({province:t.village}).then(n=>{g(n,D)})};return(n,u)=>{const c=z,p=G,d=H,i=J,_=Q,w=W,F=X,O=Y,L=Z,f=ee,j=ie("router-link"),K=le,M=S;return r(),b(v,null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(O,{class:"mb-[-16px]",model:o(t),inline:""},{default:a(()=>[e(w,null,{default:a(()=>[e(d,{span:6},{default:a(()=>[e(p,{label:"\u59D3\u540D",prop:"nick_name"},{default:a(()=>[e(c,{class:"w-[280px]",modelValue:o(t).nick_name,"onUpdate:modelValue":u[0]||(u[0]=l=>o(t).nick_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:a(()=>[e(p,{label:"\u624B\u673A\u53F7",prop:"phone"},{default:a(()=>[e(c,{class:"w-[280px]",modelValue:o(t).phone,"onUpdate:modelValue":u[1]||(u[1]=l=>o(t).phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:a(()=>[e(p,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[e(_,{modelValue:o(t).status,"onUpdate:modelValue":u[2]||(u[2]=l=>o(t).status=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",class:"w-[260px]"},{default:a(()=>[h("> "),e(i,{label:"\u6B63\u5E38",value:0}),e(i,{label:"\u7981\u7528",value:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:a(()=>[e(p,{label:"\u6240\u5C5E\u7701",prop:"address"},{default:a(()=>[e(_,{modelValue:o(t).province,"onUpdate:modelValue":u[3]||(u[3]=l=>o(t).province=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7701",onChange:T,class:"w-[260px]"},{default:a(()=>[(r(!0),b(v,null,C(o(y),(l,s)=>(r(),E(i,{key:s,label:l.province_name,value:l.province},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(w,null,{default:a(()=>[e(d,{span:6},{default:a(()=>[e(p,{label:"\u6240\u5C5E\u5E02",prop:"address"},{default:a(()=>[e(_,{modelValue:o(t).city,"onUpdate:modelValue":u[4]||(u[4]=l=>o(t).city=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E02",onChange:I,class:"w-[260px]"},{default:a(()=>[(r(!0),b(v,null,C(o(k),(l,s)=>(r(),E(i,{key:s,label:l.city_name,value:l.city},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:a(()=>[e(p,{label:"\u6240\u5C5E\u533A",prop:"address"},{default:a(()=>[e(_,{modelValue:o(t).area,"onUpdate:modelValue":u[5]||(u[5]=l=>o(t).area=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u533A",onChange:R,class:"w-[260px]"},{default:a(()=>[(r(!0),b(v,null,C(o(x),(l,s)=>(r(),E(i,{key:s,label:l.area_name,value:l.area},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:a(()=>[e(p,{label:"\u6240\u5C5E\u9547",prop:"address"},{default:a(()=>[e(_,{modelValue:o(t).street,"onUpdate:modelValue":u[6]||(u[6]=l=>o(t).street=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9547",onChange:$,class:"w-[260px]"},{default:a(()=>[(r(!0),b(v,null,C(o(A),(l,s)=>(r(),E(i,{key:s,label:l.street_name,value:l.street},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:a(()=>[e(p,{label:"\u6240\u5C5E\u6751",prop:"address"},{default:a(()=>[e(_,{modelValue:o(t).village,"onUpdate:modelValue":u[7]||(u[7]=l=>o(t).village=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6751",onChange:q,class:"w-[260px]"},{default:a(()=>[(r(!0),b(v,null,C(o(U),(l,s)=>(r(),E(i,{key:s,label:l.village_name,value:l.village},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(w,null,{default:a(()=>[e(d,{span:6},{default:a(()=>[e(p,{label:"\u6240\u5C5E\u5C0F\u961F",prop:"address"},{default:a(()=>[e(_,{modelValue:o(t).brigade,"onUpdate:modelValue":u[8]||(u[8]=l=>o(t).brigade=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5C0F\u961F",class:"w-[260px]"},{default:a(()=>[(r(!0),b(v,null,C(o(D),(l,s)=>(r(),E(i,{key:s,label:l.brigade_name,value:l.brigade},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(F,{type:"primary",onClick:o(N)},{default:a(()=>[h("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(F,{onClick:o(P)},{default:a(()=>[h("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(K,{data:o(V).lists},{default:a(()=>[e(f,{label:"\u59D3\u540D",prop:"nick_name"}),e(f,{label:"\u6CE8\u518C\u624B\u673A\u53F7",prop:"phone","show-overflow-tooltip":""}),e(f,{label:"\u6027\u522B",prop:"gender_text","show-overflow-tooltip":""}),e(f,{label:"\u5E74\u9F84",prop:"age","show-overflow-tooltip":""}),e(f,{label:"\u6240\u5C5E\u7247\u533A",prop:"address","show-overflow-tooltip":""}),e(f,{label:"\u8D26\u6237\u72B6\u6001",prop:"status_text","show-overflow-tooltip":""}),e(f,{label:"\u64CD\u4F5C","show-overflow-tooltip":""},{default:a(({row:l})=>[e(F,{type:"primary",link:""},{default:a(()=>[e(j,{to:{path:"detail",query:{id:l.id}}},{default:a(()=>[h(" \u8BE6\u60C5 ")]),_:2},1032,["to"])]),_:2},1024)]),_:1})]),_:1},8,["data"]),me("div",_e,[e(M,{modelValue:o(V),"onUpdate:modelValue":u[9]||(u[9]=l=>ce(V)?V.value=l:null),onChange:o(B)},null,8,["modelValue","onChange"])])]),_:1})],64)}}});export{el as default};
|