| | |
| | | <template> |
| | | <view class="normal-login-container"> |
| | | <view class="logo-content"> |
| | | <!-- <image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">--> |
| | | <!-- </image>--> |
| | | <text>账号密码登录</text> |
| | | </view> |
| | | <view class="login-form-content"> |
| | |
| | | } |
| | | |
| | | function getUserLoginFacotryList() { |
| | | if(loginForm.value.username){ |
| | | userLoginFacotryList({userName:loginForm.value.username}).then(res => { |
| | | userLoginFacotryList({userName:loginForm.value.username}).then(res => { |
| | | // 检查res.data是否为数组 |
| | | if (res.data && Array.isArray(res.data)) { |
| | | // 重新组装数据格式:deptId变成id,deptName变成name |
| | |
| | | modal.msgError('获取公司列表失败:', error) |
| | | factoryList.value = [] |
| | | }) |
| | | }else { |
| | | factoryList.value = [] |
| | | } |
| | | } |
| | | |
| | | async function handleLogin() { |
| | |
| | | |
| | | .normal-login-container { |
| | | width: 100%; |
| | | height: 100vh; |
| | | |
| | | .logo-content { |
| | | width: 100%; |
| | | width: 90%; |
| | | font-weight: 400; |
| | | font-size: 30px; |
| | | color: #333333; |