1 line
9.7 KiB
JSON
1 line
9.7 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=style&index=0&id=48c369af&lang=scss&scoped=true","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\\css-loader\\dist\\cjs.js","mtime":1718764958140},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":1718764960674},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\postcss-loader\\src\\index.js","mtime":1718764958994},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\sass-loader\\dist\\cjs.js","mtime":1718764957182},{"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:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoNCi5wYW5lbC1ncm91cCB7DQogIG1hcmdpbi10b3A6IDE4cHg7DQoNCiAgLmNhcmQtcGFuZWwtY29sIHsNCiAgICBtYXJnaW4tYm90dG9tOiAzMnB4Ow0KICB9DQoNCiAgLmNhcmQtcGFuZWwgew0KICAgIGhlaWdodDogMTA4cHg7DQogICAgY3Vyc29yOiBwb2ludGVyOw0KICAgIGZvbnQtc2l6ZTogMTJwe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0NCg=="},{"version":3,"sources":["PanelGroup.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6FA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;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"]}]} |