{"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\\FlowNodeCusersSelector.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowNodeCusersSelector.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\r\nimport flow from \"@/api/flow.js\";\r\nimport req from \"@/request.js\";\r\nimport { mapState, mapActions } from \"vuex\";\r\n\r\nconst eipUserSelector = () =>\r\n import(\"@/components/selector/EipUserSelector.vue\");\r\n\r\nconst FlowVarSelector = () => import(\"@/components/flow/FlowVarSelector.vue\");\r\n\r\nimport utils from \"@/hotent-ui-util.js\";\r\nexport default {\r\n components: { eipUserSelector, FlowVarSelector },\r\n data() {\r\n return {\r\n userConditionTab: \"first\",\r\n dialogVisible: false,\r\n data: {},\r\n user: { list: [],name:'' },\r\n parentParam: {},\r\n demList: [],\r\n demId: \"\",\r\n demName: \"\"\r\n };\r\n },\r\n watch: {\r\n \"data.source\": function(newVal, oldVal) {\r\n if (newVal == \"var\" && !this.data.var) {\r\n this.data.var = {};\r\n }\r\n }\r\n },\r\n methods: {\r\n showDialog: function(param) {\r\n this.dialogVisible = true;\r\n this.parentParam = param;\r\n if (param.calc) {\r\n this.data = JSON.parse(JSON.stringify(param.calc));\r\n }\r\n // 指定人员\r\n if (this.data.source == \"spec\" && this.data.userName != \"\") {\r\n this.user.name = this.data.userName;\r\n this.user.account = this.data.account;\r\n this.user.userId=this.data.userId;\r\n if (this.user.name) {\r\n let arrName = this.user.name.split(\",\");\r\n let arrAccount = this.user.account.split(\",\");\r\n let arruserId = this.user.account.split(\",\");\r\n for (let i = 0; i < arrName.length; i++) {\r\n var item = { fullname: arrName[i], account: arrAccount[i] ,userId:arruserId[i]};\r\n this.user.list.push(item);\r\n }\r\n }\r\n } else {\r\n this.user = { list: [] };\r\n }\r\n if (this.data.source === \"startSuper\") {\r\n if (this.data.dem && this.data.dem.id) {\r\n this.demId = this.data.dem.id;\r\n this.demName = this.data.dem.name;\r\n }\r\n }\r\n this.getAllDem();\r\n },\r\n getAllDem() {\r\n req.get(\"${uc}/api/demension/v1/dems/getAll\").then(resp => {\r\n this.demList = resp.data;\r\n if (!this.demId) {\r\n for (let i = 0; i < this.demList.length; i++) {\r\n let item = this.demList[i];\r\n if (item.isDefault === 1) {\r\n this.demId = item.id;\r\n this.demName = item.demName;\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n },\r\n handleClose: function() {\r\n //指定人员\r\n if (this.data.source == \"spec\") {\r\n this.data.userName = this.user.name;\r\n this.data.account = this.user.account;\r\n this.data.userId=this.user.userId;\r\n }\r\n //处理描述\r\n if (this.data.source == \"currentUser\") {\r\n this.data.description = \"当前登录用户\";\r\n } else if (this.data.source == \"start\") {\r\n this.data.description = \"发起人\";\r\n } else if (this.data.source == \"prev\") {\r\n this.data.description = \"上一步执行人\";\r\n } else if (this.data.source == \"var\") {\r\n this.data.description = this.data[\"var\"]\r\n ? \"[变量]\" + this.data[\"var\"].name\r\n : \"[变量]\";\r\n } else if (this.data.source == \"spec\") {\r\n if (this.user.name) {\r\n this.data.description = \"[指定用户]\" + this.user.name;\r\n } else {\r\n this.data.description = \"\";\r\n }\r\n }else if(this.data.source == \"startSuper\"){\r\n this.data.dem = {};\r\n this.data.dem.id = this.demId;\r\n this.data.dem.name = this.demName;\r\n this.data.description = \"[发起人直接上级]【维度:\" + this.demName+\"】\";\r\n }\r\n this.$emit(\"cuserSelectorConfirm\", this.data);\r\n this.dialogVisible = false;\r\n },\r\n varTreeOnConfirm(node) {\r\n let keyStr = node.name;\r\n let source = \"BO\";\r\n // 子表情况做提示\r\n // if (\r\n // node.nodeType == \"sub\" ||\r\n // (node.path && node.path.indexOf(\".sub_\") != -1)\r\n // ) {\r\n // keyStr = \"\";\r\n // this.$message.warn(\"提示信息\", \"不支持子表\");\r\n // } // 主表bo\r\n // else\r\n if (node.nodeType == \"var\") {\r\n keyStr = node.name;\r\n source = \"flowVar\";\r\n } else {\r\n keyStr = node.path + \".\" + node.name;\r\n }\r\n let json = {\r\n source: source,\r\n name: keyStr,\r\n executorType: \"user\",\r\n userValType: \"account\"\r\n };\r\n this.data.vars = JSON.stringify(json);\r\n this.data[\"var\"] = json;\r\n this.$forceUpdate();\r\n },\r\n demChange(val) {\r\n for (let i = 0; i < this.demList.length; i++) {\r\n let item = this.demList[i];\r\n if (item.id === val) {\r\n this.demName = item.demName;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n};\r\n",null]}