| | |
| | | }) |
| | | } |
| | | |
| | | //查询系统名称 |
| | | export const searchPlatformName = (data) => { |
| | | return axios({ |
| | | method: 'post', |
| | | url: 'PageParamAction!findByCategoryId', |
| | | data: 'json=' + JSON.stringify({ categoryId: 5 }) |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * 获取维护员告警列表 |
| | | */ |
| | |
| | | <div class="loginDiv"> |
| | | <div class="logo-bg"></div> |
| | | <div class="login-con"> |
| | | <div class="appName">成都石化告警APP</div> |
| | | <div class="appName">{{ platformName }}</div> |
| | | <div class="login-title">登录</div> |
| | | <div class="lineInput"> |
| | | <img src="../assets/img/login-ico1.png" class="ico1"> |
| | |
| | | |
| | | <script> |
| | | import { |
| | | login |
| | | login, |
| | | searchPlatformName |
| | | } from "@/assets/js/api"; |
| | | import { |
| | | mapMutations, |
| | |
| | | data() { |
| | | return { |
| | | userName: '', |
| | | password: '' |
| | | password: '', |
| | | platformName: "", |
| | | } |
| | | }, |
| | | mounted() { |
| | | |
| | | this.searchPlatformName(); |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['setUserPower']), |
| | | searchPlatformName() { |
| | | searchPlatformName() |
| | | .then((res) => { |
| | | let rs = JSON.parse(res.data.result); |
| | | if (rs.code == 1) { |
| | | let data = rs.data[0]; |
| | | this.platformName = data.param; |
| | | } else { |
| | | this.platformName = "蓄电池后台监控管理平台"; |
| | | } |
| | | sessionStorage.setItem("platformName", this.platformName); |
| | | }) |
| | | .catch((error) => { |
| | | this.platformName = "蓄电池后台监控管理平台"; |
| | | sessionStorage.setItem("platformName", this.platformName); |
| | | }); |
| | | }, |
| | | // 登录 |
| | | submit() { |
| | | let self = this; |