简介
This commit is contained in:
parent
572852ad7e
commit
cfe0d0b30f
@ -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 {
|
||||
|
||||
@ -356,6 +356,7 @@
|
||||
style="margin-top: 20px"
|
||||
>
|
||||
<editor
|
||||
@imgs="imgs"
|
||||
:min-height="100"
|
||||
style="width: 90%; margin: 0 auto"
|
||||
v-model="form.goodsRemark"
|
||||
|
||||
@ -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 = "请选择所属护理站";
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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();
|
||||
},
|
||||
|
||||
@ -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="请输入内容"
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user