修改
This commit is contained in:
parent
8725aef676
commit
80374b7993
@ -940,10 +940,13 @@ export default {
|
|||||||
obj.pictureUrlList.push(e.posterPictureUrl);
|
obj.pictureUrlList.push(e.posterPictureUrl);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log(this.deletNewImgs,'---------------------------------')
|
console.log(this.deletNewImgs)
|
||||||
updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => {
|
if(obj.pictureUrlList.length>0){
|
||||||
|
updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this.nurseItemquery.nurseStationId = null;
|
this.nurseItemquery.nurseStationId = null;
|
||||||
this.imgs = { pictureUrlList: [] };
|
this.imgs = { pictureUrlList: [] };
|
||||||
@ -1028,17 +1031,15 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updatePoser(this.form).then((response) => {
|
updatePoser(this.form).then((response) => {
|
||||||
// var obj = { pictureUrlList: [] };
|
// var obj = { pictureUrlList: [] };
|
||||||
var obj = { pictureUrlList: [] };
|
// if (this.form.posterPictureUrlLists) {
|
||||||
if (this.form.posterPictureUrlLists) {
|
// this.form.posterPictureUrlLists.forEach((e) => {
|
||||||
this.form.posterPictureUrlLists.forEach((e) => {
|
// obj.pictureUrlList.push(e.posterPictureUrl);
|
||||||
obj.pictureUrlList.push(e.posterPictureUrl);
|
// });
|
||||||
});
|
// }
|
||||||
}
|
// updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => {
|
||||||
updatePicture(obj).then((res) => {
|
// this.open = false;
|
||||||
this.open = false;
|
// });
|
||||||
console.log('是否删除')
|
|
||||||
});
|
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
@ -1046,6 +1047,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
if (this.form.poserSort) {
|
if (this.form.poserSort) {
|
||||||
this.form.poserSort = parseInt(this.form.poserSort);
|
this.form.poserSort = parseInt(this.form.poserSort);
|
||||||
|
}else{
|
||||||
|
this.form.poserSort=null
|
||||||
}
|
}
|
||||||
addPoser(this.form).then((response) => {
|
addPoser(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user