| | |
| | | </el-container> |
| | | <link-type-add ref="linkAdd" :domainOption="domainOptions" :icons="icons" :linkStatus="linkStatus" |
| | | :linkType="addOption.linkType" |
| | | @refreshTable="initTreeOnLoad"> |
| | | @refreshTable="initTable"> |
| | | </link-type-add> |
| | | |
| | | </el-container> |
| | |
| | | name: "LinkType", |
| | | data() { |
| | | return { |
| | | nodeClickOid:'', |
| | | linkStatus: '', |
| | | addOption: { |
| | | linkType: { |
| | |
| | | methods: { |
| | | // 树点击 |
| | | nodeClick(data) { |
| | | this.nodeClickOid = data.oid; |
| | | getDetail(data.oid).then(res => { |
| | | this.obj = res.data.data; |
| | | }) |
| | | }, |
| | | initTable(){ |
| | | getDetail(this.nodeClickOid).then(res => { |
| | | this.obj = res.data.data; |
| | | }) |
| | | }, |
| | | // 添加按钮点击事件 |
| | | linkTypeAdd() { |
| | | this.$refs.linkAdd.linkType = {}; |