|
|
@ -46,7 +46,7 @@
|
|
|
|
prop: 'name',
|
|
|
|
prop: 'name',
|
|
|
|
span: 24,
|
|
|
|
span: 24,
|
|
|
|
search: true,
|
|
|
|
search: true,
|
|
|
|
searchSpan: 5,
|
|
|
|
searchSpan: 8,
|
|
|
|
rules: [
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
@ -62,18 +62,11 @@
|
|
|
|
message: '请输入 正确格式的设备名称'
|
|
|
|
message: '请输入 正确格式的设备名称'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}, {
|
|
|
|
|
|
|
|
label: '编码',
|
|
|
|
|
|
|
|
prop: 'code',
|
|
|
|
|
|
|
|
width: 300,
|
|
|
|
|
|
|
|
search: true,
|
|
|
|
|
|
|
|
searchSpan: 5,
|
|
|
|
|
|
|
|
disabled: true
|
|
|
|
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
label: '所属模板',
|
|
|
|
label: '所属模板',
|
|
|
|
prop: 'profileId',
|
|
|
|
prop: 'profileId',
|
|
|
|
search: true,
|
|
|
|
search: true,
|
|
|
|
searchSpan: 5,
|
|
|
|
searchSpan: 8,
|
|
|
|
type: 'tree',
|
|
|
|
type: 'tree',
|
|
|
|
dicData: [],
|
|
|
|
dicData: [],
|
|
|
|
defaultExpandAll: true,
|
|
|
|
defaultExpandAll: true,
|
|
|
@ -89,7 +82,7 @@
|
|
|
|
prop: 'groupId',
|
|
|
|
prop: 'groupId',
|
|
|
|
width: 180,
|
|
|
|
width: 180,
|
|
|
|
search: true,
|
|
|
|
search: true,
|
|
|
|
searchSpan: 5,
|
|
|
|
searchSpan: 8,
|
|
|
|
type: 'select',
|
|
|
|
type: 'select',
|
|
|
|
filterable: true,
|
|
|
|
filterable: true,
|
|
|
|
searchFilterable: true,
|
|
|
|
searchFilterable: true,
|
|
|
@ -101,34 +94,6 @@
|
|
|
|
trigger: 'click'
|
|
|
|
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: '备注',
|
|
|
|
label: '备注',
|
|
|
|
prop: 'description',
|
|
|
|
prop: 'description',
|
|
|
@ -196,13 +161,13 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
group() {
|
|
|
|
group() {
|
|
|
|
dictionaryApi.groupDictionary().then(res => {
|
|
|
|
dictionaryApi.groupDictionary().then(res => {
|
|
|
|
this.findObject(this.listOption.column,'groupId').dicData = res.data;
|
|
|
|
this.findObject(this.listOption.column, 'groupId').dicData = res.data;
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
profile() {
|
|
|
|
profile() {
|
|
|
|
dictionaryApi.profileDictionary().then(res => {
|
|
|
|
dictionaryApi.profileDictionary().then(res => {
|
|
|
|
this.findObject(this.listOption.column,'profileId').dicData = res.data;
|
|
|
|
this.findObject(this.listOption.column, 'profileId').dicData = res.data;
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|