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