crm_second_opening_mini/pagesA/crm/statisticalFrom/achievementObject/achievementObject.js

1 line
2.7 KiB
JavaScript

require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/statisticalFrom/achievementObject/achievementObject"],{"1b93":function(t,e,a){"use strict";(function(t,e){var n=a("4ea4");a("8886");n(a("66fd"));var i=n(a("4b34"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(i.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},"424f":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={qiunDataCharts:function(){return Promise.all([a.e("common/vendor"),a.e("uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts")]).then(a.bind(null,"2e67"))}},i=function(){var t=this.$createElement;this._self._c},r=[]},"4b34":function(t,e,a){"use strict";a.r(e);var n=a("424f"),i=a("929f");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("7b86");var c=a("f0c5"),o=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"1df28f0c",null,!1,n["a"],void 0);e["default"]=o.exports},"7b86":function(t,e,a){"use strict";var n=a("d7d6"),i=a.n(n);i.a},"929f":function(t,e,a){"use strict";a.r(e);var n=a("94c6"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"94c6":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("dc92"),i=a("0c59"),r={data:function(){return{BASE_IMG_URL:i.BASE_IMG_URL,list:[],dataYear:"",typeList:["本人及下属","仅本人","仅下属","公司"],typeIndex:0,chartData:{},twoChart:{color:["#B81BCF","#1B67CF"],enableScroll:!0,xAxis:{type:"grid",gridType:"dash",itemCount:3,scrollShow:!0,scrollAlign:"left",scrollBackgroundColor:"#F7F7FF",scrollColor:"#DEE7F7"}}}},onShow:function(){this.roleType=t.getStorageSync("roleType"),2==this.roleType?this.typeList=["本人及下属","仅本人","仅下属","公司"]:this.typeList=["本人及下属","仅本人","仅下属"];var e=new Date,a=e.getFullYear();this.dataYear=a,this.getData()},methods:{getData:function(){var t=this;(0,n.netTargetData)({year:this.dataYear,type:this.typeIndex}).then((function(e){t.list=e.data,t.handleData(e.data)}))},handleData:function(t){t.reverse();var e=[],a=[],n=[];t.forEach((function(t,i){e.push(t.month),a.push(t.achievement),n.push(t.money)})),this.chartData={categories:e,series:[{name:"目标值",data:a},{name:"完成量",data:n}]}},changeYeay:function(t){this.dataYear=t.detail.value,this.getData()},changeDataType:function(t){this.typeIndex=t.detail.value,this.getData()}},onReady:function(){}};e.default=r}).call(this,a("543d")["default"])},d7d6:function(t,e,a){}},[["1b93","common/runtime","common/vendor"]]]);