|
|
@@ -14,6 +14,7 @@
|
|
|
:icon="item.icon"
|
|
|
:title="item.title"
|
|
|
:desc="item.desc"
|
|
|
+ :extra="item.extra"
|
|
|
:enable="typeof item.enable === 'string' ? canCollect(item.enable) : item.enable"
|
|
|
@click="handleClick(item)"
|
|
|
/>
|
|
|
@@ -54,7 +55,11 @@ async function loadList() {
|
|
|
currentTaskDefItems.value = TaskRootDef
|
|
|
}
|
|
|
if (props.taskPid >= 0) {
|
|
|
- const res = (await VillageApi.getCatalogList(props.villageId, props.taskPid));
|
|
|
+ const res = (await VillageApi.getCatalogList(
|
|
|
+ props.villageId,
|
|
|
+ props.villageVolunteerId,
|
|
|
+ props.taskPid
|
|
|
+ ));
|
|
|
if (res.length === 0)
|
|
|
return;
|
|
|
currentTaskDefItems.value = res
|
|
|
@@ -64,6 +69,7 @@ async function loadList() {
|
|
|
const formDefine = collectModuleInternalName ? getVillageInfoForm(collectModuleInternalName, -1) : undefined;
|
|
|
return {
|
|
|
...item,
|
|
|
+ extra: item.total >= 0 ? `采集数:${item.total}` : '',
|
|
|
enable: canCollectCatalog(item.id),
|
|
|
catalogItem: item,
|
|
|
goForm: collectModuleInternalName ? [
|