|
|
|
@ -18,7 +18,7 @@ |
|
|
|
<button class='btn-search' @click="selectData()">确定</button> |
|
|
|
</div>--> |
|
|
|
<div class="subsearch"> |
|
|
|
<input class="searchbox" v-model="searchKey" placeholder="请输入人员姓名"/> |
|
|
|
<input class="searchbox" v-model="userSearch.userName" placeholder="请输入人员姓名"/> |
|
|
|
<van-icon class="ibtn-reset" name="clear" @click="cancel()" title="重置"/> |
|
|
|
<button class='btn-search' @click="queryUserList()">搜索</button> |
|
|
|
<button class='btn-search' @click="selectData()">确定</button> |
|
|
|
@ -100,7 +100,11 @@ |
|
|
|
deptName: '', |
|
|
|
parentId: '0', |
|
|
|
}, |
|
|
|
searchKey: "", |
|
|
|
userSearch: { |
|
|
|
deptId:"", |
|
|
|
userName: "", |
|
|
|
parentId:"", |
|
|
|
}, |
|
|
|
dataList: [], |
|
|
|
checked: ref([]), |
|
|
|
checkboxRefs: ref([]), |
|
|
|
@ -118,6 +122,8 @@ |
|
|
|
toDrill(deptId, parentId) { |
|
|
|
this.nextParentId = parentId; |
|
|
|
this.searchParam.parentId = deptId; |
|
|
|
this.userSearch.deptId = deptId; |
|
|
|
this.userSearch.parentId = parentId; |
|
|
|
this.queryList(); |
|
|
|
}, |
|
|
|
next() { |
|
|
|
@ -150,11 +156,11 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
queryUserList() { |
|
|
|
if (null == this.searchKey || "" == this.searchKey) { |
|
|
|
if (null == this.userSearch.userName || "" == this.userSearch.userName) { |
|
|
|
showSuccessToast('人员过多, 请输入关键字!'); |
|
|
|
return; |
|
|
|
} |
|
|
|
queryUsersNoPermission({"userName": this.searchKey}, success => { |
|
|
|
queryUsersNoPermission(this.userSearch, success => { |
|
|
|
this.dataList = []; |
|
|
|
this.userList = success.data; |
|
|
|
}, error => { |
|
|
|
@ -163,6 +169,9 @@ |
|
|
|
cancel() { |
|
|
|
this.searchParam.deptName = ''; |
|
|
|
this.searchKey = ''; |
|
|
|
this.userSearch.deptId = ""; |
|
|
|
this.userSearch.parentId = ""; |
|
|
|
this.userSearch.userName = ""; |
|
|
|
this.queryList() |
|
|
|
}, |
|
|
|
selectData() { |
|
|
|
|