diff --git a/src/views/device/Device.vue b/src/views/device/Device.vue index fd73043..b823ab5 100644 --- a/src/views/device/Device.vue +++ b/src/views/device/Device.vue @@ -46,7 +46,7 @@ prop: 'name', span: 24, search: true, - searchSpan: 5, + searchSpan: 8, rules: [ { required: true, @@ -62,18 +62,11 @@ message: '请输入 正确格式的设备名称' } ] - }, { - label: '编码', - prop: 'code', - width: 300, - search: true, - searchSpan: 5, - disabled: true }, { label: '所属模板', prop: 'profileId', search: true, - searchSpan: 5, + searchSpan: 8, type: 'tree', dicData: [], defaultExpandAll: true, @@ -89,7 +82,7 @@ prop: 'groupId', width: 180, search: true, - searchSpan: 5, + searchSpan: 8, type: 'select', filterable: true, searchFilterable: true, @@ -101,34 +94,6 @@ trigger: 'click' } ] - }, { - label: '状态', - prop: 'status', - width: 80, - search: true, - searchSpan: 4, - disabled: true, - type: 'select', - searchFilterable: true, - value: 2, - dicData: [ - { - label: '离线', - value: 0 - }, { - label: '在线', - value: 1 - }, { - label: '维护', - value: 2 - }, { - label: '故障', - value: 3 - }, { - label: '失效', - value: 4 - } - ] }, { label: '备注', prop: 'description', @@ -196,13 +161,13 @@ }, group() { dictionaryApi.groupDictionary().then(res => { - this.findObject(this.listOption.column,'groupId').dicData = res.data; + this.findObject(this.listOption.column, 'groupId').dicData = res.data; }).catch(() => { }); }, profile() { dictionaryApi.profileDictionary().then(res => { - this.findObject(this.listOption.column,'profileId').dicData = res.data; + this.findObject(this.listOption.column, 'profileId').dicData = res.data; }).catch(() => { }); },