解决选择人员搜索时,会只添加当前选择的人问题
Some checks failed
Check / lint (push) Has been cancelled
Check / typecheck (push) Has been cancelled
Check / build (build, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:app, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:app, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Has been cancelled
Some checks failed
Check / lint (push) Has been cancelled
Check / typecheck (push) Has been cancelled
Check / build (build, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:app, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:app, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Has been cancelled
This commit is contained in:
parent
f6038e95a0
commit
d494d514b5
@ -12,7 +12,17 @@
|
|||||||
:height="props?.selectAreaHeight"
|
:height="props?.selectAreaHeight"
|
||||||
>
|
>
|
||||||
<div class="select-members">
|
<div class="select-members">
|
||||||
<div class="search-member" v-if="props?.manageType !== 'removeMembers'">
|
<div
|
||||||
|
class="search-member"
|
||||||
|
v-if="
|
||||||
|
props?.manageType !== 'removeMembers' &&
|
||||||
|
!(
|
||||||
|
props?.manageType === 'admin' &&
|
||||||
|
(groupParams.groupInfo.group_type === 2 ||
|
||||||
|
groupParams.groupInfo.group_type === 4)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>
|
||||||
<customInput
|
<customInput
|
||||||
:searchText="state.searchText"
|
:searchText="state.searchText"
|
||||||
@inputSearchText="inputSearchText"
|
@inputSearchText="inputSearchText"
|
||||||
@ -380,9 +390,11 @@ const handleClickItem = (item) => {
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(props?.manageType === 'searchRecord'){
|
if (props?.manageType === 'searchRecord') {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/search/searchByCondition/index?condition=member&groupMemberId=' + item.id
|
url:
|
||||||
|
'/pages/search/searchByCondition/index?condition=member&groupMemberId=' +
|
||||||
|
item.id,
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -422,15 +434,15 @@ const assembleAlphabetMemberList = async (newMemberList) => {
|
|||||||
|
|
||||||
// 创建一个对象来存储所有分组的数据
|
// 创建一个对象来存储所有分组的数据
|
||||||
let groupedData = {
|
let groupedData = {
|
||||||
'#': []
|
'#': [],
|
||||||
}
|
}
|
||||||
alphabet.forEach(letter => {
|
alphabet.forEach((letter) => {
|
||||||
groupedData[letter] = []
|
groupedData[letter] = []
|
||||||
})
|
})
|
||||||
|
|
||||||
// 对数据进行分组
|
// 对数据进行分组
|
||||||
if (newMemberList) {
|
if (newMemberList) {
|
||||||
newMemberList.forEach(item => {
|
newMemberList.forEach((item) => {
|
||||||
const key = item.key?.toUpperCase()
|
const key = item.key?.toUpperCase()
|
||||||
if (alphabet.includes(key)) {
|
if (alphabet.includes(key)) {
|
||||||
groupedData[key].push(item)
|
groupedData[key].push(item)
|
||||||
@ -612,7 +624,7 @@ const checkBoxChange = (e) => {
|
|||||||
//点击确认选择的成员
|
//点击确认选择的成员
|
||||||
const confirmSelectMembers = () => {
|
const confirmSelectMembers = () => {
|
||||||
let selectedUserIds = ''
|
let selectedUserIds = ''
|
||||||
let itemList = dialogueParams.memberList
|
let itemList = dialogueStore.members
|
||||||
let positionInfos = []
|
let positionInfos = []
|
||||||
let selectUserInfos = []
|
let selectUserInfos = []
|
||||||
if (
|
if (
|
||||||
@ -788,4 +800,3 @@ defineExpose({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user