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