|
|
@@ -3,7 +3,7 @@
|
|
|
<div class="title">
|
|
|
<div class="station">
|
|
|
机型:
|
|
|
- <el-select v-model="windModel">
|
|
|
+ <el-select v-model="windModel" @change="changeModel">
|
|
|
<el-option v-for="item in windModelSList" :key="item.value" :label="item.label" :value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
@@ -149,6 +149,7 @@ export default {
|
|
|
dialogTitle: "",
|
|
|
checkAllWind: true,
|
|
|
windSList: [],
|
|
|
+ allwindSList: [],
|
|
|
stationVal: "NX_FGS_HA_FDC_STA",
|
|
|
dateTime: "",
|
|
|
tableData: [],
|
|
|
@@ -211,25 +212,40 @@ export default {
|
|
|
this.componentsVisible = false
|
|
|
this.funGetTableData()
|
|
|
},
|
|
|
+ changeModel(val) {
|
|
|
+ console.log("val===>>", val)
|
|
|
+ this.windSList = [];
|
|
|
+ this.allwindSList.forEach(it => {
|
|
|
+ if (it.modelId === val) {
|
|
|
+ this.windSList.push(it)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取风机
|
|
|
async getWindData() {
|
|
|
- this.windSList = [];
|
|
|
+ let that = this
|
|
|
+ that.windSList = [];
|
|
|
let params = {
|
|
|
- wpid: this.stationVal,
|
|
|
+ wpid: that.stationVal,
|
|
|
};
|
|
|
const { data: datas } = await getApiequipmentListByWp2(params);
|
|
|
if (datas.data.length) {
|
|
|
- this.windSList = datas.data;
|
|
|
- datas.data.forEach((it, index) => {
|
|
|
+ that.allwindSList = datas.data
|
|
|
+ datas.data.forEach(it => {
|
|
|
+ if (it.modelId === that.windModel) {
|
|
|
+ that.windSList.push(it)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ that.windSList.forEach((it, index) => {
|
|
|
if (index < 10) {
|
|
|
this.windSObj.push(it.aname)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- this.windSList = datas.data;
|
|
|
- this.windVal = "";
|
|
|
+ that.windSList = datas.data;
|
|
|
+ that.windVal = "";
|
|
|
}
|
|
|
- this.funGetComponents();
|
|
|
+ that.funGetComponents();
|
|
|
},
|
|
|
//获取测点
|
|
|
funGetComponents() {
|