|
@@ -101,7 +101,7 @@ export class TextbookComponent implements OnInit {
|
|
|
});
|
|
|
query = Parse.Query.or(query1, query2);
|
|
|
}
|
|
|
- this.tbookSer.profile.user?.objectId && query.equalTo('user',this.tbookSer.profile.user?.objectId);
|
|
|
+ // this.uid && query.equalTo('user',this.tbookSer.profile.user?.objectId);
|
|
|
this.depart && query.equalTo('department', this.depart);
|
|
|
this.recommend && query.equalTo('recommend', true);
|
|
|
this.filterObj?.noStared && query.notEqualTo('recommend', true);
|
|
@@ -286,6 +286,13 @@ export class TextbookComponent implements OnInit {
|
|
|
data.set('render', true);
|
|
|
data.set('status', '200');
|
|
|
data.set('code', t);
|
|
|
+ if(parentMap[1]?.key){
|
|
|
+ data.set('department', {
|
|
|
+ __type: 'Pointer',
|
|
|
+ className: 'Department',
|
|
|
+ objectId:parentMap[1]?.key
|
|
|
+ });
|
|
|
+ }
|
|
|
await data.save();
|
|
|
} else {
|
|
|
let selectedList = this.textbookList.filter((item: any) =>
|
|
@@ -300,7 +307,7 @@ export class TextbookComponent implements OnInit {
|
|
|
item.set('status', '200');
|
|
|
item.set('code', t);
|
|
|
if(parentMap[1]?.key){
|
|
|
- item?.set('department', {
|
|
|
+ item.set('department', {
|
|
|
__type: 'Pointer',
|
|
|
className: 'Department',
|
|
|
objectId:parentMap[1]?.key
|