1 line
8.3 KiB
JSON
1 line
8.3 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\\layout\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\layout\\index.vue","mtime":1718763084956},{"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:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQppbXBvcnQgUmlnaHRQYW5lbCBmcm9tICdAL2NvbXBvbmVudHMvUmlnaHRQYW5lbCcNCmltcG9ydCB7IEFwcE1haW4sIE5hdmJhciwgU2V0dGluZ3MsIFNpZGViYXIsIFRhZ3NWaWV3IH0gZnJvbSAnLi9jb21wb25lbnRzJw0KaW1wb3J0IFJlc2l6ZU1peGluIGZyb20gJy4vbWl4aW4vUmVzaXplSGFuZGxlcicNCmltcG9ydCB7IG1hcFN0YXRlIH0gZnJvbSAndnVleCcNCmltcG9ydCB7IGdldFRva2VuIH0gZnJvbSAnQC91dGlscy9hdXRoJw0KDQpleHBvcnQgZGVmYXVsdCB7DQogIG5hbWU6ICdMYXlvdXQnLA0KICBjb21wb25lbnRzOiB7DQogICAgQXBwTWFpbiwNCiAgICBOYXZiYXIsDQogICAgUmlnaHRQYW5lbCwNCiAgICBTZXR0aW5ncywNCiA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aGVuKHJlcz0+ew0KICAgICAgICBpZihyZXMgJiYgcmVzLmRhdGEubmV3ID4gMCkgew0KICAgICAgICAgIHRoaXMuJG5vdGlmeSh7DQogICAgICAgICAgICB0aXRsZTogJ+aWsOeahOiuouWNleaPkOmGkicsDQogICAgICAgICAgICBkdXJhdGlvbjogMCwNCiAgICAgICAgICAgIGRhbmdlcm91c2x5VXNlSFRNTFN0cmluZzogdHJ1ZSwNCiAgICAgICAgICAgIG1lc3NhZ2U6ICc8c3Ryb25nPuS9oOacie+8iCcrcmVzLmRhdGEubmV3KyfvvInkuKrmlrDnmoTorqLljZXvvIzpnIDopoHlpITnkIY8L3N0cm9uZz4nDQogICAgICAgICAgfSk7DQogICAgICAgIH0NCiAgICAgICAgaWYocmVzICYmIHJlcy5kYXRhLmZvbGxvdyA+IDApIHsNCiAgICAgICAgICB0aGlzLiRub3RpZnkoew0KICAgICAgICAgICAgdGl0bGU6ICfmlrDnmoTot5/ov5vmj5DphpInLA0KICAgICAgICAgICAgZHVyYXRpb246IDEwMDAwLA0KICAgICAgICAgICAgZGFuZ2Vyb3VzbHlVc2VIVE1MU3RyaW5nOiB0cnVlLA0KICAgICAgICAgICAgbWVzc2FnZTogJzxzdHJvbmc+5L2g5pyJ77yIJytyZXMuZGF0YS5mb2xsb3crJ++8ieS4qui3n+i/m+iuouWNle+8jOmcgOimgeWkhOeQhjwvc3Ryb25nPicNCiAgICAgICAgICB9KTsNCiAgICAgICAgfQ0KICAgICAgICBpZihyZXMgJiYgcmVzLmRhdGEuYmFjayA+IDApIHsNCiAgICAgICAgICB0aGlzLiRub3RpZnkoew0KICAgICAgICAgICAgdGl0bGU6ICfovazljZXnlLPor7cnLA0KICAgICAgICAgICAgZHVyYXRpb246IDEwMDAwLA0KICAgICAgICAgICAgZGFuZ2Vyb3VzbHlVc2VIVE1MU3RyaW5nOiB0cnVlLA0KICAgICAgICAgICAgbWVzc2FnZTogJzxzdHJvbmc+5L2g5pyJ77yIJytyZXMuZGF0YS5iYWNrKyfvvInkuKrovazljZXorqLljZXvvIzpnIDopoHlpITnkIY8L3N0cm9uZz4nDQogICAgICAgICAgfSk7DQogICAgICAgIH0NCiAgICAgIH0pLmNhdGNoKGVycj0+ew0KICAgICAgICBjb25zb2xlLmxvZyhlcnIpDQogICAgICB9KQ0KICAgIH0sMzAwMDApOw0KICB9LA0KICBtZXRob2RzOiB7DQogICAgaGFuZGxlQ2xpY2tPdXRzaWRlKCkgew0KICAgICAgdGhpcy4kc3RvcmUuZGlzcGF0Y2goJ2FwcC9jbG9zZVNpZGVCYXInLCB7IHdpdGhvdXRBbmltYXRpb246IGZhbHNlIH0pDQogICAgfQ0KICB9DQp9DQo="},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAkBA;AACA;AACA;AACA;AACA;;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;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":"index.vue","sourceRoot":"src/layout","sourcesContent":["<template>\r\n <div :class=\"classObj\" class=\"app-wrapper\">\r\n <div v-if=\"device==='mobile'&&sidebar.opened\" class=\"drawer-bg\" @click=\"handleClickOutside\" />\r\n <sidebar class=\"sidebar-container\" />\r\n <div :class=\"{hasTagsView:needTagsView}\" class=\"main-container\">\r\n <div :class=\"{'fixed-header':fixedHeader}\">\r\n <navbar />\r\n <tags-view v-if=\"needTagsView\" />\r\n </div>\r\n <app-main />\r\n <!-- <right-panel v-if=\"showSettings\">\r\n <settings />\r\n </right-panel> -->\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport RightPanel from '@/components/RightPanel'\r\nimport { AppMain, Navbar, Settings, Sidebar, TagsView } from './components'\r\nimport ResizeMixin from './mixin/ResizeHandler'\r\nimport { mapState } from 'vuex'\r\nimport { getToken } from '@/utils/auth'\r\n\r\nexport default {\r\n name: 'Layout',\r\n components: {\r\n AppMain,\r\n Navbar,\r\n RightPanel,\r\n Settings,\r\n Sidebar,\r\n TagsView\r\n },\r\n mixins: [ResizeMixin],\r\n computed: {\r\n ...mapState({\r\n sidebar: state => state.app.sidebar,\r\n device: state => state.app.device,\r\n showSettings: state => state.settings.showSettings,\r\n needTagsView: state => state.settings.tagsView,\r\n fixedHeader: state => state.settings.fixedHeader\r\n }),\r\n classObj() {\r\n return {\r\n hideSidebar: !this.sidebar.opened,\r\n openSidebar: this.sidebar.opened,\r\n withoutAnimation: this.sidebar.withoutAnimation,\r\n mobile: this.device === 'mobile'\r\n }\r\n }\r\n },\r\n data(){\r\n return {\r\n iswork:null\r\n }\r\n },\r\n created(){\r\n this.iswork = setInterval(()=>{\r\n let toke = getToken()\r\n if(!toke || toke.length <= 0) return;\r\n this.$axios.get('/admin/index/iswork').then(res=>{\r\n if(res && res.data.new > 0) {\r\n this.$notify({\r\n title: '新的订单提醒',\r\n duration: 0,\r\n dangerouslyUseHTMLString: true,\r\n message: '<strong>你有('+res.data.new+')个新的订单,需要处理</strong>'\r\n });\r\n }\r\n if(res && res.data.follow > 0) {\r\n this.$notify({\r\n title: '新的跟进提醒',\r\n duration: 10000,\r\n dangerouslyUseHTMLString: true,\r\n message: '<strong>你有('+res.data.follow+')个跟进订单,需要处理</strong>'\r\n });\r\n }\r\n if(res && res.data.back > 0) {\r\n this.$notify({\r\n title: '转单申请',\r\n duration: 10000,\r\n dangerouslyUseHTMLString: true,\r\n message: '<strong>你有('+res.data.back+')个转单订单,需要处理</strong>'\r\n });\r\n }\r\n }).catch(err=>{\r\n console.log(err)\r\n })\r\n },30000);\r\n },\r\n methods: {\r\n handleClickOutside() {\r\n this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n @import \"~@/styles/mixin.scss\";\r\n @import \"~@/styles/variables.scss\";\r\n\r\n .app-wrapper {\r\n @include clearfix;\r\n position: relative;\r\n height: 100%;\r\n width: 100%;\r\n\r\n &.mobile.openSidebar {\r\n position: fixed;\r\n top: 0;\r\n }\r\n }\r\n\r\n .drawer-bg {\r\n background: #000;\r\n opacity: 0.3;\r\n width: 100%;\r\n top: 0;\r\n height: 100%;\r\n position: absolute;\r\n z-index: 999;\r\n }\r\n\r\n .fixed-header {\r\n position: fixed;\r\n top: 0;\r\n right: 0;\r\n z-index: 9;\r\n width: calc(100% - #{$sideBarWidth});\r\n transition: width 0.28s;\r\n }\r\n\r\n .hideSidebar .fixed-header {\r\n width: calc(100% - 54px)\r\n }\r\n\r\n .mobile .fixed-header {\r\n width: 100%;\r\n }\r\n</style>\r\n"]}]} |