|
|
@@ -23,7 +23,10 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import countTo from 'vue-count-to'
|
|
|
+ import countTo from 'vue-count-to';
|
|
|
+ import {staffStat} from "@/api/enterprise/staff";
|
|
|
+ import {guestStat} from "@/api/estate/guestrecord";
|
|
|
+ // import {serverUserStat} from "@/api/estate/serveruser";
|
|
|
export default {
|
|
|
components: {
|
|
|
countTo
|
|
|
@@ -62,8 +65,18 @@
|
|
|
]
|
|
|
};
|
|
|
},
|
|
|
+ created(){
|
|
|
+ this.loadStat();
|
|
|
+ },
|
|
|
methods: {
|
|
|
-
|
|
|
+ loadStat(beginDate, endDate){
|
|
|
+ staffStat().then(res =>{
|
|
|
+ list[0].num = res.data.data;
|
|
|
+ });
|
|
|
+ guestStat(null, null).then(res => {
|
|
|
+ list[1].num = res.data.data;
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|