Commit 8c82824d authored by huangjie's avatar huangjie

*

parent bc882f9d
......@@ -673,7 +673,6 @@ export default {
submitForm: function() {
this.$refs["form"].validate(valid => {
if (valid) {
this.form.userName = this.form.phonenumber
if (this.form.userId != undefined) {
updateUser(this.form).then(response => {
if(response.code == 200){
......@@ -687,6 +686,7 @@ export default {
}
});
} else {
this.form.userName = this.form.phonenumber
addUser(this.form).then(response => {
if(response.code == 200){
this.$modal.msgSuccess("新增成功");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment