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
7.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\\DuidieChart.vue?vue&type=style&index=0&id=4484d6f1&scoped=true&lang=scss&","dependencies":[{"path":"F:\\workspace\\gcy\\RK-html\\RK-project\\ruoyi-ui\\src\\views\\dashboard\\DuidieChart.vue","mtime":1641373473624},{"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\\sass-loader\\dist\\cjs.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:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgovKi5zaGFkb3d7Ki8KLyogIC13ZWJraXQtYm94LXNoYWRvdzowIDBweCAxNXB4IDAgcmdiKDI0OCwyMzcsMjUzKTsqLwovKiAgLW1vei1ib3gtc2hhZG93OjAgMHB4IDE1cHggMCByZ2IoMjQ4LDIzNywyNTMpOyovCi8qICBib3gtc2hhZG93OjAgMHB4IDE1cHggMCByZ2IoMjQ4LDIzNywyNTMpOyovCi8qfSovCg=="},{"version":3,"sources":["DuidieChart.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgOA;AACA;AACA;AACA;AACA","file":"DuidieChart.vue","sourceRoot":"src/views/dashboard","sourcesContent":["<template>\n <div :class=\"className\" :style=\"{height:height,width:width}\"\n\n />\n\n\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 ddXData:{\n type: Array,\n default: []\n },\n ddLgData:{\n type: Array,\n default: []\n },\n ddSerData:{\n type: Array,\n default: []\n }\n },\n data() {\n return {\n chart: null\n }\n },\n watch: {\n ddSerData (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 max=10;\n let intervala=2;\n\n if (this.ddSerData!=undefined&&this.ddSerData.length>0){\n let arr1=this.ddSerData[0].data;\n let arr2=this.ddSerData[1].data;\n if (arr1.length>0&&arr2.length>0){\n let maxa = Math.max.apply(null,arr1);\n let maxb = Math.max.apply(null,arr2);\n max=maxa+maxb;\n if (max<5){\n max=max+1\n intervala=1;\n }else {\n intervala=this.intervala(parseInt(max/5))\n let x=parseInt(max/intervala)\n max=(x+1)*intervala\n }\n\n\n }\n }\n\n this.chart = echarts.init(this.$el, 'macarons');\n if(!this.ddSerData.length){\n var html =\n '<div style=\"text-align:center;\"><div style=\"line-height:260px;col