|
@@ -149,7 +149,7 @@ export class TextbookComponent implements OnInit {
|
|
setOfCheckedId = new Set<string>();
|
|
setOfCheckedId = new Set<string>();
|
|
searchValue: string = '';
|
|
searchValue: string = '';
|
|
manage: boolean = false;
|
|
manage: boolean = false;
|
|
-
|
|
|
|
|
|
+ calc:number = 120
|
|
constructor(
|
|
constructor(
|
|
public tbookSer: textbookServer,
|
|
public tbookSer: textbookServer,
|
|
private route: Router,
|
|
private route: Router,
|
|
@@ -161,8 +161,9 @@ export class TextbookComponent implements OnInit {
|
|
ngOnInit() {
|
|
ngOnInit() {
|
|
this.activeRoute.paramMap.subscribe(async (params) => {
|
|
this.activeRoute.paramMap.subscribe(async (params) => {
|
|
// this.eduProcessId = params.get('id');
|
|
// this.eduProcessId = params.get('id');
|
|
|
|
+ this.calc += Object.values(this.filterObj?.btns).length * 70
|
|
this.getTextbook();
|
|
this.getTextbook();
|
|
- if (Object.values(this.filterObj.btns).some((item) => item)) {
|
|
|
|
|
|
+ if (Object.values(this.filterObj?.btns).some((item) => item)) {
|
|
this.manage = true;
|
|
this.manage = true;
|
|
}
|
|
}
|
|
if (this.filterObj.showMore) {
|
|
if (this.filterObj.showMore) {
|
|
@@ -579,10 +580,16 @@ export class TextbookComponent implements OnInit {
|
|
}
|
|
}
|
|
//导出
|
|
//导出
|
|
async exportProcess(data?: Parse.Object) {
|
|
async exportProcess(data?: Parse.Object) {
|
|
- let processId = await this.getEduProcess(
|
|
|
|
- this.tbookSer.profile.user?.department?.objectId
|
|
|
|
- );
|
|
|
|
- Parse.Cloud.run('tbookExportReport', { processId: processId }).then(
|
|
|
|
|
|
+ let bookList: Array<string> = []
|
|
|
|
+ if(data?.id){
|
|
|
|
+ bookList = [data?.id]
|
|
|
|
+ }else{
|
|
|
|
+ bookList = Array.from(this.setOfCheckedId)
|
|
|
|
+ }
|
|
|
|
+ // let processId = await this.getEduProcess(
|
|
|
|
+ // this.tbookSer.profile.user?.department?.objectId
|
|
|
|
+ // );
|
|
|
|
+ Parse.Cloud.run('tbookExportReport', { bookList: bookList }).then(
|
|
(data) => {
|
|
(data) => {
|
|
console.log(data);
|
|
console.log(data);
|
|
let url = data.zipUrl;
|
|
let url = data.zipUrl;
|