From 49fd7ef1312301482c58ed66da19567a7791c4db 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, 28 Aug 2023 13:20:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E5=AE=89=E5=85=A8=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/netManage/enterpriseMl/index.vue | 16 +++----- src/views/netManage/netPlatform/index.vue | 16 +++----- src/views/netManage/netReport/index.vue | 16 +++----- src/views/netManage/qlzx/index.vue | 18 +++----- src/views/netManage/supervise/index.vue | 18 +++----- src/views/netManage/workDynamic/index.vue | 18 +++----- src/views/netManage/workItem/index.vue | 16 +++----- src/views/netSecurity/DataSource/index.vue | 2 +- src/views/netSecurity/SafetyYh/index.vue | 28 ++++++++----- src/views/netSecurity/SecurityCheck/index.vue | 28 ++++++++----- .../netSecurity/supervise/DbSteam/index.vue | 27 +++++++----- .../netSecurity/supervise/DbUnit/index.vue | 27 +++++++----- .../supervise/GovernmentWeb/index.vue | 41 +++++++++++++------ .../netSecurity/supervise/IdcUnit/index.vue | 41 +++++++++++++------ src/views/netSecurity/tb/index.vue | 41 +++++++++++++------ src/views/netWorkYq/index.vue | 16 +++----- src/views/netZoology/netAppraiser/index.vue | 16 +++----- src/views/netZoology/netArticle/index.vue | 16 +++----- src/views/netZoology/netMqPrincipal/index.vue | 16 +++----- src/views/netZoology/netSafety/index.vue | 16 +++----- .../netZoology/netSafetyZcUnit/index.vue | 16 +++----- src/views/netZoology/netVolunteer/index.vue | 16 +++----- 22 files changed, 227 insertions(+), 238 deletions(-) diff --git a/src/views/netManage/enterpriseMl/index.vue b/src/views/netManage/enterpriseMl/index.vue index 278744b..1850c5e 100644 --- a/src/views/netManage/enterpriseMl/index.vue +++ b/src/views/netManage/enterpriseMl/index.vue @@ -169,18 +169,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netManage/netPlatform/index.vue b/src/views/netManage/netPlatform/index.vue index ad98cd9..718ec5f 100644 --- a/src/views/netManage/netPlatform/index.vue +++ b/src/views/netManage/netPlatform/index.vue @@ -135,18 +135,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netManage/netReport/index.vue b/src/views/netManage/netReport/index.vue index 9ae5159..b179f31 100644 --- a/src/views/netManage/netReport/index.vue +++ b/src/views/netManage/netReport/index.vue @@ -202,18 +202,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netManage/qlzx/index.vue b/src/views/netManage/qlzx/index.vue index b0599ea..6a29fd0 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 + > diff --git a/src/views/netManage/supervise/index.vue b/src/views/netManage/supervise/index.vue index 9c6c60b..6b171dd 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 + > diff --git a/src/views/netManage/workDynamic/index.vue b/src/views/netManage/workDynamic/index.vue index 05b99cc..0768179 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 + > diff --git a/src/views/netManage/workItem/index.vue b/src/views/netManage/workItem/index.vue index 2ea6b7f..e1da541 100644 --- a/src/views/netManage/workItem/index.vue +++ b/src/views/netManage/workItem/index.vue @@ -190,18 +190,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netSecurity/DataSource/index.vue b/src/views/netSecurity/DataSource/index.vue index 9389d8e..88247d1 100644 --- a/src/views/netSecurity/DataSource/index.vue +++ b/src/views/netSecurity/DataSource/index.vue @@ -593,8 +593,8 @@ export default { /** 提交按钮 */ submitForm() { this.$refs["form"].validate((valid) => { - this.form.areaId = JSON.stringify(this.form.areaId); 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 2422d91..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 + > @@ -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 fa62601..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 + > @@ -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/supervise/DbSteam/index.vue b/src/views/netSecurity/supervise/DbSteam/index.vue index 86ae145..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 + > @@ -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 c9b44b4..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 + > @@ -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 bbce601..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 + > @@ -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 41d7dac..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 + > @@ -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 ade8173..8fae868 100644 --- a/src/views/netSecurity/tb/index.vue +++ b/src/views/netSecurity/tb/index.vue @@ -108,7 +108,7 @@ @@ -187,18 +187,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > @@ -396,6 +390,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() { @@ -468,6 +474,15 @@ export default { this.reset(); const id = row.id || this.ids; getTb(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; @@ -485,6 +500,7 @@ export default { this.reset(); const id = row.id || this.ids; getTb(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.filterFile(2, response.data.fileName, response.data.fileUrl); this.form = response.data; this.open = true; @@ -526,6 +542,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) { updateTb(this.form).then((response) => { diff --git a/src/views/netWorkYq/index.vue b/src/views/netWorkYq/index.vue index e742a15..d23eba8 100644 --- a/src/views/netWorkYq/index.vue +++ b/src/views/netWorkYq/index.vue @@ -225,18 +225,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netZoology/netAppraiser/index.vue b/src/views/netZoology/netAppraiser/index.vue index 566f675..a65a9af 100644 --- a/src/views/netZoology/netAppraiser/index.vue +++ b/src/views/netZoology/netAppraiser/index.vue @@ -162,18 +162,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netZoology/netArticle/index.vue b/src/views/netZoology/netArticle/index.vue index 9ed1697..a701a79 100644 --- a/src/views/netZoology/netArticle/index.vue +++ b/src/views/netZoology/netArticle/index.vue @@ -192,18 +192,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netZoology/netMqPrincipal/index.vue b/src/views/netZoology/netMqPrincipal/index.vue index 397bfa3..0e4137b 100644 --- a/src/views/netZoology/netMqPrincipal/index.vue +++ b/src/views/netZoology/netMqPrincipal/index.vue @@ -145,18 +145,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netZoology/netSafety/index.vue b/src/views/netZoology/netSafety/index.vue index bfd5519..de8a492 100644 --- a/src/views/netZoology/netSafety/index.vue +++ b/src/views/netZoology/netSafety/index.vue @@ -156,18 +156,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netZoology/netSafetyZcUnit/index.vue b/src/views/netZoology/netSafetyZcUnit/index.vue index c3d2ff9..69c6f1c 100644 --- a/src/views/netZoology/netSafetyZcUnit/index.vue +++ b/src/views/netZoology/netSafetyZcUnit/index.vue @@ -143,18 +143,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + > diff --git a/src/views/netZoology/netVolunteer/index.vue b/src/views/netZoology/netVolunteer/index.vue index 36cf205..13e34e3 100644 --- a/src/views/netZoology/netVolunteer/index.vue +++ b/src/views/netZoology/netVolunteer/index.vue @@ -155,18 +155,12 @@ - - - + :options="townList" + :props="treeProps" + clearable + >