|
@@ -14,6 +14,7 @@
|
|
|
clearable
|
|
|
placeholder="请选择风场"
|
|
|
popper-class="select"
|
|
|
+ @change="wpselect"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in options"
|
|
@@ -33,6 +34,7 @@
|
|
|
clearable
|
|
|
placeholder="请选择风机"
|
|
|
popper-class="select"
|
|
|
+ @change="wtselect"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in options1"
|
|
@@ -45,11 +47,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="query-actions">
|
|
|
+ <!-- <div class="query-actions">
|
|
|
<button class="btn" type="button">
|
|
|
<i class="el-icon-back mg-r-8"></i><span>返回</span>
|
|
|
</button>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -59,7 +61,7 @@
|
|
|
<SvgIcon svgid="svg-wind-site"></SvgIcon>
|
|
|
</span>
|
|
|
<div class="fan-code">
|
|
|
- <div class="fan-code-text font-md green">MG02-01</div>
|
|
|
+ <div class="fan-code-text font-md green">{{value2}}</div>
|
|
|
<div class="fan-code-label font-md gray-l">高频:</div>
|
|
|
<div class="fan-code-value font-md green">{{stoptypemap && stoptypemap.top1type}}</div>
|
|
|
<div class="fan-code-label font-md gray-l">中频:</div>
|
|
@@ -71,13 +73,13 @@
|
|
|
<SvgIcon svgid="svg-wind-site"></SvgIcon>
|
|
|
</span>
|
|
|
<div class="fan-code bg">
|
|
|
- <div class="fan-code-label font-md gray-l">高频:</div>
|
|
|
+ <div class="fan-code-label font-md gray-l">风机评分:</div>
|
|
|
</div>
|
|
|
<div class="fan-code">
|
|
|
<div class="fan-code-value nm font-md green">{{stoptypemap && stoptypemap.wtscore}}</div>
|
|
|
</div>
|
|
|
<button class="btn mg-l-16" type="button">
|
|
|
- <i class="el-icon-s-order mg-r-8"></i><span>健康报告</span>
|
|
|
+ <i class="el-icon-s-order mg-r-8" @click="onClickReport()"></i><span>健康报告</span>
|
|
|
</button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -97,9 +99,9 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6"></el-col>
|
|
|
<el-col :span="6"></el-col>
|
|
|
- <el-col :span="6">
|
|
|
+ <!-- <el-col :span="6">
|
|
|
<progress-bar title="风机" name="风机健康度" :progress='partmap && partmap.fj.smsyl' :color="partmap &&color(partmap.fj.jkzt)"></progress-bar>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="6" class="mg-t-16">
|
|
@@ -197,6 +199,7 @@
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <health-report :show="reportshow" :params="reportparams" @closed="closed"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -205,6 +208,7 @@ import SvgIcon from "@com/coms/icon/svg-icon.vue";
|
|
|
import StandAloneImg from "@/views/WindSite/pages/Info/StandAloneImg.vue";
|
|
|
import ProgressBar from "@com/coms/progress-bar/progress-bar.vue";
|
|
|
import Table from "../../components/coms/table/table.vue";
|
|
|
+import HealthReport from "../../components/other/healthReport/index.vue"
|
|
|
export default {
|
|
|
setup() {},
|
|
|
components: {
|
|
@@ -212,9 +216,12 @@ export default {
|
|
|
StandAloneImg,
|
|
|
ProgressBar,
|
|
|
Table,
|
|
|
+ HealthReport
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ reportshow: false, //是否显示健康报告
|
|
|
+ reportparams: undefined,
|
|
|
bsxImg: require("@assets/png/bsx.png"),
|
|
|
options: [
|
|
|
{
|
|
@@ -707,13 +714,31 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.search()
|
|
|
- this.wtid = this.$route.params.wtId;
|
|
|
- this.wpid = this.$route.params.wpId;
|
|
|
+ this.wtid = this.$route.params.wtId;
|
|
|
+ this.wpid = this.$route.params.wpId;
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 查看健康报告
|
|
|
+ onClickReport(){
|
|
|
+ console.warn('查看健康报告');
|
|
|
+ this.reportshow = true
|
|
|
+ this.reportparams = {wtId: this.value2, recorddate: new Date(new Date()).formatDate("yyyy-MM-dd")}
|
|
|
+ },
|
|
|
+ // 关闭健康报告
|
|
|
+ closed(){
|
|
|
+ this.reportshow = false
|
|
|
+ },
|
|
|
color(val){
|
|
|
return this.colorval[val]
|
|
|
},
|
|
|
+ wpselect(){
|
|
|
+ console.warn('wpselect');
|
|
|
+ this.searchWindturbine('select')
|
|
|
+ },
|
|
|
+ wtselect(){
|
|
|
+ console.warn('wtselect');
|
|
|
+ this.searchWtHealthInfo()
|
|
|
+ },
|
|
|
async search() {
|
|
|
const { data } = await this.API.requestData({
|
|
|
subUrl: "powercompare/windfarmAjax",
|
|
@@ -722,7 +747,7 @@ export default {
|
|
|
this.value1 = this.wpid;
|
|
|
this.searchWindturbine()
|
|
|
},
|
|
|
- async searchWindturbine() {
|
|
|
+ async searchWindturbine(statu) {
|
|
|
const { data } = await this.API.requestData({
|
|
|
subUrl: "/powercompare/windturbineAjax",
|
|
|
data:{
|
|
@@ -730,13 +755,14 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.options1 = data.data;
|
|
|
- this.value2 = this.wtid;
|
|
|
+ this.value2 = statu =='select' ?data.data[0].id : this.wtid;
|
|
|
console.warn(data);
|
|
|
this.searchWtHealthInfo()
|
|
|
},
|
|
|
async searchWtHealthInfo() {
|
|
|
const { data } = await this.API.requestData({
|
|
|
subUrl: "/healthsub//findWtHealthInfo",
|
|
|
+ showLoading: true,
|
|
|
method:'POST',
|
|
|
timeout: 30000, // 请求超时时间,默认 3s ,可缺省
|
|
|
data:{
|