{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\BigScrenn\\fundTheme\\components\\fundMoreDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\BigScrenn\\fundTheme\\components\\fundMoreDialog.vue","mtime":1693992862254},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.array.find\";\nimport \"core-js/modules/es6.set\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.array.sort\";\nimport \"core-js/modules/es6.number.constructor\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport _defineProperty from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport * as echarts from 'echarts';\nimport { mapState } from 'vuex';\nimport moment from \"moment\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport financialTheme from '@/api/bigScrenn/financialTheme.js';\nimport screenHeader from '@/views/BigScrenn/components/screenHeader.vue';\nimport echartsTitle from '@/views/BigScrenn/components/echartsTitle.vue';\nexport default {\n name: 'moreDialog',\n components: {\n echartsTitle: echartsTitle\n },\n data: function data() {\n var _ref;\n\n return _ref = {\n visible: false,\n superiorData: {},\n parmas: {\n targetId: '',\n queryList: [{\n type: 1,\n dateReqVo: {\n endMonth: '12',\n endYear: null,\n month: null,\n startMonth: '1',\n startYear: null,\n year: moment().format('YYYY')\n }\n }, {\n type: 2,\n dateReqVo: {\n endMonth: '12',\n endYear: null,\n month: null,\n startMonth: '1',\n startYear: null,\n year: moment().format('YYYY')\n }\n }, {\n type: 3 // dateReqVo: {\n // \tendMonth: null,\n // \tendYear: moment().format('YYYY'),\n // \tmonth: moment().subtract(1, 'month').format('M'),\n // \tstartMonth: null,\n // \tstartYear: moment().subtract(5, 'year').format('YYYY'),\n // \tyear: null\n // }\n\n }, {\n type: 4,\n dateReqVo: {\n endMonth: moment().subtract(1, 'month').format('M'),\n endYear: null,\n month: null,\n startMonth: '2',\n startYear: null,\n year: moment().format('YYYY')\n }\n }, {\n type: 5,\n dateReqVo: {\n endMonth: null,\n endYear: moment().format('YYYY'),\n month: null,\n startMonth: null,\n startYear: moment().subtract(5, 'year').format('YYYY'),\n year: null\n }\n }, {\n type: 6,\n dateReqVo: {\n endMonth: moment().subtract(1, 'month').format('M'),\n endYear: null,\n month: null,\n startMonth: moment().subtract(2, 'month').format('M'),\n startYear: null,\n year: moment().format('YYYY')\n }\n }, {\n type: 7,\n dateReqVo: {\n endMonth: moment().subtract(1, 'month').format('M'),\n endYear: null,\n month: null,\n startMonth: moment().subtract(2, 'month').format('M'),\n startYear: null,\n year: moment().format('YYYY')\n }\n }, {\n type: 8,\n dateReqVo: {\n endMonth: null,\n endYear: moment().format('YYYY'),\n month: moment().subtract(1, 'month').format('M'),\n startMonth: null,\n startYear: moment().subtract(5, 'year').format('YYYY'),\n year: null\n }\n }, {\n type: 9,\n dateReqVo: {\n endMonth: '12',\n endYear: null,\n month: null,\n startMonth: '1',\n startYear: null,\n year: moment().format('YYYY')\n }\n }, {\n type: 10,\n dateReqVo: {\n endMonth: moment().subtract(1, 'month').format('M'),\n endYear: null,\n month: null,\n startMonth: moment().subtract(2, 'month').format('M'),\n startYear: null,\n year: moment().format('YYYY')\n }\n }, {\n type: 11,\n dateReqVo: {\n endMonth: moment().subtract(1, 'month').format('M'),\n endYear: null,\n month: null,\n startMonth: moment().subtract(2, 'month').format('M'),\n startYear: null,\n year: moment().format('YYYY')\n }\n }, {\n type: 12,\n dateReqVo: {\n endMonth: null,\n endYear: null,\n month: moment().subtract(1, 'month').format('M'),\n startMonth: null,\n startYear: null,\n year: moment().format('YYYY')\n }\n }, {\n type: 15,\n dateReqVo: {\n endMonth: null,\n endYear: null,\n month: null,\n startMonth: null,\n startYear: null,\n year: moment().subtract(1, 'year').format('YYYY')\n }\n }, {\n type: 16,\n dateReqVo: {\n quarter: '3',\n endMonth: null,\n endYear: null,\n month: null,\n startMonth: null,\n startYear: null,\n year: moment().subtract(1, 'year').format('YYYY')\n }\n }, {\n type: 17,\n dateReqVo: {\n quarter: '3',\n enterpriseCode: null,\n endMonth: null,\n endYear: null,\n month: null,\n startMonth: null,\n startYear: null,\n year: moment().subtract(1, 'year').format('YYYY')\n }\n }, {\n type: 18,\n dateReqVo: {\n endMonth: null,\n endYear: moment().format('YYYY'),\n month: null,\n startMonth: null,\n startYear: moment().subtract(5, 'year').format('YYYY'),\n year: null\n }\n }, {\n type: 19,\n dateReqVo: {\n endMonth: null,\n endYear: null,\n month: null,\n startMonth: null,\n startYear: null,\n year: moment().format('YYYY')\n }\n }]\n },\n staLatList: [{\n name: '实际值',\n value: 1\n }, {\n name: '预算值',\n value: 2\n }],\n quarterList: [{\n label: '第一季度',\n labelEn: '1 Quarter',\n value: '1'\n }, {\n label: '第二季度',\n labelEn: '2 Quarter',\n value: '2'\n }, {\n label: '第三季度',\n labelEn: '3 Quarter',\n value: '3'\n }, {\n label: '第四季度',\n labelEn: '4 Quarter',\n value: '4'\n }],\n yearData: {},\n //年度\n quarterData: {},\n //季度\n monthData: {},\n //月度\n dataList: [],\n //其他数据\n datalength: 0,\n //长度\n leftNum: 0,\n // 左边展示个数\n rightNum: 0,\n // 右边展示个数\n leftList: [],\n rightList: [],\n showType: false,\n startDatePicker: this.beginDate(),\n endDatePicker: this.processDate(),\n monthList: [{\n value: '1',\n label: '1'\n }, {\n value: '2',\n label: '2'\n }, {\n value: '3',\n label: '3'\n }, {\n value: '4',\n label: '4'\n }, {\n value: '5',\n label: '5'\n }, {\n value: '6',\n label: '6'\n }, {\n value: '7',\n label: '7'\n }, {\n value: '8',\n label: '8'\n }, {\n value: '9',\n label: '9'\n }, {\n value: '10',\n label: '10'\n }, {\n value: '11',\n label: '11'\n }, {\n value: '12',\n label: '12'\n }],\n pageName: '',\n firstPageName: '',\n secondPageName: '',\n value1: ''\n }, _defineProperty(_ref, \"value1\", []), _defineProperty(_ref, \"topList\", []), _defineProperty(_ref, \"allList\", []), _defineProperty(_ref, \"zbList\", []), _defineProperty(_ref, \"newParams\", {\n pageBean: {\n page: 1,\n pageSize: -1\n },\n querys: []\n }), _ref;\n },\n created: function created() {\n this.superiorData = this.$route.query;\n this.parmas.targetId = this.$route.query.targetId;\n this.pageName = window.localStorage.getItem('pageName');\n this.tjwdList = this.$i18n.locale === 'zh-CN' ? dictUtils.getDictItemsFromCache('tjwd') : dictUtils.getDictItemsFromCache('tjwd_en');\n this.zbList = dictUtils.getDictItemsFromCache('zb_en');\n this.visible = true;\n var currentMonth = moment().format('M');\n\n if (currentMonth == 1) {\n this.parmas.queryList[3].dateReqVo.endMonth = '12';\n this.parmas.queryList[3].dateReqVo.year = (Number(this.parmas.queryList[3].dateReqVo.year) - 1).toString();\n this.parmas.queryList[5].dateReqVo.endMonth = '12';\n this.parmas.queryList[5].dateReqVo.startMonth = '11';\n this.parmas.queryList[5].dateReqVo.year = (Number(this.parmas.queryList[5].dateReqVo.year) - 1).toString();\n this.parmas.queryList[6].dateReqVo.endMonth = '12';\n this.parmas.queryList[6].dateReqVo.startMonth = '11';\n this.parmas.queryList[6].dateReqVo.year = (Number(this.parmas.queryList[6].dateReqVo.year) - 1).toString();\n this.parmas.queryList[9].dateReqVo.endMonth = '12';\n this.parmas.queryList[9].dateReqVo.startMonth = '11';\n this.parmas.queryList[9].dateReqVo.year = (Number(this.parmas.queryList[9].dateReqVo.year) - 1).toString();\n this.parmas.queryList[10].dateReqVo.endMonth = '12';\n this.parmas.queryList[10].dateReqVo.startMonth = '11';\n this.parmas.queryList[10].dateReqVo.year = (Number(this.parmas.queryList[10].dateReqVo.year) - 1).toString();\n }\n\n if (currentMonth == 2) {\n this.parmas.queryList[5].dateReqVo.endMonth = '12';\n this.parmas.queryList[5].dateReqVo.startMonth = '12';\n this.parmas.queryList[5].dateReqVo.year = (Number(this.parmas.queryList[5].dateReqVo.year) - 1).toString();\n this.parmas.queryList[6].dateReqVo.endMonth = '12';\n this.parmas.queryList[6].dateReqVo.startMonth = '12';\n this.parmas.queryList[6].dateReqVo.year = (Number(this.parmas.queryList[6].dateReqVo.year) - 1).toString();\n this.parmas.queryList[9].dateReqVo.endMonth = '12';\n this.parmas.queryList[9].dateReqVo.startMonth = '12';\n this.parmas.queryList[9].dateReqVo.year = (Number(this.parmas.queryList[9].dateReqVo.year) - 1).toString();\n this.parmas.queryList[10].dateReqVo.endMonth = '12';\n this.parmas.queryList[10].dateReqVo.startMonth = '12';\n this.parmas.queryList[10].dateReqVo.year = (Number(this.parmas.queryList[10].dateReqVo.year) - 1).toString();\n }\n\n this.getData();\n this.getAreaTree();\n },\n mounted: function mounted() {},\n methods: {\n // 选择年份范围选择时开始时间不能大于结束时间,结束时间不能小于开始时间\n // 提出开始时间必须小于提出结束时间\n beginDate: function beginDate() {\n var self = this;\n return {\n disabledDate: function disabledDate(time) {\n if (self.parmas.endYear !== '') {\n var fixedTime = new Date(time);\n return fixedTime.getFullYear() > self.parmas.endYear;\n }\n }\n };\n },\n // 提出结束时间必须大于提出开始时间\n processDate: function processDate() {\n var self = this;\n return {\n disabledDate: function disabledDate(time) {\n var fixedTime = new Date(time);\n return fixedTime.getFullYear() < self.parmas.startYear;\n }\n };\n },\n handleData: function handleData(val, index) {\n var _this = this;\n\n financialTheme.getData(this.parmas, function (res) {\n if (res.value) {\n res.value.sort(_this.arraySort('type'));\n\n _this.$nextTick(function () {\n _this.dataEcharts(res.value[index], index);\n });\n }\n });\n },\n arraySort: function arraySort(property) {\n return function (a, b) {\n var value1 = a[property];\n var value2 = b[property];\n return value1 - value2;\n };\n },\n getData: function getData() {\n var _this2 = this;\n\n // if (this.pageName === '企业驾驶舱') {\n var enterpriseCode = window.localStorage.getItem('enterpriseCode');\n\n if (enterpriseCode) {\n this.parmas.enterpriseCode = enterpriseCode.split(',')[1];\n } // } else {\n // }\n\n\n this.showType = false;\n this.dataList = [];\n financialTheme.getData(this.parmas, function (res) {\n if (res.value) {\n res.value.forEach(function (e) {\n _this2.dataList.push(e);\n });\n\n _this2.dataList.sort(_this2.arraySort('type'));\n\n _this2.dataList.forEach(function (c, cx) {\n _this2.$nextTick(function () {\n _this2.dataEcharts(c, cx);\n });\n });\n }\n });\n },\n //其他\n dataEcharts: function dataEcharts(c, cx) {\n var _this3 = this;\n\n var otherChart = echarts.getInstanceByDom(document.getElementById(\"topChart\".concat(cx))); //有的话就获取已有echarts实例的DOM节点。\n\n if (otherChart == null) {\n // 如果不存在,就进行初始化。\n otherChart = echarts.init(document.getElementById(\"topChart\".concat(cx)));\n }\n\n otherChart.off('click');\n var option = {};\n var xLabel = [];\n\n if (c.type == 1 || c.type == 2 || c.type == 5 || c.type == 18) {\n var arr = [];\n c.resultData.forEach(function (r) {\n if (c.type == 5 || c.type == 18) {\n xLabel.push(r.year);\n } else if (c.type == 19) {\n xLabel.push(r.month);\n } else {\n xLabel.push(r.year + '.' + r.month);\n }\n });\n\n if (c.staLat.split(',').length > 1) {\n this.tjwdList.forEach(function (s) {\n c.staLat.split(',').forEach(function (t) {\n if (s.value == t) {\n var _datalist = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.actual);\n });\n } else if (t == 8) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.actual);\n });\n } else if (t == 9) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.budget);\n });\n } else if (t == 11) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.oneActual);\n });\n } else if (t == 12) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.sixActual);\n });\n } else if (t == 13) {\n c.resultData.forEach(function (r) {\n _datalist.push(r.threeActual);\n });\n }\n\n arr.push({\n name: s.name,\n type: 'line',\n symbol: 'circle',\n // 默认是空心圆(中间是白色的),改成实心圆\n smooth: true,\n lineStyle: {\n normal: {\n width: 3\n }\n },\n itemStyle: {\n normal: {\n label: {\n show: false,\n //开启显示\n color: '#fff',\n position: 'top',\n //在上方显示\n formatter: function formatter(res) {\n if (res.value) {\n return res.value;\n } else {\n return 0;\n }\n }\n }\n }\n },\n symbolSize: 8,\n //设定实心点的大小\n data: _datalist\n });\n }\n });\n });\n } else {\n this.tjwdList.forEach(function (s) {\n var data1list = [];\n\n if (c.staLat == 1) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (c.staLat == 2) {\n c.resultData.forEach(function (r) {\n data1list.push(r.budget);\n });\n } else if (c.staLat == 3) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (c.staLat == 4) {\n c.resultData.forEach(function (r) {\n data1list.push(r.budget);\n });\n } else if (c.staLat == 5) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (c.staLat == 6) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (t == 8) {\n c.resultData.forEach(function (r) {\n datalist.push(r.actual);\n });\n } else if (t == 9) {\n c.resultData.forEach(function (r) {\n datalist.push(r.budget);\n });\n }\n\n if (s.value == c.staLat) {\n arr.push({\n name: s.name,\n type: 'line',\n symbol: 'circle',\n // 默认是空心圆(中间是白色的),改成实心圆\n smooth: true,\n lineStyle: {\n normal: {\n width: 3 // color: '#518EF5', // 线条颜色\n\n }\n },\n itemStyle: {\n normal: {\n // color: '#518EF5', //拐点颜色\n // borderColor: '#fff600',//拐点边框颜色\n // borderWidth: 13//拐点边框大小\n label: {\n show: false,\n //开启显示\n color: '#fff',\n position: 'top',\n //在上方显示\n formatter: function formatter(res) {\n if (res.value) {\n return res.value;\n } else {\n return 0;\n }\n }\n }\n }\n },\n symbolSize: 8,\n //设定实心点的大小\n data: data1list\n });\n }\n });\n }\n\n option = {\n backgroundColor: '',\n tooltip: {\n trigger: 'axis'\n },\n legend: {\n show: true,\n textStyle: {\n color: '#fff',\n fontSize: 14,\n padding: [0, 8, 0, 8]\n }\n },\n grid: {\n top: '18%',\n left: '14%',\n right: '5%',\n bottom: '14%'\n },\n xAxis: [{\n type: 'category',\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n },\n splitLine: {\n show: false,\n lineStyle: {\n color: '#233653'\n }\n },\n axisTick: {\n show: false\n },\n data: xLabel\n }],\n yAxis: [{\n // name: c.targetUnit,\n nameTextStyle: {\n color: \"#fff\",\n fontSize: 12,\n padding: [0, 60, 0, 0]\n },\n type: 'value',\n splitLine: {\n show: true,\n lineStyle: {\n color: '#1160a0',\n type: 'dashed'\n }\n },\n axisLabel: {\n interval: 0,\n //标签设置为全部显示\n formatter: function formatter(params) {\n var units = ['', '万', '百万', '亿', '万亿'];\n var unitIndex = 0;\n\n if (params < 0) {\n params = Math.abs(params);\n\n while (params >= 10000 && unitIndex < units.length - 1) {\n params /= 10000;\n unitIndex++;\n }\n\n params = 0 - params;\n } else {\n while (params >= 10000 && unitIndex < units.length - 1) {\n params /= 10000;\n unitIndex++;\n }\n }\n\n var formattedNumber = params;\n return formattedNumber + units[unitIndex];\n },\n textStyle: {\n color: '#fff',\n fontSize: 14\n }\n },\n axisTick: {\n show: false\n },\n triggerEvent: true\n }],\n series: arr\n };\n } else if (c.type == 3) {\n //柱状图\n var _arr = [];\n var lableList = [];\n c.resultData.forEach(function (r) {\n lableList.push(r.year);\n xLabel.push(r.month + '月');\n });\n xLabel = Array.from(new Set(xLabel));\n var Label = Array.from(new Set(lableList)).concat(['增减率']); // Label.concat(['增减率'])\n\n Label.forEach(function (s) {\n var datalist = [];\n console.log(s);\n\n if (s == '增减率') {\n c.resultData.forEach(function (r) {\n if (r.year == Label[0]) {\n datalist.push(r.growthRate);\n }\n });\n\n _arr.push({\n name: _this3.$i18n.locale === 'zh-CN' ? '增减率' : 'Rate of increase and decrease',\n type: 'line',\n yAxisIndex: 1,\n symbol: 'circle',\n // 默认是空心圆(中间是白色的),改成实心圆\n smooth: true,\n lineStyle: {\n normal: {\n width: 3 // color: '#518EF5', // 线条颜色\n\n }\n },\n itemStyle: {\n normal: {\n // color: '#518EF5', //拐点颜色\n // borderColor: '#fff600',//拐点边框颜色\n // borderWidth: 13//拐点边框大小\n label: {\n show: false,\n //开启显示\n color: '#fff',\n position: 'top',\n //在上方显示\n formatter: function formatter(res) {\n if (res.value) {\n return res.value;\n } else {\n return 0;\n }\n }\n }\n }\n },\n symbolSize: 8,\n //设定实心点的大小\n data: datalist\n });\n } else {\n c.resultData.forEach(function (r) {\n if (r.year == s) {\n datalist.push(r.actual);\n }\n });\n\n _arr.push({\n name: s,\n type: 'bar',\n symbol: 'circle',\n // 默认是空心圆(中间是白色的),改成实心圆\n smooth: true,\n lineStyle: {\n normal: {\n width: 3 // color: '#518EF5', // 线条颜色\n\n }\n },\n itemStyle: {\n normal: {\n // color: '#518EF5', //拐点颜色\n // borderColor: '#fff600',//拐点边框颜色\n // borderWidth: 13//拐点边框大小\n label: {\n show: false,\n //开启显示\n color: '#fff',\n position: 'top',\n //在上方显示\n formatter: function formatter(res) {\n if (res.value) {\n return res.value;\n } else {\n return 0;\n }\n }\n }\n }\n },\n symbolSize: 8,\n //设定实心点的大小\n data: datalist\n });\n }\n });\n option = {\n backgroundColor: '',\n tooltip: {\n trigger: 'axis'\n },\n legend: {\n show: true,\n textStyle: {\n color: '#fff',\n fontSize: 14,\n padding: [0, 8, 0, 8]\n }\n },\n grid: {\n top: '18%',\n left: '14%',\n right: '10%',\n bottom: '14%'\n },\n xAxis: [{\n type: 'category',\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n },\n splitLine: {\n show: false,\n lineStyle: {\n color: '#233653'\n }\n },\n axisTick: {\n show: false\n },\n data: xLabel\n }],\n yAxis: [{\n // name: c.targetUnit,\n nameTextStyle: {\n color: \"#fff\",\n fontSize: 12,\n padding: [0, 60, 0, 0]\n },\n type: 'value',\n splitLine: {\n show: true,\n lineStyle: {\n color: '#1160a0',\n type: 'dashed'\n }\n },\n axisLabel: {\n interval: 0,\n //标签设置为全部显示\n formatter: function formatter(params) {\n var units = ['', '万', '百万', '亿', '万亿'];\n var unitIndex = 0;\n\n if (params < 0) {\n params = Math.abs(params);\n\n while (params >= 10000 && unitIndex < units.length - 1) {\n params /= 10000;\n unitIndex++;\n }\n\n params = 0 - params;\n } else {\n while (params >= 10000 && unitIndex < units.length - 1) {\n params /= 10000;\n unitIndex++;\n }\n }\n\n var formattedNumber = params;\n return formattedNumber + units[unitIndex];\n },\n textStyle: {\n color: '#fff',\n fontSize: 14\n }\n },\n axisTick: {\n show: false\n },\n triggerEvent: true\n }, {\n type: 'value',\n name: \"%\",\n //min: 0,\n nameTextStyle: {\n color: \"#fff\"\n },\n axisLine: {\n lineStyle: {\n color: '#0a3e98'\n }\n },\n axisTick: {\n show: false\n },\n splitLine: {\n show: true,\n lineStyle: {\n color: '#0a3e98',\n type: \"dotted\"\n }\n },\n axisLabel: {\n formatter: '{value}',\n textStyle: {\n color: \"#fff\"\n }\n }\n }],\n series: _arr\n };\n } else if (c.type == 4) {\n var _arr2 = [];\n c.resultData.forEach(function (r) {\n if (c.type == 5) {\n xLabel.push(r.year);\n } else {\n xLabel.push(r.year + '.' + r.month);\n }\n });\n\n if (c.staLat.split(',').length > 1) {\n this.tjwdList.forEach(function (s) {\n c.staLat.split(',').forEach(function (t) {\n if (s.value == t) {\n var _datalist2 = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist2.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist2.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist2.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist2.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist2.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist2.push(r.actual);\n });\n }\n\n _arr2.push({\n name: s.name,\n type: 'bar',\n symbol: 'circle',\n // 默认是空心圆(中间是白色的),改成实心圆\n smooth: true,\n lineStyle: {\n normal: {\n width: 3\n }\n },\n itemStyle: {\n normal: {\n label: {\n show: false,\n //开启显示\n color: '#fff',\n position: 'top',\n //在上方显示\n formatter: function formatter(res) {\n if (res.value) {\n return res.value;\n } else {\n return 0;\n }\n }\n }\n }\n },\n symbolSize: 8,\n //设定实心点的大小\n data: _datalist2\n });\n }\n });\n });\n } else {\n var growthList = [];\n this.tjwdList.forEach(function (s) {\n var data1list = [];\n growthList = [];\n\n if (c.staLat == 1) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n growthList.push(r.growthRate);\n });\n } else if (c.staLat == 2) {\n c.resultData.forEach(function (r) {\n data1list.push(r.budget);\n growthList.push(r.growthRate);\n });\n } else if (c.staLat == 3) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n growthList.push(r.growthRate);\n });\n } else if (c.staLat == 4) {\n c.resultData.forEach(function (r) {\n data1list.push(r.budget);\n growthList.push(r.growthRate);\n });\n } else if (c.staLat == 5) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n growthList.push(r.growthRate);\n });\n } else if (c.staLat == 6) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n growthList.push(r.growthRate);\n });\n }\n\n if (s.value == c.staLat) {\n _arr2.push({\n name: s.name,\n type: 'bar',\n symbol: 'circle',\n // 默认是空心圆(中间是白色的),改成实心圆\n smooth: true,\n lineStyle: {\n normal: {\n width: 3 // color: '#518EF5', // 线条颜色\n\n }\n },\n itemStyle: {\n normal: {\n // color: '#518EF5', //拐点颜色\n // borderColor: '#fff600',//拐点边框颜色\n // borderWidth: 13//拐点边框大小\n label: {\n show: false,\n //开启显示\n color: '#fff',\n position: 'top',\n //在上方显示\n formatter: function formatter(res) {\n if (res.value) {\n return res.value;\n } else {\n return 0;\n }\n }\n }\n }\n },\n symbolSize: 8,\n //设定实心点的大小\n data: data1list\n });\n }\n });\n\n _arr2.push({\n name: this.$i18n.locale === 'zh-CN' ? '增减率' : 'Rate of increase and decrease',\n type: 'line',\n yAxisIndex: 1,\n symbol: 'circle',\n // 默认是空心圆(中间是白色的),改成实心圆\n smooth: true,\n lineStyle: {\n normal: {\n width: 3 // color: '#518EF5', // 线条颜色\n\n }\n },\n itemStyle: {\n normal: {\n // color: '#518EF5', //拐点颜色\n // borderColor: '#fff600',//拐点边框颜色\n // borderWidth: 13//拐点边框大小\n label: {\n show: false,\n //开启显示\n color: '#fff',\n position: 'top',\n //在上方显示\n formatter: function formatter(res) {\n if (res.value) {\n return res.value;\n } else {\n return 0;\n }\n }\n }\n }\n },\n symbolSize: 8,\n //设定实心点的大小\n data: growthList\n });\n }\n\n option = {\n backgroundColor: '',\n tooltip: {\n trigger: 'axis'\n },\n legend: {\n show: true,\n textStyle: {\n color: '#fff',\n fontSize: 14,\n padding: [0, 8, 0, 8]\n }\n },\n grid: {\n top: '18%',\n left: '14%',\n right: '10%',\n bottom: '14%'\n },\n xAxis: [{\n type: 'category',\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n },\n splitLine: {\n show: false,\n lineStyle: {\n color: '#233653'\n }\n },\n axisTick: {\n show: false\n },\n data: xLabel\n }],\n yAxis: [{\n nameTextStyle: {\n color: \"#fff\",\n fontSize: 12,\n padding: [0, 60, 0, 0]\n },\n type: 'value',\n splitLine: {\n show: true,\n lineStyle: {\n color: '#1160a0',\n type: 'dashed'\n }\n },\n axisLabel: {\n interval: 0,\n //标签设置为全部显示\n formatter: function formatter(params) {\n var num = '';\n var unit = '';\n var k = 10000,\n sizes = ['', '万', '亿', '万亿'],\n i;\n\n if (params < 0) {\n params = Math.abs(params);\n\n if (params < k) {\n params = params;\n } else {\n i = Math.floor(Math.log(params) / Math.log(k));\n params = (params / Math.pow(k, i)).toFixed(0);\n unit = sizes[i];\n }\n\n num = 0 - params + unit;\n } else {\n if (params < k) {\n params = params;\n } else {\n i = Math.floor(Math.log(params) / Math.log(k));\n params = (params / Math.pow(k, i)).toFixed(0);\n unit = sizes[i];\n }\n\n num = params + unit;\n }\n\n return num;\n },\n textStyle: {\n color: '#fff',\n fontSize: 14\n }\n },\n axisTick: {\n show: false\n },\n triggerEvent: true\n }, {\n type: 'value',\n name: \"%\",\n //min: 0,\n nameTextStyle: {\n color: \"#fff\"\n },\n axisLine: {\n lineStyle: {\n color: '#0a3e98'\n }\n },\n axisTick: {\n show: false\n },\n splitLine: {\n show: true,\n lineStyle: {\n color: '#0a3e98',\n type: \"dotted\"\n }\n },\n axisLabel: {\n formatter: '{value}',\n textStyle: {\n color: \"#fff\"\n }\n }\n }],\n series: _arr2\n };\n } else if (c.type == 6 || c.type == 7 || c.type == 16) {\n //柱状图\n var _arr3 = [];\n c.resultData.forEach(function (r) {\n if (c.type == 3 || c.type == 4) {\n xLabel.push(r.year + '.' + r.month);\n } else if (c.type == 6 || c.type == 7 || c.type == 16) {\n xLabel.push(r.enterpriseCode);\n }\n });\n\n if (c.staLat.split(',').length > 1) {\n this.tjwdList.forEach(function (s) {\n c.staLat.split(',').forEach(function (t) {\n if (s.value == t) {\n var _datalist3 = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist3.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist3.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist3.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist3.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist3.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist3.push(r.actual);\n });\n }\n\n _arr3.push({\n name: s.name,\n type: 'bar',\n symbol: 'circle',\n // 默认是空心圆(中间是白色的),改成实心圆\n smooth: true,\n lineStyle: {\n normal: {\n width: 3 // color: '#518EF5', // 线条颜色\n\n }\n },\n itemStyle: {\n normal: {\n // color: '#518EF5', //拐点颜色\n // borderColor: '#fff600',//拐点边框颜色\n // borderWidth: 13//拐点边框大小\n label: {\n show: false,\n //开启显示\n color: '#fff',\n position: 'top',\n //在上方显示\n formatter: function formatter(res) {\n if (res.value) {\n return res.value;\n } else {\n return 0;\n }\n }\n }\n }\n },\n symbolSize: 8,\n //设定实心点的大小\n data: _datalist3\n });\n }\n });\n });\n } else {\n this.tjwdList.forEach(function (s) {\n var data1list = [];\n\n if (c.staLat == 1) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (c.staLat == 2) {\n c.resultData.forEach(function (r) {\n data1list.push(r.budget);\n });\n } else if (c.staLat == 3) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (c.staLat == 4) {\n c.resultData.forEach(function (r) {\n data1list.push(r.budget);\n });\n } else if (c.staLat == 5) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (c.staLat == 6) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n }\n\n if (s.value == c.staLat) {\n _arr3.push({\n name: s.name,\n type: 'bar',\n symbol: 'circle',\n // 默认是空心圆(中间是白色的),改成实心圆\n smooth: true,\n lineStyle: {\n normal: {\n width: 3 // color: '#518EF5', // 线条颜色\n\n }\n },\n itemStyle: {\n normal: {\n // color: '#518EF5', //拐点颜色\n // borderColor: '#fff600',//拐点边框颜色\n // borderWidth: 13//拐点边框大小\n label: {\n show: false,\n //开启显示\n color: '#fff',\n position: 'top',\n //在上方显示\n formatter: function formatter(res) {\n if (res.value) {\n return res.value;\n } else {\n return 0;\n }\n }\n }\n }\n },\n symbolSize: 8,\n //设定实心点的大小\n data: data1list\n });\n }\n });\n }\n\n option = {\n backgroundColor: '',\n tooltip: {\n trigger: 'axis',\n // 自定义tooltip内容\n formatter: function formatter(item) {\n var str = \"