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