update 到qualityInspectionCurrent
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
<script>
|
||||
import { calcMaxHeight } from '@/utils'
|
||||
import { timeFilter } from '@/utils/filters'
|
||||
// import { timeFilter } from '@/utils/filters'
|
||||
// import AddOrUpdate from './equipmentPlcConnect-add-or-update'
|
||||
import AddOrUpdate from '@/components/base-dialog/addOrUpdate'
|
||||
import i18n from '@/i18n'
|
||||
@@ -41,12 +41,12 @@ import { dictFilter } from '@/utils/filters'
|
||||
|
||||
const tableConfigs = [
|
||||
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||
{ prop: 'lineName', name: '产线' },
|
||||
{ prop: 'sectionName', name: '工段' },
|
||||
{ prop: 'lineName', name: i18n.t('pl.title') },
|
||||
{ prop: 'sectionName', name: i18n.t('ws.title') },
|
||||
{ prop: 'equName', name: i18n.t('equipment') },
|
||||
{ prop: 'equCode', name: i18n.t('eq.code') },
|
||||
{ prop: 'plcCode', name: 'PLC编码' },
|
||||
{ prop: 'plcName', name: 'PLC名称' },
|
||||
{ prop: 'plcCode', name: i18n.t('eq.plccode') },
|
||||
{ prop: 'plcName', name: i18n.t('eq.plcname') },
|
||||
{ prop: 'plcIp', name: 'PLC IP' },
|
||||
{ prop: 'operations', name: i18n.t('handle'), fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
||||
]
|
||||
@@ -61,7 +61,7 @@ const addOrUpdateConfigs = {
|
||||
infoUrl: '/monitoring/equipmentPlcConnect',
|
||||
fields: [
|
||||
{ name: 'equipmentId', label: i18n.t('equipment'), required: true, type: 'select', options: [] },
|
||||
{ name: 'plcId', label: 'PLC名称', required: true, type: 'select', options: [] }
|
||||
{ name: 'plcId', label: i18n.t('eq.plcname'), required: true, type: 'select', options: [] }
|
||||
],
|
||||
operations: [
|
||||
{ name: 'cancel', url: true, showAlways: true },
|
||||
@@ -69,19 +69,18 @@ const addOrUpdateConfigs = {
|
||||
{ name: 'update', url: '/monitoring/equipmentPlcConnect', permission: 'monitoring:equipmentplcconnect:update', showOnEdit: true }
|
||||
],
|
||||
subtable: {
|
||||
title: 'PLC采集参数',
|
||||
title: i18n.t('params.plctitle'),
|
||||
url: '/monitoring/equipmentPlcParam',
|
||||
relatedField: 'plcConId',
|
||||
tableConfigs: [
|
||||
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||
// { prop: 'plcConId', name: 'plc连接表ID' },
|
||||
{ prop: 'paramCode', name: '参数编码', formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
||||
{ prop: 'paramName', name: '参数名称', formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
||||
{ prop: 'paramCode', name: i18n.t('params.code'), formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
||||
{ prop: 'paramName', name: i18n.t('params.name'), formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
||||
{ prop: 'paramAddress', name: i18n.t('paramUrl'), formField: true },
|
||||
{ prop: 'unitDictValue', name: i18n.t('unit'), filter: dictFilter(UnitDictTypeId), formField: true, formType: 'select', formOptions: getUnitList() },
|
||||
{ prop: 'minValue', name: i18n.t('min'), formField: true },
|
||||
{ prop: 'maxValue', name: i18n.t('max'), formField: true },
|
||||
{ prop: 'defaultValue', name: '参数设定标准值', formField: true },
|
||||
{ prop: 'defaultValue', name: i18n.t('params.paramStdValue'), formField: true },
|
||||
{ prop: 'description', name: i18n.t('desc'), formField: true },
|
||||
{
|
||||
prop: 'enabled',
|
||||
@@ -97,7 +96,6 @@ const addOrUpdateConfigs = {
|
||||
]
|
||||
},
|
||||
{ prop: 'remark', name: i18n.t('remark'), formField: true },
|
||||
// { prop: 'createTime', name: i18n.t('createTime') },
|
||||
{
|
||||
prop: 'collection',
|
||||
name: i18n.t('collectOrNot'),
|
||||
@@ -232,7 +230,7 @@ export default {
|
||||
: this.dataListSelections.map(item => {
|
||||
return item.id
|
||||
})
|
||||
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||
this.$confirm(`${i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() })}`, i18n.t('prompt.title'), {
|
||||
confirmButtonText: i18n.t('confirm'),
|
||||
cancelButtonText: i18n.t('cancel'),
|
||||
type: 'warning'
|
||||
|
||||
Reference in New Issue
Block a user