{"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\\fundThirdPage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\BigScrenn\\fundTheme\\components\\fundThirdPage.vue","mtime":1693992862270},{"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.number.constructor\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from 'vuex';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport moment from \"moment\";\nimport VueSeamlessScroll from 'vue-seamless-scroll';\nimport * as echarts from 'echarts';\nimport fundTheme from '@/api/bigScrenn/fundTheme.js';\nimport screenHeader from '@/views/BigScrenn/components/screenHeader.vue';\nimport echartsTitle from '@/views/BigScrenn/fundTheme/components/echartsTitle.vue';\nimport echartsDialog from '@/views/BigScrenn/components/echartsDialog.vue';\nimport relationshipDialog from '@/views/BigScrenn/components/relationshipDialog.vue';\nexport default {\n components: {\n screenHeader: screenHeader,\n echartsTitle: echartsTitle,\n echartsDialog: echartsDialog,\n relationshipDialog: relationshipDialog,\n VueSeamlessScroll: VueSeamlessScroll\n },\n data: function data() {\n return {\n currentKey: 'fundTheme',\n hierarchy: 4,\n //页面层级\n allList: [],\n zbList: [],\n poolCode: '',\n propsData: {\n children: 'list',\n label: 'code',\n value: 'code',\n expandTrigger: 'hover'\n },\n newParams: {\n pageBean: {\n page: 1,\n pageSize: -1\n },\n querys: []\n },\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: moment().format('YYYY'),\n month: null,\n startMonth: null,\n startYear: moment().subtract(5, 'year').format('YYYY'),\n year: null\n }\n }, {\n type: 16,\n dateReqVo: {\n quarter: moment().format('Q'),\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: moment().format('Q'),\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 },\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 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 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 thirdPageName: '',\n value1: [],\n tjwdList: [],\n topList: [],\n lowerType: true,\n subordinate: true,\n indexData: {},\n linksType: '',\n linksTypeName: '',\n ssywList: [],\n dpzbList: []\n };\n },\n created: function created() {\n this.indexData = JSON.parse(window.localStorage.getItem('fundthirdPageName'));\n this.parmas.targetId = this.indexData.targetId;\n this.containType = this.indexData.containType ? this.indexData.containType.split(',') : [], this.pageName = window.localStorage.getItem('pageName');\n this.firstPageName = JSON.parse(window.localStorage.getItem('fundfirstPageName'));\n this.secondPageName = JSON.parse(window.localStorage.getItem('fundsecondPageName'));\n this.thirdPageName = JSON.parse(window.localStorage.getItem('fundthirdPageName'));\n this.tjwdList = this.$i18n.locale === 'zh-CN' ? dictUtils.getDictItemsFromCache('tjwd') : dictUtils.getDictItemsFromCache('tjwd_en');\n this.ssywList = dictUtils.getDictItemsFromCache('ssyw');\n this.zbList = dictUtils.getDictItemsFromCache('zb_en');\n this.dpzbList = dictUtils.getDictItemsFromCache('dpzb');\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 mounted: function mounted() {\n if (this.pageName === '集团驾驶舱') {\n localStorage.removeItem(\"enterpriseCode\");\n this.getData();\n this.getAreaTree();\n } else {\n this.getAreaTree();\n }\n },\n computed: {\n optionSingleHeightTime: function optionSingleHeightTime() {\n return {\n limitMoveNum: 12,\n singleHeight: 30,\n waitTime: 2500\n };\n }\n },\n methods: {\n callback: function callback() {\n var _this = this;\n\n this.indexData = JSON.parse(window.localStorage.getItem('fundthirdPageName'));\n this.parmas.targetId = this.indexData.targetId;\n this.pageName = window.localStorage.getItem('pageName');\n this.firstPageName = JSON.parse(window.localStorage.getItem('fundfirstPageName'));\n this.secondPageName = JSON.parse(window.localStorage.getItem('fundsecondPageName'));\n this.thirdPageName = JSON.parse(window.localStorage.getItem('fundthirdPageName'));\n\n if (this.pageName === '集团驾驶舱') {\n localStorage.removeItem(\"enterpriseCode\");\n this.getData();\n this.getAreaTree();\n } else {\n this.getAreaTree();\n }\n\n this.$root.$on('resize', function () {\n _this.resize(500);\n });\n },\n getAreaTree: function getAreaTree() {\n var _this2 = this;\n\n this.newParams.querys[({\n group: \"main\",\n operation: \"EQUAL\",\n parentGroup: \"\",\n property: \"pool_type_\",\n relation: \"AND\",\n value: 1\n }, {\n group: \"main\",\n operation: \"EQUAL\",\n parentGroup: \"\",\n property: \"run_status_\",\n relation: \"AND\",\n value: 1\n })];\n fundTheme.getAreaTree(this.newParams, function (res) {\n if (res) {\n res.value.forEach(function (e) {\n _this2.dpzbList.forEach(function (s) {\n if (e.continent == s.name) {\n e.code = s.value;\n }\n });\n });\n _this2.allList = res.value;\n var enterpriseCode = window.localStorage.getItem('enterpriseCode');\n\n if (enterpriseCode) {\n _this2.poolCode = enterpriseCode.split(',');\n } else {\n _this2.poolCode = [res.value[0].code, res.value[0].list[0].code];\n }\n\n _this2.getData();\n }\n });\n },\n balckTwo: function balckTwo(val, index) {\n console.log(index); // window.localStorage.setItem(\"indexData\", JSON.stringify(val));\n\n if (index == 1) {\n this.$router.push({\n name: 'fundFirstPage'\n });\n } else if (index == 2) {\n this.$router.push({\n name: 'fundSecondPage'\n });\n } else {\n // if (this.pageName === '集团驾驶舱') {\n // \tthis.$router.push({\n // \t\tname: 'group',\n // \t})\n // } else {\n this.$router.push({\n name: 'fundTheme'\n }); // }\n }\n },\n themeJump: function themeJump(val) {\n if (val == 'Finance') {\n this.$router.push({\n name: 'financialTheme'\n });\n } else if (val == 'operation') {\n this.$router.push({\n name: 'operationTheme'\n });\n } else if (val == 'invest') {\n this.$router.push({\n name: 'investmentTheme'\n });\n } else if (val == 'hr') {\n this.$router.push({\n name: 'humanResourceTheme'\n });\n } else if (val == 'money') {\n this.$router.push({\n name: 'fundTheme'\n });\n }\n },\n openMore: function openMore() {\n window.localStorage.setItem(\"pageLevel\", this.hierarchy);\n var routeUrl = this.$router.resolve({\n path: '/fundMoreDialog',\n query: this.indexData\n });\n window.open(routeUrl.href, \"_blank\");\n },\n openrelationship: function openrelationship() {\n this.$refs.relationshipDialog.add(this.indexData, this.hierarchy);\n },\n // 动态计算高度,自适应当前容器\n resize: function resize(delay) {\n var _this3 = this;\n\n setTimeout(function () {\n _this3.yearChart.resize();\n\n _this3.quarterChart.resize();\n\n _this3.monthChart.resize();\n }, delay || 0);\n },\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 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 handleData: function handleData(val, index) {\n var _this4 = this;\n\n console.log(val, index);\n var parmas = JSON.parse(JSON.stringify(this.parmas));\n parmas.queryList = [];\n this.containType.forEach(function (e) {\n _this4.parmas.queryList.forEach(function (q) {\n if (e == q.type) {\n parmas.queryList.push(q);\n }\n });\n });\n fundTheme.fromUnderData(parmas, function (res) {\n if (res.value) {\n // res.value.sort(this.arraySort('type'))\n if (val == 17) {\n res.value.forEach(function (v) {\n _this4.dataList.forEach(function (e) {\n if (e.type == 17 && v.type == 17) {\n console.log(v);\n e.bankLoanList = v.bankLoanList;\n }\n });\n });\n console.log(_this4.dataList);\n } else {\n _this4.$nextTick(function () {\n _this4.dataEcharts(res.value[3 + index], index);\n });\n }\n }\n });\n },\n handleTop: function handleTop(val, index) {\n var _this5 = this;\n\n var parmas = JSON.parse(JSON.stringify(this.parmas));\n parmas.queryList = [];\n this.containType.forEach(function (e) {\n _this5.parmas.queryList.forEach(function (q) {\n if (e == q.type) {\n parmas.queryList.push(q);\n }\n });\n });\n fundTheme.fromUnderData(parmas, function (res) {\n if (res.value) {\n // res.value.sort(this.arraySort('type'))\n _this5.$nextTick(function () {\n _this5.topEcharts(res.value[index], index);\n });\n }\n });\n },\n getData: function getData() {\n var _this6 = this;\n\n this.showType = false;\n this.leftList = [];\n this.rightList = [];\n this.dataList = [];\n this.topList = [];\n this.parmas.enterpriseCode = this.poolCode[1];\n window.localStorage.setItem(\"enterpriseCode\", this.poolCode);\n var parmas = JSON.parse(JSON.stringify(this.parmas));\n parmas.queryList = [];\n this.containType.forEach(function (e) {\n _this6.parmas.queryList.forEach(function (q) {\n if (e == q.type) {\n parmas.queryList.push(q);\n }\n });\n });\n fundTheme.fromUnderData(parmas, function (res) {\n if (res.value) {\n var topArr = [];\n var bottomArr = [];\n var loanData = [];\n res.value.forEach(function (e, ei) {\n console.log(e.type);\n\n if (e.lowerStatus == 0) {\n _this6.lowerType = false;\n }\n\n if (e.isData == 0) {\n _this6.subordinate = false;\n }\n\n if (e.linksType) {\n _this6.linksType = e.linksType;\n\n _this6.ssywList.forEach(function (s) {\n if (s.value == _this6.linksType) {\n _this6.linksTypeName = s.name + '主题';\n }\n });\n }\n\n if (e.type == 17) {\n loanData = e;\n } else {\n if (e.targetId == _this6.parmas.targetId && e.type != 14) {\n topArr.push(e);\n e.queryType = true;\n } else {\n bottomArr.push(e);\n }\n }\n });\n\n if (topArr.length > 3) {\n var arr = JSON.parse(JSON.stringify(topArr.concat(bottomArr)));\n _this6.topList = arr.slice(0, 3);\n _this6.dataList = arr.slice(3);\n } else {\n _this6.topList = topArr;\n _this6.dataList = bottomArr;\n }\n\n _this6.dataList.push(loanData);\n\n _this6.dataList.forEach(function (c, cx) {\n _this6.$nextTick(function () {\n _this6.dataEcharts(c, cx);\n });\n });\n\n _this6.topList.forEach(function (t, tx) {\n _this6.$nextTick(function () {\n _this6.topEcharts(t, tx);\n });\n });\n } // this.dataList.forEach((c, cx) => {\n // \tthis.$nextTick(() => {\n // \t\tthis.dataEcharts(c, cx)\n // \t})\n // })\n // this.topList.forEach((t, tx) => {\n // \tthis.$nextTick(() => {\n // \t\tthis.topEcharts(t, tx)\n // \t})\n // })\n\n });\n },\n // 判断是否为整数\n isInteger: function isInteger(obj) {\n return obj % 1 === 0;\n },\n topEcharts: function topEcharts(c, cx) {\n var _this7 = this;\n\n var otherChart = echarts.init(document.getElementById(\"topChart\".concat(cx)));\n\n if (otherChart == null) {\n // 如果不存在,就进行初始化。\n otherChart = echarts.init(document.getElementById(\"topChart\".concat(cx)));\n }\n\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 {\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 }\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 // 自定义tooltip内容\n formatter: function formatter(item) {\n var str = \"
\".concat(item[0].name, \"
\");\n var index = 0; // 命名一个索引,用于匹配增减值、增减率\n\n var leftClass = \"\");\n var rightClass = '';\n item.forEach(function (it) {\n str += \"\".concat(leftClass + it.seriesName, \":\").concat(rightClass + it.value, \"
\");\n index = it.dataIndex;\n });\n\n if (c.resultData[index].differenceValue !== undefined) {\n str = str + \"\".concat(leftClass).concat(_this7.$i18n.locale === 'zh-CN' ? '增减值' : 'Value of increase or decrease', \":\").concat(rightClass + c.resultData[index].differenceValue, \"
\");\n\n if (c.resultData[index].differenceRate !== undefined) {\n str = str + \"\".concat(leftClass).concat(_this7.$i18n.locale === 'zh-CN' ? '增减率' : 'Rate of increase and decrease', \":\").concat(rightClass + c.resultData[index].differenceRate, \"\");\n }\n }\n\n return str;\n }\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: _this7.$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 },\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: _arr3\n };\n } else if (c.type == 8) {\n var _arr4 = [];\n c.resultData.forEach(function (r) {\n xLabel.push(r.year);\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 _datalist4 = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist4.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist4.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist4.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist4.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist4.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist4.push(r.actual);\n });\n }\n\n _arr4.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: _datalist4\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 _arr4.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: _arr4\n };\n } else if (c.type == 9) {\n var _arr5 = [];\n c.resultData.forEach(function (r) {\n xLabel.push(r.year + '.' + r.month);\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 _datalist5 = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist5.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist5.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist5.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist5.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist5.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist5.push(r.actual);\n });\n }\n\n _arr5.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: _datalist5\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 _arr5.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: _arr5\n };\n } else if (c.type == 10 || c.type == 12) {\n var _arr6 = [];\n c.resultData.forEach(function (r) {\n xLabel.push(r.enterpriseCode);\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 _datalist6 = [];\n var markValue = c.resultData[0].budget;\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist6.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist6.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist6.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist6.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist6.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist6.push(r.actual);\n });\n }\n\n _arr6.push({\n name: s.name,\n type: 'bar',\n itemStyle: {\n textStyle: {\n fontWeight: 700\n },\n color: function color(params) {\n if (params.value * 1 >= 0) {\n return \"#748EDE\";\n }\n\n return \"red\";\n }\n },\n markLine: {\n symbol: \"none\",\n //去掉均值最后面的箭头\n label: {\n position: \"end\",\n //将警示值放在哪个位置,三个值“start”,\"middle\",\"end\" 开始 中点 结束\n formatter: \"集团均值\",\n color: '#ffffff'\n },\n data: [{\n silent: false,\n //鼠标悬停事件 true没有,false有\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#00ff40\",\n width: 4\n },\n name: '集团均值',\n xAxis: markValue\n }]\n },\n data: _datalist6\n });\n }\n });\n });\n } else {\n var markValue = c.resultData.length > 0 ? c.resultData[0].budget : '';\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 _arr6.push({\n name: s.name,\n type: 'bar',\n itemStyle: {\n textStyle: {\n fontWeight: 700\n },\n color: function color(params) {\n if (params.value * 1 >= 0) {\n return \"#748EDE\";\n }\n\n return \"red\";\n }\n },\n markLine: {\n symbol: \"none\",\n //去掉均值最后面的箭头\n label: {\n position: \"end\",\n //将警示值放在哪个位置,三个值“start”,\"middle\",\"end\" 开始 中点 结束\n formatter: \"集团均值\",\n color: '#ffffff'\n },\n data: [{\n silent: false,\n //鼠标悬停事件 true没有,false有\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#00ff40\",\n width: 4\n },\n name: '集团均值',\n xAxis: markValue\n }]\n },\n data: data1list\n });\n }\n });\n }\n\n console.log(_arr6);\n option = {\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n type: 'shadow'\n }\n },\n legend: {\n show: false,\n textStyle: {\n color: '#fff',\n fontSize: 14,\n padding: [0, 8, 0, 8]\n }\n },\n grid: {\n top: '5%',\n left: '3%',\n right: '4%',\n bottom: '3%',\n containLabel: true\n },\n xAxis: {\n type: 'value',\n boundaryGap: [0, 0.01],\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\n },\n yAxis: {\n type: 'category',\n data: xLabel,\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\n },\n series: _arr6\n };\n } else if (c.type == 11) {\n var monthData = [];\n var dataValue = [];\n var monthValue = [];\n var yName = [];\n c.resultData.forEach(function (e) {\n monthData.push({\n month: e.month,\n list: []\n });\n });\n var newMonth = Array.from(new Set(monthData.map(function (item) {\n return item.month;\n }))).map(function (month) {\n return monthData.find(function (item) {\n return item.month === month;\n });\n });\n newMonth.forEach(function (m) {\n c.resultData.forEach(function (a) {\n if (a.month == m.month) {\n m.list.push(a);\n }\n });\n });\n newMonth.forEach(function (m, mi) {\n monthValue.push(m.month);\n m.list.forEach(function (l) {\n if (mi === 0) yName.push({\n name: l.name,\n stack: '',\n type: 'bar',\n Data: [] // budgetData:[]\n\n });\n });\n });\n var yName1 = JSON.parse(JSON.stringify(yName));\n yName.forEach(function (y) {\n y.stack = '实际值';\n newMonth.forEach(function (w) {\n w.list.forEach(function (t) {\n if (y.name == t.name) {\n y.Data.push(t.actual);\n }\n });\n });\n });\n yName1.forEach(function (y) {\n y.stack = '预算值';\n newMonth.forEach(function (w) {\n w.list.forEach(function (t) {\n if (y.name == t.name) {\n y.Data.push(t.budget);\n }\n });\n });\n });\n\n var _arr7 = yName.concat(yName1);\n\n var _option = {\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n // Use axis to trigger tooltip\n type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow'\n\n }\n },\n legend: {\n show: false,\n textStyle: {\n color: '#fff',\n fontSize: 14,\n padding: [0, 8, 0, 8]\n }\n },\n grid: {\n top: '12%',\n right: '4%',\n bottom: '3%'\n },\n xAxis: {\n // type: 'value',\n data: monthValue,\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\n },\n yAxis: {\n // type: 'category',\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\n },\n series: _arr7\n };\n } else if (c.type == 15) {\n var _arr8 = [];\n c.resultData.forEach(function (r) {\n xLabel.push(r.year);\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 _datalist7 = [];\n var controlValue = c.controlMoney ? c.controlMoney : null;\n var earlyValue = c.earlyGuaranteeMoney ? c.earlyGuaranteeMoney : null;\n var markLine = {};\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist7.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist7.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist7.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist7.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist7.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist7.push(r.actual);\n });\n } else if (t == 8) {\n c.resultData.forEach(function (r) {\n _datalist7.push(r.actual);\n });\n } else if (t == 9) {\n c.resultData.forEach(function (r) {\n _datalist7.push(r.actual);\n });\n }\n\n if (c.controlMoney || c.earlyGuaranteeMoney) {\n markLine = {\n symbol: \"none\",\n //去掉均值最后面的箭头\n label: {\n show: true,\n formatter: '{b}: {c}' // {b}为标记线名称,{c}为数值\n\n },\n data: [{\n // silent: true, //鼠标悬停事件 true没有,false有\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#ffff00\",\n width: 2\n },\n label: {\n position: 'insideStartBottom',\n formatter: _this7.$i18n.locale === 'zh-CN' ? \"年度控制总额水平线\" : 'Annual control total level',\n color: '#ffff00'\n },\n name: _this7.$i18n.locale === 'zh-CN' ? \"年度控制总额水平线\" : 'Annual control total level',\n yAxis: controlValue\n }, {\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#00ff40\",\n width: 2\n },\n label: {\n position: 'insideEndTop',\n formatter: _this7.$i18n.locale === 'zh-CN' ? '年初担保批准额度水平线' : 'Guarantee approval level at the beginning of the year',\n color: '#00ff40'\n },\n name: _this7.$i18n.locale === 'zh-CN' ? '年初担保批准额度水平线' : 'Guarantee approval level at the beginning of the year',\n yAxis: earlyValue\n }]\n };\n }\n\n _arr8.push({\n name: s.name,\n type: 'bar',\n markLine: markLine,\n data: _datalist7\n });\n }\n });\n });\n } else {\n var controlValue = c.controlMoney ? c.controlMoney : null;\n var earlyValue = c.earlyGuaranteeMoney ? c.earlyGuaranteeMoney : null;\n var markLine = {};\n\n if (c.controlMoney || c.earlyGuaranteeMoney) {\n markLine = {\n symbol: \"none\",\n //去掉均值最后面的箭头\n data: [{\n // silent: true, //鼠标悬停事件 true没有,false有\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#ffff00\",\n width: 2\n },\n label: {\n position: 'insideStartBottom',\n formatter: this.$i18n.locale === 'zh-CN' ? \"年度控制总额水平线\" : 'Annual control total level' + \"(\".concat(controlValue, \")\"),\n color: '#ffff00'\n },\n name: this.$i18n.locale === 'zh-CN' ? \"年度控制总额水平线\" : 'Annual control total level',\n yAxis: controlValue\n }, {\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#00ff40\",\n width: 2\n },\n label: {\n position: 'insideEndTop',\n formatter: this.$i18n.locale === 'zh-CN' ? '年初担保批准额度水平线' : 'Guarantee approval level at the beginning of the year' + \"(\".concat(earlyValue, \")\"),\n color: '#00ff40'\n },\n name: this.$i18n.locale === 'zh-CN' ? '年初担保批准额度水平线' : 'Guarantee approval level at the beginning of the year',\n yAxis: earlyValue\n }]\n };\n }\n\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 (c.staLat == 8) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (c.staLat == 9) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n }\n\n if (s.value == c.staLat) {\n _arr8.push({\n name: s.name,\n type: 'bar',\n itemStyle: {\n textStyle: {\n fontWeight: 700\n },\n color: function color(params) {\n if (params.value * 1 >= 0) {\n return \"#748EDE\";\n }\n\n return \"red\";\n }\n },\n markLine: markLine,\n data: data1list\n });\n }\n });\n }\n\n option = {\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n type: 'shadow'\n }\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: '10%',\n left: '3%',\n right: '4%',\n bottom: '3%',\n containLabel: true\n },\n xAxis: {\n type: 'category',\n data: xLabel,\n // type: 'value',\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\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: _arr8\n };\n } else if (c.type == 17) {// let arr = []\n // c.bankLoanList.forEach(r => {\n // \txLabel.push(r.bankName)\n // })\n // if (c.staLat.split(',').length > 1) {\n // \tthis.tjwdList.forEach(s => {\n // \t\tc.staLat.split(',').forEach(t => {\n // \t\t\tif (s.value == t) {\n // \t\t\t\tlet datalist = []\n // \t\t\t\tif (t == 1) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push(r.actual)\n // \t\t\t\t\t})\n // \t\t\t\t} else if (t == 2) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push(r.budget)\n // \t\t\t\t\t})\n // \t\t\t\t} else if (t == 3) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push(r.actual)\n // \t\t\t\t\t})\n // \t\t\t\t} else if (t == 4) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push(r.budget)\n // \t\t\t\t\t})\n // \t\t\t\t} else if (t == 5) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push(r.actual)\n // \t\t\t\t\t})\n // \t\t\t\t} else if (t == 6) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push(r.actual)\n // \t\t\t\t\t})\n // \t\t\t\t} else if (t == 7) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push(r.actual)\n // \t\t\t\t\t})\n // \t\t\t\t} else if (t == 8) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push(r.budget)\n // \t\t\t\t\t})\n // \t\t\t\t} else if (t == 9) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push({\n // \t\t\t\t\t\t\tvalue: r.loan,\n // \t\t\t\t\t\t\textra: {\n // \t\t\t\t\t\t\t\tstartDate: r.startDate,\n // \t\t\t\t\t\t\t\tendDate: r.endDate\n // \t\t\t\t\t\t\t}\n // \t\t\t\t\t\t})\n // \t\t\t\t\t})\n // \t\t\t\t} else if (t == 10) {\n // \t\t\t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\t\t\tdatalist.push({\n // \t\t\t\t\t\t\tvalue: r.interestRate,\n // \t\t\t\t\t\t\textra: {\n // \t\t\t\t\t\t\t\tstartDate: r.startDate,\n // \t\t\t\t\t\t\t\tendDate: r.endDate\n // \t\t\t\t\t\t\t}\n // \t\t\t\t\t\t})\n // \t\t\t\t\t})\n // \t\t\t\t}\n // \t\t\t\tarr.push({\n // \t\t\t\t\tname: s.name,\n // \t\t\t\t\ttype: 'line',\n // \t\t\t\t\tsymbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆\n // \t\t\t\t\tsmooth: true,\n // \t\t\t\t\tlineStyle: {\n // \t\t\t\t\t\tnormal: {\n // \t\t\t\t\t\t\twidth: 3,\n // \t\t\t\t\t\t},\n // \t\t\t\t\t},\n // \t\t\t\t\titemStyle: {\n // \t\t\t\t\t\tnormal: {\n // \t\t\t\t\t\t\tlabel: {\n // \t\t\t\t\t\t\t\tshow: false, //开启显示\n // \t\t\t\t\t\t\t\tcolor: '#fff',\n // \t\t\t\t\t\t\t\tposition: 'top', //在上方显示\n // \t\t\t\t\t\t\t\tformatter: function(res) {\n // \t\t\t\t\t\t\t\t\tif (res.value) {\n // \t\t\t\t\t\t\t\t\t\treturn res.value\n // \t\t\t\t\t\t\t\t\t} else {\n // \t\t\t\t\t\t\t\t\t\treturn 0\n // \t\t\t\t\t\t\t\t\t}\n // \t\t\t\t\t\t\t\t},\n // \t\t\t\t\t\t\t},\n // \t\t\t\t\t\t},\n // \t\t\t\t\t},\n // \t\t\t\t\tsymbolSize: 8, //设定实心点的大小\n // \t\t\t\t\tdata: datalist\n // \t\t\t\t}, )\n // \t\t\t}\n // \t\t})\n // \t})\n // } else {\n // \tthis.tjwdList.forEach(s => {\n // \t\tlet data1list = []\n // \t\tif (c.staLat == 1) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push(r.actual)\n // \t\t\t})\n // \t\t} else if (c.staLat == 2) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push(r.budget)\n // \t\t\t})\n // \t\t} else if (c.staLat == 3) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push(r.actual)\n // \t\t\t})\n // \t\t} else if (c.staLat == 4) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push(r.budget)\n // \t\t\t})\n // \t\t} else if (c.staLat == 5) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push(r.actual)\n // \t\t\t})\n // \t\t} else if (c.staLat == 6) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push(r.actual)\n // \t\t\t})\n // \t\t} else if (c.staLat == 7) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push(r.actual)\n // \t\t\t})\n // \t\t} else if (c.staLat == 8) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push(r.actual)\n // \t\t\t})\n // \t\t} else if (c.staLat == 9) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push({\n // \t\t\t\t\tvalue: r.loan,\n // \t\t\t\t\textra: {\n // \t\t\t\t\t\tstartDate: r.startDate,\n // \t\t\t\t\t\tendDate: r.endDate\n // \t\t\t\t\t}\n // \t\t\t\t})\n // \t\t\t})\n // \t\t} else if (c.staLat == 10) {\n // \t\t\tc.bankLoanList.forEach(r => {\n // \t\t\t\tdata1list.push({\n // \t\t\t\t\tvalue: r.interestRate,\n // \t\t\t\t\textra: {\n // \t\t\t\t\t\tstartDate: r.startDate,\n // \t\t\t\t\t\tendDate: r.endDate\n // \t\t\t\t\t}\n // \t\t\t\t})\n // \t\t\t})\n // \t\t}\n // \t\tif (s.value == c.staLat) {\n // \t\t\tarr.push({\n // \t\t\t\tname: s.name,\n // \t\t\t\ttype: 'line',\n // \t\t\t\tsymbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆\n // \t\t\t\tsmooth: true,\n // \t\t\t\tlineStyle: {\n // \t\t\t\t\tnormal: {\n // \t\t\t\t\t\twidth: 3,\n // \t\t\t\t\t\t// color: '#518EF5', // 线条颜色\n // \t\t\t\t\t},\n // \t\t\t\t},\n // \t\t\t\titemStyle: {\n // \t\t\t\t\tnormal: {\n // \t\t\t\t\t\t// color: '#518EF5', //拐点颜色\n // \t\t\t\t\t\t// borderColor: '#fff600',//拐点边框颜色\n // \t\t\t\t\t\t// borderWidth: 13//拐点边框大小\n // \t\t\t\t\t\tlabel: {\n // \t\t\t\t\t\t\tshow: false, //开启显示\n // \t\t\t\t\t\t\tcolor: '#fff',\n // \t\t\t\t\t\t\tposition: 'top', //在上方显示\n // \t\t\t\t\t\t\tformatter: function(res) {\n // \t\t\t\t\t\t\t\tif (res.value) {\n // \t\t\t\t\t\t\t\t\treturn res.value\n // \t\t\t\t\t\t\t\t} else {\n // \t\t\t\t\t\t\t\t\treturn 0\n // \t\t\t\t\t\t\t\t}\n // \t\t\t\t\t\t\t},\n // \t\t\t\t\t\t},\n // \t\t\t\t\t},\n // \t\t\t\t},\n // \t\t\t\tsymbolSize: 8, //设定实心点的大小\n // \t\t\t\tdata: data1list\n // \t\t\t}, )\n // \t\t}\n // \t})\n // }\n // option = {\n // \tbackgroundColor: '',\n // \ttooltip: {\n // \t\ttrigger: 'axis',\n // \t\tformatter: function(params) {\n // \t\t\tvar tooltipText = '
'; // 设置tooltip内容两边对齐\n // \t\t\ttooltipText +=\n // \t\t\t\t`${params[0].name}`; // X轴数值\n // \t\t\ttooltipText +=\n // \t\t\t\t'' +\n // \t\t\t\t'借款起期' + ':';\n // \t\t\ttooltipText +=\n // \t\t\t\t'' +\n // \t\t\t\tparams[0].data.extra.startDate + '' + '
';\n // \t\t\ttooltipText +=\n // \t\t\t\t'' +\n // \t\t\t\t'借款止期' + ':';\n // \t\t\ttooltipText +=\n // \t\t\t\t'' +\n // \t\t\t\tparams[0].data.extra.endDate + '' + '
';\n // \t\t\tparams.forEach(function(item) {\n // \t\t\t\ttooltipText +=\n // \t\t\t\t\t'' +\n // \t\t\t\t\titem.seriesName + ':';\n // \t\t\t\ttooltipText +=\n // \t\t\t\t\t'' +\n // \t\t\t\t\titem.value + '';\n // \t\t\t\ttooltipText += '
';\n // \t\t\t});\n // \t\t\ttooltipText += '
';\n // \t\t\treturn tooltipText;\n // \t\t}\n // \t},\n // \tlegend: {\n // \t\tshow: true,\n // \t\ttextStyle: {\n // \t\t\tcolor: '#fff',\n // \t\t\tfontSize: 14,\n // \t\t\tpadding: [0, 8, 0, 8]\n // \t\t},\n // \t},\n // \tgrid: {\n // \t\ttop: '18%',\n // \t\tleft: '14%',\n // \t\tright: '5%',\n // \t\tbottom: '14%',\n // \t},\n // \txAxis: [{\n // \t\ttype: 'category',\n // \t\taxisLabel: {\n // \t\t\ttextStyle: {\n // \t\t\t\tcolor: '#FFFFFF',\n // \t\t\t\tfontSize: 12,\n // \t\t\t},\n // \t\t},\n // \t\tsplitLine: {\n // \t\t\tshow: false,\n // \t\t\tlineStyle: {\n // \t\t\t\tcolor: '#233653',\n // \t\t\t},\n // \t\t},\n // \t\taxisTick: {\n // \t\t\tshow: false,\n // \t\t},\n // \t\tdata: xLabel,\n // \t}, ],\n // \tyAxis: [{\n // \t\t// name: c.targetUnit,\n // \t\tnameTextStyle: {\n // \t\t\tcolor: \"#fff\",\n // \t\t\tfontSize: 12,\n // \t\t\tpadding: [0, 60, 0, 0]\n // \t\t},\n // \t\ttype: 'value',\n // \t\tsplitLine: {\n // \t\t\tshow: true,\n // \t\t\tlineStyle: {\n // \t\t\t\tcolor: '#1160a0',\n // \t\t\t\ttype: 'dashed'\n // \t\t\t},\n // \t\t},\n // \t\taxisLabel: {\n // \t\t\tinterval: 0, //标签设置为全部显示\n // \t\t\tformatter: function(params) {\n // \t\t\t\tconst units = ['', '万', '百万', '亿', '万亿'];\n // \t\t\t\tlet unitIndex = 0;\n // \t\t\t\tif (params < 0) {\n // \t\t\t\t\tparams = Math.abs(params)\n // \t\t\t\t\twhile (params >= 10000 && unitIndex < units.length - 1) {\n // \t\t\t\t\t\tparams /= 10000;\n // \t\t\t\t\t\tunitIndex++;\n // \t\t\t\t\t}\n // \t\t\t\t\tparams = (0 - params)\n // \t\t\t\t} else {\n // \t\t\t\t\twhile (params >= 10000 && unitIndex < units.length - 1) {\n // \t\t\t\t\t\tparams /= 10000;\n // \t\t\t\t\t\tunitIndex++;\n // \t\t\t\t\t}\n // \t\t\t\t}\n // \t\t\t\tconst formattedNumber = params\n // \t\t\t\treturn formattedNumber + units[unitIndex];\n // \t\t\t},\n // \t\t\ttextStyle: {\n // \t\t\t\tcolor: '#fff',\n // \t\t\t\tfontSize: 14\n // \t\t\t}\n // \t\t},\n // \t\taxisTick: {\n // \t\t\tshow: false,\n // \t\t},\n // \t\ttriggerEvent: true\n // \t}, ],\n // \tseries: arr\n // }\n } else if (c.type == 19) {\n var _arr9 = [];\n c.euroRatesList.forEach(function (r) {\n xLabel.push(r.year);\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 _datalist8 = [];\n\n if (t == 11) {\n c.euroRatesList.forEach(function (r) {\n _datalist8.push(r.oneActual);\n });\n } else if (t == 12) {\n c.euroRatesList.forEach(function (r) {\n _datalist8.push(r.sixActual);\n });\n } else if (t == 13) {\n c.euroRatesList.forEach(function (r) {\n _datalist8.push(r.threeActual);\n });\n }\n\n _arr9.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: _datalist8\n });\n }\n });\n });\n } else {\n this.tjwdList.forEach(function (s) {\n var data1list = [];\n\n if (c.staLat == 11) {\n c.euroRatesList.forEach(function (r) {\n data1list.push(r.oneActual);\n });\n } else if (t == 12) {\n c.euroRatesList.forEach(function (r) {\n datalist.push(r.sixActual);\n });\n } else if (t == 13) {\n c.euroRatesList.forEach(function (r) {\n datalist.push(r.threeActual);\n });\n }\n\n if (s.value == c.staLat) {\n _arr9.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: _arr9\n };\n }\n\n option && otherChart.setOption(option);\n var echartAll = document.getElementsByClassName('otherFull');\n otherChart.on('click', function (params) {\n if (c.type == 12 || c.type == 10 || c.type == 7 || c.type == 6) {\n var value = _this7.searchParentCodes(_this7.allList, params.name);\n\n var level = window.localStorage.getItem('pageLevel');\n\n if (value.length > 0) {\n window.localStorage.setItem(\"enterpriseCode\", [value, params.name]);\n window.localStorage.setItem(\"pageName\", \"资金主题\");\n\n if (_this7.hierarchy == 2) {\n _this7.$router.push({\n name: 'fundFirstPage'\n });\n } else if (_this7.hierarchy == 3) {\n _this7.$router.push({\n name: 'fundSecondPage'\n });\n } else if (_this7.hierarchy == 4) {\n _this7.$router.push({\n name: 'fundThirdPage'\n });\n } else if (_this7.hierarchy == 5) {\n _this7.$router.push({\n name: 'fundFourthPage'\n });\n }\n }\n\n _this7.indexData = JSON.parse(window.localStorage.getItem('fundthirdPageName'));\n _this7.parmas.targetId = _this7.indexData.targetId;\n _this7.pageName = window.localStorage.getItem('pageName');\n _this7.firstPageName = JSON.parse(window.localStorage.getItem('fundfirstPageName'));\n _this7.secondPageName = JSON.parse(window.localStorage.getItem('fundsecondPageName'));\n _this7.thirdPageName = JSON.parse(window.localStorage.getItem('fundthirdPageName')); // if (this.pageName === '集团驾驶舱') {\n // \tlocalStorage.removeItem(\"enterpriseCode\");\n // \tthis.getData()\n // \tthis.getAreaTree()\n // } else {\n\n _this7.getAreaTree(); // }\n\n }\n });\n\n window.onresize = function () {\n for (var i = 0; i < echartAll.length; i++) {\n var myChart = echarts.init(echartAll[i]);\n myChart.resize();\n }\n };\n },\n //其他\n dataEcharts: function dataEcharts(c, cx) {\n var _this8 = this;\n\n var otherChart = echarts.init(document.getElementById(\"pieChart\".concat(cx)));\n\n if (otherChart == null) {\n // 如果不存在,就进行初始化。\n otherChart = echarts.init(document.getElementById(\"pieChart\".concat(cx)));\n }\n\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 {\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 _datalist9 = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist9.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist9.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist9.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist9.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist9.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist9.push(r.actual);\n });\n } else if (t == 8) {\n c.resultData.forEach(function (r) {\n _datalist9.push(r.actual);\n });\n } else if (t == 9) {\n c.resultData.forEach(function (r) {\n _datalist9.push(r.budget);\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: _datalist9\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 // 自定义tooltip内容\n formatter: function formatter(item) {\n var str = \"
\".concat(item[0].name, \"
\");\n var index = 0; // 命名一个索引,用于匹配增减值、增减率\n\n var leftClass = \"\");\n var rightClass = '';\n item.forEach(function (it) {\n str += \"\".concat(leftClass + it.seriesName, \":\").concat(rightClass + it.value, \"
\");\n index = it.dataIndex;\n });\n\n if (c.resultData[index].differenceValue !== undefined) {\n str = str + \"\".concat(leftClass).concat(_this8.$i18n.locale === 'zh-CN' ? '增减值' : 'Value of increase or decrease', \":\").concat(rightClass + c.resultData[index].differenceValue, \"
\");\n\n if (c.resultData[index].differenceRate !== undefined) {\n str = str + \"\".concat(leftClass).concat(_this8.$i18n.locale === 'zh-CN' ? '增减率' : 'Rate of increase and decrease', \":\").concat(rightClass + c.resultData[index].differenceRate, \"\");\n }\n }\n\n return str;\n }\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 _arr10 = [];\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 _arr10.push({\n name: _this8.$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 _arr10.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: _arr10\n };\n } else if (c.type == 4) {\n var _arr11 = [];\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 _datalist10 = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist10.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist10.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist10.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist10.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist10.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist10.push(r.actual);\n });\n }\n\n _arr11.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: _datalist10\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 _arr11.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 _arr11.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: _arr11\n };\n } else if (c.type == 6 || c.type == 7 || c.type == 16) {\n //柱状图\n var _arr12 = [];\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 _datalist11 = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist11.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist11.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist11.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist11.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist11.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist11.push(r.actual);\n });\n }\n\n _arr12.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: _datalist11\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 _arr12.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 },\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: _arr12\n };\n } else if (c.type == 8) {\n var _arr13 = [];\n c.resultData.forEach(function (r) {\n xLabel.push(r.year);\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 _datalist12 = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist12.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist12.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist12.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist12.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist12.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist12.push(r.actual);\n });\n }\n\n _arr13.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: _datalist12\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 _arr13.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: _arr13\n };\n } else if (c.type == 9) {\n var _arr14 = [];\n c.resultData.forEach(function (r) {\n xLabel.push(r.year + '.' + r.month);\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 _datalist13 = [];\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist13.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist13.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist13.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist13.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist13.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist13.push(r.actual);\n });\n }\n\n _arr14.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: _datalist13\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 _arr14.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: _arr14\n };\n } else if (c.type == 10 || c.type == 12) {\n var _arr15 = [];\n c.resultData.forEach(function (r) {\n xLabel.push(r.enterpriseCode);\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 _datalist14 = [];\n var markValue = c.resultData[0].budget;\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist14.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist14.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist14.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist14.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist14.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist14.push(r.actual);\n });\n }\n\n _arr15.push({\n name: s.name,\n type: 'bar',\n itemStyle: {\n textStyle: {\n fontWeight: 700\n },\n color: function color(params) {\n if (params.value * 1 >= 0) {\n return \"#748EDE\";\n }\n\n return \"red\";\n }\n },\n markLine: {\n symbol: \"none\",\n //去掉均值最后面的箭头\n label: {\n position: \"end\",\n //将警示值放在哪个位置,三个值“start”,\"middle\",\"end\" 开始 中点 结束\n formatter: \"集团均值\",\n color: '#ffffff'\n },\n data: [{\n silent: false,\n //鼠标悬停事件 true没有,false有\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#00ff40\",\n width: 2\n },\n name: '集团均值',\n xAxis: markValue\n }]\n },\n data: _datalist14\n });\n }\n });\n });\n } else {\n var markValue = c.resultData.length > 0 ? c.resultData[0].budget : '';\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 _arr15.push({\n name: s.name,\n type: 'bar',\n itemStyle: {\n textStyle: {\n fontWeight: 700\n },\n color: function color(params) {\n if (params.value * 1 >= 0) {\n return \"#748EDE\";\n }\n\n return \"red\";\n }\n },\n markLine: {\n symbol: \"none\",\n //去掉均值最后面的箭头\n label: {\n position: \"end\",\n //将警示值放在哪个位置,三个值“start”,\"middle\",\"end\" 开始 中点 结束\n formatter: \"集团均值\",\n color: '#ffffff'\n },\n data: [{\n silent: false,\n //鼠标悬停事件 true没有,false有\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#00ff40\",\n width: 2\n },\n name: '集团均值',\n xAxis: markValue\n }]\n },\n data: data1list\n });\n }\n });\n }\n\n console.log(_arr15);\n option = {\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n type: 'shadow'\n }\n },\n legend: {\n show: false,\n textStyle: {\n color: '#fff',\n fontSize: 14,\n padding: [0, 8, 0, 8]\n }\n },\n grid: {\n top: '5%',\n left: '3%',\n right: '4%',\n bottom: '3%',\n containLabel: true\n },\n xAxis: {\n type: 'value',\n boundaryGap: [0, 0.01],\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\n },\n yAxis: {\n type: 'category',\n data: xLabel,\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\n },\n series: _arr15\n };\n } else if (c.type == 11) {\n var monthData = [];\n var dataValue = [];\n var monthValue = [];\n var yName = [];\n c.resultData.forEach(function (e) {\n monthData.push({\n month: e.month,\n list: []\n });\n });\n var newMonth = Array.from(new Set(monthData.map(function (item) {\n return item.month;\n }))).map(function (month) {\n return monthData.find(function (item) {\n return item.month === month;\n });\n });\n newMonth.forEach(function (m) {\n c.resultData.forEach(function (a) {\n if (a.month == m.month) {\n m.list.push(a);\n }\n });\n });\n newMonth.forEach(function (m, mi) {\n monthValue.push(m.month);\n m.list.forEach(function (l) {\n if (mi === 0) yName.push({\n name: l.name,\n stack: '',\n type: 'bar',\n Data: [] // budgetData:[]\n\n });\n });\n });\n var yName1 = JSON.parse(JSON.stringify(yName));\n yName.forEach(function (y) {\n y.stack = '实际值';\n newMonth.forEach(function (w) {\n w.list.forEach(function (t) {\n if (y.name == t.name) {\n y.Data.push(t.actual);\n }\n });\n });\n });\n yName1.forEach(function (y) {\n y.stack = '预算值';\n newMonth.forEach(function (w) {\n w.list.forEach(function (t) {\n if (y.name == t.name) {\n y.Data.push(t.budget);\n }\n });\n });\n });\n\n var _arr16 = yName.concat(yName1);\n\n var _option2 = {\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n // Use axis to trigger tooltip\n type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow'\n\n }\n },\n legend: {\n show: false,\n textStyle: {\n color: '#fff',\n fontSize: 14,\n padding: [0, 8, 0, 8]\n }\n },\n grid: {\n top: '12%',\n right: '4%',\n bottom: '3%'\n },\n xAxis: {\n // type: 'value',\n data: monthValue,\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\n },\n yAxis: {\n // type: 'category',\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\n },\n series: _arr16\n };\n } else if (c.type == 15) {\n var _arr17 = [];\n c.resultData.forEach(function (r) {\n xLabel.push(r.year);\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 _datalist15 = [];\n var controlValue = c.controlMoney ? c.controlMoney : null;\n var earlyValue = c.earlyGuaranteeMoney ? c.earlyGuaranteeMoney : null;\n var markLine = {};\n\n if (t == 1) {\n c.resultData.forEach(function (r) {\n _datalist15.push(r.actual);\n });\n } else if (t == 2) {\n c.resultData.forEach(function (r) {\n _datalist15.push(r.budget);\n });\n } else if (t == 3) {\n c.resultData.forEach(function (r) {\n _datalist15.push(r.actual);\n });\n } else if (t == 4) {\n c.resultData.forEach(function (r) {\n _datalist15.push(r.budget);\n });\n } else if (t == 5) {\n c.resultData.forEach(function (r) {\n _datalist15.push(r.actual);\n });\n } else if (t == 6) {\n c.resultData.forEach(function (r) {\n _datalist15.push(r.actual);\n });\n } else if (t == 8) {\n c.resultData.forEach(function (r) {\n _datalist15.push(r.actual);\n });\n } else if (t == 9) {\n c.resultData.forEach(function (r) {\n _datalist15.push(r.actual);\n });\n }\n\n if (c.controlMoney || c.earlyGuaranteeMoney) {\n markLine = {\n symbol: \"none\",\n //去掉均值最后面的箭头\n data: [{\n // silent: true, //鼠标悬停事件 true没有,false有\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#ffff00\",\n width: 2\n },\n label: {\n position: 'insideStartBottom',\n formatter: _this8.$i18n.locale === 'zh-CN' ? \"年度控制总额水平线\" : 'Annual control total level',\n color: '#ffff00'\n },\n name: _this8.$i18n.locale === 'zh-CN' ? \"年度控制总额水平线\" : 'Annual control total level',\n yAxis: controlValue\n }, {\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#00ff40\",\n width: 2\n },\n label: {\n position: 'insideEndTop',\n formatter: _this8.$i18n.locale === 'zh-CN' ? '年初担保批准额度水平线' : 'Guarantee approval level at the beginning of the year',\n color: '#00ff40'\n },\n name: _this8.$i18n.locale === 'zh-CN' ? '年初担保批准额度水平线' : 'Guarantee approval level at the beginning of the year',\n yAxis: earlyValue\n }]\n };\n }\n\n _arr17.push({\n name: s.name,\n type: 'bar',\n markLine: markLine,\n data: _datalist15\n });\n }\n });\n });\n } else {\n var controlValue = c.controlMoney ? c.controlMoney : null;\n var earlyValue = c.earlyGuaranteeMoney ? c.earlyGuaranteeMoney : null;\n var markLine = {};\n\n if (c.controlMoney || c.earlyGuaranteeMoney) {\n markLine = {\n symbol: \"none\",\n //去掉均值最后面的箭头\n data: [{\n // silent: true, //鼠标悬停事件 true没有,false有\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#ffff00\",\n width: 2\n },\n label: {\n position: 'insideStartBottom',\n formatter: this.$i18n.locale === 'zh-CN' ? \"年度控制总额水平线\" : 'Annual control total level' + \"(\".concat(controlValue, \")\"),\n color: '#ffff00'\n },\n name: this.$i18n.locale === 'zh-CN' ? \"年度控制总额水平线\" : 'Annual control total level',\n yAxis: controlValue\n }, {\n lineStyle: {\n //均值的样式 ,虚实 颜色\n type: \"solid\",\n color: \"#00ff40\",\n width: 2\n },\n label: {\n position: 'insideEndTop',\n formatter: this.$i18n.locale === 'zh-CN' ? '年初担保批准额度水平线' : 'Guarantee approval level at the beginning of the year' + \"(\".concat(earlyValue, \")\"),\n color: '#00ff40'\n },\n name: this.$i18n.locale === 'zh-CN' ? '年初担保批准额度水平线' : 'Guarantee approval level at the beginning of the year',\n yAxis: earlyValue\n }]\n };\n }\n\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 (c.staLat == 8) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (c.staLat == 9) {\n c.resultData.forEach(function (r) {\n data1list.push(r.actual);\n });\n }\n\n if (s.value == c.staLat) {\n _arr17.push({\n name: s.name,\n type: 'bar',\n itemStyle: {\n textStyle: {\n fontWeight: 700\n },\n color: function color(params) {\n if (params.value * 1 >= 0) {\n return \"#748EDE\";\n }\n\n return \"red\";\n }\n },\n markLine: markLine,\n data: data1list\n });\n }\n });\n }\n\n option = {\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n type: 'shadow'\n }\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: '10%',\n left: '3%',\n right: '4%',\n bottom: '3%',\n containLabel: true\n },\n xAxis: {\n type: 'category',\n data: xLabel,\n // type: 'value',\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n }\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: _arr17\n };\n } else if (c.type == 19) {\n var _arr18 = [];\n c.euroRatesList.forEach(function (r) {\n xLabel.push(r.year);\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 _datalist16 = [];\n\n if (t == 11) {\n c.euroRatesList.forEach(function (r) {\n _datalist16.push(r.oneActual);\n });\n } else if (t == 12) {\n c.euroRatesList.forEach(function (r) {\n _datalist16.push(r.sixActual);\n });\n } else if (t == 13) {\n c.euroRatesList.forEach(function (r) {\n _datalist16.push(r.threeActual);\n });\n }\n\n _arr18.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: _datalist16\n });\n }\n });\n });\n } else {\n this.tjwdList.forEach(function (s) {\n var data1list = [];\n\n if (c.staLat == 11) {\n c.euroRatesList.forEach(function (r) {\n data1list.push(r.oneActual);\n });\n } else if (t == 12) {\n c.euroRatesList.forEach(function (r) {\n datalist.push(r.sixActual);\n });\n } else if (t == 13) {\n c.euroRatesList.forEach(function (r) {\n datalist.push(r.threeActual);\n });\n }\n\n if (s.value == c.staLat) {\n _arr18.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: _arr18\n };\n }\n\n option && otherChart.setOption(option);\n var echartAll = document.getElementsByClassName('otherFull');\n otherChart.on('click', function (params) {\n if (c.type == 16 || c.type == 12 || c.type == 10 || c.type == 7 || c.type == 6) {\n var value = _this8.searchParentCodes(_this8.allList, params.name);\n\n var level = window.localStorage.getItem('pageLevel');\n\n if (value.length > 0) {\n window.localStorage.setItem(\"enterpriseCode\", [value, params.name]);\n window.localStorage.setItem(\"pageName\", \"资金主题\");\n\n if (_this8.hierarchy == 2) {\n _this8.$router.push({\n name: 'fundFirstPage'\n });\n } else if (_this8.hierarchy == 3) {\n _this8.$router.push({\n name: 'fundSecondPage'\n });\n } else if (_this8.hierarchy == 4) {\n _this8.$router.push({\n name: 'fundThirdPage'\n });\n } else if (_this8.hierarchy == 5) {\n _this8.$router.push({\n name: 'fundFourthPage'\n });\n }\n }\n\n _this8.indexData = JSON.parse(window.localStorage.getItem('fundthirdPageName'));\n _this8.parmas.targetId = _this8.indexData.targetId;\n _this8.pageName = window.localStorage.getItem('pageName');\n _this8.firstPageName = JSON.parse(window.localStorage.getItem('fundfirstPageName'));\n _this8.secondPageName = JSON.parse(window.localStorage.getItem('fundsecondPageName'));\n _this8.thirdPageName = JSON.parse(window.localStorage.getItem('fundthirdPageName')); // if (this.pageName === '集团驾驶舱') {\n // \tlocalStorage.removeItem(\"enterpriseCode\");\n // \tthis.getData()\n // \tthis.getAreaTree()\n // } else {\n\n _this8.getAreaTree(); // }\n\n }\n });\n\n window.onresize = function () {\n for (var i = 0; i < echartAll.length; i++) {\n var myChart = echarts.init(echartAll[i]);\n myChart.resize();\n }\n };\n },\n searchParentCodes: function searchParentCodes(data, code) {\n var _this9 = this;\n\n var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n data.forEach(function (item) {\n if (item.code === code) {\n return;\n }\n\n if (Array.isArray(item.list)) {\n item.list.forEach(function (child) {\n if (child.code === code) {\n result.push(item.code);\n\n _this9.searchParentCodes(data, item.code, result);\n } else {\n _this9.searchParentCodes([child], code, result);\n }\n });\n }\n });\n return result;\n },\n //更多企业\n handleMore: function handleMore(val) {\n this.$refs.echartsDialog.add(val);\n }\n }\n};",null]}