| | |
| | | <template> |
| | | <div class v-loading="vLoading" :style="`width: ${currentWidth}px;height:${currentHeight}px`"> |
| | | <div class="web-site"> |
| | | <a href="http://www.aiotlink.com" target="_blank">www.aiotlink.com</a> |
| | | <a href="http://www.smartai.com" target="_blank">www.smartai.com</a> |
| | | </div> |
| | | <licence /> |
| | | <div class="right-bg" style> |
| | |
| | | </div> |
| | | <div class="left-bg"> |
| | | <div class="login-logo"> |
| | | <img src="../../assets/img/login-logo.png" alt width="105px" height="105px" /> |
| | | <img src="/images/login-logo.png" alt width="105px" height="105px" /> |
| | | </div> |
| | | <div class="login-com"> |
| | | <span>北京贝思科技术有限公司</span> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <p class="gradient-text gradient-text-one">——— {{serverTitle || '智 能 计 算 节 点 — ReID'}} ———</p> |
| | | <p class="gradient-text gradient-text-one">——— {{serverTitle || 'SmartAI — ReID'}} ———</p> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { tologin, getLoginUserData, getServerName } from './api.ts' |
| | | import ParticleNetwork from '@/components/ParticleNetwork' |
| | | import ParticleNetwork from './ParticleNetwork' |
| | | import Licence from '@/components/licence' |
| | | import { getMenuListData, findButtonAuthoritys, findInArr } from "@/api/utils"; |
| | | |
| | | export default { |
| | | name: 'login-pgae', |
| | |
| | | currentHeight: 1057, |
| | | currentWidth: 1920 |
| | | }), |
| | | created() { |
| | | this.getServerName() |
| | | this.getScreenHeight() |
| | | }, |
| | | mounted() { |
| | | console.log(this.serverTitle) |
| | | }, |
| | | watch: {}, |
| | | beforeDestroy() { |
| | | window.onresize = null |
| | | }, |
| | | methods: { |
| | | systemLogin() { |
| | | this.nullRule = this.rules |
| | |
| | | type: 'success', |
| | | message: '登录成功!' |
| | | }) |
| | | // await this.getMenuList() |
| | | // this.$router.push('/Layout/Video') |
| | | location.assign("/view/desktop") |
| | | |
| | | // 获取权限 |
| | | await this.getMenuList() |
| | | location.assign("/view/desktop/") |
| | | return json |
| | | } else { |
| | | this.$notify({ |
| | |
| | | async getServerName() { |
| | | let res = await getServerName() |
| | | if (res && res.success) { |
| | | console.log(res.data.serverName) |
| | | this.serverTitle = res.data.serverName |
| | | window.document.title = res.data.serverName |
| | | ? res.data.serverName |
| | | : '智 能 计 算 节 点' |
| | | : 'SmartAI' |
| | | sessionStorage.setItem('title', res.data.serverName) |
| | | } |
| | | }, |
| | | async getMenuList() { |
| | | let results = await getMenuListData({}); |
| | | if (results && results.success) { |
| | | /* 存储权限 */ |
| | | let buttonAuthoritys = results.data; |
| | | // console.log(this.$route.query.is_loginsss) |
| | | if (results && results.length && this.$route.query.is_login) { |
| | | this.$router.replace(results[0].url); |
| | | } |
| | | sessionStorage.setItem("buttonAuthoritys", "," + buttonAuthoritys + ","); |
| | | sessionStorage.setItem("menuInfo", JSON.stringify(results)); |
| | | } else { |
| | | this.$toast({ |
| | | type: "error", |
| | | message: "菜单获取失败" |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getServerName() |
| | | this.getScreenHeight() |
| | | }, |
| | | watch: {}, |
| | | beforeDestroy() { |
| | | window.onresize = null |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss"> |
| | |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | background-image: url("../../assets/img/login-net.png"); |
| | | background-image: url("/images/login-net.png"); |
| | | |
| | | width: 100%; |
| | | height: 100%; |