{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowNodeJumpRule.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowNodeJumpRule.vue","mtime":1675071991803},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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 req from \"@/request.js\";\nimport { mapState, mapActions } from \"vuex\";\nimport { Message } from 'element-ui';\nimport M from 'minimatch';\n\nvar eipScriptDialog = function eipScriptDialog() {\n return import(\"@/components/dialog/EipScriptDialog.vue\");\n};\n\nvar MessageTypeSelector = function MessageTypeSelector() {\n return import(\"@/components/flow/MessageTypeSelector.vue\");\n};\n\nvar FlowVarSelector = function FlowVarSelector() {\n return import(\"@/components/flow/FlowVarSelector.vue\");\n};\n\nvar FlowConditionBuildDialog = function FlowConditionBuildDialog() {\n return import(\"@/components/flow/FlowConditionBuildDialog.vue\");\n};\n\nexport default {\n name: \"FlowNodeJumpRule\",\n components: {\n MessageTypeSelector: MessageTypeSelector,\n eipScriptDialog: eipScriptDialog,\n FlowVarSelector: FlowVarSelector,\n FlowConditionBuildDialog: FlowConditionBuildDialog\n },\n props: {\n //任务节点信息\n node: {\n type: Object,\n required: true\n },\n //流程配置信息\n defConfigData: {\n type: Object,\n required: true\n },\n //跳转规则配置的信息\n nodeDef: {\n type: Object,\n required: true\n },\n //跳转规则配置流程跳转节点\n nodeDefList: {\n type: Array,\n required: true\n }\n },\n data: function data() {\n return {\n titleSetting: \"设置跳转规则\",\n //某个节点跳转规则的标题\n dialogVisibleSetting: false,\n //是否显示设置节点跳转规则侧边栏\n isSave: false,\n //判断是否可以保存\n nodeDefCopy: {},\n //复制一份最开始的跳转规则配置的信息\n filterNodeType: [\"EXCLUSIVEGATEWAY\", \"SUBPROCESS\", \"CALLACTIVITY\", \"PARALLELGATEWAY\", \"INCLUSIVEGATEWAY\", \"SUBSTARTGATEWAY\", \"SUBENDGATEWAY\", \"SUBMULTISTARTGATEWAY\"],\n // 过滤节点 分支\n curRule: {\n \"ruleName\": \"\",\n \"targetNode\": \"\",\n \"condition\": \"\",\n \"isAdd\": true\n } //初始化跳转规则信息\n\n };\n },\n methods: {\n //监听条件脚本确认事件\n conditionDialogConfirm: function conditionDialogConfirm(data) {\n this.curRule.condition = this.curRule.condition + data;\n },\n //显示条件脚本对话框 \n showConditionBuild: function showConditionBuild() {\n this.$refs.flowConditionBuildDialog.showDialog();\n },\n //监督可选变量的返回值\n varTreeOnConfirm: function varTreeOnConfirm(data) {\n this.curRule.condition = this.curRule.condition + data.pathValue;\n },\n //显示常用脚本\n showDialog: function showDialog(action) {\n this.$refs[action].showDialog();\n },\n //设置跳转规则\n editNodeRules: function editNodeRules() {\n this.nodeDefCopy = JSON.parse(JSON.stringify(this.nodeDef)); //复制一份最开始的跳转规则配置的信息\n\n this.isSave = false;\n this.dialogVisibleSetting = true;\n },\n //点击跳转规则列表某一条数据时触发\n orgRowClick: function orgRowClick(row, column, event) {\n if (column.label != \"操作\") {\n this.curRule = row;\n this.isSave = true;\n }\n },\n //保存跳转规则\n saveRule: function saveRule() {\n //判断是否有新增的数据\n if (!this.isSave) {\n Message.warning(\"请先新增跳转规则再保存\");\n return;\n } else {\n var this_ = this;\n req.post(\"${bpmModel}/flow/node/v1/ruleSave?nodeId=\" + this_.node.nodeId + \"&defId=\" + this_.node.defId, this_.nodeDefCopy.jumpRuleList).then(function (response) {\n response = response.data;\n\n if (response.state) {\n Message.success(response.message);\n this_.$emit(\"update:nodeDef\", this_.nodeDefCopy); //子组件更新父组件的值\n\n this_.$emit(\"upRuleData\", this_.nodeDefCopy); //更新规则数据,防止点击其他节点时,当前保存的规则数据未更新显示\n\n this_.dialogVisibleSetting = false;\n } else {\n Message.error(response.message);\n }\n });\n }\n },\n //新增跳转规则\n addRule: function addRule() {\n var this_ = this;\n this_.$validator.validateAll(\"settingSave\").then(function (result) {\n if (result) {\n if (this_.curRule.isAdd) {\n delete this_.curRule.isAdd;\n this_.isSave = true;\n this_.nodeDefCopy.jumpRuleList.push(this_.curRule);\n this_.isSave = true;\n this_.curRule = {\n \"ruleName\": \"\",\n \"targetNode\": \"\",\n \"condition\": \"\",\n \"isAdd\": true\n }; //初始化跳转规则信息\n }\n } else {\n var arr = this_.$validator.errors.items.filter(function (item) {\n return item.scope == \"settingSave\";\n });\n var errorLength = arr.length;\n this_.$message({\n showClose: true,\n message: \"\\u6709\".concat(errorLength, \"\\u4E2A\\u5B57\\u6BB5\\u672A\\u901A\\u8FC7\\u6821\\u9A8C\\uFF0C\\u8BF7\\u6B63\\u786E\\u586B\\u5199\\u8868\\u5355\\u5185\\u5BB9\\u3002\"),\n type: \"warning\"\n });\n }\n });\n },\n //关闭设置节点跳转规则列弹框\n close: function close() {\n this.dialogVisibleSetting = false;\n },\n //删除跳转规则\n deleteSetting: function deleteSetting(list, index) {\n list.splice(index, 1);\n this.isSave = true;\n this.curRule = {\n \"ruleName\": \"\",\n \"targetNode\": \"\",\n \"condition\": \"\",\n \"isAdd\": true\n }; //初始化跳转规则信息\n }\n },\n mounted: function mounted() {\n this.$validator = this.$root.$validator;\n }\n};",null]}