From b3d41df8bfc3a0de77d77fcf550dff863f601bee Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Mon, 4 Nov 2024 17:37:23 +0800 Subject: [PATCH] dcm --- public/sysConfig.json | 2 +- src/components/doctorCheck/PacsDcmList.vue | 80 +++++++++++++++++----- 2 files changed, 64 insertions(+), 18 deletions(-) diff --git a/public/sysConfig.json b/public/sysConfig.json index 1ee8013..7d2cc05 100644 --- a/public/sysConfig.json +++ b/public/sysConfig.json @@ -2,5 +2,5 @@ "apiurl": "http://140.143.162.39:9529", "softName": "神豚体检管理系统", "pacsApi":"http://140.143.162.39:9529", - "dcmViewers":"http://192.168.2.74:5081" + "dcmViewers":"http://140.143.162.39:5081" } \ No newline at end of file diff --git a/src/components/doctorCheck/PacsDcmList.vue b/src/components/doctorCheck/PacsDcmList.vue index e298fde..834eac8 100644 --- a/src/components/doctorCheck/PacsDcmList.vue +++ b/src/components/doctorCheck/PacsDcmList.vue @@ -39,23 +39,24 @@ - - - - - - - - - - - - +
+ + + + + + + + + + + +
人员信息: @@ -142,6 +143,10 @@ export default { maxResultCount: 1000, skipCount: 0 }, + + rClickRow: null, //右击的行 + rClickColumn: null, //右击的列(预留) + autoNext: 'Y', // 保存后自动下一条 doctorCheckEdit: {}, pacsList: [], @@ -306,6 +311,47 @@ export default { this.onQueryByPacsNo(row.checkRequestNo) }, + //右击菜单 + onCellRightClick(row, column) { + this.rClickRow = { ...row }; //右击的行记录 + this.rClickColumn = { ...column }; //右击的列(预留) + // console.log(row, column.property); + }, + onContextmenu(event) { + //// console.log('onContextmenu',event); + if (!this.rClickRow) return false; + let row = { ...this.rClickRow }; + let items = [] //菜单项 + + items.push({ + label: "清除pacs影像数据", + onClick: () => { + postapi("/api/app/PacsBusiness/DeletePacsCheckDicomDataByRegisterCheckId", { + registerCheckId: row.registerCheckId + }) + .then((res) => { + if (res.code < 0) { + this.$message.error({ showClose: true, message: res.message }) + } + }); + }, + }) + + this.$contextmenu({ + items, + event, + //x: event.clientX, + //y: event.clientY, + customClass: "custom-class", + zIndex: 3, + minWidth: 80, + }); + + this.rClickRow = null; + return false; + + }, + // 浏览Dcm文件 btnBrowseDcm() {