| | |
| | | }, |
| | | { |
| | | label: "保安公司", |
| | | prop: "deptName", |
| | | prop: "deptId", |
| | | type: "tree", |
| | | overHidden: true, |
| | | dicUrl: |
| | |
| | | }, |
| | | 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: { |
| | |
| | | // this.$message.success("页码" + val); |
| | | }, |
| | | rowSave(form, done, loading) { |
| | | form["deptId"] = this.userInfo.dept_id; |
| | | // form["deptId"] = this.userInfo.dept_id; |
| | | adddata(form).then( |
| | | (res) => { |
| | | this.onLoad(this.page); |