{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js??ref--0-0!/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/views/Home.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/views/Home.vue","mtime":1701674859505},{"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/thread-loader/dist/cjs.js","mtime":1701674873947},{"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":["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.regexp.replace\";\nimport _defineProperty from \"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator\";\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(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { getSuperuser as _getSuperuser, logOut, getDebugurl, getDebugurlByWar } from \"@/service/CommonApi.js\";\nimport { setCookie, getCookie } from \"../utils/utils\";\nimport { delMsg } from '@/utils/elementui';\nexport default {\n name: \"home\",\n data: function data() {\n return {\n drawer: false,\n user: {},\n userName: \"\",\n breadcrumb: \"\",\n debugUrl: \"\" //调试链接\n\n };\n },\n created: function created() {\n this.getDebugUrl();\n },\n mounted: function mounted() {\n var _this = this;\n\n window[\"closeRightHelpPage\"] = function () {\n _this.drawer = false;\n };\n\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: this.$t('home.soft_info'),\n url: \"application/application_info_help.html\"\n });\n this.getSuperuser();\n },\n methods: {\n toHomePage: function toHomePage() {\n alert();\n },\n //获取调试链接\n getDebugUrl: function () {\n var _getDebugUrl = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.debugUrl = \"../../static/macro/debug.html\";\n\n case 1:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getDebugUrl() {\n return _getDebugUrl.apply(this, arguments);\n }\n\n return getDebugUrl;\n }(),\n\n /**\n * **获取特权用户信息**\n */\n getSuperuser: function getSuperuser() {\n var _this2 = this;\n\n _getSuperuser({\n onSucess: function onSucess(response) {\n if (response.data.errcode == 0) {\n _this2.user = response.data.data;\n _this2.userName = response.data.data.name;\n }\n }\n });\n },\n\n /**\n * 修改特权用户信息\n */\n editSuperuser: function editSuperuser(data) {\n var user = _objectSpread(_objectSpread({}, this.user), {}, {\n id: data.id,\n loginno: data.loginno,\n loginpwd: data.loginpwd,\n name: data.name,\n email: data.email\n });\n\n this.user = user;\n },\n\n /**\n * 显示帮助\n */\n openRightHelpFrame: function openRightHelpFrame() {\n var _this3 = this;\n\n this.drawer = true;\n this.$nextTick(function () {\n _this3.$refs.helpNestedFrame.onload = function () {\n // 第一次加载设置title\n _this3.$refs.helpNestedFrame.contentWindow.document.title = _this3.$store.state.rightHelpPageParams.title + \"&\" + _this3.$store.state.rightHelpPageParams.url; // 将方法保存到vuex中另外调用\n\n _this3.$store.dispatch(\"loadRightHelpFrame\", _this3.$refs.helpNestedFrame);\n };\n }); // 除第一次加载外设置title\n\n if (this.$refs.helpNestedFrame) {\n // 需要判断点击的是表单控件还是页面\n if (window.top.rightHelpFrameObj) {\n this.$refs.helpNestedFrame.contentWindow.document.title = this.$store.state.rightHelpPageParams.title + \"&\" + this.$store.state.rightHelpPageParams.url;\n } else {\n this.$refs.helpNestedFrame.contentWindow.document.title = this.$store.state.rightHelpPageParams.title + \"&\" + this.$store.state.rightHelpPageParams.url;\n }\n }\n },\n\n /**\n * 关闭帮助\n */\n handleClose: function handleClose(done) {\n done();\n },\n\n /**\n * 注销登录\n */\n loginout: function () {\n var _loginout = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var response;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.prev = 0;\n _context2.next = 3;\n return delMsg(this.$t('msg.logout'), this.$t('msg.tip'));\n\n case 3:\n _context2.next = 5;\n return logOut();\n\n case 5:\n response = _context2.sent;\n\n if (response.data.errcode == 0) {\n this.$router.replace(\"/login\");\n this.$message.success(this.$t('msg.logOut_ss')); // 发送请求重置数据\n\n this.$store.dispatch(\"resetUserInfo\"); // 重新设置为中文\n\n setCookie('designerLanguage', 'zh', 1);\n this.$i18n.locale = getCookie('designerLanguage');\n }\n\n _context2.next = 12;\n break;\n\n case 9:\n _context2.prev = 9;\n _context2.t0 = _context2[\"catch\"](0);\n console.log(_context2.t0);\n\n case 12:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[0, 9]]);\n }));\n\n function loginout() {\n return _loginout.apply(this, arguments);\n }\n\n return loginout;\n }(),\n\n /**\n * 跳转到特权用户信息\n */\n editLink: function editLink() {\n this.$router.push({\n path: \"/home/userinfo\"\n });\n },\n toLink: function toLink(item) {\n this.breadcrumb = item.name;\n var params = {\n appId: item.id,\n appName: item.name,\n type: item.type\n };\n sessionStorage.setItem(\"appId\", item.id);\n sessionStorage.setItem(\"appName\", item.name);\n this.$store.dispatch(\"landingUser\", {\n params: params\n });\n this.$router.push({\n path: \"/home/softwaresdetails\",\n query: {\n appId: item.id,\n appName: item.name\n }\n });\n },\n\n /**\n * 跳转到软件列表\n */\n\n /**\n * 新建软件\n */\n createSoftware: function createSoftware(id) {\n this.$router.push({\n path: \"/home/baseicinformation\",\n query: {\n params: JSON.stringify({\n type: id,\n edit: false\n })\n }\n });\n },\n\n /**\n * 清空面包屑\n */\n clearBreadcrumb: function clearBreadcrumb() {\n this.breadcrumb = \"\";\n },\n\n /**\n * 获取软件名称\n */\n breadcrumbName: function breadcrumbName(val) {\n this.breadcrumb = val;\n }\n },\n watch: {\n \"$store.state.rightHelpFrame\": function $storeStateRightHelpFrame() {\n // 将加载出来的iframe传给嵌套页面\n window.top.rightHelpFrame = this.$store.state.rightHelpFrame; // 嵌套页面中存储的iframe\n\n if (window.top.rightHelpFrameObj) {\n this.$refs.helpNestedFrame.contentWindow.document.title = window.top.rightHelpFrameObj.title + \"&\" + window.top.rightHelpFrameObj.url;\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: window.top.rightHelpFrameObj.title,\n url: window.top.rightHelpFrameObj.url\n });\n }\n\n this.$store.state.rightHelpFrame.contentWindow.showHelpContentHtml(this.$store.state.rightHelpPageParams.title, this.$store.state.rightHelpPageParams.url);\n }\n }\n};",null]}