feat: 【API数据源】时间参数增加前一天选项 #18184

This commit is contained in:
taojinlong
2026-04-03 12:18:39 +08:00
committed by tjlygdx
parent da18181c4b
commit 1ff0fcb91b
6 changed files with 53 additions and 31 deletions

View File

@@ -316,6 +316,7 @@ export default {
time_function: 'Time function',
customize: 'Customize',
that_day: 'That day',
previous_day: 'Previous day',
timestamp: 'current time (timestamp)',
value: 'Value',
name_use_parameters: "You can use ${'{'}parameter name{'}'}, use parameters",

View File

@@ -305,6 +305,7 @@ export default {
time_function: '時間函數',
customize: '自訂',
that_day: '當天',
previous_day: '前一天',
timestamp: '當前時間時間戳',
value: '值',
name_use_parameters: "可用${'{'}參數名稱{'}'},使用參數",

View File

@@ -306,6 +306,7 @@ export default {
time_function: '时间函数',
customize: '自定义',
that_day: '当天',
previous_day: '前一天',
timestamp: '当前时间时间戳',
value: '值',
name_use_parameters: "可用${'{'}参数名{'}'},使用参数",

View File

@@ -112,6 +112,14 @@ const timeFunLists = [
label: t('data_source.that_day') + 'yyyy/MM/dd',
value: 'currentDay yyyy/MM/dd'
},
{
label: t('data_source.previous_day') + 'yyyy-MM-dd',
value: 'yesterday yyyy-MM-dd'
},
{
label: t('data_source.previous_day') + 'yyyy/MM/dd',
value: 'yesterday yyyy/MM/dd'
},
{
label: t('data_source.timestamp'),
value: 'currentTimestamp'

View File

@@ -149,6 +149,14 @@ const timeFunLists = [
label: t('data_source.that_day') + 'yyyy/MM/dd',
value: 'currentDay yyyy/MM/dd'
},
{
label: t('data_source.previous_day') + 'yyyy-MM-dd',
value: 'yesterday yyyy-MM-dd'
},
{
label: t('data_source.previous_day') + 'yyyy/MM/dd',
value: 'yesterday yyyy/MM/dd'
},
{
label: t('data_source.timestamp'),
value: 'currentTimestamp'