update attr-form 的逻辑,TODO:检查产品池和设备信息的编辑子表单

This commit is contained in:
2022-08-17 17:02:58 +08:00
parent 3c4af47e2d
commit a15e78dcaf
4 changed files with 29 additions and 10 deletions

View File

@@ -154,6 +154,18 @@ const addOrUpdateConfigs = {
}
}
],
subtable: {
title: '查看设备属性',
url: '/monitoring/equipmentAttr',
relatedField: 'equipmentId',
tableConfigs: [
{ type: 'index', name: '序号' },
{ prop: 'createTime', name: '创建时间' },
{ prop: 'attrName', name: '属性名称', formField: true },
{ prop: 'attrValue', name: '属性值', formField: true },
{ prop: 'operate', name: '操作', options: ['edit', 'delete'] }
]
},
operations: [
{ name: 'cancel', showAlways: true },
{ name: 'save', url: '/monitoring/equipment', permission: '', showOnEdit: false },

View File

@@ -140,6 +140,7 @@ const addOrUpdateConfigs = {
// for i18n
title: '动态属性',
url: '/monitoring/productArrt',
relatedField: 'productId',
tableConfigs: [
{ type: 'index', name: '序号' },
{ prop: 'createTime', name: '添加时间', filter: val => (val ? moment(val).format('YYYY-MM-DD hh:mm:ss') : '-') },