|
@@ -248,37 +248,37 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
changeArea(type) {
|
|
|
- const goafs = this.deeepClone(this.goafList)
|
|
|
+ const goafs = this.deeepClone(this.goaf)
|
|
|
let goafOrebodys = this.deeepClone(this.goafOrebodys)
|
|
|
let goafOreheights = this.deeepClone(this.goafOreheights)
|
|
|
let goafNames = this.deeepClone(this.goafNames)
|
|
|
if (type === 1) {
|
|
|
- goafOrebodys = goafs.filter(item => item.goafOrebelt === this.conditions.goafOrebelt)
|
|
|
+ goafOrebodys = goafs.filter(item => item.goafOrebelt === this.formData.goafOrebelt)
|
|
|
goafOrebodys = this.unique(goafOrebodys, 'goafOrebody')
|
|
|
this.goafOrebodys = goafOrebodys
|
|
|
this.goafOreheights = []
|
|
|
this.goafNames = []
|
|
|
- this.conditions.goafOrebody = ''
|
|
|
- this.conditions.goafOreheight = ''
|
|
|
- this.conditions.goafName = ''
|
|
|
- this.conditions.goafId = ''
|
|
|
+ this.formData.goafOrebody = ''
|
|
|
+ this.formData.goafOreheight = ''
|
|
|
+ this.formData.goafName = ''
|
|
|
+ this.formData.goafId = ''
|
|
|
} else if (type === 2) {
|
|
|
- goafOreheights = goafs.filter(item => (item.goafOrebody === this.conditions.goafOrebody) && (item.goafOrebelt === this.conditions.goafOrebelt))
|
|
|
+ goafOreheights = goafs.filter(item => (item.goafOrebody === this.formData.goafOrebody) && (item.goafOrebelt === this.formData.goafOrebelt))
|
|
|
goafOreheights = this.unique(goafOrebodys, 'goafOreheight')
|
|
|
this.goafOreheights = goafOreheights
|
|
|
this.goafNames = []
|
|
|
- this.conditions.goafOreheight = ''
|
|
|
- this.conditions.goafName = ''
|
|
|
- this.conditions.goafId = ''
|
|
|
+ this.formData.goafOreheight = ''
|
|
|
+ this.formData.goafName = ''
|
|
|
+ this.formData.goafId = ''
|
|
|
} else if (type === 3) {
|
|
|
- goafNames = goafs.filter(item => (item.goafOreheight === this.conditions.goafOreheight) && (item.goafOrebody === this.conditions.goafOrebody) && (item.goafOrebelt === this.conditions.goafOrebelt))
|
|
|
+ goafNames = goafs.filter(item => (item.goafOreheight === this.formData.goafOreheight) && (item.goafOrebody === this.formData.goafOrebody) && (item.goafOrebelt === this.formData.goafOrebelt))
|
|
|
this.goafNames = goafNames
|
|
|
- this.conditions.goafName = ''
|
|
|
- this.conditions.goafId = ''
|
|
|
+ this.formData.goafName = ''
|
|
|
+ this.formData.goafId = ''
|
|
|
} else {
|
|
|
for (let i = 0; i < goafNames.length; i++) {
|
|
|
- if (this.conditions.goafId === goafNames[i].goafId) {
|
|
|
- this.conditions.goafName = goafNames[i].goafName
|
|
|
+ if (this.formData.goafId === goafNames[i].goafId) {
|
|
|
+ this.formData.goafName = goafNames[i].goafName
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -290,6 +290,7 @@ export default {
|
|
|
this.actionType = 'ADD'
|
|
|
this.title = '新增摄像头配置'
|
|
|
this.dialogVisible = true
|
|
|
+ this.formData.goafDevTypeId = this.sensorCats[0]?.sensorTypeId
|
|
|
},
|
|
|
|
|
|
// Show Edit Dialog
|