|
|
@@ -461,8 +461,8 @@ export default {
|
|
|
this.pageData.deptId = this.currentTreeNode.id;
|
|
|
this.pageData.pageNum =1;
|
|
|
this.findPage();
|
|
|
- this.formData.deptId = [];
|
|
|
- this.platform(treeId);
|
|
|
+ // this.formData.deptId = [];
|
|
|
+ // this.platform(treeId);
|
|
|
},
|
|
|
platform(array) {
|
|
|
if (!array.parent) {
|
|
|
@@ -473,7 +473,9 @@ export default {
|
|
|
},
|
|
|
//联级选择器触发事件
|
|
|
handleChange(val) {
|
|
|
+ this.formData.deptId=val
|
|
|
if (val.length !== 0) {
|
|
|
+ // this.formData.deptId=val
|
|
|
this.formData.deptId = val.at(-1);
|
|
|
}
|
|
|
|
|
|
@@ -553,10 +555,10 @@ export default {
|
|
|
this.$message.info("请选择所属公司或部门");
|
|
|
return;
|
|
|
}
|
|
|
- if(this.formData.deptId){
|
|
|
- this.formData.deptId = this.formData.deptId.at(-1);
|
|
|
+ this.formData={
|
|
|
+ roleId:'20',
|
|
|
+ deptId:this.pageData.deptId
|
|
|
}
|
|
|
- this.formData.roleId='20'
|
|
|
this.dialogTitle = "新增代理人";
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
@@ -588,16 +590,16 @@ export default {
|
|
|
// for (let key in this.formData) {
|
|
|
// this.formData[key] = "";
|
|
|
// }
|
|
|
- this.formData={
|
|
|
- roleId:'20',
|
|
|
- id:'',
|
|
|
- mobile:'',
|
|
|
- email:'',
|
|
|
- name:'',
|
|
|
- password:'',
|
|
|
- sex:'',
|
|
|
- status:''
|
|
|
- }
|
|
|
+ // this.formData={
|
|
|
+ // roleId:'20',
|
|
|
+ // id:'',
|
|
|
+ // mobile:'',
|
|
|
+ // email:'',
|
|
|
+ // name:'',
|
|
|
+ // password:'',
|
|
|
+ // sex:'',
|
|
|
+ // status:''
|
|
|
+ // }
|
|
|
this.dialogVisible = false;
|
|
|
},
|
|
|
// 提交
|