修改护理站管理
This commit is contained in:
parent
92ae4ccbb8
commit
67a66052b0
@ -341,10 +341,10 @@
|
||||
:type="'stationPictureUrl'"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="护理站简介头像" prop="stationIntroducePcitureUrl" style="margin-left: 10%">
|
||||
<el-form-item label="护理站简介头像" prop="stationIntroducePictureUrl" style="margin-left: 10%">
|
||||
<stationAcatar
|
||||
@imgUrl="imgUrl2"
|
||||
:img="form.stationIntroducePcitureUrl"
|
||||
:img="form.stationIntroducePictureUrl"
|
||||
:type="'stationIntroducePictureUrl'"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
@ -209,7 +209,7 @@ export default {
|
||||
this.form.stationPictureUrl = imgUrl;
|
||||
},
|
||||
imgUrl2(imgUrl) {
|
||||
this.form.stationIntroducePcitureUrl = imgUrl;
|
||||
this.form.stationIntroducePictureUrl = imgUrl;
|
||||
},
|
||||
delnurseStationLabelList(index, item) {
|
||||
// this.looknurseStationLabel.splice(index,1)
|
||||
@ -280,8 +280,8 @@ export default {
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
var obj = { pictureUrlList: [] };
|
||||
if (this.imgone != this.form.stationIntroducePcitureUrl) {
|
||||
obj.pictureUrlList.push(this.form.stationIntroducePcitureUrl);
|
||||
if (this.imgone != this.form.stationIntroducePictureUrl) {
|
||||
obj.pictureUrlList.push(this.form.stationIntroducePictureUrl);
|
||||
}
|
||||
if (this.imgtwo != this.form.stationPictureUrl) {
|
||||
obj.pictureUrlList.push(this.form.stationPictureUrl);
|
||||
@ -318,7 +318,7 @@ export default {
|
||||
dutyPerson: null,
|
||||
dutyPhone: null,
|
||||
stationPictureUrl: null,
|
||||
stationIntroducePcitureUrl: null,
|
||||
stationIntroducePictureUrl: null,
|
||||
sort: null,
|
||||
nurseStationLabelList: [],
|
||||
streetCode: null,
|
||||
@ -460,7 +460,7 @@ export default {
|
||||
}
|
||||
this.form = response.data;
|
||||
this.form.streetCode = this.form.streetName;
|
||||
this.imgone = this.form.stationIntroducePcitureUrl;
|
||||
this.imgone = this.form.stationIntroducePictureUrl;
|
||||
this.imgtwo = this.form.stationPictureUrl;
|
||||
this.looknurseStationLabel = response.data.nurseStationLabel;
|
||||
this.open = true;
|
||||
@ -498,7 +498,7 @@ export default {
|
||||
if (this.form.id != null) {
|
||||
updateStation(this.form).then((response) => {
|
||||
var obj = { pictureUrlList: [] };
|
||||
if (this.imgone != this.form.stationIntroducePcitureUrl) {
|
||||
if (this.imgone != this.form.stationIntroducePictureUrl) {
|
||||
obj.pictureUrlList.push(this.imgone);
|
||||
}
|
||||
if (this.imgtwo != this.form.stationPictureUrl) {
|
||||
@ -538,7 +538,7 @@ export default {
|
||||
})
|
||||
.then(() => {
|
||||
var obj = { pictureUrlList: [] };
|
||||
obj.pictureUrlList.push(row.stationIntroducePcitureUrl);
|
||||
obj.pictureUrlList.push(row.stationIntroducePictureUrl);
|
||||
obj.pictureUrlList.push(row.stationPictureUrl);
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture(obj).then((res) => { });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user