{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\flow\\task\\taskFollow.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\flow\\task\\taskFollow.vue","mtime":1675214577089},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\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//\nimport { mapState, mapActions } from \"vuex\";\nimport { Message } from \"element-ui\";\nexport default {\n  name: \"taskFollow\",\n  props: [\"instId\", \"defId\"],\n  components: {},\n  data: function data() {\n    return {\n      followDialog: false,\n      proInst: this.instId\n    };\n  },\n  computed: {\n    nodes: {\n      get: function get() {\n        return this.$store.state.storeProcess.nodes;\n      },\n      set: function set() {}\n    },\n    checkedNodes: {\n      get: function get() {\n        return this.$store.state.storeProcess.checkedNodes;\n      },\n      set: function set() {}\n    }\n  },\n  methods: {\n    //选择跟踪的任务节点\n    selectOne: function selectOne(value) {\n      if (this.checkedNodes.indexOf(value) > -1) {\n        for (var i = 0; i < this.checkedNodes.length; i++) {\n          if (this.checkedNodes[i] == value) {\n            this.$store.dispatch(\"storeProcess/setCheckedSplice\", i);\n            return;\n          }\n        }\n      } else {\n        this.$store.dispatch(\"storeProcess/setCheckedPush\", value);\n      }\n    },\n    //鼠标点击页面其他其他位置不关闭弹框\n    handleClose: function handleClose(done) {\n      this.followDialog = true;\n    },\n    //打开跟踪设置弹出框并查询可跟踪的任务节点\n    handleOpen: function handleOpen() {\n      this.followDialog = true;\n      var data = {\n        \"defId\": this.defId,\n        \"proInst\": this.instId\n      };\n      this.$store.dispatch(\"storeProcess/taskNode\", data);\n    },\n    //取消\n    cancel: function cancel() {\n      this.followDialog = false;\n    },\n    //确认\n    confirm: function confirm() {\n      var _this = this;\n\n      var data = {\n        \"taskId\": \"\"\n      };\n\n      if (this.checkedNodes.length == 0) {\n        Message.warning(\"请选择跟踪节点\");\n        return;\n      }\n\n      for (var i = 0; i < this.checkedNodes.length; i++) {\n        data.taskId = data.taskId + this.checkedNodes[i] + \",\";\n      }\n\n      data.proInst = this.instId; //新增,更新任务跟踪表数据\n\n      this.$store.dispatch(\"storeProcess/taskFollowSave\", data).then(function () {\n        _this.followDialog = false; //父组件调用子组件方法\n      });\n    }\n  }\n};",null]}