| | |
| | | }, |
| | | ], |
| | | }, |
| | | useifid: 266, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject(this.option1.column, "deptId"); |
| | | deptColumn.search = false; |
| | | deptColumn.hide = true; |
| | | this.useifid = this.userInfo.dept_id; |
| | | } else { |
| | | const deptColumn = this.findObject( |
| | | this.option1.column, |
| | |
| | | // const userColumn = this.findObject(this.option1.column, "userIds"); |
| | | // userColumn.dicUrl = "/api/blade-user/page-security-units?deptId="+this.userInfo.dept_id; |
| | | // } |
| | | |
| | | if (this.useifid != 266) { |
| | | form["deptId"] = this.useifid; |
| | | } |
| | | adddata1(form).then( |
| | | (res) => { |
| | | this.onLoad1(this.page1); |
| | |
| | | // const userColumn = this.findObject(this.option1.column, "userIds"); |
| | | // userColumn.dicUrl = "/api/blade-user/page-security-units?deptId="+this.userInfo.dept_id; |
| | | // } |
| | | if (this.useifid != 266) { |
| | | row["deptId"] = this.useifid; |
| | | } |
| | | update1(row).then( |
| | | () => { |
| | | this.onLoad1(this.page1); |
| | |
| | | } else { |
| | | this.initData(1); |
| | | } |
| | | if (this.useifid != 266) { |
| | | values["deptId"] = this.useifid; |
| | | } |
| | | |
| | | getdata1( |
| | | page.currentPage, |