1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1718ed46"],{"21fb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("div",{staticClass:"ba_f outmain"},[t._m(0),a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:t.form,"label-width":"100px"}},[a("div",{staticClass:"flex ba_f"},[a("el-form-item",{staticClass:"mar_t20",attrs:{label:"查询日期:"}},[a("div",{staticClass:"flex-bet"},[a("div",[a("el-radio-group",{on:{change:t.selectType},model:{value:t.form.timeType,callback:function(e){t.$set(t.form,"timeType",e)},expression:"form.timeType"}},[a("el-radio-button",{attrs:{label:"1"}},[t._v("今天")]),a("el-radio-button",{attrs:{label:"2"}},[t._v("近七天")]),a("el-radio-button",{attrs:{label:"3"}},[t._v("近十五天")]),a("el-radio-button",{attrs:{label:"4"}},[t._v("自定义时间")])],1),"4"==t.form.timeType?a("span",{staticClass:"mar_l20"},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日","picker-options":t.pickerOptions},on:{change:t.selectType},model:{value:t.form.time,callback:function(e){t.$set(t.form,"time",e)},expression:"form.time"}})],1):t._e()],1)])])],1),a("div",{staticClass:"flex ba_f"},[a("el-form-item",{attrs:{label:"选择店铺:"}},[a("div",{staticClass:"mar_l20"},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeStore},model:{value:t.form.shopValue,callback:function(e){t.$set(t.form,"shopValue",e)},expression:"form.shopValue"}},t._l(t.options,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name+"(ID:"+t.id+")",value:t.id}})})),1)],1)])],1)])],1),a("div",{staticClass:"mar_t20 ba_f outmain"},[t._m(1),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("营业总额")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.jeData.allMoney||0))]),a("p",{staticClass:"fon_12 title6 lh25 yc"},[t._v("无")])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("预计收入")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.jeData.estimate||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("服务费支出:"+t._s(t.jeData.commission||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("有效订单")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.jeData.effective||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("客单价:"+t._s(t.jeData.unitPrice||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("无效订单")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.jeData.invalidCount||0))]),a("p",{staticClass:"fon_12 title6 lh25 color_f"},[t._v("损失金额:"+t._s(t.jeData.invalidMoney||0))])])])])]),a("div",{staticClass:"mar_t20",staticStyle:{height:"360px"},attrs:{id:"zhentiEch"}})]),a("div",{staticClass:"mar_t20 ba_f outmain pad_20"},[t._m(2),a("div",{staticClass:"flex-bet"},[t._m(3),a("div",{staticClass:"bflex-3"},[a("div",{staticClass:"flex-bet pad_20 flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[t._v("浏览量(pv)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.jeData.visitCount||0))])])]),a("div",{staticClass:"flex-bet pad_20 flex-y-top mar_t20"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[t._v("访客数(uv)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.jeData.userCount||0))])])])])])]),a("div",{staticClass:"outmain pad_20 ba_f bor_rad5 mar_t20"},[t._m(4),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("外卖有效订单")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.dddata.outCount||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("营业金额:"+t._s(t.dddata.outMoney||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("退款售后订单:"+t._s(t.dddata.outRefundMoney||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("堂食有效订单")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.dddata.inCount||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("营业金额:"+t._s(t.dddata.inMoney||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("退款售后订单:"+t._s(t.dddata.inRefundMoney||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("快餐有效订单")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.dddata.fastCount||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("营业金额:"+t._s(t.dddata.fastMoney||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("退款售后订单:"+t._s(t.dddata.fastRefundMoney||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("当面付有效订单")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.dddata.payFaceCount||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("营业金额:"+t._s(t.dddata.payFaceMoney||0))]),a("p",{staticClass:"fon_12 title6 lh25 yc"},[t._v("退款售后订单:"+t._s(t.dddata.payFaceRefundMoney||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("其他订单")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.dddata.otherCount||0))]),a("p",{staticClass:"fon_12 title6 lh25"},[t._v("营业金额:"+t._s(t.dddata.otherMoney||0))]),a("p",{staticClass:"fon_12 title6 lh25 yc"},[t._v("退款售后订单:"+t._s(t.dddata.otherCount||0))])])])])])]),t._m(5)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("筛选条件")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("整体看板")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("浏览概况")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bflex-7 outmain",staticStyle:{height:"390px"}},[a("div",{staticStyle:{height:"360px"},attrs:{id:"zhentiEch3"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("订单概况")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mar_t20"},[a("div",{staticClass:"mar_t20 flex-bet"},[a("div",{staticClass:"flex-g-1 ba_f pad_20 bor_rad5"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("订单来源")])])]),a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch32"}})]),a("div",{staticClass:"flex-g-1 ba_f mar_lr20 pad_20 bor_rad5"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("订单渠道")])])]),a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch33"}})]),a("div",{staticClass:"flex-g-1 ba_f pad_20 bor_rad5"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("支付占比")])])]),a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch34"}})])])])}],o=(a("d81d"),a("96cf"),a("1da1")),n=a("5530"),l=a("313e"),r=a.n(l),c=a("48fb"),d=a("ed08"),_=a("2f62"),p={mounted:function(){this.bus.$emit("loading",!0),this.init(),this.mainEch32(),this.mainEch33(),this.mainEch34(),window.addEventListener("resize",this.initchart)},created:function(){this.form.shopValue=this.market[0].id,this.options=this.market},data:function(){var t=this;return{selectData:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.selectData=i.getTime(),a&&(t.selectData="")},disabledDate:function(e){if(t.isNull(t.selectData))return!1;var a=new Date(t.selectData);return a.getMonth()>new Date(e).getMonth()||a.getMonth()<new Date(e).getMonth()}},dddata:{},zhData:{},jeData:{},jyData:{},form:{shopValue:"",timeType:"1",time:[new Date,new Date],Mtime:""},options:[{value:"1",label:"全部"}],options2:[{value:"1",label:"自然日"}],tableData:[],tableData2:[],echarts1_option:{color:["#4284ED","#42CCF0"],tooltip:{trigger:"axis"},legend:{data:["营业额"]},grid:{left:"3%",right:"5%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisTick:{show:!1,lineStyle:{color:"#ccc",type:"dashed"}},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},axisLine:{lineStyle:{color:"#f7f7f7",width:2}},data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},splitLine:{lineStyle:{type:"dotted",color:"#DDDDDD"},show:!0}},series:[{name:"营业额",type:"bar",data:[]}]},echarts2_option:{color:["#4284ED","#42CCF0","#1890FF","#2FC25B","#4284ED"],tooltip:{trigger:"axis"},legend:{data:["营业总额","预计收入","有效订单","无效订单"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!1,lineStyle:{color:"#ccc",type:"dashed"}},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},axisLine:{lineStyle:{color:"#f7f7f7",width:2}},data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},splitLine:{lineStyle:{type:"dotted",color:"#DDDDDD"},show:!0}},series:[{name:"营业总额",type:"line",stack:"总量",smooth:!0,data:[]},{name:"预计收入",type:"line",stack:"总量",smooth:!0,data:[]},{name:"有效订单",type:"line",stack:"总量",smooth:!0,data:[]},{name:"无效订单",type:"line",stack:"总量",smooth:!0,data:[]}]},echarts3_option:{color:["#4284ED","#42CCF0"],tooltip:{trigger:"axis"},legend:{data:["浏览量","访客数"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!1,lineStyle:{color:"#ccc",type:"dashed"}},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},axisLine:{lineStyle:{color:"#f7f7f7",width:2}},data:[0,2,4,6,8,10,12,14,16,18,20]},yAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},splitLine:{lineStyle:{type:"dotted",color:"#DDDDDD"},show:!0}},series:[{name:"浏览量",type:"line",stack:"总量",smooth:!0,data:[10,32,25,15,40,15,20,10,22,30,25]},{name:"访客数",type:"line",stack:"总量",smooth:!0,data:[80,22,20,10,25,35,20,10,64,20,90]}]},echarts32_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信小程序","支付宝小程序","收银台"]},series:[{name:"支付金额",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信小程序"},{value:20,name:"支付宝小程序"},{value:20,name:"收银台"}]}]},echarts33_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["堂食","快餐"]},series:[{name:"支付金额",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"堂食"},{value:20,name:"快餐"}]}]},echarts34_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信支付","支付宝支付","余额支付","现金支付","自有支付方式"]},series:[{name:"支付金额",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信支付"},{value:20,name:"支付宝支付"},{value:20,name:"余额支付"},{value:20,name:"现金支付"},{value:20,name:"自有支付方式"}]}]}}},computed:Object(n["a"])({},Object(_["d"])(["market"])),methods:{init:function(){this.recordData(),this.realRecord()},initchart:function(){var t=r.a.init(document.getElementById("shujuEch")),e=r.a.init(document.getElementById("zhentiEch")),a=r.a.init(document.getElementById("zhentiEch3"));t.resize(),e.resize(),a.resize()},recordData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["o"])({storeId:t.form.shopValue});case 2:a=e.sent,i=a.data,i&&(t.zhData=i,t.bus.$emit("loading",!1));case 5:case"end":return e.stop()}}),e)})))()},realRecord:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,i,s,o,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="",i="",t.form.time&&(a=Object(d["a"])(t.form.time[0]),i=Object(d["a"])(t.form.time[1])),s={startTime:a,endTime:i,storeId:t.form.shopValue},e.next=6,Object(c["B"])(s);case 6:o=e.sent,n=o.data,n&&(t.jeData=n,t.tableData=n.moneyTop,t.tableData2=n.payTop,t.echarts2_option.series[0].data=n.payMoneyArr.map((function(t){return t.money})),t.echarts2_option.series[1].data=n.orderNumArr.map((function(t){return t.money})),t.echarts2_option.series[2].data=n.payNumArr.map((function(t){return t.money})),t.echarts2_option.series[3].data=n.priceArr.map((function(t){return t.money})),t.echarts2_option.xAxis.data=n.payMoneyArr.map((function(t){return t.hours})),t.zhentiEch(),t.echarts3_option.series[0].data=n.visitArr.map((function(t){return t.money})),t.echarts3_option.series[1].data=n.userArr.map((function(t){return t.money})),t.echarts3_option.xAxis.data=n.visitArr.map((function(t){return t.hours})),t.zhentiEch3());case 9:case"end":return e.stop()}}),e)})))()},shujuEch:function(){var t=r.a.init(document.getElementById("shujuEch"));t.setOption(this.echarts1_option,!0)},zhentiEch:function(){var t=r.a.init(document.getElementById("zhentiEch"));t.setOption(this.echarts2_option,!0)},zhentiEch3:function(){var t=r.a.init(document.getElementById("zhentiEch3"));t.setOption(this.echarts3_option,!0)},changeTime:function(){this.realRecord()},mainEch32:function(){var t=r.a.init(document.getElementById("mainEch32"));t.setOption(this.echarts32_option,!0)},mainEch33:function(){var t=r.a.init(document.getElementById("mainEch33"));t.setOption(this.echarts33_option,!0)},mainEch34:function(){var t=r.a.init(document.getElementById("mainEch34"));t.setOption(this.echarts34_option,!0)},changeStore:function(){this.realRecord(),this.recordData()}}},u=p,h=(a("955e"),a("2877")),f=Object(h["a"])(u,i,s,!1,null,"ce2d3906",null);e["default"]=f.exports},"3bbe":function(t,e,a){var i=a("861d");t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"5f2fa":function(t,e,a){},7156:function(t,e,a){var i=a("861d"),s=a("d2bb");t.exports=function(t,e,a){var o,n;return s&&"function"==typeof(o=e.constructor)&&o!==a&&i(n=o.prototype)&&n!==a.prototype&&s(t,n),t}},"955e":function(t,e,a){"use strict";var i=a("5f2fa"),s=a.n(i);s.a},a9e3:function(t,e,a){"use strict";var i=a("83ab"),s=a("da84"),o=a("94ca"),n=a("6eeb"),l=a("5135"),r=a("c6b6"),c=a("7156"),d=a("c04e"),_=a("d039"),p=a("7c73"),u=a("241c").f,h=a("06cf").f,f=a("9bf2").f,m=a("58a8").trim,v="Number",b=s[v],y=b.prototype,C=r(p(y))==v,g=function(t){var e,a,i,s,o,n,l,r,c=d(t,!1);if("string"==typeof c&&c.length>2)if(c=m(c),e=c.charCodeAt(0),43===e||45===e){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:i=2,s=49;break;case 79:case 111:i=8,s=55;break;default:return+c}for(o=c.slice(2),n=o.length,l=0;l<n;l++)if(r=o.charCodeAt(l),r<48||r>s)return NaN;return parseInt(o,i)}return+c};if(o(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var x,w=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof w&&(C?_((function(){y.valueOf.call(a)})):r(a)!=v)?c(new b(g(e)),a,w):g(e)},D=i?u(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;D.length>E;E++)l(b,x=D[E])&&!l(w,x)&&f(w,x,h(b,x));w.prototype=y,y.constructor=w,n(s,v,w)}},bf19:function(t,e,a){"use strict";var i=a("23e7");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,a){var i=a("825a"),s=a("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,a={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(a,[]),e=a instanceof Array}catch(o){}return function(a,o){return i(a),s(o),e?t.call(a,o):a.__proto__=o,a}}():void 0)},ed08:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return o}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function i(t){var e=new Date(t).toJSON(),a=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function s(t){var e=new Date(t),a=e.getFullYear(),i=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,s=e.getDate()<10?"0"+e.getDate():e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),n=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),l=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+i+"-"+s+" "+o+":"+n+":"+l}function o(t){var e=new Date(1e3*Number(t)),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",s=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",n=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",l=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),r=a+i+s+o+n+l;return r}}}]); |