mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-16 04:07:51 +00:00
1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
|
|
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1391,2180],{30469:function(e,t,i){i.d(t,{A_:function(){return p},PJ:function(){return m},mY:function(){return g},vf:function(){return u}});var r=i(90819),s=i.n(r),n=i(73193),a=i.n(n),o=i(89933),d=i.n(o),l=i(5488),c=i(14870);function u(e){return f.apply(this,arguments)}function f(){return(f=d()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/visitor/query/org",{method:"GET",params:a()(a()({},t),{},{channel:l.XtJ})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return v.apply(this,arguments)}function v(){return(v=d()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/visitor/update",{method:"POST",data:a()(a()({},t),{},{channel:l.XtJ})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return h.apply(this,arguments)}function h(){return(h=d()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/visitor/update/tagList",{method:"POST",data:a()(a()({},t),{},{channel:l.XtJ})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return x.apply(this,arguments)}function x(){return(x=d()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/visitor/delete",{method:"POST",data:a()(a()({},t),{},{channel:l.XtJ})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},50263:function(e,t,i){i.r(t);var r=i(90819),s=i.n(r),n=i(73193),a=i.n(n),o=i(89933),d=i.n(o),l=i(45332),c=i.n(l),u=i(44194),f=i(72207),m=i(27904),v=i(20903),g=i(49260),h=i(68349),p=i(45681),x=i(88344),b=i(49616),j=i(5780),M=i(79401),y=i(32973),k=i(78875),Z=i(20228),w=i(65532),Y=i(53504),S=i(93892),O=i(61155),P=i(27259),D=i(10022),A=i(5321),L=i(59304),V=i(54881),C=i(80556),I=i(86994),F=i(48004),R=i(74840),z=i(34599),B=i(30469),q=i(28977),J=i.n(q),T=i(14870),E=i(31549),H=f.default.RangePicker;m.Z.Option;t.default=function(){var e=(0,T.useIntl)(),t=(0,z.u)((function(e){return e.currentOrg})),i=(0,u.useState)(!1),r=c()(i,2),n=r[0],o=r[1],l=(0,u.useState)(null),f=c()(l,2),q=f[0],U=f[1],W=(0,u.useState)([]),X=c()(W,2),N=X[0],G=X[1],_=(0,u.useState)(0),K=c()(_,2),Q=K[0],$=K[1],ee=(0,u.useState)(1),te=c()(ee,2),ie=te[0],re=te[1],se=(0,u.useState)(10),ne=c()(se,2),ae=ne[0],oe=ne[1],de=(0,u.useState)({pageNumber:1,pageSize:10,orgUid:null==t?void 0:t.uid}),le=c()(de,2),ce=le[0],ue=le[1],fe=(0,u.useState)("today"),me=c()(fe,2),ve=me[0],ge=me[1],he=(0,u.useState)(J()().startOf("day")),pe=c()(he,2),xe=pe[0],be=pe[1],je=(0,u.useState)(J()().endOf("day")),Me=c()(je,2),ye=Me[0],ke=Me[1],Ze=(0,u.useState)([J()().startOf("day"),J()().endOf("day")]),we=c()(Ze,2),Ye=we[0],Se=we[1],Oe=(0,u.useState)({totalVisitors:0,newVisitors:0,oldVisitors:0,resolutionRate:0}),Pe=c()(Oe,2),De=Pe[0],Ae=Pe[1],Le=(0,u.useState)(!1),Ve=c()(Le,2),Ce=Ve[0],Ie=Ve[1],Fe=(0,u.useState)(null),Re=c()(Fe,2),ze=Re[0],Be=Re[1],qe=v.Z.useForm(),Je=c()(qe,1)[0],Te=[{label:(0,E.jsx)(T.FormattedMessage,{id:"ticket.statistic.timeRange.today"}),value:"today"},{label:(0,E.jsx)(T.FormattedMessage,{id:"ticket.statistic.timeRange.yesterday"}),value:"yesterday"},{label:(0,E.jsx)(T.FormattedMessage,{id:"ticket.statistic.timeRange.week"}),value:"week"},{label:(0,E.jsx)(T.FormattedMessage,{id:"ticket.statistic.timeRange.lastWeek"}),value:"lastWeek"},{label:(0,E.jsx)(T.FormattedMessage,{id:"ticket.statistic.timeRange.month"}),value:"month"},{label:(0,E.jsx)(T.FormattedMessage,{id:"ticket.statistic.timeRange.custom"}),value:"custom"}];(0,u.useEffect)((function(){if("custom"===ve)be(xe),ke(ye);else{var e=J()();"today"===ve?(be(e.startOf("day")),ke(e.endOf("day"))):"yesterday"===ve?(be(e.subtract(1,"day").startOf("day")),ke(e.subtract(1,"day").endOf("day"))):"week"===ve?(be(e.startOf("week")),ke(e.endOf("we
|