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