1 line
11 KiB
JSON
1 line
11 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-content.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\main-content.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\";\nimport \"core-js/modules/es6.function.name\";\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//\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//\nimport { isURL } from '@/utils/validate';\nimport visitor from '@/websocket/visitor'; //import system from '@/websocket/system'\n\nexport default {\n mixins: [visitor\n /*,system*/\n ],\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\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\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(function (item) {\n return item.name !== tabName;\n });\n\n if (this.$store.state.contentTabs.length <= 0) {\n this.$store.state.sidebarMenuActiveName = this.$store.state.contentTabsActiveName = 'home';\n return false;\n } // 当前选中tab被删除\n\n\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\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,"sources":["main-content.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,SAAA,KAAA,QAAA,kBAAA;AACA,OAAA,OAAA,MAAA,qBAAA,C,CACA;;AACA,eAAA;AACA,EAAA,MAAA,EAAA,CAAA;AAAA;AAAA,GADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA,EAAA;AAEA,GALA;AAMA,EAAA,OAAA,EAAA;AACA;AACA,IAAA,WAFA,uBAEA,GAFA,EAEA;AACA,aAAA,KAAA,CAAA,GAAA,CAAA;AACA,KAJA;AAKA;AACA,IAAA,iBANA,6BAMA,GANA,EAMA;AACA,MAAA,GAAA,GAAA,KAAA,MAAA,CAAA,KAAA,CAAA,WAAA,CAAA,MAAA,CAAA,UAAA,IAAA;AAAA,eAAA,IAAA,CAAA,IAAA,KAAA,GAAA,CAAA,IAAA;AAAA,OAAA,EAAA,CAAA,CAAA;;AACA,UAAA,GAAA,EAAA;AACA,aAAA,OAAA,CAAA,IAAA,CAAA;AACA,kBAAA,GAAA,CAAA,IADA;AAEA,sCAAA,GAAA,CAAA,MAAA,CAFA;AAGA,qCAAA,GAAA,CAAA,KAAA;AAHA,SAAA;AAKA;AACA,KAfA;AAgBA;AACA,IAAA,eAjBA,2BAiBA,OAjBA,EAiBA;AACA,UAAA,OAAA,KAAA,MAAA,EAAA;AACA,eAAA,KAAA;AACA;;AACA,WAAA,MAAA,CAAA,KAAA,CAAA,WAAA,GAAA,KAAA,MAAA,CAAA,KAAA,CAAA,WAAA,CAAA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AAA;AAAA,QAAA,IAAA,EAAA;AAAA,OAAA;AACA;AA9CA;AANA,CAAA","sourcesContent":["<template>\n <main :class=\"['aui-content', { 'aui-content--tabs': $route.meta.isTab }]\">\n <!-- tab展示内容 -->\n <template v-if=\"$route.meta.isTab\">\n <el-dropdown class=\"aui-content--tabs-tools\">\n <i class=\"el-icon-arrow-down\"></i>\n <el-dropdown-menu slot=\"dropdown\" :show-timeout=\"0\">\n <el-dropdown-item @click.native=\"tabRemoveHandle($store.state.contentTabsActiveName)\">{{ $t('contentTabs.closeCurrent') }}</el-dropdown-item>\n <el-dropdown-item @click.native=\"tabsCloseOtherHandle()\">{{ $t('contentTabs.closeOther') }}</el-dropdown-item>\n <el-dropdown-item @click.native=\"tabsCloseAllHandle()\">{{ $t('contentTabs.closeAll') }}</el-dropdown-item>\n </el-dropdown-menu>\n </el-dropdown>\n <el-tabs v-model=\"$store.state.contentTabsActiveName\" @tab-click=\"tabSelectedHandle\" @tab-remove=\"tabRemoveHandle\">\n <el-tab-pane\n v-for=\"item in $store.state.contentTabs\"\n :key=\"item.name\"\n :name=\"item.name\"\n :label=\"item.title\"\n :closable=\"item.name !== 'home'\"\n :class=\"{ 'is-iframe': tabIsIframe(item.iframeURL) }\">\n <template v-if=\"item.name === 'home'\">\n <svg slot=\"label\" class=\"icon-svg aui-content--tabs-icon-nav\" aria-hidden=\"true\"><use xlink:href=\"#icon-home\"></use></svg>\n </template>\n <!-- 新加内容区域滚动条 解决全屏滚动 透明背景滚动遮挡问题 yangji 2020-07-03-->\n <el-scrollbar class=\"main-content-scrollbar\">\n <iframe v-if=\"tabIsIframe(item.iframeURL)\" :src=\"item.iframeURL\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"yes\"></iframe>\n <keep-alive v-else>\n <router-view v-if=\"item.name === $store.state.contentTabsActiveName\" />\n </keep-alive>\n </el-scrollbar>\n </el-tab-pane>\n </el-tabs>\n </template>\n <!-- 其他方式, 展示内容 -->\n <template v-else>\n <keep-alive>\n <router-view />\n </keep-alive>\n </template>\n </main>\n</template>\n\n<script>\nimport { isURL } from '@/utils/validate'\nimport visitor from '@/websocket/visitor'\n//import system from '@/websocket/system'\nexport default {\n mixins:[visitor/*,system*/],\n data () {\n return {\n }\n },\n methods: {\n // tabs, 是否通过iframe展示\n tabIsIframe (url) {\n return isURL(url)\n },\n // tabs, 选中tab\n tabSelectedHandle (tab) {\n tab = this.$store.state.contentTabs.filter(item => item.name === tab.name)[0]\n if (tab) {\n this.$router.push({\n 'name': tab.name,\n 'params': { ...tab.params },\n 'query': { ...tab.query }\n })\n }\n },\n // tabs, 删除tab\n tabRemoveHandle (tabName) {\n if (tabName === 'home') {\n return false\n }\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name !== tabName)\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 let tab = this.$store.state.contentTabs[this.$store.state.contentTabs.length - 1]\n this.$router.push({\n name: tab.name,\n params: { ...tab.params },\n query: { ...tab.query }\n })\n }\n },\n // tabs, 关闭其它\n tabsCloseOtherHandle () {\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => {\n return item.name === 'home' || item.name === this.$store.state.contentTabsActiveName\n })\n },\n // tabs, 关闭全部\n tabsCloseAllHandle () {\n this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name === 'home')\n this.$router.push({ name: 'home' })\n }\n }\n}\n</script>\n"],"sourceRoot":"src/views"}]} |