9e42d4c57881cf5f77ecbd9d4006aaf5.json 10 KB

1
  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-content.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\main-content.vue","mtime":1581948666000},{"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/web.dom.iterable\";\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\";\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 { isURL } from '@/utils/validate';\nexport default {\n data: function data() {\n return {};\n },\n methods: {\n // tabs, 是否通过iframe展示\n tabIsIframe: function tabIsIframe(url) {\n return isURL(url);\n },\n // tabs, 选中tab\n tabSelectedHandle: function tabSelectedHandle(tab) {\n tab = this.$store.state.contentTabs.filter(function (item) {\n return item.name === tab.name;\n })[0];\n if (tab) {\n this.$router.push({\n 'name': tab.name,\n 'params': _objectSpread({}, tab.params),\n 'query': _objectSpread({}, tab.query)\n });\n }\n },\n // tabs, 删除tab\n tabRemoveHandle: function tabRemoveHandle(tabName) {\n if (tabName === 'home') {\n return false;\n }\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(function (item) {\n return item.name !== tabName;\n });\n if (this.$store.state.contentTabs.length <= 0) {\n this.$store.state.sidebarMenuActiveName = this.$store.state.contentTabsActiveName = 'home';\n return false;\n }\n // 当前选中tab被删除\n if (tabName === this.$store.state.contentTabsActiveName) {\n var tab = this.$store.state.contentTabs[this.$store.state.contentTabs.length - 1];\n this.$router.push({\n name: tab.name,\n params: _objectSpread({}, tab.params),\n query: _objectSpread({}, tab.query)\n });\n }\n },\n // tabs, 关闭其它\n tabsCloseOtherHandle: function tabsCloseOtherHandle() {\n var _this = this;\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(function (item) {\n return item.name === 'home' || item.name === _this.$store.state.contentTabsActiveName;\n });\n },\n // tabs, 关闭全部\n tabsCloseAllHandle: function tabsCloseAllHandle() {\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(function (item) {\n return item.name === 'home';\n });\n this.$router.push({\n name: 'home'\n });\n }\n }\n};",{"version":3,"names":["isURL","data","methods","tabIsIframe","url","tabSelectedHandle","tab","$store","state","contentTabs","filter","item","name","$router","push","_objectSpread","params","query","tabRemoveHandle","tabName","length","sidebarMenuActiveName","contentTabsActiveName","tabsCloseOtherHandle","_this","tabsCloseAllHandle"],"sources":["src/views/main-content.vue"],"sourcesContent":["<template>\r\n <main :class=\"['aui-content', { 'aui-content--tabs': $route.meta.isTab }]\">\r\n <!-- tab展示内容 -->\r\n <template v-if=\"$route.meta.isTab\">\r\n <el-dropdown class=\"aui-content--tabs-tools\">\r\n <i class=\"el-icon-arrow-down\"></i>\r\n <el-dropdown-menu slot=\"dropdown\" :show-timeout=\"0\">\r\n <el-dropdown-item @click.native=\"tabRemoveHandle($store.state.contentTabsActiveName)\">{{ $t('contentTabs.closeCurrent') }}</el-dropdown-item>\r\n <el-dropdown-item @click.native=\"tabsCloseOtherHandle()\">{{ $t('contentTabs.closeOther') }}</el-dropdown-item>\r\n <el-dropdown-item @click.native=\"tabsCloseAllHandle()\">{{ $t('contentTabs.closeAll') }}</el-dropdown-item>\r\n </el-dropdown-menu>\r\n </el-dropdown>\r\n <el-tabs v-model=\"$store.state.contentTabsActiveName\" @tab-click=\"tabSelectedHandle\" @tab-remove=\"tabRemoveHandle\">\r\n <el-tab-pane\r\n v-for=\"item in $store.state.contentTabs\"\r\n :key=\"item.name\"\r\n :name=\"item.name\"\r\n :label=\"item.title\"\r\n :closable=\"item.name !== 'home'\"\r\n :class=\"{ 'is-iframe': tabIsIframe(item.iframeURL) }\">\r\n <template v-if=\"item.name === 'home'\">\r\n <svg slot=\"label\" class=\"icon-svg aui-content--tabs-icon-nav\" aria-hidden=\"true\"><use xlink:href=\"#icon-home\"></use></svg>\r\n </template>\r\n <iframe v-if=\"tabIsIframe(item.iframeURL)\" :src=\"item.iframeURL\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"yes\"></iframe>\r\n <keep-alive v-else>\r\n <router-view v-if=\"item.name === $store.state.contentTabsActiveName\" />\r\n </keep-alive>\r\n </el-tab-pane>\r\n </el-tabs>\r\n </template>\r\n <!-- 其他方式, 展示内容 -->\r\n <template v-else>\r\n <keep-alive>\r\n <router-view />\r\n </keep-alive>\r\n </template>\r\n </main>\r\n</template>\r\n\r\n<script>\r\nimport { isURL } from '@/utils/validate'\r\nexport default {\r\n data () {\r\n return {\r\n }\r\n },\r\n methods: {\r\n // tabs, 是否通过iframe展示\r\n tabIsIframe (url) {\r\n return isURL(url)\r\n },\r\n // tabs, 选中tab\r\n tabSelectedHandle (tab) {\r\n tab = this.$store.state.contentTabs.filter(item => item.name === tab.name)[0]\r\n if (tab) {\r\n this.$router.push({\r\n 'name': tab.name,\r\n 'params': { ...tab.params },\r\n 'query': { ...tab.query }\r\n })\r\n }\r\n },\r\n // tabs, 删除tab\r\n tabRemoveHandle (tabName) {\r\n if (tabName === 'home') {\r\n return false\r\n }\r\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name !== tabName)\r\n if (this.$store.state.contentTabs.length <= 0) {\r\n this.$store.state.sidebarMenuActiveName = this.$store.state.contentTabsActiveName = 'home'\r\n return false\r\n }\r\n // 当前选中tab被删除\r\n if (tabName === this.$store.state.contentTabsActiveName) {\r\n let tab = this.$store.state.contentTabs[this.$store.state.contentTabs.length - 1]\r\n this.$router.push({\r\n name: tab.name,\r\n params: { ...tab.params },\r\n query: { ...tab.query }\r\n })\r\n }\r\n },\r\n // tabs, 关闭其它\r\n tabsCloseOtherHandle () {\r\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => {\r\n return item.name === 'home' || item.name === this.$store.state.contentTabsActiveName\r\n })\r\n },\r\n // tabs, 关闭全部\r\n tabsCloseAllHandle () {\r\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name === 'home')\r\n this.$router.push({ name: 'home' })\r\n }\r\n }\r\n}\r\n</script>\r\n"],"mappings":";;;;;;;AAwCA,SAAAA,KAAA;AACA;EACAC,IAAA,WAAAA,KAAA;IACA,QACA;EACA;EACAC,OAAA;IACA;IACAC,WAAA,WAAAA,YA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