提交 3b1e7c6e 编写于 作者: ibizdev's avatar ibizdev

lab_gzf 部署微服务应用

上级 15062f57
......@@ -308,7 +308,7 @@ export default class LocationAssetTreeService extends ControlService {
strNodeId += this.TREENODE_SEPARATOR;
strNodeId += strId;
Object.assign(treeNode, { id: strNodeId });
Object.assign(treeNode, { expanded: filter.isautoexpand });
Object.assign(treeNode, { expanded: true });
Object.assign(treeNode, { leaf: false });
Object.assign(treeNode, { navfilter: "eamlocationid" });
Object.assign(treeNode, { curData: entity });
......@@ -359,13 +359,13 @@ export default class LocationAssetTreeService extends ControlService {
}
const _appEntityService: any = this.appEntityService;
let list: any[] = [];
if (_appEntityService['FetchChild'] && _appEntityService['FetchChild'] instanceof Function) {
const response: Promise<any> = _appEntityService['FetchChild'](context, searchFilter, false);
if (_appEntityService['FetchDefault'] && _appEntityService['FetchDefault'] instanceof Function) {
const response: Promise<any> = _appEntityService['FetchDefault'](context, searchFilter, false);
response.then((response: any) => {
if (!response.status || response.status !== 200) {
resolve([]);
console.log(JSON.stringify(context));
console.error('查询FetchChild数据集异常!');
console.error('查询FetchDefault数据集异常!');
}
const data: any = response.data;
if (Object.keys(data).length > 0) {
......@@ -377,7 +377,7 @@ export default class LocationAssetTreeService extends ControlService {
}).catch((response: any) => {
resolve([]);
console.log(JSON.stringify(context));
console.error('查询FetchChild数据集异常!');
console.error('查询FetchDefault数据集异常!');
});
}
})
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册