From ffec11d8a9d91c7821483233d8a7ba5dc99920db Mon Sep 17 00:00:00 2001 From: hyunfa <1598047833@qq.com> Date: Tue, 17 Dec 2024 17:35:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20proxy=E5=B7=B2=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E8=B7=B3=E8=BD=AC=E7=A6=81=E7=94=A8=20#=20Re?= =?UTF-8?q?viewed,=20transaction=20id:=2027860?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/agent/package/index.vue | 1 + frontend/src/views/agent/package/package-cols.vue | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/agent/package/index.vue b/frontend/src/views/agent/package/index.vue index 24adf10c1..022f335e7 100644 --- a/frontend/src/views/agent/package/index.vue +++ b/frontend/src/views/agent/package/index.vue @@ -68,6 +68,7 @@ :search-select-data="searchSelectData" :searchSelectValue="searchSelectValue" :loading="isLoading" + :active="active" @searchClear="searchClear" @pagetion="pagetionChange" @tagChange="tagChange" diff --git a/frontend/src/views/agent/package/package-cols.vue b/frontend/src/views/agent/package/package-cols.vue index e783a724c..f23f0e811 100644 --- a/frontend/src/views/agent/package/package-cols.vue +++ b/frontend/src/views/agent/package/package-cols.vue @@ -65,7 +65,9 @@ align="right" sortable> @@ -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: { @@ -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[]) { @@ -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: {