diff --git a/src/views/netManage/enterpriseMl/index.vue b/src/views/netManage/enterpriseMl/index.vue index 1850c5e..cfc5275 100644 --- a/src/views/netManage/enterpriseMl/index.vue +++ b/src/views/netManage/enterpriseMl/index.vue @@ -481,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 = "查看重点企业名录详情"; @@ -497,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 = "修改重点企业名录"; @@ -506,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 718ec5f..eb0ba11 100644 --- a/src/views/netManage/netPlatform/index.vue +++ b/src/views/netManage/netPlatform/index.vue @@ -443,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 = "查看网络平台详情"; @@ -459,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 = "修改网络平台"; @@ -468,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 b179f31..bc93ee4 100644 --- a/src/views/netManage/netReport/index.vue +++ b/src/views/netManage/netReport/index.vue @@ -523,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 = "查看网络举报详情"; @@ -539,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 = "修改网络举报"; @@ -548,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 6a29fd0..f9ccf48 100644 --- a/src/views/netManage/qlzx/index.vue +++ b/src/views/netManage/qlzx/index.vue @@ -381,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() { @@ -451,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 { @@ -472,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 = "修改清朗专项"; @@ -481,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/supervise/index.vue b/src/views/netManage/supervise/index.vue index 6b171dd..f1f71f3 100644 --- a/src/views/netManage/supervise/index.vue +++ b/src/views/netManage/supervise/index.vue @@ -338,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() { @@ -407,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 = "查看重点领域监管详情"; @@ -423,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 = "修改重点领域监管"; @@ -432,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 0768179..fe91629 100644 --- a/src/views/netManage/workDynamic/index.vue +++ b/src/views/netManage/workDynamic/index.vue @@ -326,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() { @@ -398,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, @@ -420,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, @@ -466,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 e1da541..8b2fa80 100644 --- a/src/views/netManage/workItem/index.vue +++ b/src/views/netManage/workItem/index.vue @@ -473,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 = "查看重点工作项目详情"; @@ -489,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 = "修改重点工作项目"; @@ -498,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("修改成功");