update 到qualityInspectionCurrent

This commit is contained in:
2022-09-02 10:59:44 +08:00
parent 64ee3cb64e
commit 744f288b70
27 changed files with 180 additions and 150 deletions

View File

@@ -34,7 +34,7 @@ import AddOrUpdate from '@/components/base-dialog/addOrUpdate'
import i18n from '@/i18n'
import BaseTable from '@/components/base-table'
import TableOperateComponent from '@/components/base-table/components/operationComponent'
import TableTextComponent from '@/components/base-table/components/detailComponent'
// import TableTextComponent from '@/components/base-table/components/detailComponent'
const tableConfigs = [
{ type: 'index', width: 100, name: i18n.t('index') },
@@ -42,10 +42,10 @@ const tableConfigs = [
{ prop: 'name', name: i18n.t('name') },
{ prop: 'enName', name: i18n.t('enname') },
{ prop: 'description', name: i18n.t('desc') },
{ prop: 'barcode', name: 'plc条码' },
{ prop: 'barcode', name: i18n.t('eq.plcbarcode') },
{ prop: 'collection', name: i18n.t('collectOrNot'), filter: val => ({ 0: i18n.t('notCollect'), 1: i18n.t('collect') }[val]) },
{ prop: 'ip', name: 'IP' },
{ prop: 'port', name: '端口号' },
{ prop: 'port', name: i18n.t('eq.port') },
{ prop: 'remark', name: i18n.t('remark') },
{ prop: 'operations', name: i18n.t('handle'), fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
]
@@ -68,10 +68,10 @@ const addOrUpdateConfigs = {
]
},
{ name: 'ip', label: 'IP', required: true, placeholder: '0.0.0.0' },
{ name: 'port', label: '端口', placeholder: '443' },
{ name: 'port', label: i18n.t('eq.port'), placeholder: '443' },
'description',
'remark',
{ name: 'barcode', label: 'plc条码', span: 24 }
{ name: 'barcode', label: i18n.t('eq.plcbarcode'), span: 24 }
],
operations: [
{ name: 'cancel', url: true, showAlways: true },
@@ -166,7 +166,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'