|
|
@@ -117,12 +117,12 @@
|
|
|
},
|
|
|
methods: {
|
|
|
initOption() {
|
|
|
- if (this.tenantType==1) {
|
|
|
- let jrfk= this.list.filter(item=>item.name='今日访客')[0]
|
|
|
- jrfk.option=guestOptionYq
|
|
|
- }else{
|
|
|
- jrfk.option=guestOptionSq
|
|
|
- }
|
|
|
+ let jrfk = this.list.filter(item=>item.name='今日访客')[0];
|
|
|
+ if (this.tenantType==1) {
|
|
|
+ jrfk.option = guestOptionYq;
|
|
|
+ }else{
|
|
|
+ jrfk.option = guestOptionSq;
|
|
|
+ }
|
|
|
},
|
|
|
onClick(item) {
|
|
|
this.option = item.option;
|
|
|
@@ -130,9 +130,9 @@
|
|
|
this.$refs.crud.rowAdd();
|
|
|
},
|
|
|
loadStat(beginDate, endDate) {
|
|
|
- staffStat().then(res => {
|
|
|
- this.list[0].num = res.data.data;
|
|
|
- });
|
|
|
+ // staffStat().then(res => {
|
|
|
+ // this.list[0].num = res.data.data;
|
|
|
+ // });
|
|
|
guestStat(null, null).then(res => {
|
|
|
this.list[1].num = res.data.data;
|
|
|
});
|