|
|
|
@ -36,7 +36,10 @@ export default { |
|
|
|
} |
|
|
|
getBomTreeStructure(params).then(({data})=>{ |
|
|
|
if (data && data.code === 0){ |
|
|
|
this.routingTreeStructure = data.rows |
|
|
|
this.routingTreeStructure = data.rows; |
|
|
|
this.$nextTick(()=>{ |
|
|
|
this.$refs.tree.setCurrentKey(`${this.selectBom[0]}-${this.selectBom[1]}-${this.selectBom[2]}`) |
|
|
|
}) |
|
|
|
}else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
@ -50,7 +53,7 @@ export default { |
|
|
|
|
|
|
|
<template> |
|
|
|
<div> |
|
|
|
{{detail}} |
|
|
|
<!-- {{detail}}--> |
|
|
|
<el-container> |
|
|
|
<el-aside width="24%" style="padding: 0;" :style="{height: height}" v-loading="treeLoading"> |
|
|
|
<el-tree :data="routingTreeStructure" |
|
|
|
|