|
@@ -60,14 +60,14 @@ export class textbookServer {
|
|
|
async formatNode(id: string): Promise<Array<any>> {
|
|
|
if (!id) return [];
|
|
|
let query = new Parse.Query('Department');
|
|
|
- query.select('name', 'parent', 'hasChildren', 'type', 'branch');
|
|
|
+ query.select('name', 'parent.name', 'branch');
|
|
|
let r = await query.get(id);
|
|
|
let arr = [
|
|
|
{
|
|
|
title: r.get('name'),
|
|
|
key: r.id,
|
|
|
- hasChildren: r.get('hasChildren'), //是否是最下级
|
|
|
- type: r.get('type'),
|
|
|
+ // hasChildren: r.get('hasChildren'), //是否是最下级
|
|
|
+ // type: r.get('type'),
|
|
|
branch: r?.get('branch'),
|
|
|
parent: r?.get('parent')?.id, //上级
|
|
|
},
|
|
@@ -354,8 +354,8 @@ export class textbookServer {
|
|
|
'department.branch'
|
|
|
);
|
|
|
query.limit(3000);
|
|
|
- // query.containedIn('status', ['103', '200', '201', '400']);
|
|
|
- query.containedIn('status',['400'])
|
|
|
+ query.containedIn('status', ['103', '200', '201', '400']);
|
|
|
+ // query.containedIn('status',['400'])
|
|
|
let data = await query.find();
|
|
|
let table = `<table border="1px" cellspacing="0" cellpadding="0">
|
|
|
<thead>
|