pnkx-admin-mongo/pnkx-app-apk/unpackage/cache/wgt/H5A8E5E14/static/js/chunk-74be3b77.1a364900.js

1 line
20 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-74be3b77"],{"5b61":function(t,e,a){"use strict";a("5ffc")},"5ffc":function(t,e,a){},"9e7c":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"statistics"},[a("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回",title:t.title},on:{"click-left":function(e){return t.$router.go(-1)}}}),a("div",{staticClass:"page"},[a("van-tabs",{attrs:{color:"#5A8DEE",animated:"",sticky:"",swipeable:""},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"折线图"}},[a("van-row",[a("div",{staticClass:"month-total"},[t._v(" 本月总收入:"),a("span",[t._v(t._s(t.total.income))]),t._v("元;总支出:"),a("span",[t._v(t._s(t.total.expenditure))]),t._v("元 ")]),a("line-chart",{attrs:{"chart-data":t.lineChart}})],1),a("van-row",{staticClass:"pagination",attrs:{align:"center",justify:"space-between",type:"flex"}},[a("van-col",{on:{click:function(e){return t.getLineChart(0)}}},[t._v("上个月")]),a("van-col",[t._v(t._s(t.parseTime(new Date(t.queryParams.date),"{y}-{m}")))]),a("van-col",{on:{click:function(e){return t.getLineChart(1)}}},[t._v("下个月")])],1)],1),a("van-tab",{attrs:{title:"饼形图"}},[a("van-row",{staticClass:"dimension",attrs:{type:"flex",align:"center",justify:"center"},on:{click:function(e){t.showChangeDimension=!0}}},[a("van-col",[t._v(" "+t._s(t.dimensionName)+" ")]),a("van-col",[a("van-icon",{attrs:{name:"play"}})],1)],1),a("van-row",[t.dimensionData.length>0?a("pie-chart",{attrs:{title:this.dimensionName,data:t.dimensionData}}):a("van-empty",{staticStyle:{"min-height":"50vh"},attrs:{image:"error",description:"暂无数据"}})],1),"monthly"===t.queryParams.dimension.slice(0,7)?a("van-row",{staticClass:"pagination",attrs:{align:"center",justify:"space-between",type:"flex"}},[a("van-col",{on:{click:function(e){return t.handleChangeDate(2)}}},[t._v("上一年")]),a("van-col",[t._v(t._s(t.parseTime(new Date(t.queryParams.date),"{y}"))+"年")]),a("van-col",{on:{click:function(e){return t.handleChangeDate(3)}}},[t._v("下一年")])],1):a("van-row",{staticClass:"pagination",attrs:{align:"center",justify:"space-between",type:"flex"}},[a("van-col",{on:{click:function(e){return t.handleChangeDate(0)}}},[t._v("上个月")]),a("van-col",[t._v(t._s(t.parseTime(new Date(t.queryParams.date),"{y}-{m}")))]),a("van-col",{on:{click:function(e){return t.handleChangeDate(1)}}},[t._v("下个月")])],1)],1),a("van-tab",{attrs:{title:"条形图"}},[a("van-row",{staticClass:"dimension",attrs:{type:"flex",align:"center",justify:"center"},on:{click:function(e){t.showChangeDimension=!0}}},[a("van-col",[t._v(" "+t._s(t.dimensionName)+" ")]),a("van-col",[a("van-icon",{attrs:{name:"play"}})],1)],1),a("van-row",["monthlyContrast"!==t.queryParams.dimension&&t.dimensionData.length>0?a("div",{staticClass:"strip"},t._l(t.dimensionData,(function(e,n){return a("div",{key:e.name,staticClass:"one-strip d-flex flex-items-center"},[a("div",{staticClass:"left"},["monthly"===t.queryParams.dimension.slice(0,7)?a("div",{staticClass:"month"},[t._v(" "+t._s(e.name.slice(e.name.length-2))+" ")]):a("svg-icon",{attrs:{"icon-class":e.icon||""}})],1),a("div",{staticClass:"middle d-flex flex-column"},[a("div",{staticClass:"strip-name d-flex flex-items-center flex-justify-between"},[a("div",{staticClass:"name d-flex flex-items-end"},[a("span",[t._v(t._s(e.name))]),a("span",[t._v(t._s(t.calculationPercentage(0,e.value))+"%")])]),a("div",{staticClass:"value"},[t._v(t._s(e.value))])]),a("van-progress",{attrs:{"show-pivot":!1,color:t.colorArray[n%t.colorArray.length],percentage:t.calculationPercentage(0,e.value)}})],1),a("div",{staticClass:"right"},[a("van-icon",{attrs:{name:"arrow"}})],1)])})),0):t._e(),"monthlyContrast"===t.queryParams.dimension?a("div",{staticClass:"strip"},[a("van-row",{staticClass:"year",attrs:{type:"flex",justify:"space-between"}},[a("van-col",[a("div",{staticClass:"min-title"},[t._v("年收入")]),a("div",{staticClass:"number"},[t._v(t._s