|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div :style="`width:${sumWidth}px;`" @dblclick.prevent="blClick"> |
|
|
|
<div style="display: flex;" @contextmenu="onContextmenu"> |
|
|
|
<div :style="`width:${sumWidth}px;`" @dblclick="blClick"> |
|
|
|
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" :height="sumHeight" |
|
|
|
width="100%" border> |
|
|
|
<el-table-column width="30" align="center"> |
|
|
|
@ -193,6 +193,14 @@ export default { |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
|
|
|
|
// 监听来自 Electron 的调用 右击事件 |
|
|
|
if (this.$peisAPI) { |
|
|
|
this.$peisAPI.onContextMenuAction((data) => { |
|
|
|
this.onContextMenuDIY(data) |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
this.rowDrop(); |
|
|
|
|
|
|
|
if(this.doctor_check_disp_suggestion == 'Y') this.rowDropSuggestion() |
|
|
|
@ -409,6 +417,42 @@ export default { |
|
|
|
} |
|
|
|
this.btnMakeDiagnosis() |
|
|
|
}, |
|
|
|
|
|
|
|
// 右击菜单 |
|
|
|
onContextmenu(event) { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let menus = [ |
|
|
|
// { type: 'separator' }, |
|
|
|
// { label: '测试菜单', itemId: '测试菜单', enabled: true }, |
|
|
|
// { |
|
|
|
// label: '更多操作', |
|
|
|
// submenu: [ |
|
|
|
// { label: '子菜单', itemId: '子菜单', enabled: true } |
|
|
|
// ] |
|
|
|
// } |
|
|
|
] |
|
|
|
|
|
|
|
this.$peisAPI.showContextMenu(menus) |
|
|
|
.then(res => { |
|
|
|
console.log('res', res) |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log('err', err) |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
console.log('finally') |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 自定义右击事件 |
|
|
|
onContextMenuDIY(data){ |
|
|
|
this.$message({showClose:true,message:data}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//监听事件 |
|
|
|
|