1 line
13 KiB
JSON
1 line
13 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\\main.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\main.vue","mtime":1620711691794},{"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/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\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//\n//\n//\n//\n//\nimport MainNavbar from \"./main-navbar\";\nimport MainSidebar from \"./main-sidebar\";\nimport MainContent from \"./main-content\";\nimport MainThemeTools from \"./main-theme-tools\";\nimport debounce from 'lodash/debounce';\nexport default {\n provide: function provide() {\n return {\n // 刷新\n refresh: function refresh() {\n var _this = this;\n\n this.$store.state.contentIsNeedRefresh = true;\n this.$nextTick(function () {\n _this.$store.state.contentIsNeedRefresh = false;\n });\n }\n };\n },\n data: function data() {\n return {\n loading: true\n };\n },\n components: {\n MainNavbar: MainNavbar,\n MainSidebar: MainSidebar,\n MainContent: MainContent,\n MainThemeTools: MainThemeTools\n },\n watch: {\n $route: 'routeHandle'\n },\n created: function created() {\n var _this2 = this;\n\n this.windowResizeHandle();\n this.routeHandle(this.$route);\n Promise.all([this.getUserInfo(), this.getPermissions()]).then(function () {\n _this2.loading = false;\n });\n },\n methods: {\n // 窗口改变大小\n windowResizeHandle: function windowResizeHandle() {\n var _this3 = this;\n\n this.$store.state.sidebarFold = document.documentElement['clientWidth'] <= 992 || false;\n window.addEventListener('resize', debounce(function () {\n _this3.$store.state.sidebarFold = document.documentElement['clientWidth'] <= 992 || false;\n }, 150));\n },\n // 路由, 监听\n routeHandle: function routeHandle(route) {\n if (!route.meta.isTab) {\n return false;\n }\n\n var tab = this.$store.state.contentTabs.filter(function (item) {\n return item.name === route.name;\n })[0];\n\n if (!tab) {\n tab = _objectSpread({}, window.SITE_CONFIG['contentTabDefault'], {}, route.meta, {\n 'name': route.name,\n 'params': _objectSpread({}, route.params),\n 'query': _objectSpread({}, route.query)\n });\n this.$store.state.contentTabs = this.$store.state.contentTabs.concat(tab);\n }\n\n this.$store.state.sidebarMenuActiveName = tab.menuId;\n this.$store.state.contentTabsActiveName = tab.name;\n },\n // 获取当前管理员信息\n getUserInfo: function getUserInfo() {\n var _this4 = this;\n\n return this.$http.get('/sys/user/info').then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this4.$message.error(res.msg);\n } // console.log(\"/sys/user/info\")\n // console.log(res)\n\n\n _this4.$store.state.user.id = res.data.id;\n _this4.$store.state.user.name = res.data.username;\n _this4.$store.state.user.realName = res.data.realName;\n _this4.$store.state.user.superAdmin = res.data.superAdmin;\n _this4.$store.state.user.roleNames = res.data.roleNames;\n _this4.$store.state.user.email = res.data.email;\n _this4.$store.state.user.deptId = res.data.deptId; // this.$store.state.user.deptName = res.data.deptName\n\n _this4.$store.state.user.mobile = res.data.mobile;\n _this4.$store.state.user.username = res.data.username;\n _this4.$store.state.user.roles = res.data.roleNames ? res.data.roleNames.split(\",\") : [];\n }).catch(function () {});\n },\n // 获取权限\n getPermissions: function getPermissions() {\n var _this5 = this;\n\n return this.$http.get('/sys/menu/permissions').then(function (_ref2) {\n var res = _ref2.data;\n\n if (res.code !== 0) {\n return _this5.$message.error(res.msg);\n }\n\n window.SITE_CONFIG['permissions'] = res.data;\n }).catch(function () {});\n }\n }\n};",{"version":3,"sources":["main.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAcA,OAAA,UAAA;AACA,OAAA,WAAA;AACA,OAAA,WAAA;AACA,OAAA,cAAA;AACA,OAAA,QAAA,MAAA,iBAAA;AACA,eAAA;AACA,EAAA,OADA,qBACA;AACA,WAAA;AACA;AACA,MAAA,OAFA,qBAEA;AAAA;;AACA,aAAA,MAAA,CAAA,KAAA,CAAA,oBAAA,GAAA,IAAA;AACA,aAAA,SAAA,CAAA,YAA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AAA","sourcesContent":["<template>\n <div v-loading.fullscreen.lock=\"loading\" :element-loading-text=\"$t('loading')\" :class=\"['aui-wrapper', { 'aui-sidebar--fold': $store.state.sidebarFold }]\">\n <template v-if=\"!loading\">\n <main-navbar />\n <main-sidebar />\n <div class=\"aui-content__wrapper\">\n <main-content v-if=\"!$store.state.contentIsNeedRefresh\" />\n </div>\n <!-- <main-theme-tools /> -->\n </template>\n </div>\n</template>\n\n<script>\nimport MainNavbar from './main-navbar'\nimport MainSidebar from './main-sidebar'\nimport MainContent from './main-content'\nimport MainThemeTools from './main-theme-tools'\nimport debounce from 'lodash/debounce'\nexport default {\n provide () {\n return {\n // 刷新\n refresh () {\n this.$store.state.contentIsNeedRefresh = true\n this.$nextTick(() => {\n this.$store.state.contentIsNeedRefresh = false\n })\n }\n }\n },\n data () {\n return {\n loading: true\n }\n },\n components: {\n MainNavbar,\n MainSidebar,\n MainContent,\n MainThemeTools\n },\n watch: {\n $route: 'routeHandle'\n },\n created () {\n this.windowResizeHandle()\n this.routeHandle(this.$route)\n Promise.all([\n this.getUserInfo(),\n this.getPermissions()\n ]).then(() => {\n this.loading = false\n })\n },\n methods: {\n // 窗口改变大小\n windowResizeHandle () {\n this.$store.state.sidebarFold = document.documentElement['clientWidth'] <= 992 || false\n window.addEventListener('resize', debounce(() => {\n this.$store.state.sidebarFold = document.documentElement['clientWidth'] <= 992 || false\n }, 150))\n },\n // 路由, 监听\n routeHandle (route) {\n if (!route.meta.isTab) {\n return false\n }\n var tab = this.$store.state.contentTabs.filter(item => item.name === route.name)[0]\n if (!tab) {\n tab = {\n ...window.SITE_CONFIG['contentTabDefault'],\n ...route.meta,\n 'name': route.name,\n 'params': { ...route.params },\n 'query': { ...route.query }\n }\n this.$store.state.contentTabs = this.$store.state.contentTabs.concat(tab)\n }\n this.$store.state.sidebarMenuActiveName = tab.menuId\n this.$store.state.contentTabsActiveName = tab.name\n },\n // 获取当前管理员信息\n getUserInfo () {\n return this.$http.get('/sys/user/info').then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n // console.log(\"/sys/user/info\")\n // console.log(res)\n this.$store.state.user.id = res.data.id\n this.$store.state.user.name = res.data.username\n this.$store.state.user.realName = res.data.realName\n this.$store.state.user.superAdmin = res.data.superAdmin \n this.$store.state.user.roleNames = res.data.roleNames\n\n this.$store.state.user.email = res.data.email\n this.$store.state.user.deptId = res.data.deptId\n // this.$store.state.user.deptName = res.data.deptName\n this.$store.state.user.mobile = res.data.mobile\n this.$store.state.user.username = res.data.username\n\n this.$store.state.user.roles = res.data.roleNames?res.data.roleNames.split(\",\"):[];\n }).catch(() => {})\n },\n // 获取权限\n getPermissions () {\n return this.$http.get('/sys/menu/permissions').then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n window.SITE_CONFIG['permissions'] = res.data\n }).catch(() => {})\n }\n }\n}\n</script>\n"],"sourceRoot":"src/views"}]} |