{"remainingRequest":"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\\FlowNodeAttributes.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowNodeAttributes.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//\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//\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//\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\r\nimport req from \"@/request.js\";\r\nimport { mapState, mapActions } from \"vuex\";\r\nimport { Message } from \"element-ui\";\r\nconst FlowNodeHelp = () => import(\"@/components/flow/FlowNodeHelp.vue\");\r\nconst EipMsgTemplateDialog = () => import(\"@/components/dialog/EipMsgTemplateDialog.vue\");\r\nconst EipBoAttrSelector = () => import(\"@/components/selector/EipBoAttrSelector.vue\");\r\nexport default {\r\n  name: \"FlowNodeAttributes\",\r\n  components: {\r\n    FlowNodeHelp,\r\n    EipMsgTemplateDialog,\r\n    EipBoAttrSelector\r\n  },\r\n  props: {\r\n    //任务节点信息\r\n    node: {\r\n      type: Object,\r\n      required: true\r\n    },\r\n    //节点属性批量勾选配置\r\n    nodeAttr: {\r\n      type: Object,\r\n      required: true\r\n    },\r\n    //流程配置信息\r\n    defConfigData: {\r\n      type: Object,\r\n      required: true\r\n    },\r\n    //全局表单bo字段\r\n    boDefJson: {\r\n      type: Array,\r\n      default: {}\r\n    }\r\n\r\n  },\r\n  watch: {\r\n    propertie: {\r\n      handler(newValue, oldValue) {\r\n        let path =\r\n          \"nodeSetData.bpmDefSetting.nodePropertieMap.\" + this.node.nodeId;\r\n        let obj = {};\r\n        obj[path] = newValue;\r\n        //更新vuex里面defConfigData配置数据\r\n        this.$store.dispatch(\"flow/updateConfig\", obj);\r\n      },\r\n      deep: true\r\n    },\r\n    nodePropertieMap: {\r\n      handler(newValue, oldValue) {\r\n        //更新vuex里面defConfigData配置数据\r\n        this.$store.dispatch(\"flow/updateConfig\", {\r\n          \"nodeSetData.bpmDefSetting.nodePropertieMap\": newValue\r\n        });\r\n      },\r\n      deep: true\r\n    },\r\n    nodeAttr: {\r\n      handler(newValue, oldValue) {\r\n        this.propertie.jumpType = newValue.jumpType; //批量勾选跳转类型\r\n        this.propertie.notifyType = newValue.notify; //批量勾选通知类型\r\n        if (newValue.backMode_all != \"\" && this.node.type != \"signTask\") {\r\n          this.propertie.backMode = \"direct\"; //批量勾选驳回后返回\r\n        } else {\r\n          this.propertie.backMode = \"normal\";\r\n        }\r\n        if (newValue.skipExecutorEmpty_all != \"\") {\r\n          this.propertie.skipExecutorEmpty = true; //批量勾选执行人为空时跳过\r\n        } else {\r\n          this.propertie.skipExecutorEmpty = false;\r\n        }\r\n      },\r\n      deep: true\r\n    }\r\n  },\r\n  data() {\r\n    return {\r\n      value: \"\", //帮助内容\r\n      title: \"\", //帮助弹框标题\r\n      approvalArea: [\r\n        // { key: \"approvalOpinion\", value: \"审批意见\" },\r\n        // { key: \"zFile\", value: \"正文\" },\r\n        // { key: \"file\", value: \"附件\" },\r\n        { key: \"processRecord\", value: \"处理记录\" }\r\n        // { key: \"imageBpm\", value: \"流程图\" }\r\n      ], //审批区域显示\r\n      propertie: {\r\n\r\n      }, //单个节点的配置信息\r\n      selectNodeList: [], //可驳回的节点\r\n      nodePropertieMap: {},\r\n      messageVisible: false,\r\n      checked:false\r\n    };\r\n  },\r\n  methods: {\r\n    //监听任务帮助对话框确认事件\r\n    handleHelpSave(data) {\r\n      if (this.title == \"【全局任务节点】帮助提示\") {\r\n        this.nodePropertieMap = JSON.parse(\r\n          JSON.stringify(\r\n            this.defConfigData.nodeSetData.bpmDefSetting.nodePropertieMap\r\n          )\r\n        );\r\n        for (let key in this.nodePropertieMap) {\r\n          this.nodePropertieMap[key].helpGlobal = data; //获取全局任务节点任务帮助提示\r\n        }\r\n      } else {\r\n        this.propertie.help = data; //获取单个任务节点任务帮助提示\r\n      }\r\n    },\r\n    //点击帮助事件\r\n    helpClick(nodeId, val) {\r\n      let Base64 = require(\"js-base64\").Base64;\r\n      let name = \"全局任务节点\";\r\n      if (nodeId != \"\") {\r\n        name = \"单个任务节点\";\r\n      }\r\n      this.title = \"【\" + name + \"】帮助提示\";\r\n      if (val != \"\") {\r\n        this.value = Base64.decode(val, \"utf-8\"); //单个任务节点帮助内容\r\n      } else {\r\n        this.value = Base64.decode(this.propertie.helpGlobal); //全局任务节点帮助内容\r\n      }\r\n      setTimeout(() => {\r\n        this.$refs.flowNodeHelp.showDialog(); //显示帮助富文本框\r\n      });\r\n    },\r\n    //判断前置后置处理器是否存在\r\n    checkHandler(handler) {\r\n      debugger\r\n      if (!handler) return;\r\n      req\r\n        .get(\"${bpmModel}/flow/node/v1/validHandler?handler=\" + handler)\r\n        .then(function(data) {\r\n          data = data.data;\r\n          if (data.result != \"0\") {\r\n            Message.warning(\"接口\" + handler + \"有误，原因：\" + data.msg);\r\n          }\r\n        });\r\n    },\r\n    //设置节点消息通知\r\n    openMessage(){\r\n      this.messageVisible = true;\r\n    },\r\n    handleClose(){\r\n      this.messageVisible = false;\r\n    },\r\n    templateConfirm(data){\r\n      this.$set(this.propertie,\"template\",data);\r\n    },\r\n    handleCommit(){\r\n      this.messageVisible = false;\r\n    }\r\n  },\r\n  mounted() {\r\n    this.propertie = this.defConfigData.nodeSetData.bpmDefSetting.nodePropertieMap[\r\n      this.node.nodeId\r\n    ]; //获取单个节点的配置信息\r\n    //获取可驳回节点\r\n    for (let i = 0; i < this.defConfigData.nodeSetData.nodes.length; i++) {\r\n      if (\r\n        this.defConfigData.nodeSetData.nodes[i].type == \"signTask\" ||\r\n        this.defConfigData.nodeSetData.nodes[i].type == \"userTask\" ||\r\n        this.defConfigData.nodeSetData.nodes[i].type == \"callActivity\"\r\n      ) {\r\n        this.selectNodeList.push(this.defConfigData.nodeSetData.nodes[i]);\r\n      }\r\n    }\r\n  }\r\n};\r\n",null]}