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