{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\appCenter\\AppMain.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\appCenter\\AppMain.vue","mtime":1667327528887},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.string.starts-with\";\nimport \"core-js/modules/es6.function.name\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\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 req from '@/request.js';\nimport flow from '@/api/flow.js';\nexport default {\n name: 'app-main',\n props: {\n apps: Array,\n pageResult: Object\n },\n data: function data() {\n return {\n dialogVisible: false,\n appParamList: [],\n visibleTag: [],\n appRightMap: {},\n closingWait: false\n };\n },\n methods: {\n //点击应用\n click: function () {\n var _click = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(app) {\n var url, prefix, content, _content, _content2, _content3, _content4, _content5, resp;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n //1常规应用 2数据报表 3自定义视图 4图表 6表单 7模块 8启动流程\n url = '';\n prefix = window.context.front;\n\n if (!(app.type == 4)) {\n _context.next = 7;\n break;\n }\n\n content = JSON.parse(app.content);\n url = \"/appContent/\".concat(app.type, \"/\").concat(content.id, \"/0/\").concat(app.name);\n _context.next = 45;\n break;\n\n case 7:\n if (!(app.type === 2)) {\n _context.next = 12;\n break;\n }\n\n _content = JSON.parse(app.content);\n url = \"/appContent/\".concat(app.type, \"/\").concat(_content.key, \"/0/\").concat(app.name);\n _context.next = 45;\n break;\n\n case 12:\n if (!(app.type === 3)) {\n _context.next = 17;\n break;\n }\n\n _content2 = JSON.parse(app.content);\n url = \"/appContent/\".concat(app.type, \"/\").concat(_content2.alias, \"/\").concat(_content2.sqlAlias, \"/\").concat(app.name);\n _context.next = 45;\n break;\n\n case 17:\n if (!(app.type === 1)) {\n _context.next = 21;\n break;\n }\n\n url = \"/appContent/\".concat(app.type, \"/\").concat(app.id, \"/0/\").concat(app.name);\n _context.next = 45;\n break;\n\n case 21:\n if (!(app.type === 6)) {\n _context.next = 26;\n break;\n }\n\n _content3 = JSON.parse(app.content);\n url = \"/appContent/\".concat(app.type, \"/\").concat(_content3.id, \"/0/\").concat(app.name);\n _context.next = 45;\n break;\n\n case 26:\n if (!(app.type === 7)) {\n _context.next = 31;\n break;\n }\n\n _content4 = JSON.parse(app.content);\n url = \"/appContent/\".concat(app.type, \"/\").concat(_content4.id, \"/0/\").concat(app.name);\n _context.next = 45;\n break;\n\n case 31:\n if (!(app.type === 8)) {\n _context.next = 44;\n break;\n }\n\n _content5 = JSON.parse(app.content);\n resp = {};\n\n if (!_content5.key) {\n _context.next = 41;\n break;\n }\n\n _context.next = 37;\n return flow.getMainByDefKey(_content5.key);\n\n case 37:\n resp = _context.sent;\n url = \"/agentStart/\".concat(resp.data.id, \"/0\");\n _context.next = 42;\n break;\n\n case 41:\n url = \"/agentStart/\".concat(_content5.id, \"/0\");\n\n case 42:\n _context.next = 45;\n break;\n\n case 44:\n if (app.type === 5) {\n url = app.content;\n\n if (url.startsWith('http')) {\n prefix = '';\n }\n }\n\n case 45:\n if (url) //window.open(prefix+url,new Date().getTime(),'height='+(screen.availHeight-50)+',width='+(screen.availWidth-10)+',top=0,left=0,toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no',false);\n window.open(prefix + url, '_blank');\n\n case 46:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n function click(_x) {\n return _click.apply(this, arguments);\n }\n\n return click;\n }(),\n appDescClick: function appDescClick(appId) {\n var _this = this;\n\n req.get(window.context.portal + '/portalAppParam/v1/getByAppId?appId=' + appId).then(function (resp) {\n _this.appParamList = resp.data.value;\n _this.dialogVisible = true;\n });\n },\n mouseEnter: function mouseEnter(index) {\n var this_ = this;\n var appId = this.apps[index].id;\n var timeWait = 0;\n\n if (this_.appRightMap.hasOwnProperty(appId)) {\n if (this_.appRightMap[appId]) {\n if (this_.closingWait) {\n timeWait = 200;\n }\n\n setTimeout(function () {\n this_.visibleTag[index] = true;\n this_.$forceUpdate();\n }, timeWait);\n }\n\n return;\n }\n\n req.get(window.context.portal + '/portalAppParam/v1/isAppHasDesc?appId=' + appId).then(function (resp) {\n if (resp.data.state) {\n this_.appRightMap[appId] = resp.data.value;\n\n if (resp.data.value) {\n if (this_.closingWait) {\n timeWait = 200;\n }\n\n setTimeout(function () {\n this_.visibleTag[index] = true;\n this_.$forceUpdate();\n }, timeWait);\n }\n }\n });\n },\n mouseLeave: function mouseLeave(index) {\n var _this2 = this;\n\n this.closingWait = true;\n setTimeout(function () {\n _this2.visibleTag[index] = false;\n _this2.closingWait = true;\n\n _this2.$forceUpdate();\n }, 200);\n },\n beforeClose: function beforeClose() {\n this.appParamList = [];\n this.dialogVisible = false;\n },\n //附件下载\n downloadFile: function downloadFile(fileId) {\n //\"${portal}/system/file/v1/downloadFile?fileId=\" + this.fileRow.id\n req.download('${portal}/system/file/v1/downloadFile?fileId=' + fileId);\n }\n }\n};",null]}