duhanyu
杜函宇 2 years ago
parent 8ff52a8261
commit 5e9ee59cd2

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

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

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

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

Loading…
Cancel
Save