mirror of
https://github.com/TangSengDaoDao/TangSengDaoDaoWeb
synced 2025-06-01 14:32:51 +00:00
fix: 🐛修复创建群聊,被邀请人的备注没有展示及不显黑名单成员
This commit is contained in:
parent
4095df1c51
commit
ed20b1ac27
@ -30,7 +30,7 @@
|
||||
"rimraf": "^5.0.5",
|
||||
"turbo": "2.0.9"
|
||||
},
|
||||
"packageManager": "yarn@4.3.1",
|
||||
"packageManager": "yarn@1.22.22",
|
||||
"engines": {
|
||||
"node": ">=18.0.0",
|
||||
"yarn": ">=1.22.19"
|
||||
|
@ -14,6 +14,8 @@ import {
|
||||
import { BasicTreeNodeData } from "@douyinfe/semi-foundation/lib/cjs/tree/foundation";
|
||||
import { WKApp, ThemeMode, WKViewQueueHeader } from "@tsdaodao/base";
|
||||
import WKAvatar from "@tsdaodao/base/src/Components/WKAvatar";
|
||||
import { ContactsStatus } from "@tsdaodao/base/src/Service/DataSource/DataSource";
|
||||
|
||||
import "./index.css";
|
||||
|
||||
interface IPorpsOrganizationalGroupNew {
|
||||
@ -185,7 +187,8 @@ export class OrganizationalGroupNew extends Component<
|
||||
}
|
||||
|
||||
OTree.push({
|
||||
label: employeesNum > 0 ? `${item.name}(${employeesNum})` : `${item.name}`,
|
||||
label:
|
||||
employeesNum > 0 ? `${item.name}(${employeesNum})` : `${item.name}`,
|
||||
value: item.dept_id,
|
||||
key: item.short_no,
|
||||
icon: (
|
||||
@ -291,12 +294,14 @@ export class OrganizationalGroupNew extends Component<
|
||||
|
||||
getFriendData() {
|
||||
const setFriendData: any[] = [];
|
||||
WKApp.dataSource.contactsList.map((item) => {
|
||||
setFriendData.push({
|
||||
name: item.name,
|
||||
uid: item.uid,
|
||||
WKApp.dataSource.contactsList
|
||||
.filter((c) => c.status !== ContactsStatus.Blacklist)
|
||||
.map((item) => {
|
||||
setFriendData.push({
|
||||
name: item.remark || item.name,
|
||||
uid: item.uid,
|
||||
});
|
||||
});
|
||||
});
|
||||
this.setState({
|
||||
friendData: [...setFriendData],
|
||||
friendSearchData: [...setFriendData],
|
||||
|
Loading…
x
Reference in New Issue
Block a user