修改护理站管理

This commit is contained in:
shidongli 2023-11-07 14:31:15 +08:00
parent 92ae4ccbb8
commit 67a66052b0
2 changed files with 9 additions and 9 deletions

View File

@ -341,10 +341,10 @@
:type="'stationPictureUrl'" :type="'stationPictureUrl'"
/> />
</el-form-item> </el-form-item>
<el-form-item label="护理站简介头像" prop="stationIntroducePcitureUrl" style="margin-left: 10%"> <el-form-item label="护理站简介头像" prop="stationIntroducePictureUrl" style="margin-left: 10%">
<stationAcatar <stationAcatar
@imgUrl="imgUrl2" @imgUrl="imgUrl2"
:img="form.stationIntroducePcitureUrl" :img="form.stationIntroducePictureUrl"
:type="'stationIntroducePictureUrl'" :type="'stationIntroducePictureUrl'"
/> />
</el-form-item> </el-form-item>

View File

@ -209,7 +209,7 @@ export default {
this.form.stationPictureUrl = imgUrl; this.form.stationPictureUrl = imgUrl;
}, },
imgUrl2(imgUrl) { imgUrl2(imgUrl) {
this.form.stationIntroducePcitureUrl = imgUrl; this.form.stationIntroducePictureUrl = imgUrl;
}, },
delnurseStationLabelList(index, item) { delnurseStationLabelList(index, item) {
// this.looknurseStationLabel.splice(index,1) // this.looknurseStationLabel.splice(index,1)
@ -280,8 +280,8 @@ export default {
// 取消按钮 // 取消按钮
cancel() { cancel() {
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
if (this.imgone != this.form.stationIntroducePcitureUrl) { if (this.imgone != this.form.stationIntroducePictureUrl) {
obj.pictureUrlList.push(this.form.stationIntroducePcitureUrl); obj.pictureUrlList.push(this.form.stationIntroducePictureUrl);
} }
if (this.imgtwo != this.form.stationPictureUrl) { if (this.imgtwo != this.form.stationPictureUrl) {
obj.pictureUrlList.push(this.form.stationPictureUrl); obj.pictureUrlList.push(this.form.stationPictureUrl);
@ -318,7 +318,7 @@ export default {
dutyPerson: null, dutyPerson: null,
dutyPhone: null, dutyPhone: null,
stationPictureUrl: null, stationPictureUrl: null,
stationIntroducePcitureUrl: null, stationIntroducePictureUrl: null,
sort: null, sort: null,
nurseStationLabelList: [], nurseStationLabelList: [],
streetCode: null, streetCode: null,
@ -460,7 +460,7 @@ export default {
} }
this.form = response.data; this.form = response.data;
this.form.streetCode = this.form.streetName; this.form.streetCode = this.form.streetName;
this.imgone = this.form.stationIntroducePcitureUrl; this.imgone = this.form.stationIntroducePictureUrl;
this.imgtwo = this.form.stationPictureUrl; this.imgtwo = this.form.stationPictureUrl;
this.looknurseStationLabel = response.data.nurseStationLabel; this.looknurseStationLabel = response.data.nurseStationLabel;
this.open = true; this.open = true;
@ -498,7 +498,7 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateStation(this.form).then((response) => { updateStation(this.form).then((response) => {
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
if (this.imgone != this.form.stationIntroducePcitureUrl) { if (this.imgone != this.form.stationIntroducePictureUrl) {
obj.pictureUrlList.push(this.imgone); obj.pictureUrlList.push(this.imgone);
} }
if (this.imgtwo != this.form.stationPictureUrl) { if (this.imgtwo != this.form.stationPictureUrl) {
@ -538,7 +538,7 @@ export default {
}) })
.then(() => { .then(() => {
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
obj.pictureUrlList.push(row.stationIntroducePcitureUrl); obj.pictureUrlList.push(row.stationIntroducePictureUrl);
obj.pictureUrlList.push(row.stationPictureUrl); obj.pictureUrlList.push(row.stationPictureUrl);
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => { }); updatePicture(obj).then((res) => { });