1 Star 0 Fork 0

jyanon/JunXunTong-CMS-prod

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
35.5686c52a.async.js 3.87 KB
一键复制 编辑 原始数据 按行查看 历史
jyanon 提交于 2022-04-20 15:41 . 部署
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[35],{"3mLc":function(e,t,a){"use strict";a("DYRE");var n=a("zeV3"),i=(a("tU7J"),a("wFql")),r=(a("OaEy"),a("2fM7")),l=a("q1tI"),c=a.n(l),o=a("1reR"),u=a("8+cs"),s=r["a"].Option,m=i["a"].Text,d=function(e){var t,a=e.onSelect,i=Object(o["c"])("global"),l=i.state.setting,d=l.activityChannels,v=void 0===d?[]:d;return c.a.createElement(n["b"],null,c.a.createElement(m,null,"\u6295\u653e\u6e20\u9053"),c.a.createElement(r["a"],{style:{width:200},onChange:function(e){return a(e)},defaultValue:u["a"][0].value},null===(t=u["a"].concat(v))||void 0===t?void 0:t.map((function(e,t){return c.a.createElement(s,{key:t,value:e.value},e.label)}))))};t["a"]=d},mFm5:function(e,t,a){"use strict";a.r(t);var n=a("0Owb"),i=a("oBTY"),r=(a("T2oS"),a("W9HT")),l=(a("DYRE"),a("zeV3")),c=a("9og8"),o=a("tJVT"),u=(a("iQDF"),a("+eQT")),s=a("WmNS"),m=a.n(s),d=a("q1tI"),v=a.n(d),f=a("9kvl"),b=a("nhC9"),p=a("06Lf"),g=a("3mLc"),h=a("/y49"),x=a("iDTs"),y=a("Dezk"),O=a("0lfv"),E=u["a"].RangePicker,w=function(e){var t=e.activityId,a=5*Math.floor(Object(O["a"])().get("minute")/5),n=Object(y["a"])({channelId:"_cms_sms_",dateRange:[]}),i=Object(o["a"])(n,2),r=i[0],u=r.channelId,s=r.dateRange,d=i[1],p=Object(f["k"])(Object(c["a"])(m.a.mark((function e(){var a,n,i,r,l;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return a=Object(o["a"])(s,2),n=a[0],i=a[1],n&&i||(r=5*Math.floor(Object(O["a"])().get("minute")/5),console.log(r,Object(O["a"])().set("second",0).set("minute",r).unix()),i=Object(O["a"])().set("second",0).set("minute",r).unix(),n=Object(O["a"])(1e3*i).subtract(12,"hour").unix()),e.next=6,Object(x["f"])({endTime:i,startTime:n,channelId:u,activityId:t});case 6:return l=e.sent,e.abrupt("return",l);case 8:case"end":return e.stop()}}),e)}))),{refreshDeps:[t,u,s]}),h=p.data,w=void 0===h?{}:h,k=p.loading;return v.a.createElement(b["a"],{title:"\u5b9e\u65f6\u8bbf\u95ee\u66f2\u7ebf",style:{margin:"24px 0",height:"600px"}},v.a.createElement(l["b"],{size:"large"},v.a.createElement(g["a"],{onSelect:function(e){return d({channelId:e})}}),v.a.createElement(E,{showTime:!0,format:"YYYY-MM-DD HH:mm",minuteStep:5,defaultValue:[Object(O["a"])().set("second",0).set("minute",a).subtract(12,"hour"),Object(O["a"])().set("second",0).set("minute",a)],onChange:function(e){var t,a,n;console.log(null===e||void 0===e||null===(t=e[0])||void 0===t?void 0:t.unix()),d({dateRange:[null===e||void 0===e||null===(a=e[0])||void 0===a?void 0:a.unix(),null===e||void 0===e||null===(n=e[1])||void 0===n?void 0:n.unix()]})}})),v.a.createElement("div",{style:{height:"450px",position:"relative",marginTop:"20px"}},k?v.a.createElement(j,{loading:!0}):v.a.createElement(T,{data:w})))},j=function(e){var t=e.loading,a=e.text;return v.a.createElement("div",{className:"flex justify-center items-center h-full"},v.a.createElement(l["b"],{direction:"vertical",align:"center",size:"large"},v.a.createElement(h["a"],{style:{fontSize:"48px"}}),t?v.a.createElement(r["a"],null):v.a.createElement("p",{className:"text-xl"},a)))},T=function(e){var t=e.data,a=void 0===t?{}:t,r=a.webPageViewUsers,l=void 0===r?[]:r,c=a.miniappViewUsers,o=void 0===c?[]:c,u=a.conversionRate,s=void 0===u?[]:u,m={data:[[].concat(Object(i["a"])(l),Object(i["a"])(o)),s],xField:"time",yField:["value","percent"],meta:{type:{formatter:function(e){var t={webPageView:"H5 \u8bbf\u95ee\u7528\u6237\u6570",miniappView:"\u5c0f\u7a0b\u5e8f\u8df3\u8f6c\u7528\u6237\u6570"};return t[e]}},percent:{alias:"\u8f6c\u6362\u7387",formatter:function(e){return"".concat(100*Number(e),"%")}}},geometryOptions:[{geometry:"line",seriesField:"type",smooth:!0},{geometry:"line",smooth:!0,lineStyle:{stroke:"#FAAD14"}}]};return v.a.createElement(p["a"],Object(n["a"])({},m,{yAxis:[{title:{text:"\u8bbf\u95ee\u7528\u6237\u6570",style:{fontSize:18}}},{title:{text:"\u8f6c\u6362\u7387",style:{fontSize:18}}}]}))};t["default"]=w}}]);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jyanon/jun-xun-tong-cms-prod.git
[email protected]:jyanon/jun-xun-tong-cms-prod.git
jyanon
jun-xun-tong-cms-prod
JunXunTong-CMS-prod
master

搜索帮助