mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
chore: team, orgs, search and so on (#3807)
* feat: clb search support username, memberName, contacts * feat: popup org names * feat: update team member table * feat: restore the member * feat: search user in team member table * feat: bind contact * feat: export members * feat: org tab could delete member * feat: org table search * feat: team notification account bind * feat: permission tab search * fix: wecom sso * chore(init): copy notificationAccount to user.contact * chore: adjust * fix: ts error * fix: useConfirm iconColor customization * pref: fe * fix: style * fix: fix team member manage * pref: enlarge team member pagesize * pref: initv4822 * fix: pageSize * pref: initscritpt
This commit is contained in:
4
packages/service/common/file/csv.ts
Normal file
4
packages/service/common/file/csv.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const generateCsv = (headers: string[], data: string[][]) => {
|
||||
const csv = [headers.join(','), ...data.map((row) => row.join(','))].join('\n');
|
||||
return csv;
|
||||
};
|
@@ -46,6 +46,7 @@ export async function getUserDetail({
|
||||
promotionRate: user.promotionRate,
|
||||
team: tmb,
|
||||
notificationAccount: tmb.notificationAccount,
|
||||
permission: tmb.permission
|
||||
permission: tmb.permission,
|
||||
contact: user.contact
|
||||
};
|
||||
}
|
||||
|
@@ -57,6 +57,7 @@ const UserSchema = new Schema({
|
||||
},
|
||||
fastgpt_sem: Object,
|
||||
sourceDomain: String,
|
||||
contact: String,
|
||||
|
||||
/** @deprecated */
|
||||
avatar: String
|
||||
|
@@ -36,6 +36,9 @@ const TeamMemberSchema = new Schema({
|
||||
type: Date,
|
||||
default: () => new Date()
|
||||
},
|
||||
updateTime: {
|
||||
type: Date
|
||||
},
|
||||
defaultTeam: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
|
Reference in New Issue
Block a user