From 0b66dbf1efca54337a1f4a2765f5c6906c62bf80 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Sat, 29 Jun 2024 18:25:41 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 8 +- src/api/user_ship.ts | 26 ++++ src/views/order/store_order/index.vue | 1 + .../order/user_product_storage/index.vue | 2 +- src/views/user_label/index.vue | 2 +- src/views/user_ship/details.vue | 91 ++++++++++++ src/views/user_ship/edit.vue | 127 +++++++++++++++++ src/views/user_ship/index.vue | 129 ++++++++++++++++++ 8 files changed, 380 insertions(+), 6 deletions(-) create mode 100644 src/api/user_ship.ts create mode 100644 src/views/user_ship/details.vue create mode 100644 src/views/user_ship/edit.vue create mode 100644 src/views/user_ship/index.vue diff --git a/.env.production b/.env.production index 44c2080ca..8d0ad69f5 100644 --- a/.env.production +++ b/.env.production @@ -2,9 +2,9 @@ NODE_ENV = 'production' # Base API # # 测试域名 -VITE_NOW_TYPE = 'dist/admin' -VITE_APP_BASE_URL='https://test-multi-store.lihaink.cn' +# VITE_NOW_TYPE = 'dist/admin' +# VITE_APP_BASE_URL='https://test-multi-store.lihaink.cn' # 正式域名 -# VITE_NOW_TYPE = 'build/admin' -# VITE_APP_BASE_URL='https://multi-store.lihaink.cn' \ No newline at end of file +VITE_NOW_TYPE = 'build/admin' +VITE_APP_BASE_URL='https://multi-store.lihaink.cn' \ No newline at end of file diff --git a/src/api/user_ship.ts b/src/api/user_ship.ts new file mode 100644 index 000000000..15b85a42d --- /dev/null +++ b/src/api/user_ship.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 会员类型列表 +export function apiUserShipLists(params: any) { + return request.get({ url: '/user_ship/usership/lists', params }) +} + +// 添加会员类型 +export function apiUserShipAdd(params: any) { + return request.post({ url: '/user_ship/usership/add', params }) +} + +// 编辑会员类型 +export function apiUserShipEdit(params: any) { + return request.post({ url: '/user_ship/usership/edit', params }) +} + +// 删除会员类型 +export function apiUserShipDelete(params: any) { + return request.post({ url: '/user_ship/usership/delete', params }) +} + +// 会员类型详情 +export function apiUserShipDetail(params: any) { + return request.get({ url: '/user_ship/usership/detail', params }) +} \ No newline at end of file diff --git a/src/views/order/store_order/index.vue b/src/views/order/store_order/index.vue index 920fb68f8..f45582627 100644 --- a/src/views/order/store_order/index.vue +++ b/src/views/order/store_order/index.vue @@ -45,6 +45,7 @@
${n[0].name}\u70B9
`;return n.forEach(o=>{e+=`${o.seriesName}: ${o.value}
`}),e}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],yAxis:[{type:"value",show:!1,spliteLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],series:[{name:"\u6628\u5929",type:"line",smooth:!0,symbol:"none",itemStyle:{color:"#ccc"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#ccc"},{offset:.6,color:"#fff"}],global:!1}}},{name:"\u4ECA\u5929",type:"line",smooth:!0,symbol:"none",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5B8FF9"},{offset:.6,color:"#fff"}],global:!1}}}]},A=f({money:0,series:[]}),D=v(JSON.parse(JSON.stringify(b))),i=f([]),m=v(JSON.parse(JSON.stringify(b))),l=f([]),_=v(JSON.parse(JSON.stringify(b))),P=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],U=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),d=f([new Date,new Date]),w=()=>{let n="";d.value[0]&&d.value[1]&&(n=V(d.value[0]).format("YYYY/MM/DD")+"-"+V(d.value[1]).format("YYYY/MM/DD")),tt({}).then(e=>{A.value={money:e.left.series[0].money,name:e.left.name},D.series[0].data=e.left.series[1].value,D.series[1].data=e.left.series[0].value,i.value=e.right.today.series,l.value=e.right.month,m.xAxis.data=e.right.today.x.map(o=>o),m.series[0].name=e.right.today.series[0].name,m.series[0].data=e.right.today.series[0].value,m.series[1].name=e.right.today.series[1].name,m.series[1].data=e.right.today.series[1].value,_.xAxis.data=Object.keys(e.right.month[0].value).map(o=>o),_.series[0].name=e.right.month[0].name,_.series[0].data=Object.values(e.right.month[0].value).map(o=>o),_.series[1].name=e.right.month[1].name,_.series[1].data=Object.values(e.right.month[1].value).map(o=>o)}),et({date:n}).then(e=>{p.xAxis.data=[],p.series=[],console.log(e),p.legend.data=Object.values(e.series).map(o=>o.name),p.xAxis.data=e.x,p.series=Object.values(e.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,money:o.money,rate:o.rate}))})};return st(()=>{w()}),(n,e)=>{const o=W,Z=Q,q=X,H=K;return F(),C("div",pt,[r(o,{shadow:"never",class:"!border-none"},{default:E(()=>{var c,x,B,S,k,O,L,R,N,M,T,Y,j,I,z,J;return[t("div",dt,[t("div",mt,[_t,t("div",null,[xt,t("span",ht,a(s(A).money||"0.00"),1)]),r(s(g),{style:{height:"200px"},option:s(D),autoresize:!0},null,8,["option"])]),ft,t("div",yt,[t("div",gt,[t("div",vt,[h(a((c=s(i)[0])==null?void 0:c.name),1),t("span",bt,a((x=s(i)[0])==null?void 0:x.now_money),1)]),t("div",Dt,[t("span",wt,"\u6628\u65E5: "+a((B=s(i)[0])==null?void 0:B.last_money),1),Ft,t("span",Ct,a((S=s(i)[0])==null?void 0:S.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(m),autoresize:!0},null,8,["option"]),t("div",Et,[h(a((k=s(l)[0])==null?void 0:k.name),1),t("span",At,a((O=s(l)[0])==null?void 0:O.now_money),1)]),t("div",Bt,[t("span",St,"\u4E0A\u6708: "+a((L=s(l)[0])==null?void 0:L.last_money),1),kt,t("span",Ot,a((R=s(l)[0])==null?void 0:R.rate)+"%",1)])]),t("div",Lt,[t("div",Rt,[h(a((N=s(i)[1])==null?void 0:N.name),1),t("span",Nt,a((M=s(i)[1])==null?void 0:M.now_money),1)]),t("div",Mt,[t("span",Tt,"\u6628\u65E5: "+a((T=s(i)[1])==null?void 0:T.last_money),1),Yt,t("span",jt,a((Y=s(i)[1])==null?void 0:Y.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(_),autoresize:!0},null,8,["option"]),t("div",It,[h(a((j=s(l)[1])==null?void 0:j.name),1),t("span",zt,a((I=s(l)[1])==null?void 0:I.now_money),1)]),t("div",Jt,[t("span",Vt,"\u4E0A\u6708: "+a((z=s(l)[1])==null?void 0:z.last_money),1),$t,t("span",Gt,a((J=s(l)[1])==null?void 0:J.rate)+"%",1)])])])])]}),_:1}),r(o,{shadow:"never",class:"mt-4 !border-none"},{default:E(()=>[t("div",Pt,[Ut,t("div",Zt,[qt,r(Z,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=c=>ot(d)?d.value=c:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:G,onChange:w},null,8,["modelValue"]),r(q,{type:"primary",class:"ml-4",onClick:w},{default:E(()=>[h("\u67E5\u8BE2")]),_:1})])]),t("div",Ht,[(F(!0),C(at,null,nt(s(p).series,(c,x)=>(F(),C("div",{class:"w-1/5 flex mb-6",key:x},[t("div",Kt,[t("div",{class:"rounded-full p-2",style:it({"background-color":P[x%4]})},[r(H,{iconName:s(U)[x],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),t("div",null,[t("div",Qt,a(c.name),1),t("div",Wt,a(c.money),1),t("div",Xt,[h("\u73AF\u6BD4\u589E\u957F: "),t("span",{class:lt(c.rate>0?"text-success":"text-danger")},a(c.rate)+"%",3)])])]))),128))]),t("div",null,[r(s(g),{style:{height:"400px"},option:s(p),autoresize:!0},null,8,["option"])])]),_:1})])}}});const je=ut(ee,[["__scopeId","data-v-d24ef56b"]]);export{je as default}; +import{_ as K}from"./index.a34f0b70.js";import{_ as Q,L as W,w as X}from"./element-plus.5a7ba693.js";import{f as tt,g as et}from"./workbench.870977d5.js";import{h as V}from"./moment.40bc58bf.js";import{B as g}from"./vue-echarts.01ad0ec2.js";import{d as $,Z as v,r as f,i as st,o as F,c as C,U as r,L as E,a as t,S as a,u as s,R as h,j as ot,T as at,a9 as nt,a0 as it,O as lt,bl as ct,bk as rt}from"./@vue.18505fe0.js";import{d as ut}from"./index.0f3999b9.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./resize-detector.4e96b72b.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const u=y=>(ct("data-v-d24ef56b"),y=y(),rt(),y),pt={class:"workbench"},dt={class:"flex"},mt={class:"flex-1 h-[270px]"},_t=u(()=>t("div",{class:"text-2xl"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1)),xt=u(()=>t("span",{class:"text-[12px]"},"\xA5",-1)),ht={class:"text-2xl"},ft=u(()=>t("div",{class:"w-[1px] bg-[#ccc] mr-4"},null,-1)),yt={class:"flex-1 flex"},gt={class:"flex-1"},vt={class:"text-1xl"},bt={class:"ml-2 text-[18px]"},Dt={class:"text-[12px]"},wt={class:"text-info"},Ft=u(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),Ct={class:"text-success"},Et={class:"text-1xl"},At={class:"ml-2 text-[18px]"},Bt={class:"text-[12px]"},St={class:"text-info"},kt=u(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),Ot={class:"text-success"},Lt={class:"flex-1"},Rt={class:"text-1xl"},Nt={class:"ml-2 text-[18px]"},Mt={class:"text-[12px]"},Tt={class:"text-info"},Yt=u(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),jt={class:"text-success"},It={class:"text-1xl"},zt={class:"ml-2 text-[18px]"},Jt={class:"text-[12px]"},Vt={class:"text-info"},$t=u(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),Gt={class:"text-success"},Pt={class:"mb-6 flex justify-between items-center"},Ut=u(()=>t("span",{class:"text-2xl"},"\u4EA4\u6613\u6982\u51B5",-1)),Zt={class:"flex items-center text-sm"},qt=u(()=>t("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1)),Ht={class:"flex flex-wrap"},Kt={class:"mr-2"},Qt={class:"text-info"},Wt={class:"text-6xl"},Xt={class:"text-info"},te=$({name:"statistics_user"}),ee=$({...te,setup(y){const G=[{text:"\u8FD1\u4E00\u5468",value:()=>{const n=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,n]}},{text:"\u672C\u6708",value:()=>{const n=new Date,e=new Date;return e.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0),[e,n]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,n]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,n]}}],p=v({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u91D1\u989D",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),b={tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:n=>{let e=`${n[0].name}\u70B9
`;return n.forEach(o=>{e+=`${o.seriesName}: ${o.value}
`}),e}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],yAxis:[{type:"value",show:!1,spliteLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],series:[{name:"\u6628\u5929",type:"line",smooth:!0,symbol:"none",itemStyle:{color:"#ccc"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#ccc"},{offset:.6,color:"#fff"}],global:!1}}},{name:"\u4ECA\u5929",type:"line",smooth:!0,symbol:"none",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5B8FF9"},{offset:.6,color:"#fff"}],global:!1}}}]},A=f({money:0,series:[]}),D=v(JSON.parse(JSON.stringify(b))),i=f([]),m=v(JSON.parse(JSON.stringify(b))),l=f([]),_=v(JSON.parse(JSON.stringify(b))),P=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],U=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),d=f([new Date,new Date]),w=()=>{let n="";d.value[0]&&d.value[1]&&(n=V(d.value[0]).format("YYYY/MM/DD")+"-"+V(d.value[1]).format("YYYY/MM/DD")),tt({}).then(e=>{A.value={money:e.left.series[0].money,name:e.left.name},D.series[0].data=e.left.series[1].value,D.series[1].data=e.left.series[0].value,i.value=e.right.today.series,l.value=e.right.month,m.xAxis.data=e.right.today.x.map(o=>o),m.series[0].name=e.right.today.series[0].name,m.series[0].data=e.right.today.series[0].value,m.series[1].name=e.right.today.series[1].name,m.series[1].data=e.right.today.series[1].value,_.xAxis.data=Object.keys(e.right.month[0].value).map(o=>o),_.series[0].name=e.right.month[0].name,_.series[0].data=Object.values(e.right.month[0].value).map(o=>o),_.series[1].name=e.right.month[1].name,_.series[1].data=Object.values(e.right.month[1].value).map(o=>o)}),et({date:n}).then(e=>{p.xAxis.data=[],p.series=[],console.log(e),p.legend.data=Object.values(e.series).map(o=>o.name),p.xAxis.data=e.x,p.series=Object.values(e.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,money:o.money,rate:o.rate}))})};return st(()=>{w()}),(n,e)=>{const o=W,Z=Q,q=X,H=K;return F(),C("div",pt,[r(o,{shadow:"never",class:"!border-none"},{default:E(()=>{var c,x,B,S,k,O,L,R,N,M,T,Y,j,I,z,J;return[t("div",dt,[t("div",mt,[_t,t("div",null,[xt,t("span",ht,a(s(A).money||"0.00"),1)]),r(s(g),{style:{height:"200px"},option:s(D),autoresize:!0},null,8,["option"])]),ft,t("div",yt,[t("div",gt,[t("div",vt,[h(a((c=s(i)[0])==null?void 0:c.name),1),t("span",bt,a((x=s(i)[0])==null?void 0:x.now_money),1)]),t("div",Dt,[t("span",wt,"\u6628\u65E5: "+a((B=s(i)[0])==null?void 0:B.last_money),1),Ft,t("span",Ct,a((S=s(i)[0])==null?void 0:S.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(m),autoresize:!0},null,8,["option"]),t("div",Et,[h(a((k=s(l)[0])==null?void 0:k.name),1),t("span",At,a((O=s(l)[0])==null?void 0:O.now_money),1)]),t("div",Bt,[t("span",St,"\u4E0A\u6708: "+a((L=s(l)[0])==null?void 0:L.last_money),1),kt,t("span",Ot,a((R=s(l)[0])==null?void 0:R.rate)+"%",1)])]),t("div",Lt,[t("div",Rt,[h(a((N=s(i)[1])==null?void 0:N.name),1),t("span",Nt,a((M=s(i)[1])==null?void 0:M.now_money),1)]),t("div",Mt,[t("span",Tt,"\u6628\u65E5: "+a((T=s(i)[1])==null?void 0:T.last_money),1),Yt,t("span",jt,a((Y=s(i)[1])==null?void 0:Y.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(_),autoresize:!0},null,8,["option"]),t("div",It,[h(a((j=s(l)[1])==null?void 0:j.name),1),t("span",zt,a((I=s(l)[1])==null?void 0:I.now_money),1)]),t("div",Jt,[t("span",Vt,"\u4E0A\u6708: "+a((z=s(l)[1])==null?void 0:z.last_money),1),$t,t("span",Gt,a((J=s(l)[1])==null?void 0:J.rate)+"%",1)])])])])]}),_:1}),r(o,{shadow:"never",class:"mt-4 !border-none"},{default:E(()=>[t("div",Pt,[Ut,t("div",Zt,[qt,r(Z,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=c=>ot(d)?d.value=c:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:G,onChange:w},null,8,["modelValue"]),r(q,{type:"primary",class:"ml-4",onClick:w},{default:E(()=>[h("\u67E5\u8BE2")]),_:1})])]),t("div",Ht,[(F(!0),C(at,null,nt(s(p).series,(c,x)=>(F(),C("div",{class:"w-1/5 flex mb-6",key:x},[t("div",Kt,[t("div",{class:"rounded-full p-2",style:it({"background-color":P[x%4]})},[r(H,{iconName:s(U)[x],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),t("div",null,[t("div",Qt,a(c.name),1),t("div",Wt,a(c.money),1),t("div",Xt,[h("\u73AF\u6BD4\u589E\u957F: "),t("span",{class:lt(c.rate>0?"text-success":"text-danger")},a(c.rate)+"%",3)])])]))),128))]),t("div",null,[r(s(g),{style:{height:"400px"},option:s(p),autoresize:!0},null,8,["option"])])]),_:1})])}}});const je=ut(ee,[["__scopeId","data-v-d24ef56b"]]);export{je as default}; diff --git a/build/admin/assets/index.acf69929.js b/build/admin/assets/index.2d6408ff.js similarity index 98% rename from build/admin/assets/index.acf69929.js rename to build/admin/assets/index.2d6408ff.js index 0c616ee32..c2e50a6cf 100644 --- a/build/admin/assets/index.acf69929.js +++ b/build/admin/assets/index.2d6408ff.js @@ -1 +1 @@ -import{L as l}from"./element-plus.5a7ba693.js";import{D as p}from"./index.31346dd1.js";import{B as x}from"./vue-echarts.01ad0ec2.js";import{d as c,Z as _,i as m,o as h,c as f,a as t,U as r,L as s,S as i,u as a}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const v={class:"workbench"},y={class:"flex box-border"},b=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u9500\u552E\u989D"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),E={class:"text-6xl"},w={class:"flex items-center justify-between"},B=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u9500\u552E\u989D:",-1),g={class:"text-tx-secondary text-xs"},F=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u6210\u4EA4\u8BA2\u5355"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),A={class:"text-6xl"},C={class:"flex items-center justify-between"},j=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u6210\u4EA4\u8BA2\u5355",-1),D={class:"text-tx-secondary text-xs"},O=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u7528\u6237"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),k={class:"text-6xl"},S={class:"flex items-center justify-between"},L=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u7528\u6237",-1),N={class:"text-tx-secondary text-xs"},V=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u8BBF\u95EE\u91CF"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),z={class:"text-6xl"},M={class:"flex items-center justify-between"},P=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u8BBF\u95EE\u91CF",-1),U={class:"text-tx-secondary text-xs"},W={class:"flex box-border"},Z=t("div",{class:"flex items-center justify-between"},[t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE")],-1),q=c({name:"workbench"}),Bt=c({...q,setup(G){const e=_({version:{version:"",website:"",based:"",channel:{gitee:"",website:""}},support:[],today:{},menu:[],visitor:[],article:[],visitorOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}}),u=()=>{p().then(o=>{e.version=o.version,e.today=o.today,e.menu=o.menu,e.visitor=o.visitor,e.support=o.support,e.visitorOption.xAxis.data=[],e.visitorOption.series[0].data=[],o.visitor.date.reverse().forEach(d=>{e.visitorOption.xAxis.data.push(d)}),o.visitor.list[0].data.forEach(d=>{e.visitorOption.series[0].data.push(d)}),console.log(e.visitorOption)}).catch(o=>{console.log("err",o)})};return m(()=>{u()}),(o,d)=>{const n=l;return h(),f("div",v,[t("div",y,[r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[b]),footer:s(()=>[t("div",w,[B,t("span",g,i(a(e).today.today_sales)+"\u5143",1)])]),default:s(()=>[t("div",E,i(a(e).today.today_sales),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[F]),footer:s(()=>[t("div",C,[j,t("span",D,i(a(e).today.order_sum)+"\u5355",1)])]),default:s(()=>[t("div",A,i(a(e).today.order_num),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[O]),footer:s(()=>[t("div",S,[L,t("span",N,i(a(e).today.total_new_user)+"\u4F4D",1)])]),default:s(()=>[t("div",k,i(a(e).today.today_new_user),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[V]),footer:s(()=>[t("div",M,[P,t("span",U,i(a(e).today.total_visitor)+"Pv",1)])]),default:s(()=>[t("div",z,i(a(e).today.today_visitor),1)]),_:1})]),t("div",W,[r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[Z]),default:s(()=>[t("div",null,[r(a(x),{style:{height:"350px"},option:a(e).visitorOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{Bt as default}; +import{L as l}from"./element-plus.5a7ba693.js";import{D as p}from"./index.0f3999b9.js";import{B as x}from"./vue-echarts.01ad0ec2.js";import{d as c,Z as _,i as m,o as h,c as f,a as t,U as r,L as s,S as i,u as a}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const v={class:"workbench"},y={class:"flex box-border"},b=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u9500\u552E\u989D"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),E={class:"text-6xl"},w={class:"flex items-center justify-between"},B=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u9500\u552E\u989D:",-1),g={class:"text-tx-secondary text-xs"},F=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u6210\u4EA4\u8BA2\u5355"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),A={class:"text-6xl"},C={class:"flex items-center justify-between"},j=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u6210\u4EA4\u8BA2\u5355",-1),D={class:"text-tx-secondary text-xs"},O=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u7528\u6237"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),k={class:"text-6xl"},S={class:"flex items-center justify-between"},L=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u7528\u6237",-1),N={class:"text-tx-secondary text-xs"},V=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u8BBF\u95EE\u91CF"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),z={class:"text-6xl"},M={class:"flex items-center justify-between"},P=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u8BBF\u95EE\u91CF",-1),U={class:"text-tx-secondary text-xs"},W={class:"flex box-border"},Z=t("div",{class:"flex items-center justify-between"},[t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE")],-1),q=c({name:"workbench"}),Bt=c({...q,setup(G){const e=_({version:{version:"",website:"",based:"",channel:{gitee:"",website:""}},support:[],today:{},menu:[],visitor:[],article:[],visitorOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}}),u=()=>{p().then(o=>{e.version=o.version,e.today=o.today,e.menu=o.menu,e.visitor=o.visitor,e.support=o.support,e.visitorOption.xAxis.data=[],e.visitorOption.series[0].data=[],o.visitor.date.reverse().forEach(d=>{e.visitorOption.xAxis.data.push(d)}),o.visitor.list[0].data.forEach(d=>{e.visitorOption.series[0].data.push(d)}),console.log(e.visitorOption)}).catch(o=>{console.log("err",o)})};return m(()=>{u()}),(o,d)=>{const n=l;return h(),f("div",v,[t("div",y,[r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[b]),footer:s(()=>[t("div",w,[B,t("span",g,i(a(e).today.today_sales)+"\u5143",1)])]),default:s(()=>[t("div",E,i(a(e).today.today_sales),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[F]),footer:s(()=>[t("div",C,[j,t("span",D,i(a(e).today.order_sum)+"\u5355",1)])]),default:s(()=>[t("div",A,i(a(e).today.order_num),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[O]),footer:s(()=>[t("div",S,[L,t("span",N,i(a(e).today.total_new_user)+"\u4F4D",1)])]),default:s(()=>[t("div",k,i(a(e).today.today_new_user),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[V]),footer:s(()=>[t("div",M,[P,t("span",U,i(a(e).today.total_visitor)+"Pv",1)])]),default:s(()=>[t("div",z,i(a(e).today.today_visitor),1)]),_:1})]),t("div",W,[r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[Z]),default:s(()=>[t("div",null,[r(a(x),{style:{height:"350px"},option:a(e).visitorOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{Bt as default}; diff --git a/build/admin/assets/index.31346dd1.js b/build/admin/assets/index.31346dd1.js deleted file mode 100644 index f12e96797..000000000 --- a/build/admin/assets/index.31346dd1.js +++ /dev/null @@ -1 +0,0 @@ -var u6=Object.defineProperty;var v6=(a,o,l)=>o in a?u6(a,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[o]=l;var N=(a,o,l)=>(v6(a,typeof o!="symbol"?o+"":o,l),l);import{u as r,q as q3,d as A,b as p,o as v,c as g,U as h,L as _,a as m,K as w,aR as p6,P as F3,Q as B,af as e3,s as _6,r as V3,I as x3,S as l3,a0 as c3,M as G3,V as U3,O as Y3,W as y6,H as z6,ak as b6,al as g6,h as A6,T as W,a9 as t3,j as D,w as W3,R as F,bl as M6,bk as w6,n as f6,i as V6,as as x6}from"./@vue.18505fe0.js";import{E as Z3,u as H6,a as L6,i as C6,b as E6,c as B6,d as T6,e as R6,f as O6,g as X3,h as I6,j as D6,k as s3,l as U,m as n3,n as S6,o as P6,p as $3,q as K3,r as J3,s as k6,t as j6,v as N6,w as q6,x as F6,y as G6,z as U6,A as Y6}from"./element-plus.5a7ba693.js";import{u as W6,l as Z6,m as Q3,n as X6,p as $6,e as K6}from"./@vueuse.fbc6a400.js";import{l as T}from"./lodash.60201f64.js";import{b as a6,d as r3}from"./axios.2b8d80bd.js";import{u as H3,a as L3,c as J6,b as Q6,R as g3}from"./vue-router.101084e3.js";import{d as v3,c as a1}from"./pinia.a969beab.js";import{l as o1}from"./css-color-function.b82a2ce7.js";import{H as o6}from"./@element-plus.edbd5a83.js";import{N as q}from"./nprogress.495afef3.js";import{u as l1}from"./vue-clipboard3.cb649e18.js";import{u as e1,a as c1,b as t1,c as i1,d as s1,e as n1,f as r1,g as h1,h as m1,j as d1,k as u1,l as v1,m as p1,n as _1,o as y1,p as z1,q as b1,r as g1,s as A1,v as M1,w as w1,x as f1,y as V1,z as x1,A as H1}from"./echarts.5016c48c.js";import{a as L1}from"./highlight.js.31cd7941.js";import{o as C1}from"./@highlightjs.b0c09b66.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./dayjs.8ae0c638.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./clipboard.4592e390.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))e(c);new MutationObserver(c=>{for(const t of c)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&e(s)}).observe(document,{childList:!0,subtree:!0});function l(c){const t={};return c.integrity&&(t.integrity=c.integrity),c.referrerpolicy&&(t.referrerPolicy=c.referrerpolicy),c.crossorigin==="use-credentials"?t.credentials="include":c.crossorigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function e(c){if(c.ep)return;c.ep=!0;const t=l(c);fetch(c.href,t)}})();const Y={terminal:1,title:"\u540E\u53F0\u7BA1\u7406\u7CFB\u7EDF",version:"1.5.0",baseUrl:"https://multi-store.lihaink.cn/",urlPrefix:"admin",timeout:10*1e3};var l6=(a=>(a.JSON="application/json;charset=UTF-8",a.FORM_DATA="multipart/form-data;charset=UTF-8",a))(l6||{}),a3=(a=>(a.GET="GET",a.POST="POST",a))(a3||{}),Q=(a=>(a[a.SUCCESS=1]="SUCCESS",a[a.FAIL=0]="FAIL",a[a.LOGIN_FAILURE=-1]="LOGIN_FAILURE",a[a.OPEN_NEW_PAGE=2]="OPEN_NEW_PAGE",a))(Q||{});const J=new Map,T3=class{static createInstance(){var o;return(o=this.instance)!=null?o:this.instance=new T3}add(o){const l=o.url;this.remove(l),o.cancelToken=new a6.CancelToken(e=>{J.has(l)||J.set(l,e)})}remove(o){if(J.has(o)){const l=J.get(o);l&&l(o),J.delete(o)}}};let h3=T3;N(h3,"instance");const O3=h3.createInstance();class E1{constructor(o){N(this,"axiosInstance");N(this,"config");N(this,"options");this.config=o,this.options=o.requestOptions,this.axiosInstance=a6.create(o),this.setupInterceptors()}getAxiosInstance(){return this.axiosInstance}setupInterceptors(){if(!this.config.axiosHooks)return;const{requestInterceptorsHook:o,requestInterceptorsCatchHook:l,responseInterceptorsHook:e,responseInterceptorsCatchHook:c}=this.config.axiosHooks;this.axiosInstance.interceptors.request.use(t=>(this.addCancelToken(t),T.exports.isFunction(o)&&(t=o(t)),t),t=>(T.exports.isFunction(l)&&l(t),t)),this.axiosInstance.interceptors.response.use(t=>(this.removeCancelToken(t.config.url),T.exports.isFunction(e)&&(t=e(t)),t),t=>{var s;return T.exports.isFunction(c)&&c(t),t.code!=r3.exports.AxiosError.ERR_CANCELED&&this.removeCancelToken((s=t.config)==null?void 0:s.url),t.code==r3.exports.AxiosError.ECONNABORTED||t.code==r3.exports.AxiosError.ERR_NETWORK?new Promise(n=>setTimeout(n,500)).then(()=>this.retryRequest(t)):Promise.reject(t)})}addCancelToken(o){const{ignoreCancelToken:l}=o.requestOptions;!l&&O3.add(o)}removeCancelToken(o){O3.remove(o)}retryRequest(o){var t,s;const l=o.config,{retryCount:e,isOpenRetry:c}=l.requestOptions;return!c||((t=l.method)==null?void 0:t.toUpperCase())==a3.POST||(l.retryCount=(s=l.retryCount)!=null?s:0,l.retryCount>=e)?Promise.reject(o):(l.retryCount++,this.axiosInstance.request(l))}get(o,l){return this.request({...o,method:a3.GET},l)}post(o,l){return this.request({...o,method:a3.POST},l)}request(o,l){const e=T.exports.merge({},this.options,l),c={...T.exports.cloneDeep(o),requestOptions:e},{urlPrefix:t}=e;return t&&(c.url=`${t}${o.url}`),new Promise((s,n)=>{this.axiosInstance.request(c).then(u=>{s(u)}).catch(u=>{n(u)})})}}const C3="token",H4="account",A3="setting",B1="modulepreload",T1=function(a){return"/admin/"+a},I3={},i=function(o,l,e){if(!l||l.length===0)return o();const c=document.getElementsByTagName("link");return Promise.all(l.map(t=>{if(t=T1(t),t in I3)return;I3[t]=!0;const s=t.endsWith(".css"),n=s?'[rel="stylesheet"]':"";if(!!e)for(let y=c.length-1;y>=0;y--){const z=c[y];if(z.href===t&&(!s||z.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${n}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":B1,s||(d.as="script",d.crossOrigin=""),d.href=t,document.head.appendChild(d),s)return new Promise((y,z)=>{d.addEventListener("load",y),d.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${t}`)))})})).then(()=>o())};var e6=(a=>(a.LIGHT="light",a.DARK="dark",a))(e6||{}),d3=(a=>(a.CATALOGUE="M",a.MENU="C",a.BUTTON="A",a))(d3||{}),M3=(a=>(a[a.SM=640]="SM",a[a.MD=768]="MD",a[a.LG=1024]="LG",a[a.XL=1280]="XL",a[a["2XL"]=1536]="2XL",a))(M3||{});function X(a){return/^(https?:|mailto:|tel:)/.test(a)}var L=(a=>(a.LOGIN="/login",a.ERROR_403="/403",a.INDEX="/",a))(L||{});const R1=(a,o)=>o.findIndex(l=>l.fullPath==a),O1=(a,o)=>{const{path:l,meta:e,name:c}=a;return!!(!l||X(l)||e!=null&&e.hideTab||!o.hasRoute(c)||[L.LOGIN,L.ERROR_403].includes(l))},I1=(a,o)=>o.findIndex(l=>l.fullPath===a),_3=a=>{var o,l,e;return(e=(l=(o=a.matched.at(-1))==null?void 0:o.components)==null?void 0:l.default)==null?void 0:e.name},c6=a=>{const{params:o,path:l,query:e}=a;return{params:o||{},path:l,query:e||{}}},i3=v3({id:"tabs",state:()=>({cacheTabList:new Set,tabList:[],tasMap:{},indexRouteName:""}),getters:{getTabList(){return this.tabList},getCacheTabList(){return Array.from(this.cacheTabList)}},actions:{setRouteName(a){this.indexRouteName=a},addCache(a){a&&this.cacheTabList.add(a)},removeCache(a){a&&this.cacheTabList.has(a)&&this.cacheTabList.delete(a)},clearCache(){this.cacheTabList.clear()},resetState(){this.cacheTabList=new Set,this.tabList=[],this.tasMap={},this.indexRouteName=""},addTab(a){const o=r(a.currentRoute),{name:l,query:e,meta:c,params:t,fullPath:s,path:n}=o;if(O1(o,a))return;const u=R1(s,this.tabList),d=_3(o),y={name:l,path:n,fullPath:s,title:c==null?void 0:c.title,query:e,params:t};this.tasMap[s]=y,c!=null&&c.keepAlive&&(console.log(d),this.addCache(d)),u==-1&&this.tabList.push(y)},removeTab(a,o){const{currentRoute:l,push:e}=o,c=I1(a,this.tabList);this.tabList.length>1&&c!==-1&&this.tabList.splice(c,1);const t=_3(l.value);if(this.removeCache(t),a!==l.value.fullPath)return;let s=null;c===0?s=this.tabList[c]:s=this.tabList[c-1];const n=c6(s);e(n)},removeOtherTab(a){this.tabList=this.tabList.filter(l=>l.fullPath==a.fullPath);const o=_3(a);this.cacheTabList.forEach(l=>{o!==l&&this.removeCache(l)})},removeAllTab(a){const{push:o,currentRoute:l}=a,{name:e}=r(l);if(e==this.indexRouteName){this.removeOtherTab(l.value);return}this.tabList=[],this.clearCache(),o(L.INDEX)}}}),y3={showCrumb:!0,showLogo:!0,isUniqueOpened:!0,sideWidth:200,sideTheme:"light",sideDarkColor:"#1d2124",openMultipleTabs:!0,theme:"#20B128",successTheme:"#67c23a",warningTheme:"#e6a23c",dangerTheme:"#f56c6c",errorTheme:"#f56c6c",infoTheme:"#909399"},Z={key:"like_admin_",set(a,o,l){a=this.getKey(a);let e={expire:l?this.time()+l:"",value:o};typeof e=="object"&&(e=JSON.stringify(e));try{window.localStorage.setItem(a,e)}catch{return null}},get(a){a=this.getKey(a);try{const o=window.localStorage.getItem(a);if(!o)return null;const{value:l,expire:e}=JSON.parse(o);return e&&e${n[0].name}\u70B9
`;return n.forEach(o=>{e+=`${o.seriesName}: ${o.value}
`}),e}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],yAxis:[{type:"value",show:!1,spliteLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],series:[{name:"\u6628\u5929",type:"line",smooth:!0,symbol:"none",itemStyle:{color:"#ccc"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#ccc"},{offset:.6,color:"#fff"}],global:!1}}},{name:"\u4ECA\u5929",type:"line",smooth:!0,symbol:"none",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5B8FF9"},{offset:.6,color:"#fff"}],global:!1}}}]},A=f({money:0,series:[]}),D=v(JSON.parse(JSON.stringify(b))),i=f([]),m=v(JSON.parse(JSON.stringify(b))),l=f([]),_=v(JSON.parse(JSON.stringify(b))),P=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],U=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),d=f([new Date,new Date]),w=()=>{let n="";d.value[0]&&d.value[1]&&(n=V(d.value[0]).format("YYYY/MM/DD")+"-"+V(d.value[1]).format("YYYY/MM/DD")),tt({}).then(e=>{A.value={money:e.left.series[0].money,name:e.left.name},D.series[0].data=e.left.series[1].value,D.series[1].data=e.left.series[0].value,i.value=e.right.today.series,l.value=e.right.month,m.xAxis.data=e.right.today.x.map(o=>o),m.series[0].name=e.right.today.series[0].name,m.series[0].data=e.right.today.series[0].value,m.series[1].name=e.right.today.series[1].name,m.series[1].data=e.right.today.series[1].value,_.xAxis.data=Object.keys(e.right.month[0].value).map(o=>o),_.series[0].name=e.right.month[0].name,_.series[0].data=Object.values(e.right.month[0].value).map(o=>o),_.series[1].name=e.right.month[1].name,_.series[1].data=Object.values(e.right.month[1].value).map(o=>o)}),et({date:n}).then(e=>{p.xAxis.data=[],p.series=[],console.log(e),p.legend.data=Object.values(e.series).map(o=>o.name),p.xAxis.data=e.x,p.series=Object.values(e.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,money:o.money,rate:o.rate}))})};return st(()=>{w()}),(n,e)=>{const o=W,Z=Q,q=X,H=K;return F(),C("div",pt,[r(o,{shadow:"never",class:"!border-none"},{default:E(()=>{var c,x,B,S,k,O,L,R,N,M,T,Y,j,I,z,J;return[t("div",dt,[t("div",mt,[_t,t("div",null,[xt,t("span",ht,a(s(A).money||"0.00"),1)]),r(s(g),{style:{height:"200px"},option:s(D),autoresize:!0},null,8,["option"])]),ft,t("div",yt,[t("div",gt,[t("div",vt,[h(a((c=s(i)[0])==null?void 0:c.name),1),t("span",bt,a((x=s(i)[0])==null?void 0:x.now_money),1)]),t("div",Dt,[t("span",wt,"\u6628\u65E5: "+a((B=s(i)[0])==null?void 0:B.last_money),1),Ft,t("span",Ct,a((S=s(i)[0])==null?void 0:S.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(m),autoresize:!0},null,8,["option"]),t("div",Et,[h(a((k=s(l)[0])==null?void 0:k.name),1),t("span",At,a((O=s(l)[0])==null?void 0:O.now_money),1)]),t("div",Bt,[t("span",St,"\u4E0A\u6708: "+a((L=s(l)[0])==null?void 0:L.last_money),1),kt,t("span",Ot,a((R=s(l)[0])==null?void 0:R.rate)+"%",1)])]),t("div",Lt,[t("div",Rt,[h(a((N=s(i)[1])==null?void 0:N.name),1),t("span",Nt,a((M=s(i)[1])==null?void 0:M.now_money),1)]),t("div",Mt,[t("span",Tt,"\u6628\u65E5: "+a((T=s(i)[1])==null?void 0:T.last_money),1),Yt,t("span",jt,a((Y=s(i)[1])==null?void 0:Y.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(_),autoresize:!0},null,8,["option"]),t("div",It,[h(a((j=s(l)[1])==null?void 0:j.name),1),t("span",zt,a((I=s(l)[1])==null?void 0:I.now_money),1)]),t("div",Jt,[t("span",Vt,"\u4E0A\u6708: "+a((z=s(l)[1])==null?void 0:z.last_money),1),$t,t("span",Gt,a((J=s(l)[1])==null?void 0:J.rate)+"%",1)])])])])]}),_:1}),r(o,{shadow:"never",class:"mt-4 !border-none"},{default:E(()=>[t("div",Pt,[Ut,t("div",Zt,[qt,r(Z,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=c=>ot(d)?d.value=c:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:G,onChange:w},null,8,["modelValue"]),r(q,{type:"primary",class:"ml-4",onClick:w},{default:E(()=>[h("\u67E5\u8BE2")]),_:1})])]),t("div",Ht,[(F(!0),C(at,null,nt(s(p).series,(c,x)=>(F(),C("div",{class:"w-1/5 flex mb-6",key:x},[t("div",Kt,[t("div",{class:"rounded-full p-2",style:it({"background-color":P[x%4]})},[r(H,{iconName:s(U)[x],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),t("div",null,[t("div",Qt,a(c.name),1),t("div",Wt,a(c.money),1),t("div",Xt,[h("\u73AF\u6BD4\u589E\u957F: "),t("span",{class:lt(c.rate>0?"text-success":"text-danger")},a(c.rate)+"%",3)])])]))),128))]),t("div",null,[r(s(g),{style:{height:"400px"},option:s(p),autoresize:!0},null,8,["option"])])]),_:1})])}}});const je=ut(ee,[["__scopeId","data-v-d24ef56b"]]);export{je as default}; +import{_ as K}from"./index.2204cf84.js";import{_ as Q,L as W,w as X}from"./element-plus.5a7ba693.js";import{f as tt,g as et}from"./workbench.2ea34900.js";import{h as V}from"./moment.40bc58bf.js";import{B as g}from"./vue-echarts.01ad0ec2.js";import{d as $,Z as v,r as f,i as st,o as F,c as C,U as r,L as E,a as t,S as a,u as s,R as h,j as ot,T as at,a9 as nt,a0 as it,O as lt,bl as ct,bk as rt}from"./@vue.18505fe0.js";import{d as ut}from"./index.c45659c8.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./resize-detector.4e96b72b.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const u=y=>(ct("data-v-d24ef56b"),y=y(),rt(),y),pt={class:"workbench"},dt={class:"flex"},mt={class:"flex-1 h-[270px]"},_t=u(()=>t("div",{class:"text-2xl"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1)),xt=u(()=>t("span",{class:"text-[12px]"},"\xA5",-1)),ht={class:"text-2xl"},ft=u(()=>t("div",{class:"w-[1px] bg-[#ccc] mr-4"},null,-1)),yt={class:"flex-1 flex"},gt={class:"flex-1"},vt={class:"text-1xl"},bt={class:"ml-2 text-[18px]"},Dt={class:"text-[12px]"},wt={class:"text-info"},Ft=u(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),Ct={class:"text-success"},Et={class:"text-1xl"},At={class:"ml-2 text-[18px]"},Bt={class:"text-[12px]"},St={class:"text-info"},kt=u(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),Ot={class:"text-success"},Lt={class:"flex-1"},Rt={class:"text-1xl"},Nt={class:"ml-2 text-[18px]"},Mt={class:"text-[12px]"},Tt={class:"text-info"},Yt=u(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),jt={class:"text-success"},It={class:"text-1xl"},zt={class:"ml-2 text-[18px]"},Jt={class:"text-[12px]"},Vt={class:"text-info"},$t=u(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),Gt={class:"text-success"},Pt={class:"mb-6 flex justify-between items-center"},Ut=u(()=>t("span",{class:"text-2xl"},"\u4EA4\u6613\u6982\u51B5",-1)),Zt={class:"flex items-center text-sm"},qt=u(()=>t("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1)),Ht={class:"flex flex-wrap"},Kt={class:"mr-2"},Qt={class:"text-info"},Wt={class:"text-6xl"},Xt={class:"text-info"},te=$({name:"statistics_user"}),ee=$({...te,setup(y){const G=[{text:"\u8FD1\u4E00\u5468",value:()=>{const n=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,n]}},{text:"\u672C\u6708",value:()=>{const n=new Date,e=new Date;return e.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0),[e,n]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,n]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,n]}}],p=v({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u91D1\u989D",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),b={tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:n=>{let e=`${n[0].name}\u70B9
`;return n.forEach(o=>{e+=`${o.seriesName}: ${o.value}
`}),e}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],yAxis:[{type:"value",show:!1,spliteLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],series:[{name:"\u6628\u5929",type:"line",smooth:!0,symbol:"none",itemStyle:{color:"#ccc"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#ccc"},{offset:.6,color:"#fff"}],global:!1}}},{name:"\u4ECA\u5929",type:"line",smooth:!0,symbol:"none",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5B8FF9"},{offset:.6,color:"#fff"}],global:!1}}}]},A=f({money:0,series:[]}),D=v(JSON.parse(JSON.stringify(b))),i=f([]),m=v(JSON.parse(JSON.stringify(b))),l=f([]),_=v(JSON.parse(JSON.stringify(b))),P=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],U=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),d=f([new Date,new Date]),w=()=>{let n="";d.value[0]&&d.value[1]&&(n=V(d.value[0]).format("YYYY/MM/DD")+"-"+V(d.value[1]).format("YYYY/MM/DD")),tt({}).then(e=>{A.value={money:e.left.series[0].money,name:e.left.name},D.series[0].data=e.left.series[1].value,D.series[1].data=e.left.series[0].value,i.value=e.right.today.series,l.value=e.right.month,m.xAxis.data=e.right.today.x.map(o=>o),m.series[0].name=e.right.today.series[0].name,m.series[0].data=e.right.today.series[0].value,m.series[1].name=e.right.today.series[1].name,m.series[1].data=e.right.today.series[1].value,_.xAxis.data=Object.keys(e.right.month[0].value).map(o=>o),_.series[0].name=e.right.month[0].name,_.series[0].data=Object.values(e.right.month[0].value).map(o=>o),_.series[1].name=e.right.month[1].name,_.series[1].data=Object.values(e.right.month[1].value).map(o=>o)}),et({date:n}).then(e=>{p.xAxis.data=[],p.series=[],console.log(e),p.legend.data=Object.values(e.series).map(o=>o.name),p.xAxis.data=e.x,p.series=Object.values(e.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,money:o.money,rate:o.rate}))})};return st(()=>{w()}),(n,e)=>{const o=W,Z=Q,q=X,H=K;return F(),C("div",pt,[r(o,{shadow:"never",class:"!border-none"},{default:E(()=>{var c,x,B,S,k,O,L,R,N,M,T,Y,j,I,z,J;return[t("div",dt,[t("div",mt,[_t,t("div",null,[xt,t("span",ht,a(s(A).money||"0.00"),1)]),r(s(g),{style:{height:"200px"},option:s(D),autoresize:!0},null,8,["option"])]),ft,t("div",yt,[t("div",gt,[t("div",vt,[h(a((c=s(i)[0])==null?void 0:c.name),1),t("span",bt,a((x=s(i)[0])==null?void 0:x.now_money),1)]),t("div",Dt,[t("span",wt,"\u6628\u65E5: "+a((B=s(i)[0])==null?void 0:B.last_money),1),Ft,t("span",Ct,a((S=s(i)[0])==null?void 0:S.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(m),autoresize:!0},null,8,["option"]),t("div",Et,[h(a((k=s(l)[0])==null?void 0:k.name),1),t("span",At,a((O=s(l)[0])==null?void 0:O.now_money),1)]),t("div",Bt,[t("span",St,"\u4E0A\u6708: "+a((L=s(l)[0])==null?void 0:L.last_money),1),kt,t("span",Ot,a((R=s(l)[0])==null?void 0:R.rate)+"%",1)])]),t("div",Lt,[t("div",Rt,[h(a((N=s(i)[1])==null?void 0:N.name),1),t("span",Nt,a((M=s(i)[1])==null?void 0:M.now_money),1)]),t("div",Mt,[t("span",Tt,"\u6628\u65E5: "+a((T=s(i)[1])==null?void 0:T.last_money),1),Yt,t("span",jt,a((Y=s(i)[1])==null?void 0:Y.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(_),autoresize:!0},null,8,["option"]),t("div",It,[h(a((j=s(l)[1])==null?void 0:j.name),1),t("span",zt,a((I=s(l)[1])==null?void 0:I.now_money),1)]),t("div",Jt,[t("span",Vt,"\u4E0A\u6708: "+a((z=s(l)[1])==null?void 0:z.last_money),1),$t,t("span",Gt,a((J=s(l)[1])==null?void 0:J.rate)+"%",1)])])])])]}),_:1}),r(o,{shadow:"never",class:"mt-4 !border-none"},{default:E(()=>[t("div",Pt,[Ut,t("div",Zt,[qt,r(Z,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=c=>ot(d)?d.value=c:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:G,onChange:w},null,8,["modelValue"]),r(q,{type:"primary",class:"ml-4",onClick:w},{default:E(()=>[h("\u67E5\u8BE2")]),_:1})])]),t("div",Ht,[(F(!0),C(at,null,nt(s(p).series,(c,x)=>(F(),C("div",{class:"w-1/5 flex mb-6",key:x},[t("div",Kt,[t("div",{class:"rounded-full p-2",style:it({"background-color":P[x%4]})},[r(H,{iconName:s(U)[x],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),t("div",null,[t("div",Qt,a(c.name),1),t("div",Wt,a(c.money),1),t("div",Xt,[h("\u73AF\u6BD4\u589E\u957F: "),t("span",{class:lt(c.rate>0?"text-success":"text-danger")},a(c.rate)+"%",3)])])]))),128))]),t("div",null,[r(s(g),{style:{height:"400px"},option:s(p),autoresize:!0},null,8,["option"])])]),_:1})])}}});const je=ut(ee,[["__scopeId","data-v-d24ef56b"]]);export{je as default}; diff --git a/dist/admin/assets/index.677460e8.js b/build/admin/assets/index.4bcf53bd.js similarity index 93% rename from dist/admin/assets/index.677460e8.js rename to build/admin/assets/index.4bcf53bd.js index a21a502ae..a1df4e9e4 100644 --- a/dist/admin/assets/index.677460e8.js +++ b/build/admin/assets/index.4bcf53bd.js @@ -1 +1 @@ -import{$ as P,k as F,J as T,K as M,D as j,w as I,F as K,L as O,M as q,N as J,O as Q}from"./element-plus.5a7ba693.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{u as z}from"./usePaging.6a6670f9.js";import{u as G}from"./useDictOptions.61b0b5e7.js";import{d as H,e as W}from"./user_recharge.ba8e9c14.js";import{d as B,s as X,r as v,Z as Y,o as n,c as ee,U as e,L as o,u as t,R as i,M as oe,K as p,a as b,S as w,Q as k,j as te}from"./@vue.18505fe0.js";import"./lodash.60201f64.js";import{f as ae}from"./index.8f2bbb36.js";import{_ as le}from"./edit.vue_vue_type_script_setup_true_name_userRechargeEdit_lang.49c015ad.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.57c062db.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ue={class:"flex mt-4 justify-end"},se=B({name:"userRechargeLists"}),Ze=B({...se,setup(ne){const y=X(),_=v(!1),m=Y({paid:"",pay_time:""}),D=v([]),V=c=>{D.value=c.map(({id:l})=>l)},{dictData:R}=G(""),{pager:r,getLists:s,resetParams:x,resetPage:f}=z({fetchFun:W,params:m}),S=async c=>{await ae.confirm("\u786E\u5B9A\u8981\u9000\u6B3E\u5417\uFF1F"),H({id:c.id}).then(l=>{F.success("\u64CD\u4F5C\u6210\u529F,\u9000\u6B3E\u6709\u4E00\u5B9A\u5EF6\u8FDF,\u8BF7\u7A0D\u540E\u67E5\u770B"),s()}).catch(l=>{F.error("\u9000\u6B3E\u5931\u8D25"),s()})};return s(),(c,l)=>{const C=T,L=M,h=j,d=I,A=K,g=O,u=q,E=P,N=J,U=Z,$=Q;return n(),ee("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(A,{class:"mb-[-16px]",model:t(m),inline:""},{default:o(()=>[e(h,{label:"\u662F\u5426\u5145\u503C",prop:"paid"},{default:o(()=>[e(L,{modelValue:t(m).paid,"onUpdate:modelValue":l[0]||(l[0]=a=>t(m).paid=a),class:"w-[280px]",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u5145\u503C",onChange:t(f)},{default:o(()=>[e(C,{label:"\u5DF2\u5145\u503C",value:"1"}),e(C,{label:"\u672A\u5145\u503C",value:"0"})]),_:1},8,["modelValue","onChange"])]),_:1}),e(h,null,{default:o(()=>[e(d,{type:"primary",onClick:t(f)},{default:o(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:t(x)},{default:o(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(d,{onClick:t(s)},{default:o(()=>[i("\u5237\u65B0")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),oe((n(),p(g,{class:"!border-none",shadow:"never"},{default:o(()=>[b("div",null,[e(N,{data:t(r).lists,onSelectionChange:V},{default:o(()=>[e(u,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","show-overflow-tooltip":""}),e(u,{label:"\u8BA2\u5355\u53F7",prop:"order_id","min-width":"200","show-overflow-tooltip":""}),e(u,{label:"\u5145\u503C\u91D1\u989D",prop:"price","show-overflow-tooltip":""}),e(u,{label:"\u5145\u503C\u7C7B\u578B",prop:"recharge_type","show-overflow-tooltip":""}),e(u,{label:"\u662F\u5426\u5145\u503C",prop:"paid","show-overflow-tooltip":""},{default:o(({row:a})=>[a.status==-1?(n(),p(E,{key:0,type:"info"},{default:o(()=>[i(w(a.paid_name),1)]),_:2},1024)):(n(),p(E,{key:1,type:a.paid?"success":"danger"},{default:o(()=>[i(w(a.paid_name),1)]),_:2},1032,["type"]))]),_:1}),e(u,{label:"\u5145\u503C\u65F6\u95F4",prop:"pay_time","min-width":"180","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",fixed:"right"},{default:o(({row:a})=>[a.paid==1&&a.status!=-1?(n(),p(d,{key:0,type:"warning",link:"",onClick:ie=>S(a)},{default:o(()=>[i("\u9000\u6B3E")]),_:2},1032,["onClick"])):k("",!0)]),_:1})]),_:1},8,["data"])]),b("div",ue,[e(U,{modelValue:t(r),"onUpdate:modelValue":l[1]||(l[1]=a=>te(r)?r.value=a:null),onChange:t(s)},null,8,["modelValue","onChange"])])]),_:1})),[[$,t(r).loading]]),t(_)?(n(),p(le,{key:0,ref_key:"editRef",ref:y,"dict-data":t(R),onSuccess:t(s),onClose:l[2]||(l[2]=a=>_.value=!1)},null,8,["dict-data","onSuccess"])):k("",!0)])}}});export{Ze as default}; +import{$ as P,k as F,J as T,K as M,D as j,w as I,F as K,L as O,M as q,N as J,O as Q}from"./element-plus.5a7ba693.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{u as z}from"./usePaging.6a6670f9.js";import{u as G}from"./useDictOptions.02300dbb.js";import{d as H,e as W}from"./user_recharge.74f5ec27.js";import{d as B,s as X,r as v,Z as Y,o as n,c as ee,U as e,L as o,u as t,R as i,M as oe,K as p,a as b,S as w,Q as k,j as te}from"./@vue.18505fe0.js";import"./lodash.60201f64.js";import{f as ae}from"./index.c45659c8.js";import{_ as le}from"./edit.vue_vue_type_script_setup_true_name_userRechargeEdit_lang.e429a780.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.729e78df.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ue={class:"flex mt-4 justify-end"},se=B({name:"userRechargeLists"}),Ze=B({...se,setup(ne){const y=X(),_=v(!1),m=Y({paid:"",pay_time:""}),D=v([]),V=c=>{D.value=c.map(({id:l})=>l)},{dictData:R}=G(""),{pager:r,getLists:s,resetParams:x,resetPage:f}=z({fetchFun:W,params:m}),S=async c=>{await ae.confirm("\u786E\u5B9A\u8981\u9000\u6B3E\u5417\uFF1F"),H({id:c.id}).then(l=>{F.success("\u64CD\u4F5C\u6210\u529F,\u9000\u6B3E\u6709\u4E00\u5B9A\u5EF6\u8FDF,\u8BF7\u7A0D\u540E\u67E5\u770B"),s()}).catch(l=>{F.error("\u9000\u6B3E\u5931\u8D25"),s()})};return s(),(c,l)=>{const C=T,L=M,h=j,d=I,A=K,g=O,u=q,E=P,N=J,U=Z,$=Q;return n(),ee("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(A,{class:"mb-[-16px]",model:t(m),inline:""},{default:o(()=>[e(h,{label:"\u662F\u5426\u5145\u503C",prop:"paid"},{default:o(()=>[e(L,{modelValue:t(m).paid,"onUpdate:modelValue":l[0]||(l[0]=a=>t(m).paid=a),class:"w-[280px]",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u5145\u503C",onChange:t(f)},{default:o(()=>[e(C,{label:"\u5DF2\u5145\u503C",value:"1"}),e(C,{label:"\u672A\u5145\u503C",value:"0"})]),_:1},8,["modelValue","onChange"])]),_:1}),e(h,null,{default:o(()=>[e(d,{type:"primary",onClick:t(f)},{default:o(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:t(x)},{default:o(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(d,{onClick:t(s)},{default:o(()=>[i("\u5237\u65B0")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),oe((n(),p(g,{class:"!border-none",shadow:"never"},{default:o(()=>[b("div",null,[e(N,{data:t(r).lists,onSelectionChange:V},{default:o(()=>[e(u,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","show-overflow-tooltip":""}),e(u,{label:"\u8BA2\u5355\u53F7",prop:"order_id","min-width":"200","show-overflow-tooltip":""}),e(u,{label:"\u5145\u503C\u91D1\u989D",prop:"price","show-overflow-tooltip":""}),e(u,{label:"\u5145\u503C\u7C7B\u578B",prop:"recharge_type","show-overflow-tooltip":""}),e(u,{label:"\u662F\u5426\u5145\u503C",prop:"paid","show-overflow-tooltip":""},{default:o(({row:a})=>[a.status==-1?(n(),p(E,{key:0,type:"info"},{default:o(()=>[i(w(a.paid_name),1)]),_:2},1024)):(n(),p(E,{key:1,type:a.paid?"success":"danger"},{default:o(()=>[i(w(a.paid_name),1)]),_:2},1032,["type"]))]),_:1}),e(u,{label:"\u5145\u503C\u65F6\u95F4",prop:"pay_time","min-width":"180","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",fixed:"right"},{default:o(({row:a})=>[a.paid==1&&a.status!=-1?(n(),p(d,{key:0,type:"warning",link:"",onClick:ie=>S(a)},{default:o(()=>[i("\u9000\u6B3E")]),_:2},1032,["onClick"])):k("",!0)]),_:1})]),_:1},8,["data"])]),b("div",ue,[e(U,{modelValue:t(r),"onUpdate:modelValue":l[1]||(l[1]=a=>te(r)?r.value=a:null),onChange:t(s)},null,8,["modelValue","onChange"])])]),_:1})),[[$,t(r).loading]]),t(_)?(n(),p(le,{key:0,ref_key:"editRef",ref:y,"dict-data":t(R),onSuccess:t(s),onClose:l[2]||(l[2]=a=>_.value=!1)},null,8,["dict-data","onSuccess"])):k("",!0)])}}});export{Ze as default}; diff --git a/dist/admin/assets/index.5613f971.js b/build/admin/assets/index.5435fa8c.js similarity index 97% rename from dist/admin/assets/index.5613f971.js rename to build/admin/assets/index.5435fa8c.js index ea3af6768..968f55e2f 100644 --- a/dist/admin/assets/index.5613f971.js +++ b/build/admin/assets/index.5435fa8c.js @@ -1 +1 @@ -import{_ as K,J as X,K as I,w as J,L as P,o as W,M as Z,N as q}from"./element-plus.5a7ba693.js";import{_ as G}from"./index.01082636.js";import"./index.8f2bbb36.js";import{b as H,a as Q}from"./system_store.17b13d2f.js";import{h as y}from"./moment.40bc58bf.js";import{B as A}from"./vue-echarts.01ad0ec2.js";import{d as S,Z as v,r as d,i as $,o as _,c as E,U as t,L as s,a as o,u as l,j as M,T as k,a9 as Y,K as ee,R,a0 as te,S as L,O as oe}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const ae={class:"workbench"},ue={class:"flex justify-between items-center"},ne={class:"flex items-center"},se=o("span",{class:"text-2xl mr-4"},"\u8FD0\u8425\u6982\u51B5",-1),le=o("span",{class:"ml-4 text-info text-[12px]"},"\u70B9\u51FB\u5DE6\u4FA7\u5207\u6362\u95E8\u5E97",-1),re={class:"flex items-center text-sm"},ie=o("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),ce={class:"flex flex-wrap box-border mt-4"},me={class:"flex"},pe={class:"mr-2"},de={class:"text-info"},_e={class:"text-6xl"},De=o("span",{class:"text-2xl"},"\u8425\u4E1A\u8D8B\u52BF",-1),he={class:"mt-4 flex justify-center"},fe=o("span",{class:"text-2xl"},"\u4EA4\u6613\u6570\u636E",-1),ye=o("span",{class:"text-2xl"},"\u4EA4\u6613\u7C7B\u578B",-1),ve=S({name:"statistics_store"}),at=S({...ve,setup(Ee){const V=[{text:"\u8FD1\u4E00\u5468",value:()=>{const a=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,a]}},{text:"\u672C\u6708",value:()=>{const a=new Date,e=new Date;return e.setDate(1),a.setMonth(a.getMonth()+1),a.setDate(0),[e,a]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const a=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,a]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const a=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,a]}}],D=v({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:[{type:"value",name:"\u7528\u6237\u6570\u91CF",position:"left",axisLabel:{formatter:"{value}"}},{type:"value",name:"\u91D1\u989D",position:"right",axisLabel:{formatter:"{value}"}}],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{data:[],type:"line",smooth:!0,name:"\u95E8\u5E97\u6536\u6B3E"},{data:[],type:"line",smooth:!0,name:"\u65B0\u589E\u7528\u6237"}]});v({tooltip:{formatter:"{a}${n[0].name}\u70B9
`;return n.forEach(o=>{e+=`${o.seriesName}: ${o.value}
`}),e}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],yAxis:[{type:"value",show:!1,spliteLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],series:[{name:"\u6628\u5929",type:"line",smooth:!0,symbol:"none",itemStyle:{color:"#ccc"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#ccc"},{offset:.6,color:"#fff"}],global:!1}}},{name:"\u4ECA\u5929",type:"line",smooth:!0,symbol:"none",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5B8FF9"},{offset:.6,color:"#fff"}],global:!1}}}]},A=f({money:0,series:[]}),D=v(JSON.parse(JSON.stringify(b))),i=f([]),m=v(JSON.parse(JSON.stringify(b))),l=f([]),_=v(JSON.parse(JSON.stringify(b))),P=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],U=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),d=f([new Date,new Date]),w=()=>{let n="";d.value[0]&&d.value[1]&&(n=V(d.value[0]).format("YYYY/MM/DD")+"-"+V(d.value[1]).format("YYYY/MM/DD")),tt({}).then(e=>{A.value={money:e.left.series[0].money,name:e.left.name},D.series[0].data=e.left.series[1].value,D.series[1].data=e.left.series[0].value,i.value=e.right.today.series,l.value=e.right.month,m.xAxis.data=e.right.today.x.map(o=>o),m.series[0].name=e.right.today.series[0].name,m.series[0].data=e.right.today.series[0].value,m.series[1].name=e.right.today.series[1].name,m.series[1].data=e.right.today.series[1].value,_.xAxis.data=Object.keys(e.right.month[0].value).map(o=>o),_.series[0].name=e.right.month[0].name,_.series[0].data=Object.values(e.right.month[0].value).map(o=>o),_.series[1].name=e.right.month[1].name,_.series[1].data=Object.values(e.right.month[1].value).map(o=>o)}),et({date:n}).then(e=>{p.xAxis.data=[],p.series=[],console.log(e),p.legend.data=Object.values(e.series).map(o=>o.name),p.xAxis.data=e.x,p.series=Object.values(e.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,money:o.money,rate:o.rate}))})};return st(()=>{w()}),(n,e)=>{const o=W,Z=Q,q=X,H=K;return F(),C("div",pt,[r(o,{shadow:"never",class:"!border-none"},{default:E(()=>{var c,x,B,S,k,O,L,R,N,M,T,Y,j,I,z,J;return[t("div",dt,[t("div",mt,[_t,t("div",null,[xt,t("span",ht,a(s(A).money||"0.00"),1)]),r(s(g),{style:{height:"200px"},option:s(D),autoresize:!0},null,8,["option"])]),ft,t("div",yt,[t("div",gt,[t("div",vt,[h(a((c=s(i)[0])==null?void 0:c.name),1),t("span",bt,a((x=s(i)[0])==null?void 0:x.now_money),1)]),t("div",Dt,[t("span",wt,"\u6628\u65E5: "+a((B=s(i)[0])==null?void 0:B.last_money),1),Ft,t("span",Ct,a((S=s(i)[0])==null?void 0:S.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(m),autoresize:!0},null,8,["option"]),t("div",Et,[h(a((k=s(l)[0])==null?void 0:k.name),1),t("span",At,a((O=s(l)[0])==null?void 0:O.now_money),1)]),t("div",Bt,[t("span",St,"\u4E0A\u6708: "+a((L=s(l)[0])==null?void 0:L.last_money),1),kt,t("span",Ot,a((R=s(l)[0])==null?void 0:R.rate)+"%",1)])]),t("div",Lt,[t("div",Rt,[h(a((N=s(i)[1])==null?void 0:N.name),1),t("span",Nt,a((M=s(i)[1])==null?void 0:M.now_money),1)]),t("div",Mt,[t("span",Tt,"\u6628\u65E5: "+a((T=s(i)[1])==null?void 0:T.last_money),1),Yt,t("span",jt,a((Y=s(i)[1])==null?void 0:Y.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(_),autoresize:!0},null,8,["option"]),t("div",It,[h(a((j=s(l)[1])==null?void 0:j.name),1),t("span",zt,a((I=s(l)[1])==null?void 0:I.now_money),1)]),t("div",Jt,[t("span",Vt,"\u4E0A\u6708: "+a((z=s(l)[1])==null?void 0:z.last_money),1),$t,t("span",Gt,a((J=s(l)[1])==null?void 0:J.rate)+"%",1)])])])])]}),_:1}),r(o,{shadow:"never",class:"mt-4 !border-none"},{default:E(()=>[t("div",Pt,[Ut,t("div",Zt,[qt,r(Z,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=c=>ot(d)?d.value=c:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:G,onChange:w},null,8,["modelValue"]),r(q,{type:"primary",class:"ml-4",onClick:w},{default:E(()=>[h("\u67E5\u8BE2")]),_:1})])]),t("div",Ht,[(F(!0),C(at,null,nt(s(p).series,(c,x)=>(F(),C("div",{class:"w-1/5 flex mb-6",key:x},[t("div",Kt,[t("div",{class:"rounded-full p-2",style:it({"background-color":P[x%4]})},[r(H,{iconName:s(U)[x],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),t("div",null,[t("div",Qt,a(c.name),1),t("div",Wt,a(c.money),1),t("div",Xt,[h("\u73AF\u6BD4\u589E\u957F: "),t("span",{class:lt(c.rate>0?"text-success":"text-danger")},a(c.rate)+"%",3)])])]))),128))]),t("div",null,[r(s(g),{style:{height:"400px"},option:s(p),autoresize:!0},null,8,["option"])])]),_:1})])}}});const je=ut(ee,[["__scopeId","data-v-d24ef56b"]]);export{je as default}; +import{_ as K}from"./index.1f2b82ca.js";import{_ as Q,L as W,w as X}from"./element-plus.5a7ba693.js";import{f as tt,g as et}from"./workbench.204abcc5.js";import{h as V}from"./moment.40bc58bf.js";import{B as g}from"./vue-echarts.01ad0ec2.js";import{d as $,Z as v,r as f,i as st,o as F,c as C,U as r,L as E,a as t,S as a,u as s,R as h,j as ot,T as at,a9 as nt,a0 as it,O as lt,bl as ct,bk as rt}from"./@vue.18505fe0.js";import{d as ut}from"./index.5c2d321b.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./resize-detector.4e96b72b.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const u=y=>(ct("data-v-d24ef56b"),y=y(),rt(),y),pt={class:"workbench"},dt={class:"flex"},mt={class:"flex-1 h-[270px]"},_t=u(()=>t("div",{class:"text-2xl"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1)),xt=u(()=>t("span",{class:"text-[12px]"},"\xA5",-1)),ht={class:"text-2xl"},ft=u(()=>t("div",{class:"w-[1px] bg-[#ccc] mr-4"},null,-1)),yt={class:"flex-1 flex"},gt={class:"flex-1"},vt={class:"text-1xl"},bt={class:"ml-2 text-[18px]"},Dt={class:"text-[12px]"},wt={class:"text-info"},Ft=u(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),Ct={class:"text-success"},Et={class:"text-1xl"},At={class:"ml-2 text-[18px]"},Bt={class:"text-[12px]"},St={class:"text-info"},kt=u(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),Ot={class:"text-success"},Lt={class:"flex-1"},Rt={class:"text-1xl"},Nt={class:"ml-2 text-[18px]"},Mt={class:"text-[12px]"},Tt={class:"text-info"},Yt=u(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),jt={class:"text-success"},It={class:"text-1xl"},zt={class:"ml-2 text-[18px]"},Jt={class:"text-[12px]"},Vt={class:"text-info"},$t=u(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),Gt={class:"text-success"},Pt={class:"mb-6 flex justify-between items-center"},Ut=u(()=>t("span",{class:"text-2xl"},"\u4EA4\u6613\u6982\u51B5",-1)),Zt={class:"flex items-center text-sm"},qt=u(()=>t("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1)),Ht={class:"flex flex-wrap"},Kt={class:"mr-2"},Qt={class:"text-info"},Wt={class:"text-6xl"},Xt={class:"text-info"},te=$({name:"statistics_user"}),ee=$({...te,setup(y){const G=[{text:"\u8FD1\u4E00\u5468",value:()=>{const n=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,n]}},{text:"\u672C\u6708",value:()=>{const n=new Date,e=new Date;return e.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0),[e,n]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,n]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,n]}}],p=v({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u91D1\u989D",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),b={tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:n=>{let e=`${n[0].name}\u70B9
`;return n.forEach(o=>{e+=`${o.seriesName}: ${o.value}
`}),e}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],yAxis:[{type:"value",show:!1,spliteLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],series:[{name:"\u6628\u5929",type:"line",smooth:!0,symbol:"none",itemStyle:{color:"#ccc"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#ccc"},{offset:.6,color:"#fff"}],global:!1}}},{name:"\u4ECA\u5929",type:"line",smooth:!0,symbol:"none",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5B8FF9"},{offset:.6,color:"#fff"}],global:!1}}}]},A=f({money:0,series:[]}),D=v(JSON.parse(JSON.stringify(b))),i=f([]),m=v(JSON.parse(JSON.stringify(b))),l=f([]),_=v(JSON.parse(JSON.stringify(b))),P=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],U=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),d=f([new Date,new Date]),w=()=>{let n="";d.value[0]&&d.value[1]&&(n=V(d.value[0]).format("YYYY/MM/DD")+"-"+V(d.value[1]).format("YYYY/MM/DD")),tt({}).then(e=>{A.value={money:e.left.series[0].money,name:e.left.name},D.series[0].data=e.left.series[1].value,D.series[1].data=e.left.series[0].value,i.value=e.right.today.series,l.value=e.right.month,m.xAxis.data=e.right.today.x.map(o=>o),m.series[0].name=e.right.today.series[0].name,m.series[0].data=e.right.today.series[0].value,m.series[1].name=e.right.today.series[1].name,m.series[1].data=e.right.today.series[1].value,_.xAxis.data=Object.keys(e.right.month[0].value).map(o=>o),_.series[0].name=e.right.month[0].name,_.series[0].data=Object.values(e.right.month[0].value).map(o=>o),_.series[1].name=e.right.month[1].name,_.series[1].data=Object.values(e.right.month[1].value).map(o=>o)}),et({date:n}).then(e=>{p.xAxis.data=[],p.series=[],console.log(e),p.legend.data=Object.values(e.series).map(o=>o.name),p.xAxis.data=e.x,p.series=Object.values(e.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,money:o.money,rate:o.rate}))})};return st(()=>{w()}),(n,e)=>{const o=W,Z=Q,q=X,H=K;return F(),C("div",pt,[r(o,{shadow:"never",class:"!border-none"},{default:E(()=>{var c,x,B,S,k,O,L,R,N,M,T,Y,j,I,z,J;return[t("div",dt,[t("div",mt,[_t,t("div",null,[xt,t("span",ht,a(s(A).money||"0.00"),1)]),r(s(g),{style:{height:"200px"},option:s(D),autoresize:!0},null,8,["option"])]),ft,t("div",yt,[t("div",gt,[t("div",vt,[h(a((c=s(i)[0])==null?void 0:c.name),1),t("span",bt,a((x=s(i)[0])==null?void 0:x.now_money),1)]),t("div",Dt,[t("span",wt,"\u6628\u65E5: "+a((B=s(i)[0])==null?void 0:B.last_money),1),Ft,t("span",Ct,a((S=s(i)[0])==null?void 0:S.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(m),autoresize:!0},null,8,["option"]),t("div",Et,[h(a((k=s(l)[0])==null?void 0:k.name),1),t("span",At,a((O=s(l)[0])==null?void 0:O.now_money),1)]),t("div",Bt,[t("span",St,"\u4E0A\u6708: "+a((L=s(l)[0])==null?void 0:L.last_money),1),kt,t("span",Ot,a((R=s(l)[0])==null?void 0:R.rate)+"%",1)])]),t("div",Lt,[t("div",Rt,[h(a((N=s(i)[1])==null?void 0:N.name),1),t("span",Nt,a((M=s(i)[1])==null?void 0:M.now_money),1)]),t("div",Mt,[t("span",Tt,"\u6628\u65E5: "+a((T=s(i)[1])==null?void 0:T.last_money),1),Yt,t("span",jt,a((Y=s(i)[1])==null?void 0:Y.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(_),autoresize:!0},null,8,["option"]),t("div",It,[h(a((j=s(l)[1])==null?void 0:j.name),1),t("span",zt,a((I=s(l)[1])==null?void 0:I.now_money),1)]),t("div",Jt,[t("span",Vt,"\u4E0A\u6708: "+a((z=s(l)[1])==null?void 0:z.last_money),1),$t,t("span",Gt,a((J=s(l)[1])==null?void 0:J.rate)+"%",1)])])])])]}),_:1}),r(o,{shadow:"never",class:"mt-4 !border-none"},{default:E(()=>[t("div",Pt,[Ut,t("div",Zt,[qt,r(Z,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=c=>ot(d)?d.value=c:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:G,onChange:w},null,8,["modelValue"]),r(q,{type:"primary",class:"ml-4",onClick:w},{default:E(()=>[h("\u67E5\u8BE2")]),_:1})])]),t("div",Ht,[(F(!0),C(at,null,nt(s(p).series,(c,x)=>(F(),C("div",{class:"w-1/5 flex mb-6",key:x},[t("div",Kt,[t("div",{class:"rounded-full p-2",style:it({"background-color":P[x%4]})},[r(H,{iconName:s(U)[x],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),t("div",null,[t("div",Qt,a(c.name),1),t("div",Wt,a(c.money),1),t("div",Xt,[h("\u73AF\u6BD4\u589E\u957F: "),t("span",{class:lt(c.rate>0?"text-success":"text-danger")},a(c.rate)+"%",3)])])]))),128))]),t("div",null,[r(s(g),{style:{height:"400px"},option:s(p),autoresize:!0},null,8,["option"])])]),_:1})])}}});const je=ut(ee,[["__scopeId","data-v-d24ef56b"]]);export{je as default}; diff --git a/dist/admin/assets/index.01082636.js b/dist/admin/assets/index.1f2b82ca.js similarity index 89% rename from dist/admin/assets/index.01082636.js rename to dist/admin/assets/index.1f2b82ca.js index e3dcb8c7d..90dffd249 100644 --- a/dist/admin/assets/index.01082636.js +++ b/dist/admin/assets/index.1f2b82ca.js @@ -1 +1 @@ -import{d as o,b as n,o as c,c as l,a as r,O as i}from"./@vue.18505fe0.js";import{d}from"./index.8f2bbb36.js";const _=["xlink:href","fill"],u=o({__name:"index",props:{iconName:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:"#333"},white:{type:Boolean,default:!1}},setup(e){const s=e,t=n(()=>`#icon-${s.iconName}`),a=n(()=>s.className?`svg-icon ${s.className}`:"svg-icon");return(f,m)=>(c(),l("svg",{class:i(a.value),"aria-hidden":"true"},[r("use",{"xlink:href":t.value,fill:e.white?"#fff":e.color},null,8,_)],2))}});const v=d(u,[["__scopeId","data-v-9b161d0d"]]);export{v as _}; +import{d as o,b as n,o as c,c as l,a as r,O as i}from"./@vue.18505fe0.js";import{d}from"./index.5c2d321b.js";const _=["xlink:href","fill"],u=o({__name:"index",props:{iconName:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:"#333"},white:{type:Boolean,default:!1}},setup(e){const s=e,t=n(()=>`#icon-${s.iconName}`),a=n(()=>s.className?`svg-icon ${s.className}`:"svg-icon");return(f,m)=>(c(),l("svg",{class:i(a.value),"aria-hidden":"true"},[r("use",{"xlink:href":t.value,fill:e.white?"#fff":e.color},null,8,_)],2))}});const v=d(u,[["__scopeId","data-v-9b161d0d"]]);export{v as _}; diff --git a/dist/admin/assets/index.ecfe60a9.js b/dist/admin/assets/index.21650fa9.js similarity index 93% rename from dist/admin/assets/index.ecfe60a9.js rename to dist/admin/assets/index.21650fa9.js index 8677a89ed..879f63cca 100644 --- a/dist/admin/assets/index.ecfe60a9.js +++ b/dist/admin/assets/index.21650fa9.js @@ -1 +1 @@ -import{C as L,D as U,w as I,F as N,L as R,M as P,N as S,O as $}from"./element-plus.5a7ba693.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.efb70876.js";import{u as q}from"./usePaging.6a6670f9.js";import{u as K}from"./useDictOptions.61b0b5e7.js";import{d as O}from"./log.2629374b.js";import"./lodash.60201f64.js";import"./index.8f2bbb36.js";import{_ as Q}from"./edit.vue_vue_type_script_setup_true_name_logEdit_lang.6d30b4cf.js";import{d as E,s as Z,r as F,Z as z,o as p,c as G,U as o,L as u,u as e,R as w,M as H,K as B,a as b,j as J,Q as W}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.57c062db.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const X={class:"flex mt-4 justify-end"},Y=E({name:"logLists"}),Mo=E({...Y,setup(oo){const v=Z(),d=F(!1),l=z({admin_id:"",admin_name:"",url:"",create_time:"",start_time:"",end_time:""}),C=F([]),D=_=>{C.value=_.map(({id:t})=>t)},{dictData:g}=K(""),{pager:n,getLists:m,resetParams:V,resetPage:h}=q({fetchFun:O,params:l});return m(),(_,t)=>{const s=L,i=U,k=M,c=I,A=N,f=R,r=P,x=S,T=j,y=$;return p(),G("div",null,[o(f,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[o(A,{class:"mb-[-16px]",model:e(l),inline:""},{default:u(()=>[o(i,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).admin_id,"onUpdate:modelValue":t[0]||(t[0]=a=>e(l).admin_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458ID"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).admin_name,"onUpdate:modelValue":t[1]||(t[1]=a=>e(l).admin_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).url,"onUpdate:modelValue":t[2]||(t[2]=a=>e(l).url=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BBF\u95EE\u94FE\u63A5"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time"},{default:u(()=>[o(k,{startTime:e(l).start_time,"onUpdate:startTime":t[3]||(t[3]=a=>e(l).start_time=a),endTime:e(l).end_time,"onUpdate:endTime":t[4]||(t[4]=a=>e(l).end_time=a)},null,8,["startTime","endTime"])]),_:1}),o(i,null,{default:u(()=>[o(c,{type:"primary",onClick:e(h)},{default:u(()=>[w("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(c,{onClick:e(V)},{default:u(()=>[w("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),H((p(),B(f,{class:"!border-none",shadow:"never"},{default:u(()=>[b("div",null,[o(x,{data:e(n).lists,onSelectionChange:D},{default:u(()=>[o(r,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name","show-overflow-tooltip":""}),o(r,{label:"\u64CD\u4F5C\u540D\u79F0",prop:"action","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u65B9\u5F0F",prop:"type","show-overflow-tooltip":""}),o(r,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u6570\u636E",prop:"params","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u7ED3\u679C",prop:"result","show-overflow-tooltip":""}),o(r,{label:"ip\u5730\u5740",prop:"ip","show-overflow-tooltip":""})]),_:1},8,["data"])]),b("div",X,[o(T,{modelValue:e(n),"onUpdate:modelValue":t[5]||(t[5]=a=>J(n)?n.value=a:null),onChange:e(m)},null,8,["modelValue","onChange"])])]),_:1})),[[y,e(n).loading]]),e(d)?(p(),B(Q,{key:0,ref_key:"editRef",ref:v,"dict-data":e(g),onSuccess:e(m),onClose:t[6]||(t[6]=a=>d.value=!1)},null,8,["dict-data","onSuccess"])):W("",!0)])}}});export{Mo as default}; +import{C as L,D as U,w as I,F as N,L as R,M as P,N as S,O as $}from"./element-plus.5a7ba693.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.efb70876.js";import{u as q}from"./usePaging.6a6670f9.js";import{u as K}from"./useDictOptions.a3f298d7.js";import{d as O}from"./log.65f71b2b.js";import"./lodash.60201f64.js";import"./index.5c2d321b.js";import{_ as Q}from"./edit.vue_vue_type_script_setup_true_name_logEdit_lang.2a4c3013.js";import{d as E,s as Z,r as F,Z as z,o as p,c as G,U as o,L as u,u as e,R as w,M as H,K as B,a as b,j as J,Q as W}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.b110836f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const X={class:"flex mt-4 justify-end"},Y=E({name:"logLists"}),Mo=E({...Y,setup(oo){const v=Z(),d=F(!1),l=z({admin_id:"",admin_name:"",url:"",create_time:"",start_time:"",end_time:""}),C=F([]),D=_=>{C.value=_.map(({id:t})=>t)},{dictData:g}=K(""),{pager:n,getLists:m,resetParams:V,resetPage:h}=q({fetchFun:O,params:l});return m(),(_,t)=>{const s=L,i=U,k=M,c=I,A=N,f=R,r=P,x=S,T=j,y=$;return p(),G("div",null,[o(f,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[o(A,{class:"mb-[-16px]",model:e(l),inline:""},{default:u(()=>[o(i,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).admin_id,"onUpdate:modelValue":t[0]||(t[0]=a=>e(l).admin_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458ID"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).admin_name,"onUpdate:modelValue":t[1]||(t[1]=a=>e(l).admin_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).url,"onUpdate:modelValue":t[2]||(t[2]=a=>e(l).url=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BBF\u95EE\u94FE\u63A5"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time"},{default:u(()=>[o(k,{startTime:e(l).start_time,"onUpdate:startTime":t[3]||(t[3]=a=>e(l).start_time=a),endTime:e(l).end_time,"onUpdate:endTime":t[4]||(t[4]=a=>e(l).end_time=a)},null,8,["startTime","endTime"])]),_:1}),o(i,null,{default:u(()=>[o(c,{type:"primary",onClick:e(h)},{default:u(()=>[w("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(c,{onClick:e(V)},{default:u(()=>[w("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),H((p(),B(f,{class:"!border-none",shadow:"never"},{default:u(()=>[b("div",null,[o(x,{data:e(n).lists,onSelectionChange:D},{default:u(()=>[o(r,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name","show-overflow-tooltip":""}),o(r,{label:"\u64CD\u4F5C\u540D\u79F0",prop:"action","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u65B9\u5F0F",prop:"type","show-overflow-tooltip":""}),o(r,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u6570\u636E",prop:"params","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u7ED3\u679C",prop:"result","show-overflow-tooltip":""}),o(r,{label:"ip\u5730\u5740",prop:"ip","show-overflow-tooltip":""})]),_:1},8,["data"])]),b("div",X,[o(T,{modelValue:e(n),"onUpdate:modelValue":t[5]||(t[5]=a=>J(n)?n.value=a:null),onChange:e(m)},null,8,["modelValue","onChange"])])]),_:1})),[[y,e(n).loading]]),e(d)?(p(),B(Q,{key:0,ref_key:"editRef",ref:v,"dict-data":e(g),onSuccess:e(m),onClose:t[6]||(t[6]=a=>d.value=!1)},null,8,["dict-data","onSuccess"])):W("",!0)])}}});export{Mo as default}; diff --git a/dist/admin/assets/index.33bb3ced.js b/dist/admin/assets/index.33bb3ced.js deleted file mode 100644 index 91816eacf..000000000 --- a/dist/admin/assets/index.33bb3ced.js +++ /dev/null @@ -1 +0,0 @@ -import{C as A,D as I,w as M,F as q,L as K,M as O,N as Q,O as Z}from"./element-plus.5a7ba693.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{f as G,b as H}from"./index.8f2bbb36.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.61b0b5e7.js";import{e as X,a as Y}from"./user_label.146d4727.js";import"./lodash.60201f64.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_userLabelEdit_lang.0f590b03.js";import{d as D,s as te,r as F,Z as ae,ap as oe,o as s,c as le,U as e,L as t,u as a,R as r,M as p,K as u,a as g,j as ne,Q as se,n as y}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.57c062db.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ie={class:"mt-4"},re={class:"flex mt-4 justify-end"},ue=D({name:"userLabelLists"}),He=D({...ue,setup(me){const d=te(),c=F(!1),_=ae({label_name:""}),k=F([]),B=l=>{k.value=l.map(({label_id:o})=>o)},{dictData:V}=W(""),{pager:m,getLists:f,resetParams:x,resetPage:L}=J({fetchFun:Y,params:_}),$=async()=>{var l;c.value=!0,await y(),(l=d.value)==null||l.open("add")},N=async l=>{var o,b;c.value=!0,await y(),(o=d.value)==null||o.open("edit"),(b=d.value)==null||b.setFormData(l)},E=async l=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({label_id:l}),f()};return f(),(l,o)=>{const b=A,h=I,i=M,P=q,w=K,R=H,v=O,U=Q,S=z,C=oe("perms"),T=Z;return s(),le("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:a(_),inline:""},{default:t(()=>[e(h,{label:"\u6807\u7B7E\u540D\u79F0",prop:"label_name"},{default:t(()=>[e(b,{class:"w-[280px]",modelValue:a(_).label_name,"onUpdate:modelValue":o[0]||(o[0]=n=>a(_).label_name=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(h,null,{default:t(()=>[e(i,{type:"primary",onClick:a(L)},{default:t(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(i,{onClick:a(x)},{default:t(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),p((s(),u(w,{class:"!border-none",shadow:"never"},{default:t(()=>[p((s(),u(i,{type:"primary",onClick:$},{icon:t(()=>[e(R,{name:"el-icon-Plus"})]),default:t(()=>[r(" \u65B0\u589E ")]),_:1})),[[C,["user_label.user_label/add"]]]),p((s(),u(i,{disabled:!a(k).length,onClick:o[1]||(o[1]=n=>E(a(k)))},{default:t(()=>[r(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["user_label.user_label/delete"]]]),g("div",ie,[e(U,{data:a(m).lists,onSelectionChange:B},{default:t(()=>[e(v,{type:"selection",width:"55"}),e(v,{label:"",prop:"label_id","show-overflow-tooltip":""}),e(v,{label:"\u6807\u7B7E\u540D\u79F0",prop:"label_name","show-overflow-tooltip":""}),e(v,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:n})=>[p((s(),u(i,{type:"primary",link:"",onClick:j=>N(n)},{default:t(()=>[r(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["user_label.user_label/edit"]]]),p((s(),u(i,{type:"danger",link:"",onClick:j=>E(n.label_id)},{default:t(()=>[r(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["user_label.user_label/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",re,[e(S,{modelValue:a(m),"onUpdate:modelValue":o[2]||(o[2]=n=>ne(m)?m.value=n:null),onChange:a(f)},null,8,["modelValue","onChange"])])]),_:1})),[[T,a(m).loading]]),a(c)?(s(),u(ee,{key:0,ref_key:"editRef",ref:d,"dict-data":a(V),onSuccess:a(f),onClose:o[3]||(o[3]=n=>c.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{He as default}; diff --git a/dist/admin/assets/index.411dfcda.js b/dist/admin/assets/index.411dfcda.js new file mode 100644 index 000000000..bf4ecba74 --- /dev/null +++ b/dist/admin/assets/index.411dfcda.js @@ -0,0 +1 @@ +import{C as j,D as A,w as M,F as q,L as K,M as O,N as Q,O as Z}from"./element-plus.5a7ba693.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{f as G,b as H}from"./index.5c2d321b.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.a3f298d7.js";import{e as X,a as Y}from"./user_label.b5f9a88d.js";import"./lodash.60201f64.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_userLabelEdit_lang.2ae1d91f.js";import{d as y,s as te,r as g,Z as ae,ap as oe,o as s,c as le,U as e,L as t,u as a,R as r,M as d,K as u,a as w,j as ne,Q as se,n as D}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.b110836f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ie={class:"mt-4"},re={class:"flex mt-4 justify-end"},ue=y({name:"userLabelLists"}),He=y({...ue,setup(me){const p=te(),c=g(!1),_=ae({label_name:""}),k=g([]),B=l=>{k.value=l.map(({label_id:o})=>o)},{dictData:V}=W(""),{pager:m,getLists:f,resetParams:x,resetPage:L}=J({fetchFun:Y,params:_}),$=async()=>{var l;c.value=!0,await D(),(l=p.value)==null||l.open("add")},N=async l=>{var o,b;c.value=!0,await D(),(o=p.value)==null||o.open("edit"),(b=p.value)==null||b.setFormData(l)},E=async l=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({label_id:l}),f()};return f(),(l,o)=>{const b=j,h=A,i=M,P=q,F=K,R=H,v=O,U=Q,S=z,C=oe("perms"),T=Z;return s(),le("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:a(_),inline:""},{default:t(()=>[e(h,{label:"\u6807\u7B7E\u540D\u79F0",prop:"label_name"},{default:t(()=>[e(b,{class:"w-[280px]",modelValue:a(_).label_name,"onUpdate:modelValue":o[0]||(o[0]=n=>a(_).label_name=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(h,null,{default:t(()=>[e(i,{type:"primary",onClick:a(L)},{default:t(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(i,{onClick:a(x)},{default:t(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((s(),u(F,{class:"!border-none",shadow:"never"},{default:t(()=>[d((s(),u(i,{type:"primary",onClick:$},{icon:t(()=>[e(R,{name:"el-icon-Plus"})]),default:t(()=>[r(" \u65B0\u589E ")]),_:1})),[[C,["user_label.user_label/add"]]]),d((s(),u(i,{disabled:!a(k).length,onClick:o[1]||(o[1]=n=>E(a(k)))},{default:t(()=>[r(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["user_label.user_label/delete"]]]),w("div",ie,[e(U,{data:a(m).lists,onSelectionChange:B},{default:t(()=>[e(v,{type:"selection",width:"55"}),e(v,{label:"ID",prop:"label_id",width:"100"}),e(v,{label:"\u6807\u7B7E\u540D\u79F0",prop:"label_name","show-overflow-tooltip":""}),e(v,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:n})=>[d((s(),u(i,{type:"primary",link:"",onClick:I=>N(n)},{default:t(()=>[r(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["user_label.user_label/edit"]]]),d((s(),u(i,{type:"danger",link:"",onClick:I=>E(n.label_id)},{default:t(()=>[r(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["user_label.user_label/delete"]]])]),_:1})]),_:1},8,["data"])]),w("div",re,[e(S,{modelValue:a(m),"onUpdate:modelValue":o[2]||(o[2]=n=>ne(m)?m.value=n:null),onChange:a(f)},null,8,["modelValue","onChange"])])]),_:1})),[[T,a(m).loading]]),a(c)?(s(),u(ee,{key:0,ref_key:"editRef",ref:p,"dict-data":a(V),onSuccess:a(f),onClose:o[3]||(o[3]=n=>c.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{He as default}; diff --git a/build/admin/assets/index.9c7dd168.js b/dist/admin/assets/index.41afa54e.js similarity index 96% rename from build/admin/assets/index.9c7dd168.js rename to dist/admin/assets/index.41afa54e.js index f894e870e..d729a6f9d 100644 --- a/build/admin/assets/index.9c7dd168.js +++ b/dist/admin/assets/index.41afa54e.js @@ -1 +1 @@ -import{_ as Y,w as M,L as R}from"./element-plus.5a7ba693.js";import{_ as k}from"./index.a34f0b70.js";import{d as P,e as U}from"./workbench.870977d5.js";import{h as c}from"./moment.40bc58bf.js";import{B as V}from"./vue-echarts.01ad0ec2.js";import{d as w,Z as v,r as x,i as L,o as _,c as y,U as o,L as p,a as n,u as i,j as C,R as B,T as N,a9 as T,a0 as S,S as E}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.0f3999b9.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const j={class:"workbench"},z={class:"mb-6 flex justify-between items-center"},G=n("span",{class:"text-2xl"},"\u7528\u6237\u6982\u51B5",-1),O={class:"flex items-center text-sm"},Z=n("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),q={class:"flex flex-wrap"},H={class:"mr-2"},I={class:"text-info"},J={class:"text-6xl"},K={class:"mb-6 flex justify-between items-center"},Q=n("span",{class:"text-2xl"},"\u7528\u6237\u8D8B\u52BF",-1),W={class:"flex items-center text-sm"},X=n("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),$=w({name:"statistics_user"}),Ne=w({...$,setup(ee){const F=[{text:"\u8FD1\u4E00\u5468",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,t]}},{text:"\u672C\u6708",value:()=>{const t=new Date,e=new Date;return e.setDate(1),t.setMonth(t.getMonth()+1),t.setDate(0),[e,t]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,t]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,t]}}],l=v({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u6570\u91CF",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),A=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],D=v([{name:"\u8BBF\u5BA2\u6570",type:"people",icon:"RectangleCopy",num:0,percent:0},{name:"\u6D4F\u89C8\u91CF",type:"browse",icon:"RectangleCopy49",num:0,percent:0},{name:"\u65B0\u589E\u7528\u6237\u6570",type:"newUser",icon:"RectangleCopy53",num:0,percent:0},{name:"\u6210\u4EA4\u7528\u6237\u6570",type:"payPeople",icon:"RectangleCopy5",num:0,percent:0},{name:"\u8BBF\u5BA2-\u652F\u4ED8\u8F6C\u6362\u7387",type:"payPercent",icon:"RectangleCopy4",num:0,percent:0},{name:"\u6FC0\u6D3B\u4ED8\u8D39\u4F1A\u5458\u6570",type:"payUser",icon:"RectangleCopy7",num:0,percent:0},{name:"\u5145\u503C\u7528\u6237\u6570",type:"rechargePeople",icon:"RectangleCopy59",num:0,percent:0},{name:"\u5BA2\u5355\u4EF7",type:"payPrice",icon:"RectangleCopy15",num:0,percent:0},{name:"\u7D2F\u8BA1\u7528\u6237",type:"cumulativeUser",icon:"RectangleCopy54",num:0,percent:0},{name:"\u7D2F\u8BA1\u4ED8\u8D39\u4F1A\u5458\u6570",type:"cumulativePayUser",icon:"RectangleCopy7",num:0,percent:0},{name:"\u7D2F\u8BA1\u5145\u503C\u7528\u6237\u6570",type:"cumulativeRechargePeople",icon:"RectangleCopy6",num:0,percent:0},{name:"\u7D2F\u8BA1\u6210\u4EA4\u7528\u6237\u6570",type:"cumulativePayPeople",icon:"RectangleCopy9",num:0,percent:0}]),u=x([new Date,new Date]),s=x([]),m=()=>{let t="";u.value[0]&&u.value[1]&&(t=c(u.value[0]).format("YYYY/MM/DD")+"-"+c(u.value[1]).format("YYYY/MM/DD")),P({date:t}).then(e=>{D.forEach(a=>{a.num=e[a.type].num,a.percent=e[a.type].percent})})},d=()=>{let t="";s.value[0]&&s.value[1]&&(t=c(s.value[0]).format("YYYY/MM/DD")+"-"+c(s.value[1]).format("YYYY/MM/DD")),U({date:t}).then(e=>{l.xAxis.data=[],l.series=[],l.legend.data=e.series.map(a=>a.name),l.xAxis.data=e.xAxis,l.series=e.series.map(a=>({type:"line",smooth:!0,data:a.value,name:a.name}))})};return L(()=>{m(),d()}),(t,e)=>{const a=Y,h=M,b=k,f=R;return _(),y("div",j,[o(f,{shadow:"never",class:"!border-none"},{default:p(()=>[n("div",z,[G,n("div",O,[Z,o(a,{modelValue:i(u),"onUpdate:modelValue":e[0]||(e[0]=r=>C(u)?u.value=r:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:F,onChange:m},null,8,["modelValue"]),o(h,{type:"primary",class:"ml-4",onClick:m},{default:p(()=>[B("\u67E5\u8BE2")]),_:1})])]),n("div",q,[(_(!0),y(N,null,T(i(D),(r,g)=>(_(),y("div",{class:"w-1/5 flex mb-6",key:g},[n("div",H,[n("div",{class:"rounded-full p-2",style:S({"background-color":A[g%8]})},[o(b,{iconName:r.icon,white:"",className:"text-6xl"},null,8,["iconName"])],4)]),n("div",null,[n("div",I,E(r.name),1),n("div",J,E(r.num),1)])]))),128))])]),_:1}),o(f,{shadow:"never",class:"mt-4 !border-none"},{default:p(()=>[n("div",null,[n("div",K,[Q,n("div",W,[X,o(a,{modelValue:i(s),"onUpdate:modelValue":e[1]||(e[1]=r=>C(s)?s.value=r:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:F,onChange:d},null,8,["modelValue"]),o(h,{type:"primary",class:"ml-4",onClick:d},{default:p(()=>[B("\u67E5\u8BE2")]),_:1})])]),o(i(V),{style:{height:"400px"},option:i(l),autoresize:!0},null,8,["option"])])]),_:1})])}}});export{Ne as default}; +import{_ as Y,w as M,L as R}from"./element-plus.5a7ba693.js";import{_ as k}from"./index.1f2b82ca.js";import{d as P,e as U}from"./workbench.204abcc5.js";import{h as c}from"./moment.40bc58bf.js";import{B as V}from"./vue-echarts.01ad0ec2.js";import{d as w,Z as v,r as x,i as L,o as _,c as y,U as o,L as p,a as n,u as i,j as C,R as B,T as N,a9 as T,a0 as S,S as E}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.5c2d321b.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const j={class:"workbench"},z={class:"mb-6 flex justify-between items-center"},G=n("span",{class:"text-2xl"},"\u7528\u6237\u6982\u51B5",-1),O={class:"flex items-center text-sm"},Z=n("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),q={class:"flex flex-wrap"},H={class:"mr-2"},I={class:"text-info"},J={class:"text-6xl"},K={class:"mb-6 flex justify-between items-center"},Q=n("span",{class:"text-2xl"},"\u7528\u6237\u8D8B\u52BF",-1),W={class:"flex items-center text-sm"},X=n("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),$=w({name:"statistics_user"}),Ne=w({...$,setup(ee){const F=[{text:"\u8FD1\u4E00\u5468",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,t]}},{text:"\u672C\u6708",value:()=>{const t=new Date,e=new Date;return e.setDate(1),t.setMonth(t.getMonth()+1),t.setDate(0),[e,t]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,t]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,t]}}],l=v({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u6570\u91CF",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),A=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],D=v([{name:"\u8BBF\u5BA2\u6570",type:"people",icon:"RectangleCopy",num:0,percent:0},{name:"\u6D4F\u89C8\u91CF",type:"browse",icon:"RectangleCopy49",num:0,percent:0},{name:"\u65B0\u589E\u7528\u6237\u6570",type:"newUser",icon:"RectangleCopy53",num:0,percent:0},{name:"\u6210\u4EA4\u7528\u6237\u6570",type:"payPeople",icon:"RectangleCopy5",num:0,percent:0},{name:"\u8BBF\u5BA2-\u652F\u4ED8\u8F6C\u6362\u7387",type:"payPercent",icon:"RectangleCopy4",num:0,percent:0},{name:"\u6FC0\u6D3B\u4ED8\u8D39\u4F1A\u5458\u6570",type:"payUser",icon:"RectangleCopy7",num:0,percent:0},{name:"\u5145\u503C\u7528\u6237\u6570",type:"rechargePeople",icon:"RectangleCopy59",num:0,percent:0},{name:"\u5BA2\u5355\u4EF7",type:"payPrice",icon:"RectangleCopy15",num:0,percent:0},{name:"\u7D2F\u8BA1\u7528\u6237",type:"cumulativeUser",icon:"RectangleCopy54",num:0,percent:0},{name:"\u7D2F\u8BA1\u4ED8\u8D39\u4F1A\u5458\u6570",type:"cumulativePayUser",icon:"RectangleCopy7",num:0,percent:0},{name:"\u7D2F\u8BA1\u5145\u503C\u7528\u6237\u6570",type:"cumulativeRechargePeople",icon:"RectangleCopy6",num:0,percent:0},{name:"\u7D2F\u8BA1\u6210\u4EA4\u7528\u6237\u6570",type:"cumulativePayPeople",icon:"RectangleCopy9",num:0,percent:0}]),u=x([new Date,new Date]),s=x([]),m=()=>{let t="";u.value[0]&&u.value[1]&&(t=c(u.value[0]).format("YYYY/MM/DD")+"-"+c(u.value[1]).format("YYYY/MM/DD")),P({date:t}).then(e=>{D.forEach(a=>{a.num=e[a.type].num,a.percent=e[a.type].percent})})},d=()=>{let t="";s.value[0]&&s.value[1]&&(t=c(s.value[0]).format("YYYY/MM/DD")+"-"+c(s.value[1]).format("YYYY/MM/DD")),U({date:t}).then(e=>{l.xAxis.data=[],l.series=[],l.legend.data=e.series.map(a=>a.name),l.xAxis.data=e.xAxis,l.series=e.series.map(a=>({type:"line",smooth:!0,data:a.value,name:a.name}))})};return L(()=>{m(),d()}),(t,e)=>{const a=Y,h=M,b=k,f=R;return _(),y("div",j,[o(f,{shadow:"never",class:"!border-none"},{default:p(()=>[n("div",z,[G,n("div",O,[Z,o(a,{modelValue:i(u),"onUpdate:modelValue":e[0]||(e[0]=r=>C(u)?u.value=r:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:F,onChange:m},null,8,["modelValue"]),o(h,{type:"primary",class:"ml-4",onClick:m},{default:p(()=>[B("\u67E5\u8BE2")]),_:1})])]),n("div",q,[(_(!0),y(N,null,T(i(D),(r,g)=>(_(),y("div",{class:"w-1/5 flex mb-6",key:g},[n("div",H,[n("div",{class:"rounded-full p-2",style:S({"background-color":A[g%8]})},[o(b,{iconName:r.icon,white:"",className:"text-6xl"},null,8,["iconName"])],4)]),n("div",null,[n("div",I,E(r.name),1),n("div",J,E(r.num),1)])]))),128))])]),_:1}),o(f,{shadow:"never",class:"mt-4 !border-none"},{default:p(()=>[n("div",null,[n("div",K,[Q,n("div",W,[X,o(a,{modelValue:i(s),"onUpdate:modelValue":e[1]||(e[1]=r=>C(s)?s.value=r:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:F,onChange:d},null,8,["modelValue"]),o(h,{type:"primary",class:"ml-4",onClick:d},{default:p(()=>[B("\u67E5\u8BE2")]),_:1})])]),o(i(V),{style:{height:"400px"},option:i(l),autoresize:!0},null,8,["option"])])]),_:1})])}}});export{Ne as default}; diff --git a/build/admin/assets/index.259d479e.js b/dist/admin/assets/index.47c8a0db.js similarity index 88% rename from build/admin/assets/index.259d479e.js rename to dist/admin/assets/index.47c8a0db.js index 8d4eca46a..a1ed328fb 100644 --- a/build/admin/assets/index.259d479e.js +++ b/dist/admin/assets/index.47c8a0db.js @@ -1 +1 @@ -import{x as c,y as u,L as f}from"./element-plus.5a7ba693.js";import{_ as y}from"./index.34ce7228.js";import{d as i,r as x,o as r,c as m,U as t,L as a,u as b,j as v,T as g,a9 as E}from"./@vue.18505fe0.js";import{d as C}from"./index.0f3999b9.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import"./index.46f20ae4.js";import"./index.20e08dec.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./usePaging.6a6670f9.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const T={class:"material-index"},V=i({name:"material"}),k=i({...V,setup(z){const n=[{type:"image",name:"\u56FE\u7247"},{type:"video",name:"\u89C6\u9891"},{type:"file",name:"\u6587\u4EF6"}],o=x("image");return(F,p)=>{const s=y,l=c,_=u,d=f;return r(),m("div",T,[t(d,{class:"!border-none",shadow:"never"},{default:a(()=>[t(_,{modelValue:b(o),"onUpdate:modelValue":p[0]||(p[0]=e=>v(o)?o.value=e:null)},{default:a(()=>[(r(),m(g,null,E(n,e=>t(l,{label:e.name,name:e.type,index:e.type,key:e.type,lazy:""},{default:a(()=>[t(s,{type:e.type,mode:"page","file-size":"120px",limit:-1,"page-size":20},null,8,["type"])]),_:2},1032,["label","name","index"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});const _e=C(k,[["__scopeId","data-v-9285e06a"]]);export{_e as default}; +import{x as c,y as u,L as f}from"./element-plus.5a7ba693.js";import{_ as y}from"./index.4a2655b0.js";import{d as i,r as x,o as r,c as m,U as t,L as a,u as b,j as v,T as g,a9 as E}from"./@vue.18505fe0.js";import{d as C}from"./index.5c2d321b.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import"./index.0b1a8ccb.js";import"./index.b110836f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./usePaging.6a6670f9.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const T={class:"material-index"},V=i({name:"material"}),k=i({...V,setup(z){const n=[{type:"image",name:"\u56FE\u7247"},{type:"video",name:"\u89C6\u9891"},{type:"file",name:"\u6587\u4EF6"}],o=x("image");return(F,p)=>{const s=y,l=c,_=u,d=f;return r(),m("div",T,[t(d,{class:"!border-none",shadow:"never"},{default:a(()=>[t(_,{modelValue:b(o),"onUpdate:modelValue":p[0]||(p[0]=e=>v(o)?o.value=e:null)},{default:a(()=>[(r(),m(g,null,E(n,e=>t(l,{label:e.name,name:e.type,index:e.type,key:e.type,lazy:""},{default:a(()=>[t(s,{type:e.type,mode:"page","file-size":"120px",limit:-1,"page-size":20},null,8,["type"])]),_:2},1032,["label","name","index"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});const _e=C(k,[["__scopeId","data-v-9285e06a"]]);export{_e as default}; diff --git a/dist/admin/assets/index.12121147.js b/dist/admin/assets/index.4a2655b0.js similarity index 99% rename from dist/admin/assets/index.12121147.js rename to dist/admin/assets/index.4a2655b0.js index 8d80da6d4..e80fd74c0 100644 --- a/dist/admin/assets/index.12121147.js +++ b/dist/admin/assets/index.4a2655b0.js @@ -1 +1 @@ -import{U as Ze,V as Oe,I as $e,W as Qe,J as ze,K as Re,C as Ie,w as Le,k as Je,b as Xe,X as He,p as et,q as tt,r as lt,Y as nt,E as at,B as st,M as ot,Z as it,N as ut,O as dt,a as rt}from"./element-plus.5a7ba693.js";import{_ as ct}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{_ as pt}from"./index.ca6b520e.js";import{a as mt,h as re,R as xe,f as Z,d as me,r as j,b as Pe,i as ft}from"./index.8f2bbb36.js";import{P as vt}from"./index.57c062db.js";import{d as Q,s as ae,r as A,b as ne,t as _t,o,c,U as n,L as a,H as fe,K as B,a as s,T,a9 as G,S as te,Q as g,w as O,a3 as Y,u as t,j as U,R as h,Z as ht,a0 as Ue,M as le,V as pe,n as Be,_ as gt,i as yt,aa as Ct,O as De,D as kt,bl as bt,bk as Et}from"./@vue.18505fe0.js";import{u as wt}from"./@vueuse.fbc6a400.js";import{u as Ft}from"./usePaging.6a6670f9.js";const At=Q({components:{},props:{type:{type:String,default:"image"},multiple:{type:Boolean,default:!0},limit:{type:Number,default:10},data:{type:Object,default:()=>({})},showProgress:{type:Boolean,default:!1}},emits:["change","error","success"],setup(e,{emit:y}){const C=mt(),m=ae(),f=A(`${re.baseUrl}${re.urlPrefix}/upload/${e.type}`),E=ne(()=>({token:C.token,version:re.version})),d=A(!1),u=A([]),w=(b,S,$)=>{d.value=!0,u.value=_t($)},i=(b,S,$)=>{var N;$.every(L=>L.status=="success")&&((N=m.value)==null||N.clearFiles(),d.value=!1),y("change",S),b.code==xe.SUCCESS&&y("success",b),b.code==xe.FAIL&&b.msg&&Z.msgError(b.msg)},k=(b,S)=>{var $;Z.msgError(`${S.name}\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`),($=m.value)==null||$.abort(S),d.value=!1,y("change",S),y("error",S)},r=()=>{Z.msgError(`\u8D85\u51FA\u4E0A\u4F20\u4E0A\u9650${e.limit}\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20`)},R=()=>{var b;(b=m.value)==null||b.clearFiles(),d.value=!1},M=ne(()=>{switch(e.type){case"image":return".jpg,.png,.gif,.jpeg";case"video":return".wmv,.avi,.mpg,.mpeg,.3gp,.mov,.mp4,.flv,.rmvb,.mkv";default:return"*"}});return{uploadRefs:m,action:f,headers:E,visible:d,fileList:u,getAccept:M,handleProgress:w,handleSuccess:i,handleError:k,handleExceed:r,handleClose:R}}}),St={class:"upload"},Vt={class:"file-list p-4"},xt={class:"flex-1"};function Bt(e,y,C,m,f,E){const d=Ze,u=Oe,w=$e;return o(),c("div",St,[n(d,{ref:"uploadRefs",action:e.action,multiple:e.multiple,limit:e.limit,"show-file-list":!1,headers:e.headers,data:e.data,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-exceed":e.handleExceed,"on-error":e.handleError,accept:e.getAccept},{default:a(()=>[fe(e.$slots,"default")]),_:3},8,["action","multiple","limit","headers","data","on-progress","on-success","on-exceed","on-error","accept"]),e.showProgress&&e.fileList.length?(o(),B(w,{key:0,modelValue:e.visible,"onUpdate:modelValue":y[0]||(y[0]=i=>e.visible=i),title:"\u4E0A\u4F20\u8FDB\u5EA6","close-on-click-modal":!1,width:"500px",modal:!1,onClose:e.handleClose},{default:a(()=>[s("div",Vt,[(o(!0),c(T,null,G(e.fileList,(i,k)=>(o(),c("div",{key:k,class:"mb-5"},[s("div",null,te(i.name),1),s("div",xt,[n(u,{percentage:parseInt(i.percentage)},null,8,["percentage"])])]))),128))])]),_:1},8,["modelValue","onClose"])):g("",!0)])}const Dt=me(At,[["render",Bt]]),$t={class:"popover-input__input mr-[10px] flex-1"},zt={class:"popover-input__btns flex-none"},Rt=Q({__name:"index",props:{value:{type:String},type:{type:String,default:"text"},width:{type:[Number,String],default:"300px"},placeholder:String,disabled:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},size:{type:String,default:"default"},limit:{type:Number,default:200},showLimit:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0}},emits:["confirm"],setup(e,{emit:y}){const C=e,m=y,f=A(!1),E=A(!1),d=A(),u=()=>{i(),m("confirm",d.value)},w=()=>{C.disabled||(f.value=!0)},i=()=>{f.value=!1};return O(()=>C.value,k=>{d.value=k},{immediate:!0}),wt(document.documentElement,"click",()=>{E.value||i()}),(k,r)=>{const R=ze,M=Re,b=Ie,S=Le,$=Qe;return o(),c("div",{onMouseenter:r[4]||(r[4]=F=>E.value=!0),onMouseleave:r[5]||(r[5]=F=>E.value=!1)},[n($,{placement:"top",visible:t(f),"onUpdate:visible":r[3]||(r[3]=F=>U(f)?f.value=F:null),width:e.width,trigger:"contextmenu",class:"popover-input",teleported:e.teleported,persistent:!1,"popper-class":"!p-0"},{reference:a(()=>[s("div",{class:"inline",onClick:Y(w,["stop"])},[fe(k.$slots,"default")])]),default:a(()=>[s("div",{class:"flex p-3",onClick:r[2]||(r[2]=Y(()=>{},["stop"]))},[s("div",$t,[e.type=="select"?(o(),B(M,{key:0,class:"flex-1",size:e.size,modelValue:t(d),"onUpdate:modelValue":r[0]||(r[0]=F=>U(d)?d.value=F:null),teleported:e.teleported},{default:a(()=>[(o(!0),c(T,null,G(e.options,F=>(o(),B(R,{key:F.value,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:1},8,["size","modelValue","teleported"])):(o(),B(b,{key:1,modelValue:t(d),"onUpdate:modelValue":r[1]||(r[1]=F=>U(d)?d.value=F:null),modelModifiers:{trim:!0},maxlength:e.limit,"show-word-limit":e.showLimit,type:e.type,size:e.size,clearable:"",placeholder:e.placeholder},null,8,["modelValue","maxlength","show-word-limit","type","size","placeholder"]))]),s("div",zt,[n(S,{link:"",onClick:i},{default:a(()=>[h("\u53D6\u6D88")]),_:1}),n(S,{type:"primary",size:e.size,onClick:u},{default:a(()=>[h("\u786E\u5B9A")]),_:1},8,["size"])])])]),_:3},8,["visible","width","teleported"])],32)}}}),It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAACJElEQVRYR+2YMWsUURSFz3m7s+nskjUIQSutbMRi7WzUVjSadMHCbVLkByjmLygaCVYWRqMEUhkFS9Gg0cJfYCPZjYUQFbPs+I7c2R1Q2ZjZfRNYYS4MAzPv3vnmvDvL3kMA2Hl5/CjLI9ckf4ZwY3Zt15C+gfwIao3So0rt3XsJtPUk9M/cAW6y9ap2DIyfAjgCwANwGeoYiEFtk/5e5CvXeer1D2neATcGgiTZM4+t9RNLEKcBtAFEGeBsiRWzl7EoSXo+8rV9gWc/fDc1B1VSEoEnDpj0KTB33tS26DGaEezvZQZpRxmODyoT5+vwBwS3zeTcT4yjTdZNJEiPSykk1bjZX6HeD/WQJ1zUApgq2w+etcsniBuAVlH9vELOx6Yo1VywgkmTB4X1kEGGhyAtg/Ecq3NNqnknDwVTrNBaactEts88OHs5b8Bw/Tof4M+kr4WrwwhoL9n5uRPWhxWwsxPEl+EGNMacP5I8evCPGgVgqKSFgoWCoQqE5hc9WCgYqkBoftGDeSiYz1/+UJLe+foftvh2A2B1fwQIrapkaFoDcK4PVyH0qVnyU4fjGdW4NQ2WlgDE5hLkMoJmQdh9zW9Dk59K5lhtLjyE01TX/jDILP5MGEbvbFPOJroIXvc5PjvTBbx7GM4vAjjd9WdSc2g/IPaqaTv5Aq58haP1TSb2Au20GGErvgTxIqiTAA7tVSnn+2Z9vAXdCsa4bD6Nsf0C/gYA5PMzcW0AAAAASUVORK5CYII=";function Lt(e){return j.post({url:"/file/addCate",params:e})}function Pt(e){return j.post({url:"/file/editCate",params:e})}function Ut(e){return j.post({url:"/file/delCate",params:e})}function Tt(e){return j.get({url:"/file/listCate",params:e})}function jt(e){return j.get({url:"/file/lists",params:e},{ignoreCancelToken:!0,isOpenRetry:!1})}function Mt(e){return j.post({url:"/file/delete",params:e})}function Nt(e){return j.post({url:"/file/move",params:e})}function Wt(e){return j.post({url:"/file/rename",params:e})}function Gt(e){const y=ae(),C=A([]),m=A(""),f=async()=>{const i=await Tt({page_type:0,type:e}),k=[{name:"\u5168\u90E8",id:""},{name:"\u672A\u5206\u7EC4",id:0}];C.value=i.lists,C.value.unshift(...k),setTimeout(()=>{var r;(r=y.value)==null||r.setCurrentKey(m.value)},0)};return{treeRef:y,cateId:m,cateLists:C,handleAddCate:async i=>{await Lt({type:e,name:i,pid:0}),f()},handleEditCate:async(i,k)=>{await Pt({id:k,name:i}),f()},handleDeleteCate:async i=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ut({id:i}),m.value="",f()},getCateLists:f,handleCatSelect:i=>{m.value=i.id}}}function Yt(e,y,C,m){const f=ae(),E=A("normal"),d=A(0),u=A([]),w=A(!1),i=A(!1),k=ht({name:"",type:y,cid:e}),{pager:r,getLists:R,resetPage:M}=Ft({fetchFun:jt,params:k,firstLoading:!0,size:m}),b=()=>{R()},S=()=>{M()},$=p=>!!u.value.find(_=>_.id==p),F=async p=>{await Z.confirm("\u786E\u8BA4\u5220\u9664\u540E\uFF0C\u672C\u5730\u6216\u4E91\u5B58\u50A8\u6587\u4EF6\u4E5F\u5C06\u540C\u6B65\u5220\u9664\uFF0C\u5982\u6587\u4EF6\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01");const _=p||u.value.map(W=>W.id);await Mt({ids:_}),b(),I()},N=async()=>{const p=u.value.map(_=>_.id);await Nt({ids:p,cid:d.value}),d.value=0,b(),I()},L=p=>{const _=u.value.findIndex(W=>W.id==p.id);if(_!=-1){u.value.splice(_,1);return}if(u.value.length==C.value){if(C.value==1){u.value=[],u.value.push(p);return}Je.warning("\u5DF2\u8FBE\u5230\u9009\u62E9\u4E0A\u9650");return}u.value.push(p)},I=()=>{u.value=[]};return{listShowType:E,tableRef:f,moveId:d,pager:r,fileParams:k,select:u,isCheckAll:w,isIndeterminate:i,getFileList:b,refresh:S,batchFileDelete:F,batchFileMove:N,selectFile:L,isSelect:$,clearSelect:I,cancelSelete:p=>{u.value=u.value.filter(_=>_.id!=p)},selectAll:p=>{var _;if(i.value=!1,(_=f.value)==null||_.toggleAllSelection(),p){u.value=[...r.lists];return}I()},handleFileRename:async(p,_)=>{await Wt({id:_,name:p}),b()}}}const qt=Q({props:{uri:{type:String},fileSize:{type:String,default:"100px"},type:{type:String,default:"image"}},emits:["close"]});const Kt=["src"],Zt={key:2,class:"absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%] rounded-full w-5 h-5 flex justify-center items-center bg-[rgba(0,0,0,0.3)]"};function Ot(e,y,C,m,f,E){const d=Xe,u=Pe;return o(),c("div",null,[s("div",{class:"file-item relative",style:Ue({height:e.fileSize,width:e.fileSize})},[e.type=="image"?(o(),B(d,{key:0,class:"image",fit:"contain",src:e.uri,"preview-teleported":!0},null,8,["src"])):e.type=="video"?(o(),c("video",{key:1,class:"video",src:e.uri},null,8,Kt)):g("",!0),e.type=="video"?(o(),c("div",Zt,[n(u,{name:"el-icon-CaretRight",size:18,color:"#fff"})])):g("",!0),fe(e.$slots,"default",{},void 0,!0)],4)])}const ce=me(qt,[["render",Ot],["__scopeId","data-v-1ee7b564"]]),Qt={key:0},Jt={key:1},Xt=Q({__name:"preview",props:{modelValue:{type:Boolean,default:!1},url:{type:String,default:""},type:{type:String,default:"image"}},emits:["update:modelValue"],setup(e,{emit:y}){const C=e,m=y,f=ae(),E=ne({get(){return C.modelValue},set(w){m("update:modelValue",w)}}),d=()=>{m("update:modelValue",!1)},u=A([]);return O(()=>C.modelValue,w=>{w?Be(()=>{var i;u.value=[C.url],(i=f.value)==null||i.play()}):Be(()=>{var i;u.value=[],(i=f.value)==null||i.pause()})}),(w,i)=>{const k=He,r=$e;return le((o(),c("div",null,[e.type=="image"?(o(),c("div",Qt,[t(u).length?(o(),B(k,{key:0,"url-list":t(u),"hide-on-click-modal":"",onClose:d},null,8,["url-list"])):g("",!0)])):g("",!0),e.type=="video"?(o(),c("div",Jt,[n(r,{modelValue:t(E),"onUpdate:modelValue":i[0]||(i[0]=R=>U(E)?E.value=R:null),width:"740px",title:"\u89C6\u9891\u9884\u89C8","before-close":d},null,8,["modelValue"])])):g("",!0)],512)),[[pe,e.modelValue]])}}}),se=e=>(bt("data-v-9cc1892d"),e=e(),Et(),e),Ht={class:"material"},el={class:"material__left"},tl={class:"flex-1 min-h-0"},ll={class:"material-left__content pt-4 p-b-4"},nl={class:"flex flex-1 items-center min-w-0 pr-4"},al=se(()=>s("img",{class:"w-[20px] h-[16px] mr-3",src:It},null,-1)),sl={class:"flex-1 truncate mr-2"},ol=se(()=>s("span",{class:"muted m-r-10"},"\xB7\xB7\xB7",-1)),il=["onClick"],ul={class:"flex justify-center p-2 border-t border-br"},dl={class:"material__center flex flex-col"},rl={class:"operate-btn flex"},cl={class:"flex-1 flex"},pl=se(()=>s("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),ml={class:"flex items-center ml-2"},fl={key:0,class:"mt-3"},vl={class:"material-center__content flex flex-col flex-1 mb-1 min-h-0"},_l={class:"file-list flex flex-wrap mt-4"},hl={key:0,class:"item-selected"},gl={class:"operation-btns flex items-center"},yl={class:"inline-block"},Cl={class:"inline-block"},kl={class:"inline-block"},bl={key:1,class:"flex flex-1 justify-center items-center"},El={class:"material-center__footer flex justify-between items-center mt-2"},wl={class:"flex"},Fl={class:"mr-3"},Al=se(()=>s("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),Sl={key:0,class:"material__right"},Vl={class:"flex justify-between p-2 flex-wrap"},xl={class:"sm flex items-center"},Bl={key:0},Dl={class:"flex-1 min-h-0"},$l={class:"select-lists flex flex-col p-t-3"},zl={class:"select-item"},Rl=Q({__name:"index",props:{fileSize:{type:String,default:"100px"},limit:{type:Number,default:1},type:{type:String,default:"image"},mode:{type:String,default:"picker"},pageSize:{type:Number,default:15}},emits:["change"],setup(e,{expose:y,emit:C}){const m=e,f=C,{limit:E}=gt(m),d=ne(()=>{switch(m.type){case"image":return 10;case"video":return 20;case"file":return 30;default:return 0}}),u=kt("visible"),w=A(""),i=A(!1),{treeRef:k,cateId:r,cateLists:R,handleAddCate:M,handleEditCate:b,handleDeleteCate:S,getCateLists:$,handleCatSelect:F}=Gt(d.value),{tableRef:N,listShowType:L,moveId:I,pager:D,fileParams:J,select:P,isCheckAll:p,isIndeterminate:_,getFileList:W,refresh:q,batchFileDelete:X,batchFileMove:ve,selectFile:oe,isSelect:_e,clearSelect:he,cancelSelete:Te,selectAll:ge,handleFileRename:ye}=Yt(r,d,E,m.pageSize),Ce=async()=>{var z;await $(),(z=k.value)==null||z.setCurrentKey(r.value),W()},ie=z=>{w.value=z,i.value=!0};return O(u,async z=>{z&&Ce()},{immediate:!0}),O(r,()=>{J.name="",q()}),O(P,z=>{if(f("change",z),z.length==D.lists.length&&z.length!==0){_.value=!1,p.value=!0;return}z.length>0?_.value=!0:(p.value=!1,_.value=!1)},{deep:!0}),yt(()=>{m.mode=="page"&&Ce()}),y({clearSelect:he}),(z,v)=>{const ke=ft,be=et,H=Rt,je=tt,Me=lt,Ne=nt,ue=at,V=Le,Ee=Dt,we=ze,Fe=Re,Ae=vt,ee=Pe,We=Ie,Se=rt,de=st,Ve=pt,K=ot,Ge=it,Ye=ut,qe=ct,Ke=dt;return le((o(),c("div",Ht,[s("div",el,[s("div",tl,[n(ue,null,{default:a(()=>[s("div",ll,[n(Ne,{ref_key:"treeRef",ref:k,"node-key":"id",data:t(R),"empty-text":"''","highlight-current":!0,"expand-on-click-node":!1,"current-node-key":t(r),onNodeClick:t(F)},{default:a(({data:l})=>[s("div",nl,[al,s("span",sl,[n(ke,{content:l.name},null,8,["content"])]),l.id>0?(o(),B(Me,{key:0,"hide-on-click":!1},{dropdown:a(()=>[n(je,null,{default:a(()=>[n(H,{onConfirm:x=>t(b)(x,l.id),size:"default",value:l.name,width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[s("div",null,[n(be,null,{default:a(()=>[h(" \u547D\u540D\u5206\u7EC4 ")]),_:1})])]),_:2},1032,["onConfirm","value"]),s("div",{onClick:x=>t(S)(l.id)},[n(be,null,{default:a(()=>[h("\u5220\u9664\u5206\u7EC4")]),_:1})],8,il)]),_:2},1024)]),default:a(()=>[ol]),_:2},1024)):g("",!0)])]),_:1},8,["data","current-node-key","onNodeClick"])])]),_:1})]),s("div",ul,[n(H,{onConfirm:t(M),size:"default",width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[n(V,null,{default:a(()=>[h(" \u6DFB\u52A0\u5206\u7EC4 ")]),_:1})]),_:1},8,["onConfirm"])])]),s("div",dl,[s("div",rl,[s("div",cl,[e.type=="image"?(o(),B(Ee,{key:0,class:"mr-3",data:{cid:t(r)},type:e.type,"show-progress":!0,onChange:t(q)},{default:a(()=>[n(V,{type:"primary"},{default:a(()=>[h("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):g("",!0),e.type=="video"?(o(),B(Ee,{key:1,class:"mr-3",data:{cid:t(r)},type:e.type,"show-progress":!0,onChange:t(q)},{default:a(()=>[n(V,{type:"primary"},{default:a(()=>[h("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):g("",!0),e.mode=="page"?(o(),B(V,{key:2,disabled:!t(P).length,onClick:v[0]||(v[0]=Y(l=>t(X)(),["stop"]))},{default:a(()=>[h(" \u5220\u9664 ")]),_:1},8,["disabled"])):g("",!0),e.mode=="page"?(o(),B(Ae,{key:3,class:"ml-3",onConfirm:t(ve),disabled:!t(P).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(V,{disabled:!t(P).length},{default:a(()=>[h("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[s("div",null,[pl,n(Fe,{modelValue:t(I),"onUpdate:modelValue":v[1]||(v[1]=l=>U(I)?I.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(o(!0),c(T,null,G(t(R),l=>(o(),c(T,{key:l.id},[l.id!==""?(o(),B(we,{key:0,label:l.name,value:l.id},null,8,["label","value"])):g("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])):g("",!0)]),n(We,{class:"w-60",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",modelValue:t(J).name,"onUpdate:modelValue":v[2]||(v[2]=l=>t(J).name=l),onKeyup:Ct(t(q),["enter"])},{append:a(()=>[n(V,{onClick:t(q)},{icon:a(()=>[n(ee,{name:"el-icon-Search"})]),_:1},8,["onClick"])]),_:1},8,["modelValue","onKeyup"]),s("div",ml,[n(Se,{content:"\u5217\u8868\u89C6\u56FE",placement:"top"},{default:a(()=>[s("div",{class:De(["list-icon",{select:t(L)=="table"}]),onClick:v[3]||(v[3]=l=>L.value="table")},[n(ee,{name:"local-icon-list-2",size:18})],2)]),_:1}),n(Se,{content:"\u5E73\u94FA\u89C6\u56FE",placement:"top"},{default:a(()=>[s("div",{class:De(["list-icon",{select:t(L)=="normal"}]),onClick:v[4]||(v[4]=l=>L.value="normal")},[n(ee,{name:"el-icon-Menu",size:18})],2)]),_:1})])]),e.mode=="page"?(o(),c("div",fl,[n(de,{disabled:!t(D).lists.length,modelValue:t(p),"onUpdate:modelValue":v[5]||(v[5]=l=>U(p)?p.value=l:null),onChange:t(ge),indeterminate:t(_)},{default:a(()=>[h(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])])):g("",!0),s("div",vl,[t(D).lists.length?le((o(),B(ue,{key:0},{default:a(()=>[s("ul",_l,[(o(!0),c(T,null,G(t(D).lists,l=>(o(),c("li",{class:"file-item-wrap",key:l.id,style:Ue({width:e.fileSize})},[n(Ve,{onClose:x=>t(X)([l.id])},{default:a(()=>[n(ce,{uri:l.uri,"file-size":e.fileSize,type:e.type,onClick:x=>t(oe)(l)},{default:a(()=>[t(_e)(l.id)?(o(),c("div",hl,[n(ee,{size:24,name:"el-icon-Check",color:"#fff"})])):g("",!0)]),_:2},1032,["uri","file-size","type","onClick"])]),_:2},1032,["onClose"]),n(ke,{class:"mt-1",content:l.name},null,8,["content"]),s("div",gl,[n(H,{onConfirm:x=>t(ye)(x,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(V,{type:"primary",link:""},{default:a(()=>[h(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"]),n(V,{type:"primary",link:"",onClick:x=>ie(l.uri)},{default:a(()=>[h(" \u67E5\u770B ")]),_:2},1032,["onClick"])])],4))),128))])]),_:1},512)),[[pe,t(L)=="normal"]]):g("",!0),le(n(Ye,{ref_key:"tableRef",ref:N,class:"mt-4",data:t(D).lists,width:"100%",height:"100%",size:"large",onRowClick:t(oe)},{default:a(()=>[n(K,{width:"55"},{default:a(({row:l})=>[n(de,{modelValue:t(_e)(l.id),onChange:x=>t(oe)(l)},null,8,["modelValue","onChange"])]),_:1}),n(K,{label:"\u56FE\u7247",width:"100"},{default:a(({row:l})=>[n(ce,{uri:l.uri,"file-size":"50px",type:e.type},null,8,["uri","type"])]),_:1}),n(K,{label:"\u540D\u79F0","min-width":"100","show-overflow-tooltip":""},{default:a(({row:l})=>[n(Ge,{onClick:Y(x=>ie(l.uri),["stop"]),underline:!1},{default:a(()=>[h(te(l.name),1)]),_:2},1032,["onClick"])]),_:1}),n(K,{prop:"create_time",label:"\u4E0A\u4F20\u65F6\u95F4","min-width":"100"}),n(K,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:l})=>[s("div",yl,[n(H,{onConfirm:x=>t(ye)(x,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(V,{type:"primary",link:""},{default:a(()=>[h(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"])]),s("div",Cl,[n(V,{type:"primary",link:"",onClick:Y(x=>ie(l.uri),["stop"])},{default:a(()=>[h(" \u67E5\u770B ")]),_:2},1032,["onClick"])]),s("div",kl,[n(V,{type:"primary",link:"",onClick:Y(x=>t(X)([l.id]),["stop"])},{default:a(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data","onRowClick"]),[[pe,t(L)=="table"]]),!t(D).loading&&!t(D).lists.length?(o(),c("div",bl," \u6682\u65E0\u6570\u636E~ ")):g("",!0)]),s("div",El,[s("div",wl,[e.mode=="page"?(o(),c(T,{key:0},[s("span",Fl,[n(de,{disabled:!t(D).lists.length,modelValue:t(p),"onUpdate:modelValue":v[6]||(v[6]=l=>U(p)?p.value=l:null),onChange:t(ge),indeterminate:t(_)},{default:a(()=>[h(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])]),n(V,{disabled:!t(P).length,onClick:v[7]||(v[7]=l=>t(X)())},{default:a(()=>[h(" \u5220\u9664 ")]),_:1},8,["disabled"]),n(Ae,{class:"ml-3 inline",onConfirm:t(ve),disabled:!t(P).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(V,{disabled:!t(P).length},{default:a(()=>[h("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[s("div",null,[Al,n(Fe,{modelValue:t(I),"onUpdate:modelValue":v[8]||(v[8]=l=>U(I)?I.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(o(!0),c(T,null,G(t(R),l=>(o(),c(T,{key:l.id},[l.id!==""?(o(),B(we,{key:0,label:l.name,value:l.id},null,8,["label","value"])):g("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])],64)):g("",!0)]),n(qe,{modelValue:t(D),"onUpdate:modelValue":v[9]||(v[9]=l=>U(D)?D.value=l:null),onChange:t(W),layout:"total, prev, pager, next, jumper"},null,8,["modelValue","onChange"])])]),e.mode=="picker"?(o(),c("div",Sl,[s("div",Vl,[s("div",xl,[h(" \u5DF2\u9009\u62E9 "+te(t(P).length)+" ",1),t(E)?(o(),c("span",Bl,"/"+te(t(E)),1)):g("",!0)]),n(V,{type:"primary",link:"",onClick:t(he)},{default:a(()=>[h("\u6E05\u7A7A")]),_:1},8,["onClick"])]),s("div",Dl,[n(ue,{class:"ls-scrollbar"},{default:a(()=>[s("ul",$l,[(o(!0),c(T,null,G(t(P),l=>(o(),c("li",{class:"mb-4",key:l.id},[s("div",zl,[n(Ve,{onClose:x=>t(Te)(l.id)},{default:a(()=>[n(ce,{uri:l.uri,"file-size":"100px",type:e.type},null,8,["uri","type"])]),_:2},1032,["onClose"])])]))),128))])]),_:1})])])):g("",!0),n(Xt,{modelValue:t(i),"onUpdate:modelValue":v[10]||(v[10]=l=>U(i)?i.value=l:null),url:t(w),type:e.type},null,8,["modelValue","url","type"])])),[[Ke,t(D).loading]])}}});const Wl=me(Rl,[["__scopeId","data-v-9cc1892d"]]);export{ce as F,Wl as _,Xt as a}; +import{U as Ze,V as Oe,I as $e,W as Qe,J as ze,K as Re,C as Ie,w as Le,k as Je,b as Xe,X as He,p as et,q as tt,r as lt,Y as nt,E as at,B as st,M as ot,Z as it,N as ut,O as dt,a as rt}from"./element-plus.5a7ba693.js";import{_ as ct}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{_ as pt}from"./index.0b1a8ccb.js";import{a as mt,h as re,R as xe,f as Z,d as me,r as j,b as Pe,i as ft}from"./index.5c2d321b.js";import{P as vt}from"./index.b110836f.js";import{d as Q,s as ae,r as A,b as ne,t as _t,o,c,U as n,L as a,H as fe,K as B,a as s,T,a9 as G,S as te,Q as g,w as O,a3 as Y,u as t,j as U,R as h,Z as ht,a0 as Ue,M as le,V as pe,n as Be,_ as gt,i as yt,aa as Ct,O as De,D as kt,bl as bt,bk as Et}from"./@vue.18505fe0.js";import{u as wt}from"./@vueuse.fbc6a400.js";import{u as Ft}from"./usePaging.6a6670f9.js";const At=Q({components:{},props:{type:{type:String,default:"image"},multiple:{type:Boolean,default:!0},limit:{type:Number,default:10},data:{type:Object,default:()=>({})},showProgress:{type:Boolean,default:!1}},emits:["change","error","success"],setup(e,{emit:y}){const C=mt(),m=ae(),f=A(`${re.baseUrl}${re.urlPrefix}/upload/${e.type}`),E=ne(()=>({token:C.token,version:re.version})),d=A(!1),u=A([]),w=(b,S,$)=>{d.value=!0,u.value=_t($)},i=(b,S,$)=>{var N;$.every(L=>L.status=="success")&&((N=m.value)==null||N.clearFiles(),d.value=!1),y("change",S),b.code==xe.SUCCESS&&y("success",b),b.code==xe.FAIL&&b.msg&&Z.msgError(b.msg)},k=(b,S)=>{var $;Z.msgError(`${S.name}\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`),($=m.value)==null||$.abort(S),d.value=!1,y("change",S),y("error",S)},r=()=>{Z.msgError(`\u8D85\u51FA\u4E0A\u4F20\u4E0A\u9650${e.limit}\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20`)},R=()=>{var b;(b=m.value)==null||b.clearFiles(),d.value=!1},M=ne(()=>{switch(e.type){case"image":return".jpg,.png,.gif,.jpeg";case"video":return".wmv,.avi,.mpg,.mpeg,.3gp,.mov,.mp4,.flv,.rmvb,.mkv";default:return"*"}});return{uploadRefs:m,action:f,headers:E,visible:d,fileList:u,getAccept:M,handleProgress:w,handleSuccess:i,handleError:k,handleExceed:r,handleClose:R}}}),St={class:"upload"},Vt={class:"file-list p-4"},xt={class:"flex-1"};function Bt(e,y,C,m,f,E){const d=Ze,u=Oe,w=$e;return o(),c("div",St,[n(d,{ref:"uploadRefs",action:e.action,multiple:e.multiple,limit:e.limit,"show-file-list":!1,headers:e.headers,data:e.data,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-exceed":e.handleExceed,"on-error":e.handleError,accept:e.getAccept},{default:a(()=>[fe(e.$slots,"default")]),_:3},8,["action","multiple","limit","headers","data","on-progress","on-success","on-exceed","on-error","accept"]),e.showProgress&&e.fileList.length?(o(),B(w,{key:0,modelValue:e.visible,"onUpdate:modelValue":y[0]||(y[0]=i=>e.visible=i),title:"\u4E0A\u4F20\u8FDB\u5EA6","close-on-click-modal":!1,width:"500px",modal:!1,onClose:e.handleClose},{default:a(()=>[s("div",Vt,[(o(!0),c(T,null,G(e.fileList,(i,k)=>(o(),c("div",{key:k,class:"mb-5"},[s("div",null,te(i.name),1),s("div",xt,[n(u,{percentage:parseInt(i.percentage)},null,8,["percentage"])])]))),128))])]),_:1},8,["modelValue","onClose"])):g("",!0)])}const Dt=me(At,[["render",Bt]]),$t={class:"popover-input__input mr-[10px] flex-1"},zt={class:"popover-input__btns flex-none"},Rt=Q({__name:"index",props:{value:{type:String},type:{type:String,default:"text"},width:{type:[Number,String],default:"300px"},placeholder:String,disabled:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},size:{type:String,default:"default"},limit:{type:Number,default:200},showLimit:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0}},emits:["confirm"],setup(e,{emit:y}){const C=e,m=y,f=A(!1),E=A(!1),d=A(),u=()=>{i(),m("confirm",d.value)},w=()=>{C.disabled||(f.value=!0)},i=()=>{f.value=!1};return O(()=>C.value,k=>{d.value=k},{immediate:!0}),wt(document.documentElement,"click",()=>{E.value||i()}),(k,r)=>{const R=ze,M=Re,b=Ie,S=Le,$=Qe;return o(),c("div",{onMouseenter:r[4]||(r[4]=F=>E.value=!0),onMouseleave:r[5]||(r[5]=F=>E.value=!1)},[n($,{placement:"top",visible:t(f),"onUpdate:visible":r[3]||(r[3]=F=>U(f)?f.value=F:null),width:e.width,trigger:"contextmenu",class:"popover-input",teleported:e.teleported,persistent:!1,"popper-class":"!p-0"},{reference:a(()=>[s("div",{class:"inline",onClick:Y(w,["stop"])},[fe(k.$slots,"default")])]),default:a(()=>[s("div",{class:"flex p-3",onClick:r[2]||(r[2]=Y(()=>{},["stop"]))},[s("div",$t,[e.type=="select"?(o(),B(M,{key:0,class:"flex-1",size:e.size,modelValue:t(d),"onUpdate:modelValue":r[0]||(r[0]=F=>U(d)?d.value=F:null),teleported:e.teleported},{default:a(()=>[(o(!0),c(T,null,G(e.options,F=>(o(),B(R,{key:F.value,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:1},8,["size","modelValue","teleported"])):(o(),B(b,{key:1,modelValue:t(d),"onUpdate:modelValue":r[1]||(r[1]=F=>U(d)?d.value=F:null),modelModifiers:{trim:!0},maxlength:e.limit,"show-word-limit":e.showLimit,type:e.type,size:e.size,clearable:"",placeholder:e.placeholder},null,8,["modelValue","maxlength","show-word-limit","type","size","placeholder"]))]),s("div",zt,[n(S,{link:"",onClick:i},{default:a(()=>[h("\u53D6\u6D88")]),_:1}),n(S,{type:"primary",size:e.size,onClick:u},{default:a(()=>[h("\u786E\u5B9A")]),_:1},8,["size"])])])]),_:3},8,["visible","width","teleported"])],32)}}}),It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAACJElEQVRYR+2YMWsUURSFz3m7s+nskjUIQSutbMRi7WzUVjSadMHCbVLkByjmLygaCVYWRqMEUhkFS9Gg0cJfYCPZjYUQFbPs+I7c2R1Q2ZjZfRNYYS4MAzPv3vnmvDvL3kMA2Hl5/CjLI9ckf4ZwY3Zt15C+gfwIao3So0rt3XsJtPUk9M/cAW6y9ap2DIyfAjgCwANwGeoYiEFtk/5e5CvXeer1D2neATcGgiTZM4+t9RNLEKcBtAFEGeBsiRWzl7EoSXo+8rV9gWc/fDc1B1VSEoEnDpj0KTB33tS26DGaEezvZQZpRxmODyoT5+vwBwS3zeTcT4yjTdZNJEiPSykk1bjZX6HeD/WQJ1zUApgq2w+etcsniBuAVlH9vELOx6Yo1VywgkmTB4X1kEGGhyAtg/Ecq3NNqnknDwVTrNBaactEts88OHs5b8Bw/Tof4M+kr4WrwwhoL9n5uRPWhxWwsxPEl+EGNMacP5I8evCPGgVgqKSFgoWCoQqE5hc9WCgYqkBoftGDeSiYz1/+UJLe+foftvh2A2B1fwQIrapkaFoDcK4PVyH0qVnyU4fjGdW4NQ2WlgDE5hLkMoJmQdh9zW9Dk59K5lhtLjyE01TX/jDILP5MGEbvbFPOJroIXvc5PjvTBbx7GM4vAjjd9WdSc2g/IPaqaTv5Aq58haP1TSb2Au20GGErvgTxIqiTAA7tVSnn+2Z9vAXdCsa4bD6Nsf0C/gYA5PMzcW0AAAAASUVORK5CYII=";function Lt(e){return j.post({url:"/file/addCate",params:e})}function Pt(e){return j.post({url:"/file/editCate",params:e})}function Ut(e){return j.post({url:"/file/delCate",params:e})}function Tt(e){return j.get({url:"/file/listCate",params:e})}function jt(e){return j.get({url:"/file/lists",params:e},{ignoreCancelToken:!0,isOpenRetry:!1})}function Mt(e){return j.post({url:"/file/delete",params:e})}function Nt(e){return j.post({url:"/file/move",params:e})}function Wt(e){return j.post({url:"/file/rename",params:e})}function Gt(e){const y=ae(),C=A([]),m=A(""),f=async()=>{const i=await Tt({page_type:0,type:e}),k=[{name:"\u5168\u90E8",id:""},{name:"\u672A\u5206\u7EC4",id:0}];C.value=i.lists,C.value.unshift(...k),setTimeout(()=>{var r;(r=y.value)==null||r.setCurrentKey(m.value)},0)};return{treeRef:y,cateId:m,cateLists:C,handleAddCate:async i=>{await Lt({type:e,name:i,pid:0}),f()},handleEditCate:async(i,k)=>{await Pt({id:k,name:i}),f()},handleDeleteCate:async i=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ut({id:i}),m.value="",f()},getCateLists:f,handleCatSelect:i=>{m.value=i.id}}}function Yt(e,y,C,m){const f=ae(),E=A("normal"),d=A(0),u=A([]),w=A(!1),i=A(!1),k=ht({name:"",type:y,cid:e}),{pager:r,getLists:R,resetPage:M}=Ft({fetchFun:jt,params:k,firstLoading:!0,size:m}),b=()=>{R()},S=()=>{M()},$=p=>!!u.value.find(_=>_.id==p),F=async p=>{await Z.confirm("\u786E\u8BA4\u5220\u9664\u540E\uFF0C\u672C\u5730\u6216\u4E91\u5B58\u50A8\u6587\u4EF6\u4E5F\u5C06\u540C\u6B65\u5220\u9664\uFF0C\u5982\u6587\u4EF6\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01");const _=p||u.value.map(W=>W.id);await Mt({ids:_}),b(),I()},N=async()=>{const p=u.value.map(_=>_.id);await Nt({ids:p,cid:d.value}),d.value=0,b(),I()},L=p=>{const _=u.value.findIndex(W=>W.id==p.id);if(_!=-1){u.value.splice(_,1);return}if(u.value.length==C.value){if(C.value==1){u.value=[],u.value.push(p);return}Je.warning("\u5DF2\u8FBE\u5230\u9009\u62E9\u4E0A\u9650");return}u.value.push(p)},I=()=>{u.value=[]};return{listShowType:E,tableRef:f,moveId:d,pager:r,fileParams:k,select:u,isCheckAll:w,isIndeterminate:i,getFileList:b,refresh:S,batchFileDelete:F,batchFileMove:N,selectFile:L,isSelect:$,clearSelect:I,cancelSelete:p=>{u.value=u.value.filter(_=>_.id!=p)},selectAll:p=>{var _;if(i.value=!1,(_=f.value)==null||_.toggleAllSelection(),p){u.value=[...r.lists];return}I()},handleFileRename:async(p,_)=>{await Wt({id:_,name:p}),b()}}}const qt=Q({props:{uri:{type:String},fileSize:{type:String,default:"100px"},type:{type:String,default:"image"}},emits:["close"]});const Kt=["src"],Zt={key:2,class:"absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%] rounded-full w-5 h-5 flex justify-center items-center bg-[rgba(0,0,0,0.3)]"};function Ot(e,y,C,m,f,E){const d=Xe,u=Pe;return o(),c("div",null,[s("div",{class:"file-item relative",style:Ue({height:e.fileSize,width:e.fileSize})},[e.type=="image"?(o(),B(d,{key:0,class:"image",fit:"contain",src:e.uri,"preview-teleported":!0},null,8,["src"])):e.type=="video"?(o(),c("video",{key:1,class:"video",src:e.uri},null,8,Kt)):g("",!0),e.type=="video"?(o(),c("div",Zt,[n(u,{name:"el-icon-CaretRight",size:18,color:"#fff"})])):g("",!0),fe(e.$slots,"default",{},void 0,!0)],4)])}const ce=me(qt,[["render",Ot],["__scopeId","data-v-1ee7b564"]]),Qt={key:0},Jt={key:1},Xt=Q({__name:"preview",props:{modelValue:{type:Boolean,default:!1},url:{type:String,default:""},type:{type:String,default:"image"}},emits:["update:modelValue"],setup(e,{emit:y}){const C=e,m=y,f=ae(),E=ne({get(){return C.modelValue},set(w){m("update:modelValue",w)}}),d=()=>{m("update:modelValue",!1)},u=A([]);return O(()=>C.modelValue,w=>{w?Be(()=>{var i;u.value=[C.url],(i=f.value)==null||i.play()}):Be(()=>{var i;u.value=[],(i=f.value)==null||i.pause()})}),(w,i)=>{const k=He,r=$e;return le((o(),c("div",null,[e.type=="image"?(o(),c("div",Qt,[t(u).length?(o(),B(k,{key:0,"url-list":t(u),"hide-on-click-modal":"",onClose:d},null,8,["url-list"])):g("",!0)])):g("",!0),e.type=="video"?(o(),c("div",Jt,[n(r,{modelValue:t(E),"onUpdate:modelValue":i[0]||(i[0]=R=>U(E)?E.value=R:null),width:"740px",title:"\u89C6\u9891\u9884\u89C8","before-close":d},null,8,["modelValue"])])):g("",!0)],512)),[[pe,e.modelValue]])}}}),se=e=>(bt("data-v-9cc1892d"),e=e(),Et(),e),Ht={class:"material"},el={class:"material__left"},tl={class:"flex-1 min-h-0"},ll={class:"material-left__content pt-4 p-b-4"},nl={class:"flex flex-1 items-center min-w-0 pr-4"},al=se(()=>s("img",{class:"w-[20px] h-[16px] mr-3",src:It},null,-1)),sl={class:"flex-1 truncate mr-2"},ol=se(()=>s("span",{class:"muted m-r-10"},"\xB7\xB7\xB7",-1)),il=["onClick"],ul={class:"flex justify-center p-2 border-t border-br"},dl={class:"material__center flex flex-col"},rl={class:"operate-btn flex"},cl={class:"flex-1 flex"},pl=se(()=>s("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),ml={class:"flex items-center ml-2"},fl={key:0,class:"mt-3"},vl={class:"material-center__content flex flex-col flex-1 mb-1 min-h-0"},_l={class:"file-list flex flex-wrap mt-4"},hl={key:0,class:"item-selected"},gl={class:"operation-btns flex items-center"},yl={class:"inline-block"},Cl={class:"inline-block"},kl={class:"inline-block"},bl={key:1,class:"flex flex-1 justify-center items-center"},El={class:"material-center__footer flex justify-between items-center mt-2"},wl={class:"flex"},Fl={class:"mr-3"},Al=se(()=>s("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),Sl={key:0,class:"material__right"},Vl={class:"flex justify-between p-2 flex-wrap"},xl={class:"sm flex items-center"},Bl={key:0},Dl={class:"flex-1 min-h-0"},$l={class:"select-lists flex flex-col p-t-3"},zl={class:"select-item"},Rl=Q({__name:"index",props:{fileSize:{type:String,default:"100px"},limit:{type:Number,default:1},type:{type:String,default:"image"},mode:{type:String,default:"picker"},pageSize:{type:Number,default:15}},emits:["change"],setup(e,{expose:y,emit:C}){const m=e,f=C,{limit:E}=gt(m),d=ne(()=>{switch(m.type){case"image":return 10;case"video":return 20;case"file":return 30;default:return 0}}),u=kt("visible"),w=A(""),i=A(!1),{treeRef:k,cateId:r,cateLists:R,handleAddCate:M,handleEditCate:b,handleDeleteCate:S,getCateLists:$,handleCatSelect:F}=Gt(d.value),{tableRef:N,listShowType:L,moveId:I,pager:D,fileParams:J,select:P,isCheckAll:p,isIndeterminate:_,getFileList:W,refresh:q,batchFileDelete:X,batchFileMove:ve,selectFile:oe,isSelect:_e,clearSelect:he,cancelSelete:Te,selectAll:ge,handleFileRename:ye}=Yt(r,d,E,m.pageSize),Ce=async()=>{var z;await $(),(z=k.value)==null||z.setCurrentKey(r.value),W()},ie=z=>{w.value=z,i.value=!0};return O(u,async z=>{z&&Ce()},{immediate:!0}),O(r,()=>{J.name="",q()}),O(P,z=>{if(f("change",z),z.length==D.lists.length&&z.length!==0){_.value=!1,p.value=!0;return}z.length>0?_.value=!0:(p.value=!1,_.value=!1)},{deep:!0}),yt(()=>{m.mode=="page"&&Ce()}),y({clearSelect:he}),(z,v)=>{const ke=ft,be=et,H=Rt,je=tt,Me=lt,Ne=nt,ue=at,V=Le,Ee=Dt,we=ze,Fe=Re,Ae=vt,ee=Pe,We=Ie,Se=rt,de=st,Ve=pt,K=ot,Ge=it,Ye=ut,qe=ct,Ke=dt;return le((o(),c("div",Ht,[s("div",el,[s("div",tl,[n(ue,null,{default:a(()=>[s("div",ll,[n(Ne,{ref_key:"treeRef",ref:k,"node-key":"id",data:t(R),"empty-text":"''","highlight-current":!0,"expand-on-click-node":!1,"current-node-key":t(r),onNodeClick:t(F)},{default:a(({data:l})=>[s("div",nl,[al,s("span",sl,[n(ke,{content:l.name},null,8,["content"])]),l.id>0?(o(),B(Me,{key:0,"hide-on-click":!1},{dropdown:a(()=>[n(je,null,{default:a(()=>[n(H,{onConfirm:x=>t(b)(x,l.id),size:"default",value:l.name,width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[s("div",null,[n(be,null,{default:a(()=>[h(" \u547D\u540D\u5206\u7EC4 ")]),_:1})])]),_:2},1032,["onConfirm","value"]),s("div",{onClick:x=>t(S)(l.id)},[n(be,null,{default:a(()=>[h("\u5220\u9664\u5206\u7EC4")]),_:1})],8,il)]),_:2},1024)]),default:a(()=>[ol]),_:2},1024)):g("",!0)])]),_:1},8,["data","current-node-key","onNodeClick"])])]),_:1})]),s("div",ul,[n(H,{onConfirm:t(M),size:"default",width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[n(V,null,{default:a(()=>[h(" \u6DFB\u52A0\u5206\u7EC4 ")]),_:1})]),_:1},8,["onConfirm"])])]),s("div",dl,[s("div",rl,[s("div",cl,[e.type=="image"?(o(),B(Ee,{key:0,class:"mr-3",data:{cid:t(r)},type:e.type,"show-progress":!0,onChange:t(q)},{default:a(()=>[n(V,{type:"primary"},{default:a(()=>[h("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):g("",!0),e.type=="video"?(o(),B(Ee,{key:1,class:"mr-3",data:{cid:t(r)},type:e.type,"show-progress":!0,onChange:t(q)},{default:a(()=>[n(V,{type:"primary"},{default:a(()=>[h("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):g("",!0),e.mode=="page"?(o(),B(V,{key:2,disabled:!t(P).length,onClick:v[0]||(v[0]=Y(l=>t(X)(),["stop"]))},{default:a(()=>[h(" \u5220\u9664 ")]),_:1},8,["disabled"])):g("",!0),e.mode=="page"?(o(),B(Ae,{key:3,class:"ml-3",onConfirm:t(ve),disabled:!t(P).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(V,{disabled:!t(P).length},{default:a(()=>[h("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[s("div",null,[pl,n(Fe,{modelValue:t(I),"onUpdate:modelValue":v[1]||(v[1]=l=>U(I)?I.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(o(!0),c(T,null,G(t(R),l=>(o(),c(T,{key:l.id},[l.id!==""?(o(),B(we,{key:0,label:l.name,value:l.id},null,8,["label","value"])):g("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])):g("",!0)]),n(We,{class:"w-60",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",modelValue:t(J).name,"onUpdate:modelValue":v[2]||(v[2]=l=>t(J).name=l),onKeyup:Ct(t(q),["enter"])},{append:a(()=>[n(V,{onClick:t(q)},{icon:a(()=>[n(ee,{name:"el-icon-Search"})]),_:1},8,["onClick"])]),_:1},8,["modelValue","onKeyup"]),s("div",ml,[n(Se,{content:"\u5217\u8868\u89C6\u56FE",placement:"top"},{default:a(()=>[s("div",{class:De(["list-icon",{select:t(L)=="table"}]),onClick:v[3]||(v[3]=l=>L.value="table")},[n(ee,{name:"local-icon-list-2",size:18})],2)]),_:1}),n(Se,{content:"\u5E73\u94FA\u89C6\u56FE",placement:"top"},{default:a(()=>[s("div",{class:De(["list-icon",{select:t(L)=="normal"}]),onClick:v[4]||(v[4]=l=>L.value="normal")},[n(ee,{name:"el-icon-Menu",size:18})],2)]),_:1})])]),e.mode=="page"?(o(),c("div",fl,[n(de,{disabled:!t(D).lists.length,modelValue:t(p),"onUpdate:modelValue":v[5]||(v[5]=l=>U(p)?p.value=l:null),onChange:t(ge),indeterminate:t(_)},{default:a(()=>[h(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])])):g("",!0),s("div",vl,[t(D).lists.length?le((o(),B(ue,{key:0},{default:a(()=>[s("ul",_l,[(o(!0),c(T,null,G(t(D).lists,l=>(o(),c("li",{class:"file-item-wrap",key:l.id,style:Ue({width:e.fileSize})},[n(Ve,{onClose:x=>t(X)([l.id])},{default:a(()=>[n(ce,{uri:l.uri,"file-size":e.fileSize,type:e.type,onClick:x=>t(oe)(l)},{default:a(()=>[t(_e)(l.id)?(o(),c("div",hl,[n(ee,{size:24,name:"el-icon-Check",color:"#fff"})])):g("",!0)]),_:2},1032,["uri","file-size","type","onClick"])]),_:2},1032,["onClose"]),n(ke,{class:"mt-1",content:l.name},null,8,["content"]),s("div",gl,[n(H,{onConfirm:x=>t(ye)(x,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(V,{type:"primary",link:""},{default:a(()=>[h(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"]),n(V,{type:"primary",link:"",onClick:x=>ie(l.uri)},{default:a(()=>[h(" \u67E5\u770B ")]),_:2},1032,["onClick"])])],4))),128))])]),_:1},512)),[[pe,t(L)=="normal"]]):g("",!0),le(n(Ye,{ref_key:"tableRef",ref:N,class:"mt-4",data:t(D).lists,width:"100%",height:"100%",size:"large",onRowClick:t(oe)},{default:a(()=>[n(K,{width:"55"},{default:a(({row:l})=>[n(de,{modelValue:t(_e)(l.id),onChange:x=>t(oe)(l)},null,8,["modelValue","onChange"])]),_:1}),n(K,{label:"\u56FE\u7247",width:"100"},{default:a(({row:l})=>[n(ce,{uri:l.uri,"file-size":"50px",type:e.type},null,8,["uri","type"])]),_:1}),n(K,{label:"\u540D\u79F0","min-width":"100","show-overflow-tooltip":""},{default:a(({row:l})=>[n(Ge,{onClick:Y(x=>ie(l.uri),["stop"]),underline:!1},{default:a(()=>[h(te(l.name),1)]),_:2},1032,["onClick"])]),_:1}),n(K,{prop:"create_time",label:"\u4E0A\u4F20\u65F6\u95F4","min-width":"100"}),n(K,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:l})=>[s("div",yl,[n(H,{onConfirm:x=>t(ye)(x,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(V,{type:"primary",link:""},{default:a(()=>[h(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"])]),s("div",Cl,[n(V,{type:"primary",link:"",onClick:Y(x=>ie(l.uri),["stop"])},{default:a(()=>[h(" \u67E5\u770B ")]),_:2},1032,["onClick"])]),s("div",kl,[n(V,{type:"primary",link:"",onClick:Y(x=>t(X)([l.id]),["stop"])},{default:a(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data","onRowClick"]),[[pe,t(L)=="table"]]),!t(D).loading&&!t(D).lists.length?(o(),c("div",bl," \u6682\u65E0\u6570\u636E~ ")):g("",!0)]),s("div",El,[s("div",wl,[e.mode=="page"?(o(),c(T,{key:0},[s("span",Fl,[n(de,{disabled:!t(D).lists.length,modelValue:t(p),"onUpdate:modelValue":v[6]||(v[6]=l=>U(p)?p.value=l:null),onChange:t(ge),indeterminate:t(_)},{default:a(()=>[h(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])]),n(V,{disabled:!t(P).length,onClick:v[7]||(v[7]=l=>t(X)())},{default:a(()=>[h(" \u5220\u9664 ")]),_:1},8,["disabled"]),n(Ae,{class:"ml-3 inline",onConfirm:t(ve),disabled:!t(P).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(V,{disabled:!t(P).length},{default:a(()=>[h("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[s("div",null,[Al,n(Fe,{modelValue:t(I),"onUpdate:modelValue":v[8]||(v[8]=l=>U(I)?I.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(o(!0),c(T,null,G(t(R),l=>(o(),c(T,{key:l.id},[l.id!==""?(o(),B(we,{key:0,label:l.name,value:l.id},null,8,["label","value"])):g("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])],64)):g("",!0)]),n(qe,{modelValue:t(D),"onUpdate:modelValue":v[9]||(v[9]=l=>U(D)?D.value=l:null),onChange:t(W),layout:"total, prev, pager, next, jumper"},null,8,["modelValue","onChange"])])]),e.mode=="picker"?(o(),c("div",Sl,[s("div",Vl,[s("div",xl,[h(" \u5DF2\u9009\u62E9 "+te(t(P).length)+" ",1),t(E)?(o(),c("span",Bl,"/"+te(t(E)),1)):g("",!0)]),n(V,{type:"primary",link:"",onClick:t(he)},{default:a(()=>[h("\u6E05\u7A7A")]),_:1},8,["onClick"])]),s("div",Dl,[n(ue,{class:"ls-scrollbar"},{default:a(()=>[s("ul",$l,[(o(!0),c(T,null,G(t(P),l=>(o(),c("li",{class:"mb-4",key:l.id},[s("div",zl,[n(Ve,{onClose:x=>t(Te)(l.id)},{default:a(()=>[n(ce,{uri:l.uri,"file-size":"100px",type:e.type},null,8,["uri","type"])]),_:2},1032,["onClose"])])]))),128))])]),_:1})])])):g("",!0),n(Xt,{modelValue:t(i),"onUpdate:modelValue":v[10]||(v[10]=l=>U(i)?i.value=l:null),url:t(w),type:e.type},null,8,["modelValue","url","type"])])),[[Ke,t(D).loading]])}}});const Wl=me(Rl,[["__scopeId","data-v-9cc1892d"]]);export{ce as F,Wl as _,Xt as a}; diff --git a/dist/admin/assets/index.e0d25e29.js b/dist/admin/assets/index.4a30374d.js similarity index 92% rename from dist/admin/assets/index.e0d25e29.js rename to dist/admin/assets/index.4a30374d.js index d51328b8c..5a24b346b 100644 --- a/dist/admin/assets/index.e0d25e29.js +++ b/dist/admin/assets/index.4a30374d.js @@ -1 +1 @@ -import{C as S,D as T,w as j,F as A,L as I,M,N as q,O as K}from"./element-plus.5a7ba693.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{u as Q}from"./usePaging.6a6670f9.js";import{u as Z}from"./useDictOptions.61b0b5e7.js";import{d as z,e as G}from"./user_bill.149ba259.js";import"./lodash.60201f64.js";import{f as H}from"./index.8f2bbb36.js";import{_ as J}from"./edit.vue_vue_type_script_setup_true_name_userBillEdit_lang.47a679f0.js";import{d as F,s as W,r as h,Z as X,ap as Y,o as n,c as ee,U as e,L as a,u as t,R as d,M as v,K as _,a as k,j as te,Q as oe,n as ae}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.57c062db.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const le={class:"mt-4"},ie={class:"flex mt-4 justify-end"},se=F({name:"userBillLists"}),Ze=F({...se,setup(re){const f=W(),C=h(!1),u=X({uid:"",type:"",create_time:""}),g=h([]),B=i=>{g.value=i.map(({id:o})=>o)},{dictData:y}=Z(""),{pager:r,getLists:m,resetParams:D,resetPage:V}=Q({fetchFun:G,params:u}),x=async i=>{var o,p;C.value=!0,await ae(),(o=f.value)==null||o.open("edit"),(p=f.value)==null||p.setFormData(i)},L=async i=>{await H.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await z({id:i}),m()};return m(),(i,o)=>{const p=S,b=T,c=j,N=A,w=I,s=M,R=q,U=O,E=Y("perms"),$=K;return n(),ee("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(N,{class:"mb-[-16px]",model:t(u),inline:""},{default:a(()=>[e(b,{label:"\u7528\u6237uid",prop:"uid"},{default:a(()=>[e(p,{class:"w-[280px]",modelValue:t(u).uid,"onUpdate:modelValue":o[0]||(o[0]=l=>t(u).uid=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237uid"},null,8,["modelValue"])]),_:1}),e(b,null,{default:a(()=>[e(c,{type:"primary",onClick:t(V)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:t(D)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((n(),_(w,{class:"!border-none",shadow:"never"},{default:a(()=>[k("div",le,[e(R,{data:t(r).lists,onSelectionChange:B},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u660E\u7EC6\u7C7B\u578B",prop:"type","show-overflow-tooltip":""}),e(s,{label:"\u660E\u7EC6\u6570\u5B57",prop:"number","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[v((n(),_(c,{type:"primary",link:"",onClick:P=>x(l)},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[E,["user_bill.user_bill/edit"]]]),v((n(),_(c,{type:"danger",link:"",onClick:P=>L(l.id)},{default:a(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[E,["user_bill.user_bill/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",ie,[e(U,{modelValue:t(r),"onUpdate:modelValue":o[1]||(o[1]=l=>te(r)?r.value=l:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[$,t(r).loading]]),t(C)?(n(),_(J,{key:0,ref_key:"editRef",ref:f,"dict-data":t(y),onSuccess:t(m),onClose:o[2]||(o[2]=l=>C.value=!1)},null,8,["dict-data","onSuccess"])):oe("",!0)])}}});export{Ze as default}; +import{C as S,D as T,w as j,F as A,L as I,M,N as q,O as K}from"./element-plus.5a7ba693.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{u as Q}from"./usePaging.6a6670f9.js";import{u as Z}from"./useDictOptions.a3f298d7.js";import{d as z,e as G}from"./user_bill.fd1c87e4.js";import"./lodash.60201f64.js";import{f as H}from"./index.5c2d321b.js";import{_ as J}from"./edit.vue_vue_type_script_setup_true_name_userBillEdit_lang.7c9df12e.js";import{d as F,s as W,r as h,Z as X,ap as Y,o as n,c as ee,U as e,L as a,u as t,R as d,M as v,K as _,a as k,j as te,Q as oe,n as ae}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.b110836f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const le={class:"mt-4"},ie={class:"flex mt-4 justify-end"},se=F({name:"userBillLists"}),Ze=F({...se,setup(re){const f=W(),C=h(!1),u=X({uid:"",type:"",create_time:""}),g=h([]),B=i=>{g.value=i.map(({id:o})=>o)},{dictData:y}=Z(""),{pager:r,getLists:m,resetParams:D,resetPage:V}=Q({fetchFun:G,params:u}),x=async i=>{var o,p;C.value=!0,await ae(),(o=f.value)==null||o.open("edit"),(p=f.value)==null||p.setFormData(i)},L=async i=>{await H.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await z({id:i}),m()};return m(),(i,o)=>{const p=S,b=T,c=j,N=A,w=I,s=M,R=q,U=O,E=Y("perms"),$=K;return n(),ee("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(N,{class:"mb-[-16px]",model:t(u),inline:""},{default:a(()=>[e(b,{label:"\u7528\u6237uid",prop:"uid"},{default:a(()=>[e(p,{class:"w-[280px]",modelValue:t(u).uid,"onUpdate:modelValue":o[0]||(o[0]=l=>t(u).uid=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237uid"},null,8,["modelValue"])]),_:1}),e(b,null,{default:a(()=>[e(c,{type:"primary",onClick:t(V)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:t(D)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((n(),_(w,{class:"!border-none",shadow:"never"},{default:a(()=>[k("div",le,[e(R,{data:t(r).lists,onSelectionChange:B},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u660E\u7EC6\u7C7B\u578B",prop:"type","show-overflow-tooltip":""}),e(s,{label:"\u660E\u7EC6\u6570\u5B57",prop:"number","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[v((n(),_(c,{type:"primary",link:"",onClick:P=>x(l)},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[E,["user_bill.user_bill/edit"]]]),v((n(),_(c,{type:"danger",link:"",onClick:P=>L(l.id)},{default:a(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[E,["user_bill.user_bill/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",ie,[e(U,{modelValue:t(r),"onUpdate:modelValue":o[1]||(o[1]=l=>te(r)?r.value=l:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[$,t(r).loading]]),t(C)?(n(),_(J,{key:0,ref_key:"editRef",ref:f,"dict-data":t(y),onSuccess:t(m),onClose:o[2]||(o[2]=l=>C.value=!1)},null,8,["dict-data","onSuccess"])):oe("",!0)])}}});export{Ze as default}; diff --git a/dist/admin/assets/index.53568425.js b/dist/admin/assets/index.50858c5c.js similarity index 93% rename from dist/admin/assets/index.53568425.js rename to dist/admin/assets/index.50858c5c.js index 989f8cff3..ad2dcf337 100644 --- a/dist/admin/assets/index.53568425.js +++ b/dist/admin/assets/index.50858c5c.js @@ -1 +1 @@ -import{a2 as G,H,$ as J,J as Q,K as Z,D as W,w as X,F as Y,L as ee,M as te,b as oe,N as ae,O as le}from"./element-plus.5a7ba693.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.61b0b5e7.js";import{d as re}from"./system_store_storage.58c63762.js";import{a as ie}from"./system_store.17b13d2f.js";import"./lodash.60201f64.js";import"./index.8f2bbb36.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.cbf8329f.js";import{d as T,s as pe,r as f,Z as de,ap as _e,o as s,c as h,U as t,L as o,u as a,T as V,a9 as x,K as i,R as r,M as S,a as L,Q as B,j as ce,n as fe}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.57c062db.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const Ee={class:"mt-4"},ge={class:"flex mt-4 justify-end"},ve=T({name:"systemStoreStorageLists"}),ut=T({...ve,setup(Ce){const E=pe(),g=f(!1),n=de({store_id:"",admin_name:"",staff_name:"",status:"",type:1}),R=f([]),A=m=>{R.value=m.map(({id:l})=>l)},{dictData:N}=ne(""),{pager:p,getLists:v,resetParams:U,resetPage:_}=ue({fetchFun:re,params:n}),$=async m=>{var l,d;g.value=!0,await fe(),(l=E.value)==null||l.open("edit"),(d=E.value)==null||d.setFormData(m)};v();const c=f(!1),k=f([]),P=(m="")=>{c.value=!0,ie({name:m,page_size:50}).then(l=>{k.value=l.lists,setTimeout(()=>{c.value=!1},300)}).catch(l=>{setTimeout(()=>{c.value=!1},300)})};return(m,l)=>{const d=Q,F=Z,C=W,y=X,M=Y,w=ee,D=G,j=H,u=te,I=oe,b=J,K=ae,O=se,q=_e("perms"),z=le;return s(),h("div",null,[t(w,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(M,{class:"mb-[-16px]",model:a(n),inline:""},{default:o(()=>[t(C,{label:"\u95E8\u5E97",prop:"store_id"},{default:o(()=>[t(F,{modelValue:a(n).store_id,"onUpdate:modelValue":l[0]||(l[0]=e=>a(n).store_id=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:a(c),style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(!0),h(V,null,x(a(k),e=>(s(),i(d,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(C,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[t(F,{modelValue:a(n).status,"onUpdate:modelValue":l[1]||(l[1]=e=>a(n).status=e),placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22",style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(),h(V,null,x([{id:1,name:"\u5DF2\u5165\u5E93"},{id:0,name:"\u5F85\u786E\u8BA4"},{id:-1,name:"\u5E93\u5B58\u4E0D\u8DB3"}],e=>t(d,{key:e.id,label:e.name,value:e.id},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"])]),_:1}),t(C,null,{default:o(()=>[t(y,{type:"primary",onClick:a(_)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(y,{onClick:a(U)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),S((s(),i(w,{class:"!border-none",shadow:"never"},{default:o(()=>[t(j,{modelValue:a(n).type,"onUpdate:modelValue":l[2]||(l[2]=e=>a(n).type=e),onChange:a(_)},{default:o(()=>[t(D,{label:1,value:1},{default:o(()=>[r("\u552E\u5356\u5E93\u5B58")]),_:1}),t(D,{label:2,value:2},{default:o(()=>[r("\u5151\u6362\u5E93\u5B58")]),_:1})]),_:1},8,["modelValue","onChange"]),L("div",Ee,[t(K,{data:a(p).lists,onSelectionChange:A},{default:o(()=>[t(u,{label:"\u95E8\u5E97",prop:"system_store_name"}),t(u,{label:"\u5BFC\u5165\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),t(u,{label:"\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",prop:"staff_name","show-overflow-tooltip":""}),t(u,{label:"\u5546\u54C1\u56FE",prop:"image","show-overflow-tooltip":""},{default:o(({row:e})=>[t(I,{class:"w-[40px] h-[40px]",src:e.image},null,8,["src"])]),_:1}),t(u,{label:"\u5546\u54C1",prop:"store_name"}),t(u,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),t(u,{label:"\u72B6\u6001",prop:"status"},{default:o(({row:e})=>[e.status===1?(s(),i(b,{key:0,type:"success"},{default:o(()=>[r("\u5DF2\u5165\u5E93")]),_:1})):e.status===0?(s(),i(b,{key:1,type:"warning"},{default:o(()=>[r("\u5F85\u786E\u8BA4")]),_:1})):e.status===-1?(s(),i(b,{key:2,type:"danger"},{default:o(()=>[r("\u5E93\u5B58\u4E0D\u8DB3")]),_:1})):B("",!0)]),_:1}),t(u,{label:"\u5907\u6CE8",prop:"mark"}),t(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:e})=>[e.status!==1?S((s(),i(y,{key:0,type:"primary",link:"",onClick:ye=>$(e)},{default:o(()=>[r(" \u7F16\u8F91\u5E93\u5B58 ")]),_:2},1032,["onClick"])),[[q,["system_store_storage.system_store_storage/edit"]]]):B("",!0)]),_:1})]),_:1},8,["data"])]),L("div",ge,[t(O,{modelValue:a(p),"onUpdate:modelValue":l[3]||(l[3]=e=>ce(p)?p.value=e:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})),[[z,a(p).loading]]),a(g)?(s(),i(me,{key:0,ref_key:"editRef",ref:E,"dict-data":a(N),onSuccess:a(v),onClose:l[4]||(l[4]=e=>g.value=!1)},null,8,["dict-data","onSuccess"])):B("",!0)])}}});export{ut as default}; +import{a2 as G,H,$ as J,J as Q,K as Z,D as W,w as X,F as Y,L as ee,M as te,b as oe,N as ae,O as le}from"./element-plus.5a7ba693.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.a3f298d7.js";import{d as re}from"./system_store_storage.092ffc4b.js";import{a as ie}from"./system_store.02f99212.js";import"./lodash.60201f64.js";import"./index.5c2d321b.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.f0412643.js";import{d as T,s as pe,r as f,Z as de,ap as _e,o as s,c as h,U as t,L as o,u as a,T as V,a9 as x,K as i,R as r,M as S,a as L,Q as B,j as ce,n as fe}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.b110836f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const Ee={class:"mt-4"},ge={class:"flex mt-4 justify-end"},ve=T({name:"systemStoreStorageLists"}),ut=T({...ve,setup(Ce){const E=pe(),g=f(!1),n=de({store_id:"",admin_name:"",staff_name:"",status:"",type:1}),R=f([]),A=m=>{R.value=m.map(({id:l})=>l)},{dictData:N}=ne(""),{pager:p,getLists:v,resetParams:U,resetPage:_}=ue({fetchFun:re,params:n}),$=async m=>{var l,d;g.value=!0,await fe(),(l=E.value)==null||l.open("edit"),(d=E.value)==null||d.setFormData(m)};v();const c=f(!1),k=f([]),P=(m="")=>{c.value=!0,ie({name:m,page_size:50}).then(l=>{k.value=l.lists,setTimeout(()=>{c.value=!1},300)}).catch(l=>{setTimeout(()=>{c.value=!1},300)})};return(m,l)=>{const d=Q,F=Z,C=W,y=X,M=Y,w=ee,D=G,j=H,u=te,I=oe,b=J,K=ae,O=se,q=_e("perms"),z=le;return s(),h("div",null,[t(w,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(M,{class:"mb-[-16px]",model:a(n),inline:""},{default:o(()=>[t(C,{label:"\u95E8\u5E97",prop:"store_id"},{default:o(()=>[t(F,{modelValue:a(n).store_id,"onUpdate:modelValue":l[0]||(l[0]=e=>a(n).store_id=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:a(c),style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(!0),h(V,null,x(a(k),e=>(s(),i(d,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(C,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[t(F,{modelValue:a(n).status,"onUpdate:modelValue":l[1]||(l[1]=e=>a(n).status=e),placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22",style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(),h(V,null,x([{id:1,name:"\u5DF2\u5165\u5E93"},{id:0,name:"\u5F85\u786E\u8BA4"},{id:-1,name:"\u5E93\u5B58\u4E0D\u8DB3"}],e=>t(d,{key:e.id,label:e.name,value:e.id},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"])]),_:1}),t(C,null,{default:o(()=>[t(y,{type:"primary",onClick:a(_)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(y,{onClick:a(U)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),S((s(),i(w,{class:"!border-none",shadow:"never"},{default:o(()=>[t(j,{modelValue:a(n).type,"onUpdate:modelValue":l[2]||(l[2]=e=>a(n).type=e),onChange:a(_)},{default:o(()=>[t(D,{label:1,value:1},{default:o(()=>[r("\u552E\u5356\u5E93\u5B58")]),_:1}),t(D,{label:2,value:2},{default:o(()=>[r("\u5151\u6362\u5E93\u5B58")]),_:1})]),_:1},8,["modelValue","onChange"]),L("div",Ee,[t(K,{data:a(p).lists,onSelectionChange:A},{default:o(()=>[t(u,{label:"\u95E8\u5E97",prop:"system_store_name"}),t(u,{label:"\u5BFC\u5165\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),t(u,{label:"\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",prop:"staff_name","show-overflow-tooltip":""}),t(u,{label:"\u5546\u54C1\u56FE",prop:"image","show-overflow-tooltip":""},{default:o(({row:e})=>[t(I,{class:"w-[40px] h-[40px]",src:e.image},null,8,["src"])]),_:1}),t(u,{label:"\u5546\u54C1",prop:"store_name"}),t(u,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),t(u,{label:"\u72B6\u6001",prop:"status"},{default:o(({row:e})=>[e.status===1?(s(),i(b,{key:0,type:"success"},{default:o(()=>[r("\u5DF2\u5165\u5E93")]),_:1})):e.status===0?(s(),i(b,{key:1,type:"warning"},{default:o(()=>[r("\u5F85\u786E\u8BA4")]),_:1})):e.status===-1?(s(),i(b,{key:2,type:"danger"},{default:o(()=>[r("\u5E93\u5B58\u4E0D\u8DB3")]),_:1})):B("",!0)]),_:1}),t(u,{label:"\u5907\u6CE8",prop:"mark"}),t(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:e})=>[e.status!==1?S((s(),i(y,{key:0,type:"primary",link:"",onClick:ye=>$(e)},{default:o(()=>[r(" \u7F16\u8F91\u5E93\u5B58 ")]),_:2},1032,["onClick"])),[[q,["system_store_storage.system_store_storage/edit"]]]):B("",!0)]),_:1})]),_:1},8,["data"])]),L("div",ge,[t(O,{modelValue:a(p),"onUpdate:modelValue":l[3]||(l[3]=e=>ce(p)?p.value=e:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})),[[z,a(p).loading]]),a(g)?(s(),i(me,{key:0,ref_key:"editRef",ref:E,"dict-data":a(N),onSuccess:a(v),onClose:l[4]||(l[4]=e=>g.value=!1)},null,8,["dict-data","onSuccess"])):B("",!0)])}}});export{ut as default}; diff --git a/build/admin/assets/index.ed2f9206.js b/dist/admin/assets/index.50f8b5af.js similarity index 92% rename from build/admin/assets/index.ed2f9206.js rename to dist/admin/assets/index.50f8b5af.js index 791a3a3bc..b19b571bd 100644 --- a/build/admin/assets/index.ed2f9206.js +++ b/dist/admin/assets/index.50f8b5af.js @@ -1 +1 @@ -import{_ as J,$ as Q,J as Z,K as G,D as H,w as W,F as X,L as ee,M as te,b as oe,N as ae,O as le}from"./element-plus.5a7ba693.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{u as ne}from"./usePaging.6a6670f9.js";import{u as re}from"./useDictOptions.861789c2.js";import{d as ue}from"./store_cash_finance_flow.a3a00c8a.js";import"./lodash.60201f64.js";import"./index.0f3999b9.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.3480d7ed.js";import{a as me}from"./system_store.ef314547.js";import{h}from"./moment.40bc58bf.js";import{d as V,s as pe,r as c,Z as ce,ap as de,o as r,c as F,U as t,L as a,u as l,T as _e,a9 as fe,K as m,j as Y,R as d,M as x,a as M,Q as ve,n as he}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.8e65e14b.js";import"./index.20e08dec.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.34ce7228.js";import"./index.46f20ae4.js";import"./vuedraggable.d1fd737a.js";import"./vue.feef8fd6.js";import"./sortablejs.c8f4cbb7.js";const De={key:1},Ee={class:"flex mt-4 justify-end"},we=V({name:"storeCashFinanceFlowLists"}),ft=V({...we,setup(ge){const B=[{text:"\u8FD1\u4E00\u5468",value:()=>{const s=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,s]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const s=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,s]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const s=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,s]}}],D=pe(),E=c(!1),u=c([new Date,new Date]),i=ce({store_id:"",start_time:h(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:h(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"}),T=()=>{u.value[0]&&u.value[1]?(i.start_time=h(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",i.end_time=h(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(i.start_time="",i.end_time=""),_()},L=c([]),S=s=>{L.value=s.map(({id:e})=>e)},{dictData:N}=re(""),{pager:p,getLists:_,resetParams:P,resetPage:C}=ne({fetchFun:ue,params:i}),R=async s=>{var e,v;E.value=!0,await he(),(e=D.value)==null||e.open("edit"),(v=D.value)==null||v.setFormData(s)};_();const f=c(!1),b=c([]),$=(s="")=>{f.value=!0,me({name:s,page_size:50}).then(e=>{b.value=e.lists,setTimeout(()=>{f.value=!1},300)}).catch(e=>{setTimeout(()=>{f.value=!1},300)})};return(s,e)=>{const v=Z,A=G,w=H,U=J,g=W,I=X,k=ee,n=te,j=oe,y=Q,K=ae,O=se,q=de("perms"),z=le;return r(),F("div",null,[t(k,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(I,{class:"mb-[-16px]",model:l(i),inline:""},{default:a(()=>[t(w,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[t(A,{modelValue:l(i).store_id,"onUpdate:modelValue":e[0]||(e[0]=o=>l(i).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":$,loading:l(f),style:{width:"240px"},onChange:l(C)},{default:a(()=>[(r(!0),F(_e,null,fe(l(b),o=>(r(),m(v,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(w,{label:"\u65F6\u95F4\u8303\u56F4",prop:"create_time"},{default:a(()=>[t(U,{modelValue:l(u),"onUpdate:modelValue":e[1]||(e[1]=o=>Y(u)?u.value=o:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:B,onChange:T},null,8,["modelValue"])]),_:1}),t(w,null,{default:a(()=>[t(g,{type:"primary",onClick:l(C)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(g,{onClick:l(P)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),x((r(),m(k,{class:"!border-none",shadow:"never"},{default:a(()=>[M("div",null,[t(K,{data:l(p).lists,onSelectionChange:S},{default:a(()=>[t(n,{label:"ID",prop:"id","show-overflow-tooltip":""}),t(n,{label:"\u95E8\u5E97",prop:"store_name","show-overflow-tooltip":""}),t(n,{label:"\u4EA4\u6613\u91D1\u989D",prop:"cash_price","show-overflow-tooltip":""}),t(n,{label:"\u5E94\u6536\u91D1\u989D",prop:"receivable","show-overflow-tooltip":""}),t(n,{label:"\u5B9E\u6536\u91D1\u989D",prop:"receipts","show-overflow-tooltip":""}),t(n,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_id","show-overflow-tooltip":""}),t(n,{label:"\u56FE\u7247",prop:"file"},{default:a(({row:o})=>[o.file&&o.file!=0?(r(),m(j,{key:0,style:{width:"50px",height:"50px"},src:o.file,"preview-teleported":!0},null,8,["src"])):(r(),F("span",De,"\u5F85\u4E0A\u4F20"))]),_:1}),t(n,{label:"\u5907\u6CE8",prop:"remark"}),t(n,{label:"\u72B6\u6001",prop:"status"},{default:a(({row:o})=>[o.status==0?(r(),m(y,{key:0,type:"danger"},{default:a(()=>[d("\u5F85\u5904\u7406")]),_:1})):(r(),m(y,{key:1,type:"success"},{default:a(()=>[d("\u5DF2\u786E\u8BA4")]),_:1}))]),_:1}),t(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:o})=>[x((r(),m(g,{type:"primary",link:"",onClick:Fe=>R(o)},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[q,["store_cash_finance_flow.store_cash_finance_flow/edit"]]])]),_:1})]),_:1},8,["data"])]),M("div",Ee,[t(O,{modelValue:l(p),"onUpdate:modelValue":e[2]||(e[2]=o=>Y(p)?p.value=o:null),onChange:l(_)},null,8,["modelValue","onChange"])])]),_:1})),[[z,l(p).loading]]),l(E)?(r(),m(ie,{key:0,ref_key:"editRef",ref:D,"dict-data":l(N),onSuccess:l(_),onClose:e[3]||(e[3]=o=>E.value=!1)},null,8,["dict-data","onSuccess"])):ve("",!0)])}}});export{ft as default}; +import{_ as J,$ as Q,J as Z,K as G,D as H,w as W,F as X,L as ee,M as te,b as oe,N as ae,O as le}from"./element-plus.5a7ba693.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{u as ne}from"./usePaging.6a6670f9.js";import{u as re}from"./useDictOptions.a3f298d7.js";import{d as ue}from"./store_cash_finance_flow.f9eb7fb5.js";import"./lodash.60201f64.js";import"./index.5c2d321b.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.e01c9d0b.js";import{a as me}from"./system_store.02f99212.js";import{h}from"./moment.40bc58bf.js";import{d as V,s as pe,r as c,Z as ce,ap as de,o as r,c as F,U as t,L as a,u as l,T as _e,a9 as fe,K as m,j as Y,R as d,M as x,a as M,Q as ve,n as he}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.ff602e29.js";import"./index.b110836f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.4a2655b0.js";import"./index.0b1a8ccb.js";import"./vuedraggable.d1fd737a.js";import"./vue.feef8fd6.js";import"./sortablejs.c8f4cbb7.js";const De={key:1},Ee={class:"flex mt-4 justify-end"},we=V({name:"storeCashFinanceFlowLists"}),ft=V({...we,setup(ge){const B=[{text:"\u8FD1\u4E00\u5468",value:()=>{const s=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,s]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const s=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,s]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const s=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,s]}}],D=pe(),E=c(!1),u=c([new Date,new Date]),i=ce({store_id:"",start_time:h(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:h(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"}),T=()=>{u.value[0]&&u.value[1]?(i.start_time=h(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",i.end_time=h(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(i.start_time="",i.end_time=""),_()},L=c([]),S=s=>{L.value=s.map(({id:e})=>e)},{dictData:N}=re(""),{pager:p,getLists:_,resetParams:P,resetPage:C}=ne({fetchFun:ue,params:i}),R=async s=>{var e,v;E.value=!0,await he(),(e=D.value)==null||e.open("edit"),(v=D.value)==null||v.setFormData(s)};_();const f=c(!1),b=c([]),$=(s="")=>{f.value=!0,me({name:s,page_size:50}).then(e=>{b.value=e.lists,setTimeout(()=>{f.value=!1},300)}).catch(e=>{setTimeout(()=>{f.value=!1},300)})};return(s,e)=>{const v=Z,A=G,w=H,U=J,g=W,I=X,k=ee,n=te,j=oe,y=Q,K=ae,O=se,q=de("perms"),z=le;return r(),F("div",null,[t(k,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(I,{class:"mb-[-16px]",model:l(i),inline:""},{default:a(()=>[t(w,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[t(A,{modelValue:l(i).store_id,"onUpdate:modelValue":e[0]||(e[0]=o=>l(i).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":$,loading:l(f),style:{width:"240px"},onChange:l(C)},{default:a(()=>[(r(!0),F(_e,null,fe(l(b),o=>(r(),m(v,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(w,{label:"\u65F6\u95F4\u8303\u56F4",prop:"create_time"},{default:a(()=>[t(U,{modelValue:l(u),"onUpdate:modelValue":e[1]||(e[1]=o=>Y(u)?u.value=o:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:B,onChange:T},null,8,["modelValue"])]),_:1}),t(w,null,{default:a(()=>[t(g,{type:"primary",onClick:l(C)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(g,{onClick:l(P)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),x((r(),m(k,{class:"!border-none",shadow:"never"},{default:a(()=>[M("div",null,[t(K,{data:l(p).lists,onSelectionChange:S},{default:a(()=>[t(n,{label:"ID",prop:"id","show-overflow-tooltip":""}),t(n,{label:"\u95E8\u5E97",prop:"store_name","show-overflow-tooltip":""}),t(n,{label:"\u4EA4\u6613\u91D1\u989D",prop:"cash_price","show-overflow-tooltip":""}),t(n,{label:"\u5E94\u6536\u91D1\u989D",prop:"receivable","show-overflow-tooltip":""}),t(n,{label:"\u5B9E\u6536\u91D1\u989D",prop:"receipts","show-overflow-tooltip":""}),t(n,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_id","show-overflow-tooltip":""}),t(n,{label:"\u56FE\u7247",prop:"file"},{default:a(({row:o})=>[o.file&&o.file!=0?(r(),m(j,{key:0,style:{width:"50px",height:"50px"},src:o.file,"preview-teleported":!0},null,8,["src"])):(r(),F("span",De,"\u5F85\u4E0A\u4F20"))]),_:1}),t(n,{label:"\u5907\u6CE8",prop:"remark"}),t(n,{label:"\u72B6\u6001",prop:"status"},{default:a(({row:o})=>[o.status==0?(r(),m(y,{key:0,type:"danger"},{default:a(()=>[d("\u5F85\u5904\u7406")]),_:1})):(r(),m(y,{key:1,type:"success"},{default:a(()=>[d("\u5DF2\u786E\u8BA4")]),_:1}))]),_:1}),t(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:o})=>[x((r(),m(g,{type:"primary",link:"",onClick:Fe=>R(o)},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[q,["store_cash_finance_flow.store_cash_finance_flow/edit"]]])]),_:1})]),_:1},8,["data"])]),M("div",Ee,[t(O,{modelValue:l(p),"onUpdate:modelValue":e[2]||(e[2]=o=>Y(p)?p.value=o:null),onChange:l(_)},null,8,["modelValue","onChange"])])]),_:1})),[[z,l(p).loading]]),l(E)?(r(),m(ie,{key:0,ref_key:"editRef",ref:D,"dict-data":l(N),onSuccess:l(_),onClose:e[3]||(e[3]=o=>E.value=!1)},null,8,["dict-data","onSuccess"])):ve("",!0)])}}});export{ft as default}; diff --git a/dist/admin/assets/index.545de941.js b/dist/admin/assets/index.545de941.js new file mode 100644 index 000000000..45597e3cd --- /dev/null +++ b/dist/admin/assets/index.545de941.js @@ -0,0 +1 @@ +import{a2 as Z,H as W,J as X,K as Y,D as ee,C as oe,w as te,F as le,L as ae,M as se,b as ue,t as ne,N as re,O as ie}from"./element-plus.5a7ba693.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{d as U,s as me,r as d,Z as de,ap as ce,o as i,c as y,U as e,L as l,u as t,T as _e,a9 as fe,K as h,aa as D,R as r,M as x,j as S,a as L,Q as ve,n as be}from"./@vue.18505fe0.js";import{u as he}from"./usePaging.6a6670f9.js";import{u as we}from"./useDictOptions.a3f298d7.js";import{b as Ce,d as Ee}from"./store_branch_product.d429d02f.js";import"./lodash.60201f64.js";import{a as ge}from"./system_store.02f99212.js";import"./index.5c2d321b.js";import{_ as Fe}from"./edit.vue_vue_type_script_setup_true_name_storeBranchProductEdit_lang.54060f4f.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.ff602e29.js";import"./index.b110836f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.4a2655b0.js";import"./index.0b1a8ccb.js";import"./vuedraggable.d1fd737a.js";import"./vue.feef8fd6.js";import"./sortablejs.c8f4cbb7.js";import"./store_product_unit.a88fee37.js";const Be={class:"mt-4"},Ve={class:"flex mt-4 justify-end"},ke=U({name:"storeBranchProductLists"}),Eo=U({...ke,setup(ye){const w=me(),C=d(!1),u=de({store_id:"",store_name:"",bar_code:"",exchange:0,status:null,stock:null}),P=d([]),K=s=>{P.value=s.map(({id:a})=>a)},{dictData:R}=we(""),{pager:p,getLists:c,resetParams:T,resetPage:_}=he({fetchFun:Ee,params:u}),N=async s=>{var a,v;C.value=!0,await be(),(a=w.value)==null||a.open("edit"),(v=w.value)==null||v.setFormData(s)};c();const f=d(!1),B=d([]),$=(s="")=>{f.value=!0,ge({name:s,page_size:50}).then(a=>{B.value=a.lists,setTimeout(()=>{f.value=!1},300)}).catch(a=>{setTimeout(()=>{f.value=!1},300)})},I=s=>{Ce({id:s.id,store_name:s.store_name,image:s.image,price:s.price,unit:s.unit,status:s.status})},E=d("0"),A=s=>{s==0?(u.status=null,u.stock=null):s==1?(u.status=1,u.stock=null):s==2?(u.status=0,u.stock=null):s==3?(u.status=null,u.stock=10):s==4&&(u.status=null,u.stock=0),c()};return(s,a)=>{const v=X,M=Y,b=ee,V=oe,g=te,j=le,k=ae,m=Z,z=W,n=se,O=ue,q=ne,G=re,H=pe,J=ce("prems"),Q=ie;return i(),y("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(j,{class:"mb-[-16px]",model:t(u),inline:""},{default:l(()=>[e(b,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(M,{modelValue:t(u).store_id,"onUpdate:modelValue":a[0]||(a[0]=o=>t(u).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":$,loading:t(f),style:{width:"240px"},onChange:t(_)},{default:l(()=>[(i(!0),y(_e,null,fe(t(B),o=>(i(),h(v,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(b,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:t(u).store_name,"onUpdate:modelValue":a[1]||(a[1]=o=>t(u).store_name=o),onKeydown:D(t(_),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(b,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:t(u).bar_code,"onUpdate:modelValue":a[2]||(a[2]=o=>t(u).bar_code=o),onKeydown:D(t(_),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue","onKeydown"])]),_:1}),e(b,null,{default:l(()=>[e(g,{type:"primary",onClick:t(_)},{default:l(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(g,{onClick:t(T)},{default:l(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),x((i(),h(k,{class:"!border-none",shadow:"never"},{default:l(()=>[e(z,{modelValue:t(E),"onUpdate:modelValue":a[3]||(a[3]=o=>S(E)?E.value=o:null),onChange:A},{default:l(()=>[e(m,{label:"0"},{default:l(()=>[r("\u5168\u90E8")]),_:1}),e(m,{label:"1"},{default:l(()=>[r("\u4E0A\u67B6")]),_:1}),e(m,{label:"2"},{default:l(()=>[r("\u4E0B\u67B6")]),_:1}),e(m,{label:"3"},{default:l(()=>[r("\u5E93\u5B58\u8B66\u544A")]),_:1}),e(m,{label:"4"},{default:l(()=>[r("\u5DF2\u552E\u7F44")]),_:1})]),_:1},8,["modelValue"]),L("div",Be,[e(G,{data:t(p).lists,onSelectionChange:K},{default:l(()=>[e(n,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(n,{label:"\u95E8\u5E97",prop:"system_store_name","show-overflow-tooltip":""}),e(n,{label:"\u5206\u7C7B",prop:"cate_name","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","show-overflow-tooltip":""},{default:l(({row:o})=>[e(O,{class:"w-[40px] h-[40px]",src:o.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(n,{label:"\u4EF7\u683C",prop:"price","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code","show-overflow-tooltip":""}),e(n,{label:"\u9500\u91CF",prop:"sales","show-overflow-tooltip":""}),e(n,{label:"\u552E\u5356\u5E93\u5B58",prop:"stock","show-overflow-tooltip":""}),e(n,{label:"\u5151\u6362\u5E93\u5B58",prop:"swap","show-overflow-tooltip":""}),e(n,{label:"\u5355\u4F4D",prop:"unit_name","show-overflow-tooltip":""}),e(n,{label:"\u72B6\u6001",prop:"status"},{default:l(({row:o})=>[e(q,{size:"large",onChange:F=>I(o),modelValue:o.status,"onUpdate:modelValue":F=>o.status=F,"active-value":1,"inactive-value":0,"active-text":"\u4E0A\u67B6","inactive-text":"\u4E0B\u67B6","inline-prompt":""},null,8,["onChange","modelValue","onUpdate:modelValue"])]),_:1}),e(n,{label:"\u64CD\u4F5C","min-width":"140",fixed:"right",align:"center","show-overflow-tooltip":""},{default:l(({row:o})=>[x((i(),h(g,{type:"primary",link:"",onClick:F=>N(o)},{default:l(()=>[r("\u7F16\u8F91")]),_:2},1032,["onClick"])),[[J,["store_branch_product.store_branch_product/deit"]]])]),_:1})]),_:1},8,["data"])]),L("div",Ve,[e(H,{modelValue:t(p),"onUpdate:modelValue":a[4]||(a[4]=o=>S(p)?p.value=o:null),onChange:t(c)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,t(p).loading]]),t(C)?(i(),h(Fe,{key:0,ref_key:"editRef",ref:w,"dict-data":t(R),onSuccess:t(c),onClose:a[5]||(a[5]=o=>C.value=!1)},null,8,["dict-data","onSuccess"])):ve("",!0)])}}});export{Eo as default}; diff --git a/build/admin/assets/index.c7478a77.js b/dist/admin/assets/index.5b102f96.js similarity index 91% rename from build/admin/assets/index.c7478a77.js rename to dist/admin/assets/index.5b102f96.js index 50cf41509..91ac39ce0 100644 --- a/build/admin/assets/index.c7478a77.js +++ b/dist/admin/assets/index.5b102f96.js @@ -1 +1 @@ -import{D as R,w as S,F as N,L as U,M as q,N as $,O as j}from"./element-plus.5a7ba693.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.efb70876.js";import{u as I}from"./usePaging.6a6670f9.js";import{u as K}from"./useDictOptions.861789c2.js";import{d as O}from"./user_product_storage_log.482e133c.js";import"./lodash.60201f64.js";import"./index.0f3999b9.js";import{_ as Q}from"./edit.vue_vue_type_script_setup_true_name_userProductStorageLogEdit_lang.bfdb0bd9.js";import{u as Z}from"./vue-router.101084e3.js";import{d as E,s as z,r as w,Z as G,o as p,c as H,U as o,L as r,u as t,R as g,M as J,K as C,a as b,j as W,Q as X}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.20e08dec.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const Y={class:"flex mt-4 justify-end"},oo=E({name:"userProductStorageLogLists"}),Io=E({...oo,setup(to){var u;const h=z(),d=w(!1),a=G({create_time:"",start_time:"",end_time:"",oid:"",product_id:""}),l=Z();(u=l.query)!=null&&u.oid&&(a.oid=l.query.oid,a.product_id=l.query.product_id);const k=w([]),y=c=>{k.value=c.map(({id:e})=>e)},{dictData:T}=K(""),{pager:n,getLists:m,resetParams:B,resetPage:L}=I({fetchFun:O,params:a});return m(),(c,e)=>{const D=A,_=R,f=S,V=N,v=U,i=q,x=$,F=M,P=j;return p(),H("div",null,[o(v,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[o(V,{class:"mb-[-16px]",model:t(a),inline:""},{default:r(()=>[o(_,{label:"",prop:"create_time"},{default:r(()=>[o(D,{startTime:t(a).start_time,"onUpdate:startTime":e[0]||(e[0]=s=>t(a).start_time=s),endTime:t(a).end_time,"onUpdate:endTime":e[1]||(e[1]=s=>t(a).end_time=s)},null,8,["startTime","endTime"])]),_:1}),o(_,null,{default:r(()=>[o(f,{type:"primary",onClick:t(L)},{default:r(()=>[g("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(f,{onClick:t(B)},{default:r(()=>[g("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),J((p(),C(v,{class:"!border-none",shadow:"never"},{default:r(()=>[b("div",null,[o(x,{data:t(n).lists,onSelectionChange:y},{default:r(()=>[o(i,{label:"\u8BA2\u5355id",prop:"oid","show-overflow-tooltip":""}),o(i,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":""}),o(i,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),o(i,{label:"\u95E8\u5E97",prop:"system_store_name","show-overflow-tooltip":""}),o(i,{label:"\u72B6\u6001",prop:"financial_pm","show-overflow-tooltip":""}),o(i,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""})]),_:1},8,["data"])]),b("div",Y,[o(F,{modelValue:t(n),"onUpdate:modelValue":e[2]||(e[2]=s=>W(n)?n.value=s:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[P,t(n).loading]]),t(d)?(p(),C(Q,{key:0,ref_key:"editRef",ref:h,"dict-data":t(T),onSuccess:t(m),onClose:e[3]||(e[3]=s=>d.value=!1)},null,8,["dict-data","onSuccess"])):X("",!0)])}}});export{Io as default}; +import{D as R,w as S,F as N,L as U,M as q,N as $,O as j}from"./element-plus.5a7ba693.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.efb70876.js";import{u as I}from"./usePaging.6a6670f9.js";import{u as K}from"./useDictOptions.a3f298d7.js";import{d as O}from"./user_product_storage_log.1be1b506.js";import"./lodash.60201f64.js";import"./index.5c2d321b.js";import{_ as Q}from"./edit.vue_vue_type_script_setup_true_name_userProductStorageLogEdit_lang.c7ecef09.js";import{u as Z}from"./vue-router.101084e3.js";import{d as E,s as z,r as w,Z as G,o as p,c as H,U as o,L as r,u as t,R as g,M as J,K as C,a as b,j as W,Q as X}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.b110836f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const Y={class:"flex mt-4 justify-end"},oo=E({name:"userProductStorageLogLists"}),Io=E({...oo,setup(to){var u;const h=z(),d=w(!1),a=G({create_time:"",start_time:"",end_time:"",oid:"",product_id:""}),l=Z();(u=l.query)!=null&&u.oid&&(a.oid=l.query.oid,a.product_id=l.query.product_id);const k=w([]),y=c=>{k.value=c.map(({id:e})=>e)},{dictData:T}=K(""),{pager:n,getLists:m,resetParams:B,resetPage:L}=I({fetchFun:O,params:a});return m(),(c,e)=>{const D=A,_=R,f=S,V=N,v=U,i=q,x=$,F=M,P=j;return p(),H("div",null,[o(v,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[o(V,{class:"mb-[-16px]",model:t(a),inline:""},{default:r(()=>[o(_,{label:"",prop:"create_time"},{default:r(()=>[o(D,{startTime:t(a).start_time,"onUpdate:startTime":e[0]||(e[0]=s=>t(a).start_time=s),endTime:t(a).end_time,"onUpdate:endTime":e[1]||(e[1]=s=>t(a).end_time=s)},null,8,["startTime","endTime"])]),_:1}),o(_,null,{default:r(()=>[o(f,{type:"primary",onClick:t(L)},{default:r(()=>[g("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(f,{onClick:t(B)},{default:r(()=>[g("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),J((p(),C(v,{class:"!border-none",shadow:"never"},{default:r(()=>[b("div",null,[o(x,{data:t(n).lists,onSelectionChange:y},{default:r(()=>[o(i,{label:"\u8BA2\u5355id",prop:"oid","show-overflow-tooltip":""}),o(i,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":""}),o(i,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),o(i,{label:"\u95E8\u5E97",prop:"system_store_name","show-overflow-tooltip":""}),o(i,{label:"\u72B6\u6001",prop:"financial_pm","show-overflow-tooltip":""}),o(i,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""})]),_:1},8,["data"])]),b("div",Y,[o(F,{modelValue:t(n),"onUpdate:modelValue":e[2]||(e[2]=s=>W(n)?n.value=s:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[P,t(n).loading]]),t(d)?(p(),C(Q,{key:0,ref_key:"editRef",ref:h,"dict-data":t(T),onSuccess:t(m),onClose:e[3]||(e[3]=s=>d.value=!1)},null,8,["dict-data","onSuccess"])):X("",!0)])}}});export{Io as default}; diff --git a/dist/admin/assets/index.5c2d321b.js b/dist/admin/assets/index.5c2d321b.js new file mode 100644 index 000000000..56e55abc9 --- /dev/null +++ b/dist/admin/assets/index.5c2d321b.js @@ -0,0 +1 @@ +var u6=Object.defineProperty;var v6=(a,o,e)=>o in a?u6(a,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[o]=e;var N=(a,o,e)=>(v6(a,typeof o!="symbol"?o+"":o,e),e);import{u as r,q as q3,d as A,b as p,o as v,c as g,U as h,L as _,a as m,K as w,aR as p6,P as F3,Q as B,af as l3,s as _6,r as V3,I as x3,S as e3,a0 as c3,M as G3,V as U3,O as Y3,W as y6,H as z6,ak as b6,al as g6,h as A6,T as W,a9 as t3,j as D,w as W3,R as F,bl as M6,bk as w6,n as f6,i as V6,as as x6}from"./@vue.18505fe0.js";import{E as Z3,u as H6,a as L6,i as C6,b as E6,c as B6,d as T6,e as R6,f as O6,g as X3,h as I6,j as D6,k as s3,l as U,m as n3,n as S6,o as P6,p as $3,q as K3,r as J3,s as k6,t as j6,v as N6,w as q6,x as F6,y as G6,z as U6,A as Y6}from"./element-plus.5a7ba693.js";import{u as W6,l as Z6,m as Q3,n as X6,p as $6,e as K6}from"./@vueuse.fbc6a400.js";import{l as T}from"./lodash.60201f64.js";import{b as a6,d as r3}from"./axios.2b8d80bd.js";import{u as H3,a as L3,c as J6,b as Q6,R as g3}from"./vue-router.101084e3.js";import{d as v3,c as a1}from"./pinia.a969beab.js";import{l as o1}from"./css-color-function.b82a2ce7.js";import{H as o6}from"./@element-plus.edbd5a83.js";import{N as q}from"./nprogress.495afef3.js";import{u as e1}from"./vue-clipboard3.cb649e18.js";import{u as l1,a as c1,b as t1,c as i1,d as s1,e as n1,f as r1,g as h1,h as m1,j as d1,k as u1,l as v1,m as p1,n as _1,o as y1,p as z1,q as b1,r as g1,s as A1,v as M1,w as w1,x as f1,y as V1,z as x1,A as H1}from"./echarts.5016c48c.js";import{a as L1}from"./highlight.js.31cd7941.js";import{o as C1}from"./@highlightjs.b0c09b66.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./dayjs.8ae0c638.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./clipboard.4592e390.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const t of c)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&l(s)}).observe(document,{childList:!0,subtree:!0});function e(c){const t={};return c.integrity&&(t.integrity=c.integrity),c.referrerpolicy&&(t.referrerPolicy=c.referrerpolicy),c.crossorigin==="use-credentials"?t.credentials="include":c.crossorigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(c){if(c.ep)return;c.ep=!0;const t=e(c);fetch(c.href,t)}})();const Y={terminal:1,title:"\u540E\u53F0\u7BA1\u7406\u7CFB\u7EDF",version:"1.5.0",baseUrl:"https://test-multi-store.lihaink.cn/",urlPrefix:"admin",timeout:10*1e3};var e6=(a=>(a.JSON="application/json;charset=UTF-8",a.FORM_DATA="multipart/form-data;charset=UTF-8",a))(e6||{}),a3=(a=>(a.GET="GET",a.POST="POST",a))(a3||{}),Q=(a=>(a[a.SUCCESS=1]="SUCCESS",a[a.FAIL=0]="FAIL",a[a.LOGIN_FAILURE=-1]="LOGIN_FAILURE",a[a.OPEN_NEW_PAGE=2]="OPEN_NEW_PAGE",a))(Q||{});const J=new Map,T3=class{static createInstance(){var o;return(o=this.instance)!=null?o:this.instance=new T3}add(o){const e=o.url;this.remove(e),o.cancelToken=new a6.CancelToken(l=>{J.has(e)||J.set(e,l)})}remove(o){if(J.has(o)){const e=J.get(o);e&&e(o),J.delete(o)}}};let h3=T3;N(h3,"instance");const O3=h3.createInstance();class E1{constructor(o){N(this,"axiosInstance");N(this,"config");N(this,"options");this.config=o,this.options=o.requestOptions,this.axiosInstance=a6.create(o),this.setupInterceptors()}getAxiosInstance(){return this.axiosInstance}setupInterceptors(){if(!this.config.axiosHooks)return;const{requestInterceptorsHook:o,requestInterceptorsCatchHook:e,responseInterceptorsHook:l,responseInterceptorsCatchHook:c}=this.config.axiosHooks;this.axiosInstance.interceptors.request.use(t=>(this.addCancelToken(t),T.exports.isFunction(o)&&(t=o(t)),t),t=>(T.exports.isFunction(e)&&e(t),t)),this.axiosInstance.interceptors.response.use(t=>(this.removeCancelToken(t.config.url),T.exports.isFunction(l)&&(t=l(t)),t),t=>{var s;return T.exports.isFunction(c)&&c(t),t.code!=r3.exports.AxiosError.ERR_CANCELED&&this.removeCancelToken((s=t.config)==null?void 0:s.url),t.code==r3.exports.AxiosError.ECONNABORTED||t.code==r3.exports.AxiosError.ERR_NETWORK?new Promise(n=>setTimeout(n,500)).then(()=>this.retryRequest(t)):Promise.reject(t)})}addCancelToken(o){const{ignoreCancelToken:e}=o.requestOptions;!e&&O3.add(o)}removeCancelToken(o){O3.remove(o)}retryRequest(o){var t,s;const e=o.config,{retryCount:l,isOpenRetry:c}=e.requestOptions;return!c||((t=e.method)==null?void 0:t.toUpperCase())==a3.POST||(e.retryCount=(s=e.retryCount)!=null?s:0,e.retryCount>=l)?Promise.reject(o):(e.retryCount++,this.axiosInstance.request(e))}get(o,e){return this.request({...o,method:a3.GET},e)}post(o,e){return this.request({...o,method:a3.POST},e)}request(o,e){const l=T.exports.merge({},this.options,e),c={...T.exports.cloneDeep(o),requestOptions:l},{urlPrefix:t}=l;return t&&(c.url=`${t}${o.url}`),new Promise((s,n)=>{this.axiosInstance.request(c).then(u=>{s(u)}).catch(u=>{n(u)})})}}const C3="token",H4="account",A3="setting",B1="modulepreload",T1=function(a){return"/admin/"+a},I3={},i=function(o,e,l){if(!e||e.length===0)return o();const c=document.getElementsByTagName("link");return Promise.all(e.map(t=>{if(t=T1(t),t in I3)return;I3[t]=!0;const s=t.endsWith(".css"),n=s?'[rel="stylesheet"]':"";if(!!l)for(let y=c.length-1;y>=0;y--){const z=c[y];if(z.href===t&&(!s||z.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${n}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":B1,s||(d.as="script",d.crossOrigin=""),d.href=t,document.head.appendChild(d),s)return new Promise((y,z)=>{d.addEventListener("load",y),d.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${t}`)))})})).then(()=>o())};var l6=(a=>(a.LIGHT="light",a.DARK="dark",a))(l6||{}),d3=(a=>(a.CATALOGUE="M",a.MENU="C",a.BUTTON="A",a))(d3||{}),M3=(a=>(a[a.SM=640]="SM",a[a.MD=768]="MD",a[a.LG=1024]="LG",a[a.XL=1280]="XL",a[a["2XL"]=1536]="2XL",a))(M3||{});function X(a){return/^(https?:|mailto:|tel:)/.test(a)}var L=(a=>(a.LOGIN="/login",a.ERROR_403="/403",a.INDEX="/",a))(L||{});const R1=(a,o)=>o.findIndex(e=>e.fullPath==a),O1=(a,o)=>{const{path:e,meta:l,name:c}=a;return!!(!e||X(e)||l!=null&&l.hideTab||!o.hasRoute(c)||[L.LOGIN,L.ERROR_403].includes(e))},I1=(a,o)=>o.findIndex(e=>e.fullPath===a),_3=a=>{var o,e,l;return(l=(e=(o=a.matched.at(-1))==null?void 0:o.components)==null?void 0:e.default)==null?void 0:l.name},c6=a=>{const{params:o,path:e,query:l}=a;return{params:o||{},path:e,query:l||{}}},i3=v3({id:"tabs",state:()=>({cacheTabList:new Set,tabList:[],tasMap:{},indexRouteName:""}),getters:{getTabList(){return this.tabList},getCacheTabList(){return Array.from(this.cacheTabList)}},actions:{setRouteName(a){this.indexRouteName=a},addCache(a){a&&this.cacheTabList.add(a)},removeCache(a){a&&this.cacheTabList.has(a)&&this.cacheTabList.delete(a)},clearCache(){this.cacheTabList.clear()},resetState(){this.cacheTabList=new Set,this.tabList=[],this.tasMap={},this.indexRouteName=""},addTab(a){const o=r(a.currentRoute),{name:e,query:l,meta:c,params:t,fullPath:s,path:n}=o;if(O1(o,a))return;const u=R1(s,this.tabList),d=_3(o),y={name:e,path:n,fullPath:s,title:c==null?void 0:c.title,query:l,params:t};this.tasMap[s]=y,c!=null&&c.keepAlive&&(console.log(d),this.addCache(d)),u==-1&&this.tabList.push(y)},removeTab(a,o){const{currentRoute:e,push:l}=o,c=I1(a,this.tabList);this.tabList.length>1&&c!==-1&&this.tabList.splice(c,1);const t=_3(e.value);if(this.removeCache(t),a!==e.value.fullPath)return;let s=null;c===0?s=this.tabList[c]:s=this.tabList[c-1];const n=c6(s);l(n)},removeOtherTab(a){this.tabList=this.tabList.filter(e=>e.fullPath==a.fullPath);const o=_3(a);this.cacheTabList.forEach(e=>{o!==e&&this.removeCache(e)})},removeAllTab(a){const{push:o,currentRoute:e}=a,{name:l}=r(e);if(l==this.indexRouteName){this.removeOtherTab(e.value);return}this.tabList=[],this.clearCache(),o(L.INDEX)}}}),y3={showCrumb:!0,showLogo:!0,isUniqueOpened:!0,sideWidth:200,sideTheme:"light",sideDarkColor:"#1d2124",openMultipleTabs:!0,theme:"#20B128",successTheme:"#67c23a",warningTheme:"#e6a23c",dangerTheme:"#f56c6c",errorTheme:"#f56c6c",infoTheme:"#909399"},Z={key:"like_admin_",set(a,o,e){a=this.getKey(a);let l={expire:e?this.time()+e:"",value:o};typeof l=="object"&&(l=JSON.stringify(l));try{window.localStorage.setItem(a,l)}catch{return null}},get(a){a=this.getKey(a);try{const o=window.localStorage.getItem(a);if(!o)return null;const{value:e,expire:l}=JSON.parse(o);return l&&l