From e690c90d74ed0011ecf075b5d2613884037eec29 Mon Sep 17 00:00:00 2001 From: g7hoo Date: Mon, 29 Aug 2022 16:13:34 +0800 Subject: [PATCH] update --- .../modules/monitoring/equipmentPlcParam.vue | 53 +--- .../modules/monitoring/workShopSection.vue | 6 +- .../monitoring/workshopSectionDialog.vue | 266 ++++++++++++++++++ 3 files changed, 280 insertions(+), 45 deletions(-) create mode 100644 src/views/modules/monitoring/workshopSectionDialog.vue 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 @@ > - + + +