data_center/public/admin/assets/list.e46cb313.js

2 lines
7.1 KiB
JavaScript

import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.fccb4113.js";import{B as Q,C as z,a2 as G,Q as H,R as J,a1 as W,w as X,D as Y,I as Z,L as ee,M as le}from"./element-plus.54aed4cc.js";import{u as ae}from"./usePaging.160b82b8.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.c21079ee.js";import{d as de,$ as i,a4 as ie,o as n,c as f,U as e,L as a,V as b,a7 as g,u as E,a as me,k as _e,S as V,K as C}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.f1e4cccc.js";import"./axios.d363e68d.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.58a5fcc1.js";import"./lodash.c4b79a6f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.3c571821.js";import"./color.0ff1625c.js";import"./clone.78cb864b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a0babc59.js";import"./ms.a9ae1d6d.js";import"./nprogress.046b2704.js";import"./vue-clipboard3.8c1c7368.js";import"./clipboard.5f2f245e.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const ce=V("> "),fe=V("\u67E5\u8BE2"),be=V("\u91CD\u7F6E"),ve=V(" \u8BE6\u60C5 "),ge={class:"flex mt-4 justify-end"},ol=de({__name:"list",setup(Ce){const o=i({nick_name:"",phone:"",status:"",address:"",province:"",city:"",area:"",street:"",village:"",brigade:""}),{pager:h,getLists:B,resetParams:P,resetPage:I}=ae({fetchFun:te,params:o});i([{label:"lable",id:0,name:"\u6B63\u5E38"},{label:"lable2",id:0,name:"\u5F02\u5E38"}]);const v=(u,t)=>{for(const m in u)u[m]!=null&&u[m]!=null&&(t[m]=u[m]);console.log(t)};B();const y=i([]),k=i([]),x=i([]),A=i([]),L=i([]),U=i([]);oe().then(u=>{v(u,y)});const N=()=>{ue({province:o.province}).then(u=>{v(u,k)})},R=()=>{ne({city:o.city}).then(u=>{v(u,x)})},T=()=>{re({area:o.area}).then(u=>{v(u,A)})},q=()=>{se({street:o.street}).then(u=>{v(u,L)})},S=()=>{console.log(45545),pe({province:o.village}).then(u=>{v(u,U)})};return(u,t)=>{const m=Q,s=z,p=G,d=H,_=J,w=W,F=X,$=Y,D=Z,c=ee,j=ie("router-link"),K=le,M=O;return n(),f(b,null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e($,{class:"mb-[-16px]",model:o,inline:""},{default:a(()=>[e(w,null,{default:a(()=>[e(p,{span:6},{default:a(()=>[e(s,{label:"\u59D3\u540D",prop:"nick_name"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:o.nick_name,"onUpdate:modelValue":t[0]||(t[0]=l=>o.nick_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:a(()=>[e(s,{label:"\u624B\u673A\u53F7",prop:"phone"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:o.phone,"onUpdate:modelValue":t[1]||(t[1]=l=>o.phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:a(()=>[e(s,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[e(_,{modelValue:o.status,"onUpdate:modelValue":t[2]||(t[2]=l=>o.status=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",class:"w-[260px]"},{default:a(()=>[ce,e(d,{label:"\u6B63\u5E38",value:0}),e(d,{label:"\u7981\u7528",value:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:a(()=>[e(s,{label:"\u6240\u5C5E\u7701",prop:"address"},{default:a(()=>[e(_,{modelValue:o.province,"onUpdate:modelValue":t[3]||(t[3]=l=>o.province=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7701",onChange:N,class:"w-[260px]"},{default:a(()=>[(n(!0),f(b,null,g(y,(l,r)=>(n(),C(d,{key:r,label:l.province_name,value:l.province},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(w,null,{default:a(()=>[e(p,{span:6},{default:a(()=>[e(s,{label:"\u6240\u5C5E\u5E02",prop:"address"},{default:a(()=>[e(_,{modelValue:o.city,"onUpdate:modelValue":t[4]||(t[4]=l=>o.city=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E02",onChange:R,class:"w-[260px]"},{default:a(()=>[(n(!0),f(b,null,g(k,(l,r)=>(n(),C(d,{key:r,label:l.city_name,value:l.city},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:a(()=>[e(s,{label:"\u6240\u5C5E\u533A",prop:"address"},{default:a(()=>[e(_,{modelValue:o.area,"onUpdate:modelValue":t[5]||(t[5]=l=>o.area=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u533A",onChange:T,class:"w-[260px]"},{default:a(()=>[(n(!0),f(b,null,g(x,(l,r)=>(n(),C(d,{key:r,label:l.area_name,value:l.area},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:a(()=>[e(s,{label:"\u6240\u5C5E\u9547",prop:"address"},{default:a(()=>[e(_,{modelValue:o.street,"onUpdate:modelValue":t[6]||(t[6]=l=>o.street=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9547",onChange:q,class:"w-[260px]"},{default:a(()=>[(n(!0),f(b,null,g(A,(l,r)=>(n(),C(d,{key:r,label:l.street_name,value:l.street},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:a(()=>[e(s,{label:"\u6240\u5C5E\u6751",prop:"address"},{default:a(()=>[e(_,{modelValue:o.village,"onUpdate:modelValue":t[7]||(t[7]=l=>o.village=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6751",onChange:S,class:"w-[260px]"},{default:a(()=>[(n(!0),f(b,null,g(L,(l,r)=>(n(),C(d,{key:r,label:l.village_name,value:l.village},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(w,null,{default:a(()=>[e(p,{span:6},{default:a(()=>[e(s,{label:"\u6240\u5C5E\u5C0F\u961F",prop:"address"},{default:a(()=>[e(_,{modelValue:o.brigade,"onUpdate:modelValue":t[8]||(t[8]=l=>o.brigade=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5C0F\u961F",class:"w-[260px]"},{default:a(()=>[(n(!0),f(b,null,g(U,(l,r)=>(n(),C(d,{key:r,label:l.brigade_name,value:l.brigade},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(F,{type:"primary",onClick:E(I)},{default:a(()=>[fe]),_:1},8,["onClick"]),e(F,{onClick:E(P)},{default:a(()=>[be]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(D,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(K,{data:E(h).lists},{default:a(()=>[e(c,{label:"\u59D3\u540D",prop:"nick_name"}),e(c,{label:"\u6CE8\u518C\u624B\u673A\u53F7",prop:"phone","show-overflow-tooltip":""}),e(c,{label:"\u6027\u522B",prop:"gender_text","show-overflow-tooltip":""}),e(c,{label:"\u5E74\u9F84",prop:"age","show-overflow-tooltip":""}),e(c,{label:"\u6240\u5C5E\u7247\u533A",prop:"address","show-overflow-tooltip":""}),e(c,{label:"\u8D26\u6237\u72B6\u6001",prop:"status_text","show-overflow-tooltip":""}),e(c,{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(()=>[ve]),_:2},1032,["to"])]),_:2},1024)]),_:1})]),_:1},8,["data"]),me("div",ge,[e(M,{modelValue:E(h),"onUpdate:modelValue":t[9]||(t[9]=l=>_e(h)?h.value=l:null),onChange:E(B)},null,8,["modelValue","onChange"])])]),_:1})],64)}}});export{ol as default};