This commit is contained in:
闫晓茹 2023-02-28 16:59:51 +08:00
parent b2019314b0
commit d646764735

View File

@ -357,6 +357,7 @@ import {
updateCertificate,
} from "@/api/system/certificate";
import stationAcatar from "../stationAvatar/index.vue";
import { updatePicture } from "@/api/system/station";
export default {
components: { stationAcatar },
name: "Certificate",
@ -387,6 +388,9 @@ export default {
title: "",
//
open: false,
deletNewImgs:[],
objitem:[],
imgsurl: { pictureUrlList: [] },
innerVisible: false,
hospitalPersonList: [],
total2: 0,
@ -459,6 +463,10 @@ export default {
},
//item
imgclassifyItem(item) {
let imgUrlData = JSON.parse(item);
//
this.deletNewImgs.push(imgUrlData.certificateUrl);
this.objitem.push(imgUrlData.certificateUrl);
console.log(item,'接受图片item')
let items = JSON.parse(item);
if (items.idd && !items.id) {
@ -471,7 +479,10 @@ export default {
this.form.certificateUrl = items.certificateUrl;
}
},
imgUrl(e) {},
imgUrl(imgUrl) {
console.log(imgUrl)
},
innerVisiblecancel() {
this.innerVisible = false;
},
@ -514,7 +525,19 @@ export default {
},
//
cancel() {
this.open = false;
var obj = { pictureUrlList: [] };
if (this.form.certificateUrlList) {
this.form.certificateUrlList.forEach((e) => {
obj.pictureUrlList.push(e.certificateUrl);
});
}
console.log("2222",this.deletNewImgs)
updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => {
this.open = false;
});
this.imgsurl = { pictureUrlList: [] };
this.reset();
},
//
@ -537,6 +560,7 @@ export default {
updateBy: null,
updateTime: null,
};
this.deletNewImgs=[];
this.resetForm("form");
},
/** 搜索按钮操作 */