|
@@ -11,7 +11,7 @@
|
|
|
</a-col>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<a-form-item label="能源参数">
|
|
|
- <a-select v-model="queryParam.queryparamtype" placeholder="请选择能源参数">
|
|
|
+ <a-select v-model="queryParam.queryparamtype" placeholder="请选择能源参数" @change="typeChange">
|
|
|
<a-select-option
|
|
|
v-for="item in options"
|
|
|
:key="item"
|
|
@@ -38,7 +38,7 @@
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="getMoniparamData" icon="search">查询</a-button>
|
|
|
- <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
|
+ <!-- <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> -->
|
|
|
</span>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -95,6 +95,12 @@ export default {
|
|
|
this.getMoniparamData()
|
|
|
})
|
|
|
},
|
|
|
+ // 能源参数改变时
|
|
|
+ typeChange(value){
|
|
|
+ console.log(value)
|
|
|
+ // 手动更新视图
|
|
|
+ this.$forceUpdate()
|
|
|
+ },
|
|
|
// 时间处理
|
|
|
// onChangeDate(date, dateString){
|
|
|
// console.log(date, dateString);
|
|
@@ -138,10 +144,10 @@ export default {
|
|
|
this.queryParam.logtimebegin = `${year}-${month}-${day}`
|
|
|
this.queryParam.logtimeend = `${year}-${month}-${day}`
|
|
|
},
|
|
|
- searchReset(){
|
|
|
- this.queryParam = {}
|
|
|
- this.getMoniparamData()
|
|
|
- },
|
|
|
+ // searchReset(){
|
|
|
+ // this.queryParam = {}
|
|
|
+ // this.getMoniparamData()
|
|
|
+ // },
|
|
|
getMoniparamData() {
|
|
|
this.loading = true
|
|
|
getAction(this.url.list, this.queryParam).then((response) => {
|