解决选择人员搜索时,会只添加当前选择的人问题
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"
|
||||
>
|
||||
<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
|
||||
:searchText="state.searchText"
|
||||
@inputSearchText="inputSearchText"
|
||||
@ -380,9 +390,11 @@ const handleClickItem = (item) => {
|
||||
}
|
||||
return
|
||||
}
|
||||
if(props?.manageType === 'searchRecord'){
|
||||
if (props?.manageType === 'searchRecord') {
|
||||
uni.navigateTo({
|
||||
url: '/pages/search/searchByCondition/index?condition=member&groupMemberId=' + item.id
|
||||
url:
|
||||
'/pages/search/searchByCondition/index?condition=member&groupMemberId=' +
|
||||
item.id,
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -422,15 +434,15 @@ const assembleAlphabetMemberList = async (newMemberList) => {
|
||||
|
||||
// 创建一个对象来存储所有分组的数据
|
||||
let groupedData = {
|
||||
'#': []
|
||||
'#': [],
|
||||
}
|
||||
alphabet.forEach(letter => {
|
||||
alphabet.forEach((letter) => {
|
||||
groupedData[letter] = []
|
||||
})
|
||||
|
||||
// 对数据进行分组
|
||||
if (newMemberList) {
|
||||
newMemberList.forEach(item => {
|
||||
newMemberList.forEach((item) => {
|
||||
const key = item.key?.toUpperCase()
|
||||
if (alphabet.includes(key)) {
|
||||
groupedData[key].push(item)
|
||||
@ -612,7 +624,7 @@ const checkBoxChange = (e) => {
|
||||
//点击确认选择的成员
|
||||
const confirmSelectMembers = () => {
|
||||
let selectedUserIds = ''
|
||||
let itemList = dialogueParams.memberList
|
||||
let itemList = dialogueStore.members
|
||||
let positionInfos = []
|
||||
let selectUserInfos = []
|
||||
if (
|
||||
@ -788,4 +800,3 @@ defineExpose({
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user