去除多余的搜索条件

duhanyu
杜函宇 2 years ago
parent 605163af1c
commit 86d6b37ce1

@ -1,199 +1,185 @@
<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
<el-form-item label="${comment}" prop="id"> :model="queryParams"
<el-input ref="queryForm"
v-model="queryParams.id" :inline="true"
placeholder="请输入${comment}" v-show="showSearch"
clearable label-width="auto"
size="small" >
@keyup.enter.native="handleQuery" <el-form-item label="云端监测(G)" prop="lable1">
/> <el-input
</el-form-item> v-model="queryParams.lable1"
<el-form-item label="云端监测(G)" prop="lable1"> placeholder="请输入云端监测(G)"
<el-input clearable
v-model="queryParams.lable1" size="small"
placeholder="请输入云端监测(G)" @keyup.enter.native="handleQuery"
clearable />
size="small" </el-form-item>
@keyup.enter.native="handleQuery" <el-form-item label="云端监测(G)总量" prop="lable1Sum">
/> <el-input
</el-form-item> v-model="queryParams.lable1Sum"
<el-form-item label="云端监测(G)总量" prop="lable1Sum"> placeholder="请输入云端监测(G)总量"
<el-input clearable
v-model="queryParams.lable1Sum" size="small"
placeholder="请输入云端监测(G)总量" @keyup.enter.native="handleQuery"
clearable />
size="small" </el-form-item>
@keyup.enter.native="handleQuery" <el-form-item label="APT(M)" prop="lable2">
/> <el-input
</el-form-item> v-model="queryParams.lable2"
<el-form-item label="APT(M)" prop="lable2"> placeholder="请输入APT(M)"
<el-input clearable
v-model="queryParams.lable2" size="small"
placeholder="请输入APT(M)" @keyup.enter.native="handleQuery"
clearable />
size="small" </el-form-item>
@keyup.enter.native="handleQuery" <el-form-item label="APT(M) 总量" prop="lable2Sum">
/> <el-input
</el-form-item> v-model="queryParams.lable2Sum"
<el-form-item label="APT(M) 总量" prop="lable2Sum"> placeholder="请输入APT(M) 总量"
<el-input clearable
v-model="queryParams.lable2Sum" size="small"
placeholder="请输入APT(M) 总量" @keyup.enter.native="handleQuery"
clearable />
size="small" </el-form-item>
@keyup.enter.native="handleQuery"
/> <el-form-item>
</el-form-item> <el-button
<el-form-item label="创建者" prop="createBy"> type="primary"
<el-input icon="el-icon-search"
v-model="queryParams.createBy" size="mini"
placeholder="请输入创建者" @click="handleQuery"
clearable >搜索</el-button
size="small" >
@keyup.enter.native="handleQuery" <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
/> >重置</el-button
</el-form-item> >
<el-form-item label="创建时间"> </el-form-item>
<el-date-picker </el-form>
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
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>
<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:DataSourceTj:add']" v-hasPermi="['tcZz/networkSecurity:DataSourceTj:add']"
>新增</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:DataSourceTj:edit']" v-hasPermi="['tcZz/networkSecurity:DataSourceTj: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:DataSourceTj:remove']" @click="handleDelete"
>删除</el-button> v-hasPermi="['tcZz/networkSecurity:DataSourceTj: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:DataSourceTj:export']" v-hasPermi="['tcZz/networkSecurity:DataSourceTj:export']"
>导出</el-button >导出</el-button
> >
</div> </div>
<el-table v-loading="loading" :data="DataSourceTjList" @selection-change="handleSelectionChange"> <el-table
v-loading="loading"
:data="DataSourceTjList"
@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="${comment}" align="center" prop="id" /> <el-table-column label="云端监测(G)" align="center" prop="lable1" />
<el-table-column label="云端监测(G)" align="center" prop="lable1" /> <el-table-column
<el-table-column label="云端监测(G)总量" align="center" prop="lable1Sum" /> label="云端监测(G)总量"
<el-table-column label="APT(M)" align="center" prop="lable2" /> align="center"
<el-table-column label="APT(M) 总量" align="center" prop="lable2Sum" /> prop="lable1Sum"
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> />
<el-table-column label="APT(M)" align="center" prop="lable2" />
<el-table-column label="APT(M) 总量" align="center" prop="lable2Sum" />
<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:DataSourceTj:list']" v-hasPermi="['tcZz/networkSecurity:DataSourceTj: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:DataSourceTj:edit']" v-hasPermi="['tcZz/networkSecurity:DataSourceTj: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:DataSourceTj:remove']" v-hasPermi="['tcZz/networkSecurity:DataSourceTj: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="云端监测(G)" prop="lable1"> append-to-body
<el-input v-model="form.lable1" placeholder="请输入云端监测(G)" /> custom-class="dialog-box"
</el-form-item> >
<el-form-item label="云端监测(G)总量" prop="lable1Sum"> <div slot="title" class="dialog-title">{{ title }}</div>
<el-input v-model="form.lable1Sum" placeholder="请输入云端监测(G)总量" /> <el-form
</el-form-item> ref="form"
<el-form-item label="APT(M)" prop="lable2"> :model="form"
<el-input v-model="form.lable2" placeholder="请输入APT(M)" /> :rules="rules"
</el-form-item> label-width="auto"
<el-form-item label="APT(M) 总量" prop="lable2Sum"> class="dialog-from"
<el-input v-model="form.lable2Sum" placeholder="请输入APT(M) 总量" /> >
</el-form-item> <el-form-item label="云端监测(G)" prop="lable1">
<el-form-item label="备注" prop="remark"> <el-input v-model="form.lable1" placeholder="请输入云端监测(G)" />
<el-input v-model="form.remark" placeholder="请输入备注" /> </el-form-item>
</el-form-item> <el-form-item label="云端监测(G)总量" prop="lable1Sum">
<el-input
v-model="form.lable1Sum"
placeholder="请输入云端监测(G)总量"
/>
</el-form-item>
<el-form-item label="APT(M)" prop="lable2">
<el-input v-model="form.lable2" placeholder="请输入APT(M)" />
</el-form-item>
<el-form-item label="APT(M) 总量" prop="lable2Sum">
<el-input v-model="form.lable2Sum" placeholder="请输入APT(M) 总量" />
</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>
@ -202,249 +188,273 @@
</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="云端监测(G)">{{ form.lable1 }}</el-descriptions-item> border
labelClassName="desLable"
<el-descriptions-item label="云端监测(G)总量">{{ form.lable1Sum }}</el-descriptions-item> >
<el-descriptions-item label="云端监测(G)">{{
<el-descriptions-item label="APT(M)">{{ form.lable2 }}</el-descriptions-item> form.lable1
}}</el-descriptions-item>
<el-descriptions-item label="APT(M) 总量">{{ form.lable2Sum }}</el-descriptions-item>
<el-descriptions-item label="云端监测(G)总量">{{
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item> form.lable1Sum
}}</el-descriptions-item>
</el-descriptions>
<el-descriptions-item label="APT(M)">{{
form.lable2
}}</el-descriptions-item>
<el-descriptions-item label="APT(M) 总量">{{
form.lable2Sum
}}</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 { listDataSourceTj, getDataSourceTj, delDataSourceTj, addDataSourceTj, updateDataSourceTj, exportDataSourceTj } from "@/api/tcZz/networkSecurity/DataSourceTj"; import {
export default { listDataSourceTj,
name: "DataSourceTj", getDataSourceTj,
// delDataSourceTj,
data() { addDataSourceTj,
return { updateDataSourceTj,
tableHeigth: 0, exportDataSourceTj,
// } from "@/api/tcZz/networkSecurity/DataSourceTj";
infoOpen:false, export default {
// name: "DataSourceTj",
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,
DataSourceTjList: [], //
// multiple: true,
title: "", //
// showSearch: true,
open: false, //
// total: 0,
daterangeCreateTime: [], //
// DataSourceTjList: [],
daterangeUpdateTime: [], //
// title: "",
queryParams: { //
pageNum: 1, open: false,
pageSize: 10, //
id: null, daterangeCreateTime: [],
//
lable1: null, daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
lable1: null,
lable1Sum: null,
lable2: null,
lable2Sum: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {},
};
},
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];
}
listDataSourceTj(this.queryParams).then((response) => {
this.DataSourceTjList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
lable1Sum: null, lable1: null,
lable2: null, lable1Sum: null,
lable2Sum: null, lable2: null,
createBy: null, lable2Sum: 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;
} },
listDataSourceTj(this.queryParams).then(response => { /**查看按钮操作 */
this.DataSourceTjList = response.rows; handleInfo(row) {
this.total = response.total; this.reset();
this.loading = false; const id = row.id || this.ids;
}); getDataSourceTj(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 = "添加数据来源统计";
},
lable1: null, /** 修改按钮操作 */
handleUpdate(row) {
lable1Sum: null, this.reset();
const id = row.id || this.ids;
lable2: null, getDataSourceTj(id).then((response) => {
this.form = response.data;
lable2Sum: 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
getDataSourceTj(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) => {
getDataSourceTj(id).then(response => { if (valid) {
this.form = response.data; if (this.form.id != null) {
this.open = true; updateDataSourceTj(this.form).then((response) => {
this.title = "修改数据来源统计"; this.$modal.msgSuccess("修改成功");
}); this.open = false;
}, this.getList();
/** 提交按钮 */ });
submitForm() { } else {
this.$refs["form"].validate(valid => { addDataSourceTj(this.form).then((response) => {
if (valid) { this.$modal.msgSuccess("新增成功");
if (this.form.id != null) { this.open = false;
updateDataSourceTj(this.form).then(response => { this.getList();
this.$modal.msgSuccess("修改成功"); });
this.open = false;
this.getList();
});
} else {
addDataSourceTj(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 delDataSourceTj(ids); return delDataSourceTj(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/DataSourceTj/export', { })
...this.queryParams .then(() => {
}, '数据来源统计_'+ new Date().getTime() +'.xlsx') this.download(
"/tcZz/networkSecurity/DataSourceTj/export",
{
...this.queryParams,
},
"数据来源统计_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
} .catch(() => {});
} },
} },
};
</script> </script>

@ -1,173 +1,153 @@
<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
<el-form-item label="${comment}" prop="id"> :model="queryParams"
<el-input ref="queryForm"
v-model="queryParams.id" :inline="true"
placeholder="请输入${comment}" v-show="showSearch"
clearable label-width="auto"
size="small" >
@keyup.enter.native="handleQuery"
/> <el-form-item label="隐患名称" prop="yhName">
</el-form-item> <el-input
<el-form-item label="隐患名称" prop="yhName"> v-model="queryParams.yhName"
<el-input placeholder="请输入隐患名称"
v-model="queryParams.yhName" clearable
placeholder="请输入隐患名称" size="small"
clearable @keyup.enter.native="handleQuery"
size="small" />
@keyup.enter.native="handleQuery" </el-form-item>
/> <el-form-item label="隐患数量" prop="yhCount">
</el-form-item> <el-input
<el-form-item label="隐患数量" prop="yhCount"> v-model="queryParams.yhCount"
<el-input placeholder="请输入隐患数量"
v-model="queryParams.yhCount" clearable
placeholder="请输入隐患数量" size="small"
clearable @keyup.enter.native="handleQuery"
size="small" />
@keyup.enter.native="handleQuery" </el-form-item>
/>
</el-form-item> <el-form-item>
<el-form-item label="创建者" prop="createBy"> <el-button
<el-input type="primary"
v-model="queryParams.createBy" icon="el-icon-search"
placeholder="请输入创建者" size="mini"
clearable @click="handleQuery"
size="small" >搜索</el-button
@keyup.enter.native="handleQuery" >
/> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
</el-form-item> >重置</el-button
<el-form-item label="创建时间"> >
<el-date-picker </el-form-item>
v-model="daterangeCreateTime" </el-form>
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
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>
<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:aqyh:add']" v-hasPermi="['tcZz/networkSecurity:aqyh:add']"
>新增</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:aqyh:edit']" v-hasPermi="['tcZz/networkSecurity:aqyh: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:aqyh:remove']" @click="handleDelete"
>删除</el-button> v-hasPermi="['tcZz/networkSecurity:aqyh: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:aqyh:export']" v-hasPermi="['tcZz/networkSecurity:aqyh:export']"
>导出</el-button >导出</el-button
> >
</div> </div>
<el-table v-loading="loading" :data="aqyhList" @selection-change="handleSelectionChange"> <el-table
v-loading="loading"
:data="aqyhList"
@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="${comment}" align="center" prop="id" /> <el-table-column label="隐患名称" align="center" prop="yhName" />
<el-table-column label="隐患名称" align="center" prop="yhName" /> <el-table-column label="隐患数量" align="center" prop="yhCount" />
<el-table-column label="隐患数量" align="center" prop="yhCount" /> <el-table-column
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> 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:aqyh:list']" v-hasPermi="['tcZz/networkSecurity:aqyh: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:aqyh:edit']" v-hasPermi="['tcZz/networkSecurity:aqyh: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:aqyh:remove']" v-hasPermi="['tcZz/networkSecurity:aqyh: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"
/> />
<!-- 添加或修改安全隐患 tc_aqyh对话框 --> <!-- 添加或修改安全隐患 tc_aqyh对话框 -->
<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="yhName"> append-to-body
<el-input v-model="form.yhName" placeholder="请输入隐患名称" /> custom-class="dialog-box"
</el-form-item> >
<el-form-item label="隐患数量" prop="yhCount"> <div slot="title" class="dialog-title">{{ title }}</div>
<el-input v-model="form.yhCount" placeholder="请输入隐患数量" /> <el-form
</el-form-item> ref="form"
<el-form-item label="备注" prop="remark"> :model="form"
<el-input v-model="form.remark" placeholder="请输入备注" /> :rules="rules"
</el-form-item> label-width="auto"
class="dialog-from"
>
<el-form-item label="隐患名称" prop="yhName">
<el-input v-model="form.yhName" placeholder="请输入隐患名称" />
</el-form-item>
<el-form-item label="隐患数量" prop="yhCount">
<el-input v-model="form.yhCount" 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>
@ -176,237 +156,257 @@
</el-dialog> </el-dialog>
<!--查看安全隐患 tc_aqyh详情页--> <!--查看安全隐患 tc_aqyh详情页-->
<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="安全隐患 tc_aqyh"
<el-descriptions title="安全隐患 tc_aqyh" :column="2" border labelClassName="desLable"> :column="2"
<el-descriptions-item label="隐患名称">{{ form.yhName }}</el-descriptions-item> border
labelClassName="desLable"
<el-descriptions-item label="隐患数量">{{ form.yhCount }}</el-descriptions-item> >
<el-descriptions-item label="隐患名称">{{
form.yhName
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item> <el-descriptions-item label="隐患数量">{{
form.yhCount
}}</el-descriptions-item>
</el-descriptions> <el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
</el-descriptions>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { listAqyh, getAqyh, delAqyh, addAqyh, updateAqyh, exportAqyh } from "@/api/tcZz/networkSecurity/aqyh"; import {
export default { listAqyh,
name: "Aqyh", getAqyh,
// delAqyh,
data() { addAqyh,
return { updateAqyh,
tableHeigth: 0, exportAqyh,
// } from "@/api/tcZz/networkSecurity/aqyh";
infoOpen:false, export default {
// name: "Aqyh",
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, //
// tc_aqyh single: true,
aqyhList: [], //
// multiple: true,
title: "", //
// showSearch: true,
open: false, //
// total: 0,
daterangeCreateTime: [], // tc_aqyh
// aqyhList: [],
daterangeUpdateTime: [], //
// title: "",
queryParams: { //
pageNum: 1, open: false,
pageSize: 10, //
id: null, daterangeCreateTime: [],
//
yhName: null, daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
yhCount: null, yhName: null,
createBy: null, yhCount: null,
createTime: null, createBy: null,
updateBy: null, createTime: null,
updateTime: null, updateBy: null,
remark: null, updateTime: null,
}, remark: null,
// },
form: {}, //
// form: {},
rules: { //
} rules: {},
}; };
},
created() {
this.getList();
},
methods: {
/** 查询安全隐患 tc_aqyh列表 */
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];
}
listAqyh(this.queryParams).then((response) => {
this.aqyhList = response.rows;
this.total = response.total;
this.loading = false;
});
}, },
created() { //
cancel() {
this.getList(); this.open = false;
this.reset();
}, },
methods: { //
/** 查询安全隐患 tc_aqyh列表 */ reset() {
getList() { this.form = {
this.loading = true; id: null,
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];
}
listAqyh(this.queryParams).then(response => {
this.aqyhList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
yhName: null,
yhCount: null, yhName: null,
createBy: null, yhCount: null,
createTime: null, createBy: null,
updateBy: null, createTime: null,
updateTime: null, updateBy: null,
remark: null, updateTime: null,
}; remark: null,
this.resetForm("form"); };
}, this.resetForm("form");
/** 搜索按钮操作 */ },
handleQuery() { /** 搜索按钮操作 */
this.queryParams.pageNum = 1; handleQuery() {
this.getList(); this.queryParams.pageNum = 1;
}, this.getList();
/** 重置按钮操作 */ },
resetQuery() { /** 重置按钮操作 */
this.daterangeCreateTime = []; resetQuery() {
this.daterangeUpdateTime = []; this.daterangeCreateTime = [];
this.resetForm("queryForm"); this.daterangeUpdateTime = [];
this.handleQuery(); this.resetForm("queryForm");
}, this.handleQuery();
// },
handleSelectionChange(selection) { //
this.ids = selection.map(item => item.id) handleSelectionChange(selection) {
this.single = selection.length!==1 this.ids = selection.map((item) => item.id);
this.multiple = !selection.length this.single = selection.length !== 1;
}, this.multiple = !selection.length;
/**查看按钮操作 */ },
handleInfo(row){ /**查看按钮操作 */
this.reset(); handleInfo(row) {
const id = row.id || this.ids this.reset();
getAqyh(id).then(response => { const id = row.id || this.ids;
this.form = response.data; getAqyh(id).then((response) => {
this.infoOpen = true; this.form = response.data;
this.infoTitle = "查看安全隐患 tc_aqyh详情" this.infoOpen = true;
}); this.infoTitle = "查看安全隐患 tc_aqyh详情";
}, });
/** 新增按钮操作 */ },
handleAdd() { /** 新增按钮操作 */
this.reset(); handleAdd() {
this.reset();
this.open = true;
this.title = "添加安全隐患 tc_aqyh";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getAqyh(id).then((response) => {
this.form = response.data;
this.open = true; this.open = true;
this.title = "添加安全隐患 tc_aqyh"; this.title = "修改安全隐患 tc_aqyh";
}, });
/** 修改按钮操作 */ },
handleUpdate(row) { /** 提交按钮 */
this.reset(); submitForm() {
const id = row.id || this.ids this.$refs["form"].validate((valid) => {
getAqyh(id).then(response => { if (valid) {
this.form = response.data; if (this.form.id != null) {
this.open = true; updateAqyh(this.form).then((response) => {
this.title = "修改安全隐患 tc_aqyh"; this.$modal.msgSuccess("修改成功");
}); this.open = false;
}, this.getList();
/** 提交按钮 */ });
submitForm() { } else {
this.$refs["form"].validate(valid => { addAqyh(this.form).then((response) => {
if (valid) { this.$modal.msgSuccess("新增成功");
if (this.form.id != null) { this.open = false;
updateAqyh(this.form).then(response => { this.getList();
this.$modal.msgSuccess("修改成功"); });
this.open = false;
this.getList();
});
} else {
addAqyh(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 delAqyh(ids); return delAqyh(ids);
}).then(() => { })
.then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}).catch(() => {}); })
}, .catch(() => {});
/** 导出按钮操作 */ },
handleExport() { /** 导出按钮操作 */
const queryParams = this.queryParams; handleExport() {
this.$confirm('是否确认导出所有安全隐患 tc_aqyh数据项?', "警告", { const queryParams = this.queryParams;
confirmButtonText: "确定", this.$confirm("是否确认导出所有安全隐患 tc_aqyh数据项?", "警告", {
cancelButtonText: "取消", confirmButtonText: "确定",
type: "warning" cancelButtonText: "取消",
}).then(() => { type: "warning",
this.download('/tcZz/networkSecurity/aqyh/export', { })
...this.queryParams .then(() => {
}, '安全隐患 tc_aqyh_'+ new Date().getTime() +'.xlsx') this.download(
"/tcZz/networkSecurity/aqyh/export",
{
...this.queryParams,
},
"安全隐患 tc_aqyh_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
} .catch(() => {});
} },
} },
};
</script> </script>

@ -1,211 +1,184 @@
<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
<el-form-item label="${comment}" prop="id"> :model="queryParams"
<el-input ref="queryForm"
v-model="queryParams.id" :inline="true"
placeholder="请输入${comment}" v-show="showSearch"
clearable label-width="auto"
size="small" >
@keyup.enter.native="handleQuery" <el-form-item label="启用/禁用" prop="isStatus">
/> <el-select
</el-form-item> v-model="queryParams.isStatus"
<el-form-item label="启用/禁用" prop="isStatus"> placeholder="请选择启用/禁用"
<el-select v-model="queryParams.isStatus" placeholder="请选择启用/禁用" clearable size="small"> clearable
<el-option size="small"
v-for="dict in dict.type.tc_start" >
:key="dict.value" <el-option
:label="dict.label" v-for="dict in dict.type.tc_start"
:value="dict.value" :key="dict.value"
/> :label="dict.label"
</el-select> :value="dict.value"
</el-form-item> />
<el-form-item label="部门名称" prop="depName"> </el-select>
<el-input </el-form-item>
v-model="queryParams.depName" <el-form-item label="部门名称" prop="depName">
placeholder="请输入部门名称" <el-input
clearable v-model="queryParams.depName"
size="small" placeholder="请输入部门名称"
@keyup.enter.native="handleQuery" clearable
/> size="small"
</el-form-item> @keyup.enter.native="handleQuery"
<el-form-item label="文件名称" prop="fileName"> />
<el-input </el-form-item>
v-model="queryParams.fileName"
placeholder="请输入文件名称" <el-form-item>
clearable <el-button
size="small" type="primary"
@keyup.enter.native="handleQuery" icon="el-icon-search"
/> size="mini"
</el-form-item> @click="handleQuery"
<el-form-item label="文件路径(完整路径)" prop="fileUrl"> >搜索</el-button
<el-input >
v-model="queryParams.fileUrl" <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
placeholder="请输入文件路径(完整路径)" >重置</el-button
clearable >
size="small" </el-form-item>
@keyup.enter.native="handleQuery" </el-form>
/>
</el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
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>
<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:bmtb:add']" v-hasPermi="['tcZz/networkSecurity:bmtb:add']"
>新增</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:bmtb:edit']" v-hasPermi="['tcZz/networkSecurity:bmtb: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:bmtb:remove']" @click="handleDelete"
>删除</el-button> v-hasPermi="['tcZz/networkSecurity:bmtb: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:bmtb:export']" v-hasPermi="['tcZz/networkSecurity:bmtb:export']"
>导出</el-button >导出</el-button
> >
</div> </div>
<el-table v-loading="loading" :data="bmtbList" @selection-change="handleSelectionChange"> <el-table
v-loading="loading"
:data="bmtbList"
@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="${comment}" align="center" prop="id" /> <el-table-column label="启用/禁用" align="center" prop="isStatus">
<el-table-column label="启用/禁用" align="center" prop="isStatus"> <template slot-scope="scope">
<template slot-scope="scope"> <dict-tag :options="dict.type.tc_start" :value="scope.row.isStatus" />
<dict-tag :options="dict.type.tc_start" :value="scope.row.isStatus"/> </template>
</template> </el-table-column>
</el-table-column> <el-table-column label="部门名称" align="center" prop="depName" />
<el-table-column label="部门名称" align="center" prop="depName" /> <el-table-column label="文件名称" align="center" prop="fileName" />
<el-table-column label="文件名称" align="center" prop="fileName" /> <el-table-column
<el-table-column label="文件路径(完整路径)" align="center" prop="fileUrl" /> label="文件路径(完整路径)"
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> align="center"
prop="fileUrl"
/>
<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:bmtb:list']" v-hasPermi="['tcZz/networkSecurity:bmtb: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:bmtb:edit']" v-hasPermi="['tcZz/networkSecurity:bmtb: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:bmtb:remove']" v-hasPermi="['tcZz/networkSecurity:bmtb: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="isStatus"> append-to-body
<el-select v-model="form.isStatus" placeholder="请选择启用/禁用"> custom-class="dialog-box"
<el-option >
v-for="dict in dict.type.tc_start" <div slot="title" class="dialog-title">{{ title }}</div>
:key="dict.value" <el-form
:label="dict.label" ref="form"
:value="parseInt(dict.value)" :model="form"
></el-option> :rules="rules"
</el-select> label-width="auto"
</el-form-item> class="dialog-from"
<el-form-item label="部门名称" prop="depName"> >
<el-input v-model="form.depName" placeholder="请输入部门名称" /> <el-form-item label="启用/禁用" prop="isStatus">
</el-form-item> <el-select v-model="form.isStatus" placeholder="请选择启用/禁用">
<el-form-item label="文件名称" prop="fileName"> <el-option
<el-input v-model="form.fileName" placeholder="请输入文件名称" /> v-for="dict in dict.type.tc_start"
</el-form-item> :key="dict.value"
<el-form-item label="文件路径(完整路径)" prop="fileUrl"> :label="dict.label"
<el-input v-model="form.fileUrl" placeholder="请输入文件路径(完整路径)" /> :value="parseInt(dict.value)"
</el-form-item> ></el-option>
<el-form-item label="备注" prop="remark"> </el-select>
<el-input v-model="form.remark" placeholder="请输入备注" /> </el-form-item>
</el-form-item> <el-form-item label="部门名称" prop="depName">
<el-input v-model="form.depName" placeholder="请输入部门名称" />
</el-form-item>
<el-form-item label="文件名称" prop="fileName">
<el-input v-model="form.fileName" placeholder="请输入文件名称" />
</el-form-item>
<el-form-item label="文件路径(完整路径)" prop="fileUrl">
<el-input
v-model="form.fileUrl"
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>
@ -214,250 +187,274 @@
</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.isStatus }}</el-descriptions-item> border
labelClassName="desLable"
<el-descriptions-item label="部门名称">{{ form.depName }}</el-descriptions-item> >
<el-descriptions-item label="启用/禁用">{{
<el-descriptions-item label="文件名称">{{ form.fileName }}</el-descriptions-item> form.isStatus
}}</el-descriptions-item>
<el-descriptions-item label="文件路径(完整路径)">{{ form.fileUrl }}</el-descriptions-item>
<el-descriptions-item label="部门名称">{{
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item> form.depName
}}</el-descriptions-item>
</el-descriptions>
<el-descriptions-item label="文件名称">{{
form.fileName
}}</el-descriptions-item>
<el-descriptions-item label="文件路径(完整路径)">{{
form.fileUrl
}}</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 { listBmtb, getBmtb, delBmtb, addBmtb, updateBmtb, exportBmtb } from "@/api/tcZz/networkSecurity/bmtb"; import {
export default { listBmtb,
name: "Bmtb", getBmtb,
// delBmtb,
dicts: ['tc_start'], addBmtb,
data() { updateBmtb,
return { exportBmtb,
tableHeigth: 0, } from "@/api/tcZz/networkSecurity/bmtb";
// export default {
infoOpen:false, name: "Bmtb",
// //
infoTitle:'', dicts: ["tc_start"],
// 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,
bmtbList: [], //
// multiple: true,
title: "", //
// showSearch: true,
open: false, //
// total: 0,
daterangeCreateTime: [], //
// bmtbList: [],
daterangeUpdateTime: [], //
// title: "",
queryParams: { //
pageNum: 1, open: false,
pageSize: 10, //
id: null, daterangeCreateTime: [],
//
isStatus: null, daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
isStatus: null,
depName: null,
fileName: null,
fileUrl: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {},
};
},
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];
}
listBmtb(this.queryParams).then((response) => {
this.bmtbList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
depName: null, isStatus: null,
fileName: null, depName: null,
fileUrl: null, fileName: null,
createBy: null, fileUrl: 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;
} },
listBmtb(this.queryParams).then(response => { /**查看按钮操作 */
this.bmtbList = response.rows; handleInfo(row) {
this.total = response.total; this.reset();
this.loading = false; const id = row.id || this.ids;
}); getBmtb(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 = "添加部门通报";
},
isStatus: null, /** 修改按钮操作 */
handleUpdate(row) {
depName: null, this.reset();
const id = row.id || this.ids;
fileName: null, getBmtb(id).then((response) => {
this.form = response.data;
fileUrl: 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
getBmtb(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) => {
getBmtb(id).then(response => { if (valid) {
this.form = response.data; if (this.form.id != null) {
this.open = true; updateBmtb(this.form).then((response) => {
this.title = "修改部门通报"; this.$modal.msgSuccess("修改成功");
}); this.open = false;
}, this.getList();
/** 提交按钮 */ });
submitForm() { } else {
this.$refs["form"].validate(valid => { addBmtb(this.form).then((response) => {
if (valid) { this.$modal.msgSuccess("新增成功");
if (this.form.id != null) { this.open = false;
updateBmtb(this.form).then(response => { this.getList();
this.$modal.msgSuccess("修改成功"); });
this.open = false;
this.getList();
});
} else {
addBmtb(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 delBmtb(ids); return delBmtb(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/bmtb/export', { })
...this.queryParams .then(() => {
}, '部门通报_'+ new Date().getTime() +'.xlsx') this.download(
"/tcZz/networkSecurity/bmtb/export",
{
...this.queryParams,
},
"部门通报_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
} .catch(() => {});
} },
} },
};
</script> </script>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -2,15 +2,7 @@
<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" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="名称" prop="cityName"> <el-form-item label="名称" prop="cityName">
<el-input <el-input
v-model="queryParams.cityName" v-model="queryParams.cityName"
@ -29,57 +21,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
placeholder="请输入备注"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <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-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -119,10 +61,8 @@
</div> </div>
<el-table v-loading="loading" :data="fbqkList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="fbqkList" @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="${comment}" align="center" prop="id" />
<el-table-column label="名称" align="center" prop="cityName" /> <el-table-column label="名称" align="center" prop="cityName" />
<el-table-column label="占比" align="center" prop="zb" /> <el-table-column label="占比" align="center" prop="zb" />
<el-table-column label="备注" align="center" prop="remark" />
<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

@ -2,15 +2,7 @@
<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" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="区域" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small"> <el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small">
<el-option <el-option
@ -49,57 +41,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
placeholder="请输入备注"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <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-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -139,7 +81,6 @@
</div> </div>
<el-table v-loading="loading" :data="idcdwList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="idcdwList" @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="${comment}" align="center" prop="id" />
<el-table-column label="区域" align="center" prop="areaId"> <el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/> <dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/>

@ -2,15 +2,7 @@
<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" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="区域" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small"> <el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small">
<el-option <el-option
@ -49,103 +41,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="网站地址" prop="systemUrl">
<el-input
v-model="queryParams.systemUrl"
placeholder="请输入网站地址"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="IP地址" prop="sysyemIp">
<el-input
v-model="queryParams.sysyemIp"
placeholder="请输入IP地址"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否关注重点" prop="isFocus">
<el-input
v-model="queryParams.isFocus"
placeholder="请输入是否关注重点"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="等保级别" prop="level">
<el-input
v-model="queryParams.level"
placeholder="请输入等保级别"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="记录类型" prop="type">
<el-select v-model="queryParams.type" placeholder="请选择记录类型" clearable size="small">
<el-option
v-for="dict in dict.type.tc_jslx"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
placeholder="请输入备注"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <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-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -185,7 +81,6 @@
</div> </div>
<el-table v-loading="loading" :data="jgdwList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="jgdwList" @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="${comment}" align="center" prop="id" />
<el-table-column label="区域" align="center" prop="areaId"> <el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/> <dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/>

@ -1,208 +1,192 @@
<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
<el-form-item label="${comment}" prop="id"> :model="queryParams"
<el-input ref="queryForm"
v-model="queryParams.id" :inline="true"
placeholder="请输入${comment}" v-show="showSearch"
clearable label-width="auto"
size="small" >
@keyup.enter.native="handleQuery" <el-form-item label="名称" prop="name">
/> <el-input
</el-form-item> v-model="queryParams.name"
<el-form-item label="名称" prop="name"> placeholder="请输入名称"
<el-input clearable
v-model="queryParams.name" size="small"
placeholder="请输入名称" @keyup.enter.native="handleQuery"
clearable />
size="small" </el-form-item>
@keyup.enter.native="handleQuery" <el-form-item label="数量" prop="count">
/> <el-input
</el-form-item> v-model="queryParams.count"
<el-form-item label="数量" prop="count"> placeholder="请输入数量"
<el-input clearable
v-model="queryParams.count" size="small"
placeholder="请输入数量" @keyup.enter.native="handleQuery"
clearable />
size="small" </el-form-item>
@keyup.enter.native="handleQuery" <el-form-item label="类型" prop="type">
/> <el-select
</el-form-item> v-model="queryParams.type"
<el-form-item label="1. placeholder="请选择类型"
2.国内 clearable
" prop="type"> size="small"
<el-select v-model="queryParams.type" placeholder="1. >
2.国内 <el-option
" clearable size="small"> v-for="dict in dict.type.tc_dttjlx"
<el-option :key="dict.value"
v-for="dict in dict.type.tc_dttjlx" :label="dict.label"
:key="dict.value" :value="dict.value"
:label="dict.label" />
:value="dict.value" </el-select>
/> </el-form-item>
</el-select>
</el-form-item> <el-form-item>
<el-form-item label="创建者" prop="createBy"> <el-button
<el-input type="primary"
v-model="queryParams.createBy" icon="el-icon-search"
placeholder="请输入创建者" size="mini"
clearable @click="handleQuery"
size="small" >搜索</el-button
@keyup.enter.native="handleQuery" >
/> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
</el-form-item> >重置</el-button
<el-form-item label="创建时间"> >
<el-date-picker </el-form-item>
v-model="daterangeCreateTime" </el-form>
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
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>
<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:map:add']" v-hasPermi="['tcZz/networkSecurity:map:add']"
>新增</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:map:edit']" v-hasPermi="['tcZz/networkSecurity:map: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:map:remove']" @click="handleDelete"
>删除</el-button> v-hasPermi="['tcZz/networkSecurity:map: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:map:export']" v-hasPermi="['tcZz/networkSecurity:map:export']"
>导出</el-button >导出</el-button
> >
</div> </div>
<el-table v-loading="loading" :data="mapList" @selection-change="handleSelectionChange"> <el-table
v-loading="loading"
:data="mapList"
@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="${comment}" align="center" prop="id" /> <el-table-column label="名称" align="center" prop="name" />
<el-table-column label="名称" align="center" prop="name" /> <el-table-column label="数量" align="center" prop="count" />
<el-table-column label="数量" align="center" prop="count" /> <el-table-column label="类型" align="center" prop="type">
<el-table-column label="1. <template slot-scope="scope">
2.国内 <dict-tag :options="dict.type.tc_dttjlx" :value="scope.row.type" />
" align="center" prop="type"> </template>
<template slot-scope="scope"> </el-table-column>
<dict-tag :options="dict.type.tc_dttjlx" :value="scope.row.type"/> <el-table-column
</template> label="操作"
</el-table-column> align="center"
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> 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:map:list']" v-hasPermi="['tcZz/networkSecurity:map: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:map:edit']" v-hasPermi="['tcZz/networkSecurity:map: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:map:remove']" v-hasPermi="['tcZz/networkSecurity:map: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="name"> append-to-body
<el-input v-model="form.name" placeholder="请输入名称" /> custom-class="dialog-box"
</el-form-item> >
<el-form-item label="数量" prop="count"> <div slot="title" class="dialog-title">{{ title }}</div>
<el-input v-model="form.count" placeholder="请输入数量" /> <el-form
</el-form-item> ref="form"
<el-form-item label="1. :model="form"
:rules="rules"
label-width="auto"
class="dialog-from"
>
<el-form-item label="名称" prop="name">
<el-input v-model="form.name" placeholder="请输入名称" />
</el-form-item>
<el-form-item label="数量" prop="count">
<el-input v-model="form.count" placeholder="请输入数量" />
</el-form-item>
<el-form-item
label="1.国际
2.国内 2.国内
" prop="type"> "
<el-select v-model="form.type" placeholder="1. prop="type"
>
<el-select
v-model="form.type"
placeholder="请选择1.国际
2.国内 2.国内
"> "
<el-option >
v-for="dict in dict.type.tc_dttjlx" <el-option
:key="dict.value" v-for="dict in dict.type.tc_dttjlx"
:label="dict.label" :key="dict.value"
:value="parseInt(dict.value)" :label="dict.label"
></el-option> :value="parseInt(dict.value)"
</el-select> ></el-option>
</el-form-item> </el-select>
<el-form-item label="备注" prop="remark"> </el-form-item>
<el-input v-model="form.remark" placeholder="请输入备注" /> <el-form-item label="备注" prop="remark">
</el-form-item> <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>
@ -211,246 +195,269 @@
</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.name }}</el-descriptions-item> border
labelClassName="desLable"
>
<el-descriptions-item label="名称">{{
form.name
}}</el-descriptions-item>
<el-descriptions-item label="数量">{{ form.count }}</el-descriptions-item> <el-descriptions-item label="数量">{{
form.count
}}</el-descriptions-item>
<el-descriptions-item label="1. <el-descriptions-item
label="1.国际
2.国内 2.国内
">{{ form.type }}</el-descriptions-item> "
>{{ form.type }}</el-descriptions-item
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item> >
</el-descriptions> <el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
</el-descriptions>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { listMap, getMap, delMap, addMap, updateMap, exportMap } from "@/api/tcZz/networkSecurity/map"; import {
export default { listMap,
name: "Map", getMap,
// delMap,
dicts: ['tc_dttjlx'], addMap,
data() { updateMap,
return { exportMap,
tableHeigth: 0, } from "@/api/tcZz/networkSecurity/map";
// export default {
infoOpen:false, name: "Map",
// //
infoTitle:'', dicts: ["tc_dttjlx"],
// 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,
mapList: [], //
// multiple: true,
title: "", //
// showSearch: true,
open: false, //
// total: 0,
daterangeCreateTime: [], //
// mapList: [],
daterangeUpdateTime: [], //
// title: "",
queryParams: { //
pageNum: 1, open: false,
pageSize: 10, //
id: null, daterangeCreateTime: [],
//
name: null, daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
count: null, name: null,
type: null, count: null,
createBy: null, type: null,
createTime: null, createBy: null,
updateBy: null, createTime: null,
updateTime: null, updateBy: null,
remark: null, updateTime: null,
}, remark: null,
// },
form: {}, //
// form: {},
rules: { //
} rules: {},
}; };
},
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];
}
listMap(this.queryParams).then((response) => {
this.mapList = response.rows;
this.total = response.total;
this.loading = false;
});
}, },
created() { //
cancel() {
this.getList(); this.open = false;
this.reset();
}, },
methods: { //
/** 查询地图统计列表 */ reset() {
getList() { this.form = {
this.loading = true; id: null,
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];
}
listMap(this.queryParams).then(response => {
this.mapList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
name: null, name: null,
count: null, count: null,
type: null, type: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,
updateTime: null, updateTime: null,
remark: null, remark: null,
};
}; this.resetForm("form");
this.resetForm("form"); },
}, /** 搜索按钮操作 */
/** 搜索按钮操作 */ handleQuery() {
handleQuery() { this.queryParams.pageNum = 1;
this.queryParams.pageNum = 1; this.getList();
this.getList(); },
}, /** 重置按钮操作 */
/** 重置按钮操作 */ resetQuery() {
resetQuery() { this.daterangeCreateTime = [];
this.daterangeCreateTime = []; this.daterangeUpdateTime = [];
this.daterangeUpdateTime = []; this.resetForm("queryForm");
this.resetForm("queryForm"); this.handleQuery();
this.handleQuery(); },
}, //
// handleSelectionChange(selection) {
handleSelectionChange(selection) { this.ids = selection.map((item) => item.id);
this.ids = selection.map(item => item.id) this.single = selection.length !== 1;
this.single = selection.length!==1 this.multiple = !selection.length;
this.multiple = !selection.length },
}, /**查看按钮操作 */
/**查看按钮操作 */ handleInfo(row) {
handleInfo(row){ this.reset();
this.reset(); const id = row.id || this.ids;
const id = row.id || this.ids getMap(id).then((response) => {
getMap(id).then(response => { this.form = response.data;
this.form = response.data; this.infoOpen = true;
this.infoOpen = true; this.infoTitle = "查看地图统计详情";
this.infoTitle = "查看地图统计详情" });
}); },
}, /** 新增按钮操作 */
/** 新增按钮操作 */ handleAdd() {
handleAdd() { this.reset();
this.reset(); this.open = true;
this.title = "添加地图统计";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getMap(id).then((response) => {
this.form = response.data;
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) => {
getMap(id).then(response => { if (valid) {
this.form = response.data; if (this.form.id != null) {
this.open = true; updateMap(this.form).then((response) => {
this.title = "修改地图统计"; this.$modal.msgSuccess("修改成功");
}); this.open = false;
}, this.getList();
/** 提交按钮 */ });
submitForm() { } else {
this.$refs["form"].validate(valid => { addMap(this.form).then((response) => {
if (valid) { this.$modal.msgSuccess("新增成功");
if (this.form.id != null) { this.open = false;
updateMap(this.form).then(response => { this.getList();
this.$modal.msgSuccess("修改成功"); });
this.open = false;
this.getList();
});
} else {
addMap(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 delMap(ids); return delMap(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/map/export', { })
...this.queryParams .then(() => {
}, '地图统计_'+ new Date().getTime() +'.xlsx') this.download(
"/tcZz/networkSecurity/map/export",
{
...this.queryParams,
},
"地图统计_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
} .catch(() => {});
} },
} },
};
</script> </script>

File diff suppressed because it is too large Load Diff

@ -2,15 +2,7 @@
<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" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="属地名称" prop="area"> <el-form-item label="属地名称" prop="area">
<el-input <el-input
v-model="queryParams.area" v-model="queryParams.area"
@ -30,75 +22,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="文件名称" prop="fileName">
<el-input
v-model="queryParams.fileName"
placeholder="请输入文件名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="文件路径(完整路径)" prop="fileUrl">
<el-input
v-model="queryParams.fileUrl"
placeholder="请输入文件路径(完整路径)"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
placeholder="请输入备注"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <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-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -138,7 +62,6 @@
</div> </div>
<el-table v-loading="loading" :data="sdtbList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="sdtbList" @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="${comment}" align="center" prop="id" />
<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_area" :value="scope.row.area"/>

@ -1,260 +1,225 @@
<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
<el-form-item label="${comment}" prop="id"> :model="queryParams"
<el-input ref="queryForm"
v-model="queryParams.id" :inline="true"
placeholder="请输入${comment}" v-show="showSearch"
clearable label-width="auto"
size="small" >
@keyup.enter.native="handleQuery" <el-form-item label="区域" prop="areaId">
/> <el-select
</el-form-item> v-model="queryParams.areaId"
<el-form-item label="区域" prop="areaId"> placeholder="请选择区域"
<el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small"> clearable
<el-option size="small"
v-for="dict in dict.type.tc_area" >
:key="dict.value" <el-option
:label="dict.label" v-for="dict in dict.type.tc_area"
:value="dict.value" :key="dict.value"
/> :label="dict.label"
</el-select> :value="dict.value"
</el-form-item> />
<el-form-item label="启用/禁用" prop="isStatus"> </el-select>
<el-select v-model="queryParams.isStatus" placeholder="请选择启用/禁用" clearable size="small"> </el-form-item>
<el-option <el-form-item label="启用/禁用" prop="isStatus">
v-for="dict in dict.type.tc_start" <el-select
:key="dict.value" v-model="queryParams.isStatus"
:label="dict.label" placeholder="请选择启用/禁用"
:value="dict.value" clearable
/> size="small"
</el-select> >
</el-form-item> <el-option
<el-form-item label="单位名称" prop="unitName"> v-for="dict in dict.type.tc_start"
<el-input :key="dict.value"
v-model="queryParams.unitName" :label="dict.label"
placeholder="请输入单位名称" :value="dict.value"
clearable />
size="small" </el-select>
@keyup.enter.native="handleQuery" </el-form-item>
/> <el-form-item label="单位名称" prop="unitName">
</el-form-item> <el-input
<el-form-item label="目标IP/域名" prop="ipAddress"> v-model="queryParams.unitName"
<el-input placeholder="请输入单位名称"
v-model="queryParams.ipAddress" clearable
placeholder="请输入目标IP/域名" size="small"
clearable @keyup.enter.native="handleQuery"
size="small" />
@keyup.enter.native="handleQuery" </el-form-item>
/> <el-form-item label="目标IP/域名" prop="ipAddress">
</el-form-item> <el-input
<el-form-item label="处置情况" prop="czState"> v-model="queryParams.ipAddress"
<el-input placeholder="请输入目标IP/域名"
v-model="queryParams.czState" clearable
placeholder="请输入处置情况" size="small"
clearable @keyup.enter.native="handleQuery"
size="small" />
@keyup.enter.native="handleQuery" </el-form-item>
/>
</el-form-item> <el-form-item>
<el-form-item label="文件名称" prop="fileName"> <el-button
<el-input type="primary"
v-model="queryParams.fileName" icon="el-icon-search"
placeholder="请输入文件名称" size="mini"
clearable @click="handleQuery"
size="small" >搜索</el-button
@keyup.enter.native="handleQuery" >
/> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
</el-form-item> >重置</el-button
<el-form-item label="文件路径(完整路径)" prop="fileUrl"> >
<el-input </el-form-item>
v-model="queryParams.fileUrl" </el-form>
placeholder="请输入文件路径(完整路径)"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
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>
<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:tbcz:add']" v-hasPermi="['tcZz/networkSecurity:tbcz:add']"
>新增</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:tbcz:edit']" v-hasPermi="['tcZz/networkSecurity:tbcz: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:tbcz:remove']" @click="handleDelete"
>删除</el-button> v-hasPermi="['tcZz/networkSecurity:tbcz: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:tbcz:export']" v-hasPermi="['tcZz/networkSecurity:tbcz:export']"
>导出</el-button >导出</el-button
> >
</div> </div>
<el-table v-loading="loading" :data="tbczList" @selection-change="handleSelectionChange"> <el-table
v-loading="loading"
:data="tbczList"
@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="${comment}" align="center" prop="id" /> <el-table-column label="区域" align="center" prop="areaId">
<el-table-column label="区域" align="center" prop="areaId"> <template slot-scope="scope">
<template slot-scope="scope"> <dict-tag :options="dict.type.tc_area" :value="scope.row.areaId" />
<dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/> </template>
</template> </el-table-column>
</el-table-column> <el-table-column label="启用/禁用" align="center" prop="isStatus">
<el-table-column label="启用/禁用" align="center" prop="isStatus"> <template slot-scope="scope">
<template slot-scope="scope"> <dict-tag :options="dict.type.tc_start" :value="scope.row.isStatus" />
<dict-tag :options="dict.type.tc_start" :value="scope.row.isStatus"/> </template>
</template> </el-table-column>
</el-table-column> <el-table-column label="单位名称" align="center" prop="unitName" />
<el-table-column label="单位名称" align="center" prop="unitName" /> <el-table-column label="目标IP/域名" align="center" prop="ipAddress" />
<el-table-column label="目标IP/域名" align="center" prop="ipAddress" /> <el-table-column label="处置情况" align="center" prop="czState" />
<el-table-column label="处置情况" align="center" prop="czState" /> <el-table-column
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> 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:tbcz:list']" v-hasPermi="['tcZz/networkSecurity:tbcz: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:tbcz:edit']" v-hasPermi="['tcZz/networkSecurity:tbcz: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:tbcz:remove']" v-hasPermi="['tcZz/networkSecurity:tbcz: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="areaId"> append-to-body
<el-select v-model="form.areaId" placeholder="请选择区域"> custom-class="dialog-box"
<el-option >
v-for="dict in dict.type.tc_area" <div slot="title" class="dialog-title">{{ title }}</div>
:key="dict.value" <el-form
:label="dict.label" ref="form"
:value="dict.value" :model="form"
></el-option> :rules="rules"
</el-select> label-width="auto"
</el-form-item> class="dialog-from"
<el-form-item label="启用/禁用" prop="isStatus"> >
<el-select v-model="form.isStatus" placeholder="请选择启用/禁用"> <el-form-item label="区域" prop="areaId">
<el-option <el-select v-model="form.areaId" placeholder="请选择区域">
v-for="dict in dict.type.tc_start" <el-option
:key="dict.value" v-for="dict in dict.type.tc_area"
:label="dict.label" :key="dict.value"
:value="parseInt(dict.value)" :label="dict.label"
></el-option> :value="dict.value"
</el-select> ></el-option>
</el-form-item> </el-select>
<el-form-item label="单位名称" prop="unitName"> </el-form-item>
<el-input v-model="form.unitName" placeholder="请输入单位名称" /> <el-form-item label="启用/禁用" prop="isStatus">
</el-form-item> <el-select v-model="form.isStatus" placeholder="请选择启用/禁用">
<el-form-item label="目标IP/域名" prop="ipAddress"> <el-option
<el-input v-model="form.ipAddress" placeholder="请输入目标IP/域名" /> v-for="dict in dict.type.tc_start"
</el-form-item> :key="dict.value"
<el-form-item label="处置情况" prop="czState"> :label="dict.label"
<el-input v-model="form.czState" placeholder="请输入处置情况" /> :value="parseInt(dict.value)"
</el-form-item> ></el-option>
<el-form-item label="文件名称" prop="fileName"> </el-select>
<el-input v-model="form.fileName" placeholder="请输入文件名称" /> </el-form-item>
</el-form-item> <el-form-item label="单位名称" prop="unitName">
<el-form-item label="文件路径(完整路径)" prop="fileUrl"> <el-input v-model="form.unitName" placeholder="请输入单位名称" />
<el-input v-model="form.fileUrl" placeholder="请输入文件路径(完整路径)" /> </el-form-item>
</el-form-item> <el-form-item label="目标IP/域名" prop="ipAddress">
<el-form-item label="备注" prop="remark"> <el-input v-model="form.ipAddress" placeholder="请输入目标IP/域名" />
<el-input v-model="form.remark" placeholder="请输入备注" /> </el-form-item>
</el-form-item> <el-form-item label="处置情况" prop="czState">
<el-input v-model="form.czState" placeholder="请输入处置情况" />
</el-form-item>
<el-form-item label="文件名称" prop="fileName">
<el-input v-model="form.fileName" placeholder="请输入文件名称" />
</el-form-item>
<el-form-item label="文件路径(完整路径)" prop="fileUrl">
<el-input
v-model="form.fileUrl"
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>
@ -263,268 +228,298 @@
</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.areaId }}</el-descriptions-item> border
labelClassName="desLable"
<el-descriptions-item label="启用/禁用">{{ form.isStatus }}</el-descriptions-item> >
<el-descriptions-item label="区域">{{
<el-descriptions-item label="单位名称">{{ form.unitName }}</el-descriptions-item> form.areaId
}}</el-descriptions-item>
<el-descriptions-item label="目标IP/域名">{{ form.ipAddress }}</el-descriptions-item>
<el-descriptions-item label="启用/禁用">{{
<el-descriptions-item label="处置情况">{{ form.czState }}</el-descriptions-item> form.isStatus
}}</el-descriptions-item>
<el-descriptions-item label="文件名称">{{ form.fileName }}</el-descriptions-item>
<el-descriptions-item label="单位名称">{{
<el-descriptions-item label="文件路径(完整路径)">{{ form.fileUrl }}</el-descriptions-item> form.unitName
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item>
<el-descriptions-item label="目标IP/域名">{{
</el-descriptions> form.ipAddress
}}</el-descriptions-item>
<el-descriptions-item label="处置情况">{{
form.czState
}}</el-descriptions-item>
<el-descriptions-item label="文件名称">{{
form.fileName
}}</el-descriptions-item>
<el-descriptions-item label="文件路径(完整路径)">{{
form.fileUrl
}}</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 { listTbcz, getTbcz, delTbcz, addTbcz, updateTbcz, exportTbcz } from "@/api/tcZz/networkSecurity/tbcz"; import {
export default { listTbcz,
name: "Tbcz", getTbcz,
// delTbcz,
dicts: ['tc_area', 'tc_start'], addTbcz,
data() { updateTbcz,
return { exportTbcz,
tableHeigth: 0, } from "@/api/tcZz/networkSecurity/tbcz";
// export default {
infoOpen:false, name: "Tbcz",
// //
infoTitle:'', dicts: ["tc_area", "tc_start"],
// 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,
tbczList: [], //
// multiple: true,
title: "", //
// showSearch: true,
open: false, //
// total: 0,
daterangeCreateTime: [], //
// tbczList: [],
daterangeUpdateTime: [], //
// title: "",
queryParams: { //
pageNum: 1, open: false,
pageSize: 10, //
id: null, daterangeCreateTime: [],
//
areaId: null, daterangeUpdateTime: [],
//
isStatus: null, queryParams: {
pageNum: 1,
unitName: null, pageSize: 10,
id: null,
ipAddress: null,
areaId: null,
czState: null,
isStatus: null,
fileName: null,
unitName: null,
fileUrl: null,
ipAddress: null,
createBy: null,
czState: null,
createTime: null,
fileName: null,
updateBy: null,
fileUrl: null,
updateTime: null,
createBy: null,
remark: null,
createTime: null,
},
// updateBy: null,
form: {},
// updateTime: null,
rules: {
} remark: null,
}; },
//
form: {},
//
rules: {},
};
},
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];
}
listTbcz(this.queryParams).then((response) => {
this.tbczList = response.rows;
this.total = response.total;
this.loading = false;
});
}, },
created() { //
cancel() {
this.getList(); this.open = false;
this.reset();
}, },
methods: { //
/** 查询通报处置列表 */ reset() {
getList() { this.form = {
this.loading = true; id: null,
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];
}
listTbcz(this.queryParams).then(response => {
this.tbczList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
areaId: null, areaId: null,
isStatus: null, isStatus: null,
unitName: null, unitName: null,
ipAddress: null, ipAddress: null,
czState: null, czState: null,
fileName: null, fileName: null,
fileUrl: null, fileUrl: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,
updateTime: null, updateTime: null,
remark: null, remark: null,
};
}; this.resetForm("form");
this.resetForm("form"); },
}, /** 搜索按钮操作 */
/** 搜索按钮操作 */ handleQuery() {
handleQuery() { this.queryParams.pageNum = 1;
this.queryParams.pageNum = 1; this.getList();
this.getList(); },
}, /** 重置按钮操作 */
/** 重置按钮操作 */ resetQuery() {
resetQuery() { this.daterangeCreateTime = [];
this.daterangeCreateTime = []; this.daterangeUpdateTime = [];
this.daterangeUpdateTime = []; this.resetForm("queryForm");
this.resetForm("queryForm"); this.handleQuery();
this.handleQuery(); },
}, //
// handleSelectionChange(selection) {
handleSelectionChange(selection) { this.ids = selection.map((item) => item.id);
this.ids = selection.map(item => item.id) this.single = selection.length !== 1;
this.single = selection.length!==1 this.multiple = !selection.length;
this.multiple = !selection.length },
}, /**查看按钮操作 */
/**查看按钮操作 */ handleInfo(row) {
handleInfo(row){ this.reset();
this.reset(); const id = row.id || this.ids;
const id = row.id || this.ids getTbcz(id).then((response) => {
getTbcz(id).then(response => { this.form = response.data;
this.form = response.data; this.infoOpen = true;
this.infoOpen = true; this.infoTitle = "查看通报处置详情";
this.infoTitle = "查看通报处置详情" });
}); },
}, /** 新增按钮操作 */
/** 新增按钮操作 */ handleAdd() {
handleAdd() { this.reset();
this.reset(); this.open = true;
this.title = "添加通报处置";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getTbcz(id).then((response) => {
this.form = response.data;
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) => {
getTbcz(id).then(response => { if (valid) {
this.form = response.data; if (this.form.id != null) {
this.open = true; updateTbcz(this.form).then((response) => {
this.title = "修改通报处置"; this.$modal.msgSuccess("修改成功");
}); this.open = false;
}, this.getList();
/** 提交按钮 */ });
submitForm() { } else {
this.$refs["form"].validate(valid => { addTbcz(this.form).then((response) => {
if (valid) { this.$modal.msgSuccess("新增成功");
if (this.form.id != null) { this.open = false;
updateTbcz(this.form).then(response => { this.getList();
this.$modal.msgSuccess("修改成功"); });
this.open = false;
this.getList();
});
} else {
addTbcz(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 delTbcz(ids); return delTbcz(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/tbcz/export', { })
...this.queryParams .then(() => {
}, '通报处置_'+ new Date().getTime() +'.xlsx') this.download(
"/tcZz/networkSecurity/tbcz/export",
{
...this.queryParams,
},
"通报处置_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
} .catch(() => {});
} },
} },
};
</script> </script>

@ -2,15 +2,7 @@
<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" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="时间名称" prop="timeName"> <el-form-item label="时间名称" prop="timeName">
<el-input <el-input
v-model="queryParams.timeName" v-model="queryParams.timeName"
@ -55,57 +47,7 @@
placeholder="选择年份"> placeholder="选择年份">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
placeholder="请输入备注"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <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-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -145,7 +87,6 @@
</div> </div>
<el-table v-loading="loading" :data="tbwcList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="tbwcList" @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="${comment}" align="center" prop="id" />
<el-table-column label="时间名称" align="center" prop="timeName" /> <el-table-column label="时间名称" align="center" prop="timeName" />
<el-table-column label="通报数量" align="center" prop="tbCount" /> <el-table-column label="通报数量" align="center" prop="tbCount" />
<el-table-column label="完成期数" align="center" prop="overCount" /> <el-table-column label="完成期数" align="center" prop="overCount" />

@ -1,174 +1,156 @@
<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
<el-form-item label="${comment}" prop="id"> :model="queryParams"
<el-input ref="queryForm"
v-model="queryParams.id" :inline="true"
placeholder="请输入${comment}" v-show="showSearch"
clearable label-width="auto"
size="small" >
@keyup.enter.native="handleQuery"
/> <el-form-item label="受攻击IP" prop="sAttackIp">
</el-form-item> <el-input
<el-form-item label="受攻击IP" prop="sAttackIp"> v-model="queryParams.sAttackIp"
<el-input placeholder="请输入受攻击IP"
v-model="queryParams.sAttackIp" clearable
placeholder="请输入受攻击IP" size="small"
clearable @keyup.enter.native="handleQuery"
size="small" />
@keyup.enter.native="handleQuery" </el-form-item>
/> <el-form-item label="受攻击次数" prop="sAttackCount">
</el-form-item> <el-input
<el-form-item label="受攻击次数" prop="sAttackCount"> v-model="queryParams.sAttackCount"
<el-input placeholder="请输入受攻击次数"
v-model="queryParams.sAttackCount" clearable
placeholder="请输入受攻击次数" size="small"
clearable @keyup.enter.native="handleQuery"
size="small" />
@keyup.enter.native="handleQuery" </el-form-item>
/>
</el-form-item> <el-form-item>
<el-form-item label="创建者" prop="createBy"> <el-button
<el-input type="primary"
v-model="queryParams.createBy" icon="el-icon-search"
placeholder="请输入创建者" size="mini"
clearable @click="handleQuery"
size="small" >搜索</el-button
@keyup.enter.native="handleQuery" >
/> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
</el-form-item> >重置</el-button
<el-form-item label="创建时间"> >
<el-date-picker </el-form-item>
v-model="daterangeCreateTime" </el-form>
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
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>
<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:top5:add']" v-hasPermi="['tcZz/networkSecurity:top5:add']"
>新增</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:top5:edit']" v-hasPermi="['tcZz/networkSecurity:top5: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:top5:remove']" @click="handleDelete"
>删除</el-button> v-hasPermi="['tcZz/networkSecurity:top5: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:top5:export']" v-hasPermi="['tcZz/networkSecurity:top5:export']"
>导出</el-button >导出</el-button
> >
</div> </div>
<el-table v-loading="loading" :data="top5List" @selection-change="handleSelectionChange"> <el-table
v-loading="loading"
:data="top5List"
@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="${comment}" align="center" prop="id" /> <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="备注" align="center" prop="remark" /> label="操作"
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> 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:top5:list']" v-hasPermi="['tcZz/networkSecurity:top5: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:top5:edit']" v-hasPermi="['tcZz/networkSecurity:top5: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:top5:remove']" v-hasPermi="['tcZz/networkSecurity:top5: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"
/> />
<!-- 添加或修改受攻击IPTOP5对话框 --> <!-- 添加或修改受攻击IPTOP5对话框 -->
<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="受攻击IP" prop="sAttackIp"> append-to-body
<el-input v-model="form.sAttackIp" placeholder="请输入受攻击IP" /> custom-class="dialog-box"
</el-form-item> >
<el-form-item label="受攻击次数" prop="sAttackCount"> <div slot="title" class="dialog-title">{{ title }}</div>
<el-input v-model="form.sAttackCount" placeholder="请输入受攻击次数" /> <el-form
</el-form-item> ref="form"
<el-form-item label="备注" prop="remark"> :model="form"
<el-input v-model="form.remark" placeholder="请输入备注" /> :rules="rules"
</el-form-item> label-width="auto"
class="dialog-from"
>
<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-input
v-model="form.sAttackCount"
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>
@ -177,237 +159,257 @@
</el-dialog> </el-dialog>
<!--查看受攻击IPTOP5详情页--> <!--查看受攻击IPTOP5详情页-->
<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="受攻击IPTOP5"
<el-descriptions title="受攻击IPTOP5" :column="2" border labelClassName="desLable"> :column="2"
<el-descriptions-item label="受攻击IP">{{ form.sAttackIp }}</el-descriptions-item> border
labelClassName="desLable"
<el-descriptions-item label="受攻击次数">{{ form.sAttackCount }}</el-descriptions-item> >
<el-descriptions-item label="受攻击IP">{{
form.sAttackIp
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item> <el-descriptions-item label="受攻击次数">{{
form.sAttackCount
}}</el-descriptions-item>
</el-descriptions> <el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
</el-descriptions>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { listTop5, getTop5, delTop5, addTop5, updateTop5, exportTop5 } from "@/api/tcZz/networkSecurity/top5"; import {
export default { listTop5,
name: "Top5", getTop5,
// delTop5,
data() { addTop5,
return { updateTop5,
tableHeigth: 0, exportTop5,
// } from "@/api/tcZz/networkSecurity/top5";
infoOpen:false, export default {
// name: "Top5",
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, //
// IPTOP5 single: true,
top5List: [], //
// multiple: true,
title: "", //
// showSearch: true,
open: false, //
// total: 0,
daterangeCreateTime: [], // IPTOP5
// top5List: [],
daterangeUpdateTime: [], //
// title: "",
queryParams: { //
pageNum: 1, open: false,
pageSize: 10, //
id: null, daterangeCreateTime: [],
//
sAttackIp: null, daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
sAttackCount: null, sAttackIp: null,
createBy: null, sAttackCount: null,
createTime: null, createBy: null,
updateBy: null, createTime: null,
updateTime: null, updateBy: null,
remark: null, updateTime: null,
}, remark: null,
// },
form: {}, //
// form: {},
rules: { //
} rules: {},
}; };
},
created() {
this.getList();
},
methods: {
/** 查询受攻击IPTOP5列表 */
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];
}
listTop5(this.queryParams).then((response) => {
this.top5List = response.rows;
this.total = response.total;
this.loading = false;
});
}, },
created() { //
cancel() {
this.getList(); this.open = false;
this.reset();
}, },
methods: { //
/** 查询受攻击IPTOP5列表 */ reset() {
getList() { this.form = {
this.loading = true; id: null,
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];
}
listTop5(this.queryParams).then(response => {
this.top5List = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
sAttackIp: null,
sAttackCount: null, sAttackIp: null,
createBy: null, sAttackCount: null,
createTime: null, createBy: null,
updateBy: null, createTime: null,
updateTime: null, updateBy: null,
remark: null, updateTime: null,
}; remark: null,
this.resetForm("form"); };
}, this.resetForm("form");
/** 搜索按钮操作 */ },
handleQuery() { /** 搜索按钮操作 */
this.queryParams.pageNum = 1; handleQuery() {
this.getList(); this.queryParams.pageNum = 1;
}, this.getList();
/** 重置按钮操作 */ },
resetQuery() { /** 重置按钮操作 */
this.daterangeCreateTime = []; resetQuery() {
this.daterangeUpdateTime = []; this.daterangeCreateTime = [];
this.resetForm("queryForm"); this.daterangeUpdateTime = [];
this.handleQuery(); this.resetForm("queryForm");
}, this.handleQuery();
// },
handleSelectionChange(selection) { //
this.ids = selection.map(item => item.id) handleSelectionChange(selection) {
this.single = selection.length!==1 this.ids = selection.map((item) => item.id);
this.multiple = !selection.length this.single = selection.length !== 1;
}, this.multiple = !selection.length;
/**查看按钮操作 */ },
handleInfo(row){ /**查看按钮操作 */
this.reset(); handleInfo(row) {
const id = row.id || this.ids this.reset();
getTop5(id).then(response => { const id = row.id || this.ids;
this.form = response.data; getTop5(id).then((response) => {
this.infoOpen = true; this.form = response.data;
this.infoTitle = "查看受攻击IPTOP5详情" this.infoOpen = true;
}); this.infoTitle = "查看受攻击IPTOP5详情";
}, });
/** 新增按钮操作 */ },
handleAdd() { /** 新增按钮操作 */
this.reset(); handleAdd() {
this.reset();
this.open = true;
this.title = "添加受攻击IPTOP5";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getTop5(id).then((response) => {
this.form = response.data;
this.open = true; this.open = true;
this.title = "添加受攻击IPTOP5"; this.title = "修改受攻击IPTOP5";
}, });
/** 修改按钮操作 */ },
handleUpdate(row) { /** 提交按钮 */
this.reset(); submitForm() {
const id = row.id || this.ids this.$refs["form"].validate((valid) => {
getTop5(id).then(response => { if (valid) {
this.form = response.data; if (this.form.id != null) {
this.open = true; updateTop5(this.form).then((response) => {
this.title = "修改受攻击IPTOP5"; this.$modal.msgSuccess("修改成功");
}); this.open = false;
}, this.getList();
/** 提交按钮 */ });
submitForm() { } else {
this.$refs["form"].validate(valid => { addTop5(this.form).then((response) => {
if (valid) { this.$modal.msgSuccess("新增成功");
if (this.form.id != null) { this.open = false;
updateTop5(this.form).then(response => { this.getList();
this.$modal.msgSuccess("修改成功"); });
this.open = false;
this.getList();
});
} else {
addTop5(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 delTop5(ids); return delTop5(ids);
}).then(() => { })
.then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}).catch(() => {}); })
}, .catch(() => {});
/** 导出按钮操作 */ },
handleExport() { /** 导出按钮操作 */
const queryParams = this.queryParams; handleExport() {
this.$confirm('是否确认导出所有受攻击IPTOP5数据项?', "警告", { const queryParams = this.queryParams;
confirmButtonText: "确定", this.$confirm("是否确认导出所有受攻击IPTOP5数据项?", "警告", {
cancelButtonText: "取消", confirmButtonText: "确定",
type: "warning" cancelButtonText: "取消",
}).then(() => { type: "warning",
this.download('/tcZz/networkSecurity/top5/export', { })
...this.queryParams .then(() => {
}, '受攻击IPTOP5_'+ new Date().getTime() +'.xlsx') this.download(
"/tcZz/networkSecurity/top5/export",
{
...this.queryParams,
},
"受攻击IPTOP5_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
} .catch(() => {});
} },
} },
};
</script> </script>

@ -2,15 +2,7 @@
<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" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="网络攻击(万次)" prop="netAttack"> <el-form-item label="网络攻击(万次)" prop="netAttack">
<el-input <el-input
v-model="queryParams.netAttack" v-model="queryParams.netAttack"
@ -29,75 +21,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="恶意扫描" prop="smAttack">
<el-input
v-model="queryParams.smAttack"
placeholder="请输入恶意扫描"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="僵木蠕病毒" prop="bdAttack">
<el-input
v-model="queryParams.bdAttack"
placeholder="请输入僵木蠕病毒"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
placeholder="请输入备注"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <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-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -137,7 +61,6 @@
</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="${comment}" align="center" prop="id" />
<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" />

@ -1,222 +1,221 @@
<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
<el-form-item label="${comment}" prop="id"> :model="queryParams"
<el-input ref="queryForm"
v-model="queryParams.id" :inline="true"
placeholder="请输入${comment}" v-show="showSearch"
clearable label-width="auto"
size="small" >
@keyup.enter.native="handleQuery"
/> <el-form-item label="区域" prop="areaId">
</el-form-item> <el-select
<el-form-item label="区域" prop="areaId"> v-model="queryParams.areaId"
<el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small"> placeholder="请选择区域"
<el-option clearable
v-for="dict in dict.type.tc_area" size="small"
:key="dict.value" >
:label="dict.label" <el-option
:value="dict.value" v-for="dict in dict.type.tc_area"
/> :key="dict.value"
</el-select> :label="dict.label"
</el-form-item> :value="dict.value"
<el-form-item label="启用/禁用" prop="isStatus"> />
<el-select v-model="queryParams.isStatus" placeholder="请选择启用/禁用" clearable size="small"> </el-select>
<el-option </el-form-item>
v-for="dict in dict.type.tc_start" <el-form-item label="启用/禁用" prop="isStatus">
:key="dict.value" <el-select
:label="dict.label" v-model="queryParams.isStatus"
:value="dict.value" placeholder="请选择启用/禁用"
/> clearable
</el-select> size="small"
</el-form-item> >
<el-form-item label="单位名称" prop="unitName"> <el-option
<el-input v-for="dict in dict.type.tc_start"
v-model="queryParams.unitName" :key="dict.value"
placeholder="请输入单位名称" :label="dict.label"
clearable :value="dict.value"
size="small" />
@keyup.enter.native="handleQuery" </el-select>
/> </el-form-item>
</el-form-item> <el-form-item label="单位名称" prop="unitName">
<el-form-item label="网站/系统名称" prop="systemName"> <el-input
<el-input v-model="queryParams.unitName"
v-model="queryParams.systemName" placeholder="请输入单位名称"
placeholder="请输入网站/系统名称" 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="systemUrl"> <el-form-item>
<el-input <el-button
v-model="queryParams.systemUrl" type="primary"
placeholder="请输入网站地址" icon="el-icon-search"
clearable size="mini"
size="small" @click="handleQuery"
@keyup.enter.native="handleQuery" >搜索</el-button
/> >
</el-form-item> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
<el-form-item label="IP地址" prop="sysyemIp"> >重置</el-button
<el-input >
v-model="queryParams.sysyemIp" </el-form-item>
placeholder="请输入IP地址" </el-form>
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否关注重点" prop="isFocus">
<el-input
v-model="queryParams.isFocus"
placeholder="请输入是否关注重点"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="等保级别" prop="level">
<el-input
v-model="queryParams.level"
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>
<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:xtjc:add']" v-hasPermi="['tcZz/networkSecurity:xtjc:add']"
>新增</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:xtjc:edit']" v-hasPermi="['tcZz/networkSecurity:xtjc: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:xtjc:remove']" @click="handleDelete"
>删除</el-button> v-hasPermi="['tcZz/networkSecurity:xtjc: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:xtjc:export']" v-hasPermi="['tcZz/networkSecurity:xtjc:export']"
>导出</el-button >导出</el-button
> >
</div> </div>
<el-table v-loading="loading" :data="xtjcList" @selection-change="handleSelectionChange"> <el-table
v-loading="loading"
:data="xtjcList"
@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="${comment}" align="center" prop="id" /> <el-table-column label="区域" align="center" prop="areaId">
<el-table-column label="区域" align="center" prop="areaId"> <template slot-scope="scope">
<template slot-scope="scope"> <dict-tag :options="dict.type.tc_area" :value="scope.row.areaId" />
<dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/> </template>
</template> </el-table-column>
</el-table-column> <el-table-column label="启用/禁用" align="center" prop="isStatus">
<el-table-column label="启用/禁用" align="center" prop="isStatus"> <template slot-scope="scope">
<template slot-scope="scope"> <dict-tag :options="dict.type.tc_start" :value="scope.row.isStatus" />
<dict-tag :options="dict.type.tc_start" :value="scope.row.isStatus"/> </template>
</template> </el-table-column>
</el-table-column> <el-table-column label="单位名称" align="center" prop="unitName" />
<el-table-column label="单位名称" align="center" prop="unitName" /> <el-table-column label="网站/系统名称" align="center" prop="systemName" />
<el-table-column label="网站/系统名称" align="center" prop="systemName" /> <el-table-column label="是否关注重点" align="center" prop="isFocus" />
<el-table-column label="是否关注重点" align="center" prop="isFocus" /> <el-table-column label="等保级别" align="center" prop="level" />
<el-table-column label="等保级别" align="center" prop="level" /> <el-table-column
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> 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:xtjc:list']" v-hasPermi="['tcZz/networkSecurity:xtjc: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:xtjc:edit']" v-hasPermi="['tcZz/networkSecurity:xtjc: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:xtjc:remove']" v-hasPermi="['tcZz/networkSecurity:xtjc: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="areaId"> append-to-body
<el-select v-model="form.areaId" placeholder="请选择区域"> custom-class="dialog-box"
<el-option >
v-for="dict in dict.type.tc_area" <div slot="title" class="dialog-title">{{ title }}</div>
:key="dict.value" <el-form
:label="dict.label" ref="form"
:value="dict.value" :model="form"
></el-option> :rules="rules"
</el-select> label-width="auto"
</el-form-item> class="dialog-from"
<el-form-item label="启用/禁用" prop="isStatus"> >
<el-select v-model="form.isStatus" placeholder="请选择启用/禁用"> <el-form-item label="区域" prop="areaId">
<el-option <el-select v-model="form.areaId" placeholder="请选择区域">
v-for="dict in dict.type.tc_start" <el-option
:key="dict.value" v-for="dict in dict.type.tc_area"
:label="dict.label" :key="dict.value"
:value="parseInt(dict.value)" :label="dict.label"
></el-option> :value="dict.value"
</el-select> ></el-option>
</el-form-item> </el-select>
<el-form-item label="单位名称" prop="unitName"> </el-form-item>
<el-input v-model="form.unitName" placeholder="请输入单位名称" /> <el-form-item label="启用/禁用" prop="isStatus">
</el-form-item> <el-select v-model="form.isStatus" placeholder="请选择启用/禁用">
<el-form-item label="网站/系统名称" prop="systemName"> <el-option
<el-input v-model="form.systemName" placeholder="请输入网站/系统名称" /> v-for="dict in dict.type.tc_start"
</el-form-item> :key="dict.value"
<el-form-item label="网站地址" prop="systemUrl"> :label="dict.label"
<el-input v-model="form.systemUrl" placeholder="请输入网站地址" /> :value="parseInt(dict.value)"
</el-form-item> ></el-option>
<el-form-item label="IP地址" prop="sysyemIp"> </el-select>
<el-input v-model="form.sysyemIp" placeholder="请输入IP地址" /> </el-form-item>
</el-form-item> <el-form-item label="单位名称" prop="unitName">
<el-form-item label="是否关注重点" prop="isFocus"> <el-input v-model="form.unitName" placeholder="请输入单位名称" />
<el-input v-model="form.isFocus" placeholder="请输入是否关注重点" /> </el-form-item>
</el-form-item> <el-form-item label="网站/系统名称" prop="systemName">
<el-form-item label="等保级别" prop="level"> <el-input
<el-input v-model="form.level" placeholder="请输入等保级别" /> v-model="form.systemName"
</el-form-item> placeholder="请输入网站/系统名称"
<el-form-item label="备注" prop="remark"> />
<el-input v-model="form.remark" placeholder="请输入备注" /> </el-form-item>
</el-form-item> <el-form-item label="网站地址" prop="systemUrl">
<el-input v-model="form.systemUrl" placeholder="请输入网站地址" />
</el-form-item>
<el-form-item label="IP地址" prop="sysyemIp">
<el-input v-model="form.sysyemIp" placeholder="请输入IP地址" />
</el-form-item>
<el-form-item label="是否关注重点" prop="isFocus">
<el-input v-model="form.isFocus" placeholder="请输入是否关注重点" />
</el-form-item>
<el-form-item label="等保级别" prop="level">
<el-input v-model="form.level" 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>
@ -225,264 +224,296 @@
</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.areaId }}</el-descriptions-item> border
labelClassName="desLable"
<el-descriptions-item label="启用/禁用">{{ form.isStatus }}</el-descriptions-item> >
<el-descriptions-item label="区域">{{
<el-descriptions-item label="单位名称">{{ form.unitName }}</el-descriptions-item> form.areaId
}}</el-descriptions-item>
<el-descriptions-item label="网站/系统名称">{{ form.systemName }}</el-descriptions-item>
<el-descriptions-item label="启用/禁用">{{
<el-descriptions-item label="网站地址">{{ form.systemUrl }}</el-descriptions-item> form.isStatus
}}</el-descriptions-item>
<el-descriptions-item label="IP地址">{{ form.sysyemIp }}</el-descriptions-item>
<el-descriptions-item label="单位名称">{{
<el-descriptions-item label="是否关注重点">{{ form.isFocus }}</el-descriptions-item> form.unitName
}}</el-descriptions-item>
<el-descriptions-item label="等保级别">{{ form.level }}</el-descriptions-item>
<el-descriptions-item label="网站/系统名称">{{
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item> form.systemName
}}</el-descriptions-item>
</el-descriptions>
<el-descriptions-item label="网站地址">{{
form.systemUrl
}}</el-descriptions-item>
<el-descriptions-item label="IP地址">{{
form.sysyemIp
}}</el-descriptions-item>
<el-descriptions-item label="是否关注重点">{{
form.isFocus
}}</el-descriptions-item>
<el-descriptions-item label="等保级别">{{
form.level
}}</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 { listXtjc, getXtjc, delXtjc, addXtjc, updateXtjc, exportXtjc } from "@/api/tcZz/networkSecurity/xtjc"; import {
export default { listXtjc,
name: "Xtjc", getXtjc,
// delXtjc,
dicts: ['tc_area', 'tc_start'], addXtjc,
data() { updateXtjc,
return { exportXtjc,
tableHeigth: 0, } from "@/api/tcZz/networkSecurity/xtjc";
// export default {
infoOpen:false, name: "Xtjc",
// //
infoTitle:'', dicts: ["tc_area", "tc_start"],
// 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,
xtjcList: [], //
// multiple: true,
title: "", //
// showSearch: true,
open: false, //
// total: 0,
daterangeCreateTime: [], //
// xtjcList: [],
daterangeUpdateTime: [], //
// title: "",
queryParams: { //
pageNum: 1, open: false,
pageSize: 10, //
id: null, daterangeCreateTime: [],
//
areaId: null, daterangeUpdateTime: [],
//
isStatus: null, queryParams: {
pageNum: 1,
unitName: null, pageSize: 10,
id: null,
systemName: null,
areaId: null,
systemUrl: null,
isStatus: null,
sysyemIp: null,
unitName: null,
isFocus: null,
systemName: null,
level: null,
systemUrl: null,
},
// sysyemIp: null,
form: {},
// isFocus: null,
rules: {
} level: null,
}; },
//
form: {},
//
rules: {},
};
},
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];
}
listXtjc(this.queryParams).then((response) => {
this.xtjcList = response.rows;
this.total = response.total;
this.loading = false;
});
}, },
created() { //
cancel() {
this.getList(); this.open = false;
this.reset();
}, },
methods: { //
/** 查询系统监测列表 */ reset() {
getList() { this.form = {
this.loading = true; id: null,
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];
}
listXtjc(this.queryParams).then(response => {
this.xtjcList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
areaId: null, areaId: null,
isStatus: null, isStatus: null,
unitName: null, unitName: null,
systemName: null, systemName: null,
systemUrl: null, systemUrl: null,
sysyemIp: null, sysyemIp: null,
isFocus: null, isFocus: null,
level: null, level: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,
updateTime: null, updateTime: null,
remark: null, remark: null,
};
}; this.resetForm("form");
this.resetForm("form"); },
}, /** 搜索按钮操作 */
/** 搜索按钮操作 */ handleQuery() {
handleQuery() { this.queryParams.pageNum = 1;
this.queryParams.pageNum = 1; this.getList();
this.getList(); },
}, /** 重置按钮操作 */
/** 重置按钮操作 */ resetQuery() {
resetQuery() { this.daterangeCreateTime = [];
this.daterangeCreateTime = []; this.daterangeUpdateTime = [];
this.daterangeUpdateTime = []; this.resetForm("queryForm");
this.resetForm("queryForm"); this.handleQuery();
this.handleQuery(); },
}, //
// handleSelectionChange(selection) {
handleSelectionChange(selection) { this.ids = selection.map((item) => item.id);
this.ids = selection.map(item => item.id) this.single = selection.length !== 1;
this.single = selection.length!==1 this.multiple = !selection.length;
this.multiple = !selection.length },
}, /**查看按钮操作 */
/**查看按钮操作 */ handleInfo(row) {
handleInfo(row){ this.reset();
this.reset(); const id = row.id || this.ids;
const id = row.id || this.ids getXtjc(id).then((response) => {
getXtjc(id).then(response => { this.form = response.data;
this.form = response.data; this.infoOpen = true;
this.infoOpen = true; this.infoTitle = "查看系统监测详情";
this.infoTitle = "查看系统监测详情" });
}); },
}, /** 新增按钮操作 */
/** 新增按钮操作 */ handleAdd() {
handleAdd() { this.reset();
this.reset(); this.open = true;
this.title = "添加系统监测";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getXtjc(id).then((response) => {
this.form = response.data;
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) => {
getXtjc(id).then(response => { if (valid) {
this.form = response.data; if (this.form.id != null) {
this.open = true; updateXtjc(this.form).then((response) => {
this.title = "修改系统监测"; this.$modal.msgSuccess("修改成功");
}); this.open = false;
}, this.getList();
/** 提交按钮 */ });
submitForm() { } else {
this.$refs["form"].validate(valid => { addXtjc(this.form).then((response) => {
if (valid) { this.$modal.msgSuccess("新增成功");
if (this.form.id != null) { this.open = false;
updateXtjc(this.form).then(response => { this.getList();
this.$modal.msgSuccess("修改成功"); });
this.open = false;
this.getList();
});
} else {
addXtjc(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 delXtjc(ids); return delXtjc(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/xtjc/export', { })
...this.queryParams .then(() => {
}, '系统监测_'+ new Date().getTime() +'.xlsx') this.download(
"/tcZz/networkSecurity/xtjc/export",
{
...this.queryParams,
},
"系统监测_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
} .catch(() => {});
} },
} },
};
</script> </script>

@ -2,15 +2,7 @@
<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" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="区域" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small"> <el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small">
<el-option <el-option
@ -31,15 +23,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="网站地址" prop="webUrl">
<el-input
v-model="queryParams.webUrl"
placeholder="请输入网站地址"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="资产名称" prop="assetName"> <el-form-item label="资产名称" prop="assetName">
<el-input <el-input
v-model="queryParams.assetName" v-model="queryParams.assetName"
@ -49,66 +33,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="资产重要等级" prop="assetLevel">
<el-input
v-model="queryParams.assetLevel"
placeholder="请输入资产重要等级"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
placeholder="请输入备注"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <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-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -148,7 +73,6 @@
</div> </div>
<el-table v-loading="loading" :data="zfwzList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="zfwzList" @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="${comment}" align="center" prop="id" />
<el-table-column label="区域" align="center" prop="areaId"> <el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/> <dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/>

@ -2,15 +2,7 @@
<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" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="区域" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small"> <el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small">
<el-option <el-option
@ -49,93 +41,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="等级" prop="level">
<el-input
v-model="queryParams.level"
placeholder="请输入等级"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="隐患来源" prop="yhLy">
<el-input
v-model="queryParams.yhLy"
placeholder="请输入隐患来源"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="文件名称" prop="fileName">
<el-input
v-model="queryParams.fileName"
placeholder="请输入文件名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="文件路径(完整路径)" prop="fileUrl">
<el-input
v-model="queryParams.fileUrl"
placeholder="请输入文件路径(完整路径)"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="daterangeCreateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="更新者" prop="updateBy">
<el-input
v-model="queryParams.updateBy"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker
v-model="daterangeUpdateTime"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
placeholder="请输入备注"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <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-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -175,7 +81,6 @@
</div> </div>
<el-table v-loading="loading" :data="zxyhList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="zxyhList" @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="${comment}" align="center" prop="id" />
<el-table-column label="区域" align="center" prop="areaId"> <el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/> <dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/>

Loading…
Cancel
Save