{"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\\components\\echartsDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\BigScrenn\\components\\echartsDialog.vue","mtime":1689073679687},{"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.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport * as echarts from 'echarts';\nimport { mapState } from 'vuex';\nimport moment from \"moment\";\nimport financialTheme from '@/api/bigScrenn/financialTheme.js';\nimport echartsTitle from '@/views/BigScrenn/components/echartsTitle.vue';\nexport default {\n name: 'echartsDialog',\n components: {\n echartsTitle: echartsTitle\n },\n data: function data() {\n return {\n visible: false,\n title: '',\n dateEchart: null,\n staLatList: [{\n name: '实际值',\n value: 1\n }, {\n name: '预算值',\n value: 2\n }],\n params: {},\n paramData: {\n year: '',\n targetId: ''\n },\n dataList: []\n };\n },\n created: function created() {},\n mounted: function mounted() {\n var _this = this;\n\n this.$root.$on('resize', function () {\n _this.resize(500);\n });\n },\n methods: {\n add: function add(val) {\n this.params = val;\n this.visible = true;\n this.paramData.targetId = val.targetId;\n this.paramData.year = moment().format('YYYY');\n this.getData();\n },\n getData: function getData() {\n var _this2 = this;\n\n financialTheme.enterpriseData(this.paramData, function (res) {\n if (res.value) {\n _this2.dataList = res.value;\n\n _this2.$nextTick(function () {\n _this2.dateEcharts();\n });\n }\n });\n },\n handleClose: function handleClose() {\n this.visible = false;\n },\n dateEcharts: function dateEcharts() {\n var _this3 = this;\n\n var chartDom = document.getElementById('dialogChart');\n this.dateEchart = echarts.init(chartDom);\n var arr = [];\n var xLabel = [];\n this.dataList.forEach(function (r) {\n xLabel.push(r.enterpriseCode);\n });\n\n if (this.params.staLat.split(',').length > 1) {\n this.staLatList.forEach(function (s) {\n _this3.params.staLat.split(',').forEach(function (t) {\n if (s.value == t) {\n var datalist = [];\n\n if (t == 1) {\n _this3.dataList.forEach(function (r) {\n datalist.push(r.actual);\n });\n } else if (t == 2) {\n _this3.dataList.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 // 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 // c.resultData.forEach(r => {\n // \tif (t == 1) {\n // \t\tconsole.log(r);\n // \t\treturn [...r.actual]\n // \t} else {\n // \t\t// arrData.push()\n // \t\treturn [...r.budget]\n // \t}\n // }),\n\n });\n }\n });\n });\n } else {\n this.staLatList.forEach(function (s) {\n var data1list = [];\n\n if (_this3.params.staLat == 1) {\n _this3.dataList.forEach(function (r) {\n data1list.push(r.actual);\n });\n } else if (_this3.params.staLat == 2) {\n _this3.dataList.forEach(function (r) {\n data1list.push(r.budget);\n });\n }\n\n if (s.value == _this3.params.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 console.log(arr);\n var 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: '12%',\n left: '10%',\n right: '3%',\n bottom: '15%'\n },\n xAxis: [{\n type: 'category',\n axisLabel: {\n textStyle: {\n color: '#FFFFFF',\n fontSize: 12\n }\n },\n splitLine: {\n show: true,\n lineStyle: {\n color: '#233653'\n }\n },\n axisTick: {\n show: false\n },\n data: xLabel\n }],\n yAxis: [{\n name: this.params.targetUnit,\n nameTextStyle: {\n color: \"#fff\",\n fontSize: 12,\n padding: [0, 60, 0, 0]\n },\n type: 'value',\n splitLine: {\n show: false,\n lineStyle: {\n color: '#1160a0',\n type: 'dashed'\n }\n },\n axisLabel: {\n show: true,\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 }],\n series: arr\n };\n option && this.dateEchart.setOption(option);\n },\n resize: function resize(delay) {\n var _this4 = this;\n\n setTimeout(function () {\n _this4.dateEchart.resize();\n }, delay || 0);\n }\n }\n};",null]}