{"remainingRequest":"/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/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":315532800000},{"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":1655715099000}],"contextDependencies":[],"result":["\nimport form_normalform from \"@/components/form_normalform.vue\";\nexport default {\n name: \"o-action\",\n components: {\n form_normalform,\n },\n\n // inject: [\n // 'calctextJump'\n // ],\n\n props: [\n \"action-type\", \n \"formid\",\n \"formId\",\n \"viewId\",\n \"viewid\",\n \"appId\",\n \"appid\",\n \"open-type\",\n \"data-val\",\n \"docId\",\n \"docid\",\n \"title\",\n \"url\",\n \"exparams\",\n \"isRefresh\",\n \"dialog-width\",\n \"dialog-height\"\n ],\n\n computed: {\n \n },\n \n methods: {\n handleClose(done) {\n done();\n },\n jumpTo() {\n let formId = this.formId || this.formid;\n let docId = this.docId || this.docid;\n let _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 let 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 let 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 let 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 let 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 {//默认用tab方式打开\n let 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 }\n break;\n case \"viewselect\":\n break;\n case \"openview\": //打开视图\n if (this.openType == \"open-eject\" || this.openType == \"dialog\") {\n let params = {\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 params.exparams = _ep//encodeURI(_ep);\n }\n let styleParams = {\n dialogWidth: this.dialogWidth,\n dialogHeight: this.dialogHeight\n }\n this.$parent.calctextJump(this.openType, params, \"openview\",styleParams);\n }else if (this.openType == \"open-present\") {\n let params = {\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 params.exparams = _ep//encodeURI(_ep);\n }\n this.$parent.calctextJump(this.openType, params, \"openview\");\n }else if (this.openType == \"open-blank\"){\n let params = {\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 params.exparams = _ep//encodeURI(_ep);\n }\n this.$parent.calctextJump(this.openType, params, \"openview\");\n }else {//默认用tab方式打开\n let oActionName = this.$el.title ? this.$el.title : this.$el.textContent; //widget类型设置计算脚本值,使用o-action跳转,tab没有name属性,所以tab没有标题\n let params = {\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 params.exparams = _ep//encodeURI(_ep);\n }\n this.$parent.calctextJump(this.openType, params, \"openview\");\n }\n break;\n case \"jumpto\": //跳转\n if(this.url){\n let params = {\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(params.actionContent.indexOf(\"report.html\") > -1) {\n let url = params.actionContent\n let urlArrayF = url.split(\"?\")\n let urlArray = ''\n let par = {}\n if(urlArrayF[1]) {\n urlArray = urlArrayF[1].split(\"&\");\n urlArray.forEach(el => {\n let arr = el.split(\"=\")\n par[arr[0]] = arr[1]\n });\n }\n if(par.applicationId) {\n params.appId = par.applicationId\n }\n if(par.reportId) {\n params.actionContent = par.reportId\n }\n if(par.orderId){\n params.orderId = par.orderId;\n }\n params.linkType = '09' \n }\n if(_ep) {\n params.exparams = _ep//encodeURI(_ep);\n }\n this.$parent.calctextJump(this.openType, params, \"jumpto\");\n }\n break;\n }\n }\n },\n data: function() {\n return { \n dialogVisible:false,\n params:'',\n };\n }\n};\n",null]}