This commit is contained in:
1378012178@qq.com 2025-06-27 15:24:11 +08:00
commit c252a10311
5 changed files with 68 additions and 54 deletions

View File

@ -14,7 +14,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'nuName' dataIndex: 'nuName'
}, },
{ {
title: '号', title: '设备号',
align: "center", align: "center",
dataIndex: 'address' dataIndex: 'address'
}, },
@ -112,7 +112,7 @@ export const searchFormSchema: FormSchema[] = [
colProps: { span: 6 }, colProps: { span: 6 },
}, },
{ {
label: '号', label: '设备号',
field: 'address', field: 'address',
component: 'Input', component: 'Input',
colProps: { span: 6 }, colProps: { span: 6 },

View File

@ -6,7 +6,7 @@ import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据 //列表数据
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
title: '号', title: '设备号',
align: "center", align: "center",
dataIndex: 'address' dataIndex: 'address'
}, },
@ -16,34 +16,34 @@ export const columns: BasicColumn[] = [
dataIndex: 'type_dictText' dataIndex: 'type_dictText'
}, },
{ {
title: '上次请求值', title: '上次抄表值',
align: "center", align: "center",
dataIndex: 'requestValue' dataIndex: 'requestValue'
}, },
{ {
title: '本次请求值', title: '本次抄表值',
align: "center", align: "center",
dataIndex: 'resolveValue' dataIndex: 'resolveValue'
}, },
{ {
title: '本次请求时间', title: '本次抄表时间',
align: "center", align: "center",
dataIndex: 'requestTime' dataIndex: 'requestTime'
}, },
{ // {
title: '本次请求状态', // title: '本次抄表状态',
align: "center", // align: "center",
dataIndex: 'requestStatus_dictText' // dataIndex: 'requestStatus_dictText'
}, // },
{ // {
title: '本次反馈时间', // title: '本次反馈时间',
align: "center", // align: "center",
dataIndex: 'resolveTime' // dataIndex: 'resolveTime'
}, // },
{ {
title: '本次反馈状态', title: '本次反馈状态',
align: "center", align: "center",
dataIndex: 'resolveStatus_dictText' dataIndex: 'resolveStatus'
}, },
{ {
title: '反馈描述', title: '反馈描述',
@ -56,7 +56,7 @@ export const columns: BasicColumn[] = [
//列表数据 //列表数据
export const columns2: BasicColumn[] = [ export const columns2: BasicColumn[] = [
{ {
title: '号', title: '设备号',
align: "center", align: "center",
dataIndex: 'address' dataIndex: 'address'
}, },
@ -66,24 +66,14 @@ export const columns2: BasicColumn[] = [
dataIndex: 'type_dictText' dataIndex: 'type_dictText'
}, },
{ {
title: '本次请求时间', title: '本次抄表时间',
align: "center", align: "center",
dataIndex: 'requestTime' dataIndex: 'requestTime'
}, },
{
title: '本次请求状态',
align: "center",
dataIndex: 'requestStatus_dictText'
},
{
title: '本次反馈时间',
align: "center",
dataIndex: 'resolveTime'
},
{ {
title: '本次反馈状态', title: '本次反馈状态',
align: "center", align: "center",
dataIndex: 'resolveStatus_dictText' dataIndex: 'resolveStatus'
}, },
{ {
title: '反馈描述', title: '反馈描述',
@ -95,12 +85,12 @@ export const columns2: BasicColumn[] = [
// 高级查询数据 // 高级查询数据
export const superQuerySchema = { export const superQuerySchema = {
address: {title: '号',order: 0,view: 'text', type: 'string',}, address: {title: '设备号',order: 0,view: 'text', type: 'string',},
type: {title: '类型',order: 1,view: 'list', type: 'string',dictCode: 'dbsb_type',}, type: {title: '类型',order: 1,view: 'list', type: 'string',dictCode: 'dbsb_type',},
requestValue: {title: '请求时的值',order: 2,view: 'text', type: 'string',}, requestValue: {title: '抄表时的值',order: 2,view: 'text', type: 'string',},
requestTime: {title: '请求时间',order: 3,view: 'text', type: 'string',}, requestTime: {title: '抄表时间',order: 3,view: 'text', type: 'string',},
requestStatus: {title: '请求状态',order: 4,view: 'list', type: 'string',dictCode: '',}, requestStatus: {title: '抄表状态',order: 4,view: 'list', type: 'string',dictCode: '',},
requestRemark: {title: '请求描述',order: 5,view: 'text', type: 'string',}, requestRemark: {title: '抄表描述',order: 5,view: 'text', type: 'string',},
resolveValue: {title: '反馈值',order: 6,view: 'text', type: 'string',}, resolveValue: {title: '反馈值',order: 6,view: 'text', type: 'string',},
resolveTime: {title: '反馈时间',order: 7,view: 'text', type: 'string',}, resolveTime: {title: '反馈时间',order: 7,view: 'text', type: 'string',},
resolveStatus: {title: '反馈状态',order: 8,view: 'list', type: 'string',dictCode: 'dbsb_status',}, resolveStatus: {title: '反馈状态',order: 8,view: 'list', type: 'string',dictCode: 'dbsb_status',},

View File

@ -5,8 +5,8 @@
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="NuIotTqApiRequestLogForm"> <a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="NuIotTqApiRequestLogForm">
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="号" v-bind="validateInfos.address" id="NuIotTqApiRequestLogForm-address" name="address"> <a-form-item label="设备号" v-bind="validateInfos.address" id="NuIotTqApiRequestLogForm-address" name="address">
<a-input v-model:value="formData.address" placeholder="请输入号" allow-clear ></a-input> <a-input v-model:value="formData.address" placeholder="请输入设备号" allow-clear ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">

View File

@ -14,7 +14,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'nuName' dataIndex: 'nuName'
}, },
{ {
title: '号', title: '设备号',
align: "center", align: "center",
dataIndex: 'address' dataIndex: 'address'
}, },
@ -120,7 +120,7 @@ export const searchFormSchema: FormSchema[] = [
colProps: { span: 6 }, colProps: { span: 6 },
}, },
{ {
label: '号', label: '设备号',
field: 'address', field: 'address',
component: 'Input', component: 'Input',
colProps: { span: 6 }, colProps: { span: 6 },

View File

@ -14,7 +14,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'nuName' dataIndex: 'nuName'
}, },
{ {
title: '设备号', title: '设备号',
align: "center", align: "center",
dataIndex: 'sn' dataIndex: 'sn'
}, },
@ -99,7 +99,7 @@ export const searchFormSchema: FormSchema[] = [
colProps: { span: 6 }, colProps: { span: 6 },
}, },
{ {
label: '设备号', label: '设备号',
field: 'sn', field: 'sn',
component: 'Input', component: 'Input',
colProps: { span: 6 }, colProps: { span: 6 },
@ -127,7 +127,7 @@ export const formSchema: FormSchema[] = [
ifShow: false, ifShow: false,
}, },
{ {
label: '设备号', label: '设备号',
field: 'sn', field: 'sn',
component: 'Input', component: 'Input',
dynamicDisabled: ({ values }) => { dynamicDisabled: ({ values }) => {
@ -347,7 +347,7 @@ export const formSchema: FormSchema[] = [
//列表数据 //列表数据
export const logColumns: BasicColumn[] = [ export const logColumns: BasicColumn[] = [
{ {
title: '设备号', title: '设备号',
align: "center", align: "center",
dataIndex: 'sn' dataIndex: 'sn'
}, },
@ -361,10 +361,21 @@ export const logColumns: BasicColumn[] = [
align: "center", align: "center",
dataIndex: 'optBy' dataIndex: 'optBy'
}, },
{
title: '温度',
align: "center",
dataIndex: 'temperature',
},
{
title: '湿度',
align: "center",
dataIndex: 'humidity',
},
{ {
title: '操作类型', title: '操作类型',
align: "center", align: "center",
dataIndex: 'optType', dataIndex: 'optType',
defaultHidden: true,
customRender:({record})=>{ customRender:({record})=>{
if(record.optType == 'insert'){ if(record.optType == 'insert'){
return '新增'; return '新增';
@ -380,52 +391,62 @@ export const logColumns: BasicColumn[] = [
{ {
title: '记录间隔', title: '记录间隔',
align: "center", align: "center",
dataIndex: 'recordInterval' dataIndex: 'recordInterval',
defaultHidden: true
}, },
{ {
title: '上报间隔', title: '上报间隔',
align: "center", align: "center",
dataIndex: 'reportingInterval' dataIndex: 'reportingInterval',
defaultHidden: true
}, },
{ {
title: '历史数据上报时刻', title: '历史数据上报时刻',
align: "center", align: "center",
dataIndex: 'historyReportTime' dataIndex: 'historyReportTime',
defaultHidden: true
}, },
{ {
title: '历史数据上报间隔', title: '历史数据上报间隔',
align: "center", align: "center",
dataIndex: 'historyInterval' dataIndex: 'historyInterval',
defaultHidden: true
}, },
{ {
title: '温度预警-上限', title: '温度预警-上限',
align: "center", align: "center",
dataIndex: 'temperatureHigh' dataIndex: 'temperatureHigh',
defaultHidden: true
}, },
{ {
title: '温度预警-下限', title: '温度预警-下限',
align: "center", align: "center",
dataIndex: 'temperatureLow' dataIndex: 'temperatureLow',
defaultHidden: true
}, },
{ {
title: '温度缓冲值', title: '温度缓冲值',
align: "center", align: "center",
dataIndex: 'temperatureBuffer' dataIndex: 'temperatureBuffer',
defaultHidden: true
}, },
{ {
title: '湿度预警-上限', title: '湿度预警-上限',
align: "center", align: "center",
dataIndex: 'humidityHigh' dataIndex: 'humidityHigh',
defaultHidden: true
}, },
{ {
title: '湿度预警-下限', title: '湿度预警-下限',
align: "center", align: "center",
dataIndex: 'humidityLow' dataIndex: 'humidityLow',
defaultHidden: true
}, },
{ {
title: '湿度缓冲值', title: '湿度缓冲值',
align: "center", align: "center",
dataIndex: 'humidityBuffer' dataIndex: 'humidityBuffer',
defaultHidden: true
}, },
{ {
title: '断电报警', title: '断电报警',
@ -434,6 +455,7 @@ export const logColumns: BasicColumn[] = [
customRender:({record})=>{ customRender:({record})=>{
return record.izOutages?(record.izOutages=='0'?'开启':'关闭'):''; return record.izOutages?(record.izOutages=='0'?'开启':'关闭'):'';
}, },
defaultHidden: true
}, },
{ {
title: '低电报警', title: '低电报警',
@ -442,6 +464,7 @@ export const logColumns: BasicColumn[] = [
customRender:({record})=>{ customRender:({record})=>{
return record.izLowBattery?(record.izLowBattery=='0'?'开启':'关闭'):''; return record.izLowBattery?(record.izLowBattery=='0'?'开启':'关闭'):'';
}, },
defaultHidden: true
}, },
{ {
title: '上下线通知', title: '上下线通知',
@ -450,6 +473,7 @@ export const logColumns: BasicColumn[] = [
customRender:({record})=>{ customRender:({record})=>{
return record.izOnline?(record.izOnline=='0'?'开启':'关闭'):''; return record.izOnline?(record.izOnline=='0'?'开启':'关闭'):'';
}, },
defaultHidden: true
}, },
]; ];
@ -473,7 +497,7 @@ export const logQuerySchema: FormSchema[] = [
//列表数据 //列表数据
export const alarmColumns: BasicColumn[] = [ export const alarmColumns: BasicColumn[] = [
{ {
title: '设备号', title: '设备号',
align: "center", align: "center",
dataIndex: 'sn' dataIndex: 'sn'
}, },