|
@@ -17,7 +17,7 @@
|
|
<div class="empty"></div>
|
|
<div class="empty"></div>
|
|
</div>
|
|
</div>
|
|
<div class="info-chart">
|
|
<div class="info-chart">
|
|
- <panel class="info-chart-panel" :title="'损失电量分析'">
|
|
|
|
|
|
+ <panel class="info-chart-panel" :title="'健康趋势'">
|
|
<vertival-bar-line-chart
|
|
<vertival-bar-line-chart
|
|
:height="'310px'"
|
|
:height="'310px'"
|
|
:bardata="bardata"
|
|
:bardata="bardata"
|
|
@@ -27,7 +27,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="health-report">
|
|
<div class="health-report">
|
|
- <panel class="health-report-panel" :title="'健康报告'" :showLine="false">
|
|
|
|
|
|
+ <panel class="health-report-panel" :title="'推荐检修风机'" :showLine="false">
|
|
<div class="actions mg-b-16">
|
|
<div class="actions mg-b-16">
|
|
<div class="item green" @click="onClickRecommon(1)">当日内推荐</div>
|
|
<div class="item green" @click="onClickRecommon(1)">当日内推荐</div>
|
|
<div class="item purple" @click="onClickRecommon(2)">三日内推荐</div>
|
|
<div class="item purple" @click="onClickRecommon(2)">三日内推荐</div>
|
|
@@ -39,20 +39,15 @@
|
|
</div>
|
|
</div>
|
|
<div class="report-items scroll">
|
|
<div class="report-items scroll">
|
|
<div class="item" v-for="(item, index) in recommenList" :key="index">
|
|
<div class="item" v-for="(item, index) in recommenList" :key="index">
|
|
- <div class="title">风机编号:{{ item.wtid }}</div>
|
|
|
|
|
|
+ <div class="title">
|
|
|
|
+ <div>风机编号:{{ item.wtid }}</div>
|
|
|
|
+ <span @click="onClickReport(item)">健康报告</span>
|
|
|
|
+ </div>
|
|
<div class="info">
|
|
<div class="info">
|
|
<p>推荐理由:{{ item.reason }}</p>
|
|
<p>推荐理由:{{ item.reason }}</p>
|
|
- <p>
|
|
|
|
- 推荐检修时间:{{
|
|
|
|
- new Date(item.recodedate).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
|
- }}
|
|
|
|
- </p>
|
|
|
|
|
|
+ <p>推荐检修时间:{{new Date(item.recodedate).formatDate("yyyy-MM-dd hh:mm:ss")}}</p>
|
|
<p>推荐时间对应风速:{{ item.speed }}</p>
|
|
<p>推荐时间对应风速:{{ item.speed }}</p>
|
|
- <p>
|
|
|
|
- 判断时间:{{
|
|
|
|
- new Date(item.createdate).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
|
- }}
|
|
|
|
- </p>
|
|
|
|
|
|
+ <p>判断时间:{{new Date(item.createdate).formatDate("yyyy-MM-dd hh:mm:ss")}}</p>
|
|
<div class="actions mg-t-16">
|
|
<div class="actions mg-t-16">
|
|
<button class="btn success" @click="onClickCofirm(item)">
|
|
<button class="btn success" @click="onClickCofirm(item)">
|
|
<i class="fa fa-check"></i>
|
|
<i class="fa fa-check"></i>
|
|
@@ -68,6 +63,7 @@
|
|
</div>
|
|
</div>
|
|
</panel>
|
|
</panel>
|
|
</div>
|
|
</div>
|
|
|
|
+ <health-report :show="reportshow" :params="reportparams" @closed="closed"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -75,9 +71,10 @@
|
|
import VertivalBarLineChart from "../../components/chart/combination/vertival-bar-line-chart.vue";
|
|
import VertivalBarLineChart from "../../components/chart/combination/vertival-bar-line-chart.vue";
|
|
import SvgIcon from "../../components/coms/icon/svg-icon.vue";
|
|
import SvgIcon from "../../components/coms/icon/svg-icon.vue";
|
|
import Panel from "../../components/coms/panel/panel.vue";
|
|
import Panel from "../../components/coms/panel/panel.vue";
|
|
|
|
+import HealthReport from "../../components/other/healthReport/index.vue"
|
|
|
|
|
|
export default {
|
|
export default {
|
|
- components: { SvgIcon, Panel, VertivalBarLineChart },
|
|
|
|
|
|
+ components: { SvgIcon, Panel, VertivalBarLineChart, HealthReport},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
infoList: [
|
|
infoList: [
|
|
@@ -85,10 +82,12 @@ export default {
|
|
{ title: "7日健康趋势", svgid: "svg-h-day", active: true, type: "day" },
|
|
{ title: "7日健康趋势", svgid: "svg-h-day", active: true, type: "day" },
|
|
{ title: "30日健康趋势", svgid: "svg-h-month", active: false, type: "month"},
|
|
{ title: "30日健康趋势", svgid: "svg-h-month", active: false, type: "month"},
|
|
],
|
|
],
|
|
- bardata: { area: [], legend: ["健康情况", "差", "良", "优"], data: [] }, // 损失电量分析echart数值
|
|
|
|
|
|
+ bardata: { area: [], legend: [], data: [] }, // 损失电量分析echart数值
|
|
lineData: [],
|
|
lineData: [],
|
|
recommenList: [], // 健康报告推荐
|
|
recommenList: [], // 健康报告推荐
|
|
recommenIndex: 1, // 记录当前是那个推荐
|
|
recommenIndex: 1, // 记录当前是那个推荐
|
|
|
|
+ reportshow: false, //是否显示健康报告
|
|
|
|
+ reportparams: undefined
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -128,6 +127,15 @@ export default {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 查看健康报告
|
|
|
|
+ onClickReport(item){
|
|
|
|
+ this.reportshow = true
|
|
|
|
+ this.reportparams = {wtId: item.wtid, recorddate: new Date(item.recodedate).formatDate("yyyy-MM-dd")}
|
|
|
|
+ },
|
|
|
|
+ // 关闭健康报告
|
|
|
|
+ closed(){
|
|
|
|
+ this.reportshow = false
|
|
|
|
+ },
|
|
// 健康推荐提交
|
|
// 健康推荐提交
|
|
onClickCofirm(item) {
|
|
onClickCofirm(item) {
|
|
// this.requestOption("recommen/confirpush", item.rid);
|
|
// this.requestOption("recommen/confirpush", item.rid);
|
|
@@ -188,12 +196,12 @@ export default {
|
|
data: { wpId: 0, type: type },
|
|
data: { wpId: 0, type: type },
|
|
success(res) {
|
|
success(res) {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
+ that.bardata.legend = ["优数量", "良数量", "差数量"];
|
|
that.lineData = res.data.lvchart;
|
|
that.lineData = res.data.lvchart;
|
|
that.bardata.area = res.data.datechart;
|
|
that.bardata.area = res.data.datechart;
|
|
- that.bardata.data[0] = res.data.lvchart;
|
|
|
|
- that.bardata.data[1] = res.data.cslchart;
|
|
|
|
- that.bardata.data[2] = res.data.lslchart;
|
|
|
|
- that.bardata.data[3] = res.data.yslchart;
|
|
|
|
|
|
+ that.bardata.data[2] = res.data.cslchart;
|
|
|
|
+ that.bardata.data[1] = res.data.lslchart;
|
|
|
|
+ that.bardata.data[0] = res.data.yslchart;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@@ -351,7 +359,14 @@ export default {
|
|
color: @gray-l;
|
|
color: @gray-l;
|
|
line-height: 37px;
|
|
line-height: 37px;
|
|
padding-left: 16px;
|
|
padding-left: 16px;
|
|
|
|
+ padding-right: 16px;
|
|
font-size: @fontsize-s;
|
|
font-size: @fontsize-s;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ span {
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
.info {
|
|
.info {
|