diff --git a/.env.development b/.env.development index 02df1c9..5827c0e 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.108:9027' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/zongzhi/netManage/qlzxTj/index.js b/src/api/zongzhi/netManage/qlzxTj/index.js new file mode 100644 index 0000000..b19c6ab --- /dev/null +++ b/src/api/zongzhi/netManage/qlzxTj/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询清郎专项行动数据统计列表 +export function listQlzxxdsj(query) { + return request({ + url: "/zongzhi/qlzxxdsj/list", + method: "get", + params: query, + }); +} + +// 查询清郎专项行动数据统计详细 +export function getQlzxxdsj(id) { + return request({ + url: "/zongzhi/qlzxxdsj/" + id, + method: "get", + }); +} + +// 新增清郎专项行动数据统计 +export function addQlzxxdsj(data) { + return request({ + url: "/zongzhi/qlzxxdsj", + method: "post", + data: data, + }); +} + +// 修改清郎专项行动数据统计 +export function updateQlzxxdsj(data) { + return request({ + url: "/zongzhi/qlzxxdsj", + method: "put", + data: data, + }); +} + +// 删除清郎专项行动数据统计 +export function delQlzxxdsj(id) { + return request({ + url: "/zongzhi/qlzxxdsj/" + id, + method: "delete", + }); +} + +// 导出清郎专项行动数据统计 +export function exportQlzxxdsj(data) { + return request({ + url: "/zongzhi/qlzxxdsj/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/netWorkYq/dtsx/index.js b/src/api/zongzhi/netWorkYq/dtsx/index.js new file mode 100644 index 0000000..afa309c --- /dev/null +++ b/src/api/zongzhi/netWorkYq/dtsx/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询动态筛选列表 +export function listSx(query) { + return request({ + url: "/zongzhi/sx/list", + method: "get", + params: query, + }); +} + +// 查询动态筛选详细 +export function getSx(id) { + return request({ + url: "/zongzhi/sx/" + id, + method: "get", + }); +} + +// 新增动态筛选 +export function addSx(data) { + return request({ + url: "/zongzhi/sx", + method: "post", + data: data, + }); +} + +// 修改动态筛选 +export function updateSx(data) { + return request({ + url: "/zongzhi/sx", + method: "put", + data: data, + }); +} + +// 删除动态筛选 +export function delSx(id) { + return request({ + url: "/zongzhi/sx/" + id, + method: "delete", + }); +} + +// 导出动态筛选 +export function exportSx(data) { + return request({ + url: "/zongzhi/sx/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/netWorkYq/yqfl/index.js b/src/api/zongzhi/netWorkYq/yqfl/index.js new file mode 100644 index 0000000..6883430 --- /dev/null +++ b/src/api/zongzhi/netWorkYq/yqfl/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询舆情分类列表 +export function listFl(query) { + return request({ + url: "/zongzhi/fl/list", + method: "get", + params: query, + }); +} + +// 查询舆情分类详细 +export function getFl(id) { + return request({ + url: "/zongzhi/fl/" + id, + method: "get", + }); +} + +// 新增舆情分类 +export function addFl(data) { + return request({ + url: "/zongzhi/fl", + method: "post", + data: data, + }); +} + +// 修改舆情分类 +export function updateFl(data) { + return request({ + url: "/zongzhi/fl", + method: "put", + data: data, + }); +} + +// 删除舆情分类 +export function delFl(id) { + return request({ + url: "/zongzhi/fl/" + id, + method: "delete", + }); +} + +// 导出舆情分类 +export function exportFl(data) { + return request({ + url: "/zongzhi/fl/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/netWorkYq/yqzst/index.js b/src/api/zongzhi/netWorkYq/yqzst/index.js new file mode 100644 index 0000000..c65120a --- /dev/null +++ b/src/api/zongzhi/netWorkYq/yqzst/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询舆情走势图列表 +export function listZs(query) { + return request({ + url: "/zongzhi/zs/list", + method: "get", + params: query, + }); +} + +// 查询舆情走势图详细 +export function getZs(id) { + return request({ + url: "/zongzhi/zs/" + id, + method: "get", + }); +} + +// 新增舆情走势图 +export function addZs(data) { + return request({ + url: "/zongzhi/zs", + method: "post", + data: data, + }); +} + +// 修改舆情走势图 +export function updateZs(data) { + return request({ + url: "/zongzhi/zs", + method: "put", + data: data, + }); +} + +// 删除舆情走势图 +export function delZs(id) { + return request({ + url: "/zongzhi/zs/" + id, + method: "delete", + }); +} + +// 导出舆情走势图 +export function exportZs(data) { + return request({ + url: "/zongzhi/zs/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/netZoology/bjsjzb/index.js b/src/api/zongzhi/netZoology/bjsjzb/index.js new file mode 100644 index 0000000..50b7e81 --- /dev/null +++ b/src/api/zongzhi/netZoology/bjsjzb/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询本级上级网评指令比列 (月)列表 +export function listBjsj(query) { + return request({ + url: "/zongzhi/bjsj/list", + method: "get", + params: query, + }); +} + +// 查询本级上级网评指令比列 (月)详细 +export function getBjsj(id) { + return request({ + url: "/zongzhi/bjsj/" + id, + method: "get", + }); +} + +// 新增本级上级网评指令比列 (月) +export function addBjsj(data) { + return request({ + url: "/zongzhi/bjsj", + method: "post", + data: data, + }); +} + +// 修改本级上级网评指令比列 (月) +export function updateBjsj(data) { + return request({ + url: "/zongzhi/bjsj", + method: "put", + data: data, + }); +} + +// 删除本级上级网评指令比列 (月) +export function delBjsj(id) { + return request({ + url: "/zongzhi/bjsj/" + id, + method: "delete", + }); +} + +// 导出本级上级网评指令比列 (月) +export function exportBjsj(data) { + return request({ + url: "/zongzhi/bjsj/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/netZoology/wpywcl/index.js b/src/api/zongzhi/netZoology/wpywcl/index.js new file mode 100644 index 0000000..4714fea --- /dev/null +++ b/src/api/zongzhi/netZoology/wpywcl/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询网评员任务完成率心列表 +export function listWpyrwwcl(query) { + return request({ + url: "/zongzhi/wpyrwwcl/list", + method: "get", + params: query, + }); +} + +// 查询网评员任务完成率心详细 +export function getWpyrwwcl(id) { + return request({ + url: "/zongzhi/wpyrwwcl/" + id, + method: "get", + }); +} + +// 新增网评员任务完成率心 +export function addWpyrwwcl(data) { + return request({ + url: "/zongzhi/wpyrwwcl", + method: "post", + data: data, + }); +} + +// 修改网评员任务完成率心 +export function updateWpyrwwcl(data) { + return request({ + url: "/zongzhi/wpyrwwcl", + method: "put", + data: data, + }); +} + +// 删除网评员任务完成率心 +export function delWpyrwwcl(id) { + return request({ + url: "/zongzhi/wpyrwwcl/" + id, + method: "delete", + }); +} + +// 导出网评员任务完成率心 +export function exportWpyrwwcl(data) { + return request({ + url: "/zongzhi/wpyrwwcl/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/town/index.js b/src/api/zongzhi/town/index.js index 02e558e..65255cd 100644 --- a/src/api/zongzhi/town/index.js +++ b/src/api/zongzhi/town/index.js @@ -7,3 +7,12 @@ export function listTown(query) { params: query, }); } + +// 树结构 +export function townTree(query) { + return request({ + url: "/zongzhi/town/new/tree", + method: "get", + params: query, + }); +} \ No newline at end of file diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index cd7cb46..7b00c59 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -68,7 +68,7 @@ export default { // 数量限制 limit: { type: Number, - default: 5, + default: 1, }, // 大小限制(MB) fileSize: { @@ -83,7 +83,7 @@ export default { // 文件类型, 例如['png', 'jpg', 'jpeg'] fileType: { type: Array, - default: () => ["doc", "docx", "xls", "xlsx", "ppt", "txt", "pdf"], + default: () => ["docx", "pdf"],//"xls", "xlsx", "ppt", "txt", }, // 是否显示提示 isShowTip: { diff --git a/src/store/getters.js b/src/store/getters.js index 39ca80e..e90a317 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -17,5 +17,6 @@ const getters = { defaultRoutes: (state) => state.permission.defaultRoutes, sidebarRouters: (state) => state.permission.sidebarRouters, townList: (state) => state.user.townList, + treeProps: (state) => state.user.treeProps, }; export default getters; diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 3c4528e..d9035d3 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -1,6 +1,6 @@ import { login, logout, getInfo } from "@/api/login"; import { getToken, setToken, removeToken } from "@/utils/auth"; -import { listTown } from "@/api/zongzhi/town/index.js"; +import { listTown, townTree } from "@/api/zongzhi/town/index.js"; const user = { state: { @@ -10,6 +10,11 @@ const user = { roles: [], permissions: [], townList: [], + treeProps: { + label: "label", + value: "label", + checkStrictly: true, + }, userId: null, }, @@ -119,12 +124,11 @@ const user = { function getownList() { return new Promise((resolve, reject) => { let lsit = []; - listTown({ pageNum: 1, pageSize: 200 }) + townTree() .then((res) => { - res.rows.forEach((item) => { - lsit.push({ value: item.id, label: item.name }); - }); - resolve(lsit); + console.log(res, "树结构"); + + resolve(res.data); }) .catch((error) => { reject(error); diff --git a/src/views/netManage/enterpriseMl/index.vue b/src/views/netManage/enterpriseMl/index.vue index 02a4da8..cfc5275 100644 --- a/src/views/netManage/enterpriseMl/index.vue +++ b/src/views/netManage/enterpriseMl/index.vue @@ -169,18 +169,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -294,7 +288,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} {{ @@ -353,7 +347,7 @@ import { } from "@/api/zongzhi/netManage/enterpriseMl/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Enterprise", //注释字典 @@ -388,7 +382,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, enterpriseName: null, networkYewu: null, @@ -487,6 +481,15 @@ export default { this.reset(); const id = row.id || this.ids; getEnterprise(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看重点企业名录详情"; @@ -503,6 +506,7 @@ export default { this.reset(); const id = row.id || this.ids; getEnterprise(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改重点企业名录"; @@ -512,6 +516,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateEnterprise(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netManage/netPlatform/index.vue b/src/views/netManage/netPlatform/index.vue index 017e3c5..eb0ba11 100644 --- a/src/views/netManage/netPlatform/index.vue +++ b/src/views/netManage/netPlatform/index.vue @@ -135,18 +135,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -258,7 +252,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} @@ -316,7 +310,7 @@ import { } from "@/api/zongzhi/netManage/netPlatform/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Pingtai", //注释字典 @@ -351,7 +345,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, }, // 表单参数 form: {}, @@ -449,6 +443,15 @@ export default { this.reset(); const id = row.id || this.ids; getPingtai(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看网络平台详情"; @@ -465,6 +468,7 @@ export default { this.reset(); const id = row.id || this.ids; getPingtai(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改网络平台"; @@ -474,6 +478,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updatePingtai(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netManage/netReport/index.vue b/src/views/netManage/netReport/index.vue index 9eb6a38..bc93ee4 100644 --- a/src/views/netManage/netReport/index.vue +++ b/src/views/netManage/netReport/index.vue @@ -202,18 +202,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -327,7 +321,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} {{ @@ -389,7 +383,7 @@ import { } from "@/api/zongzhi/netManage/netReport/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Report", //注释字典 @@ -424,7 +418,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, jbMan: null, jbTime: null, @@ -529,6 +523,15 @@ export default { this.reset(); const id = row.id || this.ids; getReport(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看网络举报详情"; @@ -545,6 +548,7 @@ export default { this.reset(); const id = row.id || this.ids; getReport(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改网络举报"; @@ -554,6 +558,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateReport(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netManage/qlzx/index.vue b/src/views/netManage/qlzx/index.vue index 67194fd..f9ccf48 100644 --- a/src/views/netManage/qlzx/index.vue +++ b/src/views/netManage/qlzx/index.vue @@ -99,7 +99,7 @@ @@ -180,18 +180,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -327,7 +321,7 @@ import { } from "@/api/zongzhi/netManage/qlzx/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Zhuanxiang", //注释字典 @@ -363,7 +357,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, zhuanxiangTitle: null, zhuanxiangTime: null, @@ -387,6 +381,18 @@ export default { this.getList(); }); }, + filters: { + filterTown(target) { + if (target) { + target = JSON.parse(target); + if (target.length > 0 && Array.isArray(target)) { + return target.join("、"); + } else { + return ""; + } + } + }, + }, methods: { /** 查询清朗专项列表 */ getList() { @@ -457,6 +463,15 @@ export default { this.reset(); const id = row.id || this.ids; getZhuanxiang(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } if (response.data.zhuanxiangImg) { this.imageList = response.data.zhuanxiangImg.split(","); } else { @@ -478,6 +493,7 @@ export default { this.reset(); const id = row.id || this.ids; getZhuanxiang(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改清朗专项"; @@ -487,6 +503,8 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); + if (this.form.id != null) { updateZhuanxiang(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netManage/qlzxTj/index.vue b/src/views/netManage/qlzxTj/index.vue new file mode 100644 index 0000000..5bec5bd --- /dev/null +++ b/src/views/netManage/qlzxTj/index.vue @@ -0,0 +1,454 @@ + + + diff --git a/src/views/netManage/supervise/index.vue b/src/views/netManage/supervise/index.vue index 1fac0cd..90684cc 100644 --- a/src/views/netManage/supervise/index.vue +++ b/src/views/netManage/supervise/index.vue @@ -79,7 +79,7 @@ @@ -156,18 +156,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -247,7 +241,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} @@ -289,7 +283,7 @@ import { } from "@/api/zongzhi/netManage/supervise/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Domain", //注释字典 @@ -324,7 +318,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, enterpriseType: null, }, // 表单参数 @@ -344,6 +338,18 @@ export default { this.getList(); }); }, + filters: { + filterTown(target) { + if (target) { + target = JSON.parse(target); + if (target.length > 0 && Array.isArray(target)) { + return target.join("、"); + } else { + return ""; + } + } + }, + }, methods: { /** 查询重点领域监管列表 */ getList() { @@ -413,6 +419,15 @@ export default { this.reset(); const id = row.id || this.ids; getDomain(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看重点领域监管详情"; @@ -429,6 +444,7 @@ export default { this.reset(); const id = row.id || this.ids; getDomain(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改重点领域监管"; @@ -438,6 +454,8 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); + if (this.form.id != null) { updateDomain(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netManage/workDynamic/index.vue b/src/views/netManage/workDynamic/index.vue index 71c54cc..fe91629 100644 --- a/src/views/netManage/workDynamic/index.vue +++ b/src/views/netManage/workDynamic/index.vue @@ -84,7 +84,7 @@ @@ -158,18 +158,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -204,10 +198,7 @@ - + @@ -242,7 +233,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} {{ @@ -278,7 +269,7 @@ import { } from "@/api/zongzhi/netManage/workDynamic/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Dongtai", //注释字典 @@ -313,7 +304,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, materialsName: null, fabuTime: null, @@ -335,6 +326,18 @@ export default { this.getList(); }); }, + filters: { + filterTown(target) { + if (target) { + target = JSON.parse(target); + if (target.length > 0 && Array.isArray(target)) { + return target.join("、"); + } else { + return ""; + } + } + }, + }, methods: { /** 查询工作动态列表 */ getList() { @@ -407,6 +410,15 @@ export default { this.reset(); const id = row.id || this.ids; getDongtai(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.filterFile( 2, response.data.materialsFileName, @@ -429,6 +441,8 @@ export default { this.reset(); const id = row.id || this.ids; getDongtai(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + this.filterFile( 2, response.data.materialsFileName, @@ -475,6 +489,8 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); + this.filterFile(1); if (this.form.id != null) { updateDongtai(this.form).then((response) => { diff --git a/src/views/netManage/workItem/index.vue b/src/views/netManage/workItem/index.vue index 127dda1..8b2fa80 100644 --- a/src/views/netManage/workItem/index.vue +++ b/src/views/netManage/workItem/index.vue @@ -190,18 +190,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -220,15 +214,14 @@ - - - + + + - @@ -294,7 +287,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} {{ @@ -344,7 +337,7 @@ import { } from "@/api/zongzhi/netManage/workItem/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Work", //注释字典 @@ -379,7 +372,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, projectName: null, projectType: null, @@ -480,6 +473,15 @@ export default { this.reset(); const id = row.id || this.ids; getWork(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看重点工作项目详情"; @@ -496,6 +498,7 @@ export default { this.reset(); const id = row.id || this.ids; getWork(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改重点工作项目"; @@ -505,6 +508,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateWork(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netSecurity/DataSource/index.vue b/src/views/netSecurity/DataSource/index.vue index 7ee8b77..88247d1 100644 --- a/src/views/netSecurity/DataSource/index.vue +++ b/src/views/netSecurity/DataSource/index.vue @@ -210,20 +210,14 @@ class="dialog-from" > - - + + - - @@ -356,7 +350,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} @@ -425,7 +419,7 @@ import { } from "@/api/zongzhi/netSecurity/DataSource/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Source", //注释字典 @@ -460,7 +454,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, type: null, assetName: null, @@ -565,6 +559,15 @@ export default { this.reset(); const id = row.id || this.ids; getSource(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看数据来源详情"; @@ -581,6 +584,7 @@ export default { this.reset(); const id = row.id || this.ids; getSource(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改数据来源"; @@ -590,6 +594,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateSource(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netSecurity/SafetyYh/index.vue b/src/views/netSecurity/SafetyYh/index.vue index 6a48137..7e4bf8d 100644 --- a/src/views/netSecurity/SafetyYh/index.vue +++ b/src/views/netSecurity/SafetyYh/index.vue @@ -174,18 +174,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -322,7 +316,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} @@ -393,7 +387,7 @@ import { } from "@/api/zongzhi/netSecurity/SafetyYh/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Danger", //注释字典 @@ -429,7 +423,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, type: null, riskName: null, @@ -451,6 +445,7 @@ export default { this.getList(); }); }, + methods: { /** 查询安全隐患列表 */ getList() { @@ -535,6 +530,15 @@ export default { this.reset(); const id = row.id || this.ids; getDanger(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.filterFile(2, response.data.fileName, response.data.fileUrl); this.form = response.data; this.infoOpen = true; @@ -552,6 +556,7 @@ export default { this.reset(); const id = row.id || this.ids; getDanger(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.filterFile(2, response.data.fileName, response.data.fileUrl); this.form = response.data; console.log(this.fileList); @@ -595,6 +600,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); this.filterFile(1); if (this.form.id != null) { updateDanger(this.form).then((response) => { diff --git a/src/views/netSecurity/SecurityCheck/index.vue b/src/views/netSecurity/SecurityCheck/index.vue index 5f82362..f5f6476 100644 --- a/src/views/netSecurity/SecurityCheck/index.vue +++ b/src/views/netSecurity/SecurityCheck/index.vue @@ -174,18 +174,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -340,7 +334,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} {{ @@ -422,7 +416,7 @@ import { export default { name: "Detection", computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, //注释字典 dicts: ["tc_net_safety_level", "tc_attack_type"], @@ -456,7 +450,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, attackType: null, level: null, affUnit: null, @@ -551,6 +545,15 @@ export default { this.reset(); const id = row.id || this.ids; getDetection(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看安全检测详情"; @@ -567,6 +570,8 @@ export default { this.reset(); const id = row.id || this.ids; getDetection(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + this.form = response.data; this.open = true; this.title = "修改安全检测"; @@ -576,6 +581,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateDetection(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netSecurity/mapData/index.vue b/src/views/netSecurity/mapData/index.vue index 840aba3..60a9f46 100644 --- a/src/views/netSecurity/mapData/index.vue +++ b/src/views/netSecurity/mapData/index.vue @@ -1,100 +1,140 @@ diff --git a/src/views/netSecurity/supervise/DbSteam/index.vue b/src/views/netSecurity/supervise/DbSteam/index.vue index aefb246..26769e9 100644 --- a/src/views/netSecurity/supervise/DbSteam/index.vue +++ b/src/views/netSecurity/supervise/DbSteam/index.vue @@ -175,18 +175,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -391,7 +385,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} {{ @@ -482,7 +476,7 @@ export default { //注释字典 dicts: ["tc_yes_no", "tc_net_safety_level", "tc_db_steam_state"], computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, data() { return { @@ -514,7 +508,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, steamName: null, unitName: null, @@ -631,6 +625,15 @@ export default { this.reset(); const id = row.id || this.ids; getSystem(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看等保系统详情"; @@ -647,6 +650,7 @@ export default { this.reset(); const id = row.id || this.ids; getSystem(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改等保系统"; @@ -656,6 +660,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateSystem(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netSecurity/supervise/DbUnit/index.vue b/src/views/netSecurity/supervise/DbUnit/index.vue index a71a2b3..87fbda0 100644 --- a/src/views/netSecurity/supervise/DbUnit/index.vue +++ b/src/views/netSecurity/supervise/DbUnit/index.vue @@ -176,18 +176,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -343,7 +337,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} {{ @@ -418,7 +412,7 @@ import { } from "@/api/zongzhi/netSecurity/supervise/DbUnit/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Unit", //注释字典 @@ -453,7 +447,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, unitName: null, unitType: null, @@ -564,6 +558,15 @@ export default { this.reset(); const id = row.id || this.ids; getUnit(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看等保单位详情"; @@ -580,6 +583,7 @@ export default { this.reset(); const id = row.id || this.ids; getUnit(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改等保单位"; @@ -589,6 +593,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateUnit(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netSecurity/supervise/GovernmentWeb/index.vue b/src/views/netSecurity/supervise/GovernmentWeb/index.vue index 6ba410a..9488636 100644 --- a/src/views/netSecurity/supervise/GovernmentWeb/index.vue +++ b/src/views/netSecurity/supervise/GovernmentWeb/index.vue @@ -88,7 +88,7 @@ @@ -160,18 +160,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -226,7 +220,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} {{ form.url }} @@ -258,7 +252,7 @@ import { } from "@/api/zongzhi/netSecurity/supervise/GovernmentWeb/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "Web", //注释字典 @@ -293,7 +287,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, assetName: null, assetLevel: null, @@ -315,6 +309,18 @@ export default { this.getList(); }); }, + filters: { + filterTown(target) { + if (target) { + target = JSON.parse(target); + if (target.length > 0 && Array.isArray(target)) { + return target.join("、"); + } else { + return ""; + } + } + }, + }, methods: { /** 查询政府网站列表 */ getList() { @@ -380,6 +386,15 @@ export default { this.reset(); const id = row.id || this.ids; getWeb(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看政府网站详情"; @@ -396,6 +411,7 @@ export default { this.reset(); const id = row.id || this.ids; getWeb(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改政府网站"; @@ -405,6 +421,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateWeb(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netSecurity/supervise/IdcUnit/index.vue b/src/views/netSecurity/supervise/IdcUnit/index.vue index 643df61..b8c46b1 100644 --- a/src/views/netSecurity/supervise/IdcUnit/index.vue +++ b/src/views/netSecurity/supervise/IdcUnit/index.vue @@ -82,7 +82,7 @@ @@ -146,18 +146,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -197,7 +191,7 @@ labelClassName="desLable" > {{ - $filterTown(form.areaId) + form.areaId }} {{ @@ -224,7 +218,7 @@ import { } from "@/api/zongzhi/netSecurity/supervise/IdcUnit/index.js"; export default { computed: { - ...mapGetters(["townList"]), + ...mapGetters(["townList", "treeProps"]), }, name: "IDCunit", //注释字典 @@ -258,7 +252,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, areaId: null, unitName: null, @@ -280,6 +274,18 @@ export default { this.getList(); }); }, + filters: { + filterTown(target) { + if (target) { + target = JSON.parse(target); + if (target.length > 0 && Array.isArray(target)) { + return target.join("、"); + } else { + return ""; + } + } + }, + }, methods: { /** 查询IDC单位列表 */ getList() { @@ -345,6 +351,15 @@ export default { this.reset(); const id = row.id || this.ids; getIDCunit(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + if ( + response.data.areaId.length > 0 && + Array.isArray(response.data.areaId) + ) { + response.data.areaId = response.data.areaId.join("、"); + } else { + response.data.areaId = ""; + } this.form = response.data; this.infoOpen = true; this.infoTitle = "查看IDC单位详情"; @@ -361,6 +376,7 @@ export default { this.reset(); const id = row.id || this.ids; getIDCunit(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改IDC单位"; @@ -370,6 +386,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateIDCunit(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netSecurity/tb/index.vue b/src/views/netSecurity/tb/index.vue index f60aeb3..8fae868 100644 --- a/src/views/netSecurity/tb/index.vue +++ b/src/views/netSecurity/tb/index.vue @@ -17,7 +17,7 @@ @keyup.enter.native="handleQuery" /> - + - + - +