引用组件
图表组件
import WidgetDisplay from 'src/pages/customPage/components/WidgetContent/WidgetDisplay';
<WidgetDisplay
ids={
{
worksheetId: '',
}
}
value=""
type={1}
/>
成员选择组件
import 'dialogSelectUser';
$(this).dialogSelectUser({
title: '',
showMoreInvite: false,
fromType: 4,
SelectUserSettings: {
filterAll: true,
filterFriend: true,
filterOthers: true,
filterOtherProject: true,
filterAccountIds: [],
projectId: '',
unique: true,
callback: (users) => {},
},
});
部门选择组件
import DialogSelectGroups from 'src/components/dialogSelectDept';
new DialogSelectGroups({
projectId: '',
isIncludeRoot: false,
unique: true,
showCreateBtn: false,
selectFn: (departments) => {},
});
职位选择组件
import DialogSelectJob from 'src/components/DialogSelectJob';
new DialogSelectJob({
projectId: '',
onSave: jobs => {},
});
创建日程
import 'createCalendar';
$.CreateCalendar({
Start: null,
End: null,
AllDay: false,
MemberArray: [{
accountId: '',
avatar: '',
fullname: '',
}],
});