From 8c417997b0620288dcf092b45cbffb4159ac24fe Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Tue, 3 Sep 2024 14:39:48 +0800 Subject: [PATCH] pic --- src/components/doctorCheck/CheckPicture.vue | 31 +++++++++++---------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/components/doctorCheck/CheckPicture.vue b/src/components/doctorCheck/CheckPicture.vue index 421b9fd..594bc43 100644 --- a/src/components/doctorCheck/CheckPicture.vue +++ b/src/components/doctorCheck/CheckPicture.vue @@ -263,7 +263,7 @@ export default { try { await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body) } catch (error) { - console.log('btnGetPic err',error) + console.log('btnGetPic err', error) } } this.getCheckPictures(this.dataTransOpts.tableS.register_check.id) @@ -292,28 +292,29 @@ export default { 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, + asbitemName: this.doctorCheck.asbitemName, + 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) - }) + .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) + }) },