|
|
@ -10,7 +10,10 @@ |
|
|
|
<img src="../assets/img/mszssbgl.png" class="w100" alt="" /> |
|
|
|
<div class="grid-cont-right"> |
|
|
|
<div>设备总数</div> |
|
|
|
<div class="grid-num">{{ sumpageTotal }}</div> |
|
|
|
<!-- <div class="grid-num">{{ sumpageTotal }}</div> --> |
|
|
|
<div class="font-size-24 grid-num"> |
|
|
|
<NumberGrow :value="sumpageTotal" class="color-333"></NumberGrow> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -21,7 +24,10 @@ |
|
|
|
<img src="../assets/img/mszssbgl.png" class="w100" alt="" /> |
|
|
|
<div class="grid-cont-right"> |
|
|
|
<div>绑定数量</div> |
|
|
|
<div class="grid-num">{{ analysisData.bingSite }}</div> |
|
|
|
<!-- <div class="grid-num">{{ analysisData.bingSite }}</div> --> |
|
|
|
<div class="font-size-24 grid-num"> |
|
|
|
<NumberGrow :value="analysisData.bingSite" class="color-333"></NumberGrow> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -32,7 +38,10 @@ |
|
|
|
<img src="../assets/img/mszssbgl.png" class="w100" alt="" /> |
|
|
|
<div class="grid-cont-right"> |
|
|
|
<div>常开数量</div> |
|
|
|
<div class="grid-num">{{ analysisData.isAlwaysOpen }}</div> |
|
|
|
<!-- <div class="grid-num">{{ analysisData.isAlwaysOpen }}</div> --> |
|
|
|
<div class="font-size-24 grid-num"> |
|
|
|
<NumberGrow :value="analysisData.isAlwaysOpen" class="color-333"></NumberGrow> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -65,7 +74,10 @@ |
|
|
|
<img src="../assets/img/mszssbgl.png" class="w100" alt="" /> |
|
|
|
<div class="grid-cont-right"> |
|
|
|
<div>低电数量</div> |
|
|
|
<div class="grid-num">0</div> |
|
|
|
<!-- <div class="grid-num">{{ lowBattery }}</div> --> |
|
|
|
<div class="font-size-24 grid-num"> |
|
|
|
<NumberGrow :value="lowBattery" class="color-333"></NumberGrow> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -76,7 +88,10 @@ |
|
|
|
<img src="../assets/img/wifisbgl.png" class="w100" alt="" /> |
|
|
|
<div class="grid-cont-right"> |
|
|
|
<div>在线状态</div> |
|
|
|
<div class="grid-num">{{ online }}</div> |
|
|
|
<!-- <div class="grid-num">{{ online }}</div> --> |
|
|
|
<div class="font-size-24 grid-num"> |
|
|
|
<NumberGrow :value="online" class="color-333"></NumberGrow> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -87,7 +102,10 @@ |
|
|
|
<img src="../assets/img/wifisbgl1.png" class="w100" alt="" /> |
|
|
|
<div class="grid-cont-right"> |
|
|
|
<div>异常状态</div> |
|
|
|
<div class="grid-num">{{ abnormal }}</div> |
|
|
|
<!-- <div class="grid-num">{{ abnormal }}</div> --> |
|
|
|
<div class="font-size-24 grid-num"> |
|
|
|
<NumberGrow :value="abnormal" class="color-333"></NumberGrow> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -209,7 +227,8 @@ |
|
|
|
<div @click="bindRoom(index, item)" v-else>绑定房间</div> |
|
|
|
<div @click="detailsFun(index, item)">门锁操作</div> |
|
|
|
<div @click="AddAdministrator(index, item)" v-if="item.manufactureId == 101">初始化</div> |
|
|
|
<div @click="getEmergence(index, item)" v-if="item.manufactureId == 201 || item.manufactureId == 221">临时密码</div> |
|
|
|
<div @click="getEmergence(index, item)" v-if="item.manufactureId == 201 || item.manufactureId == 221">临时密码 |
|
|
|
</div> |
|
|
|
<div @click="deleteLock(index, item)" v-show="userInfo.type == 0">删除</div> |
|
|
|
<div @click="RemoteUnlocking(index, item)" v-if="item.manufactureId == 101">远程开锁</div> |
|
|
|
<div @click="Reset(index, item)">重置门锁</div> |
|
|
@ -263,10 +282,10 @@ |
|
|
|
<el-table-column label="在线状态" align="center"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-tag :type="scope.row.isOnline == '1' |
|
|
|
? 'success' |
|
|
|
: scope.row.isOnline == '0' |
|
|
|
? 'danger' |
|
|
|
: '' |
|
|
|
? 'success' |
|
|
|
: scope.row.isOnline == '0' |
|
|
|
? 'danger' |
|
|
|
: '' |
|
|
|
"><span v-if="scope.row.isOnline == 1">在线</span> |
|
|
|
<span v-else>离线</span> |
|
|
|
</el-tag> |
|
|
@ -406,6 +425,16 @@ |
|
|
|
<el-input v-model="form.validateCode" size="small" :clearable="true"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
<div v-else-if="form.manufacturer == 1241"> |
|
|
|
<el-form-item label="设备号"> |
|
|
|
<el-input v-model="form.deviceNum" size="middle" :clearable="true"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
<!-- <el-form-item label="选择房间"> |
|
|
|
<el-cascader :options="options" size="middle" :props="{ checkStrictly: true }" @change="checkNodeOne" |
|
|
|
v-model="checkNodeId1" clearable> |
|
|
|
</el-cascader> |
|
|
|
</el-form-item> --> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
|
<span class="dialog-footer"> |
|
|
@ -646,6 +675,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import NumberGrow from "../components/visualizcomponent/NumberGrow.vue"; |
|
|
|
import { |
|
|
|
httpGet, |
|
|
|
httpPost, |
|
|
@ -676,6 +706,7 @@ export default { |
|
|
|
name: "doorLock", |
|
|
|
data() { |
|
|
|
return { |
|
|
|
lowBattery: 0, // 低电量 |
|
|
|
normallyOpenRecordList: [], |
|
|
|
normallyTotal: 0, |
|
|
|
normallyPageNum: 1, |
|
|
@ -1198,7 +1229,8 @@ export default { |
|
|
|
UnlockRecord, |
|
|
|
warningLog, |
|
|
|
DeviceFeedbackLog, |
|
|
|
voucherCom |
|
|
|
voucherCom, |
|
|
|
NumberGrow |
|
|
|
}, |
|
|
|
beforeCreate() { |
|
|
|
// var tenantId = JSON.parse(localStorage.getItem('tenantId')) |
|
|
@ -2109,6 +2141,7 @@ export default { |
|
|
|
this.online = callback.onlineTotal |
|
|
|
this.unonline = callback.offlineTotal |
|
|
|
this.abnormal = callback.isAppBind |
|
|
|
this.lowBattery = callback.batteryLevel1 |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 发送离线密码 |
|
|
@ -2365,7 +2398,7 @@ export default { |
|
|
|
this.$message.error(res2.msg); |
|
|
|
} |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
this.$message.error('需要超管才可设置常开') |
|
|
|
} |
|
|
|
} else { |
|
|
@ -2778,16 +2811,15 @@ export default { |
|
|
|
siteId: this.checkNodeId1, |
|
|
|
deviceId: callback.data.id, |
|
|
|
}]; |
|
|
|
httpPost(data, this.$api.bindDeviceSite) |
|
|
|
.then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message.success("绑定成功"); |
|
|
|
this.editVisible = false |
|
|
|
this.getdevice(); |
|
|
|
} |
|
|
|
}).catch((error) => { |
|
|
|
this.$message.error(`绑定失败`); |
|
|
|
}); |
|
|
|
httpPost(data, this.$api.bindDeviceSite).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message.success("绑定成功"); |
|
|
|
this.editVisible = false |
|
|
|
this.getdevice(); |
|
|
|
} |
|
|
|
}).catch((error) => { |
|
|
|
this.$message.error(`绑定失败`); |
|
|
|
}); |
|
|
|
this.$message.success(res.data.msg); |
|
|
|
this.editVisible = false; |
|
|
|
this.getdevice(); |
|
|
@ -2864,6 +2896,42 @@ export default { |
|
|
|
this.$message.error(callback.data.msg); |
|
|
|
} |
|
|
|
}) |
|
|
|
} else if (this.form.manufacturer == 1241) { |
|
|
|
if (this.form.deviceNum == "") { |
|
|
|
this.$message.error("请填写完整信息") |
|
|
|
} else { |
|
|
|
var data = { |
|
|
|
deviceNum: this.form.deviceNum, |
|
|
|
imei: "", |
|
|
|
imsi: "", |
|
|
|
platformId: 9, |
|
|
|
manufactureId: 1241 |
|
|
|
} |
|
|
|
RequestSet.RegisterDevice(data, (callback) => { |
|
|
|
if (callback.data.success && callback.success) { |
|
|
|
console.log(callback); |
|
|
|
var data = [{ |
|
|
|
siteId: this.checkNodeId1, |
|
|
|
deviceId: callback.data.id |
|
|
|
}] |
|
|
|
httpPost(data, this.$api.bindDeviceSite).then(res => { |
|
|
|
console.log(res); |
|
|
|
if (res.success) { |
|
|
|
this.$message.success("绑定成功") |
|
|
|
this.editVisible = false |
|
|
|
this.getdevice() |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
this.$message.error("绑定失败", error) |
|
|
|
}) |
|
|
|
// this.$message.success(res.data.msg) |
|
|
|
// this.editVisible = false |
|
|
|
// this.getdevice(); |
|
|
|
} else { |
|
|
|
this.$message.error(callback.data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -2980,6 +3048,7 @@ export default { |
|
|
|
// 设备状态统计筛选 |
|
|
|
screenStatisticsItemsMethods(data) { |
|
|
|
httpPost(data, this.$api.screenStatisticsItems).then(res => { |
|
|
|
console.log(res); |
|
|
|
if (res.code == 200) { |
|
|
|
var sumpageTotal = 0, online = 0, unonline = 0, abnormal = 0 |
|
|
|
res.data.map(li => { |
|
|
@ -3942,4 +4011,5 @@ export default { |
|
|
|
.demo-form-inline .el-form-item { |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
}</style> |
|
|
|
} |
|
|
|
</style> |