|  |  | 
 |  |  |       this.title = title | 
 |  |  |       this.categorys = JSON.parse(JSON.stringify(categorys||[])); | 
 |  |  |       // this.categorys = this.getTreeData(this.categorys) | 
 |  |  |       console.log(this.categorys) | 
 |  |  |       console.log(parentId) | 
 |  |  |       this.visible = true | 
 |  |  |       this.form = { | 
 |  |  |         id: null, | 
 |  |  | 
 |  |  |         remark: '', | 
 |  |  |         categoryList: [], | 
 |  |  |         sortnum: null, | 
 |  |  |         parentId: parentId | 
 |  |  |         parentId: parentId || null | 
 |  |  |       } | 
 |  |  |       this.form.type = categoryType | 
 |  |  |       // 新建 | 
 |  |  | 
 |  |  |       if (target == null) { | 
 |  |  |         this.$nextTick(() => { | 
 |  |  |           this.$refs.form.resetFields() | 
 |  |  |           this.form.parentId = parentId | 
 |  |  |           this.form[this.configData['field.id']] = null | 
 |  |  |           this.form.categoryList = [] | 
 |  |  |           /* if (parentIdPath && parentIdPath != null) { |