update 设备参数状态监控
This commit is contained in:
parent
a2423905fd
commit
ce9c0f9d76
@ -50,7 +50,8 @@ t.routes['工段'] = 'Work Sections'
|
|||||||
t.routes['设备类型'] = 'Equipment Types'
|
t.routes['设备类型'] = 'Equipment Types'
|
||||||
t.routes['设备分组'] = 'Equipment Groups'
|
t.routes['设备分组'] = 'Equipment Groups'
|
||||||
t.routes['设备信息'] = 'Equipment Details'
|
t.routes['设备信息'] = 'Equipment Details'
|
||||||
t.routes['设备当前状态'] = 'Current Equipment State'
|
t.routes['设备参数状态监控'] = 'Current Equipment State'
|
||||||
|
t.routes['设备分组报警信息'] = 'Equipment Group Alarm'
|
||||||
t.routes['质量检测类型'] = 'Quality Inpection Types'
|
t.routes['质量检测类型'] = 'Quality Inpection Types'
|
||||||
t.routes['质量检测信息'] = 'Quality Inpection Details'
|
t.routes['质量检测信息'] = 'Quality Inpection Details'
|
||||||
|
|
||||||
@ -237,6 +238,17 @@ t.realtime.num = 'scrap quantity'
|
|||||||
t.realtime.rate = 'scrap rate'
|
t.realtime.rate = 'scrap rate'
|
||||||
t.realtime.total = 'total production'
|
t.realtime.total = 'total production'
|
||||||
t.realtime.goodrate = 'Passed Rate'
|
t.realtime.goodrate = 'Passed Rate'
|
||||||
|
t.realtime.runState = '是否运行'
|
||||||
|
t.realtime.state = '状态'
|
||||||
|
t.realtime.hasFault = '是否故障'
|
||||||
|
t.realtime.alarmRecords = '报警记录'
|
||||||
|
t.realtime.viewAlarmRecords = '查看报警记录'
|
||||||
|
t.realtime.input = '投入数'
|
||||||
|
t.realtime.output = '产出数'
|
||||||
|
t.realtime.eqName = '设备名称'
|
||||||
|
t.realtime.eqCode = '设备编码'
|
||||||
|
t.realtime.productionSnapshotTime = '生产量记录时间'
|
||||||
|
t.realtime.statusSnapshotTime = '状态记录时间'
|
||||||
|
|
||||||
|
|
||||||
t.ws = {}
|
t.ws = {}
|
||||||
|
@ -51,7 +51,8 @@ t.routes['工段'] = '工段'
|
|||||||
t.routes['设备类型'] = '设备类型'
|
t.routes['设备类型'] = '设备类型'
|
||||||
t.routes['设备分组'] = '设备分组'
|
t.routes['设备分组'] = '设备分组'
|
||||||
t.routes['设备信息'] = '设备信息'
|
t.routes['设备信息'] = '设备信息'
|
||||||
t.routes['设备当前状态'] = '设备当前状态'
|
t.routes['设备参数状态监控'] = '设备参数状态监控'
|
||||||
|
t.routes['设备分组报警信息'] = '设备分组报警信息'
|
||||||
t.routes['质量检测类型'] = '质量检测类型'
|
t.routes['质量检测类型'] = '质量检测类型'
|
||||||
t.routes['质量检测信息'] = '质量检测信息'
|
t.routes['质量检测信息'] = '质量检测信息'
|
||||||
|
|
||||||
@ -242,6 +243,17 @@ t.realtime.num = '报废数量'
|
|||||||
t.realtime.rate = '报废比例'
|
t.realtime.rate = '报废比例'
|
||||||
t.realtime.total = '总产量'
|
t.realtime.total = '总产量'
|
||||||
t.realtime.goodrate = '良品率'
|
t.realtime.goodrate = '良品率'
|
||||||
|
t.realtime.runState = '是否运行'
|
||||||
|
t.realtime.state = '状态'
|
||||||
|
t.realtime.hasFault = '是否故障'
|
||||||
|
t.realtime.alarmRecords = '报警记录'
|
||||||
|
t.realtime.viewAlarmRecords = '查看报警记录'
|
||||||
|
t.realtime.input = '投入数'
|
||||||
|
t.realtime.output = '产出数'
|
||||||
|
t.realtime.eqName = '设备名称'
|
||||||
|
t.realtime.eqCode = '设备编码'
|
||||||
|
t.realtime.productionSnapshotTime = '生产量记录时间'
|
||||||
|
t.realtime.statusSnapshotTime = '状态记录时间'
|
||||||
|
|
||||||
|
|
||||||
t.ws = {}
|
t.ws = {}
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.plId" :placeholder="'产线'" clearable></el-input>
|
<el-input v-model="dataForm.lineId" :placeholder="'产线'" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.eqName" :placeholder="'设备名称'" clearable></el-input>
|
<el-input v-model="dataForm.equipmentId" :placeholder="'设备名称'" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
@ -36,7 +36,7 @@ import AddOrUpdate from '@/components/base-dialog/addOrUpdate'
|
|||||||
// import AddOrUpdate from './equipmentGroup-add-or-update'
|
// import AddOrUpdate from './equipmentGroup-add-or-update'
|
||||||
import i18n from '@/i18n'
|
import i18n from '@/i18n'
|
||||||
import BaseTable from '@/components/base-table'
|
import BaseTable from '@/components/base-table'
|
||||||
import TableOperateComponent from '@/components/base-table/components/operationComponent'
|
// 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 = [
|
const tableConfigs = [
|
||||||
@ -44,11 +44,16 @@ const tableConfigs = [
|
|||||||
type: 'index',
|
type: 'index',
|
||||||
name: i18n.t('index')
|
name: i18n.t('index')
|
||||||
},
|
},
|
||||||
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
{ prop: 'equipmentName', name: i18n.t('realtime.eqName') },
|
||||||
{ prop: 'name', name: i18n.t('eq.groupname') },
|
{ prop: 'equipmentCode', name: i18n.t('realtime.eqCode') },
|
||||||
{ prop: 'code', name: i18n.t('eq.groupcode') },
|
{ prop: 'inputNum', name: i18n.t('realtime.input') },
|
||||||
{ prop: 'remark', name: i18n.t('remark') },
|
{ prop: 'outputNum', name: i18n.t('realtime.output') },
|
||||||
{ prop: 'alarm', name: i18n.t('alarm.name'), buttonContent: i18n.t('alarm.view'), subcomponent: TableTextComponent, actionName: 'view-alarm' },
|
{ prop: 'run', name: i18n.t('realtime.runState') },
|
||||||
|
{ prop: 'status', name: i18n.t('realtime.state') },
|
||||||
|
{ prop: 'error', name: i18n.t('realtime.hasFault') },
|
||||||
|
{ prop: 'quantityTime', name: i18n.t('realtime.productionSnapshotTime'), filter: timeFilter },
|
||||||
|
{ prop: 'statusTime', name: i18n.t('realtime.statusSnapshotTime'), filter: timeFilter },
|
||||||
|
{ prop: 'alarm', name: i18n.t('realtime.alarmRecords'), buttonContent: i18n.t('realtime.viewAlarmRecords'), subcomponent: TableTextComponent, actionName: 'view-alarm' }
|
||||||
// { prop: 'operations', name: i18n.t('handle'), fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
// { prop: 'operations', name: i18n.t('handle'), fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -70,9 +75,12 @@ export default {
|
|||||||
calcMaxHeight,
|
calcMaxHeight,
|
||||||
tableConfigs,
|
tableConfigs,
|
||||||
dataForm: {
|
dataForm: {
|
||||||
key: ''
|
equipmentId: '',
|
||||||
|
lineId: ''
|
||||||
},
|
},
|
||||||
dataList: [],
|
dataList: [],
|
||||||
|
eqList: [],
|
||||||
|
lineList: [],
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
totalPage: 0,
|
totalPage: 0,
|
||||||
@ -86,20 +94,37 @@ export default {
|
|||||||
BaseTable
|
BaseTable
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
|
this.getEqList()
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 设备
|
||||||
|
getEqList() {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('/monitoring/equipment/page'),
|
||||||
|
method: 'get'
|
||||||
|
}).then(({ data }) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.eqList = data.data.list
|
||||||
|
} else {
|
||||||
|
this.eqList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 产线
|
||||||
|
getLineList() {},
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.addOrUpdateVisible = false
|
this.addOrUpdateVisible = false
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('/monitoring/equipmentGroup/page'),
|
url: this.$http.adornUrl('/monitoring/equipmentValueMonitor/realTimePage'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({
|
params: this.$http.adornParams({
|
||||||
page: this.pageIndex,
|
page: this.pageIndex,
|
||||||
limit: this.pageSize,
|
limit: this.pageSize,
|
||||||
key: this.dataForm.key
|
equipmentId: this.dataForm.key,
|
||||||
|
lineId: this.dataForm.key
|
||||||
})
|
})
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user