diff --git a/pages/modify_visitor/modify_visitor.vue b/pages/modify_visitor/modify_visitor.vue index 3d42ac0..7ced801 100644 --- a/pages/modify_visitor/modify_visitor.vue +++ b/pages/modify_visitor/modify_visitor.vue @@ -63,21 +63,20 @@ if(this.adding) return this.adding = true var param = new Object() - param.real_name = this.name - param.id_no = this.idcardExt - param.mobile = this.phone + param.name = this.name + param.idcard_ext = this.idcardExt + param.phone = this.phone var that = this var addtimer = setTimeout(function() { that.adding = false }, 5000); - var req = 'client/user/visit_user/' + var req = 'setting_visitor/' var method = 'POST' if(this.vid){ - req = 'client/user/visit_user/'+this.vid+'/' - method = 'put' + param.id = this.vid } - + this.$http.req(req, param, method, true).then(data=>{ clearTimeout(addtimer) this.adding = false @@ -107,7 +106,6 @@ }, submit(){ this.checkSubmit() - this.canSubmit = true if(!this.canSubmit) return this.add() }