1 |
- {"remainingRequest":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\style-vw-loader\\index.js??ref--0-2!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\components\\common\\Home.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\components\\common\\Home.vue","mtime":1664246393752},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\babel.config.js","mtime":1663828782900},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\style-vw-loader\\index.js","mtime":1540864632000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.set\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport vHead from \"./Header.vue\";\nimport vSidebar from \"./Sidebar.vue\";\nimport vTags from \"./Tags.vue\";\nexport default {\n data: function data() {\n return {};\n },\n computed: {\n collapse: function collapse() {\n return this.$store.getters['getCollapse'];\n },\n tagsList: function tagsList() {\n var arr = [],\n msg = this.$store.getters['getTagsList'];\n\n for (var i = 0, len = msg.length; i < len; i++) {\n msg[i].name && arr.push(msg[i].name);\n }\n\n return arr;\n },\n popupsList: function popupsList() {\n return this.$store.getters.getPopups;\n },\n routePath: function routePath() {\n return this.$route.path == '/passengerFlow/index' || this.$route.path == '/videoSurveillance/index';\n }\n },\n methods: {\n beforeunloadHandler: function beforeunloadHandler() {\n //页面刷新\n var taglist = this.$store.getters['getTagsList'] || [];\n sessionStorage.setItem('tabs', JSON.stringify(taglist));\n },\n // 获取用户权限\n getElement: function getElement() {\n var _this = this;\n\n this.$http.post('/sc-user-center/menu/selectAuthCode').then(function (res) {\n var data = res.data || [];\n\n _this.$store.commit('setPermissionList', new Set(data));\n\n console.log('获取到的权限标识为', data);\n });\n },\n beforeunload: function beforeunload() {\n window.addEventListener('beforeunload', this.beforeunloadHandler, false);\n }\n },\n components: {\n vHead: vHead,\n vSidebar: vSidebar,\n vTags: vTags\n },\n created: function created() {\n this.$store.dispatch('SET_MENU_LIST');\n this.getElement();\n this.$store.dispatch('tags', JSON.parse(sessionStorage.getItem('tabs')) || []);\n },\n mounted: function mounted() {\n this.beforeunload();\n },\n destroyed: function destroyed() {\n window.removeEventListener('beforeunload', this.beforeunloadHandler, false);\n }\n};",{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA;AACA;AACA;AACA;AACAA,MADA,kBACA;AACA;AACA,GAHA;AAIAC;AACAC,YADA,sBACA;AACA;AACA,KAHA;AAIAC,YAJA,sBAIA;AACA;AAAA,UACAC,wCADA;;AAEA;AACAA;AACA;;AACA;AACA,KAXA;AAYAC,cAZA,wBAYA;AACA;AACA,KAdA;AAeAC,aAfA,uBAeA;AACA;AACA;AAjBA,GAJA;AAuBAC;AACAC,uBADA,iCACA;AACA;AACA;AACAC;AACA,KALA;AAMA;AACAC,cAPA,wBAOA;AAAA;;AACA;AACA;;AACA;;AACAC;AACA,OAJA;AAKA,KAbA;AAcAC,gBAdA,0BAcA;AACAC;AACA;AAhBA,GAvBA;AAyCAC;AACAC,gBADA;AAEAC,sBAFA;AAGAC;AAHA,GAzCA;AA8CAC,SA9CA,qBA8CA;AACA;AACA;AACA;AACA,GAlDA;AAmDAC,SAnDA,qBAmDA;AACA;AACA,GArDA;AAsDAC,WAtDA,uBAsDA;AACAP;AACA;AAxDA","names":["data","computed","collapse","tagsList","msg","popupsList","routePath","methods","beforeunloadHandler","sessionStorage","getElement","console","beforeunload","window","components","vHead","vSidebar","vTags","created","mounted","destroyed"],"sourceRoot":"src/components/common","sources":["Home.vue"],"sourcesContent":["<!--\r\n * @Author: zouwenying\r\n * @Date: 2020-10-22 15:51:29\r\n * @LastEditTime: 2021-04-19 10:58:38\r\n * @LastEditors: zwy\r\n * @Description: In User Settings Edit\r\n * @FilePath: \\vue-manage-system-master\\src\\components\\others\\Home.vue\r\n-->\r\n<template>\r\n <div class=\"dmp-app\" :class=\"routePath ? 'newWorkBench' : ''\">\r\n <v-sidebar></v-sidebar>\r\n <div class=\"dmp-content\" :style=\"{ width: collapse ? 'calc(100% - 4.42708vw)' : 'calc(100% - 11.45833vw)' }\">\r\n <v-head></v-head>\r\n <div class=\"main-wrap\" :class=\"routePath ? 'newWorkBench' : ''\">\r\n <transition name=\"move\" mode=\"out-in\">\r\n <!-- <keep-alive :include=\"tagsList\">\r\n <router-view></router-view>\r\n </keep-alive> -->\r\n <router-view></router-view>\r\n </transition>\r\n </div>\r\n </div>\r\n <xk-modal></xk-modal>\r\n <div class=\"dmp-alert\" v-if=\"popupsList.length !== 0\">\r\n <div class=\"dmp-alert-body\" v-for=\"item in popupsList\" :key=\"item.id\">\r\n <alert-modal :params=\"item\"></alert-modal>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport vHead from './Header.vue';\r\nimport vSidebar from './Sidebar.vue';\r\nimport vTags from './Tags.vue';\r\nexport default {\r\n data() {\r\n return {};\r\n },\r\n computed: {\r\n collapse() {\r\n return this.$store.getters['getCollapse'];\r\n },\r\n tagsList() {\r\n let arr = [],\r\n msg = this.$store.getters['getTagsList'];\r\n for (let i = 0, len = msg.length; i < len; i++) {\r\n msg[i].name && arr.push(msg[i].name);\r\n }\r\n return arr;\r\n },\r\n popupsList() {\r\n return this.$store.getters.getPopups;\r\n },\r\n routePath() {\r\n return this.$route.path == '/passengerFlow/index' || this.$route.path == '/videoSurveillance/index';\r\n }\r\n },\r\n methods: {\r\n beforeunloadHandler() {\r\n //页面刷新\r\n let taglist = this.$store.getters['getTagsList'] || [];\r\n sessionStorage.setItem('tabs', JSON.stringify(taglist));\r\n },\r\n // 获取用户权限\r\n getElement() {\r\n this.$http.post('/sc-user-center/menu/selectAuthCode').then((res) => {\r\n let data = res.data || [];\r\n this.$store.commit('setPermissionList', new Set(data));\r\n console.log('获取到的权限标识为', data);\r\n });\r\n },\r\n beforeunload() {\r\n window.addEventListener('beforeunload', this.beforeunloadHandler, false);\r\n }\r\n },\r\n components: {\r\n vHead,\r\n vSidebar,\r\n vTags\r\n },\r\n created() {\r\n this.$store.dispatch('SET_MENU_LIST');\r\n this.getElement();\r\n this.$store.dispatch('tags', JSON.parse(sessionStorage.getItem('tabs')) || []);\r\n },\r\n mounted() {\r\n this.beforeunload();\r\n },\r\n destroyed() {\r\n window.removeEventListener('beforeunload', this.beforeunloadHandler, false);\r\n }\r\n};\r\n</script>\r\n<style lang='scss' scoped>\r\n// .dmp-content{\r\n// flex-direction: column;\r\n// .dmp-main{\r\n// background-color: #f4f7f9;\r\n// position: relative;\r\n// overflow: hidden;\r\n// padding: 0;\r\n// .main-wrap{\r\n// width: 100%;\r\n// \t\t\theight: 100%;\r\n// \t\t\tposition: absolute;\r\n// \t\t\toverflow: auto;\r\n// \t\t\tpadding: 20px;\r\n// }\r\n// }\r\n// }\r\n.dmp-content {\r\n flex: 1;\r\n display: flex;\r\n flex-direction: column;\r\n width: 0;\r\n}\r\n.main-wrap {\r\n background-color: #f4f7f9;\r\n position: relative;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n padding: 20px 20px 10px 20px;\r\n height: 100%;\r\n}\r\n.newWorkBench {\r\n background-color: #2c354a;\r\n overflow: hidden;\r\n padding-top: 0;\r\n}\r\n</style>\r\n"]}]}
|