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