diff --git a/.env.development b/.env.development index 02df1c9..49e4384 100644 --- a/.env.development +++ b/.env.development @@ -11,7 +11,7 @@ ENV = 'development' VUE_APP_BASE_API = 'http://39.101.188.84:9027' #局域网 -# VUE_APP_BASE_API = 'http://192.168.0.108:9027' +# VUE_APP_BASE_API = 'http://192.168.0.109:9027' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/zongzhi/netSecurity/DataSourceTj/index.js b/src/api/zongzhi/netSecurity/DataSourceTj/index.js new file mode 100644 index 0000000..8e9178e --- /dev/null +++ b/src/api/zongzhi/netSecurity/DataSourceTj/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询数据来源统计列表 +export function listSourceTj(query) { + return request({ + url: "/zongzhi/sourceTj/list", + method: "get", + params: query, + }); +} + +// 查询数据来源统计详细 +export function getSourceTj(id) { + return request({ + url: "/zongzhi/sourceTj/" + id, + method: "get", + }); +} + +// 新增数据来源统计 +export function addSourceTj(data) { + return request({ + url: "/zongzhi/sourceTj", + method: "post", + data: data, + }); +} + +// 修改数据来源统计 +export function updateSourceTj(data) { + return request({ + url: "/zongzhi/sourceTj", + method: "put", + data: data, + }); +} + +// 删除数据来源统计 +export function delSourceTj(id) { + return request({ + url: "/zongzhi/sourceTj/" + id, + method: "delete", + }); +} + +// 导出数据来源统计 +export function exportSourceTj(data) { + return request({ + url: "/zongzhi/sourceTj/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/netSecurity/sgjtj/index.js b/src/api/zongzhi/netSecurity/sgjtj/index.js new file mode 100644 index 0000000..9a1b3c3 --- /dev/null +++ b/src/api/zongzhi/netSecurity/sgjtj/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询安全监测受攻击统计列表 +export function listTj(query) { + return request({ + url: "/zongzhi/tj/list", + method: "get", + params: query, + }); +} + +// 查询安全监测受攻击统计详细 +export function getTj(id) { + return request({ + url: "/zongzhi/tj/" + id, + method: "get", + }); +} + +// 新增安全监测受攻击统计 +export function addTj(data) { + return request({ + url: "/zongzhi/tj", + method: "post", + data: data, + }); +} + +// 修改安全监测受攻击统计 +export function updateTj(data) { + return request({ + url: "/zongzhi/tj", + method: "put", + data: data, + }); +} + +// 删除安全监测受攻击统计 +export function delTj(id) { + return request({ + url: "/zongzhi/tj/" + id, + method: "delete", + }); +} + +// 导出安全监测受攻击统计 +export function exportTj(data) { + return request({ + url: "/zongzhi/tj/export", + method: "post", + data, + }); +} diff --git a/src/utils/request.js b/src/utils/request.js index da739a2..204846e 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -6,6 +6,7 @@ import errorCode from "@/utils/errorCode"; import { tansParams, blobValidate } from "@/utils/ruoyi"; import cache from "@/plugins/cache"; import { saveAs } from "file-saver"; +import router from "@/router"; let downloadLoadingInstance; // 是否显示重新登录 @@ -111,7 +112,7 @@ service.interceptors.response.use( .then(() => { isRelogin.show = false; store.dispatch("LogOut").then(() => { - this.$router.replace("/login"); + router.replace("/login"); }); }) .catch(() => { diff --git a/src/views/login.vue b/src/views/login.vue index d21fc13..535c1cf 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,6 +1,11 @@ diff --git a/src/views/netManage/enterpriseMl/index.vue b/src/views/netManage/enterpriseMl/index.vue index dd9d529..6eb9b22 100644 --- a/src/views/netManage/enterpriseMl/index.vue +++ b/src/views/netManage/enterpriseMl/index.vue @@ -110,6 +110,14 @@ prop="productName" /> + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询重点企业名录列表 */ getList() { this.loading = true; diff --git a/src/views/netManage/netPlatform/index.vue b/src/views/netManage/netPlatform/index.vue index 7faa92c..858284c 100644 --- a/src/views/netManage/netPlatform/index.vue +++ b/src/views/netManage/netPlatform/index.vue @@ -76,6 +76,14 @@ + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询网络平台列表 */ getList() { this.loading = true; diff --git a/src/views/netManage/netReport/index.vue b/src/views/netManage/netReport/index.vue index daf0eb2..211691e 100644 --- a/src/views/netManage/netReport/index.vue +++ b/src/views/netManage/netReport/index.vue @@ -126,7 +126,6 @@ - + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询网络举报列表 */ getList() { this.loading = true; diff --git a/src/views/netManage/qlzx/index.vue b/src/views/netManage/qlzx/index.vue index 2cea4c1..09f7b26 100644 --- a/src/views/netManage/qlzx/index.vue +++ b/src/views/netManage/qlzx/index.vue @@ -121,6 +121,14 @@ /> + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询清朗专项列表 */ getList() { this.loading = true; diff --git a/src/views/netManage/qlzxTj/index.vue b/src/views/netManage/qlzxTj/index.vue index 97e856d..ee51877 100644 --- a/src/views/netManage/qlzxTj/index.vue +++ b/src/views/netManage/qlzxTj/index.vue @@ -93,6 +93,14 @@ + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询清郎专项行动数据统计列表 */ getList() { this.loading = true; diff --git a/src/views/netManage/supervise/index.vue b/src/views/netManage/supervise/index.vue index d4ddc70..d661b64 100644 --- a/src/views/netManage/supervise/index.vue +++ b/src/views/netManage/supervise/index.vue @@ -97,6 +97,14 @@ /> + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询重点领域监管列表 */ getList() { this.loading = true; diff --git a/src/views/netManage/workDynamic/index.vue b/src/views/netManage/workDynamic/index.vue index 8dc4fef..7af4f55 100644 --- a/src/views/netManage/workDynamic/index.vue +++ b/src/views/netManage/workDynamic/index.vue @@ -99,6 +99,14 @@ {{ parseTime(scope.row.fabuTime, "{y}-{m}-{d}") }} + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询工作动态列表 */ getList() { this.loading = true; diff --git a/src/views/netManage/workItem/index.vue b/src/views/netManage/workItem/index.vue index 5b51e42..9b47c0f 100644 --- a/src/views/netManage/workItem/index.vue +++ b/src/views/netManage/workItem/index.vue @@ -115,7 +115,7 @@ - + + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询安全隐患列表 */ getList() { this.loading = true; diff --git a/src/views/netSecurity/SecurityCheck/index.vue b/src/views/netSecurity/SecurityCheck/index.vue index 4306c7c..31886d9 100644 --- a/src/views/netSecurity/SecurityCheck/index.vue +++ b/src/views/netSecurity/SecurityCheck/index.vue @@ -116,6 +116,14 @@ + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询安全检测列表 */ getList() { this.loading = true; diff --git a/src/views/netSecurity/mapData/index.vue b/src/views/netSecurity/mapData/index.vue index 60a9f46..0f2a930 100644 --- a/src/views/netSecurity/mapData/index.vue +++ b/src/views/netSecurity/mapData/index.vue @@ -73,6 +73,14 @@ + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询地区受攻击列表 */ getList() { this.loading = true; diff --git a/src/views/netSecurity/sgjtj/index.vue b/src/views/netSecurity/sgjtj/index.vue new file mode 100644 index 0000000..5f747ba --- /dev/null +++ b/src/views/netSecurity/sgjtj/index.vue @@ -0,0 +1,437 @@ + + + diff --git a/src/views/netSecurity/supervise/DbSteam/index.vue b/src/views/netSecurity/supervise/DbSteam/index.vue index 60131c9..1f14d40 100644 --- a/src/views/netSecurity/supervise/DbSteam/index.vue +++ b/src/views/netSecurity/supervise/DbSteam/index.vue @@ -117,6 +117,14 @@ /> + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询等保系统列表 */ getList() { this.loading = true; diff --git a/src/views/netSecurity/supervise/DbUnit/index.vue b/src/views/netSecurity/supervise/DbUnit/index.vue index 21a3dfb..ad2412c 100644 --- a/src/views/netSecurity/supervise/DbUnit/index.vue +++ b/src/views/netSecurity/supervise/DbUnit/index.vue @@ -117,6 +117,14 @@ /> + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询等保单位列表 */ getList() { this.loading = true; diff --git a/src/views/netSecurity/supervise/GovernmentWeb/index.vue b/src/views/netSecurity/supervise/GovernmentWeb/index.vue index f1857b1..5053eab 100644 --- a/src/views/netSecurity/supervise/GovernmentWeb/index.vue +++ b/src/views/netSecurity/supervise/GovernmentWeb/index.vue @@ -101,6 +101,14 @@ /> + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询政府网站列表 */ getList() { this.loading = true; diff --git a/src/views/netSecurity/supervise/IdcUnit/index.vue b/src/views/netSecurity/supervise/IdcUnit/index.vue index 9351851..9f08426 100644 --- a/src/views/netSecurity/supervise/IdcUnit/index.vue +++ b/src/views/netSecurity/supervise/IdcUnit/index.vue @@ -87,6 +87,14 @@ + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询IDC单位列表 */ getList() { this.loading = true; diff --git a/src/views/netSecurity/supervise/jgdw/index.vue b/src/views/netSecurity/supervise/jgdw/index.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/netSecurity/supervise/webjc/index.vue b/src/views/netSecurity/supervise/webjc/index.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/netSecurity/tb/index.vue b/src/views/netSecurity/tb/index.vue index 858746e..da259dd 100644 --- a/src/views/netSecurity/tb/index.vue +++ b/src/views/netSecurity/tb/index.vue @@ -128,6 +128,14 @@ {{ parseTime(scope.row.tbTime, "{y}-{m}-{d}") }} + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询通报列表 */ getList() { this.loading = true; diff --git a/src/views/netWorkYq/dtsx/index.vue b/src/views/netWorkYq/dtsx/index.vue index d075a9e..3f38252 100644 --- a/src/views/netWorkYq/dtsx/index.vue +++ b/src/views/netWorkYq/dtsx/index.vue @@ -37,7 +37,7 @@ size="mini" @click="handleAdd()" v-hasPermi="['zongzhi:sx:add']" - :disabled="isAdd" + v-show="sxList.length == 0" >新增 修改 - 删除 + 修改 - 删除 @@ -241,7 +227,7 @@ export default { // 表单校验 rules: {}, //新增按钮是否可用 - isAdd:false, + isAdd: false, }; }, created() { @@ -256,14 +242,23 @@ export default { }); }, methods: { + changeSwitch(e, id) { + let data = { + id, + isStatus: e, + }; + updateSx(data).then((res) => { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询动态筛选列表 */ getList() { this.loading = true; listSx(this.queryParams).then((response) => { - if(response.rows.length>0){ - this.isAdd=true - }else{ - this.isAdd=false + if (response.rows.length > 0) { + this.isAdd = true; + } else { + this.isAdd = false; } this.sxList = response.rows; this.total = response.total; diff --git a/src/views/netWorkYq/index.vue b/src/views/netWorkYq/index.vue index 0a070f2..230f90d 100644 --- a/src/views/netWorkYq/index.vue +++ b/src/views/netWorkYq/index.vue @@ -174,6 +174,14 @@ + + + { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询网络舆情列表 */ getList() { this.loading = true; diff --git a/src/views/netWorkYq/yqfl/index.vue b/src/views/netWorkYq/yqfl/index.vue index 8a0f308..3c85387 100644 --- a/src/views/netWorkYq/yqfl/index.vue +++ b/src/views/netWorkYq/yqfl/index.vue @@ -115,6 +115,14 @@ + + + - - + + 媒体类型 涉事数据 @@ -346,6 +354,15 @@ export default { }); }, methods: { + changeSwitch(e, id) { + let data = { + id, + isStatus: e, + }; + updateFl(data).then((res) => { + this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功"); + }); + }, /** 查询舆情分类列表 */ getList() { this.loading = true; @@ -489,7 +506,7 @@ export default { };