update
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="mod-config">
|
||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||
<el-form-item>
|
||||
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
|
||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||
@@ -39,19 +39,19 @@ import { dictFilter } from '@/utils/filters'
|
||||
const UnitDictTypeId = '1557173812109242370'
|
||||
|
||||
const tableConfigs = [
|
||||
{ type: 'index', name: '序号' },
|
||||
{ type: 'index', name: i18n.t('index') },
|
||||
{ prop: 'plcConId', name: 'plc连接表ID' },
|
||||
{ prop: 'paramCode', name: '参数编码' },
|
||||
{ prop: 'paramName', name: '参数名称' },
|
||||
{ prop: 'paramAddress', name: '参数地址' },
|
||||
{ prop: 'unitDictValue', name: '单位', filter: dictFilter(UnitDictTypeId) },
|
||||
{ prop: 'minValue', name: '最小值' },
|
||||
{ prop: 'maxValue', name: '最大值' },
|
||||
{ prop: 'paramAddress', name: i18n.t('paramUrl') },
|
||||
{ prop: 'unitDictValue', name: i18n.t('unit'), filter: dictFilter(UnitDictTypeId) },
|
||||
{ prop: 'minValue', name: i18n.t('min') },
|
||||
{ prop: 'maxValue', name: i18n.t('max') },
|
||||
{ prop: 'defaultValue', name: '参数设定标准值' },
|
||||
{ prop: 'description', name: i18n.t('desc') },
|
||||
{ prop: 'enabled', name: '启用状态', filter: val => [i18n.t('disable'), '启用'][+val] },
|
||||
{ prop: 'enabled', name: i18n.t('enabled'), filter: val => [i18n.t('disable'), i18n.t('enable')][+val] },
|
||||
{ prop: 'remark', name: i18n.t('remark') },
|
||||
{ prop: 'collection', name: '是否采集', filter: val => ['不采集', '采集'][+val] }
|
||||
{ prop: 'collection', name: i18n.t('collectOrNot'), filter: val => [i18n.t('notCollect'), i18n.t('collect')][+val] }
|
||||
]
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user