{"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\\FlowNodeUserConfig.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowNodeUserConfig.vue","mtime":1675071991850},{"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":["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//\nimport flow from \"@/api/flow.js\";\nimport req from \"@/request.js\";\nimport { mapState, mapActions } from \"vuex\";\n\nvar FlowNodeUserCondition = function FlowNodeUserCondition() {\n  return import(\"@/components/flow/FlowNodeUserCondition.vue\");\n};\n\nimport utils from \"@/hotent-ui-util.js\";\nexport default {\n  props: [\"defId\", \"title\", 'nodeId', 'defkey'],\n  components: {\n    FlowNodeUserCondition: FlowNodeUserCondition\n  },\n  data: function data() {\n    return {\n      nodeUsers: [],\n      curSetIndex: '-1'\n    };\n  },\n  computed: mapState({\n    defConfigData: function defConfigData(state) {\n      return state.flow.defConfigData;\n    }\n  }),\n  watch: {\n    nodeUsers: {\n      handler: function handler(newValue, oldValue) {\n        var path = 'nodeSetData.nodeUserMap.' + this.nodeId;\n        var obj = {};\n        obj[path] = newValue;\n\n        if (newValue) {\n          for (var index = 0; index < newValue.length; index++) {\n            newValue[index].groupNo = index + 1;\n          }\n        }\n\n        this.$store.dispatch(\"flow/updateConfig\", obj);\n      },\n      deep: true\n    }\n  },\n  methods: {\n    dialogCancel: function dialogCancel() {},\n    nodeUserConditionConfirm: function nodeUserConditionConfirm(res) {\n      if (res.calcs) {\n        if (this.curSetIndex != '-1') {\n          this.nodeUsers.splice(this.curSetIndex, 1, res);\n        } else {\n          this.nodeUsers.push(res);\n        }\n      }\n    },\n    ArrayTool: function ArrayTool(ary, idx, direct) {\n      direct = direct || \"down\";\n      var part = ary[idx];\n\n      if (!part || part.constructor !== Object && part.constructor !== Array) {\n        return ary;\n      }\n\n      if (part.constructor === Object) {\n        part = [part];\n      }\n\n      if (direct == \"up\") {\n        part.forEach(function (m) {\n          var index = ary.indexOf(m, 1);\n\n          if (index > 0) {\n            var t = ary[index - 1];\n            ary.splice(index - 1, 1, ary[index]);\n            ary.splice(index, 1, t);\n          }\n        });\n      } else if (direct == \"down\") {\n        for (var i = part.length - 1, m; m = part[i--];) {\n          var index = ary.indexOf(m, 0);\n\n          if (index > -1 && index < ary.length - 1) {\n            var t = ary[index + 1];\n            ary.splice(index + 1, 1, ary[index]);\n            ary.splice(index, 1, t);\n          }\n        }\n      }\n    },\n    setNodeUser: function setNodeUser(index) {\n      var conf = {\n        nodeId: this.nodeId\n      };\n\n      if (index || index === 0) {\n        this.curSetIndex = index;\n        conf.userRule = JSON.parse(JSON.stringify(this.nodeUsers[index]));\n      } else {\n        this.curSetIndex = -1;\n      }\n\n      this.$refs.flowNodeUserCondition.showDialog(conf);\n    }\n  },\n  created: function created() {\n    this.utils = utils;\n\n    if (this.defConfigData.nodeSetData.nodeUserMap && this.defConfigData.nodeSetData.nodeUserMap[this.nodeId]) {\n      this.nodeUsers = JSON.parse(JSON.stringify(this.defConfigData.nodeSetData.nodeUserMap[this.nodeId]));\n    }\n  }\n};",null]}