Fix route flow viewer mounting

This commit is contained in:
caoqianming 2026-07-27 14:37:58 +08:00
parent 16546fd5fd
commit 34d3c43784
1 changed files with 2 additions and 7 deletions

View File

@ -24,7 +24,7 @@
@tab-click="tabshandleClick">
<el-tab-pane :label="item" :name="item" v-for="item in tabsTitle" :key="item"></el-tab-pane>
</el-tabs>
<xtFlowViewer v-if="limitedWatch" :nodes="nodes" :edges="edges" class="rs-flow__canvas"
<xtFlowViewer :nodes="nodes" :edges="edges" class="rs-flow__canvas"
style="min-height: 0">
</xtFlowViewer>
</div>
@ -69,10 +69,8 @@
</el-container>
</template>
<script>
import { defineAsyncComponent } from "vue";
import ticketd from '@/views/wf/ticketd.vue'
// Vue Flow
const xtFlowViewer = defineAsyncComponent(() => import(/* webpackPrefetch: true */ "@/components/xtFlowViewer.vue"));
import xtFlowViewer from "@/components/xtFlowViewer.vue";
export default {
emits: ["success", "closed"],
components: { ticketd, xtFlowViewer },
@ -104,7 +102,6 @@ export default {
tableData: [],
project_code: "",
activeName: "总图",
limitedWatch: false,
};
},
mounted() {
@ -129,8 +126,6 @@ export default {
that.tabsTitle = ['总图'];
that.tabsData = {};
that.activeName = "总图";
//
that.limitedWatch = true;
that.getRoute(that.form.material);
that.getDEGdatas(data.id);
this.getTabsList(data.id);