diff --git a/src/views/modules/common/ChooseUser.vue b/src/views/modules/common/ChooseUser.vue index c1f96aa..5cb179d 100644 --- a/src/views/modules/common/ChooseUser.vue +++ b/src/views/modules/common/ChooseUser.vue @@ -173,10 +173,9 @@ export default { this.dataListLoading = false }, getDataList (bool) { - let sql = `select a.username,a.user_display userDisplay,b.site,b.bu_no as buNo from sys_user a left join AccessBu b on a.username=b.username inner join AccessRole c on a.username = c.username and c.role_no = '${this.roleId?this.roleId:''}' where b.bu_no like '` + let sql = `select a.username,a.user_display userDisplay,b.site,b.bu_no as buNo from sys_user a inner join AccessBu b on a.username=b.username and b.bu_no = '${this.conSql}' inner join AccessRole c on a.username = c.username and c.role_no = '${this.roleId?this.roleId:''}' where ` - sql += this.conSql+"'" - sql += " and b.site = '" + this.site + "'" + sql += " b.site = '" + this.site + "'" if (bool) { sql += " and (a.username like '%" + this.param + "%' OR a.user_display like '%" + this.param + "%'" +" ) " }