|
|
@ -236,7 +236,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="paging"> |
|
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage4" |
|
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" |
|
|
|
:page-sizes="[10, 20, 100, 200, 500, 1000]" :page-size="pageSize" :layout="paginationConfig" :total="total"> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
@ -2934,7 +2934,7 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
this.searchCardIds = searchCardIds |
|
|
|
this.getAboutRoom() |
|
|
|
// this.getAboutRoom() |
|
|
|
let list = res1.data.list |
|
|
|
setTimeout(()=>{ |
|
|
|
list.map(li=>{ |
|
|
@ -2944,10 +2944,6 @@ export default { |
|
|
|
this.userlist = list; |
|
|
|
this.total = res1.data.total; |
|
|
|
},500) |
|
|
|
// this.getallstatus(para); |
|
|
|
// console.log(res1.data.list); |
|
|
|
// this.userlist = res1.data.list; |
|
|
|
// this.total = res1.data.total; |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 获取人员列表 |
|
|
@ -4550,6 +4546,7 @@ export default { |
|
|
|
// 凭证列表获取 |
|
|
|
getcertificate() { |
|
|
|
if (this.credentialSearch.roomId) { |
|
|
|
console.log(123) |
|
|
|
var t = { |
|
|
|
roomIds: [this.credentialSearch.roomId], |
|
|
|
lockType: 1 |
|
|
@ -4558,6 +4555,7 @@ export default { |
|
|
|
q: JSON.stringify(t), |
|
|
|
}; |
|
|
|
httpPost(data, this.$api.getDeviceItems).then((res) => { |
|
|
|
console.log(res) |
|
|
|
if (res.success) { |
|
|
|
var data = { |
|
|
|
pageNum: 0, |
|
|
@ -4578,6 +4576,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
console.log(234) |
|
|
|
var data = { |
|
|
|
pageNum: 0, |
|
|
|
pageSize: 0, |
|
|
@ -6882,59 +6881,21 @@ export default { |
|
|
|
}, |
|
|
|
handleSizeChange(val) { |
|
|
|
// console.log(`每页 ${val} 条`); |
|
|
|
this.getlistNum(0, val); |
|
|
|
// this.getlistNum(0, val); |
|
|
|
this.pageSize = val |
|
|
|
this.pageNum = 1 |
|
|
|
this.handleSearch() |
|
|
|
}, |
|
|
|
|
|
|
|
handleCurrentChange(val) { |
|
|
|
this.pageNum =val |
|
|
|
// console.log(`当前页: ${val}`); |
|
|
|
this.getlistNum(val, 10); |
|
|
|
// this.getlistNum(val, 10); |
|
|
|
this.$store.commit("increment", val); |
|
|
|
}, |
|
|
|
// 分页 |
|
|
|
handleSizeChange2(val) { |
|
|
|
this.pageSize2 = val |
|
|
|
this.getlistNum2(0, val); |
|
|
|
}, |
|
|
|
handleCurrentChange2(val) { |
|
|
|
this.currentPage2 = val |
|
|
|
// console.log(`当前页: ${val}`); |
|
|
|
this.getlistNum2(val, 10); |
|
|
|
}, |
|
|
|
getlistNum2(val, size) { |
|
|
|
var data = { |
|
|
|
pageNum: this.currentPage2, |
|
|
|
pageSize: this.pageSize2, |
|
|
|
orderBy: "create_at desc", |
|
|
|
q: { |
|
|
|
cardId: this.drawerRow.id, |
|
|
|
}, |
|
|
|
}; |
|
|
|
httpGet(data, this.$api.getCertificates).then((res) => { |
|
|
|
var certiflist = utils.zlib_unzip(res.data) |
|
|
|
var AboutDevice = this.allAboutDevice; |
|
|
|
certiflist.map((li) => { |
|
|
|
li.createAt = this.time(+new Date(li.createAt)); |
|
|
|
li.userTelephone = JSON.parse(li.content).userTelephone; |
|
|
|
li.pzname = JSON.parse(li.content).pzname; |
|
|
|
li['statusText'] = utils.statusCode(li.status) |
|
|
|
li['startTimeText'] = utils.formatTime(li.startTime) |
|
|
|
li['endTimeText'] = utils.formatTime(li.endTime) |
|
|
|
var resultArr = AboutDevice.filter( |
|
|
|
(_item) => _item.imei == li.imei |
|
|
|
)[0]; |
|
|
|
if (resultArr) { |
|
|
|
li.roomId = resultArr.id; |
|
|
|
li.roomName = resultArr.roomName; |
|
|
|
} else { |
|
|
|
li.roomId = ""; |
|
|
|
li.roomName = ""; |
|
|
|
} |
|
|
|
}); |
|
|
|
this.roomtable2 = certiflist; |
|
|
|
this.total2 = res.data.total; |
|
|
|
}); |
|
|
|
this.handleSearch() |
|
|
|
}, |
|
|
|
getlistNum(val, size) { |
|
|
|
console.log(val) |
|
|
|
var q = { |
|
|
|
// type: 0, |
|
|
|
name: this.query.name, |
|
|
|