{"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\\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":["//\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'\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",{"version":3,"sources":["main-content.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"main-content.vue","sourceRoot":"src/views","sourcesContent":["\n \n \n \n \n \n \n {{ $t('contentTabs.closeCurrent') }}\n {{ $t('contentTabs.closeOther') }}\n {{ $t('contentTabs.closeAll') }}\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"]}]}