|
|
@@ -571,21 +571,21 @@ export default {
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
- async handleAdd() {
|
|
|
- console.log(this.queryParams.parentId, "this.queryParams.parentId");
|
|
|
- console.log(this.form.parentId, "this.form.parentId");
|
|
|
+ async handleAdd() {
|
|
|
+ // console.log(this.queryParams.parentId, "this.queryParams.parentId");
|
|
|
+ // console.log(this.form.parentId, "this.form.parentId");
|
|
|
this.reset();
|
|
|
if (this.queryParams.parentId != undefined) {
|
|
|
if (this.pId != -1) {
|
|
|
- await deptTreeSelect().then((response) => {
|
|
|
+ await deptTreeSelect().then((response) => {
|
|
|
this.deptOptions2 = response.data;
|
|
|
this.defaultKeys.push(response.data[0].id);
|
|
|
});
|
|
|
}
|
|
|
this.form.parentId = this.queryParams.parentId;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "新增";
|
|
|
}
|
|
|
- this.open = true;
|
|
|
- this.title = "新增";
|
|
|
},
|
|
|
/** 展开/折叠操作 */
|
|
|
toggleExpandAll() {
|