{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/CommonTool/CommonTool.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/CommonTool/CommonTool.vue","mtime":1701674859499},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js","mtime":1701674874357},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js","mtime":1701674874903}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n name: 'commontool',\n data(){\n return{\n data: [],\n isMode:false,\n }\n },\n created(){\n if(JSON.parse(sessionStorage.getItem('software')).type == 1){\n this.isMode=true;\n }\n },\n mounted(){\n },\n computed:{\n activeName:{\n get(){\n let tabName = this.$store.state.tabName\n switch(tabName){\n case \"statuslabel\":\n tabName = \"statuslabellist\";\n break;\n case \"task\":\n tabName = \"tasklist\";\n break;\n case \"roles\":\n tabName = \"roleslist\";\n break;\n }\n return tabName\n },\n set(val){\n return val;\n }\n }\n },\n methods:{\n /**\n * 当前选中的页签\n */\n handleClick(tab){\n if(tab.name == \"roleslist\"){\n this.$store.dispatch(\"rightHelpPageParams\", { title:this.$t('widget.role_list') , url: \"application/application_info_generalTools_role_list_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/commontool/roleslist', query:{ edit: true}});\n this.$store.commit('changeIsClickPrimaryTab','roleslist' + new Date().getTime());\n }\n else if(tab.name == \"statuslabellist\"){\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t('stateLabel.title_list'), url: \"application/application_info_generalTools_stateLabel_list_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/commontool/statuslabellist', query:{ edit: true}});\n this.$store.commit('changeIsClickPrimaryTab','statuslabellist'+ new Date().getTime());\n }\n else if(tab.name == \"tasklist\"){\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t('stateLabel.task_list'), url: \"application/application_module_task_list_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/commontool/tasklist', query:{ edit: true}});\n this.$store.commit('changeIsClickPrimaryTab','tasklist'+ new Date().getTime());\n\n }else if(tab.name == \"widgetlist\"){\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t('stateLabel.not'), url: \"application/application_module_info_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/commontool/widgetlist', query:{ edit: true}});\n this.$store.commit('changeIsClickPrimaryTab','widgetlist'+ new Date().getTime());\n\n }else if(tab.name == \"pcMenu\"){\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t('menu.menu_list'), url: \"application/application_info_generalTools_menu_list_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/commontool/pcmenu', query:{ edit: true}});\n this.$store.commit('changeIsClickPrimaryTab','pcMenu'+ new Date().getTime());\n\n }else if(tab.name == \"mobileMenu\"){\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t('menu.menu_list'), url: \"application/application_info_generalTools_menu_list_help.html\" });\n this.$router.push({path: '/home/softwaresdetails/commontool/mobilemenu', query:{ edit: true}});\n this.$store.commit('changeIsClickPrimaryTab','mobileMenu' + new Date().getTime());\n\n }\n },\n\n // 将要离开面板的钩子函数\n beforeLeave (activeName) {\n if(activeName == 'pcMenu' || activeName == 'mobile'){\n this.$store.dispatch('selectTreeNode', [])\n }\n },\n },\n watch: {\n \"$store.state.rightHelpPageParams\": {\n handler() {\n if (this.$store.state.rightHelpFrame) {\n this.$store.state.rightHelpFrame.contentWindow.showHelpContentHtml(this.$store.state.rightHelpPageParams.title, this.$store.state.rightHelpPageParams.url);\n }\n },\n deep: true,\n },\n },\n}\n",null]}