This commit is contained in:
shidongli 2022-12-02 15:28:46 +08:00
parent 572852ad7e
commit cfe0d0b30f
7 changed files with 32 additions and 1 deletions

View File

@ -177,6 +177,9 @@ export default {
let length = quill.getSelection().index;
// res.url
quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.fileName);
this.$emit("imgs", res.fileName);
//
quill.setSelection(length + 1);
} else {

View File

@ -356,6 +356,7 @@
style="margin-top: 20px"
>
<editor
@imgs="imgs"
:min-height="100"
style="width: 90%; margin: 0 auto"
v-model="form.goodsRemark"

View File

@ -18,6 +18,7 @@ export default {
name: "OperateGoodsInfo",
data() {
return {
imgsurl: { pictureUrlList: [] },
imgone: "",
imageUrl: "", //商品图片
@ -134,6 +135,10 @@ export default {
this.goodsCategoryinfo();
},
methods: {
imgs(item) {
this.imgsurl.pictureUrlList.push(item);
// console.log(this.imgsurl)
},
upwhetherShelf(row) {
console.log(row);
if (row.whetherShelf == false) {
@ -224,6 +229,10 @@ export default {
console.log(res);
});
}
if (this.imgsurl.pictureUrlList.length > 0) {
updatePicture(this.imgsurl).then((res) => {});
}
this.imgsurl={pictureUrlList:[]};
this.open = false;
this.reset();
this.StationName = "请选择所属护理站";

View File

@ -298,6 +298,7 @@
</el-form-item>
<el-form-item label="护理站简介" prop="agencyIntroduce">
<editor
@imgs="imgs"
:min-height="62"
style="width: 90%; margin: 0 auto"
v-model="form.agencyIntroduce"

View File

@ -42,6 +42,7 @@ export default {
}
};
return {
imgsurl: { pictureUrlList: [] },
imageUrl: "",
imageUrl2: "",
imgtwo: "",
@ -159,6 +160,9 @@ export default {
this.info();
},
methods: {
imgs(item) {
this.imgsurl.pictureUrlList.push(item);
},
imgUrl(imgUrl) {
this.form.stationPictureUrl = imgUrl;
},
@ -248,6 +252,10 @@ export default {
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {});
}
if (this.imgsurl.pictureUrlList.length > 0) {
updatePicture(this.imgsurl).then((res) => {});
}
this.imgsurl={pictureUrlList:[]};
this.open = false;
this.reset();
},

View File

@ -288,7 +288,6 @@
:type="'itemPictureUrl'"
/>
</el-form-item>
<el-form-item
label="项目内容简介"
prop="nurseStationItem.nurseItemContent"
@ -303,6 +302,7 @@
>
</el-input> -->
<editor
@imgs="imgs"
maxlength="300"
:min-height="82"
placeholder="请输入内容"

View File

@ -17,6 +17,7 @@ export default {
name: "NurseItem",
data() {
return {
imgsurl: { pictureUrlList: [] },
imageUrl: "",
imgone: "",
// 用户导入参数
@ -135,7 +136,11 @@ export default {
this.getList();
},
methods: {
imgs(item) {
this.imgsurl.pictureUrlList.push(item);
},
imgUrl(imgUrl) {
this.form.nurseStationItem.itemPictureUrl = imgUrl;
},
handleAvatarSuccess(res, file) {
@ -292,6 +297,10 @@ export default {
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => { });
}
if (this.imgsurl.pictureUrlList.length > 0) {
updatePicture(this.imgsurl).then((res) => {});
}
this.imgsurl={pictureUrlList:[]};
this.open = false;
this.reset();