|
|
|
|
@ -350,7 +350,7 @@ |
|
|
|
|
</el-table> |
|
|
|
|
<!-- 分页 --> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background @current-change="handleCurrentChange1" :current-page.sync="current1" :page-size="10" |
|
|
|
|
<el-pagination background @current-change="handleCurrentChange1" :current-page.sync="current1" :page-size="size" |
|
|
|
|
layout="total, prev, pager, next" :total="total1"> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
@ -687,6 +687,9 @@ export default { |
|
|
|
|
window["handleDetail"] = () => { |
|
|
|
|
this.handleDetail() |
|
|
|
|
}; |
|
|
|
|
window["handleTurn"] = () => { |
|
|
|
|
this.handleTurn() |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
let dom = document.getElementById('door_box'); |
|
|
|
|
@ -925,6 +928,7 @@ export default { |
|
|
|
|
if (this.doorName) { |
|
|
|
|
this.isSearch = true; |
|
|
|
|
bfHelper.clearTags(); |
|
|
|
|
this.doorName1 = this.doorName |
|
|
|
|
getDoorJcjl( |
|
|
|
|
this.bimModel, |
|
|
|
|
null, |
|
|
|
|
@ -963,7 +967,7 @@ export default { |
|
|
|
|
this.current1, |
|
|
|
|
this.size, |
|
|
|
|
this.userName, |
|
|
|
|
this.doorName, |
|
|
|
|
this.doorName1, |
|
|
|
|
null |
|
|
|
|
).then((res) => { |
|
|
|
|
this.searchLists = res.data.data.records; |
|
|
|
|
@ -979,11 +983,13 @@ export default { |
|
|
|
|
// 点击报警信息定位到指定设备 |
|
|
|
|
bjClick(item) { |
|
|
|
|
this.dialogItem = item |
|
|
|
|
console.log('dialogItem=======================================',this.dialogItem) |
|
|
|
|
// |
|
|
|
|
bfHelper.clearDrawableContainer(); |
|
|
|
|
let id = bfHelper.disposeId(item.area, item.build, item.modelId); |
|
|
|
|
let box = bfHelper.getBoxMessage(id, true); |
|
|
|
|
if (box == "undefined") { |
|
|
|
|
console.log('box------------------------',box) |
|
|
|
|
if (box == "undefined" || box == undefined) { |
|
|
|
|
this.$message.error('对不起,暂无该设备模型,请稍后点击'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
@ -1146,6 +1152,7 @@ export default { |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<button style="padding: 5px 0;font-size: 12px;" onclick="handleDetail()">操作明细</button> |
|
|
|
|
<button style="padding: 5px 0;font-size: 12px;" onclick="handleTurn()">出入记录</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -1153,10 +1160,15 @@ export default { |
|
|
|
|
return content; |
|
|
|
|
}, |
|
|
|
|
handleDetail() { |
|
|
|
|
console.log('进入此方法') |
|
|
|
|
// this.$router.push(`/equipment/operationDetails?code=${this.dialogItem.code}&type=电子门禁&area=${this.bimModel}`) |
|
|
|
|
const routerUrl = this.$router.resolve({ path: '/equipment/operationDetails', query: { code: this.dialogItem.code,type:'电子门禁',area: this.bimModel} }); |
|
|
|
|
window.open(routerUrl.href, "_blank"); |
|
|
|
|
}, |
|
|
|
|
handleTurn(){ |
|
|
|
|
const routerUrl = this.$router.resolve({ path: '/equipment/doorRecord', query: { name: this.dialogItem.name,type:'电子门禁',area: this.bimModel} }); |
|
|
|
|
window.open(routerUrl.href, "_blank"); |
|
|
|
|
}, |
|
|
|
|
doorCustom(item) { |
|
|
|
|
setTimeout(() => { |
|
|
|
|
document.getElementById("pass-user").addEventListener("scroll", (e) => { |
|
|
|
|
@ -1253,11 +1265,12 @@ export default { |
|
|
|
|
this.current1, |
|
|
|
|
this.size, |
|
|
|
|
null, |
|
|
|
|
this.doorName, |
|
|
|
|
this.doorName1, |
|
|
|
|
null |
|
|
|
|
).then((res) => { |
|
|
|
|
this.searchLists = res.data.data.records; |
|
|
|
|
this.total1 = res.data.data.total; //总条目数 |
|
|
|
|
this.$forceUpdate() |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 定义表格的头部样式 |
|
|
|
|
|