物联智能电表调整
This commit is contained in:
parent
fd9bf49aea
commit
66c9448ba2
|
|
@ -16,12 +16,7 @@ export const columns: BasicColumn[] = [
|
|||
{
|
||||
title: 'SN',
|
||||
align: "center",
|
||||
dataIndex: 'address'
|
||||
},
|
||||
{
|
||||
title: '采集器号',
|
||||
align: "center",
|
||||
dataIndex: 'cid'
|
||||
dataIndex: 'sn'
|
||||
},
|
||||
{
|
||||
title: '设备状态',
|
||||
|
|
@ -39,24 +34,6 @@ export const columns: BasicColumn[] = [
|
|||
return record.online?(record.online=='true'?'在线':'离线'):'';
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '信号强度',
|
||||
align: "center",
|
||||
dataIndex: 'csq',
|
||||
customRender:({record})=>{
|
||||
if(record.csq){
|
||||
if(record.csq < 10){
|
||||
return '低';
|
||||
}else if(record.csq > 20){
|
||||
return '高';
|
||||
}else{
|
||||
return '中';
|
||||
}
|
||||
}else{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '用电量KWH',
|
||||
align: "center",
|
||||
|
|
@ -67,16 +44,6 @@ export const columns: BasicColumn[] = [
|
|||
align: "center",
|
||||
dataIndex: 'readTime'
|
||||
},
|
||||
{
|
||||
title: '上次上线时间',
|
||||
align: "center",
|
||||
dataIndex: 'connectTime'
|
||||
},
|
||||
{
|
||||
title: '上次掉线时间',
|
||||
align: "center",
|
||||
dataIndex: 'disconnectTime'
|
||||
},
|
||||
{
|
||||
title: '描述',
|
||||
align: "center",
|
||||
|
|
@ -107,7 +74,7 @@ export const searchFormSchema: FormSchema[] = [
|
|||
},
|
||||
{
|
||||
label: 'SN',
|
||||
field: 'address',
|
||||
field: 'sn',
|
||||
component: 'Input',
|
||||
colProps: { span: 6 },
|
||||
},
|
||||
|
|
@ -137,18 +104,4 @@ export const searchFormSchema: FormSchema[] = [
|
|||
},
|
||||
colProps: { span: 6 },
|
||||
},
|
||||
{
|
||||
label: '信号强度',
|
||||
field: 'csq',
|
||||
component: 'JDictSelectTag',
|
||||
componentProps: {
|
||||
placeholder: '请选择强度',
|
||||
options: [
|
||||
{ label: '高', value: '1' },
|
||||
{ label: '中', value: '2' },
|
||||
{ label: '低', value: '3' },
|
||||
],
|
||||
},
|
||||
colProps: { span: 6 },
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@
|
|||
:wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="address">
|
||||
<a-form-item name="sn">
|
||||
<template #label><span title="SN">SN</span></template>
|
||||
<j-input placeholder="请输入SN" v-model:value="queryParam.address" allow-clear :type="'default'"></j-input>
|
||||
<j-input placeholder="请输入SN" v-model:value="queryParam.sn" allow-clear :type="'default'"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
|
|
@ -109,7 +109,7 @@ import { reactive, ref, h, onMounted } from 'vue';
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { Statistic } from 'ant-design-vue';
|
||||
import { Modal } from "ant-design-vue";
|
||||
import { list, eleReset, eleControl, eleRead } from './electricity.api';
|
||||
import { list, eleReset, eleCutOff, eleConnected, eleRead } from './electricity.api';
|
||||
import { Pagination } from 'ant-design-vue';
|
||||
import { JInput } from '/@/components/Form';
|
||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
|
|
@ -146,8 +146,7 @@ function searchReset() {
|
|||
// 抄电表
|
||||
async function handleRead(record) {
|
||||
const params = {
|
||||
'cid': record.cid,
|
||||
'address': record.address,
|
||||
'sn': record.sn,
|
||||
};
|
||||
await eleRead(params);
|
||||
setTimeout(() => {
|
||||
|
|
@ -168,11 +167,10 @@ async function handleControlLz(record) {
|
|||
return;
|
||||
}
|
||||
const params = {
|
||||
'cid': record.cid,
|
||||
'address': record.address,
|
||||
'type': '10',
|
||||
'sn' : record.sn,
|
||||
'type': '10'
|
||||
};
|
||||
await eleControl(params);
|
||||
await eleCutOff(params);
|
||||
setTimeout(() => {
|
||||
reload();
|
||||
}, 4000);
|
||||
|
|
@ -191,11 +189,10 @@ async function handleControlHz(record) {
|
|||
return;
|
||||
}
|
||||
const params = {
|
||||
'cid': record.cid,
|
||||
'address': record.address,
|
||||
'type': '11',
|
||||
'sn' : record.sn,
|
||||
'type': '11'
|
||||
};
|
||||
await eleControl(params);
|
||||
await eleConnected(params);
|
||||
setTimeout(() => {
|
||||
reload();
|
||||
}, 4000);
|
||||
|
|
@ -204,8 +201,7 @@ async function handleControlHz(record) {
|
|||
// 电表清零
|
||||
async function handleReset(record) {
|
||||
const params = {
|
||||
'cid': record.cid,
|
||||
'address': record.address,
|
||||
'sn' : record.sn
|
||||
};
|
||||
await eleReset(params);
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue