|
@@ -188,7 +188,7 @@ export class ProcessListComponent implements OnInit {
|
|
query.select('code', 'name', 'branch', 'parent', 'type');
|
|
query.select('code', 'name', 'branch', 'parent', 'type');
|
|
query.descending('createdAt');
|
|
query.descending('createdAt');
|
|
query.limit(100);
|
|
query.limit(100);
|
|
- query.equalTo('objectId', this.tbookSer.profile.user.department.objectId)
|
|
|
|
|
|
+ query.equalTo('objectId', this.tbookSer.profile.user.department?.objectId)
|
|
let res = await query.find();
|
|
let res = await query.find();
|
|
res.forEach((item) => {
|
|
res.forEach((item) => {
|
|
nodes.push({
|
|
nodes.push({
|
|
@@ -235,7 +235,7 @@ export class ProcessListComponent implements OnInit {
|
|
let query = Parse.Query.or(query1, query2)
|
|
let query = Parse.Query.or(query1, query2)
|
|
query.include('profileSubmitted', 'profileSubmitted.user');
|
|
query.include('profileSubmitted', 'profileSubmitted.user');
|
|
query.notEqualTo('isDeleted', true);
|
|
query.notEqualTo('isDeleted', true);
|
|
- query.equalTo('department',this.tbookSer.profile.user.department.objectId)
|
|
|
|
|
|
+ query.equalTo('department',this.tbookSer.profile.user.department?.objectId)
|
|
let r = await query.find();
|
|
let r = await query.find();
|
|
let list: any[] = [];
|
|
let list: any[] = [];
|
|
r.forEach((item) => {
|
|
r.forEach((item) => {
|