| | |
| | | xmmc: null, |
| | | pym: null, |
| | | }, |
| | | treeDate: {}, |
| | | queryParam: { |
| | | page: 1, |
| | | pageSize: 10, |
| | |
| | | proParentId: "", |
| | | deptId: "", |
| | | needReport: "Y", |
| | | proStatus:"0", |
| | | proStatus: "0", |
| | | proName: "", |
| | | proPrice: "", |
| | | sfxmId: "", |
| | |
| | | handleAdd(row) { |
| | | // this.reset(); |
| | | this.loading = true; |
| | | this.proParent = false |
| | | this.form.proPrice = 0.0; |
| | | this.form.proName = ""; |
| | | this.form.proId = null; |
| | |
| | | project.children = this.handleTree(response.data.list, "proId"); |
| | | this.key = response.data.key; |
| | | this.projectOptions.push(project); |
| | | console.log(this.projectOptions) |
| | | if (row) { |
| | | if (row.proId) { |
| | | this.form.proParentId = row.proId; |
| | | this.open = true; |
| | | } else { |
| | | } else if(this.treeDate.id){ |
| | | this.form.proParentId = this.treeDate.id |
| | | this.projectOptions.forEach(item => { |
| | | item.children.forEach(item1 => { |
| | | if(this.form.proParentId == item1.proId){ |
| | | this.form.deptId = item1.deptId |
| | | } |
| | | }) |
| | | }) |
| | | this.open = true; |
| | | }else{ |
| | | this.open = true; |
| | | } |
| | | } |
| | |
| | | }, |
| | | |
| | | obtain(vals) { |
| | | |
| | | if (this.projectOptions) { |
| | | this.selectList = vals; |
| | | } |
| | |
| | | }, |
| | | // 节点单击事件 |
| | | handleNodeClick(date) { |
| | | this.treeDate = date |
| | | if (date.qf == "0") { |
| | | this.xiugais = true; |
| | | } else { |
| | |
| | | handleUpdate1() { |
| | | this.open = true; |
| | | this.form = this.xiugaiList; |
| | | // console.log( this.form ) |
| | | this.proParent = true |
| | | // if(){ |
| | | // this.proParent = true |