提交 9fcce9dc 编写于 作者: JunZai's avatar JunZai

update

上级 9c0ef121
...@@ -226,9 +226,9 @@ FilterTree, ...@@ -226,9 +226,9 @@ FilterTree,
datas.forEach((data: any) => { datas.forEach((data: any) => {
let item: any = {}; let item: any = {};
if(data.field && data.mode) { if(data.field && data.mode) {
let field: any = this.detailsModel[data.field]; item[data.field] = {};
item[field.prop] = {}; let valField: string = data.editor ? data.editor : data.field;
item[field.prop][data.mode] = (data[data.field] == null ? '' : data[data.field]); item[data.field][data.mode] = (data[valField] == null ? '' : data[valField]);
result.push(item) result.push(item)
} else if(Object.is(data.label, '$and')) { } else if(Object.is(data.label, '$and')) {
let items: any[] = this.transformAnd(data.children); let items: any[] = this.transformAnd(data.children);
...@@ -252,9 +252,9 @@ FilterTree, ...@@ -252,9 +252,9 @@ FilterTree,
datas.forEach((data: any) => { datas.forEach((data: any) => {
let item: any = {}; let item: any = {};
if(data.field && data.mode) { if(data.field && data.mode) {
let field: any = this.detailsModel[data.field]; item[data.field] = {};
item[field.prop] = {}; let valField: string = data.editor ? data.editor : data.field;
item[field.prop][data.mode] = (data[data.field] == null ? '' : data[data.field]); item[data.field][data.mode] = (data[valField] == null ? '' : data[valField]);
result.push(item); result.push(item);
} else if(Object.is(data.label, '$and')) { } else if(Object.is(data.label, '$and')) {
item[data.label] = this.transformAnd(data.children); item[data.label] = this.transformAnd(data.children);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册