2 lines
7.5 KiB
JavaScript
2 lines
7.5 KiB
JavaScript
import{C as X,D as Z,a4 as ee,N as ae,O as te,w as le,F as oe,J as ne,P as ue,o as re,Q as ie,R as se}from"./element-plus.ff90c99c.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{d as D,r as de,$ as O,ag as me,aq as ce,o as r,c as f,W as a,Q as t,u as l,aa as _e,j as L,F,a9 as E,P as d,U as c,R as C,V as fe,a as ve}from"./@vue.f8dfc830.js";import{u as ge}from"./usePaging.bd7a7dec.js";import{k as w,d as ye}from"./index.2c97e227.js";import{e as be,d as Fe}from"./consumer.ae378259.js";import{a as Ee,b as Ce,c as Ve,d as he,e as we}from"./common.5dd3b381.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.2e6f447e.js";import"./axios.075403c9.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.b6f240ee.js";import"./color.35874cfa.js";import"./clone.d8e67888.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.e6aad81b.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";const ke={class:"flex justify-end mt-4"},Be=D({name:"consumerLists"}),xe=D({...Be,setup(Oe){const v=de(""),U=()=>{o.create_time_start=v.value[0],o.create_time_end=v.value[1]},s=O({provinceOptions:[],cityOptions:[],areaOptions:[],streetOptions:[],villageOptions:[],brigadeOptions:[]}),o=O({keyword:"",create_time_start:"",create_time_end:"",province:"",city:"",area:"",street:"",village:""});function P(u){N()}function A(u){S()}function q(u){Y()}function R(u){K()}function T(u){}const I=async()=>{const u=await Ee({});s.provinceOptions=u},N=async()=>{const u=await Ce({city:o.province});s.cityOptions=u},S=async()=>{const u=await Ve({area:o.city});s.areaOptions=u},Y=async()=>{const u=await he({street:o.area});s.streetOptions=u},K=async()=>{const u=await we({village:o.street});s.villageOptions=u},{pager:g,getLists:k,resetPage:B,resetParams:j}=ge({fetchFun:Fe,params:o});k(),I();const z=()=>{be({...o})};return(u,n)=>{const M=X,m=Z,Q=ee,y=ae,b=te,_=le,V=me("router-link"),$=oe,x=ne,p=ue,J=re,W=ie,G=pe,h=ce("perms"),H=se;return r(),f("div",null,[a(x,{class:"!border-none",shadow:"never"},{default:t(()=>[a($,{ref:"formRef",class:"mb-[-16px]",model:l(o),inline:!0},{default:t(()=>[a(m,{label:"\u7528\u6237\u4FE1\u606F"},{default:t(()=>[a(M,{class:"w-[280px]",modelValue:l(o).keyword,"onUpdate:modelValue":n[0]||(n[0]=e=>l(o).keyword=e),placeholder:"\u7528\u6237\u7F16\u53F7/\u6635\u79F0/\u624B\u673A\u53F7\u7801",clearable:"",onKeyup:_e(l(B),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),a(m,{label:"\u65F6\u95F4\u6BB5"},{default:t(()=>[a(Q,{modelValue:l(v),"onUpdate:modelValue":n[1]||(n[1]=e=>L(v)?v.value=e:null),type:"daterange","unlink-panels":"","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",onChange:U,"value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(m,{label:"\u7701"},{default:t(()=>[a(b,{class:"w-[280px]",modelValue:l(o).province,"onUpdate:modelValue":n[2]||(n[2]=e=>l(o).province=e),placeholder:"\u8BF7\u9009\u62E9\u7701",clearable:"",onChange:P},{default:t(()=>[(r(!0),f(F,null,E(l(s).provinceOptions,(e,i)=>(r(),d(y,{key:i,label:e.province_name,value:e.province_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(m,{label:"\u5E02"},{default:t(()=>[a(b,{class:"w-[280px]",modelValue:l(o).city,"onUpdate:modelValue":n[3]||(n[3]=e=>l(o).city=e),placeholder:"\u8BF7\u9009\u62E9\u5E02",clearable:"",onChange:A},{default:t(()=>[(r(!0),f(F,null,E(l(s).cityOptions,(e,i)=>(r(),d(y,{key:i,label:e.city_name,value:e.city_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(m,{label:"\u533A\u53BF"},{default:t(()=>[a(b,{class:"w-[280px]",modelValue:l(o).area,"onUpdate:modelValue":n[4]||(n[4]=e=>l(o).area=e),placeholder:"\u8BF7\u9009\u62E9\u533A\u53BF",clearable:"",onChange:q},{default:t(()=>[(r(!0),f(F,null,E(l(s).areaOptions,(e,i)=>(r(),d(y,{key:i,label:e.area_name,value:e.area_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(m,{label:"\u4E61\u9547"},{default:t(()=>[a(b,{class:"w-[280px]",modelValue:l(o).street,"onUpdate:modelValue":n[5]||(n[5]=e=>l(o).street=e),placeholder:"\u8BF7\u9009\u62E9\u4E61\u9547",clearable:"",onChange:R},{default:t(()=>[(r(!0),f(F,null,E(l(s).streetOptions,(e,i)=>(r(),d(y,{key:i,label:e.street_name,value:e.street_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(m,{label:"\u6751\u793E"},{default:t(()=>[a(b,{class:"w-[280px]",modelValue:l(o).village,"onUpdate:modelValue":n[6]||(n[6]=e=>l(o).village=e),placeholder:"\u8BF7\u9009\u62E9\u6751\u793E",clearable:"",onChange:T},{default:t(()=>[(r(!0),f(F,null,E(l(s).villageOptions,(e,i)=>(r(),d(y,{key:i,label:e.village_name,value:e.village_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(m,null,{default:t(()=>[a(_,{type:"primary",onClick:l(B)},{default:t(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),a(_,{onClick:l(j)},{default:t(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick"]),a(_,{type:"primary",onClick:z},{default:t(()=>[c("\u5BFC\u51FA")]),_:1}),a(V,{to:{path:l(w)("user.user/edit")}},{default:t(()=>[C((r(),d(_,{class:"ml-2.5",type:"primary"},{default:t(()=>[c(" \u521B\u5EFA ")]),_:1})),[[h,["user.user/edit"]]])]),_:1},8,["to"])]),_:1})]),_:1},8,["model"])]),_:1}),a(x,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[C((r(),d(W,{size:"large",data:l(g).lists},{default:t(()=>[a(p,{label:"ID",prop:"id","min-width":"100"}),a(p,{label:"\u7528\u6237\u7F16\u53F7",prop:"sn","min-width":"120"}),a(p,{label:"\u5934\u50CF","min-width":"100"},{default:t(({row:e})=>[a(J,{src:e.avatar,size:50},null,8,["src"])]),_:1}),a(p,{label:"\u8D26\u53F7",prop:"account","min-width":"120"}),a(p,{label:"\u59D3\u540D",prop:"nickname","min-width":"100"}),a(p,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"mobile","min-width":"120"}),a(p,{label:"\u96B6\u5C5E\u516C\u53F8",prop:"company_name","min-width":"180",align:"center"},{default:t(({row:e})=>{var i;return[c(fe(((i=e.company)==null?void 0:i.company_name)||"/"),1)]}),_:1}),a(p,{label:"\u6240\u5728\u4E61\u9547",prop:"street_name","min-width":"120"}),a(p,{label:"\u6388\u6743\u8EAB\u4EFD",prop:"role_name","min-width":"120"}),a(p,{label:"\u64CD\u4F5C","min-width":"300",align:"center",fixed:"right"},{default:t(({row:e})=>[C((r(),d(_,{type:"primary",link:""},{default:t(()=>[a(V,{to:{path:l(w)("user.user/detail"),query:{id:e.id,mode:"detail"}}},{default:t(()=>[c(" \u8BE6\u60C5 ")]),_:2},1032,["to"])]),_:2},1024)),[[h,["user.user/detail"]]]),C((r(),d(_,{type:"primary",link:""},{default:t(()=>[a(V,{to:{path:l(w)("user.user/detail"),query:{id:e.id,mode:"edit"}}},{default:t(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["to"])]),_:2},1024)),[[h,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])),[[H,l(g).loading]]),ve("div",ke,[a(G,{modelValue:l(g),"onUpdate:modelValue":n[7]||(n[7]=e=>L(g)?g.value=e:null),onChange:l(k)},null,8,["modelValue","onChange"])])]),_:1})])}}});const ga=ye(xe,[["__scopeId","data-v-e77118b4"]]);export{ga as default};
|