|
@@ -360,7 +360,6 @@ const recommendLoader = useSimpleDataLoader(async () => {
|
|
});
|
|
});
|
|
const statsLoader = useSimpleDataLoader(async () => {
|
|
const statsLoader = useSimpleDataLoader(async () => {
|
|
const data = (await IndexContent.getStats());
|
|
const data = (await IndexContent.getStats());
|
|
- console.log(data);
|
|
|
|
|
|
|
|
const semiCount = (await SeminarContent.getContentList(new GetContentListParams(), 1, 6)).total;
|
|
const semiCount = (await SeminarContent.getContentList(new GetContentListParams(), 1, 6)).total;
|
|
const unmoveableCount = (await UnmoveableContent.getContentList(new GetContentListParams(), 1, 6)).total;
|
|
const unmoveableCount = (await UnmoveableContent.getContentList(new GetContentListParams(), 1, 6)).total;
|
|
@@ -369,7 +368,7 @@ const statsLoader = useSimpleDataLoader(async () => {
|
|
{
|
|
{
|
|
title: '非遗项目',
|
|
title: '非遗项目',
|
|
type: '1',
|
|
type: '1',
|
|
- datas: data.ichData.map((item: any) => {
|
|
|
|
|
|
+ datas: data.ichData.filter((p: any) => [ '人类非遗', '国家级', '省级', '市级' ].includes(p.level_text)).map((item: any) => {
|
|
return {
|
|
return {
|
|
title: item.level_text,
|
|
title: item.level_text,
|
|
value: item.total,
|
|
value: item.total,
|
|
@@ -380,7 +379,7 @@ const statsLoader = useSimpleDataLoader(async () => {
|
|
{
|
|
{
|
|
title: '非遗传承人',
|
|
title: '非遗传承人',
|
|
type: '2',
|
|
type: '2',
|
|
- datas: data.inheritorData.map((item: any) => {
|
|
|
|
|
|
+ datas: data.inheritorData.filter((p: any) => [ '国家级', '省级', '市级', '区县级' ].includes(p.title)).map((item: any) => {
|
|
return {
|
|
return {
|
|
title: item.title,
|
|
title: item.title,
|
|
value: item.total,
|
|
value: item.total,
|