|
|
@@ -69,7 +69,6 @@ export default {
|
|
|
isAdd: false,
|
|
|
currObj: {},
|
|
|
schema: {
|
|
|
- condition: { name: '' },
|
|
|
list: getDeviceGroups,
|
|
|
buttons: [
|
|
|
{ type: 'add', on: this.onAdd }
|
|
|
@@ -88,15 +87,13 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
subDeviceSchema: {
|
|
|
- singlePage: true,
|
|
|
+ nonPagination: true,
|
|
|
list: this.getDevicesByGroup,
|
|
|
buttons: [
|
|
|
{ type: 'add', label: '添加设备', on: this.onAddDevice }
|
|
|
],
|
|
|
cols: [
|
|
|
{ prop: 'name', label: '设备名称' },
|
|
|
- { prop: 'serialNumber', label: '序列号' },
|
|
|
- { prop: 'mac', label: 'MAC' },
|
|
|
{ prop: 'address', label: '地址' },
|
|
|
{ type: 'invoke', render: [
|
|
|
{ label: '移除', on: this.onDelDevice }
|
|
|
@@ -104,11 +101,10 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
deviceSchema: {
|
|
|
- condition: { name: '' },
|
|
|
+ list: getDevices,
|
|
|
filters: [
|
|
|
{ key: 'name', type: 'search', placeholder: '设备名称' }
|
|
|
],
|
|
|
- list: getDevices,
|
|
|
cols: [
|
|
|
{ prop: 'name', label: '设备名称' },
|
|
|
{ prop: 'address', label: '地址' }
|