提交 9304acca 编写于 作者: KK's avatar KK

表格 加载逻辑调整

上级 07e6d0f0
...@@ -446,6 +446,9 @@ ...@@ -446,6 +446,9 @@
const parentdata: any = {}; const parentdata: any = {};
this.$emit('beforeload', parentdata); this.$emit('beforeload', parentdata);
Object.assign(data, parentdata); Object.assign(data, parentdata);
let tempViewParams:any = parentdata.viewparams?parentdata.viewparams:{};
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(data,{viewparams:tempViewParams});
const response: any = await this.service.search(this.fetchAction, this.context, data, this.showBusyIndicator); const response: any = await this.service.search(this.fetchAction, this.context, data, this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$notify({ type: 'danger', message: response.error.message }); this.$notify({ type: 'danger', message: response.error.message });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册