|
@@ -25,8 +25,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="infoBox">
|
|
<div class="infoBox">
|
|
- <div id="pdfDom" ref="pdfContent"
|
|
|
|
- :style="!theme ? 'background-color: #040c0b' : 'background-color: #fff'">
|
|
|
|
|
|
+ <div id="pdfDom" ref="pdfContent" :style="!theme ? 'background-color: #040c0b' : 'background-color: #fff'">
|
|
<h2 style="
|
|
<h2 style="
|
|
font-weight: bolder;
|
|
font-weight: bolder;
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -152,8 +151,8 @@
|
|
fixed="right" />
|
|
fixed="right" />
|
|
</el-table> -->
|
|
</el-table> -->
|
|
<!-- 温度类隐患 -->
|
|
<!-- 温度类隐患 -->
|
|
- <el-table class="toolSty" :data="fjsxList2" border style="width: 100%; margin: 10px 0"
|
|
|
|
- stripe :header-cell-style="{
|
|
|
|
|
|
+ <el-table class="toolSty" :data="fjsxList2" border style="width: 100%; margin: 10px 0" stripe
|
|
|
|
+ :header-cell-style="{
|
|
padding: '4px',
|
|
padding: '4px',
|
|
fontSize: '12px',
|
|
fontSize: '12px',
|
|
fontWeight: bold,
|
|
fontWeight: bold,
|
|
@@ -179,8 +178,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="reliabilityIssue" align="center" label="可靠性问题"
|
|
|
|
- width="92" />
|
|
|
|
|
|
+ <el-table-column prop="reliabilityIssue" align="center" label="可靠性问题" width="92" />
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -368,7 +366,6 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import httpRequest from "@/utils/request.js";
|
|
|
|
import Docxtemplater from "docxtemplater";
|
|
import Docxtemplater from "docxtemplater";
|
|
import PizZip from "pizzip";
|
|
import PizZip from "pizzip";
|
|
import JSZipUtils from "jszip-utils";
|
|
import JSZipUtils from "jszip-utils";
|
|
@@ -380,7 +377,8 @@
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
|
|
|
|
import {
|
|
import {
|
|
- getWpList
|
|
|
|
|
|
+ getWpList,
|
|
|
|
+ apiGeWarningReport
|
|
} from "@/api/zhbj";
|
|
} from "@/api/zhbj";
|
|
|
|
|
|
import {
|
|
import {
|
|
@@ -429,20 +427,20 @@
|
|
/**场站 */
|
|
/**场站 */
|
|
funGetStation() {
|
|
funGetStation() {
|
|
let that = this;
|
|
let that = this;
|
|
- this.renderReportPage({
|
|
|
|
- data: jsonData.reldata
|
|
|
|
- });
|
|
|
|
- // that.stationList = [];
|
|
|
|
- // that.reportStation = "";
|
|
|
|
- // getWpList().then((res) => {
|
|
|
|
- // if (res) {
|
|
|
|
- // that.stationList = res.data;
|
|
|
|
- // if (that.stationList.length) {
|
|
|
|
- // that.reportStation = that.stationList[0].id;
|
|
|
|
- // that.handleReportOp();
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ // this.renderReportPage({
|
|
|
|
+ // data: jsonData.reldata
|
|
// });
|
|
// });
|
|
|
|
+ that.stationList = [];
|
|
|
|
+ that.reportStation = "";
|
|
|
|
+ getWpList().then((res) => {
|
|
|
|
+ if (res) {
|
|
|
|
+ that.stationList = res.data;
|
|
|
|
+ if (that.stationList.length) {
|
|
|
|
+ that.reportStation = that.stationList[0].id;
|
|
|
|
+ that.handleReportOp();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
async exportPDFop() {
|
|
async exportPDFop() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
@@ -659,11 +657,12 @@
|
|
this.maintenanceRecommendations = {};
|
|
this.maintenanceRecommendations = {};
|
|
this.conclusionMsg = "";
|
|
this.conclusionMsg = "";
|
|
|
|
|
|
- httpRequest
|
|
|
|
- .get(
|
|
|
|
- `/WarningReport/report?time=${this.reportParamDate}&wpid=${this.reportStation}`
|
|
|
|
- )
|
|
|
|
- .then((res) => {
|
|
|
|
|
|
+ let params = {
|
|
|
|
+ reportParamDate: this.reportParamDate,
|
|
|
|
+ reportStation: this.reportStation
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ apiGeWarningReport(params).then((res) => {
|
|
this.renderReportPage(res);
|
|
this.renderReportPage(res);
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|