|
|
|
@ -2,6 +2,7 @@ |
|
|
|
<div class="user-add-or-update"> |
|
|
|
<el-dialog |
|
|
|
width="530px" |
|
|
|
@close="closeDialog" |
|
|
|
:title="!dataForm.id ? buttons.add :buttons.edit" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:visible.sync="visible"> |
|
|
|
@ -227,6 +228,18 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
closeDialog(){ |
|
|
|
this.dataForm.id = 0 |
|
|
|
this.dataForm.userName = '' |
|
|
|
this.dataForm.password = '' |
|
|
|
this.dataForm.comfirmPassword = '' |
|
|
|
this.dataForm.email = '' |
|
|
|
this.dataForm.mobile = '' |
|
|
|
this.dataForm.roleIdList = [] |
|
|
|
this.dataForm.status = 1 |
|
|
|
this.dataForm.site = '' |
|
|
|
this.dataForm.userDisplay = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
|