{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/o_action.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/o_action.vue","mtime":1725957645725},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/babel.config.js","mtime":1725957645200},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\nimport form_normalform from \"@/components/form_normalform.vue\";\nexport default {\n name: \"o-action\",\n components: {\n form_normalform: form_normalform\n },\n // inject: [\n // 'calctextJump'\n // ],\n\n props: [\"action-type\", \"formid\", \"formId\", \"viewId\", \"viewid\", \"appId\", \"appid\", \"open-type\", \"data-val\", \"docId\", \"docid\", \"title\", \"url\", \"exparams\", \"isRefresh\", \"dialog-width\", \"dialog-height\"],\n computed: {},\n methods: {\n handleClose: function handleClose(done) {\n done();\n },\n jumpTo: function jumpTo() {\n var formId = this.formId || this.formid;\n var docId = this.docId || this.docid;\n var _ep = this.exparams;\n // debugger\n switch (this.actionType) {\n case \"opendocument\":\n // open_present当前页打开 open_eject弹出层打开 open_tab标签页打开 open_blank新窗口打开\n if (this.openType == \"open-eject\" || this.openType == \"dialog\") {\n var params = {\n linkType: \"00\",\n appId: this.appid,\n actionContent: formId,\n _select: docId,\n type: 277,\n title: this.title\n };\n if (_ep) {\n params.exparams = _ep; //encodeURI(_ep);\n }\n if (this.isRefresh == 'true') {\n params.isRefresh = true;\n }\n var styleParams = {\n dialogWidth: this.dialogWidth,\n dialogHeight: this.dialogHeight\n };\n // this.calctextJump(this.openType, params, 'opendocument')\n this.$parent.calctextJump(this.openType, params, 'opendocument', styleParams);\n } else if (this.openType == \"open-present\") {\n var _params = {\n linkType: \"00\",\n appId: this.appid,\n actionContent: formId,\n _select: docId,\n title: this.title\n };\n if (_ep) {\n _params.exparams = _ep; //encodeURI(_ep);\n }\n if (this.isRefresh == 'true') {\n _params.isRefresh = true;\n }\n this.$parent.calctextJump(this.openType, _params, 'opendocument');\n } else if (this.openType == \"open-blank\") {\n var _params2 = {\n linkType: \"00\",\n appId: this.appid,\n actionContent: formId,\n _select: docId,\n title: this.title\n };\n if (_ep) {\n _params2.exparams = _ep; //encodeURI(_ep);\n }\n if (this.isRefresh == 'true') {\n _params2.isRefresh = true;\n }\n this.$parent.calctextJump(this.openType, _params2, 'opendocument');\n } else {\n //默认用tab方式打开\n var _params3 = {\n linkType: \"00\",\n appId: this.appid,\n actionContent: formId,\n _select: docId,\n title: this.title\n };\n if (_ep) {\n _params3.exparams = _ep; //encodeURI(_ep);\n }\n if (this.isRefresh == 'true') {\n _params3.isRefresh = true;\n }\n this.$parent.calctextJump(this.openType, _params3, 'opendocument');\n }\n break;\n case \"viewselect\":\n break;\n case \"openview\":\n //打开视图\n if (this.openType == \"open-eject\" || this.openType == \"dialog\") {\n var _params4 = {\n linkType: \"01\",\n appId: this.appid,\n actionContent: this.viewid ? this.viewid : this.viewId,\n _select: '',\n title: this.title,\n type: 277\n };\n if (_ep) {\n _params4.exparams = _ep; //encodeURI(_ep);\n }\n var _styleParams = {\n dialogWidth: this.dialogWidth,\n dialogHeight: this.dialogHeight\n };\n this.$parent.calctextJump(this.openType, _params4, \"openview\", _styleParams);\n } else if (this.openType == \"open-present\") {\n var _params5 = {\n linkType: \"01\",\n appId: this.appid,\n actionContent: this.viewid ? this.viewid : this.viewId,\n _select: '',\n title: this.title\n };\n if (_ep) {\n _params5.exparams = _ep; //encodeURI(_ep);\n }\n this.$parent.calctextJump(this.openType, _params5, \"openview\");\n } else if (this.openType == \"open-blank\") {\n var _params6 = {\n linkType: \"01\",\n appId: this.appid,\n actionContent: this.viewid ? this.viewid : this.viewId,\n _select: '',\n title: this.title\n };\n if (_ep) {\n _params6.exparams = _ep; //encodeURI(_ep);\n }\n this.$parent.calctextJump(this.openType, _params6, \"openview\");\n } else {\n //默认用tab方式打开\n var oActionName = this.$el.title ? this.$el.title : this.$el.textContent; //widget类型设置计算脚本值,使用o-action跳转,tab没有name属性,所以tab没有标题\n var _params7 = {\n linkType: \"01\",\n appId: this.appid,\n actionContent: this.viewid ? this.viewid : this.viewId,\n _select: '',\n title: this.title,\n name: oActionName\n };\n if (_ep) {\n _params7.exparams = _ep; //encodeURI(_ep);\n }\n this.$parent.calctextJump(this.openType, _params7, \"openview\");\n }\n break;\n case \"jumpto\":\n //跳转\n if (this.url) {\n var _params8 = {\n linkType: \"103\",\n appId: this.appid,\n actionContent: this.url,\n _select: '',\n title: this.title\n };\n //url如果是连接到报表,是用good的写法,此处先兼容good,\n //后期一定要改成vue的写法,此处参数分别涉及到api.js(getCustomreports)和组件report.vue(getReport)\n if (_params8.actionContent.indexOf(\"report.html\") > -1) {\n var url = _params8.actionContent;\n var urlArrayF = url.split(\"?\");\n var urlArray = '';\n var par = {};\n if (urlArrayF[1]) {\n urlArray = urlArrayF[1].split(\"&\");\n urlArray.forEach(function (el) {\n var arr = el.split(\"=\");\n par[arr[0]] = arr[1];\n });\n }\n if (par.applicationId) {\n _params8.appId = par.applicationId;\n }\n if (par.reportId) {\n _params8.actionContent = par.reportId;\n }\n if (par.orderId) {\n _params8.orderId = par.orderId;\n }\n _params8.linkType = '09';\n }\n if (_ep) {\n _params8.exparams = _ep; //encodeURI(_ep);\n }\n this.$parent.calctextJump(this.openType, _params8, \"jumpto\");\n }\n break;\n }\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n params: ''\n };\n }\n};",null]}