修改辽宁嵌入
This commit is contained in:
@@ -12,8 +12,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<el-form :rules="rules" ref="formRef" size="large" class="login-form" :model="form">
|
<el-form :rules="rules" ref="formRef" size="large" class="login-form" :model="form">
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input ref="usernameRef" v-model="form.username" type="text" clearable placeholder="用户名"
|
<el-input
|
||||||
autocomplete="off">
|
ref="usernameRef"
|
||||||
|
v-model="form.username"
|
||||||
|
type="text"
|
||||||
|
clearable
|
||||||
|
placeholder="用户名"
|
||||||
|
autocomplete="off"
|
||||||
|
>
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<!-- <span class="iconfont icon-yonghu" style="color: var(--el-color-primary)"></span> -->
|
<!-- <span class="iconfont icon-yonghu" style="color: var(--el-color-primary)"></span> -->
|
||||||
<Icon name="fa fa-user" style="color: var(--el-color-primary); font-size: 16px" />
|
<Icon name="fa fa-user" style="color: var(--el-color-primary); font-size: 16px" />
|
||||||
@@ -21,8 +27,13 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="password">
|
<el-form-item prop="password">
|
||||||
<el-input ref="passwordRef" v-model="form.password" type="password" placeholder="密码"
|
<el-input
|
||||||
autocomplete="off">
|
ref="passwordRef"
|
||||||
|
v-model="form.password"
|
||||||
|
type="password"
|
||||||
|
placeholder="密码"
|
||||||
|
autocomplete="off"
|
||||||
|
>
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<Icon name="local-password" style="color: var(--el-color-primary); font-size: 16px" />
|
<Icon name="local-password" style="color: var(--el-color-primary); font-size: 16px" />
|
||||||
<!-- <span class="iconfont icon-mima" style="color: var(--el-color-primary)"></span> -->
|
<!-- <span class="iconfont icon-mima" style="color: var(--el-color-primary)"></span> -->
|
||||||
@@ -30,8 +41,13 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button :loading="state.submitLoading" class="submit-btn" round type="info"
|
<el-button
|
||||||
@click="onSubmit(formRef)">
|
:loading="state.submitLoading"
|
||||||
|
class="submit-btn"
|
||||||
|
round
|
||||||
|
type="info"
|
||||||
|
@click="onSubmit(formRef)"
|
||||||
|
>
|
||||||
登录
|
登录
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -170,18 +186,20 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const LNonSubmit = async () => {
|
const LNonSubmit = async () => {
|
||||||
|
|
||||||
state.submitLoading = true
|
state.submitLoading = true
|
||||||
loginLNqr()
|
loginLNqr()
|
||||||
.then(res => {
|
.then(res => {
|
||||||
userInfo.dataFill(res.data)
|
form.username = res.data.username
|
||||||
state.submitLoading = false
|
form.password = res.data.password
|
||||||
getSysConfig().then(res => {
|
onSubmit(formRef.value)
|
||||||
window.localStorage.setItem('sysdata', JSON.stringify(res.data))
|
// userInfo.dataFill(res.data)
|
||||||
})
|
// state.submitLoading = false
|
||||||
router.push({
|
// getSysConfig().then(res => {
|
||||||
path: '/'
|
// window.localStorage.setItem('sysdata', JSON.stringify(res.data))
|
||||||
})
|
// })
|
||||||
|
// router.push({
|
||||||
|
// path: '/'
|
||||||
|
// })
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
//
|
//
|
||||||
@@ -189,7 +207,6 @@ const LNonSubmit = async () => {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
state.submitLoading = false
|
state.submitLoading = false
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user