修改
This commit is contained in:
parent
9f64999a02
commit
d1ff5be640
@ -311,7 +311,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="人员头像" prop="personPictureUrl">
|
<el-form-item label="人员头像" prop="personPictureUrl">
|
||||||
<stationAcatar
|
<stationAcatar
|
||||||
@imgUrl2="imgUrl"
|
@imgUrl="imgUrl2"
|
||||||
:img="form.personPictureUrl"
|
:img="form.personPictureUrl"
|
||||||
:type="'personPictureUrl'"
|
:type="'personPictureUrl'"
|
||||||
/>
|
/>
|
||||||
@ -606,7 +606,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 修改对话框 -->
|
<!-- 修改对话框 -->
|
||||||
<el-dialog
|
<!-- <el-dialog
|
||||||
:title="title"
|
:title="title"
|
||||||
:visible.sync="open"
|
:visible.sync="open"
|
||||||
width="1200px"
|
width="1200px"
|
||||||
@ -802,7 +802,7 @@
|
|||||||
v-model.number="item.certificateSort"
|
v-model.number="item.certificateSort"
|
||||||
placeholder="请输入证书显示顺序"
|
placeholder="请输入证书显示顺序"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
circle
|
circle
|
||||||
@ -819,13 +819,13 @@
|
|||||||
@click="deldisease(index)"
|
@click="deldisease(index)"
|
||||||
v-if="index != 0"
|
v-if="index != 0"
|
||||||
></el-button> -->
|
></el-button> -->
|
||||||
</div>
|
<!-- </div>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -1201,8 +1201,6 @@ export default {
|
|||||||
console.log(this.deletupdata)
|
console.log(this.deletupdata)
|
||||||
},
|
},
|
||||||
imgUrl2(imgUrl) {
|
imgUrl2(imgUrl) {
|
||||||
// this.NewImgs.push(imgUrl);
|
|
||||||
// this.objitempicture.push(imgUrl);
|
|
||||||
console.log(imgUrl, "新上传");
|
console.log(imgUrl, "新上传");
|
||||||
this.form.personPictureUrl = imgUrl;
|
this.form.personPictureUrl = imgUrl;
|
||||||
this.deletUploadImages.push(imgUrl);
|
this.deletUploadImages.push(imgUrl);
|
||||||
@ -1351,7 +1349,7 @@ export default {
|
|||||||
if (this.deletUploadImages.length > 0) {
|
if (this.deletUploadImages.length > 0) {
|
||||||
updatePicture({ pictureUrlList: this.deletUploadImages }).then(
|
updatePicture({ pictureUrlList: this.deletUploadImages }).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
this.open = false;
|
// this.open = false;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1359,13 +1357,13 @@ export default {
|
|||||||
if (this.deletupdata.length > 0) {
|
if (this.deletupdata.length > 0) {
|
||||||
updatePicture({ pictureUrlList: this.deletupdata }).then(
|
updatePicture({ pictureUrlList: this.deletupdata }).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
this.open = false;
|
// this.open = false;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
this.imgsurl = { pictureUrlList: [] };
|
this.imgsurl = { pictureUrlList: [] };
|
||||||
this.addopen = false;
|
this.addopen = false;
|
||||||
this.open = false;
|
this.addopen = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
},
|
},
|
||||||
// 表单重置
|
// 表单重置
|
||||||
@ -1455,7 +1453,7 @@ export default {
|
|||||||
getHospitalPerson(id).then((response) => {
|
getHospitalPerson(id).then((response) => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
this.imgone = this.form.certificateUrl;
|
this.imgone = this.form.certificateUrl;
|
||||||
this.open = true;
|
this.addopen = true;
|
||||||
this.title = "修改科室人员信息";
|
this.title = "修改科室人员信息";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -1470,7 +1468,7 @@ export default {
|
|||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateHospitalPerson(this.form).then((response) => {
|
updateHospitalPerson(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.addopen = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -80,6 +80,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :lg="2" :md="2">
|
<el-col :lg="2" :md="2">
|
||||||
|
|
||||||
<el-upload
|
<el-upload
|
||||||
action="#"
|
action="#"
|
||||||
:http-request="requestUpload"
|
:http-request="requestUpload"
|
||||||
@ -307,6 +308,12 @@ export default {
|
|||||||
if(this.types == "certificateUrl"){
|
if(this.types == "certificateUrl"){
|
||||||
this.items.certificateUrl = response.imgUrl;
|
this.items.certificateUrl = response.imgUrl;
|
||||||
this.$emit("item", JSON.stringify(this.items));
|
this.$emit("item", JSON.stringify(this.items));
|
||||||
|
console.log(this.item)
|
||||||
|
}
|
||||||
|
if(this.types == "personPictureUrl"){
|
||||||
|
// this.items.personPictureUrl = response.imgUrl;
|
||||||
|
this.$emit("item", JSON.stringify(this.items));
|
||||||
|
|
||||||
}
|
}
|
||||||
this.openimg = false;
|
this.openimg = false;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user