fzq #31
@ -93,7 +93,7 @@ import { pick } from 'lodash/object'
|
|||||||
|
|
||||||
// 标题 for i18n
|
// 标题 for i18n
|
||||||
const title = {
|
const title = {
|
||||||
detail: '详情',
|
detail: i18n.t('detail'),
|
||||||
add: i18n.t('add'),
|
add: i18n.t('add'),
|
||||||
edit: '编辑'
|
edit: '编辑'
|
||||||
}
|
}
|
||||||
|
@ -201,7 +201,7 @@ export default {
|
|||||||
deleteHandle(id) {
|
deleteHandle(id) {
|
||||||
var ids = id ? [id] : []
|
var ids = id ? [id] : []
|
||||||
|
|
||||||
this.$confirm(`确定对id=${ids.join(',')}进行${id ? i18n.t('delete') : i18n.t('deleteBatch')}操作?`, '提示', {
|
this.$confirm(`确定对id=${ids.join(',')}进行${id ? i18n.t('delete') : i18n.t('deleteBatch')}操作?`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -213,7 +213,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
@ -246,7 +246,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -108,7 +108,7 @@ import { pick } from 'lodash/object'
|
|||||||
import i18n from '@/i18n'
|
import i18n from '@/i18n'
|
||||||
// 标题 for i18n
|
// 标题 for i18n
|
||||||
const title = {
|
const title = {
|
||||||
detail: '详情',
|
detail: i18n.t('detail'),
|
||||||
add: i18n.t('add'),
|
add: i18n.t('add'),
|
||||||
edit: '编辑'
|
edit: '编辑'
|
||||||
}
|
}
|
||||||
|
@ -86,6 +86,8 @@ t.login.captcha = 'Validation Code'
|
|||||||
t.login.demo = 'Demo'
|
t.login.demo = 'Demo'
|
||||||
t.login.copyright = 'CNBM'
|
t.login.copyright = 'CNBM'
|
||||||
|
|
||||||
|
t.prompt = {}
|
||||||
|
t.prompt.title = 'Prompt'
|
||||||
|
t.prompt.info = 'Are you sure to {handle}?'
|
||||||
|
|
||||||
export default t
|
export default t
|
@ -104,6 +104,12 @@ t.produceTime = '生产日期'
|
|||||||
t.enterTime = '进厂日期'
|
t.enterTime = '进厂日期'
|
||||||
t.manufacturer = '制造商'
|
t.manufacturer = '制造商'
|
||||||
|
|
||||||
|
t.hints = {}
|
||||||
|
t.hints.date = '请选择日期'
|
||||||
|
t.hints.number = '请输入正确的数值'
|
||||||
|
t.hints.upload2m = '上传文件大小不要超过 2mb (2048kb)'
|
||||||
|
t.hints.upload2mPic = '上传图片文件,且大小不要超过 2mb (2048kb)'
|
||||||
|
|
||||||
t.factory = {}
|
t.factory = {}
|
||||||
t.factory.title = '工厂'
|
t.factory.title = '工厂'
|
||||||
t.factory.name = '工厂名称'
|
t.factory.name = '工厂名称'
|
||||||
@ -179,6 +185,16 @@ t.eq.groupcode = '分组编码'
|
|||||||
t.eq.excode = '设备外部代码'
|
t.eq.excode = '设备外部代码'
|
||||||
t.eq.input = '上片数据设备'
|
t.eq.input = '上片数据设备'
|
||||||
t.eq.output = '下片数据设备'
|
t.eq.output = '下片数据设备'
|
||||||
|
t.eq.tvalue = '设备TT值'
|
||||||
|
t.eq.processingTime = '单件产品加工时间(秒)'
|
||||||
|
t.eq.dtype = '数据类别'
|
||||||
|
t.eq.dtypenone = '无类别'
|
||||||
|
t.eq.dtypeinput = '上片数据设备'
|
||||||
|
t.eq.dtypeoutput = '下片数据设备'
|
||||||
|
t.eq.upload = '上传资料'
|
||||||
|
t.eq.image = '设备图片'
|
||||||
|
t.eq.viewattr = '查看设备属性'
|
||||||
|
|
||||||
|
|
||||||
t.pl = {}
|
t.pl = {}
|
||||||
t.pl.title = '产线'
|
t.pl.title = '产线'
|
||||||
|
@ -52,15 +52,15 @@ const tableConfigs = [
|
|||||||
name: i18n.t('createTime'),
|
name: i18n.t('createTime'),
|
||||||
filter: timeFilter
|
filter: timeFilter
|
||||||
},
|
},
|
||||||
{ prop: 'name', name: '设备名称' },
|
{ prop: 'name', name: i18n.t('eq.name') },
|
||||||
{ prop: 'code', name: '设备编码' },
|
{ prop: 'code', name: i18n.t('eq.code') },
|
||||||
{ prop: 'equipmentTypeName', name: '设备类型' },
|
{ prop: 'equipmentTypeName', name: i18n.t('eq.type') },
|
||||||
{ prop: 'groupName', name: '设备分组' },
|
{ prop: 'groupName', name: i18n.t('eq.group') },
|
||||||
{ prop: 'enName', name: i18n.t('enname') },
|
{ prop: 'enName', name: i18n.t('enname') },
|
||||||
{ prop: 'abbr', name: '缩写' },
|
{ prop: 'abbr', name: i18n.t('abbr') },
|
||||||
{
|
{
|
||||||
prop: 'details',
|
prop: 'details',
|
||||||
name: '详情',
|
name: i18n.t('detail'),
|
||||||
subcomponent: TableTextComponent,
|
subcomponent: TableTextComponent,
|
||||||
actionName: 'view-detail'
|
actionName: 'view-detail'
|
||||||
},
|
},
|
||||||
@ -78,31 +78,31 @@ const addOrUpdateConfigs = {
|
|||||||
type: 'dialog',
|
type: 'dialog',
|
||||||
infoUrl: '/monitoring/equipment',
|
infoUrl: '/monitoring/equipment',
|
||||||
fields: [
|
fields: [
|
||||||
{ name: 'name', label: '设备名称', required: true },
|
{ name: 'name', label: i18n.t('eq.name'), required: true },
|
||||||
{ name: 'code', label: '设备编码' },
|
{ name: 'code', label: i18n.t('eq.code') },
|
||||||
{ name: 'enName', label: i18n.t('enname') },
|
{ name: 'enName', label: i18n.t('enname') },
|
||||||
{ name: 'abbr', label: '缩写' },
|
{ name: 'abbr', label: i18n.t('abbr') },
|
||||||
{
|
{
|
||||||
name: 'equipmentTypeId',
|
name: 'equipmentTypeId',
|
||||||
label: '设备类型',
|
label: i18n.t('eq.type'),
|
||||||
required: true,
|
required: true,
|
||||||
type: 'select',
|
type: 'select',
|
||||||
options: []
|
options: []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'groupId',
|
name: 'groupId',
|
||||||
label: '设备分组',
|
label: i18n.t('eq.group'),
|
||||||
required: true,
|
required: true,
|
||||||
type: 'select',
|
type: 'select',
|
||||||
options: []
|
options: []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'productionTime',
|
name: 'productionTime',
|
||||||
label: '生产日期',
|
label: i18n.t('produceTime'),
|
||||||
type: 'date',
|
type: 'date',
|
||||||
props: {
|
props: {
|
||||||
'type': 'date', // element-ui 的配置
|
'type': 'date', // element-ui 的配置
|
||||||
'placeholder': '请选择日期',
|
'placeholder': i18n.t('hints.date'),
|
||||||
'value-format': 'yyyy-MM-ddTHH:mm:ss',
|
'value-format': 'yyyy-MM-ddTHH:mm:ss',
|
||||||
'style': {
|
'style': {
|
||||||
width: '100%'
|
width: '100%'
|
||||||
@ -111,11 +111,11 @@ const addOrUpdateConfigs = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'enterTime',
|
name: 'enterTime',
|
||||||
label: '进厂日期',
|
label: i18n.t('enterTime'),
|
||||||
type: 'date',
|
type: 'date',
|
||||||
props: {
|
props: {
|
||||||
'type': 'date', // element-ui 的配置
|
'type': 'date', // element-ui 的配置
|
||||||
'placeholder': '请选择日期',
|
'placeholder': i18n.t('hints.date'),
|
||||||
'value-format': 'yyyy-MM-ddTHH:mm:ss',
|
'value-format': 'yyyy-MM-ddTHH:mm:ss',
|
||||||
'style': {
|
'style': {
|
||||||
width: '100%'
|
width: '100%'
|
||||||
@ -124,12 +124,12 @@ const addOrUpdateConfigs = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'tvalue',
|
name: 'tvalue',
|
||||||
label: '设备TT值',
|
label: i18n.t('eq.tvalue'),
|
||||||
required: true,
|
required: true,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
message: '请输入正确的浮点值',
|
message: i18n.t('hints.number'),
|
||||||
trigger: 'blur',
|
trigger: 'blur',
|
||||||
transform: val => Number(val)
|
transform: val => Number(val)
|
||||||
}
|
}
|
||||||
@ -137,36 +137,36 @@ const addOrUpdateConfigs = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'processingTime',
|
name: 'processingTime',
|
||||||
label: '单件产品加工时间(秒)',
|
label: i18n.t('eq.processingTime'),
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
message: '请输入正确的数值',
|
message: i18n.t('hints.number'),
|
||||||
trigger: 'blur',
|
trigger: 'blur',
|
||||||
transform: val => Number(val)
|
transform: val => Number(val)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ name: 'manufacturer', label: '制造商' },
|
{ name: 'manufacturer', label: i18n.t('manufacturer') },
|
||||||
{ name: 'spec', label: '设备规格' },
|
{ name: 'spec', label: i18n.t('eq.grade') },
|
||||||
{
|
{
|
||||||
name: 'dataType',
|
name: 'dataType',
|
||||||
label: '数据类别',
|
label: i18n.t('eq.dtype'),
|
||||||
required: true,
|
required: true,
|
||||||
type: 'select',
|
type: 'select',
|
||||||
options: [
|
options: [
|
||||||
{ value: 0, label: '无类别' },
|
{ value: 0, label: i18n.t('eq.dtypenone') },
|
||||||
{ value: 1, label: '上片数据设备' },
|
{ value: 1, label: i18n.t('eq.dtypeinput') },
|
||||||
{ value: 2, label: '下片数据设备' }
|
{ value: 2, label: i18n.t('eq.dtypeoutput') }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ name: 'remark', label: '备注 ' }
|
{ name: 'remark', label: i18n.t('remark') }
|
||||||
],
|
],
|
||||||
extraComponents: [
|
extraComponents: [
|
||||||
{
|
{
|
||||||
name: 'description',
|
name: 'description',
|
||||||
hasModel: true,
|
hasModel: true,
|
||||||
label: '功能描述',
|
label: i18n.t('desc'),
|
||||||
fieldType: 'string',
|
fieldType: 'string',
|
||||||
component: CKEditor.component,
|
component: CKEditor.component,
|
||||||
props: {
|
props: {
|
||||||
@ -179,33 +179,33 @@ const addOrUpdateConfigs = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'files',
|
name: 'files',
|
||||||
label: '上传资料',
|
label: i18n.t('upload'),
|
||||||
fieldType: 'array',
|
fieldType: 'array',
|
||||||
component: () => import('@/components/base-upload'),
|
component: () => import('@/components/base-upload'),
|
||||||
props: {
|
props: {
|
||||||
// 上传组件需要的 props
|
// 上传组件需要的 props
|
||||||
url: '/monitoring/attachment/uploadFileFormData',
|
url: '/monitoring/attachment/uploadFileFormData',
|
||||||
extraParams: { typeCode: 'EquipmentInfoFile' },
|
extraParams: { typeCode: 'EquipmentInfoFile' },
|
||||||
buttonContent: '点击上传',
|
buttonContent: i18n.t('upload.button'),
|
||||||
tip: '上传文件大小不要超过 2mb (2048kb)'
|
tip: i18n.t('hints.upload2m')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'files',
|
name: 'files',
|
||||||
label: '设备图片',
|
label: i18n.t('eq.image'),
|
||||||
fieldType: 'array',
|
fieldType: 'array',
|
||||||
component: () => import('@/components/base-upload'),
|
component: () => import('@/components/base-upload'),
|
||||||
props: {
|
props: {
|
||||||
// 上传组件需要的 props
|
// 上传组件需要的 props
|
||||||
url: '/monitoring/attachment/uploadFileFormData',
|
url: '/monitoring/attachment/uploadFileFormData',
|
||||||
extraParams: { typeCode: 'EquipmentInfoImage' },
|
extraParams: { typeCode: 'EquipmentInfoImage' },
|
||||||
buttonContent: '点击上传',
|
buttonContent: i18n.t('upload.button'),
|
||||||
tip: '上传图片文件,且大小不要超过 2mb (2048kb)'
|
tip: i18n.t('hints.upload2mPic')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
subtable: {
|
subtable: {
|
||||||
title: '查看设备属性',
|
title: i18n.t('eq.viewattr'),
|
||||||
url: '/monitoring/equipmentAttr',
|
url: '/monitoring/equipmentAttr',
|
||||||
relatedField: 'equipmentId',
|
relatedField: 'equipmentId',
|
||||||
tableConfigs: [
|
tableConfigs: [
|
||||||
@ -417,7 +417,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() })}`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -429,7 +429,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -143,7 +143,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -128,7 +128,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -140,7 +140,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -136,7 +136,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -164,7 +164,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -131,7 +131,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -143,7 +143,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -153,7 +153,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -165,7 +165,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -186,7 +186,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -198,7 +198,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -166,7 +166,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -178,7 +178,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -44,7 +44,7 @@ const tableConfigs = [
|
|||||||
{ prop: 'lineName', name: '产线' },
|
{ prop: 'lineName', name: '产线' },
|
||||||
{ prop: 'sectionName', name: '工段' },
|
{ prop: 'sectionName', name: '工段' },
|
||||||
{ prop: 'equName', name: i18n.t('equipment') },
|
{ prop: 'equName', name: i18n.t('equipment') },
|
||||||
{ prop: 'equCode', name: '设备编码' },
|
{ prop: 'equCode', name: i18n.t('eq.code') },
|
||||||
{ prop: 'plcCode', name: 'PLC编码' },
|
{ prop: 'plcCode', name: 'PLC编码' },
|
||||||
{ prop: 'plcName', name: 'PLC名称' },
|
{ prop: 'plcName', name: 'PLC名称' },
|
||||||
{ prop: 'plcIp', name: 'PLC IP' },
|
{ prop: 'plcIp', name: 'PLC IP' },
|
||||||
@ -232,7 +232,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -244,7 +244,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -234,7 +234,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -130,7 +130,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -142,7 +142,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -171,7 +171,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -38,7 +38,7 @@ import TableTextComponent from '@/components/base-table/components/detailCompone
|
|||||||
const tableConfigs = [
|
const tableConfigs = [
|
||||||
{ prop: 'id', name: 'id' },
|
{ prop: 'id', name: 'id' },
|
||||||
{ prop: 'externalCode', name: '设备外部编码' },
|
{ prop: 'externalCode', name: '设备外部编码' },
|
||||||
{ prop: 'equipmentName', name: '设备名称' },
|
{ prop: 'equipmentName', name: i18n.t('eq.name') },
|
||||||
{ prop: 'inQuantity', name: '进入设备的数量' },
|
{ prop: 'inQuantity', name: '进入设备的数量' },
|
||||||
{
|
{
|
||||||
prop: 'outQuantity',
|
prop: 'outQuantity',
|
||||||
@ -136,7 +136,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -148,7 +148,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -164,7 +164,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -41,7 +41,7 @@ const tableConfigs = [
|
|||||||
{ prop: 'plcId', name: 'plc id' },
|
{ prop: 'plcId', name: 'plc id' },
|
||||||
{ prop: 'plc', name: 'plc' },
|
{ prop: 'plc', name: 'plc' },
|
||||||
{ prop: 'equipmentId', name: '设备id' },
|
{ prop: 'equipmentId', name: '设备id' },
|
||||||
{ prop: 'equipmentName', name: '设备名称' },
|
{ prop: 'equipmentName', name: i18n.t('eq.name') },
|
||||||
{ prop: 'status', name: '状态,0正常 1计划停机 2故障' },
|
{ prop: 'status', name: '状态,0正常 1计划停机 2故障' },
|
||||||
{ prop: 'logTime', name: i18n.t('recordTime') },
|
{ prop: 'logTime', name: i18n.t('recordTime') },
|
||||||
{ prop: 'remark', name: i18n.t('remark') },
|
{ prop: 'remark', name: i18n.t('remark') },
|
||||||
@ -132,7 +132,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -144,7 +144,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -62,13 +62,13 @@ const addOrUpdateConfigs = {
|
|||||||
{
|
{
|
||||||
name: 'files',
|
name: 'files',
|
||||||
fieldType: 'array',
|
fieldType: 'array',
|
||||||
label: '上传资料',
|
label: i18n.t('upload'),
|
||||||
component: () => import('@/components/base-upload'),
|
component: () => import('@/components/base-upload'),
|
||||||
props: {
|
props: {
|
||||||
// 上传组件需要的 props
|
// 上传组件需要的 props
|
||||||
url: '/monitoring/attachment/uploadFileFormData',
|
url: '/monitoring/attachment/uploadFileFormData',
|
||||||
extraParams: { typeCode: 'EquipmentTypeFile' },
|
extraParams: { typeCode: 'EquipmentTypeFile' },
|
||||||
buttonContent: '点击上传',
|
buttonContent: i18n.t('upload.button'),
|
||||||
tip: '上传文件大小不要超过 2mb (2048kb)'
|
tip: '上传文件大小不要超过 2mb (2048kb)'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -177,7 +177,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -189,7 +189,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -164,7 +164,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -132,7 +132,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -144,7 +144,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -126,7 +126,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -138,7 +138,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -155,7 +155,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -167,7 +167,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -237,7 +237,7 @@ export default {
|
|||||||
this.dataListSelections.map(item => {
|
this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -252,7 +252,7 @@ export default {
|
|||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -192,7 +192,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -204,7 +204,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -181,7 +181,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -193,7 +193,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -123,7 +123,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -135,7 +135,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -101,7 +101,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -169,7 +169,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -181,7 +181,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -247,7 +247,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -259,7 +259,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -140,7 +140,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -152,7 +152,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -138,7 +138,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -150,7 +150,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -235,7 +235,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -247,7 +247,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -171,7 +171,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -124,7 +124,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -136,7 +136,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -150,7 +150,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -118,7 +118,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -130,7 +130,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -143,7 +143,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -129,7 +129,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -141,7 +141,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -126,7 +126,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -138,7 +138,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -129,7 +129,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -166,7 +166,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -178,7 +178,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -119,7 +119,7 @@ export default {
|
|||||||
: this.dataListSelections.map(item => {
|
: this.dataListSelections.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', {
|
this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -131,7 +131,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
@ -218,8 +218,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleDeleteEq(id) {
|
handleDeleteEq(id) {
|
||||||
this.$confirm(`确定删除这条记录吗?`, '提示', {
|
this.$confirm(`确定删除这条记录吗?`, i18n.t('prompt.title'), {
|
||||||
// this.$confirm(`确定删除 ${id} 吗?`, '提示', {
|
// this.$confirm(`确定删除 ${id} 吗?`, i18n.t('prompt.title'), {
|
||||||
confirmButtonText: i18n.t('confirm'),
|
confirmButtonText: i18n.t('confirm'),
|
||||||
cancelButtonText: i18n.t('cancel'),
|
cancelButtonText: i18n.t('cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -231,7 +231,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
@ -276,7 +276,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}).then(({ data: res }) => {
|
}).then(({ data: res }) => {
|
||||||
this.$message.success({
|
this.$message.success({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.$emit('refreshDataList')
|
this.$emit('refreshDataList')
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
@ -109,7 +109,7 @@ export default {
|
|||||||
}).then(({ data: res }) => {
|
}).then(({ data: res }) => {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.$message.success({
|
this.$message.success({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.$emit('refresh-list')
|
this.$emit('refresh-list')
|
||||||
|
@ -136,7 +136,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: i18n.t('prompt.success'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user