|
@@ -123,42 +123,47 @@
|
|
|
} else {
|
|
|
//不是空的情况查询点位列表
|
|
|
console.log(param)
|
|
|
- queryPoint({
|
|
|
- data: {
|
|
|
- Filters: {
|
|
|
- KeyEquipmentParameter: param.EquipmentParameter,
|
|
|
- KeyEquipmentType: param.EquipmentType,
|
|
|
- DataSourceId: this.datasourceId,
|
|
|
- Used: true
|
|
|
- // KeyEquipmentParameter: '温度',
|
|
|
- // KeyEquipmentType: '冷机'
|
|
|
+ if (param && param.EquipmentMark) {
|
|
|
+ queryPoint({
|
|
|
+ data: {
|
|
|
+ Filters: {
|
|
|
+ KeyEquipmentParameter: param.EquipmentParameter,
|
|
|
+ KeyEquipmentType: param.EquipmentType,
|
|
|
+ DataSourceId: this.datasourceId,
|
|
|
+ Used: true
|
|
|
+ // KeyEquipmentParameter: '温度',
|
|
|
+ // KeyEquipmentType: '冷机'
|
|
|
+ },
|
|
|
+ PageNumber: 1,
|
|
|
+ PageSize: 100
|
|
|
},
|
|
|
- PageNumber: 1,
|
|
|
- PageSize: 100
|
|
|
- },
|
|
|
- type: this.protocolType
|
|
|
- }, res => {
|
|
|
- console.log(res, "reslist")
|
|
|
- this.identDataArr = res.Content
|
|
|
- this.$refs.ident.getMain(param)
|
|
|
- })
|
|
|
+ type: this.protocolType
|
|
|
+ }, res => {
|
|
|
+ console.log(res, "reslist")
|
|
|
+ this.identDataArr = res.Content
|
|
|
+ this.$refs.ident.getMain(param)
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//通过type获取param的list
|
|
|
getParamList(item) {
|
|
|
- this.KeyEquipmentType = item.EquipmentType
|
|
|
- groupParamRelated({
|
|
|
- data: {
|
|
|
- DataSourceId: this.datasourceId,
|
|
|
- KeyEquipmentType: item.EquipmentType
|
|
|
- },
|
|
|
- type: this.protocolType
|
|
|
- }, res => {
|
|
|
- this.identifyArr = res.Content.map(item => {
|
|
|
- item.ownMess = item.EquipmentParameter
|
|
|
- return item
|
|
|
+ if (item && item.EquipmentType) {
|
|
|
+ this.KeyEquipmentType = item.EquipmentType
|
|
|
+ groupParamRelated({
|
|
|
+ data: {
|
|
|
+ DataSourceId: this.datasourceId,
|
|
|
+ KeyEquipmentType: item.EquipmentType
|
|
|
+ },
|
|
|
+ type: this.protocolType
|
|
|
+ }, res => {
|
|
|
+ debugger
|
|
|
+ this.identifyArr = res.Content.map(item => {
|
|
|
+ item.ownMess = item.EquipmentParameter
|
|
|
+ return item
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
components: {
|