{"remainingRequest":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\ljzc-fvue\\src\\views\\HomePage\\components\\OperatingAssets.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\src\\views\\HomePage\\components\\OperatingAssets.vue","mtime":1702351459122},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"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//\nimport * as echarts from 'echarts';\nimport utils from '@/utils.js';\nimport api from '@/api/homePage.js';\nimport PublicTitle from '@/components/PublicTitle/index';\nexport default {\n name: 'OperatingAssets',\n // 经营性资产\n components: {\n PublicTitle: PublicTitle\n },\n data: function data() {\n return {\n echartsData: [],\n floorArea: {},\n //建筑面积\n propertyAssets: {},\n //物业资产\n productRoom: {} //商品房\n\n };\n },\n created: function created() {\n this.getBusiness();\n },\n mounted: function mounted() {},\n methods: {\n getBusiness: function getBusiness() {\n var _this = this;\n\n api.businessStatistics({}, function (res) {\n if (res.state) {\n res.value.areaInfo && res.value.areaInfo.forEach(function (e) {\n if (e.name) {\n _this.floorArea = e;\n } else if (e.assetType === '0') {\n _this.propertyAssets = e;\n } else if (e.assetType === '1') {\n _this.productRoom = e;\n }\n });\n _this.echartsData = res.value.bookValueInfo;\n\n _this.initChat();\n }\n });\n },\n //字典翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n initChat: function initChat() {\n var _this2 = this;\n\n console.log(this.echartsData);\n var nameData = [];\n var bookValueData = [];\n var areaData = [];\n this.echartsData.forEach(function (e) {\n nameData.push(_this2.getDictName('zczt', e.assetStatus));\n bookValueData.push(e.bookValue);\n areaData.push(e.structure_area_);\n });\n var chartDom = echarts.init(document.getElementById('oriented-chart'));\n var option = {\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n // 坐标轴指示器,坐标轴触发有效\n type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'\n\n }\n },\n legend: {\n data: ['账面净值', '面积'],\n align: 'left',\n padding: [20, 0, 0, 0]\n },\n grid: {\n left: '1%',\n right: '1%',\n bottom: '3%',\n containLabel: true\n },\n xAxis: [{\n type: 'category',\n data: nameData,\n axisTick: {\n show: false\n },\n axisLine: {\n show: true,\n lineStyle: {\n color: '#A1A9B2' // 浅灰色\n\n }\n },\n axisLabel: {// fontSize: this.getSize() //设置坐标轴文本标签的字体大小\n }\n }],\n yAxis: [{\n type: 'value',\n name: '单位:万元',\n axisLabel: {\n formatter: '{value}'\n },\n splitLine: {\n show: false\n },\n axisLine: {\n show: true,\n lineStyle: {\n color: '#A1A9B2' // 浅灰色\n\n }\n }\n }, {\n type: 'value',\n name: '单位:㎡',\n axisLabel: {\n formatter: '{value}'\n },\n position: 'right',\n splitLine: {\n show: false\n },\n axisLine: {\n show: true,\n lineStyle: {\n color: '#A1A9B2' // 浅灰色\n\n }\n }\n }],\n series: [{\n name: '账面净值',\n type: 'bar',\n data: bookValueData,\n barWidth: '15',\n yAxisIndex: 0,\n itemStyle: {\n color: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0,\n color: '#55EDB0' // 渐变起始颜色(绿色)\n\n }, {\n offset: 1,\n color: 'rgba(85,237,176,0.2)' // 渐变结束颜色(深绿色)\n\n }]\n },\n borderRadius: [3, 3, 0, 0] // 设置圆角大小\n\n }\n }, {\n name: '面积',\n type: 'bar',\n data: areaData,\n barWidth: '15',\n yAxisIndex: 1,\n itemStyle: {\n color: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0,\n color: '#8AC4FF' // 渐变起始颜色(绿色)\n\n }, {\n offset: 1,\n color: 'rgba(51,153,255,0.2)' // 渐变结束颜色(深绿色)\n\n }]\n },\n borderRadius: [3, 3, 0, 0] // 设置圆角大小\n\n }\n }]\n };\n chartDom.setOption(option);\n window.addEventListener('resize', function () {\n chartDom.resize();\n });\n }\n }\n};",null]}