Skip to content

Commit

Permalink
fix: proxy已部署主机跳转禁用
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 27860
  • Loading branch information
hyunfa committed Dec 26, 2024
1 parent 1182b76 commit ffec11d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/views/agent/package/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
:search-select-data="searchSelectData"
:searchSelectValue="searchSelectValue"
:loading="isLoading"
:active="active"
@searchClear="searchClear"
@pagetion="pagetionChange"
@tagChange="tagChange"
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/views/agent/package/package-cols.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
align="right"
sortable>
<template #default="{ row }">
<span v-if="row.hostNumber" class="nm-link" @click="goAgentStatus(row)">{{ row.hostNumber }}</span>
<span v-if="row.hostNumber" :class="{'nm-link': active === 'gse_agent'}" @click="goAgentStatus(row)">
{{ row.hostNumber }}
</span>
<span v-else>0</span>
</template>
</NmColumn>
Expand Down Expand Up @@ -169,6 +171,7 @@ import { IPkgRow } from '@/types/agent/pkg-manage';
import HeaderRenderMixin from '@/components/common/header-render-mixins';
import EditTag from '@/components/common/tag.vue';
import { MainStore } from '@/store/index';
import { PkgType } from '@/types/agent/pkg-manage';
@Component({
components: {
Expand All @@ -183,6 +186,7 @@ export default class PackageCols extends Mixins(HeaderRenderMixin) {
@Prop({ default: () => ([]), type: Array }) private readonly searchSelectData!: ISearchItem[];
@Prop({ default: () => ([]), type: Array }) private readonly searchSelectValue!: ISearchItem[];
@Prop({ type: Boolean, default: false }) loading!: boolean;
@Prop({ type: String, default: 'gse_agent' }) active!: PkgType;
@Watch('searchSelectData', { deep: true, immediate: true })
private handleSearchSelectDataChange(data: ISearchItem[]) {
Expand Down Expand Up @@ -347,6 +351,7 @@ export default class PackageCols extends Mixins(HeaderRenderMixin) {
public searchClear() {}
goAgentStatus(row: IPkgRow) {
if (this.active !== 'gse_agent') return;
this.$router.push({
name: 'agentStatus',
params: {
Expand Down

0 comments on commit ffec11d

Please sign in to comment.