|
@@ -20,7 +20,7 @@
|
|
|
</el-select>
|
|
|
|
|
|
<span class="title2">设备名称:</span>
|
|
|
- <el-select ref="site" v-model="deviceType" style="display: inline-block; margin-right: 5px" size="small" placeholder="请选择" @change="bindTsNameChange">
|
|
|
+ <el-select ref="site" v-model="deviceId" style="display: inline-block; margin-right: 5px" size="small" placeholder="请选择" @change="bindTsNameChange">
|
|
|
<el-option v-for="item in isSeletcSite" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
|
|
@@ -139,7 +139,7 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
categoryName: '1',
|
|
|
- deviceType: '',
|
|
|
+ deviceId: '',
|
|
|
isSeletcSite: [],
|
|
|
type: '',
|
|
|
types: [],
|
|
@@ -169,12 +169,16 @@ export default {
|
|
|
// }
|
|
|
// const nextDate = new Date(this.endTime + ' 24:00:00')
|
|
|
// const endDate = nextDate.getFullYear() + '-' + (nextDate.getMonth() + 1) + '-' + (nextDate.getDate() > 9 ? nextDate.getDate() : '0' + nextDate.getDate()) + ' 00:00:00'
|
|
|
+ let temp=this.indexName;
|
|
|
+ if(this.indexName.length==0&&this.indexNames.length>0){
|
|
|
+ temp=this.indexNames.map(e=>{return e.id})
|
|
|
+ }
|
|
|
const data = {
|
|
|
type: this.categoryName,
|
|
|
- deviceType: this.deviceType,
|
|
|
+ deviceId: this.deviceId,
|
|
|
censusDate: this.monthTime,
|
|
|
censusDateType: '3', // 按天查询
|
|
|
- indexId: this.indexName + ''
|
|
|
+ indexId: temp + ''
|
|
|
}
|
|
|
Object.assign(data, this.pageInfo)
|
|
|
reportFormCensus(data).then(res => {
|
|
@@ -228,7 +232,7 @@ export default {
|
|
|
this.types = []
|
|
|
this.indexNames = []
|
|
|
this.targetIndex = {}
|
|
|
- this.deviceType = ''
|
|
|
+ this.deviceId = ''
|
|
|
this.type = ''
|
|
|
this.indexName = []
|
|
|
this.dataList = []
|
|
@@ -248,14 +252,14 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
queryIndexType() {
|
|
|
- queryIndexConfiguration({ deviceId: this.deviceType, size: 10000 }).then(res => {
|
|
|
+ queryIndexConfiguration({ deviceId: this.deviceId, size: 10000 }).then(res => {
|
|
|
const arr = this.process(res.result.records)
|
|
|
this.types = arr
|
|
|
console.log(this.types)
|
|
|
})
|
|
|
},
|
|
|
queryIndexConfiguration() {
|
|
|
- queryIndexConfiguration({ deviceId: this.deviceType, type: this.type, size: 10000 }).then(res => {
|
|
|
+ queryIndexConfiguration({ deviceId: this.deviceId, type: this.type, size: 10000 }).then(res => {
|
|
|
this.indexNames = res.result.records
|
|
|
var index = this.targetIndex = {}
|
|
|
res.result.records.map(e => {
|