project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
8.3 KiB

3 years ago
{"remainingRequest":"F:\\workspace\\gcy\\RK-html\\RK-project\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!F:\\workspace\\gcy\\RK-html\\RK-project\\ruoyi-ui\\src\\views\\dashboard\\BarLineChart.vue?vue&type=style&index=0&lang=css&","dependencies":[{"path":"F:\\workspace\\gcy\\RK-html\\RK-project\\ruoyi-ui\\src\\views\\dashboard\\BarLineChart.vue","mtime":1642043933198},{"path":"F:\\workspace\\gcy\\RK-html\\RK-project\\ruoyi-ui\\node_modules\\css-loader\\dist\\cjs.js","mtime":499162500000},{"path":"F:\\workspace\\gcy\\RK-html\\RK-project\\ruoyi-ui\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"F:\\workspace\\gcy\\RK-html\\RK-project\\ruoyi-ui\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"F:\\workspace\\gcy\\RK-html\\RK-project\\ruoyi-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"F:\\workspace\\gcy\\RK-html\\RK-project\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgouYXsKICBtYXJnaW4tdG9wOiAxMHB4Owp9Cg=="},{"version":3,"sources":["BarLineChart.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmRA;AACA;AACA","file":"BarLineChart.vue","sourceRoot":"src/views/dashboard","sourcesContent":["<template>\n\n <div :class=\"className\" :style=\"{height:height,width:width}\" />\n</template>\n\n<script>\nimport echarts from 'echarts'\nrequire('echarts/theme/macarons'); // echarts theme\nimport resize from './mixins/resize'\n\nconst animationDuration = 6000;\n\nexport default {\n mixins: [resize],\n props: {\n className: {\n type: String,\n default: 'chart'\n },\n width: {\n type: String,\n default: '100%'\n },\n height: {\n type: String,\n default: '330px'\n },\n blXData:{\n type: Array,\n default: []\n },\n blLgData:{\n type: Array,\n default: []\n },\n blSerData:{\n type: Array,\n default: []\n },\n blTitle:{\n type:String,\n default: ''\n }\n },\n data() {\n return {\n maxA:null,\n chart: null,\n dates:[\n {\n name: '项目数',\n barWidth:30,\n type: 'bar',\n data: [300,200,100,76,99,65]\n },\n {\n name: '经费数',\n type: 'line',\n yAxisIndex: 1,\n data: [2000,1234,2222,1111,4444,2345]\n }\n ]\n }\n },\n watch: {\n blSerData (newV, oldV) {\n this.initChart()\n }\n },\n mounted() {\n this.$nextTick(() => {\n this.initChart()\n })\n },\n beforeDestroy() {\n if (!this.chart) {\n return\n }\n this.chart.dispose();\n this.chart = null\n },\n methods: {\n initChart() {\n let maxa=300;\n let maxb=50000;\n let intervala=50;\n let intervalb=10000;\n //this.blSerData=this.dates\n\n\n let as =this.blSerData\n if (this.blSerData!=undefined&&this.blSerData!=null&&this.blSerData.length>0){\n let arr=this.blSerData[0].data\n let arr2=this.blSerData[1].data\n if (arr.length>0&&arr2.length>0){\n maxa = Math.max.apply(null,arr);\n maxb = Math.max.apply(null,arr2);\n intervala=this.intervala(parseInt(maxa/5))\n intervalb=this.intervala(parseInt(maxb/5))\n let x=parseInt(maxa/intervala)\n let y=parseInt(maxb/intervalb)\n