hz-zhhq-web/node_modules/.cache/babel-loader/c218161822618ed65a17d1d97d1...

1 line
8.0 KiB
JSON

{"remainingRequest":"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\\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":["\"use strict\";\n\nvar _interopRequireDefault = require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _regeneratorRuntime2 = _interopRequireDefault(require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/regeneratorRuntime.js\"));\nrequire(\"regenerator-runtime/runtime\");\nvar _asyncToGenerator2 = _interopRequireDefault(require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/asyncToGenerator.js\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/objectSpread2.js\"));\nvar _vuex = require(\"vuex\");\nvar _Breadcrumb = _interopRequireDefault(require(\"@/components/Breadcrumb\"));\nvar _Hamburger = _interopRequireDefault(require(\"@/components/Hamburger\"));\nvar _ErrorLog = _interopRequireDefault(require(\"@/components/ErrorLog\"));\nvar _jsCookie = _interopRequireDefault(require(\"js-cookie\"));\nvar _jsMd = _interopRequireDefault(require(\"js-md5\"));\nvar _cryptoJs = _interopRequireDefault(require(\"crypto-js\"));\nvar _getdata = require(\"@/api/getdata\");\nvar _auth = require(\"@/utils/auth\");\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// import Screenfull from \"@/components/Screenfull\";\n// import SizeSelect from \"@/components/SizeSelect\";\n// import LangSelect from \"@/components/LangSelect\";\n// import Search from \"@/components/HeaderSearch\";\n\nvar KEY = _cryptoJs.default.enc.Utf8.parse(\"greenh5java12345\");\nvar IV = _cryptoJs.default.enc.Utf8.parse(\"greenh5java12345\");\nvar md5s = 'greenh5';\nvar _default = exports.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.default,\n Hamburger: _Hamburger.default,\n ErrorLog: _ErrorLog.default\n // Screenfull,\n // SizeSelect,\n // LangSelect,\n // Search\n },\n computed: (0, _objectSpread2.default)({}, (0, _vuex.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 (0, _getdata.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 (0, _getdata.OutLogin)().then(function (res) {\n var iscId = (0, _auth.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 (0, _auth.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 (0, _getdata.ModifyPoss)(content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n (0, _getdata.OutLogin)().then(function (res) {\n (0, _auth.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 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {\n return (0, _regeneratorRuntime2.default)().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]}