|
@@ -1,6 +1,6 @@
|
|
|
|
|
|
|
|
|
|
-/* 根绝研究员id找类index */
|
|
|
|
|
|
+/* 根据研究员id找父类index */
|
|
export const findParentByid = (id,arr) => {
|
|
export const findParentByid = (id,arr) => {
|
|
let obj = arr.find(item => item.ResearcherList.some( _ => _.AdminId === id));
|
|
let obj = arr.find(item => item.ResearcherList.some( _ => _.AdminId === id));
|
|
// console.log(obj)
|
|
// console.log(obj)
|
|
@@ -16,7 +16,7 @@ const SELLERLIST = ['ficc_seller', 'rai_seller', 'ficc_group', 'rai_group','sell
|
|
// admin
|
|
// admin
|
|
const ADMINLIST = ['admin'];
|
|
const ADMINLIST = ['admin'];
|
|
|
|
|
|
-/* 获取我的日历顶部tab */
|
|
|
|
|
|
+/* 根据角色获取我的日历顶部tab */
|
|
export const getTabsByRole = (role) => {
|
|
export const getTabsByRole = (role) => {
|
|
return RESEARCHLIST.includes(role)
|
|
return RESEARCHLIST.includes(role)
|
|
? [
|
|
? [
|