1 line
10 KiB
JSON
1 line
10 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\\LineChart.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\dashboard\\admin\\components\\LineChart.vue","mtime":1718070786043},{"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:Ly8KLy8KLy8KLy8KCmltcG9ydCBlY2hhcnRzIGZyb20gJ2VjaGFydHMnOwpyZXF1aXJlKCdlY2hhcnRzL3RoZW1lL21hY2Fyb25zJyk7IC8vIGVjaGFydHMgdGhlbWUKaW1wb3J0IHJlc2l6ZSBmcm9tICcuL21peGlucy9yZXNpemUnOwpleHBvcnQgZGVmYXVsdCB7CiAgbWl4aW5zOiBbcmVzaXplXSwKICBwcm9wczogewogICAgY2xhc3NOYW1lOiB7CiAgICAgIHR5cGU6IFN0cmluZywKICAgICAgZGVmYXVsdDogJ2NoYXJ0JwogICAgfSwKICAgIHdpZHRoOiB7CiAgICAgIHR5cGU6IFN0cmlu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dGEpOwogICAgfSwKICAgIHNldE9wdGlvbnM6IGZ1bmN0aW9uIHNldE9wdGlvbnMoKSB7CiAgICAgIHZhciBfcmVmID0gYXJndW1lbnRzLmxlbmd0aCA+IDAgJiYgYXJndW1lbnRzWzBdICE9PSB1bmRlZmluZWQgPyBhcmd1bWVudHNbMF0gOiB7fSwKICAgICAgICB0b3RhbCA9IF9yZWYudG90YWwsCiAgICAgICAgcmVmdW5kID0gX3JlZi5yZWZ1bmQsCiAgICAgICAgdGl0bGUgPSBfcmVmLnRpdGxlOwogICAgICB0aGlzLmNoYXJ0LnNldE9wdGlvbih7CiAgICAgICAgeEF4aXM6IHsKICAgICAgICAgIGRhdGE6IHRpdGxlLAogICAgICAgICAgYm91bmRhcnlHYXA6IGZhbHNlLAogICAgICAgICAgYXhpc1RpY2s6IHsKICAgICAgICAgICAgc2hvdzogZmFsc2UKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgIGdyaWQ6IHsKICAgICAgICAgIGxlZnQ6IDEwLAogICAgICAgICAgcmlnaHQ6IDEwLAogICAgICAgICAgYm90dG9tOiAyMCwKICAgICAgICAgIHRvcDogMzAsCiAgICAgICAgICBjb250YWluTGFiZWw6IHRydWUKICAgICAgICB9LAogICAgICAgIHRvb2x0aXA6IHsKICAgICAgICAgIHRyaWdnZXI6ICdheGlzJywKICAgICAgICAgIGF4aXNQb2ludGVyOiB7CiAgICAgICAgICAgIHR5cGU6ICdjcm9zcycKICAgICAgICAgIH0sCiAgICAgICAgICBwYWRkaW5nOiBbNSwgMTBdCiAgICAgICAgfSwKICAgICAgICB5QXhpczogewogICAgICAgICAgYXhpc1RpY2s6IHsKICAgICAgICAgICAgc2hvdzogZmFsc2UKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgIGxlZ2VuZDogewogICAgICAgICAgZGF0YTogWyfmoLjplIDpop0nLCAn6YCA5qy+6aKdJ10KICAgICAgICB9LAogICAgICAgIHNlcmllczogW3sKICAgICAgICAgIG5hbWU6ICfmoLjplIDpop0nLAogICAgICAgICAgaXRlbVN0eWxlOiB7CiAgICAgICAgICAgIG5vcm1hbDogewogICAgICAgICAgICAgIGNvbG9yOiAnI0ZGMDA1QScsCiAgICAgICAgICAgICAgbGluZVN0eWxlOiB7CiAgICAgICAgICAgICAgICBjb2xvcjogJyNGRjAwNUEnLAogICAgICAgICAgICAgICAgd2lkdGg6IDIKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICBzbW9vdGg6IHRydWUsCiAgICAgICAgICB0eXBlOiAnbGluZScsCiAgICAgICAgICBkYXRhOiB0b3RhbCwKICAgICAgICAgIGFuaW1hdGlvbkR1cmF0aW9uOiAyODAwLAogICAgICAgICAgYW5pbWF0aW9uRWFzaW5nOiAnY3ViaWNJbk91dCcKICAgICAgICB9LCB7CiAgICAgICAgICBuYW1lOiAn6YCA5qy+6aKdJywKICAgICAgICAgIHNtb290aDogdHJ1ZSwKICAgICAgICAgIHR5cGU6ICdsaW5lJywKICAgICAgICAgIGl0ZW1TdHlsZTogewogICAgICAgICAgICBub3JtYWw6IHsKICAgICAgICAgICAgICBjb2xvcjogJyMzODg4ZmEnLAogICAgICAgICAgICAgIGxpbmVTdHlsZTogewogICAgICAgICAgICAgICAgY29sb3I6ICcjMzg4OGZhJywKICAgICAgICAgICAgICAgIHdpZHRoOiAyCiAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICBhcmVhU3R5bGU6IHsKICAgICAgICAgICAgICAgIGNvbG9yOiAnI2YzZjhmZicKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICBkYXRhOiByZWZ1bmQsCiAgICAgICAgICBhbmltYXRpb25EdXJhdGlvbjogMjgwMCwKICAgICAgICAgIGFuaW1hdGlvbkVhc2luZzogJ3F1YWRyYXRpY091dCcKICAgICAgICB9XQogICAgICB9KTsKICAgIH0KICB9Cn07"},{"version":3,"names":["echarts","require","resize","mixins","props","className","type","String","default","width","height","autoResize","Boolean","chartData","Object","required","data","chart","watch","deep","handler","val","setOptions","mounted","_this","$nextTick","initChart","beforeDestroy","dispose","methods","init","$el","_ref","arguments","length","undefined","total","refund","title","setOption","xAxis","boundaryGap","axisTick","show","grid","left","right","bottom","top","containLabel","tooltip","trigger","axisPointer","padding","yAxis","legend","series","name","itemStyle","normal","color","lineStyle","smooth","animationDuration","animationEasing","areaStyle"],"sources":["src/views/dashboard/admin/components/LineChart.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: '350px'\r\n },\r\n autoResize: {\r\n type: Boolean,\r\n default: true\r\n },\r\n chartData: {\r\n type: Object,\r\n required: true\r\n }\r\n },\r\n data() {\r\n return {\r\n chart: null\r\n }\r\n },\r\n watch: {\r\n chartData: {\r\n deep: true,\r\n handler(val) {\r\n this.setOptions(val)\r\n }\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 this.setOptions(this.chartData)\r\n },\r\n setOptions({ total, refund, title } = {}) {\r\n this.chart.setOption({\r\n xAxis: {\r\n data: title,\r\n boundaryGap: false,\r\n axisTick: {\r\n show: false\r\n }\r\n },\r\n grid: {\r\n left: 10,\r\n right: 10,\r\n bottom: 20,\r\n top: 30,\r\n containLabel: true\r\n },\r\n tooltip: {\r\n trigger: 'axis',\r\n axisPointer: {\r\n type: 'cross'\r\n },\r\n padding: [5, 10]\r\n },\r\n yAxis: {\r\n axisTick: {\r\n show: false\r\n }\r\n },\r\n legend: {\r\n data: ['核销额', '退款额']\r\n },\r\n series: [{\r\n name: '核销额', itemStyle: {\r\n normal: {\r\n color: '#FF005A',\r\n lineStyle: {\r\n color: '#FF005A',\r\n width: 2\r\n }\r\n }\r\n },\r\n smooth: true,\r\n type: 'line',\r\n data: total,\r\n animationDuration: 2800,\r\n animationEasing: 'cubicInOut'\r\n },\r\n {\r\n name: '退款额',\r\n smooth: true,\r\n type: 'line',\r\n itemStyle: {\r\n normal: {\r\n color: '#3888fa',\r\n lineStyle: {\r\n color: '#3888fa',\r\n width: 2\r\n },\r\n areaStyle: {\r\n color: '#f3f8ff'\r\n }\r\n }\r\n },\r\n data: refund,\r\n animationDuration: 2800,\r\n animationEasing: 'quadraticOut'\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;IACAG,UAAA;MACAL,IAAA,EAAAM,OAAA;MACAJ,OAAA;IACA;IACAK,SAAA;MACAP,IAAA,EAAAQ,MAAA;MACAC,QAAA;IACA;EACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,KAAA;IACA;EACA;EACAC,KAAA;IACAL,SAAA;MACAM,IAAA;MACAC,OAAA,WAAAA,QAAAC,GAAA;QACA,KAAAC,UAAA,CAAAD,GAAA;MACA;IACA;EACA;EACAE,OAAA,WAAAA,QAAA;IAAA,IAAAC,KAAA;IACA,KAAAC,SAAA;MACAD,KAAA,CAAAE,SAAA;IACA;EACA;EACAC,aAAA,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