网络管理

Lvtianfang
许宏杰 2 years ago
parent 4da26c2c93
commit 35fc51d9a2

@ -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("修改成功");

@ -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("修改成功");

@ -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("修改成功");

@ -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("修改成功");

@ -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("修改成功");

@ -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) => {

@ -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("修改成功");

Loading…
Cancel
Save