management/front/dkha-web-sz-main/node_modules/.cache/vue-loader/b9a5ba049618140c4761206a207...

1 line
3.6 KiB
JSON

{"remainingRequest":"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=style&index=0&id=0f94dc01&scoped=true&lang=scss&","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\\css-loader\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\sass-loader\\lib\\loader.js","mtime":1533139052000},{"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":["\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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",{"version":3,"sources":["home.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"home.vue","sourceRoot":"src/views/modules","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"]}]}