修改
This commit is contained in:
parent
57f26e2df0
commit
c9c1b6a7bd
@ -217,19 +217,23 @@ export default {
|
|||||||
// 上传图片
|
// 上传图片
|
||||||
uploadImg() {
|
uploadImg() {
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append("file", this.previews.data);
|
if (this.previews.data) {
|
||||||
formData.append("type", this.types);
|
formData.append("file", this.previews.data);
|
||||||
updateNurseStationHeads(formData).then((response) => {
|
formData.append("type", this.types);
|
||||||
this.options.img = baseurl + response.imgUrl;
|
updateNurseStationHeads(formData).then((response) => {
|
||||||
this.$emit("imgUrl", response.imgUrl);
|
this.options.img = baseurl + response.imgUrl;
|
||||||
console.log(this.items);
|
this.$emit("imgUrl", response.imgUrl);
|
||||||
console.log(this.types);
|
console.log(this.items);
|
||||||
if (this.types == "attributePitureUrl") {
|
console.log(this.types);
|
||||||
this.items.attributePitureUrl = response.imgUrl;
|
if (this.types == "attributePitureUrl") {
|
||||||
this.$emit("item", JSON.stringify(this.items));
|
this.items.attributePitureUrl = response.imgUrl;
|
||||||
}
|
this.$emit("item", JSON.stringify(this.items));
|
||||||
|
}
|
||||||
|
this.openimg = false;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
this.openimg = false;
|
this.openimg = false;
|
||||||
});
|
}
|
||||||
},
|
},
|
||||||
// 实时预览
|
// 实时预览
|
||||||
realTime(data) {
|
realTime(data) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user