{"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\\reportlinetree\\ReportLineAsideTree.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\reportlinetree\\ReportLineAsideTree.vue","mtime":1675071993475},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport styles from \"@/assets/css/element-variables.scss\";\nimport ucApi from \"@/api/uc.js\";\n\nvar diastrbutionAdmin = function diastrbutionAdmin() {\n return import(\"@/views/uc/reportlinetree/DiastrbutionAdmin.vue\");\n};\n\nvar reportLineTree = function reportLineTree() {\n return import(\"@/views/uc/reportlinetree/ReportLineTree.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 name: \"report-line-aside-tree\",\n components: {\n reportLineTree: reportLineTree,\n eipUserDialog: eipUserDialog,\n eipOrgDialog: eipOrgDialog,\n eipPostDialog: eipPostDialog,\n eipRoleDialog: eipRoleDialog,\n diastrbutionAdmin: diastrbutionAdmin\n },\n props: {\n width: {\n type: String,\n default: \"100%\"\n },\n typeId: {\n type: String,\n default: \"\"\n },\n typeKey: {\n type: String,\n default: \"\"\n },\n supportFilter: {\n type: Boolean,\n default: false\n },\n hasFooter: {\n type: Boolean,\n default: true\n },\n hasNavbarCollapse: {\n type: Boolean,\n default: true\n }\n },\n computed: {\n navbarCollapseStyle: function navbarCollapseStyle() {\n if (this.asideShow) {\n return {\n left: parseInt(this.width) + 16 + \"px\"\n };\n }\n\n return {\n left: \"0px\"\n };\n }\n },\n data: function data() {\n return {\n asideShow: true,\n isExpand: true,\n showCheckbox: false,\n dialogVisible: false,\n sysType: {\n children: [],\n icon: \"{}\",\n isLeaf: \"N\",\n struType: 1,\n typeKey: \"\",\n name: \"\"\n },\n parentSysType: {\n name: \"\"\n },\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 selectName: \"\",\n //当前选择的名称\n dialogType: \"\",\n isDistributionAdmin: false,\n selectRoleAlias: \"\",\n dialogTitle: \"\",\n isEditFirstChange: false\n };\n },\n watch: {\n typeId: function typeId(newVal, oldVal) {\n var _this = this;\n\n if (newVal && newVal != oldVal) {\n setTimeout(function () {\n _this.$refs.htSysTypeTree.loadData();\n });\n }\n },\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 clickNode: function clickNode(node, data) {\n if (node.level == 1) {\n this.$message({\n type: \"warning\",\n message: \"请选择下级菜单\"\n });\n return;\n }\n\n this.dialogType = \"edit\";\n this.param.id = data.id;\n this.dialogTitle = \"编辑汇报线\";\n this.$emit(\"showReportLineForm\", data, node.parent.data.id, \"edit\");\n },\n check: function check(data, checkedObj) {\n this.$emit(\"check\", data, checkedObj);\n },\n syncTree: function syncTree() {\n this.$refs.htSysTypeTree.loadData();\n },\n handleExpand: function handleExpand() {\n this.isExpand = !this.isExpand;\n var elTree = this.$refs.htSysTypeTree.$refs.htTree.$refs.elTree;\n\n for (var i = 0; i < elTree.store._getAllNodes().length; i++) {\n elTree.store._getAllNodes()[i].expanded = this.isExpand;\n }\n },\n handleCommand: function handleCommand(command) {\n var node = command.node;\n var data = command.data;\n var action = command.action;\n\n switch (action) {\n case \"add\":\n this.dialogType = \"add\";\n this.dialogTitle = \"新增汇报线\";\n this.$emit(\"showReportLineForm\", data, action, \"add\"); // this.showDialog(data, action);\n\n break;\n\n case \"edit\":\n this.dialogType = \"edit\";\n this.param.id = data.id;\n this.dialogTitle = \"编辑汇报线\";\n this.$emit(\"showReportLineForm\", data, node.parent.data.id, \"edit\"); // this.showDialog(data, node.parent.data.id);\n\n break;\n\n case \"delete\":\n this.delSysType(data);\n break;\n\n case \"refresh\":\n this.refresh();\n break;\n\n default:\n break;\n }\n },\n distributionAdmin: function distributionAdmin(alias) {\n var _this2 = this;\n\n this.selectRoleAlias = alias;\n this.isDistributionAdmin = false;\n this.$nextTick(function () {\n _this2.isDistributionAdmin = true;\n });\n },\n refresh: function refresh() {\n this.syncTree();\n },\n showDialog: function showDialog(data, id) {\n if (this.dialogType === \"edit\") {\n this.param.alias = data.alias;\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 }\n\n this.dialogVisible = true;\n },\n delSysType: function delSysType(data) {\n var _this3 = this;\n\n this.$confirm(\"\\u662F\\u5426\\u786E\\u5B9A\\u5220\\u9664 [\".concat(data.name, \"] ?\"), \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n ucApi.deleteUserRel(data.alias).then(function (data) {\n if (data.state) {\n _this3.$message({\n type: \"success\",\n message: data.message || \"删除成功\"\n });\n\n _this3.$refs.htSysTypeTree.loadData();\n } else {\n _this3.$message.error(data.message || \"删除成功\");\n }\n }, function (error) {\n _this3.$message.error(error || \"删除失败\");\n }).catch(function () {\n _this3.dialogVisible = false;\n });\n });\n },\n handleClose: function handleClose() {\n var _this4 = this;\n\n this.param = {\n type: \"user\",\n value: \"\",\n parentAlias: \"\",\n alias: \"\"\n };\n setTimeout(function () {\n _this4.$refs.htSysTypeTree.loadData();\n });\n this.dialogVisible = false;\n this.isDistributionAdmin = false;\n },\n afterSaveData: function afterSaveData() {\n var _this5 = this;\n\n this.$refs.htSysTypeTree.loadData();\n\n if (this.sysType.id) {\n this.dialogVisible = false;\n return;\n }\n\n this.sysType.name = \"\";\n this.sysType.typeKey = \"\";\n this.$confirm(\"是否继续?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"success\"\n }).then(function () {}).catch(function () {\n _this5.dialogVisible = false;\n });\n },\n submit: function submit() {\n var _this6 = this;\n\n if (this.dialogType === \"add\") {\n ucApi.addUserRel([this.param]).then(function (resp) {\n _this6.dialogVisible = false;\n\n _this6.$message({\n message: \"新增成功\",\n type: \"success\"\n });\n\n _this6.$refs.htSysTypeTree.loadData();\n });\n } else if (this.dialogType === \"edit\") {\n ucApi.updateUserRel(this.param).then(function (resp) {\n _this6.dialogVisible = false;\n\n _this6.$message({\n message: \"新增成功\",\n type: \"success\"\n });\n\n _this6.$refs.htSysTypeTree.loadData();\n });\n }\n\n this.selectName = \"\"; //保存成功清楚数据\n // this.param = { type: \"user\", value: \"\", parentAlias: \"\", alias: \"\" };\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 }\n};",null]}