{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\layout\\components\\Navbar.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\layout\\components\\Navbar.vue","mtime":1737610069392},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _regeneratorRuntime from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport _objectSpread from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\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 { mapGetters } from \"vuex\";\nimport Breadcrumb from \"@/components/Breadcrumb\";\nimport Hamburger from \"@/components/Hamburger\";\nimport ErrorLog from \"@/components/ErrorLog\";\n// import Screenfull from \"@/components/Screenfull\";\n// import SizeSelect from \"@/components/SizeSelect\";\n// import LangSelect from \"@/components/LangSelect\";\n// import Search from \"@/components/HeaderSearch\";\nimport Cookies from \"js-cookie\";\nimport md5 from 'js-md5';\nimport CryptoJS from 'crypto-js';\nvar KEY = CryptoJS.enc.Utf8.parse(\"greenh5java12345\");\nvar IV = CryptoJS.enc.Utf8.parse(\"greenh5java12345\");\nvar md5s = 'greenh5';\nimport { OutLogin, getUserInfo, ModifyPoss } from \"@/api/getdata\";\nimport { removeToken, getIscId } from \"@/utils/auth\";\nexport default {\n data: function data() {\n return {\n userNmae: \"\",\n dialogFormVisible: false,\n ruleForm: {\n oldPoss: \"\",\n newPoss: \"\",\n newPossAgain: \"\"\n },\n rules: {\n oldPoss: [{\n required: true,\n message: \"请输入原密码\",\n trigger: \"blur\"\n }],\n newPoss: [{\n required: true,\n message: \"请输入新密码\",\n trigger: \"blur\"\n }],\n newPossAgain: [{\n required: true,\n message: \"请再次输入新密码\",\n trigger: \"blur\"\n }]\n }\n };\n },\n components: {\n Breadcrumb: Breadcrumb,\n Hamburger: Hamburger,\n ErrorLog: ErrorLog\n // Screenfull,\n // SizeSelect,\n // LangSelect,\n // Search\n },\n computed: _objectSpread({}, mapGetters([\"sidebar\", \"avatar\", \"device\"])),\n mounted: function mounted() {\n this.userInfo();\n },\n methods: {\n userInfo: function userInfo() {\n var _this = this;\n // getUserInfo\n getUserInfo().then(function (res) {\n _this.userNmae = res.returnData.userName;\n window.localStorage.setItem(\"userName\", res.returnData.userName);\n window.localStorage.setItem(\"userId\", res.returnData.userId);\n window.localStorage.setItem(\"userName\", res.returnData.userName);\n window.localStorage.setItem(\"userId\", res.returnData.userId);\n }).catch(function (err) {\n console.log(err);\n });\n },\n /**退出登陆 */outLogin: function outLogin() {\n this.$confirm(\"\\u786E\\u5B9A\\u8FDB\\u884C[\\u9000\\u51FA]\\u64CD\\u4F5C?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n OutLogin().then(function (res) {\n var iscId = getIscId();\n window.location.href = 'http://iscsso.cc.sgcc.com.cn:17011/isc_sso/logout?iscUserId=' + iscId + '&service=http://10.224.64.4:27000/greenH5/greenWebmodul/dist/index.html?#/';\n removeToken();\n // window.location.href = \"http://localhost:9527/#/login\";\n // window.location.reload();\n var logUrl = \"http://10.224.64.4:27000/greenH5/greenWebmodul/dist/index.html?#/\";\n var isc_login = \"http://iscsso.cc.sgcc.com.cn:17011/isc_sso/login?service=\";\n window.location.href = isc_login + logUrl;\n // this.$router.push({ name: 'login' })\n });\n });\n },\n submitForm: function submitForm(formName) {\n var _this2 = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this2.validation = true;\n if (_this2.ruleForm.newPoss != _this2.ruleForm.newPossAgain) {\n _this2.ruleForm.newPossAgain = \"\";\n _this2.$message.error(\"两次输入新密码不同,请重新输入\");\n } else {\n var content = {\n oldPoss: _this2.ruleForm.oldPoss,\n newPoss: _this2.ruleForm.newPoss\n // oldPoss:CryptoJS.AES.encrypt(this.ruleForm.oldPoss, KEY, {iv: IV, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.ZeroPadding}).toString(),\n // newPoss:CryptoJS.AES.encrypt(this.ruleForm.newPoss, KEY, {iv: IV, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.ZeroPadding}).toString()\n };\n ModifyPoss(content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n OutLogin().then(function (res) {\n removeToken();\n // window.location.href = \"http://localhost:9527/#/login\";\n window.location.reload();\n // this.$router.push({ name: 'login' })\n });\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n });\n }\n }\n });\n },\n resetForm: function resetForm(formName) {\n this.$refs[formName].resetFields();\n this.dialogFormVisible = false;\n },\n toggleSideBar: function toggleSideBar() {\n this.$store.dispatch(\"app/toggleSideBar\");\n },\n logout: function () {\n var _logout = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.$store.dispatch(\"user/logout\");\n case 2:\n this.$router.push(\"/login?redirect=\".concat(this.$route.fullPath));\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _callee, this);\n }));\n function logout() {\n return _logout.apply(this, arguments);\n }\n return logout;\n }(),\n logout_: function logout_() {}\n }\n};",null]}