diff --git a/src/views/modules/monitoring/equipmentPlcParam.vue b/src/views/modules/monitoring/equipmentPlcParam.vue index 285a77c..5d337db 100644 --- a/src/views/modules/monitoring/equipmentPlcParam.vue +++ b/src/views/modules/monitoring/equipmentPlcParam.vue @@ -9,42 +9,7 @@ 新增 - + import AddOrUpdate from './equipmentPlcParam-add-or-update' import BaseTable from '@/components/base-table' -import TableOperateComponent from '@/components/base-table/components/operationComponent' -import TableTextComponent from '@/components/base-table/components/detailComponent' +// import TableOperateComponent from '@/components/base-table/components/operationComponent' +// import TableTextComponent from '@/components/base-table/components/detailComponent' +import { dictFilter } from '@/utils/filters' + +const UnitDictTypeId = '1557173812109242370' const tableConfigs = [ { type: 'index', name: '序号' }, @@ -73,20 +41,21 @@ const tableConfigs = [ { prop: 'paramCode', name: '参数编码' }, { prop: 'paramName', name: '参数名称' }, { prop: 'paramAddress', name: '参数地址' }, - { prop: 'unitDictValue', name: '单位' }, + { prop: 'unitDictValue', name: '单位', filter: dictFilter(UnitDictTypeId) }, { prop: 'minValue', name: '最小值' }, { prop: 'maxValue', name: '最大值' }, { prop: 'defaultValue', name: '参数设定标准值' }, { prop: 'description', name: '描述' }, - { prop: 'enabled', name: '启用状态:0 、停用,1、启用' }, + { prop: 'enabled', name: '启用状态', filter: val => ['停用', '启用'][+val] }, + // { prop: 'enabled', name: '启用状态:0 、停用,1、启用' }, { prop: 'remark', name: '备注' }, // { prop: 'createTime', name: '添加时间' }, - { prop: 'collection', name: '0 代表不采集, 1 代表采集' }, + { prop: 'collection', name: '是否采集', filter: val => ['不采集', '采集'][+val] } // { prop: 'collectionCycle', name: '采集周期(s) 暂不使用' }, // { prop: 'reportingCycle', name: '上报周期(s) 暂不使用' }, // { prop: 'reportingMethod', name: '上报方式 暂不使用' }, // { prop: 'reportingCode', name: '上报编码 暂不使用' }, - { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } + // { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } ] export default { diff --git a/src/views/modules/monitoring/workShopSection.vue b/src/views/modules/monitoring/workShopSection.vue index 874cc8e..35d9c26 100644 --- a/src/views/modules/monitoring/workShopSection.vue +++ b/src/views/modules/monitoring/workShopSection.vue @@ -22,13 +22,13 @@ > - + + +