|
|
@ -1,4 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="container">
|
|
|
|
<div class="container">
|
|
|
|
<div class="module-container">
|
|
|
|
<div class="module-container">
|
|
|
@ -108,6 +107,7 @@
|
|
|
|
<span>等级</span>
|
|
|
|
<span>等级</span>
|
|
|
|
<span>隐患来源</span>
|
|
|
|
<span>隐患来源</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div @click="rowDetails($event)">
|
|
|
|
<vue-seamless-scroll
|
|
|
|
<vue-seamless-scroll
|
|
|
|
:data="dangerList"
|
|
|
|
:data="dangerList"
|
|
|
|
:class-option="classOption"
|
|
|
|
:class-option="classOption"
|
|
|
@ -117,46 +117,52 @@
|
|
|
|
v-for="(item, idx) in dangerList"
|
|
|
|
v-for="(item, idx) in dangerList"
|
|
|
|
:key="idx"
|
|
|
|
:key="idx"
|
|
|
|
class="dangerText"
|
|
|
|
class="dangerText"
|
|
|
|
@click="rowDetails(item)"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<span>{{ item.unitName }}</span>
|
|
|
|
<span :data-url="item.fileUrl">{{ item.unitName }}</span>
|
|
|
|
<span>{{ item.riskName }}</span>
|
|
|
|
<span :data-url="item.fileUrl">{{ item.riskName }}</span>
|
|
|
|
<span>{{ $filterDict("tc_yh_level", item.level) }}</span>
|
|
|
|
<span :data-url="item.fileUrl">{{ $filterDict("tc_yh_level", item.level) }}</span>
|
|
|
|
<span> {{ $filterDict("tc_yh_source", item.riskSource) }}</span>
|
|
|
|
<span :data-url="item.fileUrl"> {{ $filterDict("tc_yh_source", item.riskSource) }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vue-seamless-scroll>
|
|
|
|
</vue-seamless-scroll>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- 通报处置 -->
|
|
|
|
<!-- 通报处置 -->
|
|
|
|
<div v-if="dangerCurrentIndex === 1">
|
|
|
|
<div v-if="dangerCurrentIndex === 1">
|
|
|
|
<div class="table_outside" @click="rowDetails($event)">
|
|
|
|
<div class="table_outside">
|
|
|
|
<div class="table_title">
|
|
|
|
<div class="table_title">
|
|
|
|
<span class="title_one">单位名称</span>
|
|
|
|
<span class="title_one">单位名称</span>
|
|
|
|
<span class="title_two">目标IP/域名</span>
|
|
|
|
<span class="title_two">目标IP/域名</span>
|
|
|
|
<span class="title_three">处置情况</span>
|
|
|
|
<span class="title_three">处置情况</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div @click="rowDetails($event)">
|
|
|
|
<vue-seamless-scroll
|
|
|
|
<vue-seamless-scroll
|
|
|
|
:data="informList"
|
|
|
|
:data="informList"
|
|
|
|
:class-option="classOption"
|
|
|
|
:class-option="classOption"
|
|
|
|
class="table_ctn"
|
|
|
|
class="table_ctn"
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
v-for="(item, index) in informList"
|
|
|
|
v-for="(item, index) in informList"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
class="ctn_item"
|
|
|
|
class="ctn_item"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="item_name">
|
|
|
|
<div class="item_name" :data-url="item.fileUrl">
|
|
|
|
{{ item.depName }}
|
|
|
|
{{ item.depName }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item_ip">
|
|
|
|
<div class="item_ip" :data-url="item.fileUrl">
|
|
|
|
{{ item.domainName }}
|
|
|
|
{{ item.ip }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span class="item_num">{{ item.status }}</span>
|
|
|
|
<span class="item_num" :data-url="item.fileUrl">{{
|
|
|
|
|
|
|
|
$filterDict("tc_steam_state", item.state)
|
|
|
|
|
|
|
|
}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vue-seamless-scroll>
|
|
|
|
</vue-seamless-scroll>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
v-if="dialogStatus"
|
|
|
|
v-if="dialogStatus"
|
|
|
|
title=""
|
|
|
|
title=""
|
|
|
@ -206,9 +212,10 @@
|
|
|
|
class="file-content"
|
|
|
|
class="file-content"
|
|
|
|
></div>
|
|
|
|
></div>
|
|
|
|
<div v-if="fileExtension === 'pdf'" class="file-content">
|
|
|
|
<div v-if="fileExtension === 'pdf'" class="file-content">
|
|
|
|
<div v-for="i in numPages" :key="i">
|
|
|
|
<iframe style="height: 100%; width: 100%" :src="pdfUrl"></iframe>
|
|
|
|
|
|
|
|
<!-- <div v-for="i in numPages" :key="i">
|
|
|
|
<pdf ref="pdf" :key="i" :src="pdfUrl" :page="i"></pdf>
|
|
|
|
<pdf ref="pdf" :key="i" :src="pdfUrl" :page="i"></pdf>
|
|
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
@ -527,15 +534,40 @@ export default {
|
|
|
|
this.dialogStatus = true;
|
|
|
|
this.dialogStatus = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rowDetails(e) {
|
|
|
|
rowDetails(e) {
|
|
|
|
const row = JSON.parse(e.target.dataset.obj);
|
|
|
|
if(!e.target.dataset.url) return
|
|
|
|
this.dialogTitle = row?.name || row?.systemName;
|
|
|
|
this.fileExtension = e.target.dataset.url.substring(
|
|
|
|
if (this.dangerCurrentIndex === 0) {
|
|
|
|
e.target.dataset.url.lastIndexOf(".") + 1
|
|
|
|
row.url = `/网信办大屏内容文档/网络安全/最新隐患/网络和信息安全通报-2023年第${row.issue}期 总第${row.totalNum}期(${row.systemName}).pdf`;
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
if (this.fileExtension == "pdf") {
|
|
|
|
row.url = `/网信办大屏内容文档/网络安全/通报处置/${row.url}`;
|
|
|
|
this.pdfUrl = process.env.VUE_APP_BASE_API2 +e.target.dataset.url;
|
|
|
|
}
|
|
|
|
this.dialogDetails = true;
|
|
|
|
console.log(row, "aaa");
|
|
|
|
} else if (
|
|
|
|
|
|
|
|
this.fileExtension === "docx" ||
|
|
|
|
|
|
|
|
this.fileExtension === "doc"
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
axios({
|
|
|
|
|
|
|
|
method: "get",
|
|
|
|
|
|
|
|
responseType: "blob", // 设置响应文件格式
|
|
|
|
|
|
|
|
url: process.env.VUE_APP_BASE_API2 + e.target.dataset.url,
|
|
|
|
|
|
|
|
}).then(({ data }) => {
|
|
|
|
|
|
|
|
if (data) {
|
|
|
|
this.dialogDetails = true;
|
|
|
|
this.dialogDetails = true;
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
docx.renderAsync(data, this.$refs.file1); // 渲染到页面预览
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const row = JSON.parse(e.target.dataset.obj)
|
|
|
|
|
|
|
|
// this.dialogTitle = row?.name || row?.systemName
|
|
|
|
|
|
|
|
// if (this.dangerCurrentIndex === 0) {
|
|
|
|
|
|
|
|
// row.url = `/网信办大屏内容文档/网络安全/最新隐患/网络和信息安全通报-2023年第${row.issue}期 总第${row.totalNum}期(${row.systemName}).pdf`
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// row.url = `/网信办大屏内容文档/网络安全/通报处置/${row.url}`
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// console.log(row, 'aaa')
|
|
|
|
|
|
|
|
// this.dialogDetails = true
|
|
|
|
|
|
|
|
|
|
|
|
// this.fileExtension = row.url.substring(row.url.lastIndexOf('.') + 1)
|
|
|
|
// this.fileExtension = row.url.substring(row.url.lastIndexOf('.') + 1)
|
|
|
|
// if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
|
|
|
|
// if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
|
|
|
@ -1222,4 +1254,7 @@ export default {
|
|
|
|
.file-content .docx p {
|
|
|
|
.file-content .docx p {
|
|
|
|
text-align: center !important;
|
|
|
|
text-align: center !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.docx{
|
|
|
|
|
|
|
|
padding: 104pt 90pt !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|