Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions datasophon-ui/src/pages/serviceManage/exampleList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ export default {
name: "exampleList",
props: {
serviceId: String,
tabKey: {
type: String,
required: true
}
},
provide () {
return {
Expand Down Expand Up @@ -635,6 +639,9 @@ export default {
},
},
watch: {
tabKey(newVal, oldVal) {
this.getServiceRoleType();
},
logsVisible: {
handler (val) {
if (val) {
Expand Down
4 changes: 2 additions & 2 deletions datasophon-ui/src/pages/serviceManage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
<OverViewPage :serviceId="serviceId" />
</a-tab-pane>
<a-tab-pane :key="2" tab="实例">
<ExampleList ref="ExampleListRef" :serviceId="serviceId" />
<ExampleList ref="ExampleListRef" :serviceId="serviceId" :tabKey="tabKey"/>
</a-tab-pane>
<a-tab-pane :key="3" tab="配置">
<Setting />
<Setting :tabKey="tabKey"/>
</a-tab-pane>
<a-tab-pane v-if="serviceName === 'YARN'" :key="4" tab="资源配置">
<Queue />
Expand Down
10 changes: 10 additions & 0 deletions datasophon-ui/src/pages/serviceManage/setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export default {
components: { CommonTemplate },
props: {
steps4Data: Object,
tabKey: {
type: String,
required: true
}
},
data() {
return {
Expand Down Expand Up @@ -412,6 +416,12 @@ export default {
return data;
},
},
watch: {
// 监控 tabKey 的变化
tabKey(newVal, oldVal) {
this.getServiceRoleType();
}
},
created() {},
mounted() {
this.getServiceRoleType()
Expand Down