|
|
@ -73,7 +73,7 @@ |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click.native="editFormVisible = false">取消</el-button> |
|
|
|
<el-button type="primary" @click.native="editSubmit" :loading="editLoading">{{btnEditText}}</el-button> |
|
|
|
<el-button type="primary" @click.native="editSubmit" :loading="editLoading">提交</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</section> |
|
|
@ -106,7 +106,6 @@ |
|
|
|
addr: '' |
|
|
|
}, |
|
|
|
editLoading: false, |
|
|
|
btnEditText: '提 交', |
|
|
|
editFormRules: { |
|
|
|
name: [ |
|
|
|
{ required: true, message: '请输入姓名', trigger: 'blur' } |
|
|
@ -185,7 +184,6 @@ |
|
|
|
_this.$confirm('确认提交吗?', '提示', {}).then(() => { |
|
|
|
_this.editLoading = true; |
|
|
|
NProgress.start(); |
|
|
|
_this.btnEditText = '提交中'; |
|
|
|
|
|
|
|
if (_this.editForm.id == 0) { |
|
|
|
//新增 |
|
|
@ -199,7 +197,6 @@ |
|
|
|
addUser(para).then((res) => { |
|
|
|
_this.editLoading = false; |
|
|
|
NProgress.done(); |
|
|
|
_this.btnEditText = '提 交'; |
|
|
|
_this.$notify({ |
|
|
|
title: '成功', |
|
|
|
message: '提交成功', |
|
|
@ -221,7 +218,6 @@ |
|
|
|
editUser(para).then((res) => { |
|
|
|
_this.editLoading = false; |
|
|
|
NProgress.done(); |
|
|
|
_this.btnEditText = '提 交'; |
|
|
|
_this.$notify({ |
|
|
|
title: '成功', |
|
|
|
message: '提交成功', |
|
|
@ -258,7 +254,9 @@ |
|
|
|
this.getUsers(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped> |
|
|
|
|
|
|
|
</style> |