自动授权

beta-enc
yishiqihuasheng 2 years ago
parent 03d03dce71
commit e5b651ff5b
  1. 3
      jianshui-ui/src/api/freedom/login.js
  2. 18
      jianshui-ui/src/views/freedom/login.vue

@ -5,7 +5,8 @@ export function login(data) {
return request({ return request({
url: '/api/invoice_all/v1/qdLogin', url: '/api/invoice_all/v1/qdLogin',
method: 'post', method: 'post',
data: data data: data,
timeout : 60000
}) })
} }

@ -96,9 +96,9 @@
</template> </template>
<script> <script>
import {freedomLogin,submitNote} from "@/api/freedom/login"; import {login,submitNote} from "@/api/freedom/login";
export default { export default {
name: "login", name: "Login",
data() { data() {
let checkedFn = (rule, value, callback) => { let checkedFn = (rule, value, callback) => {
if (!value) { if (!value) {
@ -149,8 +149,8 @@
{ required: true, message: '请输入个人密码', trigger: 'blur' } { required: true, message: '请输入个人密码', trigger: 'blur' }
], ],
checked: [ checked: [
// { validator: checkedFn, trigger: "change" } { validator: checkedFn, trigger: "change" }
{ type: 'array', required: true, message: '请勾选同意协议', trigger: 'change' } // { type: 'array', required: true, message: '', trigger: 'change' }
] ]
} }
}; };
@ -159,11 +159,11 @@
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
alert('submit!'); // alert('submit!');
this.ruleForm.dlsfmm = this.ruleForm.gsnsmm; this.ruleForm.nsrInfo.dlsfmm = this.ruleForm.nsrInfo.gsnsmm;
this.ruleForm.bsryxz = this.ruleForm.zjh; this.ruleForm.nsrInfo.bsryxz = this.ruleForm.nsrInfo.zjh;
this.ruleForm.gsnsyhm = this.ruleForm.zjh; this.ruleForm.nsrInfo.gsnsyhm = this.ruleForm.nsrInfo.zjh;
freedomLogin(this.ruleForm).then(res=>{ login(this.ruleForm).then(res=>{
if (res.code == 200){ if (res.code == 200){
this.ruleForm.traceno = res.msg; this.ruleForm.traceno = res.msg;
this.ruleForm.show = false; this.ruleForm.show = false;

Loading…
Cancel
Save