feat: 对应的修改

This commit is contained in:
caoqianming 2025-09-29 10:47:19 +08:00
parent f84cfb334e
commit 9bf8b968fc
2 changed files with 4 additions and 11 deletions

View File

@ -138,9 +138,6 @@ export default {
that.tabsData['总图'] = res; that.tabsData['总图'] = res;
if (!that.limitedWatch) { if (!that.limitedWatch) {
that.limitedWatch = true; that.limitedWatch = true;
that.$nextTick(() => {
that.$refs.degraDialogs.open();
});
} }
}) })
}, },

View File

@ -1,6 +1,6 @@
<template> <template>
<el-container> <el-container>
<el-side> <el-aside>
<el-container> <el-container>
<el-header style="height: 40px;"> <el-header style="height: 40px;">
<!-- <el-select <!-- <el-select
@ -38,13 +38,12 @@
</scTable> </scTable>
</el-main> </el-main>
</el-container> </el-container>
</el-side> </el-aside>
<el-main id="elMain"> <el-main id="elMain">
<el-container> <el-container>
<el-header style="height: 50%;flex-direction: column;align-items: start;overflow: scroll;"> <el-header style="height: 50%;flex-direction: column;align-items: start;overflow: scroll;">
<p style="position: fixed;">批次流转图</p> <div>批次流转图</div>
<scDegra <scDegra
style="margin-top: 50px;"
v-if="limitedWatch" v-if="limitedWatch"
ref="degraDialogs" ref="degraDialogs"
:nodes="nodes" :nodes="nodes"
@ -384,6 +383,7 @@ export default {
that.edges = []; that.edges = [];
that.limitedWatch = false; that.limitedWatch = false;
that.$API.wpm.batchlog.dag.req({batch:row.batch,method:'direct'}).then((res) => { that.$API.wpm.batchlog.dag.req({batch:row.batch,method:'direct'}).then((res) => {
that.limitedWatch = true;
res.nodes.forEach(item => { res.nodes.forEach(item => {
let obj = {}; let obj = {};
obj.id = item.id; obj.id = item.id;
@ -393,10 +393,6 @@ export default {
that.nodes.push(obj); that.nodes.push(obj);
}); });
that.edges = res.edges; that.edges = res.edges;
that.limitedWatch = true;
that.$nextTick(() => {
that.$refs.degraDialogs.open();
});
}) })
}, },
nodeClick(data){ nodeClick(data){