1 line
6.3 KiB
JSON
1 line
6.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=style&index=0&id=13877386&lang=scss&scoped=true","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\layout\\index.vue","mtime":1718763084956},{"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:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCkBpbXBvcnQgIn5AL3N0eWxlcy9taXhpbi5zY3NzIjsKQGltcG9ydCAifkAvc3R5bGVzL3ZhcmlhYmxlcy5zY3NzIjsKCi5hcHAtd3JhcHBlciB7CiAgQGluY2x1ZGUgY2xlYXJmaXg7CiAgcG9zaXRpb246IHJlbGF0aXZlOwogIGhlaWdodDogMTAwJTsKICB3aWR0aDogMTAwJTsKCiAgJi5tb2JpbGUub3BlblNpZGViYXIgewogICAgcG9zaXRpb246IGZpeGVkOwogICAgdG9wOiAwOwogIH0KfQoKLmRyYXdlci1iZyB7CiAgYmFja2dyb3VuZDogIzAwMDsKICBvcGFjaXR5OiAwLjM7CiAgd2lkdGg6IDEwMCU7CiAgdG9wOiAwOwogIGhlaWdodDogMTAwJTsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgei1pbmRleDogOTk5Owp9CgouZml4ZWQtaGVhZGVyIHsKICBwb3NpdGlvbjogZml4ZWQ7CiAgdG9wOiAwOwogIHJpZ2h0OiAwOwogIHotaW5kZXg6IDk7CiAgd2lkdGg6IGNhbGMoMTAwJSAtICN7JHNpZGVCYXJXaWR0aH0pOwogIHRyYW5zaXRpb246IHdpZHRoIDAuMjhzOwp9CgouaGlkZVNpZGViYXIgLmZpeGVkLWhlYWRlciB7CiAgd2lkdGg6IGNhbGMoMTAwJSAtIDU0cHgpCn0KCi5tb2JpbGUgLmZpeGVkLWhlYWRlciB7CiAgd2lkdGg6IDEwMCU7Cn0K"},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;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"]}]} |