物联设备拉取设备同步推送
This commit is contained in:
parent
21052b019d
commit
92d2d9f9c1
|
|
@ -27,14 +27,15 @@
|
|||
<div style="margin-top:-3px;"><span style="background:#eeeeee;padding: 2px;border-radius:5px;font-size:11px;">用电量</span></div>
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: left;margin-top:9px;">
|
||||
<div style="font-size: 12px;">设备类型:<a-tag color="red">电表</a-tag></div>
|
||||
<!-- <div style="font-size: 12px;">设备类型:<a-tag color="red">电表</a-tag></div>-->
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: right;margin-top:9px;">
|
||||
<div style="font-weight: 700;font-size:16px;">
|
||||
<!-- <div style="font-weight: 700;font-size:16px;">
|
||||
<span v-if="item.maintainStatus=='正常'">正常</span>
|
||||
<span v-if="item.maintainStatus=='损坏'" style="color: red;">损坏</span>
|
||||
</div>
|
||||
<div style="font-size: 12px;">维修状态</div>
|
||||
<div style="font-size: 12px;">维修状态</div>-->
|
||||
<a-tag color="red">电表</a-tag>
|
||||
</a-col>
|
||||
<a-col>
|
||||
<a-divider style="margin: 12px 0 16px 0px;" />
|
||||
|
|
|
|||
|
|
@ -27,14 +27,15 @@
|
|||
<div style="margin-top:-3px;"><span style="background:#eeeeee;padding: 2px;border-radius:5px;font-size:11px;">用水量</span></div>
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: left;margin-top:9px;">
|
||||
<div style="font-size: 12px;">设备类型:<a-tag color="blue">水表</a-tag></div>
|
||||
<!-- <div style="font-size: 12px;">设备类型:<a-tag color="blue">水表</a-tag></div>-->
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: right;margin-top:9px;">
|
||||
<div style="font-weight: 700;font-size:16px;">
|
||||
<!-- <div style="font-weight: 700;font-size:16px;">
|
||||
<span v-if="item.maintainStatus=='正常'">正常</span>
|
||||
<span v-if="item.maintainStatus=='损坏'" style="color: red;">损坏</span>
|
||||
</div>
|
||||
<div style="font-size: 12px;">维修状态</div>
|
||||
<div style="font-size: 12px;">维修状态</div>-->
|
||||
<a-tag color="blue">水表</a-tag>
|
||||
</a-col>
|
||||
<a-col>
|
||||
<a-divider style="margin: 12px 0 16px 0px;" />
|
||||
|
|
|
|||
|
|
@ -23,14 +23,15 @@
|
|||
<img src="../../../../assets/iot/sxt.png" style="height: 75px;margin-top: 10px;">
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: left;margin-top:9px;">
|
||||
<div style="font-size: 12px;">设备类型:<a-tag color="purple">摄像头</a-tag></div>
|
||||
<!-- <div style="font-size: 12px;">设备类型:<a-tag color="purple">摄像头</a-tag></div>-->
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: right;margin-top:9px;">
|
||||
<div style="font-weight: 700;font-size:16px;">
|
||||
<span v-if="item.maintainStatus=='正常'">正常</span>
|
||||
<span v-if="item.maintainStatus=='损坏'" style="color: red;">损坏</span>
|
||||
</div>
|
||||
<div style="font-size: 12px;">维修状态</div>
|
||||
<!-- <div style="font-weight: 700;font-size:16px;">-->
|
||||
<!-- <span v-if="item.maintainStatus=='正常'">正常</span>-->
|
||||
<!-- <span v-if="item.maintainStatus=='损坏'" style="color: red;">损坏</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div style="font-size: 12px;">维修状态</div>-->
|
||||
<div style="font-size: 12px;"><a-tag color="purple">摄像头</a-tag></div>
|
||||
</a-col>
|
||||
<a-col>
|
||||
<a-divider style="margin: 12px 0 16px 0px;" />
|
||||
|
|
|
|||
|
|
@ -37,14 +37,15 @@
|
|||
</a-row>
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: left;margin-top:9px;">
|
||||
<div style="font-size: 12px;">设备类型:<a-tag color="green">温湿度计</a-tag></div>
|
||||
<!-- <div style="font-size: 12px;">设备类型:<a-tag color="green">温湿度计</a-tag></div>-->
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: right;margin-top:9px;">
|
||||
<div style="font-weight: 700;font-size:16px;">
|
||||
<!-- <div style="font-weight: 700;font-size:16px;">
|
||||
<span v-if="item.maintainStatus=='正常'">正常</span>
|
||||
<span v-if="item.maintainStatus=='损坏'" style="color: red;">损坏</span>
|
||||
</div>
|
||||
<div style="font-size: 12px;">维修状态</div>
|
||||
<div style="font-size: 12px;">维修状态</div>-->
|
||||
<a-tag color="green">温湿度计</a-tag>
|
||||
</a-col>
|
||||
<a-col>
|
||||
<a-divider style="margin: 12px 0 16px 0px;" />
|
||||
|
|
|
|||
|
|
@ -152,15 +152,13 @@
|
|||
return [
|
||||
{
|
||||
label: '绑定区域',
|
||||
onClick: handleDeviceBroken.bind(null, record),
|
||||
// ifShow: record.onlineStatus!='待集成' && record.dimension == '区域维度' && record.nuId == null
|
||||
ifShow: record.dimension == '区域维度' && record.nuId == null
|
||||
onClick: handleDeviceGh.bind(null, record,"绑定"),
|
||||
ifShow: record.onlineStatus!='待集成' && record.dimension == '区域维度' && record.nuId == null
|
||||
},
|
||||
{
|
||||
label: '更换',
|
||||
onClick: handleDeviceGh.bind(null, record),
|
||||
// ifShow: (record.onlineStatus!='待集成' && record.dimension == '区域维度') && record.nuId != null
|
||||
ifShow: (record.dimension == '区域维度') && record.nuId != null
|
||||
onClick: handleDeviceGh.bind(null, record,"更换"),
|
||||
ifShow: (record.onlineStatus!='待集成' && record.dimension == '区域维度') && record.nuId != null
|
||||
},
|
||||
{
|
||||
label: '损坏',
|
||||
|
|
@ -181,7 +179,8 @@
|
|||
/**
|
||||
* 更换
|
||||
*/
|
||||
function handleDeviceGh(record: Recordable) {
|
||||
function handleDeviceGh(record: Recordable,optType) {
|
||||
record.optType = optType;
|
||||
ghDrawer.value.disableSubmit = false;
|
||||
ghDrawer.value.edit(record);
|
||||
}
|
||||
|
|
@ -189,7 +188,8 @@
|
|||
/**
|
||||
* 设备清单
|
||||
*/
|
||||
function handleDevicePreview(record: Recordable) {
|
||||
function handleDevicePreview(record: Recordable,optType) {
|
||||
record.optType = optType;
|
||||
previewDrawer.value.disableSubmit = true;
|
||||
previewDrawer.value.edit(record);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@ function add(record) {
|
|||
* @param record
|
||||
*/
|
||||
function edit(record) {
|
||||
title.value = disableSubmit.value ? '详情' : '更换';
|
||||
title.value = record.optType;
|
||||
// title.value = disableSubmit.value ? '详情' : '更换';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.edit(record);
|
||||
|
|
|
|||
Loading…
Reference in New Issue