| 1 |
- {"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\main.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\main.vue","mtime":1760168984809},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\babel.config.js","mtime":1581948662000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\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 _defineProperty from \"D:/HTC/program/\\u5584\\u884C\\u5C11\\u5E74/security-enterprise-admin/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\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 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 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 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 var tab = this.$store.state.contentTabs.filter(function (item) {\n return item.name === route.name;\n })[0];\n if (!tab) {\n tab = _objectSpread(_objectSpread(_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 this.$store.state.sidebarMenuActiveName = tab.menuId;\n this.$store.state.contentTabsActiveName = tab.name;\n },\n // 获取当前管理员信息\n getUserInfo: function getUserInfo() {\n var _this4 = this;\n return this.$http.get('/sys/user/info').then(function (_ref) {\n var res = _ref.data;\n if (res.code !== 0) {\n return _this4.$message.error(res.msg);\n }\n _this4.$store.state.user.id = res.data.id;\n _this4.$store.state.user.name = res.data.username;\n _this4.$store.state.user.superAdmin = res.data.superAdmin;\n }).catch(function () {});\n },\n // 获取权限\n getPermissions: function getPermissions() {\n var _this5 = this;\n return this.$http.get('/sys/menu/permissions').then(function (_ref2) {\n var res = _ref2.data;\n if (res.code !== 0) {\n return _this5.$message.error(res.msg);\n }\n window.SITE_CONFIG['permissions'] = res.data;\n }).catch(function () {});\n }\n }\n};",{"version":3,"names":["MainNavbar","MainSidebar","MainContent","MainThemeTools","debounce","provide","refresh","_this","$store","state","contentIsNeedRefresh","$nextTick","data","loading","components","watch","$route","created","_this2","windowResizeHandle","routeHandle","Promise","all","getUserInfo","getPermissions","then","methods","_this3","sidebarFold","document","documentElement","window","addEventListener","route","meta","isTab","tab","contentTabs","filter","item","name","_objectSpread","SITE_CONFIG","params","query","concat","sidebarMenuActiveName","menuId","contentTabsActiveName","_this4","$http","get","_ref","res","code","$message","error","msg","user","id","username","superAdmin","catch","_this5","_ref2"],"sources":["src/views/main.vue"],"sourcesContent":["<template>\r\n <div v-loading.fullscreen.lock=\"loading\" :element-loading-text=\"$t('loading')\" :class=\"['aui-wrapper', { 'aui-sidebar--fold': $store.state.sidebarFold }]\">\r\n <template v-if=\"!loading\">\r\n <main-navbar />\r\n <main-sidebar />\r\n <div class=\"aui-content__wrapper\">\r\n <main-content v-if=\"!$store.state.contentIsNeedRefresh\" />\r\n </div>\r\n </template>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport MainNavbar from './main-navbar'\r\nimport MainSidebar from './main-sidebar'\r\nimport MainContent from './main-content'\r\nimport MainThemeTools from './main-theme-tools'\r\nimport debounce from 'lodash/debounce'\r\nexport default {\r\n provide () {\r\n return {\r\n // 刷新\r\n refresh () {\r\n this.$store.state.contentIsNeedRefresh = true\r\n this.$nextTick(() => {\r\n this.$store.state.contentIsNeedRefresh = false\r\n })\r\n }\r\n }\r\n },\r\n data () {\r\n return {\r\n loading: true\r\n }\r\n },\r\n components: {\r\n MainNavbar,\r\n MainSidebar,\r\n MainContent,\r\n MainThemeTools\r\n },\r\n watch: {\r\n $route: 'routeHandle'\r\n },\r\n created () {\r\n this.windowResizeHandle()\r\n this.routeHandle(this.$route)\r\n Promise.all([\r\n this.getUserInfo(),\r\n this.getPermissions()\r\n ]).then(() => {\r\n this.loading = false\r\n })\r\n },\r\n methods: {\r\n // 窗口改变大小\r\n windowResizeHandle () {\r\n this.$store.state.sidebarFold = document.documentElement['clientWidth'] <= 992 || false\r\n window.addEventListener('resize', debounce(() => {\r\n this.$store.state.sidebarFold = document.documentElement['clientWidth'] <= 992 || false\r\n }, 150))\r\n },\r\n // 路由, 监听\r\n routeHandle (route) {\r\n if (!route.meta.isTab) {\r\n return false\r\n }\r\n var tab = this.$store.state.contentTabs.filter(item => item.name === route.name)[0]\r\n if (!tab) {\r\n tab = {\r\n ...window.SITE_CONFIG['contentTabDefault'],\r\n ...route.meta,\r\n 'name': route.name,\r\n 'params': { ...route.params },\r\n 'query': { ...route.query }\r\n }\r\n this.$store.state.contentTabs = this.$store.state.contentTabs.concat(tab)\r\n }\r\n this.$store.state.sidebarMenuActiveName = tab.menuId\r\n this.$store.state.contentTabsActiveName = tab.name\r\n },\r\n // 获取当前管理员信息\r\n getUserInfo () {\r\n return this.$http.get('/sys/user/info').then(({ data: res }) => {\r\n if (res.code !== 0) {\r\n return this.$message.error(res.msg)\r\n }\r\n this.$store.state.user.id = res.data.id\r\n this.$store.state.user.name = res.data.username\r\n this.$store.state.user.superAdmin = res.data.superAdmin\r\n }).catch(() => {})\r\n },\r\n // 获取权限\r\n getPermissions () {\r\n return this.$http.get('/sys/menu/permissions').then(({ data: res }) => {\r\n if (res.code !== 0) {\r\n return this.$message.error(res.msg)\r\n }\r\n window.SITE_CONFIG['permissions'] = res.data\r\n }).catch(() => {})\r\n }\r\n }\r\n}\r\n</script>\r\n"],"mappings":";;;;;;;;AAaA,OAAAA,UAAA;AACA,OAAAC,WAAA;AACA,OAAAC,WAAA;AACA,OAAAC,cAAA;AACA,OAAAC,QAAA;AACA;EACAC,OAAA,WAAAA,QAAA;IACA;MACA;MACAC,OAAA,WAAAA,QAAA;QAAA,IAAAC,KAAA;QACA,KAAAC,MAAA,CAAAC,KAAA,CAAAC,oBAAA;QACA,KAAAC,SAAA;UACAJ,KAAA,CAAAC,MAAA,CAAAC,KAAA,CAAAC,oBAAA;QACA;MACA;IACA;EACA;EACAE,IAAA,WAAAA,KAAA;IACA;MACAC,OAAA;IACA;EACA;EACAC,UAAA;IACAd,UAAA,EAAAA,UAAA;IACAC,WAAA,EAAAA,WAAA;IACAC,WAAA,EAAAA,WAAA;IACAC,cAAA,EAAAA;EACA;EACAY,KAAA;IACAC,MAAA;EACA;EACAC,OAAA,WAAAA,QAAA;IAAA,IAAAC,MAAA;IACA,KAAAC,kBAAA;IACA,KAAAC,WAAA,MAAAJ,MAAA;IACAK,OAAA,CAAAC,GAAA,EACA,KAAAC,WAAA,IACA,KAAAC,cAAA,GACA,EAAAC,IAAA;MACAP,MAAA,CAAAL,OAAA;IACA;EACA;EACAa,OAAA;IACA;IACAP,kBAAA,WAAAA,mBAAA;MAAA,IAAAQ,MAAA;MACA,KAAAnB,MAAA,CAAAC,KAAA,CAAAmB,WAAA,GAAAC,QAAA,CAAAC,eAAA;MACAC,MAAA,CAAAC,gBAAA,WAAA5B,QAAA;QACAuB,MAAA,CAAAnB,MAAA,CAAAC,KAAA,CAAAmB,WAAA,GAAAC,QAAA,CAAAC,eAAA;MACA;IACA;IACA;IACAV,WAAA,WAAAA,YAAAa,KAAA;MACA,KAAAA,KAAA,CAAAC,IAAA,CAAAC,KAAA;QACA;MACA;MACA,IAAAC,GAAA,QAAA5B,MAAA,CAAAC,KAAA,CAA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