| @@ -1034,7 +1034,8 @@ export default { | |||||
| // dateType: 1, | // dateType: 1, | ||||
| orderBy:1, | orderBy:1, | ||||
| startDate: this.statDateStart, | startDate: this.statDateStart, | ||||
| endDate:this.statDateEnd | |||||
| endDate:this.statDateEnd, | |||||
| orgType: localStorage.getItem("orgType"), | |||||
| } | } | ||||
| if(this.role==1){ | if(this.role==1){ | ||||
| obj.agentId=localStorage.getItem('agentId')/1 | obj.agentId=localStorage.getItem('agentId')/1 | ||||
| @@ -749,8 +749,6 @@ export default { | |||||
| id, | id, | ||||
| }) | }) | ||||
| .then((res) => { | .then((res) => { | ||||
| // console.log(res); | |||||
| // this.wifiForm=res.data | |||||
| this.wifiForm = { | this.wifiForm = { | ||||
| imei: res.data.imei, | imei: res.data.imei, | ||||
| masterWifiName: res.data.masterWifiName, | masterWifiName: res.data.masterWifiName, | ||||
| @@ -814,13 +812,33 @@ export default { | |||||
| }) | }) | ||||
| .then((res) => { | .then((res) => { | ||||
| // console.log(res); | // console.log(res); | ||||
| this.tableData = res.data.list.records; | |||||
| let newlist=res.data.list.records; | |||||
| newlist.map(item=>{ | |||||
| let num=this.ascformatDate(item.updateTime) | |||||
| if(num>12){ | |||||
| item.electricity=0; | |||||
| item.signalDevice=0; | |||||
| } | |||||
| }) | |||||
| this.tableData = newlist; | |||||
| this.onLineCount = res.data.onLineCount; | this.onLineCount = res.data.onLineCount; | ||||
| this.offLineCount = res.data.offLineCount; | this.offLineCount = res.data.offLineCount; | ||||
| this.workingCount = res.data.workingCount; | this.workingCount = res.data.workingCount; | ||||
| this.total = res.data.list.total; | this.total = res.data.list.total; | ||||
| }); | }); | ||||
| }, | }, | ||||
| ascformatDate(dateTimeStamp){ | |||||
| let newDate = new Date(dateTimeStamp.replace(/-/g, '/')).getTime(); | |||||
| let minute = 1000 * 60; | |||||
| let hour = minute * 60; | |||||
| let day = hour * 24; | |||||
| let halfamonth = day * 15; | |||||
| let month = day * 30; | |||||
| let now = new Date().getTime(); | |||||
| let diffValue = now - newDate; | |||||
| let result =diffValue/hour; | |||||
| return result; | |||||
| }, | |||||
| //批量 | //批量 | ||||
| Batchreturn() { | Batchreturn() { | ||||
| this.$confirm("确认批量归还吗?", "提示", { | this.$confirm("确认批量归还吗?", "提示", { | ||||
| @@ -709,6 +709,9 @@ export default { | |||||
| this.info = getStore({ name: "userInfo" }); | this.info = getStore({ name: "userInfo" }); | ||||
| this.init() | this.init() | ||||
| }, | }, | ||||
| destroyed(){ | |||||
| this.aplayer.destroy() | |||||
| }, | |||||
| methods: { | methods: { | ||||
| //上一首 | //上一首 | ||||
| aplayerChange(str){ | aplayerChange(str){ | ||||
| @@ -321,11 +321,11 @@ export default { | |||||
| // console.log(timeDate); | // console.log(timeDate); | ||||
| if (idx == 1 ) { | if (idx == 1 ) { | ||||
| // 接待量 | // 接待量 | ||||
| this.secondTab.yesterdayReceptionList.map((item) => { | |||||
| this.secondTab.todayReceptionList.map((item) => { | |||||
| timeDate.push(item.time.substring(11, 16)); | timeDate.push(item.time.substring(11, 16)); | ||||
| arr2.push(item.data); | arr2.push(item.data); | ||||
| }); | }); | ||||
| this.secondTab.todayReceptionList.map((item) => { | |||||
| this.secondTab.yesterdayReceptionList.map((item) => { | |||||
| arr1.push(item.data); | arr1.push(item.data); | ||||
| }); | }); | ||||
| } | } | ||||
| @@ -406,7 +406,6 @@ export default { | |||||
| dateType: this.dateType, | dateType: this.dateType, | ||||
| agentId: this.selValue == 0 ? this.choicValue : null, | agentId: this.selValue == 0 ? this.choicValue : null, | ||||
| orgCode: this.selValue == 1 ? this.choicValue : null, | orgCode: this.selValue == 1 ? this.choicValue : null, | ||||
| orgType: localStorage.getItem("orgType"), | |||||
| }) | }) | ||||
| .then((res) => { | .then((res) => { | ||||
| // console.log(res); | // console.log(res); | ||||
| @@ -426,11 +425,11 @@ export default { | |||||
| // console.log(timeDate); | // console.log(timeDate); | ||||
| if (idx == 1 ) { | if (idx == 1 ) { | ||||
| // 接待量 | // 接待量 | ||||
| this.secondTab.yesterdayReceptionList.map((item) => { | |||||
| this.secondTab.todayReceptionList.map((item) => { | |||||
| timeDate.push(item.time.substring(11, 16)); | timeDate.push(item.time.substring(11, 16)); | ||||
| arr2.push(item.data); | arr2.push(item.data); | ||||
| }); | }); | ||||
| this.secondTab.todayReceptionList.map((item) => { | |||||
| this.secondTab.yesterdayReceptionList.map((item) => { | |||||
| arr1.push(item.data); | arr1.push(item.data); | ||||
| }); | }); | ||||
| } | } | ||||
| @@ -2,8 +2,8 @@ | |||||
| <div class="box-center" ref="boxcenter" style="cursor:pointer;"> | <div class="box-center" ref="boxcenter" style="cursor:pointer;"> | ||||
| <!-- 头 --> | <!-- 头 --> | ||||
| <div class="app-top"> | <div class="app-top"> | ||||
| <div class="app-titel2" style="margin-bottom: 10px"> | |||||
| <div class="titel-text" v-if="orgType!=3"> | |||||
| <div v-if="orgType!=3" class="app-titel2" style="margin-bottom: 10px"> | |||||
| <div class="titel-text" > | |||||
| 楼盘选择: </div> | 楼盘选择: </div> | ||||
| <div style="margin-left: 26px"> | <div style="margin-left: 26px"> | ||||
| <el-select v-model="houseId" filterable @change="houseChange" placeholder="请选择"> | <el-select v-model="houseId" filterable @change="houseChange" placeholder="请选择"> | ||||