|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-07-08 12:10:55
|
|
|
- * @LastEditTime: 2024-11-01 16:31:42
|
|
|
+ * @LastEditTime: 2024-11-12 11:11:26
|
|
|
* @LastEditors: wenjie 1454560336@qq.com
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: \admin-manage\src\views\home\index.vue
|
|
@@ -32,7 +32,7 @@
|
|
|
</div> -->
|
|
|
|
|
|
<el-select
|
|
|
- v-model="platformType"
|
|
|
+ v-model="query.platformType"
|
|
|
size="small"
|
|
|
class="item-width-200 mb10"
|
|
|
placeholder="请选择所属平台"
|
|
@@ -184,6 +184,11 @@ export default {
|
|
|
query:{
|
|
|
platformType:1,
|
|
|
},
|
|
|
+ platformTypeObj:{
|
|
|
+ 1:'520100',
|
|
|
+ 2:'p-000',
|
|
|
+ 3:'5201000',
|
|
|
+ },
|
|
|
userData: {
|
|
|
dayRegister: 0,
|
|
|
dayVip: 0,
|
|
@@ -213,7 +218,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
- platformType(val) {
|
|
|
+ 'query.platformType'(val) {
|
|
|
this.init()
|
|
|
}
|
|
|
},
|
|
@@ -231,7 +236,8 @@ export default {
|
|
|
|
|
|
orderCount({
|
|
|
startTime: thisDayStartTime,
|
|
|
- endTime: thisDayEndTime
|
|
|
+ endTime: thisDayEndTime,
|
|
|
+ code:this.platformTypeObj[this.query.platformType]
|
|
|
}).then(res => {
|
|
|
if (res.state == 'Success') {
|
|
|
this.today = res.content;
|
|
@@ -239,15 +245,23 @@ export default {
|
|
|
});
|
|
|
orderCount({
|
|
|
startTime: yesterdayStartTime,
|
|
|
- endTime: yesterdayEndTime
|
|
|
+ endTime: yesterdayEndTime,
|
|
|
+ code:this.platformTypeObj[this.query.platformType]
|
|
|
}).then(res => {
|
|
|
if (res.state == 'Success') {
|
|
|
this.yesterday = res.content;
|
|
|
}
|
|
|
});
|
|
|
- userStatistics({code:this.query.platformType}).then(res => {
|
|
|
+ userStatistics(this.query).then(res => {
|
|
|
if (res.state == 'Success') {
|
|
|
this.userData = res.content;
|
|
|
+ // if(this.query.platformType==2){
|
|
|
+ // this.userData.totalRegister = this.userData.totalRegisterByHyx
|
|
|
+ // this.userData.totalRegister = this.userData.totalRegisterByHyx
|
|
|
+ // }else if(this.query.platformType==3){
|
|
|
+ // this.userData.totalRegister = this.userData.totalRegisterByMall
|
|
|
+ // this.userData.totalRegister = this.userData.totalRegisterByMall
|
|
|
+ // }
|
|
|
}
|
|
|
})
|
|
|
}
|