{"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\\humanResourceTheme\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\BigScrenn\\humanResourceTheme\\index.vue","mtime":1693992862285},{"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.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 * as echarts from 'echarts';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport humanResourceTheme from '@/api/bigScrenn/humanResourceTheme.js';\nimport screenHeader from '@/views/BigScrenn/components/screenHeader.vue';\nimport echartsTitle from '@/views/BigScrenn/humanResourceTheme/components/echartsTitle.vue';\nimport echartsDialog from '@/views/BigScrenn/humanResourceTheme/components/echartsDialog.vue';\nimport financialTheme from '@/api/bigScrenn/financialTheme.js';\nexport default {\n components: {\n screenHeader: screenHeader,\n echartsTitle: echartsTitle,\n echartsDialog: echartsDialog\n },\n data: function data() {\n return {\n currentKey: 'humanResourceTheme',\n hierarchy: 1,\n //页面层级\n tabActive: 0,\n echartsList: [],\n //所有echarts数据\n tabList: [{\n name: \"宏观数据\",\n value: 0\n }, {\n name: \"运行板块\",\n value: 1\n }, {\n name: \"销售板块\",\n value: 2\n }],\n dataList: [],\n staLatList: [{\n name: '实际值',\n value: 1\n }, {\n name: '预算值',\n value: 2\n }],\n leftList: [],\n //左边echarts\n rightList: [],\n //右边echarts\n centerList: [],\n leftData: [],\n //左边\n rightData: [],\n //右边\n rateData: {},\n options: [{\n value: '选项1',\n label: '1'\n }],\n value: '',\n options1: [{\n value: '选项1',\n label: '2'\n }],\n value1: '',\n allList: [],\n poolCode: '',\n propsData: {\n children: 'list',\n label: 'code',\n value: 'code',\n expandTrigger: 'hover'\n },\n params: {\n pageBean: {\n page: 1,\n pageSize: -1\n },\n querys: []\n },\n zbList: [],\n dpzbList: []\n };\n },\n created: function created() {\n window.localStorage.setItem('activeIndex', this.currentKey);\n window.localStorage.setItem(\"pageName\", '人资主题');\n this.zbList = dictUtils.getDictItemsFromCache('zb_en');\n this.dpzbList = dictUtils.getDictItemsFromCache('dpzb');\n this.getAreaTree();\n },\n mounted: function mounted() {},\n methods: {\n //获取企业\n getAreaTree: function getAreaTree() {\n var _this = this;\n\n this.params.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 financialTheme.getAreaTree(this.params, function (res) {\n if (res) {\n res.value.forEach(function (e) {\n _this.dpzbList.forEach(function (s) {\n if (e.continent == s.name) {\n e.code = s.value;\n }\n });\n });\n _this.allList = res.value;\n var enterpriseCode = window.localStorage.getItem('enterpriseCode');\n\n if (enterpriseCode) {\n _this.poolCode = enterpriseCode.split(',');\n } else {\n _this.poolCode = [res.value[0].code, res.value[0].list[0].code];\n }\n\n _this.getData();\n }\n });\n },\n arraySort: function arraySort(property) {\n return function (a, b) {\n var value1 = a[property];\n var value2 = b[property];\n return value1 - value2;\n };\n },\n getData: function getData() {\n var _this2 = this;\n\n this.dataList = [];\n this.echartsList = [];\n this.leftList = [];\n this.rightList = [];\n var params = {\n enterpriseCode: ''\n };\n params.enterpriseCode = this.poolCode[1];\n window.localStorage.setItem(\"enterpriseCode\", this.poolCode);\n humanResourceTheme.oneLevelData(params, function (res) {\n if (res.value.length > 0) {\n res.value.forEach(function (e) {\n _this2.echartsList.push(e);\n });\n }\n\n _this2.$nextTick(function () {\n _this2.echartsList.forEach(function (c, cx) {\n _this2.dateEcharts(c, cx);\n });\n });\n });\n },\n //更多企业\n handleMore: function handleMore(val) {\n this.$refs.echartsDialog.add(val, 1);\n },\n dateEcharts: function dateEcharts(c, cx) {\n var chartDom = echarts.getInstanceByDom(document.getElementById(\"pieChart\".concat(cx))); //有的话就获取已有echarts实例的DOM节点。\n\n if (chartDom == null) {\n // 如果不存在,就进行初始化。\n chartDom = echarts.init(document.getElementById(\"pieChart\".concat(cx)));\n } // let chartDom = echarts.init(document.getElementById(`pieChart${cx}`))\n\n\n var arr = [];\n var xLabel = [];\n c.resultData.forEach(function (r) {\n xLabel.push(r.year);\n });\n var staLat = c.staLat.split('、');\n staLat.forEach(function (t) {\n var datalist = [];\n c.resultData.forEach(function (s) {\n datalist.push(s.json[t]);\n });\n arr.push({\n name: t,\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\n });\n });\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: '15%',\n left: '10%',\n right: '5%',\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: 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]; // let unit = '';\n // var k = 10000,\n // \tsizes = ['', '万', '亿', '万亿'],\n // \ti;\n // if (params < k) {\n // \tparams = params;\n // } else {\n // \ti = Math.floor(Math.log(params) / Math.log(k));\n // \tparams = ((params / Math.pow(k, i))).toFixed(0);\n // \tunit = sizes[i];\n // }\n // return params + unit;\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 option && chartDom.setOption(option);\n }\n }\n};",null]}