物联设备同步推送

This commit is contained in:
曹磊 2026-04-08 17:45:06 +08:00
parent 62061826fc
commit 4f0bd551c1
8 changed files with 51 additions and 14 deletions

View File

@ -179,6 +179,7 @@ function handleJcfy(record) {
// //
function handleWlsb(record) { function handleWlsb(record) {
wlsbModal.value.disableSubmit = true; wlsbModal.value.disableSubmit = true;
// wlsbModal.value.edit(record);
wlsbModal.value.add(record); wlsbModal.value.add(record);
} }

View File

@ -287,7 +287,7 @@
</div> </div>
<div style="margin-top: 10px;padding: 14px;background-color: white;"> <div style="margin-top: 10px;padding: 14px;background-color: white;">
<span style="font-size: 16px;color:red;font-weight: 700;">提示联系平台运维组技术人员绑定物联设备</span> <span style="font-size: 16px;color:red;font-weight: 700;">提示物联设备功能中绑定物联设备</span>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>

View File

@ -1,12 +1,12 @@
<template> <template>
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-row> <a-row>
<a-col :span="24"> <!-- <a-col :span="24">-->
<a-button type="primary" @click="checkSxt" preIcon="ant-design:plus-outlined" style="margin-left:10px;"> 摄像头</a-button> <!-- <a-button type="primary" @click="checkSxt" preIcon="ant-design:plus-outlined" style="margin-left:10px;"> 摄像头</a-button>-->
<a-button type="primary" @click="checkDb" preIcon="ant-design:plus-outlined" style="margin-left:10px;"> 电表</a-button> <!-- <a-button type="primary" @click="checkDb" preIcon="ant-design:plus-outlined" style="margin-left:10px;"> 电表</a-button>-->
<a-button type="primary" @click="checkSb" preIcon="ant-design:plus-outlined" style="margin-left:10px;"> 水表</a-button> <!-- <a-button type="primary" @click="checkSb" preIcon="ant-design:plus-outlined" style="margin-left:10px;"> 水表</a-button>-->
<a-button type="primary" @click="checkWsdj" preIcon="ant-design:plus-outlined" style="margin-left:10px;"> 温湿度计</a-button> <!-- <a-button type="primary" @click="checkWsdj" preIcon="ant-design:plus-outlined" style="margin-left:10px;"> 温湿度计</a-button>-->
</a-col> <!-- </a-col>-->
<a-col :span="24"> <a-col :span="24">
<a-row> <a-row>
<SxtList :tableData="dataList.cameraInfoList" @ok="hadleSuccess"></SxtList> <SxtList :tableData="dataList.cameraInfoList" @ok="hadleSuccess"></SxtList>
@ -15,6 +15,15 @@
<WsdjList :tableData="dataList.humidDeviceList" @ok="hadleSuccess"></WsdjList> <WsdjList :tableData="dataList.humidDeviceList" @ok="hadleSuccess"></WsdjList>
</a-row> </a-row>
</a-col> </a-col>
<a-col v-if="dataList?.cameraInfoList.length == 0 && dataList?.electricityMeterList.length == 0 && dataList?.waterMeterList.length == 0 && dataList?.humidDeviceList.length == 0"
span="24">
<div style="margin: 30px auto;">
<a-empty />
</div>
<div style="margin-top: 10px;padding: 14px;background-color: white;">
<span style="font-size: 16px;color:red;font-weight: 700;">提示请在物联设备功能中绑定物联设备</span>
</div>
</a-col>
</a-row> </a-row>
<CheckSxtModal ref="checkSxtModal" @success="handleSuccess"/> <CheckSxtModal ref="checkSxtModal" @success="handleSuccess"/>
<CheckDbModal ref="checkDbModal" @success="handleSuccess"/> <CheckDbModal ref="checkDbModal" @success="handleSuccess"/>

View File

@ -98,7 +98,7 @@
pageSizeOptions: ['15', '50', '70', '100'], pageSizeOptions: ['15', '50', '70', '100'],
}, },
actionColumn: { actionColumn: {
width: 290, width: 180,
fixed:'right' fixed:'right'
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
@ -110,9 +110,9 @@
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
const labelCol = reactive({ const labelCol = reactive({
xs:24, xs:24,
sm:4, sm:8,
xl:6, xl:8,
xxl:4 xxl:8
}); });
const wrapperCol = reactive({ const wrapperCol = reactive({
xs: 24, xs: 24,
@ -151,14 +151,21 @@
function getTableAction(record){ function getTableAction(record){
return [ return [
{ {
label: '损坏', label: '绑定区域',
onClick: handleDeviceBroken.bind(null, record), onClick: handleDeviceBroken.bind(null, record),
ifShow: (record.onlineStatus!='待集成' && record.deviceStatus != '损坏') // ifShow: record.onlineStatus!='' && record.dimension == '' && record.nuId == null
ifShow: record.dimension == '区域维度' && record.nuId == null
}, },
{ {
label: '更换', label: '更换',
onClick: handleDeviceGh.bind(null, record), onClick: handleDeviceGh.bind(null, record),
ifShow: (record.onlineStatus!='待集成' && record.dimension == '区域维度' && record.deviceStatus != '损坏') // ifShow: (record.onlineStatus!='' && record.dimension == '') && record.nuId != null
ifShow: (record.dimension == '区域维度') && record.nuId != null
},
{
label: '损坏',
onClick: handleDeviceBroken.bind(null, record),
// ifShow: record.onlineStatus!=''
}, },
] ]
} }

View File

@ -44,6 +44,7 @@ const formData = reactive<Record<string, any>>({
deviceModel: undefined, deviceModel: undefined,
factory: undefined, factory: undefined,
sn: undefined, sn: undefined,
ywId: undefined,
optType: '损坏' optType: '损坏'
}); });
const { createMessage } = useMessage(); const { createMessage } = useMessage();

View File

@ -57,6 +57,7 @@ const formData = reactive<Record<string, any>>({
deviceModel: undefined, deviceModel: undefined,
factory: undefined, factory: undefined,
sn: undefined, sn: undefined,
ywId: undefined,
optType: '换绑' optType: '换绑'
}); });
const { createMessage } = useMessage(); const { createMessage } = useMessage();

View File

@ -47,6 +47,7 @@ const emit = defineEmits(['register', 'ok']);
const formData = reactive<Record<string, any>>({ const formData = reactive<Record<string, any>>({
id: undefined, id: undefined,
sn: undefined, sn: undefined,
ywId: undefined,
remarks: undefined, remarks: undefined,
}); });
const { createMessage } = useMessage(); const { createMessage } = useMessage();

View File

@ -37,6 +37,11 @@ export const columns: BasicColumn[] = [
align: "center", align: "center",
dataIndex: 'sn', dataIndex: 'sn',
}, },
{
title: '设备名称',
align: "center",
dataIndex: 'deviceName',
},
{ {
title: '设备类型', title: '设备类型',
align: "center", align: "center",
@ -56,11 +61,23 @@ export const columns: BasicColumn[] = [
title: '设备状态', title: '设备状态',
align: "center", align: "center",
dataIndex: 'deviceStatus', dataIndex: 'deviceStatus',
customRender:({record})=>{
if(record.deviceStatus==null || record.deviceStatus==''){
return "-";
}else{
return record.deviceStatus;
}
},
}, },
]; ];
//列表数据 //列表数据
export const previewColumns: BasicColumn[] = [ export const previewColumns: BasicColumn[] = [
{
title: '设备名称',
align: "center",
dataIndex: 'deviceName',
},
{ {
title: '设备类型', title: '设备类型',
align: "center", align: "center",