简介
This commit is contained in:
parent
572852ad7e
commit
cfe0d0b30f
@ -177,6 +177,9 @@ export default {
|
|||||||
let length = quill.getSelection().index;
|
let length = quill.getSelection().index;
|
||||||
// 插入图片 res.url为服务器返回的图片地址
|
// 插入图片 res.url为服务器返回的图片地址
|
||||||
quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.fileName);
|
quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.fileName);
|
||||||
|
|
||||||
|
this.$emit("imgs", res.fileName);
|
||||||
|
|
||||||
// 调整光标到最后
|
// 调整光标到最后
|
||||||
quill.setSelection(length + 1);
|
quill.setSelection(length + 1);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -356,6 +356,7 @@
|
|||||||
style="margin-top: 20px"
|
style="margin-top: 20px"
|
||||||
>
|
>
|
||||||
<editor
|
<editor
|
||||||
|
@imgs="imgs"
|
||||||
:min-height="100"
|
:min-height="100"
|
||||||
style="width: 90%; margin: 0 auto"
|
style="width: 90%; margin: 0 auto"
|
||||||
v-model="form.goodsRemark"
|
v-model="form.goodsRemark"
|
||||||
|
|||||||
@ -18,6 +18,7 @@ export default {
|
|||||||
name: "OperateGoodsInfo",
|
name: "OperateGoodsInfo",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
imgsurl: { pictureUrlList: [] },
|
||||||
imgone: "",
|
imgone: "",
|
||||||
|
|
||||||
imageUrl: "", //商品图片
|
imageUrl: "", //商品图片
|
||||||
@ -134,6 +135,10 @@ export default {
|
|||||||
this.goodsCategoryinfo();
|
this.goodsCategoryinfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
imgs(item) {
|
||||||
|
this.imgsurl.pictureUrlList.push(item);
|
||||||
|
// console.log(this.imgsurl)
|
||||||
|
},
|
||||||
upwhetherShelf(row) {
|
upwhetherShelf(row) {
|
||||||
console.log(row);
|
console.log(row);
|
||||||
if (row.whetherShelf == false) {
|
if (row.whetherShelf == false) {
|
||||||
@ -224,6 +229,10 @@ export default {
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (this.imgsurl.pictureUrlList.length > 0) {
|
||||||
|
updatePicture(this.imgsurl).then((res) => {});
|
||||||
|
}
|
||||||
|
this.imgsurl={pictureUrlList:[]};
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
this.StationName = "请选择所属护理站";
|
this.StationName = "请选择所属护理站";
|
||||||
|
|||||||
@ -298,6 +298,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理站简介" prop="agencyIntroduce">
|
<el-form-item label="护理站简介" prop="agencyIntroduce">
|
||||||
<editor
|
<editor
|
||||||
|
@imgs="imgs"
|
||||||
:min-height="62"
|
:min-height="62"
|
||||||
style="width: 90%; margin: 0 auto"
|
style="width: 90%; margin: 0 auto"
|
||||||
v-model="form.agencyIntroduce"
|
v-model="form.agencyIntroduce"
|
||||||
|
|||||||
@ -42,6 +42,7 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
|
imgsurl: { pictureUrlList: [] },
|
||||||
imageUrl: "",
|
imageUrl: "",
|
||||||
imageUrl2: "",
|
imageUrl2: "",
|
||||||
imgtwo: "",
|
imgtwo: "",
|
||||||
@ -159,6 +160,9 @@ export default {
|
|||||||
this.info();
|
this.info();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
imgs(item) {
|
||||||
|
this.imgsurl.pictureUrlList.push(item);
|
||||||
|
},
|
||||||
imgUrl(imgUrl) {
|
imgUrl(imgUrl) {
|
||||||
this.form.stationPictureUrl = imgUrl;
|
this.form.stationPictureUrl = imgUrl;
|
||||||
},
|
},
|
||||||
@ -248,6 +252,10 @@ export default {
|
|||||||
if (obj.pictureUrlList.length > 0) {
|
if (obj.pictureUrlList.length > 0) {
|
||||||
updatePicture(obj).then((res) => {});
|
updatePicture(obj).then((res) => {});
|
||||||
}
|
}
|
||||||
|
if (this.imgsurl.pictureUrlList.length > 0) {
|
||||||
|
updatePicture(this.imgsurl).then((res) => {});
|
||||||
|
}
|
||||||
|
this.imgsurl={pictureUrlList:[]};
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
},
|
},
|
||||||
|
|||||||
@ -288,7 +288,6 @@
|
|||||||
:type="'itemPictureUrl'"
|
:type="'itemPictureUrl'"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="项目内容简介"
|
label="项目内容简介"
|
||||||
prop="nurseStationItem.nurseItemContent"
|
prop="nurseStationItem.nurseItemContent"
|
||||||
@ -303,6 +302,7 @@
|
|||||||
>
|
>
|
||||||
</el-input> -->
|
</el-input> -->
|
||||||
<editor
|
<editor
|
||||||
|
@imgs="imgs"
|
||||||
maxlength="300"
|
maxlength="300"
|
||||||
:min-height="82"
|
:min-height="82"
|
||||||
placeholder="请输入内容"
|
placeholder="请输入内容"
|
||||||
|
|||||||
@ -17,6 +17,7 @@ export default {
|
|||||||
name: "NurseItem",
|
name: "NurseItem",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
imgsurl: { pictureUrlList: [] },
|
||||||
imageUrl: "",
|
imageUrl: "",
|
||||||
imgone: "",
|
imgone: "",
|
||||||
// 用户导入参数
|
// 用户导入参数
|
||||||
@ -135,7 +136,11 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
imgs(item) {
|
||||||
|
this.imgsurl.pictureUrlList.push(item);
|
||||||
|
},
|
||||||
imgUrl(imgUrl) {
|
imgUrl(imgUrl) {
|
||||||
|
|
||||||
this.form.nurseStationItem.itemPictureUrl = imgUrl;
|
this.form.nurseStationItem.itemPictureUrl = imgUrl;
|
||||||
},
|
},
|
||||||
handleAvatarSuccess(res, file) {
|
handleAvatarSuccess(res, file) {
|
||||||
@ -292,6 +297,10 @@ export default {
|
|||||||
if (obj.pictureUrlList.length > 0) {
|
if (obj.pictureUrlList.length > 0) {
|
||||||
updatePicture(obj).then((res) => { });
|
updatePicture(obj).then((res) => { });
|
||||||
}
|
}
|
||||||
|
if (this.imgsurl.pictureUrlList.length > 0) {
|
||||||
|
updatePicture(this.imgsurl).then((res) => {});
|
||||||
|
}
|
||||||
|
this.imgsurl={pictureUrlList:[]};
|
||||||
|
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user