SCADA前端增加数据类别录入
This commit is contained in:
@@ -567,7 +567,6 @@ export default {
|
||||
},
|
||||
|
||||
async getDeviceStatus () {
|
||||
console.log(process.env.VUE_APP_VUE_APP_HSLSERVER_PASSWORD)
|
||||
const res = await this.$api.GET_SERVER_DEVICE_STATUS('http://' + this.serverData.url + ':' + this.serverData.port, 'admin', process.env.VUE_APP_HSLSERVER_PASSWORD)
|
||||
if (res) {
|
||||
this.$emit('changeStatus', 'online')
|
||||
|
||||
@@ -65,17 +65,13 @@ export default {
|
||||
key: 'type'
|
||||
},
|
||||
{
|
||||
title: '流程',
|
||||
key: 'flow_code'
|
||||
title: '数据类别',
|
||||
key: 'category'
|
||||
},
|
||||
{
|
||||
title: '工序单元',
|
||||
key: 'working_subclass'
|
||||
},
|
||||
{
|
||||
title: '工作站',
|
||||
key: 'workstation'
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
key: 'create_date'
|
||||
@@ -145,15 +141,43 @@ export default {
|
||||
span: 12
|
||||
}
|
||||
},
|
||||
flow_code: {
|
||||
title: '流程'
|
||||
category: {
|
||||
title: '数据类别',
|
||||
value: '',
|
||||
component: {
|
||||
name: 'el-select',
|
||||
options: [
|
||||
{
|
||||
value: 'DEVICE_STATUS',
|
||||
label: '设备状态'
|
||||
},
|
||||
{
|
||||
value: 'ITEM_ID_ITEM',
|
||||
label: '编号'
|
||||
},
|
||||
{
|
||||
value: 'DEVICE_DATA',
|
||||
label: '运行数据'
|
||||
},
|
||||
{
|
||||
value: 'PROCESS_DATA',
|
||||
label: '过程数据'
|
||||
},
|
||||
{
|
||||
value: 'RESULT_DATA',
|
||||
label: '结果数据'
|
||||
},
|
||||
{
|
||||
value: 'STATISTICAL_DATA',
|
||||
label: '统计数据'
|
||||
}
|
||||
],
|
||||
span: 12
|
||||
}
|
||||
},
|
||||
working_subclass: {
|
||||
title: '工序单元'
|
||||
},
|
||||
workstation: {
|
||||
title: '工作站'
|
||||
},
|
||||
note: {
|
||||
title: '备注'
|
||||
}
|
||||
@@ -162,12 +186,6 @@ export default {
|
||||
name: {
|
||||
title: '节点名称'
|
||||
},
|
||||
flow_code: {
|
||||
title: '流程'
|
||||
},
|
||||
workstation: {
|
||||
title: '工作站'
|
||||
},
|
||||
note: {
|
||||
title: '备注'
|
||||
}
|
||||
@@ -181,6 +199,7 @@ export default {
|
||||
code: [{ required: true, type: 'string', message: '节点编码必须填写', trigger: 'blur' }],
|
||||
name: [{ required: true, type: 'string', message: '节点名称必须填写', trigger: 'blur' }],
|
||||
type: [{ required: true, message: '必须指定节点类型', trigger: 'blur' }],
|
||||
category: [{ required: true, message: '必须指定数据类别', trigger: 'blur' }],
|
||||
working_subclass: [{
|
||||
required: true,
|
||||
type: 'string',
|
||||
|
||||
Reference in New Issue
Block a user