{"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\\weeklyfundSuPage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\BigScrenn\\fundTheme\\components\\weeklyfundSuPage.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.sort\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 humanResourceTheme from '@/api/bigScrenn/humanResourceTheme.js';\nimport financialTheme from '@/api/bigScrenn/financialTheme.js';\nexport default {\n components: {\n screenHeader: screenHeader\n },\n data: function data() {\n var _ref;\n\n return _ref = {\n currentKey: 'fundTheme',\n hierarchy: 2,\n //页面层级\n allList: [],\n zbList: [],\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 }, _defineProperty(_ref, \"zbList\", []), _defineProperty(_ref, \"type\", ''), _defineProperty(_ref, \"currentWeek\", ''), _defineProperty(_ref, \"startWeek\", ''), _defineProperty(_ref, \"endWeek\", ''), _defineProperty(_ref, \"poolData\", {\n week: '',\n year: '',\n planWeeks: [],\n enterpriseCode: ''\n }), _ref;\n },\n created: function created() {\n this.zbList = dictUtils.getDictItemsFromCache('zb_en');\n this.type = this.$route.params.type;\n this.startWeek = window.localStorage.getItem('startWeek');\n this.endWeek = window.localStorage.getItem('endWeek');\n this.currentWeek = window.localStorage.getItem('currentWeek');\n this.geSntWeek();\n this.getAreaTree();\n },\n mounted: function mounted() {\n var _this = this;\n\n // this.()\n this.$root.$on('resize', function () {\n _this.resize(500);\n });\n },\n watch: {},\n computed: {},\n methods: {\n balckTwo: function balckTwo() {\n this.$router.push({\n name: 'fundTheme'\n });\n },\n //获取企业树\n getAreaTree: function getAreaTree() {\n var _this2 = this;\n\n console.log(this.type);\n var poolType = this.type == 0 ? 0 : this.type == 1 ? 1 : this.type == 2 ? 2 : '';\n var params = JSON.parse(JSON.stringify(this.params));\n params.querys = [{\n group: \"main\",\n operation: \"EQUAL\",\n parentGroup: \"\",\n property: \"type_\",\n relation: \"AND\",\n value: 1\n }, {\n group: \"main\",\n operation: \"EQUAL\",\n parentGroup: \"\",\n property: \"pool_type_\",\n relation: \"AND\",\n value: poolType\n }, {\n group: \"main\",\n operation: \"EQUAL\",\n parentGroup: \"\",\n property: \"run_status_\",\n relation: \"AND\",\n value: 1\n }];\n fundTheme.getAreaTree(params, function (res) {\n if (res) {\n res.value.forEach(function (e) {\n _this2.zbList.forEach(function (s) {\n if (e.continent == s.name) {\n e.code = s.value;\n }\n });\n });\n _this2.allList = res.value;\n _this2.poolCode = [res.value[0].code, res.value[0].list[0].code]; // this.getData()\n\n switch (_this2.type) {\n case 0:\n _this2.getGroupData();\n\n break;\n\n case 1:\n _this2.getPoolData();\n\n break;\n\n case 2:\n _this2.getPlanData();\n\n break;\n\n case 3:\n _this2.getChinaCompanyData();\n\n break;\n }\n }\n });\n },\n firmSerach: function firmSerach() {\n console.log(this.poolCode);\n var arr = JSON.parse(JSON.stringify(this.poolCode));\n this.params.enterpriseCode = arr.pop();\n this.geSntWeek();\n },\n geSntWeek: function geSntWeek() {\n var startWeek = '';\n var endWeek = '';\n\n if (this.startWeek) {\n this.poolData.startYear = moment(this.startWeek).utcOffset(480).format(\"YYYY\");\n startWeek = moment(this.startWeek).utcOffset(480).format(\"W\");\n }\n\n if (this.endWeek) {\n this.poolData.endYear = moment(this.endWeek).utcOffset(480).format(\"YYYY\");\n endWeek = moment(this.endWeek).utcOffset(480).format(\"W\");\n }\n\n if (this.currentWeek) {\n this.poolData.year = moment(this.endWeek).utcOffset(480).format(\"YYYY\");\n this.poolData.week = moment(this.currentWeek).utcOffset(480).format(\"W\");\n }\n\n if (startWeek && endWeek) {\n if (this.poolData.startYear == this.poolData.endYear) {\n var arr = [];\n\n for (var i = 0; i < endWeek - startWeek + 1; i++) {\n arr.push(endWeek - i);\n }\n\n this.poolData.planWeeks = arr.sort();\n }\n } else {\n if (this.poolData.endYear - this.poolData.startYear > 0) {\n var weekNum = Math.ceil(Math.abs(this.endWeek - this.startWeek) / 1000 / 60 / 60 / 24 / 7);\n weekNum;\n }\n }\n\n switch (this.type) {\n case 0:\n this.getGroupData();\n break;\n\n case 1:\n this.getPoolData();\n break;\n\n case 2:\n this.getPlanData();\n break;\n\n case 3:\n this.getChinaCompanyData();\n break;\n }\n },\n //资金池公司银行实时余额\n getPoolData: function getPoolData() {\n var _this3 = this;\n\n var params = JSON.parse(JSON.stringify(this.poolData));\n params.enterpriseCode = this.poolCode[1];\n fundTheme.poolPlanData(params, function (res) {\n if (res.value) {\n _this3.$nextTick(function () {\n _this3.getData(res.value.length > 0 ? res.value : []);\n });\n }\n });\n },\n //企业银行实时余额\n getPlanData: function getPlanData() {\n var _this4 = this;\n\n var params = JSON.parse(JSON.stringify(this.poolData));\n params.enterpriseCode = this.poolCode[1];\n fundTheme.companyPlanData(params, function (res) {\n if (res.value) {\n _this4.$nextTick(function () {\n _this4.getData(res.value.length > 0 ? res.value : []);\n });\n }\n });\n },\n //集团银行实时余额\n getGroupData: function getGroupData() {\n var _this5 = this;\n\n var params = JSON.parse(JSON.stringify(this.poolData));\n params.enterpriseCode = this.poolCode[1];\n fundTheme.groupPlanData(params, function (res) {\n if (res.value) {\n _this5.$nextTick(function () {\n _this5.getData(res.value.length > 0 ? res.value : []);\n });\n }\n });\n },\n //中国区公司银行实时余额\n getChinaCompanyData: function getChinaCompanyData() {\n var _this6 = this;\n\n var params = JSON.parse(JSON.stringify(this.poolData));\n params.enterpriseCode = this.poolCode[1];\n fundTheme.chinaCompanyData(params, function (res) {\n if (res.value) {\n _this6.$nextTick(function () {\n _this6.getData(res.value.length > 0 ? res.value : []);\n });\n }\n });\n },\n getData: function getData(val) {\n var _this7 = this;\n\n var chartDom = echarts.init(document.getElementById('otherEcharts'));\n var xLabel = [];\n var actual = [];\n var budget = [];\n var warnValue = [];\n val.forEach(function (e) {\n xLabel.push(e.week + (_this7.$i18n.locale === 'zh-CN' ? '周' : ' Week'));\n actual.push(e.actual);\n budget.push(e.budget);\n warnValue.push(e.warnValue);\n });\n var arr = [];\n\n if (this.type == 2 || this.type == 3) {\n arr = [{\n name: this.$i18n.locale === 'zh-CN' ? '实际余额' : 'Actual balance',\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 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: actual\n }, {\n name: this.$i18n.locale === 'zh-CN' ? '计划余额' : 'Planned balance',\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 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: budget\n }];\n } else {\n arr = [{\n name: this.$i18n.locale === 'zh-CN' ? '实际余额' : 'Actual balance',\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 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: actual\n }, {\n name: this.$i18n.locale === 'zh-CN' ? '计划余额' : 'Planned balance',\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 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: budget\n }, {\n name: this.$i18n.locale === 'zh-CN' ? '阈值' : 'Threshold value',\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: warnValue\n }];\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: '18%',\n left: '6%',\n right: '4%',\n bottom: '7%'\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: '千欧',\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 option && chartDom.setOption(option);\n }\n }\n};",null]}