From 430658bf0c2d4b9d5bb600ff7f796c4b82176ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 5 Sep 2023 19:22:31 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=A1=AB=E5=85=85?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/views/login.vue | 114 ++++++++++++++++++++++++++++---------------- 2 files changed, 74 insertions(+), 42 deletions(-) diff --git a/.env.development b/.env.development index 8f16e82..694a79c 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://39.101.188.84:9027' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/views/login.vue b/src/views/login.vue index d21fc13..039f0ba 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,6 +1,11 @@ From adc50ddbca0a58530753157c899a5ef36eb2cf46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Wed, 6 Sep 2023 10:03:48 +0800 Subject: [PATCH 03/13] =?UTF-8?q?token=E8=BF=87=E6=9C=9F=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(() => { From d3221745c3461acc8402e7686b2489c85b1e5677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Sat, 9 Sep 2023 10:43:01 +0800 Subject: [PATCH 04/13] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/views/netSecurity/DataSource/index.vue | 17 +++++++++++++++++ src/views/netSecurity/supervise/jgdw/index.vue | 0 src/views/netSecurity/supervise/webjc/index.vue | 0 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/views/netSecurity/supervise/jgdw/index.vue create mode 100644 src/views/netSecurity/supervise/webjc/index.vue diff --git a/.env.development b/.env.development index 694a79c..8f16e82 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://39.101.188.84:9027' +VUE_APP_BASE_API = 'http://192.168.0.108:9027' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/views/netSecurity/DataSource/index.vue b/src/views/netSecurity/DataSource/index.vue index 91b5375..3854f00 100644 --- a/src/views/netSecurity/DataSource/index.vue +++ b/src/views/netSecurity/DataSource/index.vue @@ -467,6 +467,23 @@ export default { rules: {}, }; }, + watch: { + $route: { + // $route可以用引号,也可以不用引号 + handler(to, from) { + // console.log(to, from); + if (to.name == "DataSource") { + //不显示type 5,6 + } else if (to.name == "Jgdw") { + // 显示type5 + } else if (to.name == "Webjc") { + // 显示type6 + } + }, + deep: true, // 深度观察监听 + immediate: true, // 第一次初始化渲染就可以监听到 + }, + }, created() { // //给表格一个固定值 this.$nextTick(() => { 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 From 05d3d30a19effabda86b0a1e9d3611211dec00c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 12 Sep 2023 10:46:41 +0800 Subject: [PATCH 05/13] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/views/netSecurity/DataSource/index.vue | 1 - src/views/netSecurity/DataSourceTj/index.vue | 9 +++++++++ src/views/netSecurity/sgjtj/index.vue | 9 +++++++++ 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 src/views/netSecurity/DataSourceTj/index.vue create mode 100644 src/views/netSecurity/sgjtj/index.vue diff --git a/.env.development b/.env.development index 8f16e82..02df1c9 100644 --- a/.env.development +++ b/.env.development @@ -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://192.168.0.108:9027' +# VUE_APP_BASE_API = 'http://192.168.0.108:9027' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/views/netSecurity/DataSource/index.vue b/src/views/netSecurity/DataSource/index.vue index 3854f00..d6e7a08 100644 --- a/src/views/netSecurity/DataSource/index.vue +++ b/src/views/netSecurity/DataSource/index.vue @@ -471,7 +471,6 @@ export default { $route: { // $route可以用引号,也可以不用引号 handler(to, from) { - // console.log(to, from); if (to.name == "DataSource") { //不显示type 5,6 } else if (to.name == "Jgdw") { diff --git a/src/views/netSecurity/DataSourceTj/index.vue b/src/views/netSecurity/DataSourceTj/index.vue new file mode 100644 index 0000000..588c4f0 --- /dev/null +++ b/src/views/netSecurity/DataSourceTj/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/netSecurity/sgjtj/index.vue b/src/views/netSecurity/sgjtj/index.vue new file mode 100644 index 0000000..e22a953 --- /dev/null +++ b/src/views/netSecurity/sgjtj/index.vue @@ -0,0 +1,9 @@ + + + + + From 051ee3f204285264a20ae6cffc7a14b955204ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 12 Sep 2023 16:26:36 +0800 Subject: [PATCH 06/13] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=E4=B8=8E=E7=9B=91=E7=AE=A1=E5=AF=B9=E8=B1=A1=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/netSecurity/DataSource/index.vue | 70 +++++++++++++++++----- 1 file changed, 55 insertions(+), 15 deletions(-) diff --git a/src/views/netSecurity/DataSource/index.vue b/src/views/netSecurity/DataSource/index.vue index d6e7a08..2f490fb 100644 --- a/src/views/netSecurity/DataSource/index.vue +++ b/src/views/netSecurity/DataSource/index.vue @@ -16,11 +16,12 @@ size="small" > + v-show="filterShow(dict.dictValue)" + v-for="dict in sourceType" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="parseInt(dict.dictValue)" + > @@ -223,10 +224,11 @@ @@ -423,7 +425,7 @@ export default { }, name: "Source", //注释字典 - dicts: ["tc_yes_no", "tc_data_source_type", "tc_net_safety_level", "tc_os"], + dicts: ["tc_yes_no", "tc_net_safety_level", "tc_data_source_type", "tc_os"], data() { return { tableHeigth: 0, @@ -456,15 +458,15 @@ export default { pageNum: 1, pageSize: 20, type: null, - assetName: null, - affUnit: null, + notType: null, }, // 表单参数 form: {}, // 表单校验 rules: {}, + sourceType: [], }; }, watch: { @@ -472,6 +474,7 @@ export default { // $route可以用引号,也可以不用引号 handler(to, from) { if (to.name == "DataSource") { + this.queryParams.notType = "5,6"; //不显示type 5,6 } else if (to.name == "Jgdw") { // 显示type5 @@ -484,6 +487,9 @@ export default { }, }, created() { + this.getDicts("tc_data_source_type").then((response) => { + this.sourceType = response.data; + }); // //给表格一个固定值 this.$nextTick(() => { this.tableHeigth = @@ -495,6 +501,37 @@ export default { }); }, methods: { + /**过滤显示 */ + filterShow(value) { + let routeName = this.$route.name; + + if (routeName == "DataSource") { + if (value == 3 || value == 4 || value == 7) { + return true; + } else { + return false; + } + } else if (routeName == "Jgdw") { + if (value == 3 || value == 4 || value == 6 || value == 7) { + return false; + } else { + return true; + } + } else if (routeName == "Webjc") { + if (value == 3 || value == 4 || value == 5 || value == 7) { + return false; + } else { + return true; + } + } + }, + /**过滤显示 */ + filterTitle(name, key) { + let routeName = this.$route.meta.title; + + this[key] = name + routeName; + console.log(this.infoTitle); + }, /** 查询数据来源列表 */ getList() { this.loading = true; @@ -578,14 +615,16 @@ export default { response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.infoOpen = true; - this.infoTitle = "查看数据来源详情"; + // this.infoTitle = "查看数据来源详情"; + this.filterTitle("查看", "infoTitle"); }); }, /** 新增按钮操作 */ handleAdd() { this.reset(); this.open = true; - this.title = "添加数据来源"; + // this.title = "添加数据来源"; + this.filterTitle("添加", "title"); }, /** 修改按钮操作 */ handleUpdate(row) { @@ -595,7 +634,8 @@ export default { response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; - this.title = "修改数据来源"; + // this.title = "修改数据来源"; + this.filterTitle("修改", "title"); }); }, /** 提交按钮 */ From ed5b0b795ce0529965531a27a2ce197fb63cefa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 12 Sep 2023 16:29:09 +0800 Subject: [PATCH 07/13] +1 --- src/views/netSecurity/DataSource/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/netSecurity/DataSource/index.vue b/src/views/netSecurity/DataSource/index.vue index 2f490fb..df8baf1 100644 --- a/src/views/netSecurity/DataSource/index.vue +++ b/src/views/netSecurity/DataSource/index.vue @@ -477,8 +477,10 @@ export default { this.queryParams.notType = "5,6"; //不显示type 5,6 } else if (to.name == "Jgdw") { + this.queryParams.notType = "3,4,6,7"; // 显示type5 } else if (to.name == "Webjc") { + this.queryParams.notType = "3,4,5,7"; // 显示type6 } }, From 7140557b02184f19f48439a97b29b82bbfa8d24c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Wed, 13 Sep 2023 10:54:43 +0800 Subject: [PATCH 08/13] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=A4=E7=A7=8D?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .../zongzhi/netSecurity/DataSourceTj/index.js | 53 +++ src/api/zongzhi/netSecurity/sgjtj/index.js | 53 +++ src/views/netSecurity/DataSourceTj/index.vue | 377 +++++++++++++++- src/views/netSecurity/sgjtj/index.vue | 419 +++++++++++++++++- 5 files changed, 896 insertions(+), 10 deletions(-) create mode 100644 src/api/zongzhi/netSecurity/DataSourceTj/index.js create mode 100644 src/api/zongzhi/netSecurity/sgjtj/index.js diff --git a/.env.development b/.env.development index 02df1c9..19487bd 100644 --- a/.env.development +++ b/.env.development @@ -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://192.168.0.108:9027' +VUE_APP_BASE_API = 'http://localhost: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/views/netSecurity/DataSourceTj/index.vue b/src/views/netSecurity/DataSourceTj/index.vue index 588c4f0..c2a7a42 100644 --- a/src/views/netSecurity/DataSourceTj/index.vue +++ b/src/views/netSecurity/DataSourceTj/index.vue @@ -1,9 +1,378 @@ +import { mapGetters } from "vuex"; +import { + listSourceTj, + getSourceTj, + delSourceTj, + addSourceTj, + updateSourceTj, + exportSourceTj, +} from "@/api/zongzhi/netSecurity/DataSourceTj/index.js"; +export default { + computed: { + ...mapGetters(["townList"]), + }, + name: "SourceTj", + //注释字典 + data() { + return { + tableHeigth: 0, + //查看详情 + infoOpen: false, + //详情标题 + infoTitle: "", + // 遮罩层 + loading: true, + // 导出遮罩层 + exportLoading: false, + // 选中数组 + ids: [], + // 非单个禁用 + single: true, + // 非多个禁用 + multiple: true, + // 显示搜索条件 + showSearch: true, + // 总条数 + total: 0, + // 数据来源统计表格数据 + sourceTjList: [], + // 弹出层标题 + 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; + listSourceTj(this.queryParams).then((response) => { + this.sourceTjList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + // 取消按钮 + cancel() { + this.open = false; + this.reset(); + }, + // 表单重置 + reset() { + this.form = { + id: null, + + areaId: null, + + lable1: null, + + lable2: 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; + getSourceTj(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; + getSourceTj(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) { + updateSourceTj(this.form).then((response) => { + this.$modal.msgSuccess("修改成功"); + this.open = false; + this.getList(); + }); + } else { + addSourceTj(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 delSourceTj(ids); + }) + .then(() => { + this.getList(); + this.msgSuccess("删除成功"); + }) + .catch(() => {}); + }, + /** 导出按钮操作 */ + handleExport() { + const queryParams = this.queryParams; + this.$confirm("是否确认导出所有数据来源统计数据项?", "警告", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.download( + "/zongzhi/sourceTj/export", + { + ...this.queryParams, + }, + "数据来源统计_" + new Date().getTime() + ".xlsx" + ); + this.exportLoading = false; + }) + .catch(() => {}); + }, + }, +}; + diff --git a/src/views/netSecurity/sgjtj/index.vue b/src/views/netSecurity/sgjtj/index.vue index e22a953..693dd55 100644 --- a/src/views/netSecurity/sgjtj/index.vue +++ b/src/views/netSecurity/sgjtj/index.vue @@ -1,9 +1,420 @@ +import { mapGetters } from "vuex"; +import { + listTj, + getTj, + delTj, + addTj, + updateTj, + exportTj, +} from "@/api/zongzhi/netSecurity/sgjtj/index.js"; +export default { + computed: { + ...mapGetters(["townList"]), + }, + name: "Tj", + //注释字典 + data() { + return { + tableHeigth: 0, + //查看详情 + infoOpen: false, + //详情标题 + infoTitle: "", + // 遮罩层 + loading: true, + // 导出遮罩层 + exportLoading: false, + // 选中数组 + ids: [], + // 非单个禁用 + single: true, + // 非多个禁用 + multiple: true, + // 显示搜索条件 + showSearch: true, + // 总条数 + total: 0, + // 安全监测受攻击统计表格数据 + tjList: [], + // 弹出层标题 + title: "", + // 是否显示弹出层 + open: false, + // 查询参数 + queryParams: { + pageNum: 1, + pageSize: 10, + totalSum: null, + + rqSum: null, + }, + // 表单参数 + 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; + listTj(this.queryParams).then((response) => { + this.tjList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + // 取消按钮 + cancel() { + this.open = false; + this.reset(); + }, + // 表单重置 + reset() { + this.form = { + id: null, + + townId: null, + + villageId: null, + + totalSum: null, - + rqSum: null, + + eySum: null, + + jmrSum: 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; + getTj(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; + getTj(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) { + updateTj(this.form).then((response) => { + this.$modal.msgSuccess("修改成功"); + this.open = false; + this.getList(); + }); + } else { + addTj(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 delTj(ids); + }) + .then(() => { + this.getList(); + this.msgSuccess("删除成功"); + }) + .catch(() => {}); + }, + /** 导出按钮操作 */ + handleExport() { + const queryParams = this.queryParams; + this.$confirm("是否确认导出所有安全监测受攻击统计数据项?", "警告", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.download( + "/zongzhi/tj/export", + { + ...this.queryParams, + }, + "安全监测受攻击统计_" + new Date().getTime() + ".xlsx" + ); + this.exportLoading = false; + }) + .catch(() => {}); + }, + }, +}; + From b5f729e8627a340c5f36d873b74f43afa27158ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Wed, 13 Sep 2023 10:55:10 +0800 Subject: [PATCH 09/13] +1 --- src/views/netSecurity/DataSourceTj/index.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/netSecurity/DataSourceTj/index.vue b/src/views/netSecurity/DataSourceTj/index.vue index c2a7a42..1f2d09a 100644 --- a/src/views/netSecurity/DataSourceTj/index.vue +++ b/src/views/netSecurity/DataSourceTj/index.vue @@ -63,7 +63,6 @@ @selection-change="handleSelectionChange" > - Date: Fri, 15 Sep 2023 09:37:43 +0800 Subject: [PATCH 10/13] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=90=AF=E7=94=A8=E4=B8=8E=E7=A6=81=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/views/netManage/enterpriseMl/index.vue | 5 +++++ src/views/netManage/netPlatform/index.vue | 5 +++++ src/views/netManage/netReport/index.vue | 6 +++++- src/views/netManage/qlzx/index.vue | 5 +++++ src/views/netManage/qlzxTj/index.vue | 5 +++++ src/views/netManage/supervise/index.vue | 5 +++++ src/views/netManage/workDynamic/index.vue | 5 +++++ src/views/netManage/workItem/index.vue | 7 ++++++- src/views/netSecurity/DataSource/index.vue | 19 ++----------------- src/views/netSecurity/DataSourceTj/index.vue | 5 +++++ src/views/netSecurity/SafetyYh/index.vue | 5 +++++ src/views/netSecurity/SecurityCheck/index.vue | 5 +++++ src/views/netSecurity/mapData/index.vue | 5 +++++ src/views/netSecurity/sgjtj/index.vue | 5 +++++ .../netSecurity/supervise/DbSteam/index.vue | 5 +++++ .../netSecurity/supervise/DbUnit/index.vue | 5 +++++ .../supervise/GovernmentWeb/index.vue | 5 +++++ .../netSecurity/supervise/IdcUnit/index.vue | 5 +++++ src/views/netWorkYq/dtsx/index.vue | 15 ++++++++++----- src/views/netWorkYq/index.vue | 5 +++++ src/views/netWorkYq/yqfl/index.vue | 11 ++++++++--- src/views/netWorkYq/yqzst/index.vue | 5 +++++ src/views/netZoology/bjsjzb/index.vue | 5 +++++ src/views/netZoology/netAppraiser/index.vue | 5 +++++ src/views/netZoology/netArticle/index.vue | 5 +++++ src/views/netZoology/netMqPrincipal/index.vue | 5 +++++ src/views/netZoology/netP/index.vue | 5 +++++ src/views/netZoology/netSafety/index.vue | 5 +++++ .../netZoology/netSafetyZcUnit/index.vue | 5 +++++ src/views/netZoology/netVolunteer/index.vue | 5 +++++ src/views/netZoology/wpywcl/index.vue | 5 +++++ 32 files changed, 162 insertions(+), 28 deletions(-) diff --git a/.env.development b/.env.development index 19487bd..8e69558 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://localhost:9027' +VUE_APP_BASE_API = 'http://192.168.0.109:9027' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/views/netManage/enterpriseMl/index.vue b/src/views/netManage/enterpriseMl/index.vue index dd9d529..00e559d 100644 --- a/src/views/netManage/enterpriseMl/index.vue +++ b/src/views/netManage/enterpriseMl/index.vue @@ -110,6 +110,11 @@ prop="productName" /> + + + + + + - + + + + + + + + + + + + {{ parseTime(scope.row.fabuTime, "{y}-{m}-{d}") }} + + + - + + + + + + + + + + + + + + + + { - 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 0b900a8..bf6adce 100644 --- a/src/views/netWorkYq/index.vue +++ b/src/views/netWorkYq/index.vue @@ -166,6 +166,11 @@ + + + + + + - - + + 媒体类型 涉事数据 @@ -489,7 +494,7 @@ export default { };