hz-zhhq-web/node_modules/.cache/babel-loader/6eee4994fb1b3f35a3bfd2fee78...

1 line
5.9 KiB
JSON

{"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\\views\\login\\ywgllogin.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\login\\ywgllogin.vue","mtime":1737610069434},{"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 \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.regexp.split\";\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//\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//import { getToken } from '@/utils/auth'\nimport { userLogin2 } from \"@/api/getdata\";\nimport { setToken, setIscId } from '@/utils/auth';\nexport default {\n name: \"YwglLogin\",\n data: function data() {\n return {\n loginRules: {},\n loginForm: {\n username: \"\",\n password: \"\",\n rememberMe: false,\n code: \"\",\n uuid: \"\"\n },\n loading: false,\n // 验证码开关\n captchaOnOff: true,\n // 注册开关\n register: false,\n redirect: undefined\n };\n },\n watch: {\n $route: {\n handler: function handler(route) {\n this.redirect = route.query && route.query.redirect;\n },\n immediate: true\n }\n },\n beforeRouteEnter: function beforeRouteEnter(to, from, next) {\n console.log('从 ' + from.path + ' 进入ywgllogin');\n next(); // 必须调用next()来解决路由守卫的promise\n },\n created: function created() {\n //平台单独的登录 2024年4月16日11:23:58\n this.getLoginByNameAndTokenJ();\n },\n methods: {\n /**\n * 只传递token\n */\n getLoginByNameAndTokenJ: function getLoginByNameAndTokenJ() {\n var _this = this;\n console.log(window.location.href);\n var url = window.location.href.split(\"?\");\n var tickets = '';\n if (url.length > 1) {\n var params = url[1].split(\"#\");\n if (params.length > 0) {\n params = params[0].split(\"=\");\n if (params.length > 1) {\n tickets = params[1];\n }\n }\n }\n if (!tickets) {\n tickets = this.$route.query.ticket;\n }\n console.log(tickets);\n //调用登录的接口\n if (tickets) {\n //转圈圈,不要看到登陆页面,无感体验\n this.loading = true;\n var loginForm = {\n ticket: tickets,\n loginType: 333\n };\n console.log(loginForm);\n console.log(\"开始登录..\");\n //执行另一套登录操作\n /* this.$store.dispatch('user/login', loginForm).then(() => {\n console.log(\"登录成功了..\")\n this.$router.replace({ path:\"/\" || \"/\" }).catch(()=>{});\n this.loading = false\n })\n .catch(() => {\n this.loading = false\n }); */\n userLogin2(loginForm).then(function (res) {\n console.log(\"登录成功了..\");\n if (res.returnCode == \"1\") {\n _this.loading = false;\n\n // this.$router.replace({ name: 'home' });\n if (!res.returnData.token && !res.returnData.token2) {\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 }\n if (res.returnData.token2 && !res.returnData.token) {\n var iscId = res.returnData.token2;\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 }\n if (res.returnData.token && res.returnData.token2) {\n setToken(res.returnData.token);\n setIscId(res.returnData.token2);\n _this.$router.replace({\n path: \"\" || \"/home\"\n }).catch(function () {});\n }\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.loading = false;\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.loading = false;\n }, 300);\n });\n\n // this.$message.error(\"用户token为空\");\n } else {\n // console.log(\"tick为空..\")\n }\n }\n }\n};",null]}