{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/activity.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/activity.vue","mtime":1739760944312},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["// import { constants } from 'crypto';\nexport default {\n props: [\"info\", \"isBlockClick\"],\n data: function data() {\n return {\n path: window.location.origin + '/obpm/uploads/lib/icon',\n isShowBtn: true //是否显示按钮\n };\n },\n computed: {\n activeColor: function activeColor() {\n var data = {\n bg: '',\n //背景色\n btnIcon: '',\n //图标\n bd: '' //边框颜色\n };\n var currentColor = '';\n if (this.info.colorType) {\n // warning success danger primary info default 为视图按钮的颜色\n if (this.info.colorType == 'warning') {\n currentColor = \"#ec971f\";\n } else if (this.info.colorType == \"success\") {\n currentColor = \"#449d44\";\n } else if (this.info.colorType == \"danger\") {\n currentColor = \"#d9534e\";\n } else if (this.info.colorType == \"primary\") {\n currentColor = \"#337ab7\";\n } else if (this.info.colorType == \"info\") {\n currentColor = \"#5bc0de\";\n } else if (this.info.colorType == \"default\") {\n currentColor = \"\";\n } else {\n currentColor = this.info.colorType;\n }\n }\n switch (this.info.type) {\n case 1:\n //载入视图\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 2:\n //创建\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'createBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 3:\n //删除\n data = {\n bg: currentColor ? currentColor : '#d9534f',\n btnIcon: 'deleteBtnicon',\n bd: currentColor ? currentColor : '#d9534f'\n };\n return data;\n case 4:\n //保存并启动流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 5:\n //流程处理\n data = {\n bg: currentColor ? currentColor : 'linear-gradient(90deg, #40D0FF 0%, #409EFF 100%)',\n btnIcon: 'submitflowicon'\n // bd: currentColor?currentColor:'#337ab7',\n };\n return data;\n case 8:\n //关闭窗口\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 10:\n //返回\n data = {\n bg: currentColor ? currentColor : '#fff',\n btnIcon: 'backBtnicon',\n bd: currentColor ? currentColor : '#ccc',\n fc: '#000'\n };\n return data;\n case 11:\n //保存并返回\n // data = {\n // bg: currentColor?currentColor:'#337ab7',\n // btnIcon: 'queryBtnicon',\n // bd: currentColor?currentColor:'#337ab7',\n // };\n data = {\n bg: currentColor ? currentColor : 'linear-gradient(90deg, #40D0FF 0%, #409EFF 100%)',\n btnIcon: 'submitflowicon'\n };\n return data;\n case 13:\n //无\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#5bc0de'\n };\n return data;\n case 14:\n //网页打印(表单)\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#5bc0de'\n };\n return data;\n case 15:\n //网页打印含历史\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 16:\n //导出excel\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'exportToExcelBtnicon',\n bd: currentColor ? currentColor : '#5bc0de'\n };\n return data;\n case 19:\n //保存草稿不校检\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 18:\n //清空所有数据\n data = {\n bg: currentColor ? currentColor : '#d9534f',\n btnIcon: 'clearAllBtnicon',\n bd: currentColor ? currentColor : '#d9534f'\n };\n return data;\n case 20:\n //批量提交\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'batchApproveBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 21:\n //保存并复制\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 25:\n //PDF导出\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 26:\n //文件下载\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'fileDownloadBtnicon',\n bd: currentColor ? currentColor : '#5bc0de'\n };\n return data;\n case 27:\n //导入excel\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'excelImportBtnicon',\n bd: currentColor ? currentColor : '#5bc0de'\n };\n return data;\n case 28:\n //电子签章\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 29:\n //批量签章\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'batchSignatureBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 30:\n //自定义打印\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#5bc0de'\n };\n return data;\n case 33:\n //流程启动\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 34:\n //保存\n data = {\n bg: currentColor ? currentColor : 'linear-gradient(90deg, #7AD34F 0%, #67C23A 100%)',\n btnIcon: 'saveBtnicon'\n // bd: currentColor?currentColor:'#5cb85c'\n };\n return data;\n case 36:\n //网页打印(视图)\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'printViewBtnicon',\n bd: currentColor ? currentColor : '#5bc0de'\n };\n return data;\n case 37:\n //邮件短信分享\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 42:\n //保存并新建\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 43:\n //跳转\n data = {\n bg: currentColor ? currentColor : '#f0ad4e',\n btnIcon: 'jumpToBtnicon',\n bd: currentColor ? currentColor : '#f0ad4e'\n };\n return data;\n case 45:\n //归档\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 46:\n //签章\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 47:\n //回退流程\n data = {\n bg: currentColor ? currentColor : '#ec971f',\n btnIcon: 'regressesflowicon',\n bd: currentColor ? currentColor : '#ec971f'\n };\n return data;\n case 48:\n //催办流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 49:\n //挂起流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 50:\n //恢复流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 51:\n //回撤流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 52:\n //终止流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 53:\n //编辑流程审批人\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 54:\n //调整流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 55:\n //点评\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 56:\n //补签\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7'\n };\n return data;\n case 57: //加签主办\n case 58:\n //加签协办\n data = {\n bg: currentColor ? currentColor : '#31b0d5',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#31b0d5'\n };\n return data;\n case 0:\n //流程处理在流程的表单权限里设置了隐藏,type返回0\n this.isShowBtn = false;\n default:\n break;\n }\n return '';\n }\n },\n methods: {\n onClick: function onClick(val) {\n if (val) {\n return;\n }\n this.onAction(this.info);\n },\n onAction: function onAction(act) {\n var activityType = act.type;\n if (this.isBlockClick) return; // 按钮事件执行前,未请求前防止重复点击--form_normalform.vue--runBeforeAction()\n switch (act.type) {\n case 1:\n //载入视图\n this.$emit(\"action\", act);\n break;\n case 2:\n //创建\n this.$emit(\"action\", act);\n break;\n case 3:\n //删除\n this.$emit(\"action\", act);\n break;\n case 4:\n //保存并启动流程\n act.flowType = '1';\n this.$emit(\"action\", act);\n break;\n case 5:\n //流程处理\n this.$store.commit('searchFlag', 2); //高级查询返回记住状态\n act.flowType = '80';\n this.$parent.flowHandle(act);\n break;\n case 8:\n //关闭窗口\n this.$parent.runBeforeAction(this.info.id, '', '', activityType);\n break;\n case 10:\n //返回\n this.$store.commit('searchFlag', 2); //高级查询返回记住状态\n this.$emit(\"action\", act);\n break;\n case 11:\n //保存并返回\n this.$store.commit('searchFlag', 2); //高级查询返回记住状态\n this.$emit(\"action\", act);\n // this.$parent.runBeforeAction(act.id, '', '', activityType);\n break;\n case 13:\n //无\n this.$emit(\"action\", act);\n break;\n case 14:\n //网页打印(表单)\n // this.$parent.runBeforeAction(act.id, '', '', activityType, );\n this.$emit(\"action\", act);\n break;\n case 15:\n //网页打印含历史\n this.$parent.runBeforeAction(act.id, '', '', activityType);\n break;\n case 16:\n //导出excel\n this.$emit(\"action\", act);\n break;\n case 19:\n //保存草稿不校检\n this.$parent.runBeforeAction(act.id, '', '', activityType, '', act);\n break;\n case 18:\n //清空所有数据\n this.$emit(\"action\", act);\n break;\n case 20:\n //批量提交\n act.flowType = '80';\n this.$emit(\"action\", act);\n break;\n case 21:\n //保存并复制\n // this.$parent.runBeforeAction(act.id, '', '', activityType); \n this.$emit(\"action\", act);\n break;\n case 25:\n //PDF导出\n // this.$parent.runBeforeAction(act.id, '', '', activityType);\n this.$emit(\"action\", act);\n break;\n case 26:\n //文件下载\n this.$emit(\"action\", act);\n break;\n case 27:\n //导入excel\n this.$emit(\"action\", act);\n break;\n case 28:\n //电子签章\n this.$emit(\"action\", act);\n break;\n case 29:\n //批量签章\n this.$emit(\"action\", act);\n break;\n case 30:\n //自定义打印\n this.$emit(\"action\", act);\n break;\n case 33:\n //流程启动\n act.flowType = '1';\n this.$emit(\"action\", act);\n break;\n case 34:\n //保存\n // this.$parent.runBeforeAction(act.id, '', '', activityType);\n this.$emit(\"action\", act);\n break;\n case 36:\n //网页\n this.$emit(\"action\", act);\n break;\n case 37:\n //邮件短信分享\n this.$emit(\"action\", act);\n break;\n case 42:\n //保存并新建\n this.$emit(\"action\", act);\n //this.$parent.runBeforeAction(act.id, '', '', activityType);\n break;\n case 43:\n //跳转\n this.$emit(\"action\", act);\n break;\n case 45:\n //归档\n this.$parent.runBeforeAction(act.id, '', '', activityType);\n break;\n case 46:\n //签章\n this.$emit(\"action\", act);\n break;\n case 47:\n //回退流程\n this.$parent.flowHandle(act);\n break;\n case 48:\n //催办流程\n this.$emit(\"action\", act);\n break;\n case 49:\n //挂起流程\n act.flowType = '88';\n this.$emit(\"action\", act);\n break;\n case 50:\n //恢复流程\n act.flowType = '89';\n this.$emit(\"action\", act);\n break;\n case 51:\n //回撤流程\n act.flowType = '85';\n this.$emit(\"action\", act);\n break;\n case 52:\n //终止流程\n act.flowType = '8';\n this.$emit(\"action\", act);\n break;\n case 53:\n //编辑流程审批人\n this.$emit(\"action\", act);\n break;\n case 54:\n //调整流程\n break;\n case 55:\n //点评\n this.$emit(\"action\", act);\n break;\n case 56:\n //补签\n this.$emit(\"action\", act);\n break;\n case 57:\n //加签主办\n this.$emit(\"action\", act);\n break;\n case 58:\n //加签协办\n this.$emit(\"action\", act);\n break;\n default:\n break;\n }\n }\n }\n};",null]}