{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\common\\TabsComponent.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\common\\TabsComponent.vue","mtime":1675214576620},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\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 \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\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; }\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 { mapGetters } from 'vuex';\nimport utils from '@/hotent-ui-util.js';\nimport menuApi from '@/api/menu.js';\n\n// 懒加载组件 只加载当前页面用到的组件\n// 个人设置\n\n// const secretary = () => import('@/biz/views/personal/Secretary/SecretaryList.vue');\n// // 任务中心\n// const vTodo = () => import(\"@/biz/views/flow/todo.vue\");\n// const vDone = () => import(\"@/biz/views/flow/done.vue\");\n// const vRequest = () => import(\"@/biz/views/flow/myRequest.vue\");\n// const vFlowList = () => import(\"@/biz/views/flow/flowList.vue\");\n// const vTodoRead = () => import(\"@/biz/views/flow/todoRead.vue\");\n// const vDoneRead =() => import(\"@/biz/views/flow/doneRead.vue\");\n// const vMyRead = () => import(\"@/biz/views/flow/myRead.vue\");\n// const vMyDelegate = () => import(\"@/biz/views/flow/myDelegate.vue\");\n//养护管理路由\nimport moduleRouter from '@/module_components.js';\n//元件管理\nexport default {\n  name: 'front-tabs-component',\n  components: _objectSpread({}, moduleRouter),\n  props: {},\n  computed: _objectSpread(_objectSpread({}, mapGetters({\n    tabsStyle: 'styleSetting/tabsStyle'\n  })), {}, {\n    finalTabsStyle: function finalTabsStyle() {\n      // 使用菜单的配置\n      if ((this.tabsStyle.tabType == 'menuSetting' || this.tabsStyle.tabType == null) && this.menuTabsStyle) {\n        return this.menuTabsStyle;\n      }\n\n      // 使用默认的\n      if (this.tabsStyle.tabType == null || (this.tabsStyle.tabType == 'menuSetting' || this.tabsStyle.tabType == null) && !this.menuTabsStyle) {\n        return {\n          tabType: ''\n        };\n      }\n      // 使用全局的配置\n      return this.tabsStyle;\n    }\n  }),\n  data: function data() {\n    return {\n      tabComponentOptions: [],\n      currentTabComponent: '',\n      menuTabsStyle: null\n    };\n  },\n  methods: {\n    handlePaneClick: function handlePaneClick(data) {\n      if (data.alias) {\n        this.currentTabComponent = data.alias;\n      }\n    },\n    genHref: function genHref(anchor) {\n      if (this.$router.mode == 'history') {\n        return '#' + anchor;\n      }\n      return '/#' + this.$route.path + '#' + anchor;\n    },\n    activeTab: function activeTab(fullpath) {\n      var _this = this;\n      var lastIdx = fullpath.lastIndexOf('#');\n      if (lastIdx != -1) {\n        var urlAnchor = fullpath.substr(lastIdx + 1);\n        this.tabComponentOptions.filter(function (item) {\n          if (item.alias == urlAnchor) {\n            _this.currentTabComponent = urlAnchor;\n          }\n        });\n      }\n    }\n  },\n  mounted: function mounted() {},\n  beforeRouteEnter: function beforeRouteEnter(to, from, next) {\n    next(function (vm) {\n      // 通过 `vm` 访问组件实例\n      var routePath = vm.$route.path;\n      var activePlat;\n      if (routePath) {\n        var i = routePath.lastIndexOf('/');\n        routePath = routePath.slice(i + 1);\n        if (vm.$route.path.indexOf('frontPlat') !== -1) {\n          activePlat = 'getFrontMenuByAlias';\n        } else {\n          activePlat = 'getMenuByAlias';\n        }\n      }\n      menuApi[activePlat](routePath, function (m) {\n        if (m) {\n          vm.$emit('menuChange', m);\n          if (m.children && m.children.length > 0) {\n            vm.tabComponentOptions = m.children;\n            vm.currentTabComponent = m.activeTab || vm.tabComponentOptions[0].alias;\n            vm.activeTab(to.fullPath);\n          } else {\n            vm.tabComponentOptions = [];\n            vm.currentTabComponent = m.alias;\n          }\n          if (m.tabsStyle) {\n            vm.menuTabsStyle = utils.parseToJson(m.tabsStyle);\n          } else {\n            vm.menuTabsStyle = null;\n          }\n        } else {\n          // 没有菜单的路由跳转   需要显示TAb名称需要定义tobName参数传递过来\n          vm.tabComponentOptions = [];\n          vm.currentTabComponent = to.name;\n          vm.$emit('menuChange', {\n            name: to.params.tobName ? to.params.tobName : to.meta.menuLabel\n          });\n        }\n      });\n    });\n  },\n  beforeRouteUpdate: function beforeRouteUpdate(to, from, next) {\n    // 在当前路由改变，但是该组件被复用时调用\n    // 举例来说，对于一个带有动态参数的路径 /foo/:id，在 /foo/1 和 /foo/2 之间跳转的时候，\n    // 由于会渲染同样的 Foo 组件，因此组件实例会被复用。而这个钩子就会在这个情况下被调用。\n    // 可以访问组件实例 `this`\n    this.activeTab(to.fullPath);\n    next();\n  }\n};",null]}