修改
This commit is contained in:
parent
b2019314b0
commit
d646764735
@ -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");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user