| | |
| | | }, |
| | | created() { |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | const deptColumn = this.findObject(this.option.column, "deptId"); |
| | | deptColumn.search = false; |
| | | deptColumn.addDisplay = false; |
| | | deptColumn.editDisplay = false; |
| | | deptColumn.viewDisplay = false; |
| | | deptColumn.hide = true; |
| | | // const deptColumn = this.findObject(this.option.column, "deptId"); |
| | | // // deptColumn.search = false; |
| | | // deptColumn.addDisplay = false; |
| | | // deptColumn.editDisplay = false; |
| | | // deptColumn.viewDisplay = false; |
| | | // deptColumn.hide = true; |
| | | // this.option.column[2]; |
| | | this.option.column[2].search = false; |
| | | this.option.column[2].addDisplay = false; |
| | | this.option.column[2].editDisplay = false; |
| | | this.option.column[2].viewDisplay = false; |
| | | this.option.column[2].hide = true; |
| | | } else { |
| | | this.option.column[2].search = true; |
| | | this.option.column[2].addDisplay = true; |
| | | this.option.column[2].editDisplay = true; |
| | | this.option.column[2].viewDisplay = true; |
| | | this.option.column[2].hide = false; |
| | | } |
| | | }, |
| | | computed: { |