会员统计
This commit is contained in:
parent
d4d211111c
commit
28b1288cc0
|
@ -4,12 +4,13 @@
|
|||
<a-row>
|
||||
<a-col :span="20">
|
||||
<a-radio-group v-model:value="parmas.type" @change="changeType">
|
||||
<a-radio-button value="1">近3天</a-radio-button>
|
||||
<a-radio-button value="2">近7天</a-radio-button>
|
||||
<a-radio-button value="3">近30天</a-radio-button>
|
||||
<a-radio-button value="4">自定义</a-radio-button>
|
||||
<a-radio-button value="1">当天</a-radio-button>
|
||||
<a-radio-button value="2">近3天</a-radio-button>
|
||||
<a-radio-button value="3">近7天</a-radio-button>
|
||||
<a-radio-button value="4">近30天</a-radio-button>
|
||||
<a-radio-button value="5">自定义</a-radio-button>
|
||||
</a-radio-group>
|
||||
<span v-show="parmas.type=='4'" style="margin-left: 5px;">
|
||||
<span v-show="parmas.type=='5'" style="margin-left: 5px;">
|
||||
<a-range-picker :value-format="valueFormat" @change="changeDate" />
|
||||
</span>
|
||||
<a-select ref="select"
|
||||
|
@ -50,14 +51,18 @@
|
|||
function changeType (){
|
||||
parmas.endTime=getPreviousDate(0)+' 23:59:59';
|
||||
if (parmas.type === '1') {
|
||||
parmas.beginTime=getPreviousDate(2)+' 00:00:00';
|
||||
parmas.beginTime=getPreviousDate(0)+' 00:00:00';
|
||||
loadDate();
|
||||
}
|
||||
if (parmas.type === '2') {
|
||||
parmas.beginTime=getPreviousDate(6)+' 00:00:00';
|
||||
parmas.beginTime=getPreviousDate(2)+' 00:00:00';
|
||||
loadDate();
|
||||
}
|
||||
if (parmas.type === '3') {
|
||||
parmas.beginTime=getPreviousDate(6)+' 00:00:00';
|
||||
loadDate();
|
||||
}
|
||||
if (parmas.type === '4') {
|
||||
parmas.beginTime=getPreviousDate(29)+' 00:00:00';
|
||||
loadDate();
|
||||
}
|
||||
|
@ -97,7 +102,7 @@
|
|||
onMounted(() => {
|
||||
getHousingestates();
|
||||
if(parmas.type=='1'){
|
||||
parmas.beginTime=getPreviousDate(2)+' 00:00:00';
|
||||
parmas.beginTime=getPreviousDate(0)+' 00:00:00';
|
||||
parmas.endTime=getPreviousDate(0)+' 23:59:59';
|
||||
}
|
||||
loadDate();
|
||||
|
|
Loading…
Reference in New Issue