From f88de3c2ee1c79e03f9410a02cf0eff19b1732fd Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 29 Apr 2025 08:50:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=89=B9=E6=AC=A1=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/batch_statistics.vue | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/views/statistics/batch_statistics.vue b/src/views/statistics/batch_statistics.vue index 303ec36a..27592c93 100644 --- a/src/views/statistics/batch_statistics.vue +++ b/src/views/statistics/batch_statistics.vue @@ -34,6 +34,7 @@ :paginationLayout="'total, sizes, jumper'" > + @@ -308,16 +309,20 @@ export default { mounted() { }, methods: { - getBatches(){ - }, - getBatchDag(){ - - }, rowClick(row){ console.log('row',row) let that = this; - that.$API.wpm.batchlog.dag.req({batch:row.batch}).then((res) => { - that.nodes = res.nodes; + that.nodes =[]; + that.edges = []; + that.$API.wpm.batchlog.dag.req({batch:row.batch,version:row.version}).then((res) => { + res.nodes.forEach(item => { + let obj = {}; + obj.id = item.id; + obj.label = item.label; + obj.shape = item.shape; + obj.version = row.version; + that.nodes.push(obj); + }); that.edges = res.edges; that.limitedWatch = true; that.$nextTick(() => { @@ -327,7 +332,6 @@ export default { }, nodeClick(data){ let that = this; - console.log('nodeClick',data) that.params.batch = data; that.params_binm.search = data; that.activeName = 'mlog';