网络生态完善

duhanyu
吕天方 1 year ago
parent 1f4243683d
commit 29f4726801

@ -3,7 +3,7 @@
* @Author: kery.chen
* @Description: 总体概览左侧
* @Date: 2021-11-30 11:08:50
* @LastEditTime: 2023-10-17 17:14:22
* @LastEditTime: 2023-10-19 10:52:51
* @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\ecosphere\\components\\componentLeft.vue
-->
<template>
@ -497,6 +497,7 @@ import {
listZdqyml,
listZdlyjg,
listZdgzxm,
listYtlc,
} from "@/api/netManage/index.js";
import { downloadTwo } from "@/utils/safesoft";
const docx = require("docx-preview");
@ -665,7 +666,6 @@ export default {
//
getDynamicData() {
listGzdt({isStatus:1}).then(res=>{
console.log(res)
this.dongtaiTotal = res.total;
this.dynamicList = [...this.dynamicList, ...res.rows];
})
@ -942,7 +942,7 @@ export default {
// this.dialogStatus = true
},
inventoryBtnTwo(status) {
console.log(this.dialogTitle);
// console.log(this.dialogTitle);
const { page, limit } = status;
this.queryParams.pageNum = page;
this.queryParams.pageSize = limit;
@ -964,7 +964,7 @@ export default {
}, 6000);
},
iconClick(row) {
console.log(row);
// console.log(row);
if (row.URL) {
this.href = row.URL;
this.pageDetails = true;
@ -1008,7 +1008,7 @@ export default {
this.networkPlatformClickTwo(this.zooParams);
},
async networkPlatformClickTwo(params) {
console.log(params, "====");
// console.log(params, "====");
this.tableData = [];
let res = await listPlatform(params);
if (params.type == 1) {
@ -1239,29 +1239,54 @@ export default {
this.currentPage = 1;
},
processDetails(val) {
this.fileExtension = "docx";
// this.fileExtension = "docx";
if (
["生成整改通知书送达回执", "生成约谈通知书", "登记约谈"].includes(val)
) {
this.dialogDetails = true;
axios({
method: "get",
responseType: "blob", //
url: `${
process.env.NODE_ENV === "production"
? window._CONFIG["fileNginxUrl"] : process.env.VUE_APP_BASE_API2
// : "/fileApi"
}/网信办大屏内容文档/网络管理/约谈流程/${val}.docx`,
}).then(({ data }) => {
if (data) {
this.dialogDetails = true;
this.$nextTick(() => {
docx.renderAsync(data, this.$refs.file); //
listYtlc({name:val}).then(res=>{
this.dialogDetails = true;
this.dialogTitle = val;
console.log(res,'res')
this.fileExtension = res.rows[0].fileUrl.substring(
res.rows[0].fileUrl.lastIndexOf(".") + 1
);
if (this.fileExtension == "pdf") {
// this.pdfUrl = process.env.VUE_APP_BASE_API2 + row[''];
this.getNumPages(process.env.VUE_APP_BASE_API2 + res.rows[0].fileUrl);
// this.dialogDetails = true
} else if (
this.fileExtension === "docx" ||
this.fileExtension === "doc"
) {
axios({
method: "get",
responseType: "blob", //
url: process.env.VUE_APP_BASE_API2 + res.rows[0].fileUrl,
}).then(({ data }) => {
if (data) {
this.$nextTick(() => {
docx.renderAsync(data, this.$refs.fileDoc); //
});
}
});
}
});
this.dialogTitle = val;
})
// axios({
// method: "get",
// responseType: "blob", //
// url: `${
// process.env.NODE_ENV === "production"
// ? window._CONFIG["fileNginxUrl"] : process.env.VUE_APP_BASE_API2
// // : "/fileApi"
// }////${val}.docx`,
// }).then(({ data }) => {
// if (data) {
// this.dialogDetails = true;
// this.$nextTick(() => {
// docx.renderAsync(data, this.$refs.file); //
// });
// }
// });
}
},
},

Loading…
Cancel
Save