吕天方 1 year ago
commit a4f04224b1

@ -17,7 +17,7 @@ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分
baseURL: process.env.VUE_APP_BASE_API,
// 超时
timeout: 10000
timeout: 100000
})
// request拦截器

@ -9,13 +9,19 @@
label-width="auto"
>
<el-form-item label="区域" prop="areaId">
<el-input
<el-select
v-model="queryParams.areaId"
placeholder="请输入区域"
placeholder="请选择区域"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
>
<el-option
v-for="dict in dict.type.tc_area"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="启用/禁用" prop="isStatus">
<el-select
@ -174,7 +180,14 @@
class="dialog-from"
>
<el-form-item label="区域" prop="areaId">
<el-input v-model="form.areaId" placeholder="请输入区域" />
<el-select v-model="form.areaId" placeholder="请选择区域">
<el-option
v-for="dict in dict.type.tc_area"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="启用/禁用" prop="isStatus">
<el-select v-model="form.isStatus" placeholder="请选择启用/禁用">
@ -240,11 +253,11 @@
labelClassName="desLable"
>
<el-descriptions-item label="区域">{{
selectDictLabel(dict.type.tc_area,form.areaId)
selectDictLabel(dict.type.tc_area, form.areaId)
}}</el-descriptions-item>
<el-descriptions-item label="启用/禁用">{{
selectDictLabel(dict.type.tc_start,form.isStatus)
selectDictLabel(dict.type.tc_start, form.isStatus)
}}</el-descriptions-item>
<el-descriptions-item label="单位">{{
@ -301,7 +314,7 @@ import {
export default {
name: "Aqg",
//
dicts: ["tc_start"],
dicts: ["tc_start", "tc_area"],
data() {
return {
tableHeigth: 0,

@ -275,7 +275,7 @@
}}</el-descriptions-item>
<el-descriptions-item label="类型">{{
form.type
selectDictLabel(dict.type.tc_sjbd,form.type)
}}</el-descriptions-item>
<el-descriptions-item label="标题">{{

@ -284,7 +284,7 @@ import {
export default {
name: "Wlaqzcqy",
//
dicts: ["tc_area", "tc_start"],
dicts: ["tc_area", "tc_start",],
data() {
return {
tableHeigth: 0,

@ -295,7 +295,7 @@
}}</el-descriptions-item>
<el-descriptions-item label="志愿者类型">{{
form.type
selectDictLabel(dict.type.tc_wlwmzyzlx,form.type)
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{

@ -53,7 +53,7 @@
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type="primary"
@ -253,15 +253,15 @@
labelClassName="desLable"
>
<el-descriptions-item label="区域">{{
selectDictLabel(dict.type.tc_area,form.areaId)
selectDictLabel(dict.type.tc_area, form.areaId)
}}</el-descriptions-item>
<el-descriptions-item label="启用/禁用">{{
selectDictLabel(dict.type.tc_start,form.isStatus)
selectDictLabel(dict.type.tc_start, form.isStatus)
}}</el-descriptions-item>
<el-descriptions-item label="类型">{{
form.type
selectDictLabel(dict.type.tc_wpwzlylx, form.type)
}}</el-descriptions-item>
<el-descriptions-item label="标题">{{

@ -8,7 +8,6 @@
v-show="showSearch"
label-width="auto"
>
<el-form-item label="区域" prop="areaId">
<el-select
v-model="queryParams.areaId"
@ -57,7 +56,7 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
@ -116,7 +115,7 @@
<dict-tag :options="dict.type.tc_area" :value="scope.row.areaId" />
</template>
</el-table-column>
<el-table-column label="姓名" align="center" prop="name" />
<el-table-column label="性别" align="center" prop="sex" />
<el-table-column label="网评员类型" align="center" prop="type">
@ -275,11 +274,11 @@
labelClassName="desLable"
>
<el-descriptions-item label="区域">{{
selectDictLabel(dict.type.tc_area,form.areaId)
selectDictLabel(dict.type.tc_area, form.areaId)
}}</el-descriptions-item>
<el-descriptions-item label="启用/禁用">{{
selectDictLabel(dict.type.tc_start,form.isStatus)
selectDictLabel(dict.type.tc_start, form.isStatus)
}}</el-descriptions-item>
<el-descriptions-item label="姓名">{{
@ -311,7 +310,7 @@
}}</el-descriptions-item>
<el-descriptions-item label="网评员类型">{{
form.type
selectDictLabel(dict.type.tc_wpylx, form.type)
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{

@ -8,7 +8,7 @@
v-show="showSearch"
label-width="auto"
>
<el-form-item label="云端监测(G)" prop="lable1">
<!-- <el-form-item label="云端监测(G)" prop="lable1">
<el-input
v-model="queryParams.lable1"
placeholder="请输入云端监测(G)"
@ -43,9 +43,9 @@
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-form-item> -->
<el-form-item>
<!-- <el-form-item>
<el-button
type="primary"
icon="el-icon-search"
@ -56,7 +56,7 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form-item> -->
</el-form>
</div>
<div class="layui-table-tool" ref="tableTool">
@ -65,6 +65,7 @@
size="mini"
@click="handleAdd()"
v-hasPermi="['tcZz/networkSecurity:DataSourceTj:add']"
:disabled="isShowAdd"
>新增</el-button
>
<el-button
@ -298,6 +299,8 @@ export default {
form: {},
//
rules: {},
//
isShowAdd: false,
};
},
created() {
@ -320,6 +323,8 @@ export default {
}
listDataSourceTj(this.queryParams).then((response) => {
this.DataSourceTjList = response.rows;
if (response.rows.length > 0) this.isShowAdd = true;
else this.isShowAdd = false;
this.total = response.total;
this.loading = false;
});

@ -32,32 +32,7 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="备案编号" prop="beianNum">
<el-input
v-model="queryParams.beianNum"
placeholder="请输入备案编号"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="启用/禁用" prop="isStatus">
<el-select
v-model="queryParams.isStatus"
placeholder="请选择启用/禁用"
clearable
size="small"
>
<el-option
v-for="dict in dict.type.tc_start"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type="primary"
@ -218,6 +193,9 @@
<el-form-item label="单位名称" prop="unitName">
<el-input v-model="form.unitName" placeholder="请输入单位名称" />
</el-form-item>
<el-form-item label="业务类型" prop="businessType">
<el-input v-model="form.businessType" placeholder="请输入业务类型" />
</el-form-item>
<el-form-item label="服务范围" prop="serviceArea">
<el-input v-model="form.serviceArea" placeholder="请输入服务范围" />
</el-form-item>
@ -245,7 +223,7 @@
size="small"
v-model="form.startTime"
type="date"
value-format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择投入运行使用日期"
>
</el-date-picker>
@ -259,7 +237,7 @@
size="small"
v-model="form.systemDjtime"
type="date"
value-format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择系统定级时间"
>
</el-date-picker>
@ -319,7 +297,7 @@
labelClassName="desLable"
>
<el-descriptions-item label="区域">{{
selectDictLabel(dict.type.tc_area,form.areaId)
selectDictLabel(dict.type.tc_area, form.areaId)
}}</el-descriptions-item>
<el-descriptions-item label="系统名称">{{
@ -391,7 +369,7 @@
}}</el-descriptions-item>
<el-descriptions-item label="启用/禁用">{{
selectDictLabel(dict.type.tc_start,form.isStatus)
selectDictLabel(dict.type.tc_start, form.isStatus)
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{

@ -304,7 +304,7 @@
}}</el-descriptions-item>
<el-descriptions-item label="记录类型">{{
form.type
selectDictLabel(dict.type.tc_jslx,form.type)
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{

@ -164,18 +164,8 @@
<el-form-item label="数量" prop="count">
<el-input v-model="form.count" placeholder="请输入数量" />
</el-form-item>
<el-form-item
label="1.国际
2.国内
"
prop="type"
>
<el-select
v-model="form.type"
placeholder="请选择1.国际
2.国内
"
>
<el-form-item label="类型" prop="type">
<el-select v-model="form.type" placeholder="请选择类型">
<el-option
v-for="dict in dict.type.tc_dttjlx"
:key="dict.value"
@ -218,12 +208,9 @@
form.count
}}</el-descriptions-item>
<el-descriptions-item
label="1.国际
2.国内
"
>{{ form.type }}</el-descriptions-item
>
<el-descriptions-item label="类型">{{
selectDictLabel(dict.type.tc_dttjlx, form.type)
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{
form.remark

@ -266,7 +266,7 @@
}}</el-descriptions-item>
<el-descriptions-item label="类型">{{
form.type
selectDictLabel(dict.type.tc_yrtzlx,form.type)
}}</el-descriptions-item>
<el-descriptions-item label="启用/禁用">{{

@ -9,14 +9,21 @@
label-width="auto"
>
<el-form-item label="属地名称" prop="area">
<el-input
<el-select
v-model="queryParams.area"
placeholder="请输入属地名称"
placeholder="请选择属地"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
>
<el-option
v-for="dict in dict.type.tc_sdtbmc"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="启用/禁用" prop="isStatus">
<el-select
v-model="queryParams.isStatus"
@ -88,7 +95,7 @@
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="属地名称" align="center" prop="area">
<template slot-scope="scope">
<dict-tag :options="dict.type.tc_area" :value="scope.row.area" />
<dict-tag :options="dict.type.tc_sdtbmc" :value="scope.row.area" />
</template>
</el-table-column>
@ -169,7 +176,14 @@
class="dialog-from"
>
<el-form-item label="属地名称" prop="area">
<el-input v-model="form.area" placeholder="请输入属地名称" />
<el-select v-model="form.area" placeholder="请选择属地名称">
<el-option
v-for="dict in dict.type.tc_sdtbmc"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="启用/禁用" prop="isStatus">
<el-select v-model="form.isStatus" placeholder="请选择启用/禁用">
@ -181,10 +195,10 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="上传文件" >
<el-form-item label="上传文件">
<FileUpload v-model="fileNameS"></FileUpload>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
@ -212,11 +226,11 @@
labelClassName="desLable"
>
<el-descriptions-item label="属地名称">{{
form.area
selectDictLabel(dict.type.tc_sdtbmc, form.area)
}}</el-descriptions-item>
<el-descriptions-item label="启用/禁用">{{
selectDictLabel(dict.type.tc_start,form.isStatus)
selectDictLabel(dict.type.tc_start, form.isStatus)
}}</el-descriptions-item>
<el-descriptions-item label="文件名称">{{
@ -247,7 +261,7 @@ import {
export default {
name: "Sdtb",
//
dicts: ["tc_start"],
dicts: ["tc_start", "tc_sdtbmc"],
data() {
return {
tableHeigth: 0,

@ -8,26 +8,25 @@
v-show="showSearch"
label-width="auto"
>
<el-form-item label="受攻击IP" prop="sAttackIp">
<el-form-item label="受攻击IP" prop="sattackIp">
<el-input
v-model="queryParams.sAttackIp"
v-model="queryParams.sattackIp"
placeholder="请输入受攻击IP"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="受攻击次数" prop="sAttackCount">
<el-form-item label="受攻击次数" prop="sattackCount">
<el-input
v-model="queryParams.sAttackCount"
v-model="queryParams.sattackCount"
placeholder="请输入受攻击次数"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
@ -81,8 +80,12 @@
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="受攻击IP" align="center" prop="sAttackIp" />
<el-table-column label="受攻击次数" align="center" prop="sAttackCount" />
<el-table-column label="受攻击IP" align="center" prop="sattackIp" />
<el-table-column
label="受攻击次数"
align="center"
prop="sattackCount"
/>
<el-table-column
label="操作"
align="center"
@ -139,12 +142,12 @@
label-width="auto"
class="dialog-from"
>
<el-form-item label="受攻击IP" prop="sAttackIp">
<el-input v-model="form.sAttackIp" placeholder="请输入受攻击IP" />
<el-form-item label="受攻击IP" prop="sattackIp">
<el-input v-model="form.sattackIp" placeholder="请输入受攻击IP" />
</el-form-item>
<el-form-item label="受攻击次数" prop="sAttackCount">
<el-form-item label="受攻击次数" prop="sattackCount">
<el-input
v-model="form.sAttackCount"
v-model="form.sattackCount"
placeholder="请输入受攻击次数"
/>
</el-form-item>
@ -175,11 +178,11 @@
labelClassName="desLable"
>
<el-descriptions-item label="受攻击IP">{{
form.sAttackIp
form.sattackIp
}}</el-descriptions-item>
<el-descriptions-item label="受攻击次数">{{
form.sAttackCount
form.sattackCount
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{
@ -239,9 +242,9 @@ export default {
pageSize: 10,
id: null,
sAttackIp: null,
sattackIp: null,
sAttackCount: null,
sattackCount: null,
createBy: null,
@ -293,9 +296,9 @@ export default {
this.form = {
id: null,
sAttackIp: null,
sattackIp: null,
sAttackCount: null,
sattackCount: null,
createBy: null,

@ -1,122 +1,163 @@
<template>
<div class="container-main" ref="main">
<div class="search-hearder" ref="topSearch">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="网络攻击(万次)" prop="netAttack">
<el-input
v-model="queryParams.netAttack"
placeholder="请输入网络攻击(万次)"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="入侵攻击" prop="rqAttack">
<el-input
v-model="queryParams.rqAttack"
placeholder="请输入入侵攻击"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<div class="search-hearder" ref="topSearch">
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="auto"
>
<el-form-item label="网络攻击(万次)" prop="netAttack">
<el-input
v-model="queryParams.netAttack"
placeholder="请输入网络攻击(万次)"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="入侵攻击" prop="rqAttack">
<el-input
v-model="queryParams.rqAttack"
placeholder="请输入入侵攻击"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="layui-table-tool" ref="tableTool">
<el-button
type="primary"
size="mini"
@click="handleAdd()"
v-hasPermi="['tcZz/networkSecurity:wljgtj:add']"
:disabled="isShowAdd"
>新增</el-button
>
<el-button
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/networkSecurity:wljgtj:edit']"
>修改</el-button>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/networkSecurity:wljgtj:remove']"
>删除</el-button>
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/networkSecurity:wljgtj:edit']"
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/networkSecurity:wljgtj:remove']"
>删除</el-button
>
<el-button
type="warning"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['tcZz/networkSecurity:wljgtj:export']"
v-hasPermi="['tcZz/networkSecurity:wljgtj:export']"
>导出</el-button
>
</div>
<el-table v-loading="loading" :data="wljgtjList" @selection-change="handleSelectionChange">
<el-table
v-loading="loading"
:data="wljgtjList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="网络攻击(万次)" align="center" prop="netAttack" />
<el-table-column label="入侵攻击" align="center" prop="rqAttack" />
<el-table-column label="恶意扫描" align="center" prop="smAttack" />
<el-table-column label="僵木蠕病毒" align="center" prop="bdAttack" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
<el-table-column label="网络攻击(万次)" align="center" prop="netAttack" />
<el-table-column label="入侵攻击" align="center" prop="rqAttack" />
<el-table-column label="恶意扫描" align="center" prop="smAttack" />
<el-table-column label="僵木蠕病毒" align="center" prop="bdAttack" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/networkSecurity:wljgtj:list']"
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/networkSecurity:wljgtj:list']"
>
查看
</el-button>
<el-button
type="success"
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/networkSecurity:wljgtj:edit']"
>修改</el-button>
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/networkSecurity:wljgtj:edit']"
>修改</el-button
>
<el-button
size="mini"
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/networkSecurity:wljgtj:remove']"
>删除</el-button>
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/networkSecurity:wljgtj:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改网络监测统计对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form ref="form" :model="form" :rules="rules" label-width="auto" class="dialog-from">
<el-form-item label="网络攻击(万次)" prop="netAttack">
<el-input v-model="form.netAttack" placeholder="请输入网络攻击(万次)" />
</el-form-item>
<el-form-item label="入侵攻击" prop="rqAttack">
<el-input v-model="form.rqAttack" placeholder="请输入入侵攻击" />
</el-form-item>
<el-form-item label="恶意扫描" prop="smAttack">
<el-input v-model="form.smAttack" placeholder="请输入恶意扫描" />
</el-form-item>
<el-form-item label="僵木蠕病毒" prop="bdAttack">
<el-input v-model="form.bdAttack" placeholder="请输入僵木蠕病毒" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-dialog
:visible.sync="open"
width="500px"
append-to-body
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="auto"
class="dialog-from"
>
<el-form-item label="网络攻击(万次)" prop="netAttack">
<el-input
v-model="form.netAttack"
placeholder="请输入网络攻击(万次)"
/>
</el-form-item>
<el-form-item label="入侵攻击" prop="rqAttack">
<el-input v-model="form.rqAttack" placeholder="请输入入侵攻击" />
</el-form-item>
<el-form-item label="恶意扫描" prop="smAttack">
<el-input v-model="form.smAttack" placeholder="请输入恶意扫描" />
</el-form-item>
<el-form-item label="僵木蠕病毒" prop="bdAttack">
<el-input v-model="form.bdAttack" placeholder="请输入僵木蠕病毒" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -125,249 +166,276 @@
</el-dialog>
<!--查看网络监测统计详情页-->
<el-dialog
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<el-descriptions title="网络监测统计" :column="2" border labelClassName="desLable">
<el-descriptions-item label="网络攻击(万次)">{{ form.netAttack }}</el-descriptions-item>
<el-descriptions-item label="入侵攻击">{{ form.rqAttack }}</el-descriptions-item>
<el-descriptions-item label="恶意扫描">{{ form.smAttack }}</el-descriptions-item>
<el-descriptions-item label="僵木蠕病毒">{{ form.bdAttack }}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item>
</el-descriptions>
<el-descriptions
title="网络监测统计"
:column="2"
border
labelClassName="desLable"
>
<el-descriptions-item label="网络攻击(万次)">{{
form.netAttack
}}</el-descriptions-item>
<el-descriptions-item label="入侵攻击">{{
form.rqAttack
}}</el-descriptions-item>
<el-descriptions-item label="恶意扫描">{{
form.smAttack
}}</el-descriptions-item>
<el-descriptions-item label="僵木蠕病毒">{{
form.bdAttack
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
</el-descriptions>
</el-dialog>
</div>
</template>
<script>
import { listWljgtj, getWljgtj, delWljgtj, addWljgtj, updateWljgtj, exportWljgtj } from "@/api/tcZz/networkSecurity/wljgtj";
export default {
name: "Wljgtj",
//
data() {
return {
tableHeigth: 0,
//
infoOpen:false,
//
infoTitle:'',
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
wljgtjList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
netAttack: null,
import {
listWljgtj,
getWljgtj,
delWljgtj,
addWljgtj,
updateWljgtj,
exportWljgtj,
} from "@/api/tcZz/networkSecurity/wljgtj";
export default {
name: "Wljgtj",
//
data() {
return {
tableHeigth: 0,
//
infoOpen: false,
//
infoTitle: "",
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
wljgtjList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
netAttack: null,
rqAttack: null,
smAttack: null,
bdAttack: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {},
isShowAdd: true,
};
},
created() {
this.getList();
},
methods: {
/** 查询网络监测统计列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && "" != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] =
this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && "" != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] =
this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listWljgtj(this.queryParams).then((response) => {
this.wljgtjList = response.rows;
if (response.rows.length > 0) this.isShowAdd = true;
else this.isShowAdd = false;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
rqAttack: null,
netAttack: null,
smAttack: null,
rqAttack: null,
bdAttack: null,
smAttack: null,
createBy: null,
bdAttack: null,
createTime: null,
createBy: null,
updateBy: null,
createTime: null,
updateTime: null,
updateBy: null,
remark: null,
updateTime: null,
},
//
form: {},
//
rules: {
}
remark: null,
};
this.resetForm("form");
},
created() {
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
methods: {
/** 查询网络监测统计列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listWljgtj(this.queryParams).then(response => {
this.wljgtjList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
netAttack: null,
rqAttack: null,
smAttack: null,
bdAttack: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/**查看按钮操作 */
handleInfo(row){
this.reset();
const id = row.id || this.ids
getWljgtj(id).then(response => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看网络监测统计详情"
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/**查看按钮操作 */
handleInfo(row) {
this.reset();
const id = row.id || this.ids;
getWljgtj(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看网络监测统计详情";
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加网络监测统计";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getWljgtj(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "添加网络监测统计";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getWljgtj(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改网络监测统计";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateWljgtj(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addWljgtj(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
this.title = "修改网络监测统计";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateWljgtj(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addWljgtj(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return delWljgtj(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有网络监测统计数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/networkSecurity/wljgtj/export', {
...this.queryParams
}, '网络监测统计_'+ new Date().getTime() +'.xlsx')
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm("是否确认导出所有网络监测统计数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.download(
"/tcZz/networkSecurity/wljgtj/export",
{
...this.queryParams,
},
"网络监测统计_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

Loading…
Cancel
Save