style: kpi菜单时间去掉当前小时加入今天选择项
This commit is contained in:
@@ -86,12 +86,15 @@ let queryRangePicker = ref<[string, string]>(['', '']);
|
||||
//日期快捷选择
|
||||
const ranges = ref([
|
||||
{
|
||||
label: t('views.perfManage.customTarget.new1Hour'),
|
||||
value: [dayjs().startOf('day'), dayjs()],
|
||||
label: t('views.perfManage.customTarget.toDay'),
|
||||
value: [dayjs().startOf('hour'), dayjs()],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago1Hour'),
|
||||
value: [dayjs().subtract(1, 'hour').startOf('hour'), dayjs().endOf('hour')],
|
||||
value: [
|
||||
dayjs().subtract(1, 'hour').startOf('hour'),
|
||||
dayjs().subtract(1, 'hour').endOf('hour'),
|
||||
],
|
||||
},
|
||||
// {
|
||||
// label: t('views.perfManage.customTarget.ago3Hour'),
|
||||
@@ -105,16 +108,22 @@ const ranges = ref([
|
||||
label: t('views.perfManage.customTarget.ago1Day'),
|
||||
value: [
|
||||
dayjs().subtract(1, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago7Day'),
|
||||
value: [dayjs().subtract(7, 'day').startOf('day'), dayjs()],
|
||||
value: [
|
||||
dayjs().subtract(7, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago15Day'),
|
||||
value: [dayjs().subtract(15, 'day').startOf('day'), dayjs()],
|
||||
value: [
|
||||
dayjs().subtract(15, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
@@ -86,12 +86,15 @@ let queryRangePicker = ref<[string, string]>(['', '']);
|
||||
/**时间选择 */
|
||||
const ranges = ref([
|
||||
{
|
||||
label: t('views.perfManage.customTarget.new1Hour'),
|
||||
value: [dayjs().startOf('day'), dayjs()],
|
||||
label: t('views.perfManage.customTarget.toDay'),
|
||||
value: [dayjs().startOf('hour'), dayjs()],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago1Hour'),
|
||||
value: [dayjs().subtract(1, 'hour').startOf('hour'), dayjs().endOf('hour')],
|
||||
value: [
|
||||
dayjs().subtract(1, 'hour').startOf('hour'),
|
||||
dayjs().subtract(1, 'hour').endOf('hour'),
|
||||
],
|
||||
},
|
||||
// {
|
||||
// label: t('views.perfManage.customTarget.ago3Hour'),
|
||||
@@ -105,16 +108,22 @@ const ranges = ref([
|
||||
label: t('views.perfManage.customTarget.ago1Day'),
|
||||
value: [
|
||||
dayjs().subtract(1, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago7Day'),
|
||||
value: [dayjs().subtract(7, 'day').startOf('day'), dayjs()],
|
||||
value: [
|
||||
dayjs().subtract(7, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago15Day'),
|
||||
value: [dayjs().subtract(15, 'day').startOf('day'), dayjs()],
|
||||
value: [
|
||||
dayjs().subtract(15, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
@@ -36,12 +36,15 @@ const neInfoStore = useNeInfoStore();
|
||||
//日期快捷选择
|
||||
const ranges = ref([
|
||||
{
|
||||
label: t('views.perfManage.customTarget.new1Hour'),
|
||||
value: [dayjs().startOf('day'), dayjs()],
|
||||
label: t('views.perfManage.customTarget.toDay'),
|
||||
value: [dayjs().startOf('hour'), dayjs()],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago1Hour'),
|
||||
value: [dayjs().subtract(1, 'hour').startOf('hour'), dayjs().endOf('hour')],
|
||||
value: [
|
||||
dayjs().subtract(1, 'hour').startOf('hour'),
|
||||
dayjs().subtract(1, 'hour').endOf('hour'),
|
||||
],
|
||||
},
|
||||
// {
|
||||
// label: t('views.perfManage.customTarget.ago3Hour'),
|
||||
@@ -55,16 +58,22 @@ const ranges = ref([
|
||||
label: t('views.perfManage.customTarget.ago1Day'),
|
||||
value: [
|
||||
dayjs().subtract(1, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago7Day'),
|
||||
value: [dayjs().subtract(7, 'day').startOf('day'), dayjs()],
|
||||
value: [
|
||||
dayjs().subtract(7, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago15Day'),
|
||||
value: [dayjs().subtract(15, 'day').startOf('day'), dayjs()],
|
||||
value: [
|
||||
dayjs().subtract(15, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
]);
|
||||
//WebSocket连接
|
||||
|
||||
@@ -60,12 +60,15 @@ const ws = ref<WS | null>(null);
|
||||
//时间选择
|
||||
const ranges = ref([
|
||||
{
|
||||
label: t('views.perfManage.customTarget.new1Hour'),
|
||||
label: t('views.perfManage.customTarget.toDay'),
|
||||
value: [dayjs().startOf('day'), dayjs()],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago1Hour'),
|
||||
value: [dayjs().subtract(1, 'hour').startOf('hour'), dayjs().endOf('hour')],
|
||||
value: [
|
||||
dayjs().subtract(1, 'hour').startOf('hour'),
|
||||
dayjs().subtract(1, 'hour').endOf('hour'),
|
||||
],
|
||||
},
|
||||
// {
|
||||
// label: t('views.perfManage.customTarget.ago3Hour'),
|
||||
@@ -79,16 +82,22 @@ const ranges = ref([
|
||||
label: t('views.perfManage.customTarget.ago1Day'),
|
||||
value: [
|
||||
dayjs().subtract(1, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago7Day'),
|
||||
value: [dayjs().subtract(7, 'day').startOf('day'), dayjs()],
|
||||
value: [
|
||||
dayjs().subtract(7, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.ago15Day'),
|
||||
value: [dayjs().subtract(15, 'day').startOf('day'), dayjs()],
|
||||
value: [
|
||||
dayjs().subtract(15, 'day').startOf('day'),
|
||||
dayjs().subtract(1, 'day').endOf('day'),
|
||||
],
|
||||
},
|
||||
]);
|
||||
//日期范围响应式变量
|
||||
|
||||
Reference in New Issue
Block a user