smart-power-ui/node_modules/.cache/vue-loader/95fdeaefb8ae5a183a8ff4fec3b...

1 line
5.6 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 copy.vue?vue&type=script&lang=js&","dependencies":[{"path":"G:\\project\\smart-power-ui\\src\\views\\bashboardcom\\pancake_echarts copy.vue","mtime":1619341417858},{"path":"G:\\project\\smart-power-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1591751767036},{"path":"G:\\project\\smart-power-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1610504270305},{"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:Ly8KLy8KLy8KLy8KLy8KCi8vIGltcG9ydCBlY2hhcnRzIGZyb20gJ2VjaGFydHMnCmltcG9ydCAqIGFzIGVjaGFydHMgZnJvbSAiZWNoYXJ0cyI7CmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAncGFuY2FrZV9lY2hhcnRzJywKICBwcm9wczogewogICAgaWQ6IHsKICAgICAgdHlwZTogU3RyaW5nCiAgICB9LAogICAgb3B0aW9uOiB7CiAgICAgIHR5cGU6IE9iamVjdAogICAgfSwKICAgIHN0eWxlczogewogICAgICB0eXBlOiBTdHJpbmcKICAgIH0sCiAgICBjb25maWc6IHsKICAgICAgdHlwZTogT2JqZWN0CiAgICB9CiAgfSwKICBkYXRhKCkgewogICAgcmV0dXJuIHsKICAgICAgY2hhcnQ6IG51bGwKICAgIH0KICB9LAogIGNyZWF0ZWQoKSB7CiAgICB0aGlzLmNoYXJ0ID0gbnVsbAogIH0sCiAgbW91bnRlZCgpIHsKICAgIHRoaXMuZHJhd0xpbmUoKQogIH0sCiAgbWV0aG9kczogewogICAgZHJhd0xpbmUoKXsKICAgICAgaWYoIXRoaXMuY2hhcnQpewogICAgICAgIHRoaXMuY2hhcnQgPSBlY2hhcnRzLmluaXQoZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQodGhpcy5pZCkpCiAgICAgIH0KICAgICAgdGhpcy5jaGFydC5zZXRPcHRpb24oewogICAgICAgIHRvb2x0aXA6IHsKICAgICAgICAgIHRyaWdnZXI6ICdpdGVtJywKICAgICAgICAgIGZvcm1hdHRlcjogdGhpcy5jb25maWcudG9vbHRpcC5mb3JtYXR0ZXIKICAgICAgICB9LAogICAgICAgIHNlcmllczogW3sKICAgICAgICAgIG5hbWU6IHRoaXMub3B0aW9uLnRpdGxlLAogICAgICAgICAgdHlwZToncGllJywKICAgICAgICAgIHJhZGl1czogdGhpcy5jb25maWcuc2VyaWVzLnJhZGl1cywKICAgICAgICAgIGF2b2lkTGFiZWxPdmVybGFwOiBmYWxzZSwKICAgICAgICAgIGxhYmVsOiB7CiAgICAgICAgICAgIG5vcm1hbDogewogICAgICAgICAgICAgIHNob3c6IGZhbHNlLAogICAgICAgICAgICAgIHBvc2l0aW9uOiAnY2VudGVyJwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbXBoYXNpczogewogICAgICAgICAgICAgIHNob3c6IGZhbHNlLAogICAgICAgICAgICAgIHRleHRTdHlsZTogewogICAgICAgICAgICAgICAgZm9udFNpemU6ICcyMCcsCiAgICAgICAgICAgICAgICBmb250V2VpZ2h0OiAnYm9sZCcKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICBsYWJlbExpbmU6IHsKICAgICAgICAgICAgbm9ybWFsOiB7CiAgICAgICAgICAgICAgc2hvdzogZmFsc2UKICAgICAgICAgICAgfSwKICAgICAgICAgICAgc2hvdzogZnVuY3Rpb24odmFsdWUpIHsKICAgICAgICAgICAgICByZXR1cm4gdmFsdWUgIT09IDAKICAgICAgICAgICAgfQogICAgICAgICAgfSwKICAgICAgICAgIGRhdGE6IHRoaXMub3B0aW9uLmRhdGEsCiAgICAgICAgICBpdGVtU3R5bGU6IHsKICAgICAgICAgICAgZW1waGFzaXM6IHsKICAgICAgICAgICAgICBzaGFkb3dCbHVyOiAxMCwKICAgICAgICAgICAgICBzaGFkb3dPZmZzZXRYOiAwLAogICAgICAgICAgICAgIHNoYWRvd0NvbG9yOiAncmdiYSgwLCAwLCAwLCAwLjUpJwogICAgICAgICAgICB9LAogICAgICAgICAgICBub3JtYWw6IHRoaXMuY29uZmlnLml0ZW1TdHlsZS5ub3JtYWwKICAgICAgICAgIH0KICAgICAgICB9XQogICAgICB9KTsKICAgIH0KICB9LAogIHdhdGNoOiB7CiAgICBvcHRpb24odmFsLCBvbGRWYWwpIHsKICAgICAgdGhpcy5jaGFydCA9IG51bGwKICAgICAgdGhpcy5kcmF3TGluZSgpCiAgICB9CiAgfQp9Cg=="},{"version":3,"sources":["pancake_echarts copy.vue"],"names":[],"mappings":";;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"pancake_echarts copy.vue","sourceRoot":"src/views/bashboardcom","sourcesContent":["<template>\n<div class=\"bigscreen-echarts\">\n <div :id=\"id\" :style=\"styles\" ></div>\n</div>\n</template>\n<script>\n// import echarts from 'echarts'\nimport * as echarts from \"echarts\";\nexport default {\n name: 'pancake_echarts',\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 chart: null\n }\n },\n created() {\n this.chart = null\n },\n mounted() {\n this.drawLine()\n },\n methods: {\n drawLine(){\n if(!this.chart){\n this.chart = echarts.init(document.getElementById(this.id))\n }\n this.chart.setOption({\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 }\n },\n watch: {\n option(val, oldVal) {\n this.chart = null\n this.drawLine()\n }\n }\n}\n</script>\n<style lang=\"scss\" >\n.bigscreen-echarts {\n position: relative;\n top: -62px;\n}\n</style>\n"]}]}