{"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\\fundFourthPage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\BigScrenn\\fundTheme\\components\\fundFourthPage.vue","mtime":1693992862238},{"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//\nimport { mapState } from 'vuex';\nimport moment from \"moment\";\nimport * as echarts from 'echarts';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport fundTheme from '@/api/bigScrenn/fundTheme.js';\nimport screenHeader from '@/views/BigScrenn/components/screenHeader.vue';\nimport echartsTitle from '@/views/BigScrenn/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 },\n data: function data() {\n return {\n currentKey: 'fundTheme',\n hierarchy: 5,\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 staLatList: [{\n name: '实际值',\n value: 1\n }, {\n name: '预算值',\n value: 2\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 fourthPageName: '',\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('fundfourthPageName'));\n this.parmas.targetId = this.indexData.targetId;\n this.containType = this.indexData.containType ? this.indexData.containType.split(',') : [];\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 this.fourthPageName = JSON.parse(window.localStorage.getItem('fundfourthPageName'));\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 var _this = this;\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 methods: {\n callback: function callback() {\n var _this2 = this;\n\n this.indexData = JSON.parse(window.localStorage.getItem('fundfourthPageName'));\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 this.fourthPageName = JSON.parse(window.localStorage.getItem('fundfourthPageName'));\n this.getAreaTree();\n this.$root.$on('resize', function () {\n _this2.resize(500);\n });\n },\n getAreaTree: function getAreaTree() {\n var _this3 = 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 _this3.dpzbList.forEach(function (s) {\n if (e.continent == s.name) {\n e.code = s.value;\n }\n });\n });\n _this3.allList = res.value;\n var enterpriseCode = window.localStorage.getItem('enterpriseCode');\n\n if (enterpriseCode) {\n _this3.poolCode = enterpriseCode.split(',');\n } else {\n _this3.poolCode = [res.value[0].code, res.value[0].list[0].code];\n }\n\n _this3.getData();\n }\n });\n },\n balckTwo: function balckTwo(val, index) {\n // window.localStorage.setItem(\"indexData\", JSON.stringify(val));\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 if (index == 3) {\n this.$router.push({\n name: 'fundThirdPage'\n });\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 _this4 = this;\n\n setTimeout(function () {\n _this4.yearChart.resize();\n\n _this4.quarterChart.resize();\n\n _this4.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 _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.dataEcharts(res.value[3 + index], index);\n });\n }\n });\n },\n handleTop: function handleTop(val, index) {\n var _this6 = this;\n\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 // res.value.sort(this.arraySort('type'))\n _this6.$nextTick(function () {\n _this6.topEcharts(res.value[index], index);\n });\n }\n });\n },\n getData: function getData() {\n var _this7 = 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 _this7.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 res.value.forEach(function (e) {\n if (e.lowerStatus == 0) {\n _this7.lowerType = false;\n }\n\n if (e.isData == 0) {\n _this7.subordinate = false;\n }\n\n if (e.linksType) {\n _this7.linksType = e.linksType;\n\n _this7.ssywList.forEach(function (s) {\n if (s.value == _this7.linksType) {\n _this7.linksTypeName = s.name + '主题';\n }\n });\n }\n\n if (e.targetId == _this7.parmas.targetId && e.type != 14) {\n topArr.push(e);\n e.queryType = true;\n } else {\n bottomArr.push(e);\n }\n });\n\n if (topArr.length > 3) {\n var arr = JSON.parse(JSON.stringify(topArr.concat(bottomArr)));\n _this7.topList = arr.slice(0, 3);\n _this7.dataList = arr.slice(3);\n } else {\n _this7.topList = topArr;\n _this7.dataList = bottomArr;\n } // this.dataList.sort(this.arraySort('sn'))\n // this.topList.sort(this.arraySort('sn'))\n\n\n _this7.dataList.forEach(function (c, cx) {\n _this7.$nextTick(function () {\n _this7.dataEcharts(c, cx);\n });\n });\n\n _this7.topList.forEach(function (t, tx) {\n _this7.$nextTick(function () {\n _this7.topEcharts(t, tx);\n });\n });\n }\n });\n },\n // 判断是否为整数\n isInteger: function isInteger(obj) {\n return obj % 1 === 0;\n },\n topEcharts: function topEcharts(c, cx) {\n var _this8 = 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 = \"