| | |
| | | if (valid) { |
| | | var url = this.$systemconfig.basePath + '/ffzf/user/login'; |
| | | this.$byutil.postData(this,url,this.ruleForm,res=>{ |
| | | if (res.code == 0) { |
| | | let data = res.data; |
| | | if (data) { |
| | | localStorage.userId = data.id; |
| | |
| | | // this.$router.push({'path': '/index'}); |
| | | // } |
| | | } |
| | | }else { |
| | | this.$message.error(res.msg); |
| | | } |
| | | |
| | | }) |
| | | } else { |
| | | return false; |
| | |
| | | children:[ |
| | | { |
| | | icon: 'el-icon-user-solid', |
| | | name: '巡检登记', |
| | | name: '巡检记录管理', |
| | | parentId: 4, |
| | | indexUrl: 'inspectionRegistration' |
| | | }, |
| | | { |
| | | icon: 'el-icon-user-solid', |
| | | name: '维修维护管理软件', |
| | | name: '维修维护管理', |
| | | parentId: 4, |
| | | indexUrl: 'repairAndMaintenance' |
| | | }, |