diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue index 1699959..fecea9c 100644 --- a/src/views/system/poser/index.vue +++ b/src/views/system/poser/index.vue @@ -315,7 +315,7 @@ - + 0) { - updatePicture(obj).then((res) => {}); - } - if (this.imgs.pictureUrlList.length > 0) { - updatePicture(this.imgs).then((res) => {}); - } + if (this.form.posterPictureUrlLists) { + this.form.posterPictureUrlLists.forEach((e) => { + obj.pictureUrlList.push(e.posterPictureUrl); + }); + } + console.log(this.deletNewImgs,'---------------------------------') + updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => { + this.open = false; + }); + this.nurseItemquery.nurseStationId = null; this.imgs = { pictureUrlList: [] }; this.open = false; @@ -1010,7 +1028,17 @@ export default { if (valid) { if (this.form.id != null) { updatePoser(this.form).then((response) => { + // var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] }; + if (this.form.posterPictureUrlLists) { + this.form.posterPictureUrlLists.forEach((e) => { + obj.pictureUrlList.push(e.posterPictureUrl); + }); + } + updatePicture(obj).then((res) => { + this.open = false; + console.log('是否删除') + }); this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); @@ -1019,7 +1047,6 @@ export default { if (this.form.poserSort) { this.form.poserSort = parseInt(this.form.poserSort); } - addPoser(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); this.open = false;