smart-power-ui/node_modules/.cache/vue-loader/c344466f780e9c9039dd5d0d728...

1 line
3.7 KiB
JSON

{"remainingRequest":"G:\\project\\smart-power-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!G:\\project\\smart-power-ui\\src\\views\\bashboardcom\\pancake_echarts_cl.vue?vue&type=style&index=0&lang=scss&","dependencies":[{"path":"G:\\project\\smart-power-ui\\src\\views\\bashboardcom\\pancake_echarts_cl.vue","mtime":1619398177729},{"path":"G:\\project\\smart-power-ui\\node_modules\\css-loader\\dist\\cjs.js","mtime":1592876569350},{"path":"G:\\project\\smart-power-ui\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":1610504274351},{"path":"G:\\project\\smart-power-ui\\node_modules\\postcss-loader\\src\\index.js","mtime":1591751774425},{"path":"G:\\project\\smart-power-ui\\node_modules\\sass-loader\\dist\\cjs.js","mtime":1612140853844},{"path":"G:\\project\\smart-power-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1591751767036},{"path":"G:\\project\\smart-power-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1610504274351}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCi5iaWdzY3JlZW4tZWNoYXJ0cy1jbCB7CiAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICB0b3A6IC02MnB4Owp9Cg=="},{"version":3,"sources":["pancake_echarts_cl.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA;AACA;AACA;AACA","file":"pancake_echarts_cl.vue","sourceRoot":"src/views/bashboardcom","sourcesContent":["<template>\n<div class=\"bigscreen-echarts-cl\">\n <div id=\"idowww\" :style=\"styles\" ></div>\n</div>\n</template>\n<script>\nimport * as echarts from \"echarts\";\nexport default {\n name: 'pancake_echarts-cl',\n props: {\n id: {\n type: String\n },\n option: {\n type: Object\n },\n styles: {\n type: String\n },\n config: {\n type: Object\n }\n },\n data() {\n return {\n charts: null\n }\n },\n created() {\n this.charts = null\n // this.drawLine()\n },\n mounted() {\n this.drawLine()\n },\n methods: {\n drawLine(){\n console.log(document.getElementById('idowww'))\n debugger\n if(!this.charts){\n this.charts = echarts.init(document.getElementById('idowww'))\n }\n console.log(this.charts)\n var opt = {\n tooltip: {\n trigger: 'item',\n formatter: this.config.tooltip.formatter\n },\n series: [{\n name: this.option.title,\n type:'pie',\n radius: this.config.series.radius,\n avoidLabelOverlap: false,\n label: {\n normal: {\n show: false,\n position: 'center'\n },\n emphasis: {\n show: false,\n textStyle: {\n fontSize: '20',\n fontWeight: 'bold'\n }\n }\n },\n labelLine: {\n normal: {\n show: false\n },\n show: function(value) {\n return value !== 0\n }\n },\n data: this.option.data,\n itemStyle: {\n emphasis: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)'\n },\n normal: this.config.itemStyle.normal\n }\n }]\n }\n console.log(opt)\n this.charts.setOption(opt);\n this.$forceUpdate()\n }\n },\n watch: {\n option(val, oldVal) {\n this.charts = null\n console.log('opUpdata')\n this.drawLine()\n }\n }\n}\n</script>\n<style lang=\"scss\" >\n.bigscreen-echarts-cl {\n position: relative;\n top: -62px;\n}\n</style>\n"]}]}