From e0c0553bf39bed039e8e5aaa3095cb100a632415 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Mon, 2 Sep 2024 16:25:21 +0800 Subject: [PATCH] dj --- public/sysConfig.json | 2 +- src/components/doctorCheck/CheckPicture.vue | 35 +++++++++++++++++++++ src/views/doctorCheck/doctorCheck.vue | 1 + 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/public/sysConfig.json b/public/sysConfig.json index 602505c..5cf6547 100644 --- a/public/sysConfig.json +++ b/public/sysConfig.json @@ -1,4 +1,4 @@ { - "apiurl": "http://192.168.2.67:9529", + "apiurl": "http://140.143.162.39:9529", "softName": "神豚体检管理系统" } \ No newline at end of file diff --git a/src/components/doctorCheck/CheckPicture.vue b/src/components/doctorCheck/CheckPicture.vue index 38e0d7f..421b9fd 100644 --- a/src/components/doctorCheck/CheckPicture.vue +++ b/src/components/doctorCheck/CheckPicture.vue @@ -9,6 +9,10 @@ 导图 +
+ 裁图 +
保存 @@ -282,6 +286,37 @@ export default { this.dialogCheckPictureUpload = true; }, + // 裁图/修图/ dicom 查看图 + btnCutPic() { + if (this.checkPictures.length == 0) { + this.$message.warning({ showClose: true, message: "暂无可裁图片!" }); + return; + } + + if (!this.$peisAPI) { + this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) + return + } + let token = window.sessionStorage.getItem("token"); + let toOutShell = { + images:this.checkPictures, + token, + }; + this.$peisAPI.imageCut(JSON.stringify(toOutShell)) + .then(res => { + let lres = JSON.parse(res) + if (lres.code > -1) { + this.getCheckPictures(this.dataTransOpts.tableS.register_check.id); + }else{ + console.log('裁图失败',lres.message) + } + }) + .catch(err => { + console.log('裁图失败',err) + }) + + }, + //关闭上传图片窗口 closePicUpload() { this.dialogCheckPictureUpload = false; diff --git a/src/views/doctorCheck/doctorCheck.vue b/src/views/doctorCheck/doctorCheck.vue index 2f677dc..b3fbe00 100644 --- a/src/views/doctorCheck/doctorCheck.vue +++ b/src/views/doctorCheck/doctorCheck.vue @@ -402,6 +402,7 @@ export default { case 'delSug': // 删除建议 case 'btnGetPic': // 采图(图片采集) case 'btnExpPic': // 导图(图片上传) + case 'btnCutPic': // 裁图 case 'btnSavePic': // 图片保存 case 'btnDelImage': // 图片删除 // console.log('btnFlagName RegisterCheckEdit', btnFlagName, RegisterCheckEdit.completeFlag)