提交 eb11689a 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!239 Data tracing page turning operation, access interface, query remark and...

!239 Data tracing page turning operation, access interface, query remark and tag information for data update operation。
Merge pull request !239 from 秦君艳/master
...@@ -1280,6 +1280,26 @@ export default { ...@@ -1280,6 +1280,26 @@ export default {
}); });
}, },
/**
* get data of table
* @param {Object} params
*/
queryTableLineagesData(params) {
RequestService.queryLineagesData(params)
.then(
(res) => {
if (!res || !res.data) {
return;
}
this.lineagedata = this.formateOriginData(res.data);
const serData = this.lineagedata.serData;
this.table.data = JSON.parse(JSON.stringify(serData));
},
(error) => {},
)
.catch(() => {});
},
/** /**
* Method of invoking the interface * Method of invoking the interface
* @param {Object} params * @param {Object} params
...@@ -1578,7 +1598,28 @@ export default { ...@@ -1578,7 +1598,28 @@ export default {
*/ */
handleCurrentChange(val) { handleCurrentChange(val) {
this.pagination.currentPage = val; this.pagination.currentPage = val;
this.table.data = this.setTableData(); const data = this.setTableData();
const summaryDirList = [];
data.forEach((item) => {
summaryDirList.push(item.summary_dir);
});
const params = {
body: {},
};
const tempParam = {
sorted_name: this.sortInfo.sorted_name,
sorted_type: this.sortInfo.sorted_type,
};
this.tableFilter.summary_dir = {
in: summaryDirList,
};
params.body = Object.assign(
params.body,
this.chartFilter,
tempParam,
this.tableFilter,
);
this.queryTableLineagesData(params);
}, },
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册