Compare commits

..

9 Commits

@ -8,10 +8,10 @@ ENV = 'development'
# VUE_APP_BASE_API = 'https://vue.ruoyi.vip/prod-api'
#公司接口
# VUE_APP_BASE_API = 'http://39.101.188.84:9027'
VUE_APP_BASE_API = 'http://39.101.188.84:9027'
#局域网
VUE_APP_BASE_API = 'http://39.101.188.84:9027'
# VUE_APP_BASE_API = 'http://192.168.0.109:9027'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -5,4 +5,4 @@ VUE_APP_TITLE = 数据中台系统
ENV = 'production'
# 数据中台系统/生产环境
VUE_APP_BASE_API = 'http://39.101.188.84:9027'
VUE_APP_BASE_API = 'http://192.168.0.110:9027'

@ -1,53 +0,0 @@
import request from "@/utils/request";
// 查询安全隐患统计列表
export function listCounty(query) {
return request({
url: "/zongzhi/county/list",
method: "get",
params: query,
});
}
// 查询安全隐患统计详细
export function getCounty(id) {
return request({
url: "/zongzhi/county/" + id,
method: "get",
});
}
// 新增安全隐患统计
export function addCounty(data) {
return request({
url: "/zongzhi/county",
method: "post",
data: data,
});
}
// 修改安全隐患统计
export function updateCounty(data) {
return request({
url: "/zongzhi/county",
method: "put",
data: data,
});
}
// 删除安全隐患统计
export function delCounty(id) {
return request({
url: "/zongzhi/county/" + id,
method: "delete",
});
}
// 导出安全隐患统计
export function exportCounty(data) {
return request({
url: "/zongzhi/county/export",
method: "post",
data,
});
}

@ -193,7 +193,6 @@
<el-form-item label="重点监管内容" prop="zdjgContent">
<el-input
v-model="form.zdjgContent"
type="textarea"
placeholder="请输入内容"
/>
</el-form-item>
@ -205,6 +204,7 @@
>
<el-input
v-model="form.weifaXingwei"
type="textarea"
placeholder="请输入法律法规明令禁止的有关行为"
/>
</el-form-item>

@ -9,8 +9,7 @@
label-width="auto"
>
<el-form-item label="隐患类型" prop="type">
<el-input v-model="queryParams.type" placeholder="请选择隐患类型" />
<!-- <el-select
<el-select
v-model="queryParams.type"
placeholder="请选择隐患类型"
clearable
@ -22,7 +21,7 @@
:label="dict.label"
:value="dict.value"
/>
</el-select> -->
</el-select>
</el-form-item>
<el-form-item label="隐患名称" prop="riskName">
<el-input
@ -88,9 +87,9 @@
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="隐患类型" align="center" prop="type">
<!-- <template slot-scope="scope">
<template slot-scope="scope">
<dict-tag :options="dict.type.tc_yh_type" :value="scope.row.type" />
</template> -->
</template>
</el-table-column>
<el-table-column label="隐患名称" align="center" prop="riskName" />
<el-table-column label="等级" align="center" prop="level">
@ -193,15 +192,14 @@
</el-col>
<el-col :span="12">
<el-form-item label="隐患类型" prop="type">
<el-input v-model="form.type" placeholder="请选择隐患类型" />
<!-- <el-select v-model="form.type" placeholder="请选择隐患类型">
<el-select v-model="form.type" placeholder="请选择隐患类型">
<el-option
v-for="dict in dict.type.tc_yh_type"
:key="dict.value"
:label="dict.label"
:value="parseInt(dict.value)"
></el-option>
</el-select> -->
</el-select>
</el-form-item>
</el-col>
</el-row>
@ -269,14 +267,14 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="通报时间" prop="startTime">
<el-form-item label="隐患开始时间" prop="startTime">
<el-date-picker
clearable
size="small"
v-model="form.startTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择通报时间"
placeholder="选择隐患开始时间"
>
</el-date-picker>
</el-form-item>
@ -284,7 +282,7 @@
</el-row>
<el-row>
<el-col :span="12">
<!-- <el-form-item label="隐患结束时间" prop="endTime">
<el-form-item label="隐患结束时间" prop="endTime">
<el-date-picker
clearable
size="small"
@ -294,7 +292,7 @@
placeholder="选择隐患结束时间"
>
</el-date-picker>
</el-form-item> -->
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="附件上传" prop="fileName">
@ -330,8 +328,7 @@
}}</el-descriptions-item>
<el-descriptions-item label="隐患类型">
<!-- <dict-tag :options="dict.type.tc_yh_type" :value="form.type" /> -->
{{ form.type }}
<dict-tag :options="dict.type.tc_yh_type" :value="form.type" />
</el-descriptions-item>
<el-descriptions-item label="单位名称">{{
@ -373,13 +370,13 @@
form.depName
}}</el-descriptions-item>
<el-descriptions-item label="通报时间">{{
<el-descriptions-item label="隐患开始时间">{{
form.startTime
}}</el-descriptions-item>
<!-- <el-descriptions-item label="隐患结束时间">{{
<el-descriptions-item label="隐患结束时间">{{
form.endTime
}}</el-descriptions-item> -->
}}</el-descriptions-item>
</el-descriptions>
<FileView :fileList="fileList" />
</el-dialog>

@ -1,377 +0,0 @@
<template>
<div class="container-main" ref="main">
<div class="search-hearder" ref="topSearch">
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="auto"
>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="layui-table-tool" ref="tableTool">
<el-button
v-show="countyList.length < 6"
type="primary"
size="mini"
@click="handleAdd()"
v-hasPermi="['zongzhi:county:add']"
>新增</el-button
>
<el-button
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['zongzhi:county:edit']"
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['zongzhi:county:remove']"
>删除</el-button
>
<el-button
type="warning"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['zongzhi:county:export']"
>导出</el-button
>
</div>
<el-table
v-loading="loading"
:data="countyList"
:height="tableHeigth"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="类型名称" align="center" prop="typeName" />
<el-table-column label="数量" align="center" prop="totalNum" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['zongzhi:county:list']"
>
查看
</el-button>
<el-button
type="success"
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['zongzhi:county:edit']"
>修改</el-button
>
<el-button
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['zongzhi:county:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改安全隐患统计对话框 -->
<el-dialog
:visible.sync="open"
width="500px"
append-to-body
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="auto"
class="dialog-from"
>
<el-form-item label="类型名称" prop="typeName">
<el-input v-model="form.typeName" placeholder="请输入类型名称" />
</el-form-item>
<el-form-item label="数量" prop="totalNum">
<el-input v-model="form.totalNum" placeholder="请输入数量" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<!--查看安全隐患统计详情页-->
<el-dialog
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<el-descriptions
title="安全隐患统计"
:column="2"
border
labelClassName="desLable"
>
<el-descriptions-item label="类型名称">{{
form.typeName
}}</el-descriptions-item>
<el-descriptions-item label="数量">{{
form.totalNum
}}</el-descriptions-item>
</el-descriptions>
</el-dialog>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import {
listCounty,
getCounty,
delCounty,
addCounty,
updateCounty,
exportCounty,
} from "@/api/zongzhi/netSecurity/SafetyYhTj/index.js";
export default {
computed: {
...mapGetters(["townList"]),
},
name: "County",
//
data() {
return {
tableHeigth: 0,
//
infoOpen: false,
//
infoTitle: "",
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
countyList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
},
//
form: {},
//
rules: {},
};
},
created() {
// //
this.$nextTick(() => {
this.tableHeigth =
this.$refs.main.offsetHeight -
(this.$refs.topSearch.offsetHeight +
this.$refs.tableTool.offsetHeight) -
46;
this.getList();
});
},
methods: {
/** 查询安全隐患统计列表 */
getList() {
this.loading = true;
listCounty(this.queryParams).then((response) => {
this.countyList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
areaId: null,
typeName: null,
totalNum: null,
createId: null,
createBy: null,
createTime: null,
updateId: null,
updateBy: null,
updateTime: null,
remark: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
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;
getCounty(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看安全隐患统计详情";
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加安全隐患统计";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getCounty(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改安全隐患统计";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateCounty(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addCounty(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm(
'是否确认删除安全隐患统计编号为"' + ids + '"的数据项?',
"警告",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(function () {
return delCounty(ids);
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm("是否确认导出所有安全隐患统计数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.download(
"/zongzhi/county/export",
{
...this.queryParams,
},
"安全隐患统计_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
})
.catch(() => {});
},
},
};
</script>

@ -91,7 +91,7 @@
<span>{{ parseTime(scope.row.attackTime, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
<el-table-column label="攻击源IP" align="center" prop="sourceIp" />
<el-table-column label="攻击源ID" align="center" prop="sourceIp" />
<el-table-column label="攻击类型" align="center" prop="attackType">
<template slot-scope="scope">
<dict-tag
@ -349,7 +349,7 @@
form.attackTime
}}</el-descriptions-item>
<el-descriptions-item label="攻击源IP">{{
<el-descriptions-item label="攻击源ID">{{
form.sourceIp
}}</el-descriptions-item>

@ -1,3 +1,11 @@
<!--
* @Descripttion:
* @version:
* @Author: JC9527
* @Date: 2023-08-28 13:56:14
* @LastEditors: JC9527
* @LastEditTime: 2023-08-28 13:56:39
-->
<template>
<div class="container-main" ref="main">
<div class="search-hearder" ref="topSearch">
@ -101,17 +109,7 @@
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope">
{{ $filterTown(JSON.parse(scope.row.areaId)) }}
</template>
</el-table-column>
<el-table-column
label="舆情名称"
align="center"
prop="sentimentName"
:show-overflow-tooltip="true"
/>
<el-table-column label="舆情名称" align="center" prop="sentimentName" />
<el-table-column label="部门名称" align="center" prop="depName" />
<el-table-column
label="发布时间"
@ -389,26 +387,8 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="是否提示单">
<el-select
v-model="form.reminder"
placeholder="请选择是否是提示单"
>
<el-option
v-for="dict in dict.type.tc_yes_no"
:key="dict.value"
:label="dict.label"
:value="parseInt(dict.value)"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="舆情报告类型">
<el-select
v-model="form.sentimentReportType"
placeholder="请选择舆情报告类型"
>
<el-form-item label="舆情报告类型" prop="source">
<el-select v-model="form.sentimentReportType" placeholder="请选择舆情报告类型">
<el-option
v-for="dict in dict.type.tc_yqbg_type"
:key="dict.value"
@ -419,7 +399,6 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="附件上传" prop="fileName">
@ -534,7 +513,7 @@ export default {
"tc_yes_no",
"tc_event_type",
"tc_yq_type",
"tc_yqbg_type",
"tc_yqbg_type"
],
data() {
return {
@ -578,6 +557,19 @@ export default {
form: {},
//
rules: {},
//
yqbgType:[
{
label:'专报',
value:'1'
},{
label:'月报',
value:'2'
},{
label:'深度报告',
value:'3'
}
]
};
},
created() {
@ -661,7 +653,8 @@ export default {
updateTime: null,
remark: null,
reminder: null,
sentimentReportType: null,
};
this.fileList = [];
this.resetForm("form");

Loading…
Cancel
Save