Merge branch 'dev' into 'master'

历史数据翻页bug

See merge request duoji/duoji-frontend!1
merge-requests/1/merge
wang 4 years ago
commit 6995ce0cd8

Binary file not shown.

@ -95,13 +95,13 @@ export default {
}, },
methods: { methods: {
handleGetCameraList(pagination) { handleGetCameraList(pagination) {
console.log(pagination)
if(pagination){ if(pagination){
this.pagination.current = pagination.current; this.pagination.current = pagination.current;
this.pagination.pageSize = pagination.pageSize; this.pagination.pageSize = pagination.pageSize;
this.pageNum = pagination.current; this.pageNum = pagination.current;
this.pageSize = pagination.pageSize; this.pageSize = pagination.pageSize;
} }
this.request(); this.request();
}, },
request(){ request(){

@ -181,7 +181,8 @@ export default {
}, },
handleSearch() { handleSearch() {
console.log(this.queryParam) console.log(this.queryParam)
this.handleGetHistoryList() this.pageNum = 1
this.request()
}, },
handleGetHistoryList(pagination) { handleGetHistoryList(pagination) {
@ -216,12 +217,17 @@ export default {
console.log(date) console.log(date)
console.log(dateString) console.log(dateString)
console.log(date[0].format('YYYY-MM-DD HH:mm')) console.log(date[0].format('YYYY-MM-DD HH:mm'))
this.pageNum = 1
this.queryParam.startTimestamp = date[0].format('YYYY-MM-DD HH:mm:ss') this.queryParam.startTimestamp = date[0].format('YYYY-MM-DD HH:mm:ss')
this.queryParam.endTimestamp = date[1].format('YYYY-MM-DD HH:mm:ss') this.queryParam.endTimestamp = date[1].format('YYYY-MM-DD HH:mm:ss')
}, },
handleReset() { handleReset() {
this.queryParam.startTimestamp = "" this.queryParam.startTimestamp = ""
this.queryParam.endTimestamp = "" this.queryParam.endTimestamp = ""
this.pageNum = 1
this.pageSize = 10
}, },
showModel(record) { showModel(record) {
this.visible = true this.visible = true
@ -239,6 +245,8 @@ export default {
this.queryParam.endTimestamp = "" this.queryParam.endTimestamp = ""
this.queryParam.orderNum = "" this.queryParam.orderNum = ""
this.time = [] this.time = []
this.pageNum = 1
this.pageSize = 10
this.handleGetHistoryList() this.handleGetHistoryList()
}, },
}, },

@ -3,6 +3,7 @@
<a-button type="primary" class="add" @click="showModel('add','')"> <a-button type="primary" class="add" @click="showModel('add','')">
新增巷道 新增巷道
</a-button> </a-button>
<a-table <a-table
style="margin-top:40px" style="margin-top:40px"
:columns="columns" :columns="columns"

@ -110,8 +110,8 @@ export default {
let idName = rowIndex + "-" + columnIndex; let idName = rowIndex + "-" + columnIndex;
console.log("idName:"+idName); console.log("idName:"+idName);
let video = document.getElementById(idName); let video = document.getElementById(idName);
let player = new WebRtcPlayer(video,"camera"+cameras[i].id); let player = new WebRtcPlayer(video,"camera"+cameras[i-1].id);
player.play('camera'+cameras[i].id); player.play('camera'+cameras[i-1].id);
} }
} }

Loading…
Cancel
Save