1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 02:10:24 +00:00

add get all departments api

This commit is contained in:
王健辉
2019-05-09 21:26:20 +08:00
parent 3b60ab2b67
commit 60034a0dae
4 changed files with 81 additions and 3 deletions

View File

@@ -34,11 +34,11 @@ class TransferDialog extends React.Component {
}
componentDidMount() {
seafileAPI.shareableGroups().then((res) => {
seafileAPI.listDepartments().then((res) => {
for (let i = 0 ; i < res.data.length; i++) {
let obj = {};
obj.value = res.data[i].name;
obj.email = `${res.data[i].id}@seafile_group`;
obj.email = res.data[i].email;
obj.label = res.data[i].name;
this.options.push(obj);
}