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/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">