index-2c331b42.js 7.3 KB

1
  1. import{aq as oe,d as re,Y as se,K as ie,r as d,h as de,e as pe,l as ce,o as _,c as M,g as y,f as e,w as o,a,dE as ue,R as h,x as H,a4 as me,F as I,v as x,n as w,au as _e,O as he,t as O,P as R,s as fe,j as ge,C as ye,V as ve,A as be,B as xe,E as Ve,i as we,D as ke,W as Ce,X as Ue,G as De,H as Se,I as ze,_ as Ke,__tla as Te}from"./index-759a8e73.js";import{_ as Ae,__tla as Ne}from"./Echart-d15ec49b.js";import{_ as Pe,__tla as Ye}from"./ContentWrap-26529732.js";import{_ as Fe,__tla as Me}from"./index-99a3871d.js";import{D as He,__tla as Ie}from"./index-a0f4a3ac.js";import Oe,{__tla as Re}from"./Descendants-f461dd30.js";import{u as qe,__tla as Be}from"./useMessage-a80e4fee.js";import{__tla as Ee}from"./ContentWrap.vue_vue_type_script_setup_true_lang-18334900.js";import{__tla as We}from"./el-card-d79e2bf9.js";import{__tla as Ge}from"./index-e6a0c976.js";import{__tla as Le}from"./Dialog-0536018d.js";let q,Xe=Promise.all([(()=>{try{return Te}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Le}catch{}})()]).then(async()=>{let k,C,U,D,S;k=async z=>await oe.get({url:"/distri/share-path/getTree",params:z}),C={class:"search-one"},U={style:{"text-align":"right"},class:"search-input"},D=["onClick"],S=["onClick"],q=Ke(re({name:"SharePath",__name:"index",setup(z){const B=se(),E=ie(()=>B.getMobile),v=d(!1),W=()=>{v.value=!v.value},K=()=>{v.value=!1},r=d(1),G=i=>{r.value=i.paneName,f()};qe(),de();const b=d(!0),T=d([]);let V=d([]);const A=d(0),n=pe({pageNo:1,pageSize:10,depth:void 0,createTime:[],ancestor:void 0,descendant:void 0,sort:void 0}),N=d();d(!1);const L=d({userId:1}),f=async()=>{if(b.value=!0,r.value==1)try{const i=await He.getDuserPage(n);T.value=i.list,A.value=i.total}finally{b.value=!1}else if(r.value==2)try{const i=await k(L.value),t=p=>{const c={name:p.name??"\u672A\u547D\u540D\u8282\u70B9"};return p.children&&p.children.length>0?c.children=p.children.map(u=>t(u)):c.children=[],c};V.value=[t(i)],console.log(V.value),fe(P,"series[0].data",V.value)}finally{b.value=!1}},s=()=>{n.pageNo=1,f()},X=()=>{N.value.resetFields(),s(),K()};let P={tooltip:{trigger:"item",triggerOn:"mousemove"},dataZoom:{type:"inside"},series:[{type:"tree",data:[],left:"2%",right:"2%",top:"8%",bottom:"20%",symbol:"emptyCircle",orient:"vertical",initialTreeDepth:2,expandAndCollapse:!0,label:{position:"top",verticalAlign:"middle",align:"right",fontSize:14},zoom:1,roam:!0,scaleLimit:{min:.1,max:5},leaves:{label:{position:"bottom",verticalAlign:"middle",align:"center"}},animationDurationUpdate:750}]};return ce(()=>{f()}),(i,t)=>{const p=ge,c=ye,u=ve,m=be,Z=xe,$=Ve,j=we,J=ke,Y=Ce,Q=Ue,g=De,ee=Se,ae=Fe,F=Pe,le=Ae,te=ze;return _(),M(I,null,[y("div",C,[y("div",U,[e(u,{modelValue:a(n).name,"onUpdate:modelValue":t[0]||(t[0]=l=>a(n).name=l),placeholder:"\u7528\u6237\u6635\u79F0",clearable:"",onKeyup:h(s,["enter"])},{suffix:o(()=>[e(p,{class:"mr-5px",icon:"ep:search",onClick:s,style:{cursor:"pointer"}})]),append:o(()=>[e(c,{icon:a(ue),onClick:W},null,8,["icon"])]),_:1},8,["modelValue"])])]),H(y("div",{class:"searchMore",style:_e({width:a(E)?"88.7%":"96%"})},[e(J,{class:"-mb-15px",model:a(n),ref_key:"queryFormRef",ref:N,inline:!0,"label-width":"108px"},{default:o(()=>[a(r)==1?(_(),M(I,{key:0},[e(m,{label:"\u5C42\u7EA7",prop:"depth"},{default:o(()=>[e(u,{modelValue:a(n).depth,"onUpdate:modelValue":t[1]||(t[1]=l=>a(n).depth=l),placeholder:"\u8BF7\u8F93\u5165\u5C42\u7EA7",clearable:"",onKeyup:h(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u7528\u6237\u6635\u79F0",prop:"name"},{default:o(()=>[e(u,{modelValue:a(n).name,"onUpdate:modelValue":t[2]||(t[2]=l=>a(n).name=l),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0",clearable:"",onKeyup:h(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[e(Z,{modelValue:a(n).createTime,"onUpdate:modelValue":t[3]||(t[3]=l=>a(n).createTime=l),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(m,{label:"\u63A8\u8350\u4EBA",prop:"ancestor"},{default:o(()=>[e(u,{modelValue:a(n).ancestor,"onUpdate:modelValue":t[4]||(t[4]=l=>a(n).ancestor=l),placeholder:"\u8BF7\u8F93\u5165\u63A8\u8350\u4EBA",clearable:"",onKeyup:h(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u76F4\u63A8\u4EBA",prop:"descendant"},{default:o(()=>[e(u,{modelValue:a(n).descendant,"onUpdate:modelValue":t[5]||(t[5]=l=>a(n).descendant=l),placeholder:"\u8BF7\u8F93\u5165\u76F4\u63A8\u4EBA",clearable:"",onKeyup:h(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1})],64)):(_(),x(m,{key:1,label:"\u7528\u6237\u624B\u673A\u53F7",prop:"mobile"},{default:o(()=>[e(u,{modelValue:a(n).descendant,"onUpdate:modelValue":t[6]||(t[6]=l=>a(n).descendant=l),placeholder:"\u7528\u6237\u624B\u673A\u53F7",clearable:"",onKeyup:h(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1})),e(j,null,{default:o(()=>[e($,null,{default:o(()=>[e(m,null,{default:o(()=>[e(c,{onClick:K},{default:o(()=>[w(" \u6536\u8D77 ")]),_:1}),e(c,{onClick:s},{default:o(()=>[e(p,{icon:"ep:search",class:"mr-5px"}),w(" \u641C\u7D22 ")]),_:1}),e(c,{onClick:X},{default:o(()=>[e(p,{icon:"ep:refresh",class:"mr-5px"}),w(" \u91CD\u7F6E ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[me,a(v)]]),e(Q,{modelValue:a(r),"onUpdate:modelValue":t[7]||(t[7]=l=>he(r)?r.value=l:null),onTabClick:G,class:"parent-tabs"},{default:o(()=>[e(Y,{label:"\u5217\u8868\u6A21\u5F0F",name:1}),e(Y,{label:"\u6811\u72B6\u56FE",name:2})]),_:1},8,["modelValue"]),a(r)==1?(_(),x(F,{key:0,style:{"margin-top":"10px",padding:"10px"}},{default:o(()=>[H((_(),x(ee,{data:a(T),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[e(g,{label:"\u7528\u6237\u6635\u79F0",align:"center",prop:"name"}),e(g,{label:"\u7528\u6237\u624B\u673A\u53F7",align:"center",prop:"mobile"}),e(g,{label:"\u63A8\u8350\u4EBA\u59D3\u540D",align:"center",prop:"nickName"}),e(g,{label:"\u76F4\u63A8\u4EBA\u5217\u8868",align:"center",prop:"descendantCount"},{default:o(l=>[y("span",{onClick:ne=>i.getUserAllSon(1,l.row),style:{cursor:"pointer",display:"inline-block",width:"100%"}},O(l.row.descendantCount),9,D)]),_:1}),e(g,{label:"\u540E\u4EE3\u5217\u8868",align:"center",prop:"childrenCount"},{default:o(l=>[y("span",{onClick:ne=>i.getUserAllSon(2,l.row),style:{cursor:"pointer",display:"inline-block",width:"100%"}},O(l.row.childrenCount),9,S)]),_:1})]),_:1},8,["data"])),[[te,a(b)]]),e(ae,{total:a(A),page:a(n).pageNo,"onUpdate:page":t[8]||(t[8]=l=>a(n).pageNo=l),limit:a(n).pageSize,"onUpdate:limit":t[9]||(t[9]=l=>a(n).pageSize=l),onPagination:f},null,8,["total","page","limit"])]),_:1})):R("",!0),a(r)==2?(_(),x(F,{key:1,style:{"margin-top":"10px",padding:"10px"}},{default:o(()=>[e(le,{height:650,options:a(P)},null,8,["options"])]),_:1})):R("",!0),e(Oe,{ref:"formRef",onSuccess:f},null,512)],64)}}}),[["__scopeId","data-v-20dfdeaa"],["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/system/distri/sharepath/index.vue"]])});export{Xe as __tla,q as default};