diff --git a/frontend/src/api/setting.ts b/frontend/src/api/setting.ts index 6f43cc7..2fb308a 100644 --- a/frontend/src/api/setting.ts +++ b/frontend/src/api/setting.ts @@ -20,3 +20,13 @@ export function getExcludedDisplayStyle() { export function updateExcludedDisplayStyle(style: string) { return request.put('/setting/excluded-display-style', { style }) } + +/** 查询当前用户是否在收支记录列表与导出中显示已隐藏备注的记录 */ +export function getShowHiddenData() { + return request.get('/setting/show-hidden-data') +} + +/** 更新当前用户是否在收支记录列表与导出中显示已隐藏备注的记录 */ +export function updateShowHiddenData(show: boolean) { + return request.put('/setting/show-hidden-data', { show }) +} diff --git a/frontend/src/components/DisplayConfigPanel.vue b/frontend/src/components/DisplayConfigPanel.vue index f970915..48d7f3f 100644 --- a/frontend/src/components/DisplayConfigPanel.vue +++ b/frontend/src/components/DisplayConfigPanel.vue @@ -1,12 +1,12 @@ - {{ t('display.hint') }} - -
-
{{ t('display.label') }}
+
+
{{ t('display.label') }}
+ {{ t('display.hint') }} {{ option.label }} -
@@ -95,6 +132,20 @@ onMounted(loadStyle)
+ + +
+
{{ t('display.hiddenDataLabel') }}
+ + + {{ t('display.hiddenDataHint') }} + +
@@ -108,9 +159,20 @@ onMounted(loadStyle)