{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/views/admin/admin.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/views/admin/admin.vue","mtime":1742796810169},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/babel.config.js","mtime":1742796810089},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator.js\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport API from \"@/api.js\"; //专委会设置\n\nimport CommitteeKmSettings from \"@/components/admin/CompanyAdmin/CommitteeKmSettings.vue\"; //部门KM设置\n\nimport DepartmentKmSettings from \"@/components/admin/CompanyAdmin/DepartmentKmSettings.vue\"; //企业KM批量授权\n\nimport RoleAuthenticate from \"@/components/admin/CompanyAdmin/RoleAuthenticate.vue\"; //企业KM日志\n\nimport CompanyReport from \"@/components/admin/CompanyAdmin/CompanyReport.vue\"; //企业km文档水印设置\n\nimport WaterMark from \"@/components/admin/CompanyAdmin/Watermark.vue\"; //标签设置\n\nimport labelSettings from \"@/components/admin/CompanyAdmin/labelSettings.vue\"; //标签类别\n\nimport LabelCategory from \"@/components/admin/CompanyAdmin/LabelCategory.vue\"; //部门KM批量授权\n\nimport DeptRoleAuthenticate from \"@/components/admin/DeptAdmin/DeptRoleAuthenticate.vue\"; //部门KM日志\n\nimport DeptReport from \"@/components/admin/DeptAdmin/DeptReport.vue\"; //部门km贡献报表\n\nimport Echart from \"@/components/admin/DeptAdmin/Echart.vue\";\nexport default {\n name: \"admin\",\n components: {\n CommitteeKmSettings: CommitteeKmSettings,\n DepartmentKmSettings: DepartmentKmSettings,\n RoleAuthenticate: RoleAuthenticate,\n CompanyReport: CompanyReport,\n WaterMark: WaterMark,\n labelSettings: labelSettings,\n LabelCategory: LabelCategory,\n DeptRoleAuthenticate: DeptRoleAuthenticate,\n DeptReport: DeptReport,\n Echart: Echart\n },\n data: function data() {\n return {\n paddingTop: false,\n //头部padding\n user: {},\n dialogTitle: '',\n //弹窗名称\n dialogVisible: false,\n visible: {\n committeeVisible: false,\n //专委会设置\n deptVisible: false,\n //部门KM设置\n reportVisible: false,\n //企业日志\n watermarkVisible: false,\n //文档水印设置\n outerVisible: false,\n //标签设置\n deptChartVisible: false //贡献量报表\n\n },\n categoryVisible: false,\n deptReportVisible: false,\n ChartVisible: false,\n RoleConstant: {\n superAdmin: \"KMSUPERADMINROLEID\",\n //超级管理员id\n committeeAdmin: \"KMCOMMITTEEADMINROLEID\",\n //专委会管理员id\n deptAdmin: \"KMDEPTADMINROLEID\",\n //部门管理员id\n member: 0\n },\n isShowSuperSetting: false,\n isShowDeptSetting: false\n };\n },\n mounted: function mounted() {\n if (this.$store.state.isShowHeard) {\n this.paddingTop = true;\n }\n\n this.getMyProfile(); //监听页面刷新事件\n\n window.addEventListener(\"unload\", this.saveLoginUser);\n },\n methods: {\n /**\n * 获取当前用户信息\n */\n getMyProfile: function getMyProfile() {\n var _this = this;\n\n API.getMyProfile({\n onSucess: function onSucess(resp) {\n _this.user = resp.data.data;\n\n _this.getInitData();\n }\n });\n },\n saveLoginUser: function saveLoginUser() {\n //将值VUEX中的state.user 存入sessionStorage\n sessionStorage.setItem('landingUser', JSON.stringify(this.user));\n },\n\n /**\n * 页面初始化\n */\n getInitData: function () {\n var _getInitData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var user, curruserAuthenticate;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n user = this.user;\n curruserAuthenticate = this.getUserAuthenticate(user.roles);\n this.isShowSuperSetting = curruserAuthenticate.isShowSuperSetting;\n this.isShowDeptSetting = curruserAuthenticate.isShowDeptSetting;\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getInitData() {\n return _getInitData.apply(this, arguments);\n }\n\n return getInitData;\n }(),\n\n /**\n * 获取用户权限\n * @param {Array} roles \n */\n getUserAuthenticate: function getUserAuthenticate(roles) {\n var _this2 = this;\n\n if (!roles) {\n roles = [];\n }\n\n var userAuthenticate = {\n isShowSuperSetting: false,\n isShowDeptSetting: false\n };\n roles.map(function (item) {\n switch (item.id) {\n case _this2.RoleConstant.superAdmin:\n userAuthenticate.isShowSuperSetting = true;\n break;\n\n case _this2.RoleConstant.deptAdmin:\n userAuthenticate.isShowDeptSetting = true;\n break;\n }\n });\n return userAuthenticate;\n },\n\n /**\n * 点击弹窗\n */\n handlDialogClick: function handlDialogClick(val) {\n this.dialogTitle = val;\n\n var visible = _objectSpread(_objectSpread({}, this.visible), {}, {\n committeeVisible: false,\n deptVisible: false,\n reportVisible: false,\n watermarkVisible: false,\n outerVisible: false,\n deptChartVisible: false\n });\n\n this.visible = visible;\n\n switch (val) {\n case this.$t('panel.committee_setup'):\n this.visible.committeeVisible = true;\n break;\n\n case this.$t('panel.department_KM'):\n this.visible.deptVisible = true;\n break;\n\n case this.$t('panel.log'):\n this.visible.reportVisible = true;\n break;\n\n case this.$t('panel.document_watermark'):\n this.visible.watermarkVisible = true;\n break;\n\n case this.$t('panel.label_set'):\n this.visible.outerVisible = true;\n break;\n\n case this.$t('panel.contribution_statements'):\n this.visible.deptChartVisible = true;\n break;\n }\n\n this.dialogVisible = true;\n },\n\n /**\n * 监听Watermark.vue传过来的Cancel(取消)事件\n */\n onCancel: function onCancel(val) {\n this.dialogVisible = val;\n this.visible.watermarkVisible = val;\n },\n\n /**\n * \n */\n handlCommitteeClick: function handlCommitteeClick() {\n this.committeeVisible = true;\n },\n\n /**\n * \n */\n handLabelSetClick: function handLabelSetClick() {\n this.outerVisible = true;\n },\n\n /**\n * \n */\n handLabelCategoryClick: function handLabelCategoryClick() {\n this.categoryVisible = true;\n },\n\n /**\n * \n */\n handleDeptReport: function handleDeptReport() {\n this.deptReportVisible = true;\n }\n }\n};",null]}