Commit 8c82824d authored by huangjie's avatar huangjie

*

parent bc882f9d
...@@ -673,7 +673,6 @@ export default { ...@@ -673,7 +673,6 @@ export default {
submitForm: function() { submitForm: function() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
this.form.userName = this.form.phonenumber
if (this.form.userId != undefined) { if (this.form.userId != undefined) {
updateUser(this.form).then(response => { updateUser(this.form).then(response => {
if(response.code == 200){ if(response.code == 200){
...@@ -687,6 +686,7 @@ export default { ...@@ -687,6 +686,7 @@ export default {
} }
}); });
} else { } else {
this.form.userName = this.form.phonenumber
addUser(this.form).then(response => { addUser(this.form).then(response => {
if(response.code == 200){ if(response.code == 200){
this.$modal.msgSuccess("新增成功"); 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