|
@@ -30,7 +30,7 @@
|
|
|
<el-input v-model="form.phone" prefix-icon="el-icon-user-solid" placeholder="请输入企业账号"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-input v-model="form.passwd" prefix-icon="el-icon-lock" placeholder="请输入账号密码" show-password></el-input>
|
|
|
+ <el-input v-model="form.password" prefix-icon="el-icon-lock" placeholder="请输入账号密码" show-password></el-input>
|
|
|
</el-form-item>
|
|
|
<el-col :span="24" class="btn">
|
|
|
<el-button type="danger" @click="resetBtn">取消登录</el-button>
|
|
@@ -83,7 +83,7 @@
|
|
|
<script>
|
|
|
const _ = require('lodash');
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions: adminLogin } = createNamespacedHelpers('login');
|
|
|
+const { mapActions: adminLogin } = createNamespacedHelpers('adminLogin');
|
|
|
const { mapActions: organization } = createNamespacedHelpers('organization');
|
|
|
const { mapActions: mechanism } = createNamespacedHelpers('mechanism');
|
|
|
const { mapActions: expertLogin } = createNamespacedHelpers('expert');
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
// 管理登录
|
|
|
...adminLogin({ adminLogin: 'login' }),
|
|
|
// 企业
|
|
|
- ...organization(['login']),
|
|
|
+ ...organization(['orgLogin']),
|
|
|
// 机构
|
|
|
...mechanism({ interLogin: 'login' }),
|
|
|
// 专家
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
async thrSubmit() {
|
|
|
let data = _.get(this, 'form');
|
|
|
data.code_phone = data.phone;
|
|
|
- const res = await this.adminLogin(data);
|
|
|
+ let res = await this.adminLogin({ user: this.form });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$router.push({ path: '/adminCenter/homeIndex' });
|
|
|
}
|
|
@@ -121,7 +121,7 @@ export default {
|
|
|
async oneSubmit() {
|
|
|
let data = _.get(this, 'form');
|
|
|
data.institution_code = data.phone;
|
|
|
- const res = await this.login(data);
|
|
|
+ let res = await this.orgLogin({ user: this.form });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$router.push({ path: '/adminCenter/homeIndex' });
|
|
|
}
|