|
@@ -22,13 +22,14 @@ |
|
@@ -22,13 +22,14 @@ |
|
22
|
</a-tabs>
|
22
|
</a-tabs>
|
|
23
|
<a-space>
|
23
|
<a-space>
|
|
24
|
<time-bar @change="timeChange" is-current-date-disabled
|
24
|
<time-bar @change="timeChange" is-current-date-disabled
|
|
|
|
25
|
+ :default-active="1"
|
|
25
|
:date-unit="props.reportType === 2 ? ['month','year']: ['day','month','year']"/>
|
26
|
:date-unit="props.reportType === 2 ? ['month','year']: ['day','month','year']"/>
|
|
26
|
<a-select v-model="searchForm.changeType" :style="{width:'220px'}" placeholder="请选择"
|
27
|
<a-select v-model="searchForm.changeType" :style="{width:'220px'}" placeholder="请选择"
|
|
27
|
v-if="props.reportType === 1 && timeParams.timeUnit !== 0">
|
28
|
v-if="props.reportType === 1 && timeParams.timeUnit !== 0">
|
|
|
|
29
|
+ <a-option value="5">累计值</a-option>
|
|
28
|
<a-option value="2">平均值</a-option>
|
30
|
<a-option value="2">平均值</a-option>
|
|
29
|
<a-option value="3">最小值</a-option>
|
31
|
<a-option value="3">最小值</a-option>
|
|
30
|
<a-option value="4">最大值</a-option>
|
32
|
<a-option value="4">最大值</a-option>
|
|
31
|
- <a-option value="5">累计值</a-option>
|
|
|
|
32
|
</a-select>
|
33
|
</a-select>
|
|
33
|
<a-checkbox v-model="searchForm.isCharge" v-if="reportType === 2">电费</a-checkbox>
|
34
|
<a-checkbox v-model="searchForm.isCharge" v-if="reportType === 2">电费</a-checkbox>
|
|
34
|
<a-button type="primary" @click="fetchTableData">
|
35
|
<a-button type="primary" @click="fetchTableData">
|
|
@@ -100,7 +101,7 @@ const tableInfo: any = ref({ |
|
@@ -100,7 +101,7 @@ const tableInfo: any = ref({ |
|
100
|
|
101
|
|
|
101
|
const searchForm = ref({
|
102
|
const searchForm = ref({
|
|
102
|
templateId: '',
|
103
|
templateId: '',
|
|
103
|
- changeType: '',
|
104
|
+ changeType: '5',
|
|
104
|
isFengGuData: props.reportType !== 1,
|
105
|
isFengGuData: props.reportType !== 1,
|
|
105
|
isCharge: false
|
106
|
isCharge: false
|
|
106
|
})
|
107
|
})
|
|
@@ -117,9 +118,9 @@ const tabsChange = (key: any) => { |
|
@@ -117,9 +118,9 @@ const tabsChange = (key: any) => { |
|
117
|
*/
|
118
|
*/
|
|
118
|
const timeChange = (time: any) => {
|
119
|
const timeChange = (time: any) => {
|
|
119
|
timeParams.value = time;
|
120
|
timeParams.value = time;
|
|
120
|
- searchForm.value.changeType = '';
|
121
|
+ searchForm.value.changeType = '5';
|
|
121
|
if (time.timeUnit !== 0) {
|
122
|
if (time.timeUnit !== 0) {
|
|
122
|
- searchForm.value.changeType = '2';
|
123
|
+ searchForm.value.changeType = '5';
|
|
123
|
}
|
124
|
}
|
|
124
|
}
|
125
|
}
|
|
125
|
/**
|
126
|
/**
|