From fe1bd1eb81819703b6ff28e991abe50d9a71e982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Fri, 4 Aug 2023 14:38:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ecosphere/components/componentLeft.vue | 92 +++++++------- .../components/componentCenterLeft.vue | 1 + .../security/components/Earth.vue | 10 +- .../components/ReportingStatistics.vue | 35 +++--- .../security/components/componentRight.vue | 57 +++++---- .../components/commandControl/index.vue | 1 + .../sentiment/components/componentCenter.vue | 4 +- .../sentiment/components/componentLeft.vue | 16 +-- .../sentiment/components/componentRight.vue | 116 ++++++++++-------- vue.config.js | 3 +- 10 files changed, 178 insertions(+), 157 deletions(-) diff --git a/src/views/privateOrder/ecosphere/components/componentLeft.vue b/src/views/privateOrder/ecosphere/components/componentLeft.vue index 91b82f9..396d0f2 100644 --- a/src/views/privateOrder/ecosphere/components/componentLeft.vue +++ b/src/views/privateOrder/ecosphere/components/componentLeft.vue @@ -730,7 +730,7 @@ export default { this.tableData.push({ 网站名称: '百度', 真实IP: '220.181.111.188', - 网站域名: 'www.baidu.com', + 网站域名: 'https://www.xiaohongshu.com/explore', 备案许可证号: '京ICP证030173号', numOrder: 1 }) @@ -885,33 +885,35 @@ export default { }, rowClick(row) { console.log(row) - this.fileExtension = row['材料路径'].substring( - row['材料路径'].lastIndexOf('.') + 1 - ) - console.log('fileExtension', this.fileExtension) - if (['png', 'jpg', 'jpeg'].includes(row.材料路径.substring(row.材料路径.lastIndexOf('.') + 1))) { - this.imgSrc = `${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['材料路径']}` - this.dialogImg = true - } else if (this.fileExtension === 'docx' || this.fileExtension === 'doc') { - axios({ - method: 'get', - responseType: 'blob', // 设置响应文件格式 - url: `${ - process.env.NODE_ENV === 'production' - ? window._CONFIG['fileNginxUrl'] - : '/fileApi' - }${row['材料路径']}` - }).then(({ data }) => { - if (data) { - this.dialogDetails = true - this.$nextTick(() => { - docx.renderAsync(data, this.$refs.file) // 渲染到页面预览 - }) - } - }) - } else if (this.fileExtension === 'pdf') { - this.getNumPages(`${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['材料路径']}`) - } + this.dialogDetails = true + // console.log(row) + // this.fileExtension = row['材料路径'].substring( + // row['材料路径'].lastIndexOf('.') + 1 + // ) + // console.log('fileExtension', this.fileExtension) + // if (['png', 'jpg', 'jpeg'].includes(row.材料路径.substring(row.材料路径.lastIndexOf('.') + 1))) { + // this.imgSrc = `${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['材料路径']}` + // this.dialogImg = true + // } else if (this.fileExtension === 'docx' || this.fileExtension === 'doc') { + // axios({ + // method: 'get', + // responseType: 'blob', // 设置响应文件格式 + // url: `${ + // process.env.NODE_ENV === 'production' + // ? window._CONFIG['fileNginxUrl'] + // : '/fileApi' + // }${row['材料路径']}` + // }).then(({ data }) => { + // if (data) { + // this.dialogDetails = true + // this.$nextTick(() => { + // docx.renderAsync(data, this.$refs.file) // 渲染到页面预览 + // }) + // } + // }) + // } else if (this.fileExtension === 'pdf') { + // this.getNumPages(`${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['材料路径']}`) + // } }, getNumPages(url) { axios({ @@ -980,25 +982,27 @@ export default { }, processDetails(val) { this.fileExtension = 'docx' + if ( ['生成整改通知书送达回执', '生成约谈通知书', '登记约谈'].includes(val) ) { - axios({ - method: 'get', - responseType: 'blob', // 设置响应文件格式 - url: `${ - process.env.NODE_ENV === 'production' - ? window._CONFIG['fileNginxUrl'] - : '/fileApi' - }/网信办大屏内容文档/网络管理/约谈流程/${val}.docx` - }).then(({ data }) => { - if (data) { - this.dialogDetails = true - this.$nextTick(() => { - docx.renderAsync(data, this.$refs.file) // 渲染到页面预览 - }) - } - }) + this.dialogDetails = true + // axios({ + // method: 'get', + // responseType: 'blob', // 设置响应文件格式 + // url: `${ + // process.env.NODE_ENV === 'production' + // ? window._CONFIG['fileNginxUrl'] + // : '/fileApi' + // }/网信办大屏内容文档/网络管理/约谈流程/${val}.docx` + // }).then(({ data }) => { + // if (data) { + // this.dialogDetails = true + // this.$nextTick(() => { + // docx.renderAsync(data, this.$refs.file) // 渲染到页面预览 + // }) + // } + // }) this.dialogTitle = val } } diff --git a/src/views/privateOrder/positiveEnergy/components/componentCenterLeft.vue b/src/views/privateOrder/positiveEnergy/components/componentCenterLeft.vue index 2fb2943..eb50389 100644 --- a/src/views/privateOrder/positiveEnergy/components/componentCenterLeft.vue +++ b/src/views/privateOrder/positiveEnergy/components/componentCenterLeft.vue @@ -365,6 +365,7 @@ export default { openNewWindow(e) { const index = e.target.dataset.curdata this.href = this.dataList[index].url + console.log(this.href) this.dialogDetails = true // const data = { // 'newsId': e.newsId, diff --git a/src/views/privateOrder/security/components/Earth.vue b/src/views/privateOrder/security/components/Earth.vue index efea9b2..84d42f5 100644 --- a/src/views/privateOrder/security/components/Earth.vue +++ b/src/views/privateOrder/security/components/Earth.vue @@ -1223,13 +1223,13 @@ export default { let china = require("@/assets/Json/china.json"); let chinaOutLine = require("@/assets/Json/china-outline.json"); - const loader = new THREE.FileLoader(); - loader.load("@/assets/Json/china.json", () => { + // const loader = new THREE.FileLoader(); + // loader.load("@/assets/Json/china.json", () => { this.initMap(china); - }); - loader.load("@/assets/Json/china-outline.json", () => { + // }); + // loader.load("@/assets/Json/china-outline.json", () => { this.outLineMap(chinaOutLine); - }); + // }); }, // 外围光 diff --git a/src/views/privateOrder/security/components/ReportingStatistics.vue b/src/views/privateOrder/security/components/ReportingStatistics.vue index 62e23a1..01ab0c6 100644 --- a/src/views/privateOrder/security/components/ReportingStatistics.vue +++ b/src/views/privateOrder/security/components/ReportingStatistics.vue @@ -584,23 +584,24 @@ export default { } else { attUrl = (process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi') + `${row}` } - if (this.fileExtension === 'docx' || this.fileExtension === 'doc') { - axios({ - method: 'get', - responseType: 'blob', // 设置响应文件格式 - url: attUrl - }).then(({ data }) => { - if (data) { - this.dialogStatus2 = true - this.$nextTick(() => { - docx.renderAsync(data, this.$refs.file) // 渲染到页面预览 - }) - } - }) - } else if (this.fileExtension === 'pdf') { - const url = attUrl - this.getNumPages(url) - } + this.dialogStatus2 = true + // if (this.fileExtension === 'docx' || this.fileExtension === 'doc') { + // axios({ + // method: 'get', + // responseType: 'blob', // 设置响应文件格式 + // url: attUrl + // }).then(({ data }) => { + // if (data) { + // this.dialogStatus2 = true + // this.$nextTick(() => { + // docx.renderAsync(data, this.$refs.file) // 渲染到页面预览 + // }) + // } + // }) + // } else if (this.fileExtension === 'pdf') { + // const url = attUrl + // this.getNumPages(url) + // } }, getNumPages(url) { axios({ diff --git a/src/views/privateOrder/security/components/componentRight.vue b/src/views/privateOrder/security/components/componentRight.vue index e6ef98c..f1a7aa9 100644 --- a/src/views/privateOrder/security/components/componentRight.vue +++ b/src/views/privateOrder/security/components/componentRight.vue @@ -476,33 +476,36 @@ export default { } else { row.url = `/网信办大屏内容文档/网络安全/通报处置/${row.url}` } - this.fileExtension = row.url.substring(row.url.lastIndexOf('.') + 1) - if (this.fileExtension === 'docx' || this.fileExtension === 'doc') { - axios({ - method: 'get', - responseType: 'blob', // 设置响应文件格式 - url: `${ - process.env.NODE_ENV === 'production' - ? window._CONFIG['fileNginxUrl'] - : '/fileApi' - }${row.url}` - }).then(({ data }) => { - if (data) { - this.dialogDetails = true - this.$nextTick(() => { - docx.renderAsync(data, this.$refs.file1) // 渲染到页面预览 - }) - } - }) - } else if (this.fileExtension === 'pdf') { - this.getNumPages( - `${ - process.env.NODE_ENV === 'production' - ? window._CONFIG['fileNginxUrl'] - : '/fileApi' - }${row.url}` - ) - } + console.log(row, 'aaa') + this.dialogDetails = true + + // this.fileExtension = row.url.substring(row.url.lastIndexOf('.') + 1) + // if (this.fileExtension === 'docx' || this.fileExtension === 'doc') { + // axios({ + // method: 'get', + // responseType: 'blob', // 设置响应文件格式 + // url: `${ + // process.env.NODE_ENV === 'production' + // ? window._CONFIG['fileNginxUrl'] + // : '/fileApi' + // }${row.url}` + // }).then(({ data }) => { + // if (data) { + // this.dialogDetails = true + // this.$nextTick(() => { + // docx.renderAsync(data, this.$refs.file1) // 渲染到页面预览 + // }) + // } + // }) + // } else if (this.fileExtension === 'pdf') { + // this.getNumPages( + // `${ + // process.env.NODE_ENV === 'production' + // ? window._CONFIG['fileNginxUrl'] + // : '/fileApi' + // }${row.url}` + // ) + // } }, getNumPages(url) { axios({ diff --git a/src/views/privateOrder/sentiment/components/commandControl/index.vue b/src/views/privateOrder/sentiment/components/commandControl/index.vue index 501b2ba..afe4c67 100644 --- a/src/views/privateOrder/sentiment/components/commandControl/index.vue +++ b/src/views/privateOrder/sentiment/components/commandControl/index.vue @@ -63,6 +63,7 @@ export default { mixins: [MapCookieHandler], data() { return { + // mapUrl: 'https://yqms.istarshine.com/v4/login', mapUrl: 'http://2.35.253.24:10633/#/?codes=16C97BF3-63D0-41B8-8F96-1B300932EA3E', multiVideo: { diff --git a/src/views/privateOrder/sentiment/components/componentCenter.vue b/src/views/privateOrder/sentiment/components/componentCenter.vue index 23a51c2..a9c6e16 100644 --- a/src/views/privateOrder/sentiment/components/componentCenter.vue +++ b/src/views/privateOrder/sentiment/components/componentCenter.vue @@ -13,7 +13,7 @@
@@ -21,7 +21,7 @@