|
|
|
@@ -27,10 +27,10 @@ |
|
|
|
</span> |
|
|
|
<span style="float:right; margin-right: 20px;" > |
|
|
|
<a style="display:inline-block;margin-left: 20px; " id = 'download'> |
|
|
|
<a class="el-icon-download" v-if="tableData!=''" :href= "'../api/v1/query_user_static_page/?startDate='+this.params.startDate+'&endDate='+this.params.endDate+'&IsReturnFile=true'+'&userName='+this.params.userName" ></a> |
|
|
|
<a class="el-icon-download" v-if="tableData!=''" :href= "this.dataUrl + '?startDate='+this.params.startDate+'&endDate='+this.params.endDate+'&IsReturnFile=true'+'&userName='+this.params.userName" ></a> |
|
|
|
<i class="el-icon-download" v-else="tableData=''" href="#" style="color:rgba(187, 187, 187, 100);" @click='popMark()'></i> |
|
|
|
<span > |
|
|
|
<a v-if="tableData!=''" :href= "'../api/v1/query_user_static_page/?startDate='+this.params.startDate+'&endDate='+this.params.endDate+'&IsReturnFile=true'+'&userName='+this.params.userName" >下载报告</a> |
|
|
|
<a v-if="tableData!=''" :href= "this.dataUrl + '?startDate='+this.params.startDate+'&endDate='+this.params.endDate+'&IsReturnFile=true'+'&userName='+this.params.userName" >下载报告</a> |
|
|
|
<a v-else="tableData=''" href= "#" style="color:rgba(187, 187, 187, 100);" @click='popMark()'>下载报告</a> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
@@ -175,6 +175,7 @@ |
|
|
|
params:{startDate:'',endDate:'',page:1,pageSize:10,userName:''}, |
|
|
|
tableData: [], |
|
|
|
totalNum:0, |
|
|
|
dataUrl:'../api/v1/query_user_static_page', |
|
|
|
pickerOptions: { |
|
|
|
}, |
|
|
|
value_time: '', |
|
|
|
@@ -274,7 +275,7 @@ |
|
|
|
let lastYear = lastMonthDate.getYear(); |
|
|
|
let lastMonth = lastMonthDate.getMonth(); |
|
|
|
|
|
|
|
var url = '../api/v1/query_user_static_page'; |
|
|
|
this.dataUrl = '../api/v1/query_user_static_page'; |
|
|
|
|
|
|
|
if (typeof type_val=="undefined" || type_val=="null" || type_val==""){ |
|
|
|
this.params.startDate= this.formatDate(this.value_time[0].getFullYear(),this.value_time[0].getMonth() + 1,this.value_time[0].getDate()); |
|
|
|
@@ -283,43 +284,43 @@ |
|
|
|
switch(type_val){ |
|
|
|
case "yesterday_usr":{ |
|
|
|
this.value_time=[] |
|
|
|
url = '../api/v1/query_user_yesterday'; |
|
|
|
this.dataUrl = '../api/v1/query_user_yesterday'; |
|
|
|
break |
|
|
|
} |
|
|
|
case "current_week_usr":{ |
|
|
|
this.value_time=[] |
|
|
|
url = '../api/v1/query_user_current_week'; |
|
|
|
this.dataUrl = '../api/v1/query_user_current_week'; |
|
|
|
break |
|
|
|
} |
|
|
|
case "current_month_usr":{ |
|
|
|
this.value_time=[] |
|
|
|
url = '../api/v1/query_user_current_month'; |
|
|
|
this.dataUrl = '../api/v1/query_user_current_month'; |
|
|
|
break |
|
|
|
} |
|
|
|
case "last_month_usr":{ |
|
|
|
this.value_time=[] |
|
|
|
url = '../api/v1/query_user_last_month'; |
|
|
|
this.dataUrl = '../api/v1/query_user_last_month'; |
|
|
|
break |
|
|
|
} |
|
|
|
case "monthly_usr":{ |
|
|
|
this.value_time=[] |
|
|
|
url = '../api/v1/query_user_last30_day'; |
|
|
|
this.dataUrl = '../api/v1/query_user_last30_day'; |
|
|
|
break |
|
|
|
} |
|
|
|
case "current_year_usr":{ |
|
|
|
this.value_time=[] |
|
|
|
url = '../api/v1/query_user_current_year'; |
|
|
|
this.dataUrl = '../api/v1/query_user_current_year'; |
|
|
|
break |
|
|
|
} |
|
|
|
case "all_usr":{ |
|
|
|
this.value_time=[] |
|
|
|
url = '../api/v1/query_user_all'; |
|
|
|
this.dataUrl = '../api/v1/query_user_all'; |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
this.$axios.get(url,{ |
|
|
|
this.$axios.get(this.dataUrl,{ |
|
|
|
params:this.params |
|
|
|
}).then((res)=>{ |
|
|
|
this.tableData = res.data.data |
|
|
|
|