|
|
@@ -19,6 +19,13 @@
|
|
|
<el-input-number v-model="picknum" :min="1" />
|
|
|
<span class="timeaa">秒</span>
|
|
|
</div>
|
|
|
+ <div class="station">
|
|
|
+ 测点:
|
|
|
+ <el-select v-model="componentsOpt" filterable>
|
|
|
+ <el-option v-for="item in componentsData" :key="item.uniformCode" :label="item.description" :value="item.uniformCode">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
<div class="but">
|
|
|
<el-button round size="mini" class="buttons" @click="funGetHistoryTableData"
|
|
|
>搜 索</el-button
|
|
|
@@ -87,13 +94,18 @@ export default {
|
|
|
hisuniVal: {
|
|
|
type: String,
|
|
|
default: () => ""
|
|
|
- }
|
|
|
+ },
|
|
|
+ componentsData: {
|
|
|
+ type: Array,
|
|
|
+ default: () => [],
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
picknum: 300,
|
|
|
pickerTimer: [],
|
|
|
historyTurbineMonitor: [],
|
|
|
+ componentsOpt: "",
|
|
|
page: {
|
|
|
pagesize: 20,
|
|
|
currentPage: 1,
|
|
|
@@ -102,11 +114,11 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- // this.historyTurbineMonitor = dataJson.data.historyTurbineMonitor
|
|
|
this.pickerTimer = [
|
|
|
dayjs(new Date()).add(-1, "day").format("YYYY-MM-DD HH:mm:ss"),
|
|
|
dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss")
|
|
|
]
|
|
|
+ this.componentsOpt = this.hisuniVal
|
|
|
// this.changeData(dataJson.data.historyTurbineMonitor)
|
|
|
this.funGetHistoryTableData()
|
|
|
},
|
|
|
@@ -117,7 +129,7 @@ export default {
|
|
|
startTs: new Date(that.pickerTimer[0]).getTime() / 1000,
|
|
|
endTs: new Date(that.pickerTimer[1]).getTime() / 1000,
|
|
|
windturbineId: that.hiswindVal,
|
|
|
- uniformCode: that.hisuniVal,
|
|
|
+ uniformCode: that.componentsOpt,
|
|
|
interval: that.picknum
|
|
|
}
|
|
|
getComponentsHistoryData(params).then((res) => {
|
|
|
@@ -252,6 +264,7 @@ export default {
|
|
|
position: relative;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
.economicTable1 {
|
|
|
height: 55vh;
|
|
|
@@ -272,3 +285,14 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
+<style lang="less">
|
|
|
+.el-select {
|
|
|
+ .select-trigger{
|
|
|
+ .el-input{
|
|
|
+ .el-input__inner{
|
|
|
+ height: 33px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|