自动授权

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({
url: '/api/invoice_all/v1/qdLogin',
method: 'post',
data: data
data: data,
timeout : 60000
})
}

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

Loading…
Cancel
Save