{"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\\portal\\LayoutDistribution.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\portal\\LayoutDistribution.vue","mtime":1675071993053},{"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//\nimport orgrequest from \"@/api/org.js\";\n\nvar orgTree = function orgTree() {\n return import(\"@/views/uc/heiorgmanager/OrgTree.vue\");\n};\n\nvar LayoutManager = function LayoutManager() {\n return import(\"@/views/portal/LayoutManager.vue\");\n};\n\nexport default {\n name: \"layout-distribution\",\n data: function data() {\n return {\n selectOrgId: \"\",\n //选择的组织ID\n orgList: [],\n //下拉框待选择的组织\n orgManagerList: [],\n //获取到有管理员权限的组织\n treeList: [],\n //树形菜单展示的数组\n defaultProps: {\n children: \"children\",\n label: \"name\"\n },\n reFresh: true,\n toManageType: \"showInfo\",\n //打开orgManager组件需要传入的参数\n orgId: \"\",\n layoutMngShow: false,\n orgManagerNow: {} //当前选择的对象\n\n };\n },\n components: {\n orgTree: orgTree,\n LayoutManager: LayoutManager\n },\n methods: {\n rowClick: function rowClick(row, column, event) {\n this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n },\n orgTreeClick: function orgTreeClick(orgbytree) {\n var _this = this;\n\n this.orgId = orgbytree.id;\n this.layoutMngShow = false;\n this.$nextTick(function () {\n _this.layoutMngShow = true;\n });\n }\n },\n mounted: function mounted() {\n var _this2 = this;\n\n orgrequest.getCurrentUserAuthOrgLayout().then(function (rep) {\n for (var i = 0; i < rep.length; i++) {\n _this2.orgList.push({\n key: rep[i].orgId,\n value: rep[i].orgName + \"--[\" + rep[i].demName + \"]\"\n });\n }\n\n _this2.orgManagerList = rep; //将所有有权限的组织赋值到orgManagerList对象当中,后面会带到各个组件当中做权限判断\n\n _this2.selectOrgId = rep[0].orgId;\n });\n },\n watch: {\n selectOrgId: function selectOrgId(orgId, oldOrgId) {\n var _this3 = this;\n\n for (var i = 0; i < this.orgManagerList.length; i++) {\n var org = this.orgManagerList[i];\n\n if (org.orgId === orgId) {\n this.orgManagerNow = org;\n }\n }\n\n this.orgId = orgId;\n this.layoutMngShow = false;\n this.$nextTick(function () {\n _this3.layoutMngShow = true;\n });\n this.reFresh = false;\n this.$nextTick(function () {\n _this3.reFresh = true;\n });\n }\n }\n};",null]}