综合查询相关接口不再使用中文categoryName统一使用deviceCategory
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<el-row>
|
||||
<el-col v-for="(tempDataItem,tempDataIndex) in deviceIdTypeMsg[item.deviceId]" :key="tempDataIndex+'dbTempData'" :span="8">
|
||||
<span class="pointer" @click="showChart(tempDataItem.pointName,item.deviceName,item.deviceId)">
|
||||
<span class="pointer" @click="showChart(tempDataItem.pointName,item.deviceId)">
|
||||
{{tempDataItem.name}}:{{item[tempDataItem.attr]}}<span v-html="tempDataItem.unit"></span>
|
||||
</span>
|
||||
</el-col>
|
||||
@ -140,9 +140,8 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
showChart(pointName,categoryName,deviceId){
|
||||
console.log('点击查询图表',pointName,categoryName,deviceId)
|
||||
pointName && this.$refs.pointChart.showChart({pointName,categoryName,deviceId})
|
||||
showChart(pointName,deviceId){
|
||||
pointName && this.$refs.pointChart.showChart({pointName,deviceCategory:'AMMETER',deviceId})
|
||||
},
|
||||
updateData(){
|
||||
this.loading = true;
|
||||
|
||||
Reference in New Issue
Block a user