forked from zhurui/management
1 line
6.5 KiB
JSON
1 line
6.5 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\home.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\home.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport admin from \"./home-components/admin.vue\";\nimport homeDormitory from \"./home-components/home_dormitory\";\nimport homeBuilding from \"./home-components/home_building\";\nimport { mapGetters } from 'vuex';\nimport screenfull from \"screenfull\";\nexport default {\n components: {\n /*admin,homeDormitory ,homeBuilding*/\n },\n computed: _objectSpread({}, mapGetters(['isFullScreen'])),\n data: function data() {\n return {};\n },\n activated: function activated() {\n if (this.isFullScreen) {\n screenfull.toggle(this.$refs[\"home\"]);\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n screenfull.on('change', function () {\n _this.$store.commit(\"SET_FULL_SCREEN\", !!screenfull.element);\n });\n },\n methods: {\n //返回首页\n fullScreen: function fullScreen() {\n //// 如果不允许进入全屏,发出不允许提示\n if (!screenfull.enabled) {\n return this.$message({\n message: this.$t(\"fullscreen.prompt\"),\n type: \"warning\",\n duration: 500\n });\n }\n\n this.$store.commit(\"SET_FULL_SCREEN\", !this.$store.state.user.isFullScreen);\n screenfull.toggle(this.$refs[\"home\"]);\n }\n }\n};",{"version":3,"sources":["home.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAUA,OAAA,KAAA;AACA,OAAA,aAAA;AACA,OAAA,YAAA;AACA,SAAA,UAAA,QAAA,MAAA;AACA,OAAA,UAAA,MAAA,YAAA;AACA,eAAA;AACA,EAAA,UAAA,EAAA;AACA;AADA,GADA;AAIA,EAAA,QAAA,oBACA,UAAA,CAAA,CAAA,cAAA,CAAA,CADA,CAJA;AAOA,EAAA,IAPA,kBAOA;AACA,WAAA,EAAA;AACA,GATA;AAUA,EAAA,SAVA,uBAUA;AACA,QAAA,KAAA,YAAA,EAAA;AACA,MAAA,UAAA,CAAA,MAAA,CAAA,KAAA,KAAA,CAAA,MAAA,CAAA;AACA;AACA,GAdA;AAeA,EAAA,OAfA,qBAeA;AAAA;;AACA,IAAA,UAAA,CAAA,EAAA,CAAA,QAAA,EAAA,YAAA;AACA,MAAA,KAAA,CAAA,MAAA,CAAA,MAAA,CAAA,iBAAA,EAAA,CAAA,CAAA,UAAA,CAAA,OAAA;AACA,KAFA;AAGA,GAnBA;AAoBA,EAAA,OAAA,EAAA;AACA;AACA,IAAA,UAFA,wBAEA;AACA;AACA,UAAA,CAAA,UAAA,CAAA,OAAA,EAAA;AACA,eAAA,KAAA,QAAA,CAAA;AACA,UAAA,OAAA,EAAA,KAAA,EAAA,CAAA,mBAAA,CADA;AAEA,UAAA,IAAA,EAAA,SAFA;AAGA,UAAA,QAAA,EAAA;AAHA,SAAA,CAAA;AAKA;;AACA,WAAA,MAAA,CAAA,MAAA,CAAA,iBAAA,EAAA,CAAA,KAAA,MAAA,CAAA,KAAA,CAAA,IAAA,CAAA,YAAA;AACA,MAAA,UAAA,CAAA,MAAA,CAAA,KAAA,KAAA,CAAA,MAAA,CAAA;AACA;AAbA;AApBA,CAAA","sourcesContent":["<template>\n\t<div class=\"home\" ref=\"home\">\n\t\t<img class=\"full\" src=\"../../assets/img/shouye/full.png\" alt=\"\" :title=\"isFullScreen?'退出':'全屏'\" @click=\"fullScreen\">\n\t\t<admin v-if=\"$hasPermission('sys:home:root')\"></admin>\n\t\t<home-dormitory v-else-if=\"$hasPermission('sys:home:dormitory')\"></home-dormitory>\n <home-building v-else-if=\"$hasPermission('sys:home:building')\"></home-building>\n\t</div>\n</template>\n\n<script>\n\timport admin from './home-components/admin.vue'\n\timport homeDormitory from './home-components/home_dormitory'\n\timport homeBuilding from './home-components/home_building'\n\timport { mapGetters } from 'vuex'\n import screenfull from \"screenfull\";\n\texport default {\n\t\tcomponents: {\n\t\t\t/*admin,homeDormitory ,homeBuilding*/\n\t\t},\n\t\tcomputed:{\n ...mapGetters(['isFullScreen'])\n },\n\t\tdata() {\n\t\t\treturn {}\n\t\t},\n\t\tactivated(){\n if(this.isFullScreen){\n screenfull.toggle(this.$refs[\"home\"])\n }\n },\n\t\tmounted(){\n\t\t\tscreenfull.on('change',()=>{\n\t\t\t\tthis.$store.commit(\"SET_FULL_SCREEN\",!!screenfull.element)\n\t\t\t}) \n\t\t},\n\t\tmethods:{\n\t\t\t//返回首页\n fullScreen(){\n //// 如果不允许进入全屏,发出不允许提示\n if (!screenfull.enabled) {\n return this.$message({\n message: this.$t(\"fullscreen.prompt\"),\n type: \"warning\",\n duration: 500\n });\n }\n this.$store.commit( \"SET_FULL_SCREEN\", !this.$store.state.user.isFullScreen );\n screenfull.toggle(this.$refs[\"home\"]);\n }\n\t\t}\n\t}\n</script>\n<style scoped lang=\"scss\">\n.home{\n\tposition: relative;\n\t.full{\n\t\tposition:absolute;\n\t\ttop: 4px;\n\t\tright: 6px;\n\t\tcursor: pointer;\n\t}\n}\n</style>\n"],"sourceRoot":"src/views/modules"}]} |