travel/admin/node_modules/.cache/vue-loader/e8389caca34a91a6a040ba91a25...

1 line
7.6 KiB
JSON

{"remainingRequest":"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\\PanelGroup.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\dashboard\\admin\\components\\PanelGroup.vue","mtime":1718070786044},{"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:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQppbXBvcnQgQ291bnRUbyBmcm9tICd2dWUtY291bnQtdG8nDQoNCmV4cG9ydCBkZWZhdWx0IHsNCiAgY29tcG9uZW50czogew0KICAgIENvdW50VG8NCiAgfSwNCiAgZGF0YSgpew0KICAgIHJldHVybiB7DQogICAgICB3YWl0OjAsDQogICAgICBkb2luZzowLA0KICAgICAgYWxsOjAsDQogICAgICB0b3RhbDowDQogICAgfQ0KICB9LA0KICBtb3VudGVkKCkgew0KICAgIHRoaXMuJG5leHRUaWNrKCgpID0+IHsNCiAgICAgIHRoaXMuJGF4aW9zLmdldCgnL2FkbWluL2luZGV4L29yZGVycycpLnRoZW4ocmVzPT57DQogICAgICAgIHRoaXMud2FpdCA9IHBhcnNlRmxvYXQocmVzLmRhdGEud2FpdCkNCiAgICAgICAgdGhpcy5kb2luZyA9IHBhcnNlRmxvYXQocmVzLmRhdGEuZG9pbmcpDQogICAgICAgIHRoaXMuYWxsID0gcGFyc2VGbG9hdChyZXMuZGF0YS5hbGwpDQogICAgICAgIHRoaXMudG90YWwgPSBwYXJzZUZsb2F0KHJlcy5kYXRhLnRvdGFsKS8xMDANCiAgICAgIH0pLmNhdGNoKGVycj0+ew0KICAgICAgICBjb25zb2xlLmxvZyhlcnIpICANCiAgICAgIH0pDQogICAgfSkNCiAgfSwNCiAgbWV0aG9kczogew0KICAgIGhhbmRsZVNldExpbmVDaGFydERhdGEodHlwZSkgew0KICAgICAgdGhpcy4kZW1pdCgnaGFuZGxlU2V0TGluZUNoYXJ0RGF0YScsIHR5cGUpDQogICAgfQ0KICB9DQp9DQo="},{"version":3,"sources":["PanelGroup.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA;;AAEA;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":"PanelGroup.vue","sourceRoot":"src/views/dashboard/admin/components","sourcesContent":["<template>\r\n <el-row :gutter=\"40\" class=\"panel-group\">\r\n <el-col :xs=\"12\" :sm=\"12\" :lg=\"6\" class=\"card-panel-col\">\r\n <div class=\"card-panel\">\r\n <div class=\"card-panel-icon-wrapper icon-people\">\r\n <svg-icon icon-class=\"peoples\" class-name=\"card-panel-icon\" />\r\n </div>\r\n <div class=\"card-panel-description\">\r\n <div class=\"card-panel-text\">\r\n <router-link to=\"/order/index\">订单</router-link>\r\n </div>\r\n <count-to :start-val=\"0\" :end-val=\"all\" :duration=\"1\" class=\"card-panel-num\" />\r\n </div>\r\n </div>\r\n </el-col>\r\n <el-col :xs=\"12\" :sm=\"12\" :lg=\"6\" class=\"card-panel-col\">\r\n <div class=\"card-panel\">\r\n <div class=\"card-panel-icon-wrapper icon-message\">\r\n <svg-icon icon-class=\"message\" class-name=\"card-panel-icon\" />\r\n </div>\r\n <div class=\"card-panel-description\">\r\n <div class=\"card-panel-text\">\r\n <router-link to=\"/order/index?status=0\">待跟进</router-link>\r\n </div>\r\n <count-to :start-val=\"0\" :end-val=\"wait\" :duration=\"1\" class=\"card-panel-num\" />\r\n </div>\r\n </div>\r\n </el-col>\r\n <el-col :xs=\"12\" :sm=\"12\" :lg=\"6\" class=\"card-panel-col\">\r\n <div class=\"card-panel\">\r\n <div class=\"card-panel-icon-wrapper icon-money\">\r\n <svg-icon icon-class=\"money\" class-name=\"card-panel-icon\" />\r\n </div>\r\n <div class=\"card-panel-description\">\r\n <div class=\"card-panel-text\">\r\n <router-link to=\"/order/index?status=1\">跟进中</router-link>\r\n </div>\r\n <count-to :start-val=\"0\" :end-val=\"doing\" :duration=\"1\" class=\"card-panel-num\" />\r\n </div>\r\n </div>\r\n </el-col>\r\n <el-col :xs=\"12\" :sm=\"12\" :lg=\"6\" class=\"card-panel-col\">\r\n <div class=\"card-panel\">\r\n <div class=\"card-panel-icon-wrapper icon-shopping\">\r\n <svg-icon icon-class=\"shopping\" class-name=\"card-panel-icon\" />\r\n </div>\r\n <div class=\"card-panel-description\">\r\n <div class=\"card-panel-text\">\r\n 订单总额\r\n </div>\r\n <count-to :start-val=\"0\" :end-val=\"total\" :duration=\"10\" class=\"card-panel-num\" />\r\n </div>\r\n </div>\r\n </el-col>\r\n </el-row>\r\n</template>\r\n\r\n<script>\r\nimport CountTo from 'vue-count-to'\r\n\r\nexport default {\r\n components: {\r\n CountTo\r\n },\r\n data(){\r\n return {\r\n wait:0,\r\n doing:0,\r\n all:0,\r\n total:0\r\n }\r\n },\r\n mounted() {\r\n this.$nextTick(() => {\r\n this.$axios.get('/admin/index/orders').then(res=>{\r\n this.wait = parseFloat(res.data.wait)\r\n this.doing = parseFloat(res.data.doing)\r\n this.all = parseFloat(res.data.all)\r\n this.total = parseFloat(res.data.total)/100\r\n }).catch(err=>{\r\n console.log(err) \r\n })\r\n })\r\n },\r\n methods: {\r\n handleSetLineChartData(type) {\r\n this.$emit('handleSetLineChartData', type)\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.panel-group {\r\n margin-top: 18px;\r\n\r\n .card-panel-col {\r\n margin-bottom: 32px;\r\n }\r\n\r\n .card-panel {\r\n height: 108px;\r\n cursor: pointer;\r\n font-size: 12px;\r\n position: relative;\r\n overflow: hidden;\r\n color: #666;\r\n background: #fff;\r\n box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);\r\n border-color: rgba(0, 0, 0, .05);\r\n\r\n &:hover {\r\n .card-panel-icon-wrapper {\r\n color: #fff;\r\n }\r\n\r\n .icon-people {\r\n background: #40c9c6;\r\n }\r\n\r\n .icon-message {\r\n background: #36a3f7;\r\n }\r\n\r\n .icon-money {\r\n background: #f4516c;\r\n }\r\n\r\n .icon-shopping {\r\n background: #34bfa3\r\n }\r\n }\r\n\r\n .icon-people {\r\n color: #40c9c6;\r\n }\r\n\r\n .icon-message {\r\n color: #36a3f7;\r\n }\r\n\r\n .icon-money {\r\n color: #f4516c;\r\n }\r\n\r\n .icon-shopping {\r\n color: #34bfa3\r\n }\r\n\r\n .card-panel-icon-wrapper {\r\n float: left;\r\n margin: 14px 0 0 14px;\r\n padding: 16px;\r\n transition: all 0.38s ease-out;\r\n border-radius: 6px;\r\n }\r\n\r\n .card-panel-icon {\r\n float: left;\r\n font-size: 48px;\r\n }\r\n\r\n .card-panel-description {\r\n float: right;\r\n font-weight: bold;\r\n margin: 26px;\r\n margin-left: 0px;\r\n\r\n .card-panel-text {\r\n line-height: 18px;\r\n color: rgba(0, 0, 0, 0.45);\r\n font-size: 16px;\r\n margin-bottom: 12px;\r\n }\r\n\r\n .card-panel-num {\r\n font-size: 20px;\r\n }\r\n }\r\n }\r\n}\r\n\r\n@media (max-width:550px) {\r\n .card-panel-description {\r\n display: none;\r\n }\r\n\r\n .card-panel-icon-wrapper {\r\n float: none !important;\r\n width: 100%;\r\n height: 100%;\r\n margin: 0 !important;\r\n\r\n .svg-icon {\r\n display: block;\r\n margin: 14px auto !important;\r\n float: none !important;\r\n }\r\n }\r\n}\r\n</style>\r\n"]}]}