Browse Source

2025-04-15

master
qiezi 9 months ago
parent
commit
3f7cb48785
  1. 5
      src/views/modules/common/ChooseUser.vue

5
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 + "%'" +" ) "
}

Loading…
Cancel
Save