|
|
@@ -473,7 +473,6 @@ export default {
|
|
|
},
|
|
|
//联级选择器触发事件
|
|
|
handleChange(val) {
|
|
|
- console.log(val, this.formData.deptId, this.formData.name,11111)
|
|
|
if (val.length !== 0) {
|
|
|
this.formData.deptId = val.at(-1);
|
|
|
}
|
|
|
@@ -585,11 +584,20 @@ export default {
|
|
|
closeDialog() {
|
|
|
// 清空数据
|
|
|
this.deptInfo = {};
|
|
|
- this.$refs["formData"].resetFields();
|
|
|
- for (let key in this.formData) {
|
|
|
- this.formData[key] = "";
|
|
|
+ // this.$refs["formData"].resetFields();
|
|
|
+ // for (let key in this.formData) {
|
|
|
+ // this.formData[key] = "";
|
|
|
+ // }
|
|
|
+ this.formData={
|
|
|
+ roleId:'20',
|
|
|
+ id:'',
|
|
|
+ mobile:'',
|
|
|
+ email:'',
|
|
|
+ name:'',
|
|
|
+ password:'',
|
|
|
+ sex:'',
|
|
|
+ status:''
|
|
|
}
|
|
|
- this.formData.roleId='21'
|
|
|
this.dialogVisible = false;
|
|
|
},
|
|
|
// 提交
|