diff --git a/src/views/netZoology/netAppraiser/index.vue b/src/views/netZoology/netAppraiser/index.vue index a65a9af..bca0cea 100644 --- a/src/views/netZoology/netAppraiser/index.vue +++ b/src/views/netZoology/netAppraiser/index.vue @@ -452,6 +452,15 @@ export default { this.reset(); const id = row.id || this.ids; getCommentator(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 = "查看网评员详情"; @@ -468,6 +477,7 @@ export default { this.reset(); const id = row.id || this.ids; getCommentator(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改网评员"; @@ -477,6 +487,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateCommentator(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netZoology/netArticle/index.vue b/src/views/netZoology/netArticle/index.vue index a701a79..a4c9439 100644 --- a/src/views/netZoology/netArticle/index.vue +++ b/src/views/netZoology/netArticle/index.vue @@ -144,13 +144,13 @@ 查看 - 评价 + > --> + 修改 -
评价列表 @@ -319,17 +319,17 @@ prop="pjContent" :show-overflow-tooltip="true" /> - - --> + - 确 定 取 消
- + --> @@ -377,7 +377,7 @@ import { } from "@/api/zongzhi/netZoology/netP/index.js"; export default { computed: { - ...mapGetters(["townList", "name", "userId"]), + ...mapGetters(["townList", "name", "userId", "treeProps"]), }, name: "Article", //注释字典 @@ -560,27 +560,38 @@ export default { this.reset(); const id = row.id || this.ids; getArticle(id).then((response) => { - this.form = response.data; - if (row.status == 1) { - //评价过查询详情 - this.PjParams.articleId = id; - this.getListPj(); - this.infoOpen = true; - this.infoTitle = "查看网络文章详情"; + 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 { - this.infoOpen = true; - this.infoTitle = "查看网络文章详情"; + response.data.areaId = ""; } + this.form = response.data; + this.infoOpen = true; + this.infoTitle = "查看网络文章详情"; + // if (row.status == 1) { + // //评价过查询详情 + // this.PjParams.articleId = id; + // this.getListPj(); + // this.infoOpen = true; + // this.infoTitle = "查看网络文章详情"; + // } else { + // this.infoOpen = true; + // this.infoTitle = "查看网络文章详情"; + // } }); }, - getListPj() { - this.loadingPj = true; - listEvaluate(this.PjParams).then((response) => { - this.pjData = response.rows; - this.totalPj = response.total; - this.loadingPj = false; - }); - }, + // getListPj() { + // this.loadingPj = true; + // listEvaluate(this.PjParams).then((response) => { + // this.pjData = response.rows; + // this.totalPj = response.total; + // this.loadingPj = false; + // }); + // }, /** 新增按钮操作 */ handleAdd() { @@ -593,6 +604,7 @@ export default { this.reset(); const id = row.id || this.ids; getArticle(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改网络文章"; @@ -602,6 +614,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); this.form.status = 2; //未评价 if (this.form.id != null) { updateArticle(this.form).then((response) => { diff --git a/src/views/netZoology/netMqPrincipal/index.vue b/src/views/netZoology/netMqPrincipal/index.vue index 0e4137b..b25ace9 100644 --- a/src/views/netZoology/netMqPrincipal/index.vue +++ b/src/views/netZoology/netMqPrincipal/index.vue @@ -384,6 +384,15 @@ export default { this.reset(); const id = row.id || this.ids; getPrincipal(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 = "查看网络民情责任人详情"; @@ -400,6 +409,7 @@ export default { this.reset(); const id = row.id || this.ids; getPrincipal(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改网络民情责任人"; @@ -409,6 +419,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updatePrincipal(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netZoology/netSafety/index.vue b/src/views/netZoology/netSafety/index.vue index de8a492..3931828 100644 --- a/src/views/netZoology/netSafety/index.vue +++ b/src/views/netZoology/netSafety/index.vue @@ -437,6 +437,15 @@ export default { this.reset(); const id = row.id || this.ids; getSafetyadmin(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 = "查看网络安全官详情"; @@ -453,6 +462,8 @@ export default { this.reset(); const id = row.id || this.ids; getSafetyadmin(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); + this.form = response.data; this.open = true; this.title = "修改网络安全官"; @@ -462,6 +473,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateSafetyadmin(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netZoology/netSafetyZcUnit/index.vue b/src/views/netZoology/netSafetyZcUnit/index.vue index 69c6f1c..c566e32 100644 --- a/src/views/netZoology/netSafetyZcUnit/index.vue +++ b/src/views/netZoology/netSafetyZcUnit/index.vue @@ -80,7 +80,11 @@ @selection-change="handleSelectionChange" > - + + + @@ -280,6 +284,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() { @@ -345,6 +361,15 @@ export default { this.reset(); const id = row.id || this.ids; getNetSafetyZcUnit(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 = "查看网络安全支持单位详情"; @@ -361,6 +386,7 @@ export default { this.reset(); const id = row.id || this.ids; getNetSafetyZcUnit(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改网络安全支持单位"; @@ -370,6 +396,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateNetSafetyZcUnit(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/netZoology/netVolunteer/index.vue b/src/views/netZoology/netVolunteer/index.vue index 13e34e3..a68ee64 100644 --- a/src/views/netZoology/netVolunteer/index.vue +++ b/src/views/netZoology/netVolunteer/index.vue @@ -413,6 +413,15 @@ export default { this.reset(); const id = row.id || this.ids; getVolunteer(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 +438,7 @@ export default { this.reset(); const id = row.id || this.ids; getVolunteer(id).then((response) => { + response.data.areaId = JSON.parse(response.data.areaId); this.form = response.data; this.open = true; this.title = "修改网络文明自愿者"; @@ -438,6 +448,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.areaId = JSON.stringify(this.form.areaId); if (this.form.id != null) { updateVolunteer(this.form).then((response) => { this.$modal.msgSuccess("修改成功");