| | |
| | | align: "center", |
| | | selection: true, |
| | | column: column, |
| | | labelWidth:110, |
| | | labelWidth: 110, |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | // console.log(params.deptId); |
| | | if (this.fromDeptId != undefined) { |
| | | params["deptId"] = this.fromDeptId; |
| | | this.option.column[4].search = false; |
| | | this.option.column[6].search = false; |
| | | this.option.column[6].hide = true; |
| | | this.option.column[6].addDisplay = false; |
| | | this.option.column[6].editDisplay = false; |
| | | for (let k in this.option.column) { |
| | | if (this.option.column[k].prop == "deptId") { |
| | | this.option.column[k].search = false; |
| | | this.option.column[k].hide = true; |
| | | this.option.column[k].addDisplay = false; |
| | | this.option.column[k].editDisplay = false; |
| | | } |
| | | } |
| | | // this.option.column[4]. = false; |
| | | // this.option.column[6].search = false; |
| | | // this.option.column[6].hide = true; |
| | | // this.option.column[6].addDisplay = false; |
| | | // this.option.column[6].editDisplay = false; |
| | | } else { |
| | | this.option.column[4].search = true; |
| | | this.option.column[6].search = true; |
| | | this.option.column[6].hide = false; |
| | | this.option.column[6].addDisplay = true; |
| | | this.option.column[6].editDisplay = true; |
| | | for (let k in this.option.column) { |
| | | if (this.option.column[k].prop == "deptId") { |
| | | this.option.column[k].search = true; |
| | | this.option.column[k].hide = false; |
| | | this.option.column[k].addDisplay = true; |
| | | this.option.column[k].editDisplay = true; |
| | | } |
| | | } |
| | | // this.option.column[4].search = true; |
| | | // this.option.column[6].search = true; |
| | | // this.option.column[6].hide = false; |
| | | // this.option.column[6].addDisplay = true; |
| | | // this.option.column[6].editDisplay = true; |
| | | } |
| | | getdata( |
| | | page.currentPage, |