added java env

This commit is contained in:
marvzhang
2020-03-04 10:36:58 +08:00
parent dd5affc5c1
commit 40f84de307
9 changed files with 65 additions and 12 deletions

View File

@@ -152,6 +152,7 @@ export default {
methods: {
async getDepList () {
this.loading = true
this.depList = []
const res = await this.$request.get(`/nodes/${this.nodeForm._id}/deps`, {
lang: this.activeLang.executable_name,
dep_name: this.depName
@@ -175,6 +176,7 @@ export default {
},
async getInstalledDepList () {
this.loading = true
this.installedDepList = []
const res = await this.$request.get(`/nodes/${this.nodeForm._id}/deps/installed`, {
lang: this.activeLang.executable_name
})

View File

@@ -0,0 +1,20 @@
<template>
<div class="node-installation-matrix">
</div>
</template>
<script>
export default {
name: 'NodeInstallationMatrix',
props: {
activeTab: {
type: String,
default: ''
}
}
}
</script>
<style scoped>
</style>

View File

@@ -142,6 +142,9 @@
<el-tab-pane :label="$t('Network')">
<node-network :active-tab="activeTab"/>
</el-tab-pane>
<el-tab-pane :label="$t('Installation')">
<node-installation-matrix :active-tab="activeTab"/>
</el-tab-pane>
</el-tabs>
</div>
</template>
@@ -153,10 +156,11 @@ import {
} from 'vuex'
import 'github-markdown-css/github-markdown.css'
import NodeNetwork from '../../components/Node/NodeNetwork'
import NodeInstallationMatrix from '../../components/Node/NodeInstallationMatrix'
export default {
name: 'NodeList',
components: { NodeNetwork },
components: { NodeInstallationMatrix, NodeNetwork },
data () {
return {
pagination: {