{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\imageBpm.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\imageBpm.vue","mtime":1667327529403},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 SubTaskImage from \"@/components/flow/task/subTaskImage.vue\";\nexport default {\n  name: \"imageBpm\",\n  props: [\"instId\", \"defId\"],\n  components: {\n    SubTaskImage: SubTaskImage\n  },\n  data: function data() {\n    return {\n      proInst: this.instId,\n      widthImg: \"\",\n      heightImg: \"\",\n      backGroundImg: \"\",\n      positionImg: \"relative\",\n      listLayout: \"\",\n      nodeOpinions: [],\n      bpmnInstId: \"\"\n    };\n  },\n  mounted: function mounted() {\n    if (this.instId) {\n      this.data = this.instId;\n      this.getInstanceByInstId();\n    }\n  },\n  watch: {\n    instId: function instId(newVal, oldVal) {\n      this.data = newVal; //newVal即是instId\n\n      this.getInstanceByInstId();\n    }\n  },\n  methods: {\n    nodeClick: function nodeClick(node) {\n      this.$refs.subTaskImage.handleOpen(this.defId, this.instId, node.nodeId);\n    },\n    //加载流程图\n    getInstanceByInstId: function getInstanceByInstId() {\n      var _this = this;\n\n      this.$store.dispatch(\"storeProcess/getInstanceByInstId\", this.data).then(function (insts) {\n        var data = {\n          bpmnInstId: insts.bpmnInstId,\n          instId: _this.data,\n          defId: _this.defId\n        };\n\n        _this.$store.dispatch(\"storeProcess/getBpmImage\", data).then(function (res) {\n          _this.widthImg = res.rows.bpmDefLayout.width;\n          _this.heightImg = res.rows.bpmDefLayout.height;\n          _this.backGroundImg = res.img;\n          res.rows.bpmDefLayout.listLayout.forEach(function (element) {\n            var styleStr = \"position: 'absolute', left:\" + element.x + \"px, top:\" + element.y + \"px, width:\" + element.width + \"px, height:\" + element.height + \"px\";\n            element.style = styleStr;\n          });\n          _this.listLayout = res.rows.bpmDefLayout.listLayout;\n          var nodeIds = [];\n\n          _this.listLayout.forEach(function (layout) {\n            if (layout.nodeType == \"USERTASK\" || layout.nodeType == \"SIGNTASK\" || layout.nodeType == \"CUSTOMSIGNTASK\") {\n              nodeIds.push(layout.nodeId);\n            }\n          });\n\n          nodeIds = nodeIds.join(\",\");\n\n          _this.$store.dispatch(\"storeProcess/getNodeopinions\", {\n            instId: _this.instId,\n            nodeIds: nodeIds\n          }).then(function (resp) {\n            if (resp) {\n              for (var key in resp) {\n                if (resp[key].data && resp[key].hasOpinion) {\n                  resp[key].data.forEach(function (element) {\n                    if (element.qualfieds) {\n                      element.qualfieds = eval(\"(\" + element.qualfieds + \")\");\n                    }\n                  });\n                }\n              }\n            }\n\n            _this.nodeOpinions = resp;\n          });\n        });\n      });\n    }\n  }\n};",null]}