|
|
@ -40,18 +40,22 @@ |
|
|
|
<div class="fixed-bottom"> |
|
|
|
<a-divider /> |
|
|
|
<a-select |
|
|
|
v-model:value="frequencyValue" |
|
|
|
placeholder="请选择采集频率" |
|
|
|
v-model:value="dateTypeValue" |
|
|
|
placeholder="请选择日期类型" |
|
|
|
style="width: 100%; margin-bottom: 10px" |
|
|
|
:options="options2" /> |
|
|
|
<a-range-picker |
|
|
|
<a-date-picker |
|
|
|
style="width: 100%; margin-bottom: 10px" |
|
|
|
v-model:value="dateValue" |
|
|
|
:picker="dateTypeValue" /> |
|
|
|
<!-- <a-range-picker |
|
|
|
:value="hackValue || dateRange" |
|
|
|
:disabled-date="disabledDate" |
|
|
|
@change="onChange" |
|
|
|
@openChange="onOpenChange" |
|
|
|
@calendarChange="onCalendarChange" |
|
|
|
style="width: 100%; margin-bottom: 10px" |
|
|
|
:placeholder="['请选择日期', '请选择日期']" /> |
|
|
|
:placeholder="['请选择日期', '请选择日期']" /> --> |
|
|
|
<a-button type="primary" style="width: 100%; margin-bottom: 10px" @click="getSelect"> |
|
|
|
查询 |
|
|
|
</a-button> |
|
|
@ -89,15 +93,15 @@ |
|
|
|
|
|
|
|
// 能耗类型list |
|
|
|
const options1 = ref<SelectProps['options']>([]); |
|
|
|
// 采集频率list |
|
|
|
// 日期类型list |
|
|
|
const options2 = ref<SelectProps['options']>([]); |
|
|
|
const mode = ref<String>('1'); |
|
|
|
// 能耗类型 |
|
|
|
const selectedValue = ref<string | number | null | undefined>(); |
|
|
|
// 采集频率 |
|
|
|
const frequencyValue = ref<string | undefined>(); |
|
|
|
// 日期类型 |
|
|
|
const dateTypeValue = ref<string | undefined>(); |
|
|
|
// 时间 |
|
|
|
const dateRange = ref<[Dayjs, Dayjs] | undefined>(); |
|
|
|
const dateValue = ref<[Dayjs, Dayjs] | undefined>(); |
|
|
|
|
|
|
|
// 页面初始化参数 |
|
|
|
const getOptionsList = async () => { |
|
|
@ -115,20 +119,12 @@ |
|
|
|
} |
|
|
|
options2.value = [ |
|
|
|
{ |
|
|
|
value: '1', |
|
|
|
label: '5分钟', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '2', |
|
|
|
label: '10分钟', |
|
|
|
value: 'month', |
|
|
|
label: '月', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '3', |
|
|
|
label: '30分钟', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '4', |
|
|
|
label: '1小时', |
|
|
|
value: 'year', |
|
|
|
label: '年', |
|
|
|
}, |
|
|
|
]; |
|
|
|
}; |
|
|
@ -691,9 +687,9 @@ |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
const onChange = (val: RangeValue) => { |
|
|
|
dateRange.value = val; |
|
|
|
}; |
|
|
|
// const onChange = (val: RangeValue) => { |
|
|
|
// dateRange.value = val; |
|
|
|
// }; |
|
|
|
|
|
|
|
const onCalendarChange = (val: RangeValue) => { |
|
|
|
dates.value = val; |
|
|
@ -716,8 +712,8 @@ |
|
|
|
options2, |
|
|
|
mode, |
|
|
|
selectedValue, |
|
|
|
frequencyValue, |
|
|
|
dateRange, |
|
|
|
dateTypeValue, |
|
|
|
dateValue, |
|
|
|
getOptionsList, |
|
|
|
getSelect, |
|
|
|
getSelect11, |
|
|
@ -725,7 +721,7 @@ |
|
|
|
disabledDate, |
|
|
|
onCalendarChange, |
|
|
|
onOpenChange, |
|
|
|
onChange, |
|
|
|
// onChange, |
|
|
|
hackValue, |
|
|
|
treeLoading, |
|
|
|
changeEnergyType, |
|
|
|