|
|
|
@ -168,8 +168,8 @@ export default {
|
|
|
|
|
pdfUrl: "",
|
|
|
|
|
//=========
|
|
|
|
|
queryData: {
|
|
|
|
|
// pageSize: 20,
|
|
|
|
|
// pageNum: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
areaId: "",
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
@ -251,7 +251,8 @@ export default {
|
|
|
|
|
echartsJump(myChartPieFirst, optionFirst);
|
|
|
|
|
},
|
|
|
|
|
clickFunc(val) {
|
|
|
|
|
this.queryData.areaId = val.area;
|
|
|
|
|
console.log(val);
|
|
|
|
|
this.queryData.areaId = val.area || val.data.area;
|
|
|
|
|
console.log(this.queryData);
|
|
|
|
|
//点击之后弹出框显示列表
|
|
|
|
|
this.dangerList = [];
|
|
|
|
@ -286,17 +287,9 @@ export default {
|
|
|
|
|
let str1 = str[0].split(".");
|
|
|
|
|
this.fileExtension = str1[1];
|
|
|
|
|
if (this.fileExtension == "pdf") {
|
|
|
|
|
this.pdfUrl = process.env.VUE_APP_BASE_API2 + str[0];
|
|
|
|
|
this.getNumPages(process.env.VUE_APP_BASE_API2 + str[0])
|
|
|
|
|
this.dialogStatus2 = true;
|
|
|
|
|
// console.log(this.pdfUrl);
|
|
|
|
|
// const loadingTask = pdf.createLoadingTask({
|
|
|
|
|
// url: this.pdfUrl,
|
|
|
|
|
// });
|
|
|
|
|
// loadingTask.promise.then((pdf) => {
|
|
|
|
|
// this.numPages = pdf.numPages;
|
|
|
|
|
// this.dialogStatus2 = true;
|
|
|
|
|
// });
|
|
|
|
|
// this.getNumPages(this.pdfUrl)
|
|
|
|
|
|
|
|
|
|
} else if (
|
|
|
|
|
this.fileExtension === "docx" ||
|
|
|
|
|
this.fileExtension === "doc"
|
|
|
|
|