Commit ecd78300 by 王昆

gsb

parent a8147093
......@@ -425,16 +425,16 @@ class DeliverService extends ServiceBase {
var all = await this.deliverorgDao.byDeliverId(params.deliver_id, '') || [];
for(let row of all) {
this.handleDate(item, ["created_at"], null, -8);
this.handleDate(row, ["created_at"], null, -8);
}
var pmap = {};
for (var item of all) {
for (let item of all) {
item.label = item.name;
var list = pmap[item.parent_id] || [];
list.push(item);
pmap[item.parent_id] = list;
}
for(var item of all) {
for(let item of all) {
item.children = pmap[item.id] || [];
}
return system.getResult(pmap[0]);
......@@ -455,7 +455,7 @@ class DeliverService extends ServiceBase {
}
var all = await this.deliverorgDao.byDeliverId(params.deliver_id, '') || [];
for(let row of all) {
this.handleDate(item, ["created_at"], null, -8);
this.handleDate(row, ["created_at"], null, -8);
}
return system.getResultSuccess(all);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment