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