{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\common\\Statement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\common\\Statement.vue","mtime":1675071991194},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.regexp.split\";\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 { mapState, mapActions } from \"vuex\";\nexport default {\n  name: \"statement\",\n  computed: {//  ...mapState({\n    //   menus: function(state) {\n    //     const this_ = this;\n    //     this_.activeMenuIndex = state.menu.currentMenu.id;\n    //     return state.menu.menuMaps[state.menu.currentMenu.id];\n    //   }\n    // }),\n  },\n  data: function data() {\n    return {\n      activeMenuIndex: \"\",\n      href: \"\"\n    };\n  },\n  watch: {\n    menus: {\n      handler: function handler(newVal, oldValue) {\n        if (newVal && newVal != oldValue) {\n          this.init();\n        }\n      },\n      deep: true,\n      immediate: true\n    },\n    '$route': function $route(to, from) {\n      this.hasPadding();\n    }\n  },\n  mounted: function mounted() {},\n  methods: {\n    hasPadding: function hasPadding() {\n      return location.pathname.split('/').slice(0, 5).join('/') === '/fvue/statement/template/preview' || location.pathname.split('/').slice(0, 4).join('/') === '/fvue/statement/draftList';\n    },\n    init: function init() {\n      if (this.menus && this.menus.length > 0) {\n        var activeMenuIndex = this.menus[0].alias ? this.menus[0].alias : this.menus[0].children[0] ? this.menus[0].children[0].alias : null; //判断是否是URL地址菜单\n\n        if (this.menus[0].href) {\n          this.href = this.menus[0].href;\n        } else {\n          this.href = \"\";\n          activeMenuIndex = '/statement/' + activeMenuIndex;\n        }\n\n        this.handleSelect(activeMenuIndex);\n      }\n    },\n    handleSelect: function handleSelect(key) {\n      var this_ = this;\n      setTimeout(function () {\n        var Base64 = require(\"js-base64\").Base64;\n\n        if (this_.href) {\n          //URL地址菜单\n          var href = Base64.encode(this_.href);\n          this_.href = \"\";\n          this_.$router.push({\n            path: key,\n            query: {\n              href: href\n            }\n          });\n        } else {\n          //URL地址菜单\n          if (key.indexOf('?href=') > -1) {\n            var paths = [];\n            key = key.replace('/statement/', '');\n            paths = key.split('?href=');\n\n            var _href = Base64.encode(paths[1]);\n\n            this_.$router.push({\n              path: \"/\" + paths[0],\n              query: {\n                href: _href\n              }\n            });\n          } else {\n            //数据报表菜单\n            this_.$router.push({\n              path: key\n            });\n          }\n        }\n      }, 200);\n    }\n  }\n};",null]}