{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\components\\layout\\Navigator.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\components\\layout\\Navigator.vue","mtime":1697536795169},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"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 \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/damDance-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.constructor\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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 HtAvatar from '@/components/common/HtAvatar.vue';\nimport langSelect from '@/components/langSelect';\nimport { mapState } from 'vuex';\nimport { Base64 } from 'js-base64';\nimport req from '@/request.js';\nimport menu from '@/api/menu.js';\nimport uc from '@/api/uc.js';\nexport default {\n name: 'navigator',\n components: {\n HtAvatar: HtAvatar,\n langSelect: langSelect\n },\n props: ['menuShow', 'showTopMenu'],\n data: function data() {\n var _this = this;\n\n var validateNew = function validateNew(rule, value, callback) {\n if (value === '') {\n callback(new Error('请输入新密码'));\n }\n\n var config = _this.pwdStrategy;\n\n if (config.enable == 1) {\n var pwdRule = config.pwdRule;\n var pwdLength = config.pwdLength;\n\n if (pwdRule) {\n if (value.length < pwdLength) {\n callback(new Error('新密码长度至少为' + pwdLength));\n } else if (pwdRule == 2) {\n var re = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])');\n\n if (!re.test(value)) {\n callback(new Error('新密码必须包含数字、字母'));\n } else {\n callback();\n }\n } else if (pwdRule == 3) {\n var re = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9])');\n\n if (!re.test(value)) {\n callback(new Error('新密码必须包含数字、字母、特殊字符'));\n } else {\n callback();\n }\n } else if (pwdRule == 4) {\n var re = new RegExp('(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9])');\n\n if (!re.test(value)) {\n callback(new Error('新密码必须包含数字、大小字母、特殊字符'));\n } else {\n callback();\n }\n } else {\n callback();\n }\n }\n } else {\n if (value.length < 6) {\n callback(new Error('新密码长度至少为6'));\n } else {\n callback();\n }\n }\n };\n\n var validateold = function validateold(rule, value, callback) {\n if (value === '') {\n callback(new Error('请输入旧密码'));\n } else {\n callback();\n }\n };\n\n var validateNewReapeat = function validateNewReapeat(rule, value, callback) {\n if (value === '') {\n callback(new Error('请再次输入新密码'));\n } else {\n callback();\n }\n };\n\n return {\n input: '',\n currentMenu: '',\n modifyPwdDialogVisible: false,\n pwdForm: {\n old: '',\n new: '',\n newRepeat: ''\n },\n pwdRules: {\n old: [{\n validator: validateold,\n trigger: 'blur'\n }],\n new: [{\n validator: validateNew,\n trigger: 'blur'\n }],\n newRepeat: [{\n validator: validateNewReapeat,\n trigger: 'blur'\n }]\n },\n hasAuthTobigScreen: null,\n companyName: ''\n };\n },\n created: function created() {\n this.filterSubMenu();\n this.getSysInfo();\n },\n beforeMount: function beforeMount() {// let arr = window.location.pathname.split('/')\n // let num = arr.length\n // this.currentMenu = arr[num - 1]\n // console.log(this.currentMenu, arr)\n },\n mounted: function mounted() {\n !this.currentUser && this.$store.dispatch('user/loadCurrentUserDetail');\n var currentUser = this.$store.state.login.currentUser; // if ((!this.frontMenus || this.frontMenus.length == 0) && currentUser) {\n // this.$store.dispatch('menu/actionFrontMenus').then((res) => {\n // // this.activePage()\n // })\n // }\n },\n computed: _objectSpread({}, mapState({\n currentUser: function currentUser(state) {\n return state.user.currentUserDetail;\n },\n token: function token(state) {\n return state.login.currentUser.token;\n },\n frontMenus: function frontMenus(state) {\n return state.menu.frontMenus;\n },\n sysMenus: function sysMenus(state) {\n return state.menu.sysMenus;\n },\n userType: function userType() {\n if (this.currentUser && this.currentUser.user) {\n return this.currentUser.user.userType;\n }\n },\n pwdStrategy: function pwdStrategy(state) {\n return state.user.pwdStrategy;\n }\n })),\n watch: {// $route: 'activePage',\n },\n methods: {\n getSysInfo: function getSysInfo() {\n var _this2 = this;\n\n var url = '${uc}/uc/tenantManage/v1/getTenantByCode?code=platform';\n this.$http.get(url).then(function (resp) {\n if (resp.data) {\n var tenantManage = resp.data;\n _this2.companyName = tenantManage.nameFront;\n }\n });\n },\n goIndex: function goIndex() {\n if (!this.hasAuthTobigScreen) return;\n var frontMenus = JSON.parse(sessionStorage.getItem('currentFrontMenus')) || false;\n var bigScreen = frontMenus.filter(function (item) {\n return item.alias === 'bigScreen';\n });\n var alise = bigScreen[0].alias;\n this.$router.push({\n path: \"/\".concat(alise)\n });\n },\n // 筛选出选中菜单\n filterSubMenu: function filterSubMenu() {\n var frontMenus = JSON.parse(sessionStorage.getItem('currentFrontMenus')) || false;\n var bigScreen = frontMenus.filter(function (item) {\n return item.alias === 'bigScreen';\n });\n this.hasAuthTobigScreen = bigScreen.length ? true : false;\n },\n openResetPwdDialog: function openResetPwdDialog() {\n // this.$store.dispatch('user/getDefPwdStrategy')\n // this.modifyPwdDialogVisible = true\n // if (this.$refs['pwdForm']) {\n // this.$refs['pwdForm'].resetFields()\n // }\n this.$router.push({\n path: '/platLayout/resetPwdView',\n query: {\n type: 'settings'\n }\n });\n },\n openPersonalCenter: function openPersonalCenter() {\n this.$router.push({\n path: '/platLayout/PersonalInfo'\n });\n },\n handleSysPlat: function handleSysPlat() {\n // let url = 'http://localhost:8080/mvue/getAuth?token=' + this.token\n var url = window.context.manage + '/getAuth?token=' + this.token;\n window.open(url, '_blank');\n },\n logout: function logout() {\n var _this3 = this;\n\n this.$store.dispatch('menu/clearMenus');\n this.$store.dispatch('user/clearUser');\n this.$store.dispatch('menu/setCopyMenus', []); //菜单\n\n var loginRouthPath = localStorage.getItem(this.$store.state.login.currentUser.account + 'loginRoutePath') || '/login';\n this.$store.dispatch('login/logoutAndCleanUp').then(function () {\n switch (window.ssoConfig.mode) {\n case 'cas':\n case 'oauth':\n window.sessionStorage.removeItem('currentUser');\n window.location.href = window.ssoConfig.logout + '?service=' + window.location.href.split('?')[0];\n break;\n\n default:\n _this3.$router.push({\n path: loginRouthPath\n });\n\n break;\n }\n });\n },\n handleClickMenu: function handleClickMenu(item) {\n console.log(item);\n var hasSideMenu = item.children.length ? true : false;\n this.$emit('update:menuShow', hasSideMenu);\n this.currentMenu = item.alias;\n\n if (item.children.length !== 0) {\n var childrens = item.children;\n var subPath = childrens[0].alias;\n\n if (childrens[0].children && childrens[0].children.length !== 0) {\n var threeChildrens = childrens[0].children;\n var threePath = threeChildrens[0].alias;\n this.$router.push('/bizPlat/' + item.alias + '/' + subPath + '/' + threePath);\n } else {\n this.$router.push('/bizPlat/' + item.alias + '/' + subPath);\n }\n } else {\n this.$router.push('/bizPlat/' + item.alias);\n this.currentMenu = item.alias;\n }\n },\n activePage: function activePage() {\n var _this4 = this;\n\n var fullPath = this.$route.path;\n var path = fullPath.split('/');\n var urlAnchor = path[path.indexOf('bizPlat') + 1];\n this.frontMenus.filter(function (item) {\n if (item.alias == urlAnchor) {\n _this4.currentMenu = urlAnchor;\n console.log(_this4.currentMenu);\n }\n });\n },\n downloadFile: function downloadFile() {\n var a = document.createElement('a');\n a.href = './files/OperationManual.pdf';\n a.download = '改革报表填报系统操作说明书(3月31日版)定.pdf';\n a.style.display = 'none';\n document.body.appendChild(a);\n a.click();\n a.remove();\n }\n }\n};",null]}