From e024667353ad34457d2f7d58d6faa0c1c90f6536 Mon Sep 17 00:00:00 2001 From: shuzhenyang Date: Fri, 28 Jun 2024 17:03:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=201.14=E7=89=88=E6=9C=AC=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/resource-detail/index.vue | 53 +++++++++++-------- .../overview/detail-mode/resource-info.vue | 7 ++- 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/src/dashboard-front/src/components/resource-detail/index.vue b/src/dashboard-front/src/components/resource-detail/index.vue index 9e81b2b21..7c96b3ecb 100644 --- a/src/dashboard-front/src/components/resource-detail/index.vue +++ b/src/dashboard-front/src/components/resource-detail/index.vue @@ -654,27 +654,28 @@ - +
+ +
@@ -883,7 +884,10 @@ const checkDiff = (path: any) => { // ); // }; -const checkPluginsDiff = () => {}; +const checkPluginsDiff = () => { + const keys = Object.keys(diffMap.value); + return keys.some(item => item.startsWith('localData.plugins')); +}; // 网关标签 const labels = computed(() => common.gatewayLabels || []); @@ -1041,6 +1045,11 @@ initLocalData(); } } +.container-diff { + background: rgba(255, 156, 1, 0.1); + padding: 2px 8px; + margin: 18px 0; +} .ag-kv-box { &.box-diff { background: #fbf4e9; diff --git a/src/dashboard-front/src/views/stage/overview/detail-mode/resource-info.vue b/src/dashboard-front/src/views/stage/overview/detail-mode/resource-info.vue index 278075612..982f97daa 100644 --- a/src/dashboard-front/src/views/stage/overview/detail-mode/resource-info.vue +++ b/src/dashboard-front/src/views/stage/overview/detail-mode/resource-info.vue @@ -189,7 +189,7 @@ const labels = ref([]); // 网关id const apigwId = computed(() => common.apigwId); -const isLoading = ref(false); +const isLoading = ref(true); const pagination = ref({ current: 1, @@ -327,6 +327,11 @@ watch( ); const getPageData = () => { + if (!resourceVersionList.value?.length) { + pagination.value.count = 0; + return []; + } + isLoading.value = true; let curAllData = resourceVersionList.value; if (searchValue.value) { From fb2d26f726959fa9e8e8b38febcacc52ec2cc1fd Mon Sep 17 00:00:00 2001 From: shuzhenyang Date: Fri, 28 Jun 2024 18:21:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=201.14=E7=89=88=E6=9C=AC=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/resource/setting/index.vue | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/src/dashboard-front/src/views/resource/setting/index.vue b/src/dashboard-front/src/views/resource/setting/index.vue index ac4a1c94d..a4848c8bb 100644 --- a/src/dashboard-front/src/views/resource/setting/index.vue +++ b/src/dashboard-front/src/views/resource/setting/index.vue @@ -209,6 +209,12 @@ :label="t('标签')" :show-overflow-tooltip="false" prop="labels" + :filter="{ + list: labelsList, + checked: chooseLabels, + filterFn: handleMethodFilter, + btnSave: false, + }" width="180">