|
@@ -527,10 +527,11 @@ export class InheritorContentApi extends AppServerRequestModule<DataModel> {
|
|
|
super();
|
|
|
}
|
|
|
|
|
|
- async getBaseInfo<T extends DataModel>(id: number|undefined, newDataModel: new () => T) {
|
|
|
+ async getBaseInfo<T extends DataModel>(id: number|undefined, newDataModel: new () => T, contentId?: number) {
|
|
|
return (await this.post('/ich/inheritor/baseInfo', {
|
|
|
model_id: new newDataModel().modelId,
|
|
|
- content_id: id,
|
|
|
+ id,
|
|
|
+ content_id: contentId,
|
|
|
}, '基础表信息', undefined, newDataModel)).data as T;
|
|
|
}
|
|
|
/**
|
|
@@ -690,7 +691,7 @@ export class InheritorContentApi extends AppServerRequestModule<DataModel> {
|
|
|
return await this.getBaseInfo(id, InheritorInfo);
|
|
|
}
|
|
|
async getSeminarInfo(id: number|undefined) {
|
|
|
- return await this.getBaseInfo(id, SeminarInfo);
|
|
|
+ return await this.getBaseInfo(undefined, SeminarInfo, id);
|
|
|
}
|
|
|
async getIchExpandInfo(id: number|undefined) {
|
|
|
return await this.getExpandInfo(id, IchExpandInfo);
|