travel/admin/node_modules/.cache/babel-loader/6917f085e5b698b44eb105897d3...

1 line
6.7 KiB
JSON

{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\dashboard\\admin\\components\\PieChart.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\dashboard\\admin\\components\\PieChart.vue","mtime":1718070786044},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\babel.config.js","mtime":1718070785981},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1718764959862}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuZnVuY3Rpb24ubmFtZS5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLm9iamVjdC50by1zdHJpbmcuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy93ZWIuZG9tLWNvbGxlY3Rpb25zLmZvci1lYWNoLmpzIjsKLy8KLy8KLy8KLy8KCmltcG9ydCBlY2hhcnRzIGZyb20gJ2VjaGFydHMnOwpyZXF1aXJlKCdlY2hhcnRzL3RoZW1lL21hY2Fyb25zJyk7IC8vIGVjaGFydHMgdGhlbWUKaW1w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AgICByZXMuZGF0YS5mb3JFYWNoKGZ1bmN0aW9uIChlbGVtZW50KSB7CiAgICAgICAgICB0aXRsZS5wdXNoKGVsZW1lbnQubmFtZSk7CiAgICAgICAgfSk7CiAgICAgICAgX3RoaXMyLmNoYXJ0LnNldE9wdGlvbih7CiAgICAgICAgICB0b29sdGlwOiB7CiAgICAgICAgICAgIHRyaWdnZXI6ICdpdGVtJywKICAgICAgICAgICAgZm9ybWF0dGVyOiAne2F9IDxici8+e2J9IDoge2N9ICh7ZH0lKScKICAgICAgICAgIH0sCiAgICAgICAgICBsZWdlbmQ6IHsKICAgICAgICAgICAgbGVmdDogJ2NlbnRlcicsCiAgICAgICAgICAgIGJvdHRvbTogJzEwJywKICAgICAgICAgICAgZGF0YTogdGl0bGUKICAgICAgICAgIH0sCiAgICAgICAgICBzZXJpZXM6IFt7CiAgICAgICAgICAgIG5hbWU6ICcxMCDlpKnmlLnov5vmg4XlhrUnLAogICAgICAgICAgICB0eXBlOiAncGllJywKICAgICAgICAgICAgcm9zZVR5cGU6ICdyYWRpdXMnLAogICAgICAgICAgICByYWRpdXM6IFsxNSwgOTVdLAogICAgICAgICAgICBkYXRhOiByZXMuZGF0YSwKICAgICAgICAgICAgYW5pbWF0aW9uRWFzaW5nOiAnY3ViaWNJbk91dCcsCiAgICAgICAgICAgIGFuaW1hdGlvbkR1cmF0aW9uOiAyNjAwCiAgICAgICAgICB9XQogICAgICAgIH0pOwogICAgICB9KTsKICAgIH0KICB9Cn07"},{"version":3,"names":["echarts","require","resize","mixins","props","className","type","String","default","width","height","data","chart","mounted","_this","$nextTick","initChart","beforeDestroy","dispose","methods","_this2","init","$el","$axios","get","then","res","title","forEach","element","push","name","setOption","tooltip","trigger","formatter","legend","left","bottom","series","roseType","radius","animationEasing","animationDuration"],"sources":["src/views/dashboard/admin/components/PieChart.vue"],"sourcesContent":["<template>\r\n <div :class=\"className\" :style=\"{height:height,width:width}\" />\r\n</template>\r\n\r\n<script>\r\nimport echarts from 'echarts'\r\nrequire('echarts/theme/macarons') // echarts theme\r\nimport resize from './mixins/resize'\r\n\r\nexport default {\r\n mixins: [resize],\r\n props: {\r\n className: {\r\n type: String,\r\n default: 'chart'\r\n },\r\n width: {\r\n type: String,\r\n default: '100%'\r\n },\r\n height: {\r\n type: String,\r\n default: '300px'\r\n }\r\n },\r\n data() {\r\n return {\r\n chart: null\r\n }\r\n },\r\n mounted() {\r\n this.$nextTick(() => {\r\n this.initChart()\r\n })\r\n },\r\n beforeDestroy() {\r\n if (!this.chart) {\r\n return\r\n }\r\n this.chart.dispose()\r\n this.chart = null\r\n },\r\n methods: {\r\n initChart() {\r\n this.chart = echarts.init(this.$el, 'macarons')\r\n\r\n this.$axios.get('/admin/index/pie').then(res => {\r\n let title = [];\r\n res.data.forEach(element => {\r\n title.push(element.name)\r\n });\r\n this.chart.setOption({\r\n tooltip: {\r\n trigger: 'item',\r\n formatter: '{a} <br/>{b} : {c} ({d}%)'\r\n },\r\n legend: {\r\n left: 'center',\r\n bottom: '10',\r\n data: title\r\n },\r\n series: [\r\n {\r\n name: '10 天改进情况',\r\n type: 'pie',\r\n roseType: 'radius',\r\n radius: [15, 95],\r\n data: res.data,\r\n animationEasing: 'cubicInOut',\r\n animationDuration: 2600\r\n }\r\n ]\r\n })\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n"],"mappings":";;;;;;;;AAKA,OAAAA,OAAA;AACAC,OAAA;AACA,OAAAC,MAAA;AAEA;EACAC,MAAA,GAAAD,MAAA;EACAE,KAAA;IACAC,SAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAC,KAAA;MACAH,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAE,MAAA;MACAJ,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;EACA;EACAG,IAAA,WAAAA,KAAA;IACA;MACAC,KAAA;IACA;EACA;EACAC,OAAA,WAAAA,QAAA;IAAA,IAAAC,KAAA;IACA,KAAAC,SAAA;MACAD,KAAA,CAAAE,SAAA;IACA;EACA;EACAC,aAAA,WAAAA,cAAA;IACA,UAAAL,KAAA;MACA;IACA;IACA,KAAAA,KAAA,CAAAM,OAAA;IACA,KAAAN,KAAA;EACA;EACAO,OAAA;IACAH,SAAA,WAAAA,UAAA;MAAA,IAAAI,MAAA;MACA,KAAAR,KAAA,GAAAZ,OAAA,CAAAqB,IAAA,MAAAC,GAAA;MAEA,KAAAC,MAAA,CAAAC,GAAA,qBAAAC,IAAA,WAAAC,GAAA;QACA,IAAAC,KAAA;QACAD,GAAA,CAAAf,IAAA,CAAAiB,OAAA,WAAAC,OAAA;UACAF,KAAA,CAAAG,IAAA,CAAAD,OAAA,CAAAE,IAAA;QACA;QACAX,MAAA,CAAAR,KAAA,CAAAoB,SAAA;UACAC,OAAA;YACAC,OAAA;YACAC,SAAA;UACA;UACAC,MAAA;YACAC,IAAA;YACAC,MAAA;YACA3B,IAAA,EAAAgB;UACA;UACAY,MAAA,GACA;YACAR,IAAA;YACAzB,IAAA;YACAkC,QAAA;YACAC,MAAA;YACA9B,IAAA,EAAAe,GAAA,CAAAf,IAAA;YACA+B,eAAA;YACAC,iBAAA;UACA;QAEA;MACA;IACA;EACA;AACA","ignoreList":[]}]}