|  |  |  | 
|---|
|  |  |  | parentId: null, | 
|---|
|  |  |  | disable: false, | 
|---|
|  |  |  | parentName: '', | 
|---|
|  |  |  | parentType:null | 
|---|
|  |  |  | parentType: null, | 
|---|
|  |  |  | sortnum: null | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (target != null) { | 
|---|
|  |  |  | this.form.parentId = target.id | 
|---|
|  |  |  | 
|---|
|  |  |  | this.api.create({ | 
|---|
|  |  |  | parentId: this.form.parentId, | 
|---|
|  |  |  | name: this.form.name, | 
|---|
|  |  |  | type: this.form.type | 
|---|
|  |  |  | type: this.form.type, | 
|---|
|  |  |  | sortnum: this.form.sortnum | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then(() => { | 
|---|
|  |  |  | this.visible = false | 
|---|
|  |  |  | 
|---|
|  |  |  | id: this.form.id, | 
|---|
|  |  |  | parentId: this.form.parentId, | 
|---|
|  |  |  | name: this.form.name, | 
|---|
|  |  |  | type: this.form.type | 
|---|
|  |  |  | type: this.form.type, | 
|---|
|  |  |  | sortnum: this.form.sortnum | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then(() => { | 
|---|
|  |  |  | this.visible = false | 
|---|