{"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\\views\\uc\\ReportLine.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\ReportLine.vue","mtime":1675071993288},{"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.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//\nimport portalApi from \"@/api/portal.js\";\nimport ucApi from \"@/api/uc.js\";\n\nvar reportLineAsideTree = function reportLineAsideTree() {\n  return import(\"@/views/uc/reportlinetree/ReportLineAsideTree.vue\");\n};\n\nvar htAsideTree = function htAsideTree() {\n  return import(\"@/components/common/HtAsideTree.vue\");\n};\n\nvar eipUserDialog = function eipUserDialog() {\n  return import(\"@/components/dialog/EipUserDialog.vue\");\n};\n\nvar eipOrgDialog = function eipOrgDialog() {\n  return import(\"@/components/dialog/EipOrgDialog.vue\");\n};\n\nvar eipPostDialog = function eipPostDialog() {\n  return import(\"@/components/dialog/EipPostDialog.vue\");\n};\n\nvar eipRoleDialog = function eipRoleDialog() {\n  return import(\"@/components/dialog/EipRoleDialog.vue\");\n};\n\nexport default {\n  components: {\n    reportLineAsideTree: reportLineAsideTree,\n    htAsideTree: htAsideTree,\n    eipUserDialog: eipUserDialog,\n    eipOrgDialog: eipOrgDialog,\n    eipPostDialog: eipPostDialog,\n    eipRoleDialog: eipRoleDialog\n  },\n  data: function data() {\n    return {\n      catId: \"\",\n      options: [],\n      typeId: \"\",\n      isLineTreeShow: false,\n      isReportLineFormShow: false,\n      param: {\n        //记录请求参数\n        type: \"user\",\n        // 用户组类型\n        value: \"\",\n        parentAlias: \"\",\n        alias: \"\"\n      },\n      userType: [{\n        key: \"user\",\n        value: \"用户\"\n      }, {\n        key: \"org\",\n        value: \"组织\"\n      }, {\n        key: \"pos\",\n        value: \"岗位\"\n      }, {\n        key: \"role\",\n        value: \"角色\"\n      }],\n      formType: \"add\",\n      selectName: \"\"\n    };\n  },\n  computed: {},\n  mounted: function mounted() {// this.handleSelectOptions();\n  },\n  watch: {\n    \"param.type\": function paramType(newVal, oldVal) {\n      if (newVal && newVal != oldVal && !this.isEditFirstChange) {\n        this.param.value = \"\";\n        this.param.alias = \"\";\n        this.$set(this, \"selectName\", \"\");\n      } else {\n        this.isEditFirstChange = false;\n      }\n    }\n  },\n  methods: {\n    handleNodeClick: function handleNodeClick(data) {\n      if (data.parentId == 0) {\n        this.$message.warning(\"请选择具体的汇报线分类\");\n        return;\n      }\n\n      this.isLineTreeShow = true;\n      this.isReportLineFormShow = false;\n      this.typeId = data.id;\n    },\n    handleLineAsideNodeClick: function handleLineAsideNodeClick(node) {\n      this.isReportLineFormShow = false;\n    },\n    select: function select() {\n      if (this.param.type === \"user\") {\n        this.$refs.eipUserDialog.showDialog();\n      } else if (this.param.type === \"pos\") {\n        this.$refs.eipPostDialog.showDialog();\n      } else if (this.param.type === \"org\") {\n        this.$refs.eipOrgDialog.showDialog();\n      } else if (this.param.type === \"role\") {\n        this.$refs.eipRoleDialog.showDialog();\n      }\n    },\n    selectUser: function selectUser(data) {\n      this.param.value = data[0].id;\n      this.param.alias = data[0].account;\n      this.selectName = data[0].fullname;\n    },\n    selectOrg: function selectOrg(data) {\n      this.param.value = data[0].id;\n      this.param.alias = data[0].code;\n      this.selectName = data[0].name;\n    },\n    selectPost: function selectPost(data) {\n      this.param.value = data[0].id;\n      this.param.alias = data[0].code;\n      this.selectName = data[0].name;\n    },\n    selectRole: function selectRole(data) {\n      this.param.value = data[0].id;\n      this.param.alias = data[0].code;\n      this.selectName = data[0].name;\n    },\n    showReportLineForm: function showReportLineForm(data, id, type) {\n      if (type === \"edit\") {\n        this.formType = \"edit\";\n        this.param.alias = data.alias;\n        this.param.id = data.id;\n        this.param.value = data.id;\n        this.selectName = data.name;\n        this.param.parentAlias = id;\n\n        if (this.param.type != data.groupType) {\n          this.param.type = data.groupType;\n          this.isEditFirstChange = true;\n        }\n      } else {\n        this.selectName = \"\";\n        this.param = {\n          parentAlias: data.alias,\n          type: \"user\"\n        };\n        this.formType = \"add\";\n      }\n\n      this.isReportLineFormShow = true;\n    },\n    submit: function submit() {\n      var _this = this;\n\n      // 汇报线表单提交\n      if (this.formType === \"add\") {\n        ucApi.addUserRel([this.param]).then(function (resp) {\n          _this.$message({\n            message: \"新增成功\",\n            type: \"success\"\n          });\n\n          _this.$refs.reportLineAsideTree.$refs.htSysTypeTree.loadData();\n        });\n      } else if (this.formType === \"edit\") {\n        ucApi.updateUserRel(this.param).then(function (resp) {\n          _this.$message({\n            message: \"修改成功\",\n            type: \"success\"\n          });\n\n          _this.$refs.reportLineAsideTree.$refs.htSysTypeTree.loadData();\n        });\n      }\n\n      this.selectName = \"\"; //保存成功清楚数据\n    },\n    distributionAdmin: function distributionAdmin() {\n      this.$refs.reportLineAsideTree.distributionAdmin(this.param.alias);\n    }\n  }\n};",null]}