|
@@ -13,11 +13,7 @@
|
|
|
<div class="form-container">
|
|
<div class="form-container">
|
|
|
<el-form :model="ruleForm" :rules="rules" ref="form">
|
|
<el-form :model="ruleForm" :rules="rules" ref="form">
|
|
|
<el-form-item prop="phone">
|
|
<el-form-item prop="phone">
|
|
|
- <el-input
|
|
|
|
|
- @blur="check"
|
|
|
|
|
- placeholder="请输入手机号"
|
|
|
|
|
- v-model="ruleForm.phone"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-input placeholder="请输入手机号" v-model="ruleForm.phone">
|
|
|
<template v-slot:prepend>
|
|
<template v-slot:prepend>
|
|
|
<el-button icon="el-icon-mobile-phone"></el-button>
|
|
<el-button icon="el-icon-mobile-phone"></el-button>
|
|
|
</template>
|
|
</template>
|
|
@@ -25,7 +21,6 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item prop="password">
|
|
<el-form-item prop="password">
|
|
|
<el-input
|
|
<el-input
|
|
|
- @blur="check"
|
|
|
|
|
type="password"
|
|
type="password"
|
|
|
placeholder="请输入密码"
|
|
placeholder="请输入密码"
|
|
|
v-model="ruleForm.password"
|
|
v-model="ruleForm.password"
|
|
@@ -61,7 +56,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import { ref, reactive, toRefs } from "vue";
|
|
import { ref, reactive, toRefs } from "vue";
|
|
|
-import { Notification } from "element3";
|
|
|
|
|
|
|
+import { ElNotification } from "element-plus";
|
|
|
import store from "../../store";
|
|
import store from "../../store";
|
|
|
import router from "../../router";
|
|
import router from "../../router";
|
|
|
|
|
|
|
@@ -70,9 +65,6 @@ import api from "../../apis/fetch";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
setup() {
|
|
setup() {
|
|
|
- function print() {
|
|
|
|
|
- this.$check();
|
|
|
|
|
- }
|
|
|
|
|
const form = ref(null);
|
|
const form = ref(null);
|
|
|
const ruleForm = reactive({
|
|
const ruleForm = reactive({
|
|
|
ruleForm: {
|
|
ruleForm: {
|
|
@@ -94,7 +86,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
function check() {
|
|
function check() {
|
|
|
- form.value.validate((valid) => {});
|
|
|
|
|
|
|
+ // form.value.validate((valid) => {});
|
|
|
}
|
|
}
|
|
|
function login() {
|
|
function login() {
|
|
|
form.value.validate(async (valid) => {
|
|
form.value.validate(async (valid) => {
|
|
@@ -105,7 +97,7 @@ export default {
|
|
|
password: md5(password).toUpperCase(),
|
|
password: md5(password).toUpperCase(),
|
|
|
});
|
|
});
|
|
|
if (res.data.status == 0) {
|
|
if (res.data.status == 0) {
|
|
|
- Notification.success({
|
|
|
|
|
|
|
+ ElNotification.success({
|
|
|
title: "成功",
|
|
title: "成功",
|
|
|
duration: 2000,
|
|
duration: 2000,
|
|
|
message: res.data.msg,
|
|
message: res.data.msg,
|
|
@@ -119,7 +111,7 @@ export default {
|
|
|
store.commit("changeLogin", true);
|
|
store.commit("changeLogin", true);
|
|
|
router.replace({ path: "/cargoOwnerManage/cargoOwnerList" });
|
|
router.replace({ path: "/cargoOwnerManage/cargoOwnerList" });
|
|
|
} else {
|
|
} else {
|
|
|
- Notification.error({
|
|
|
|
|
|
|
+ ElNotification.error({
|
|
|
title: "错误",
|
|
title: "错误",
|
|
|
duration: 3000,
|
|
duration: 3000,
|
|
|
message: res.data.msg,
|
|
message: res.data.msg,
|
|
@@ -141,7 +133,6 @@ export default {
|
|
|
...toRefs(ruleForm),
|
|
...toRefs(ruleForm),
|
|
|
...toRefs(rules),
|
|
...toRefs(rules),
|
|
|
login,
|
|
login,
|
|
|
- check,
|
|
|
|
|
goBeian,
|
|
goBeian,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|