From eeef7b71069baef093d2b820f2133cc41d3d1284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Mon, 14 Aug 2023 15:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zongzhi/netManage/enterpriseMl/index.js | 53 ++ .../zongzhi/netManage/netPlatform/index.js | 53 ++ src/api/zongzhi/netManage/netReport/index.js | 53 ++ src/layout/components/TagsView/index.vue | 224 ++++--- src/views/netManage/enterpriseMl/index.vue | 530 +++++++++++++++- src/views/netManage/netPlatform/index.vue | 494 ++++++++++++++- src/views/netManage/netReport/index.vue | 564 +++++++++++++++++- src/views/netWorkYq/index.vue | 12 +- 8 files changed, 1868 insertions(+), 115 deletions(-) diff --git a/src/api/zongzhi/netManage/enterpriseMl/index.js b/src/api/zongzhi/netManage/enterpriseMl/index.js index e69de29..ab19c32 100644 --- a/src/api/zongzhi/netManage/enterpriseMl/index.js +++ b/src/api/zongzhi/netManage/enterpriseMl/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询重点企业名录列表 +export function listEnterprise(query) { + return request({ + url: "/zongzhi/enterprise/list", + method: "get", + params: query, + }); +} + +// 查询重点企业名录详细 +export function getEnterprise(id) { + return request({ + url: "/zongzhi/enterprise/" + id, + method: "get", + }); +} + +// 新增重点企业名录 +export function addEnterprise(data) { + return request({ + url: "/zongzhi/enterprise", + method: "post", + data: data, + }); +} + +// 修改重点企业名录 +export function updateEnterprise(data) { + return request({ + url: "/zongzhi/enterprise", + method: "put", + data: data, + }); +} + +// 删除重点企业名录 +export function delEnterprise(id) { + return request({ + url: "/zongzhi/enterprise/" + id, + method: "delete", + }); +} + +// 导出重点企业名录 +export function exportEnterprise(data) { + return request({ + url: "/zongzhi/enterprise/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/netManage/netPlatform/index.js b/src/api/zongzhi/netManage/netPlatform/index.js index e69de29..148388c 100644 --- a/src/api/zongzhi/netManage/netPlatform/index.js +++ b/src/api/zongzhi/netManage/netPlatform/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询网络平台列表 +export function listPingtai(query) { + return request({ + url: "/zongzhi/pingtai/list", + method: "get", + params: query, + }); +} + +// 查询网络平台详细 +export function getPingtai(id) { + return request({ + url: "/zongzhi/pingtai/" + id, + method: "get", + }); +} + +// 新增网络平台 +export function addPingtai(data) { + return request({ + url: "/zongzhi/pingtai", + method: "post", + data: data, + }); +} + +// 修改网络平台 +export function updatePingtai(data) { + return request({ + url: "/zongzhi/pingtai", + method: "put", + data: data, + }); +} + +// 删除网络平台 +export function delPingtai(id) { + return request({ + url: "/zongzhi/pingtai/" + id, + method: "delete", + }); +} + +// 导出网络平台 +export function exportPingtai(data) { + return request({ + url: "/zongzhi/pingtai/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/netManage/netReport/index.js b/src/api/zongzhi/netManage/netReport/index.js index e69de29..350a1b3 100644 --- a/src/api/zongzhi/netManage/netReport/index.js +++ b/src/api/zongzhi/netManage/netReport/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询网络举报列表 +export function listReport(query) { + return request({ + url: "/zongzhi/report/list", + method: "get", + params: query, + }); +} + +// 查询网络举报详细 +export function getReport(id) { + return request({ + url: "/zongzhi/report/" + id, + method: "get", + }); +} + +// 新增网络举报 +export function addReport(data) { + return request({ + url: "/zongzhi/report", + method: "post", + data: data, + }); +} + +// 修改网络举报 +export function updateReport(data) { + return request({ + url: "/zongzhi/report", + method: "put", + data: data, + }); +} + +// 删除网络举报 +export function delReport(id) { + return request({ + url: "/zongzhi/report/" + id, + method: "delete", + }); +} + +// 导出网络举报 +export function exportReport(data) { + return request({ + url: "/zongzhi/report/export", + method: "post", + data, + }); +} diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 96585a5..629c7f7 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -1,36 +1,60 @@ + enterpriseType: null, + + networkYewu: null, + + jianguanBumen: null, + + address: null, + + linkMan: null, + + phoneNum: null, + + productName: null, + + dns: 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; + getEnterprise(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; + getEnterprise(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) { + updateEnterprise(this.form).then((response) => { + this.$modal.msgSuccess("修改成功"); + this.open = false; + this.getList(); + }); + } else { + addEnterprise(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 delEnterprise(ids); + }) + .then(() => { + this.getList(); + this.msgSuccess("删除成功"); + }) + .catch(() => {}); + }, + /** 导出按钮操作 */ + handleExport() { + const queryParams = this.queryParams; + this.$confirm("是否确认导出所有重点企业名录数据项?", "警告", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.download( + "/zongzhi/enterprise/export", + { + ...this.queryParams, + }, + "重点企业名录_" + new Date().getTime() + ".xlsx" + ); + this.exportLoading = false; + }) + .catch(() => {}); + }, + }, +}; + diff --git a/src/views/netManage/netPlatform/index.vue b/src/views/netManage/netPlatform/index.vue index 596f0a0..fdf7800 100644 --- a/src/views/netManage/netPlatform/index.vue +++ b/src/views/netManage/netPlatform/index.vue @@ -1,9 +1,495 @@ +import { mapGetters } from "vuex"; +import { + listPingtai, + getPingtai, + delPingtai, + addPingtai, + updatePingtai, + exportPingtai, +} from "@/api/zongzhi/netManage/netPlatform/index.js"; +export default { + computed: { + ...mapGetters(["townList"]), + }, + name: "Pingtai", + //注释字典 + dicts: ["tc_yq_media", "tc_net_sx"], + data() { + return { + tableHeigth: 0, + //查看详情 + infoOpen: false, + //详情标题 + infoTitle: "", + // 遮罩层 + loading: true, + // 导出遮罩层 + exportLoading: false, + // 选中数组 + ids: [], + // 非单个禁用 + single: true, + // 非多个禁用 + multiple: true, + // 显示搜索条件 + showSearch: true, + // 总条数 + total: 0, + // 网络平台表格数据 + pingtaiList: [], + // 弹出层标题 + 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; + listPingtai(this.queryParams).then((response) => { + this.pingtaiList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + // 取消按钮 + cancel() { + this.open = false; + this.reset(); + }, + // 表单重置 + reset() { + this.form = { + id: null, + + areaId: null, + + type: null, + + name: null, - + props: null, + + fansNum: null, + + dns: null, + + ipAddress: null, + + licenceNum: null, + + authentication: null, + + area: null, + + intro: 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; + getPingtai(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; + getPingtai(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) { + updatePingtai(this.form).then((response) => { + this.$modal.msgSuccess("修改成功"); + this.open = false; + this.getList(); + }); + } else { + addPingtai(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 delPingtai(ids); + }) + .then(() => { + this.getList(); + this.msgSuccess("删除成功"); + }) + .catch(() => {}); + }, + /** 导出按钮操作 */ + handleExport() { + const queryParams = this.queryParams; + this.$confirm("是否确认导出所有网络平台数据项?", "警告", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.download( + "/zongzhi/pingtai/export", + { + ...this.queryParams, + }, + "网络平台_" + new Date().getTime() + ".xlsx" + ); + this.exportLoading = false; + }) + .catch(() => {}); + }, + }, +}; + diff --git a/src/views/netManage/netReport/index.vue b/src/views/netManage/netReport/index.vue index 0059652..765dd2e 100644 --- a/src/views/netManage/netReport/index.vue +++ b/src/views/netManage/netReport/index.vue @@ -1,9 +1,565 @@ +import { mapGetters } from "vuex"; +import { + listReport, + getReport, + delReport, + addReport, + updateReport, + exportReport, +} from "@/api/zongzhi/netManage/netReport/index.js"; +export default { + computed: { + ...mapGetters(["townList"]), + }, + name: "Report", + //注释字典 + dicts: ["tc_steam_state", "tc_net_jb_source"], + data() { + return { + tableHeigth: 0, + //查看详情 + infoOpen: false, + //详情标题 + infoTitle: "", + // 遮罩层 + loading: true, + // 导出遮罩层 + exportLoading: false, + // 选中数组 + ids: [], + // 非单个禁用 + single: true, + // 非多个禁用 + multiple: true, + // 显示搜索条件 + showSearch: true, + // 总条数 + total: 0, + // 网络举报表格数据 + reportList: [], + // 弹出层标题 + title: "", + // 是否显示弹出层 + open: false, + // 查询参数 + queryParams: { + pageNum: 1, + pageSize: 10, + jbMan: null, + + jbTime: null, + + state: null, + + source: 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; + listReport(this.queryParams).then((response) => { + this.reportList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + // 取消按钮 + cancel() { + this.open = false; + this.reset(); + }, + // 表单重置 + reset() { + this.form = { + id: null, + + areaId: null, - + jbMan: null, + + jbdx: null, + + jbbh: null, + + jbTime: null, + + longitude: null, + + latitude: null, + + address: null, + + content: null, + + state: null, + + source: 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; + getReport(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; + getReport(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) { + updateReport(this.form).then((response) => { + this.$modal.msgSuccess("修改成功"); + this.open = false; + this.getList(); + }); + } else { + addReport(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 delReport(ids); + }) + .then(() => { + this.getList(); + this.msgSuccess("删除成功"); + }) + .catch(() => {}); + }, + /** 导出按钮操作 */ + handleExport() { + const queryParams = this.queryParams; + this.$confirm("是否确认导出所有网络举报数据项?", "警告", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.download( + "/zongzhi/report/export", + { + ...this.queryParams, + }, + "网络举报_" + new Date().getTime() + ".xlsx" + ); + this.exportLoading = false; + }) + .catch(() => {}); + }, + }, +}; + diff --git a/src/views/netWorkYq/index.vue b/src/views/netWorkYq/index.vue index 932e696..48eb49d 100644 --- a/src/views/netWorkYq/index.vue +++ b/src/views/netWorkYq/index.vue @@ -40,7 +40,7 @@ size="small" > @@ -156,7 +156,7 @@ @@ -269,7 +269,7 @@