|
|
@ -9,7 +9,7 @@ |
|
|
:disabled="sumBtnDisabledAddSummary">新增综述</el-button> |
|
|
:disabled="sumBtnDisabledAddSummary">新增综述</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style="width:50%;background-color: #B9CEE9;" @contextmenu="onContextmenu"> |
|
|
|
|
|
|
|
|
<div :style="`width:${sugWidth - 200}px;background-color: #B9CEE9;`" @contextmenu="onContextmenu"> |
|
|
<el-table id="tableSummary" row-key="id" :data="sumDoctorCheck.summaryList" width="100%" |
|
|
<el-table id="tableSummary" row-key="id" :data="sumDoctorCheck.summaryList" width="100%" |
|
|
:height="sumHeight - (history_summary_years_limit == '0' ? 0 : 94)" border size="small"> |
|
|
:height="sumHeight - (history_summary_years_limit == '0' ? 0 : 94)" border size="small"> |
|
|
<el-table-column type="index" width="30" align="center" /> |
|
|
<el-table-column type="index" width="30" align="center" /> |
|
|
@ -90,7 +90,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style="width:50%;background-color: #B9CEE9;" @contextmenu="onContextmenuSug"> |
|
|
|
|
|
|
|
|
<div :style="`width:${sugWidth}px;background-color: #B9CEE9;`" @contextmenu="onContextmenuSug"> |
|
|
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" |
|
|
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" |
|
|
:height="sumHeight" border size="small" ref="tableSuggestion" @row-contextmenu="onCellRightClick"> |
|
|
:height="sumHeight" border size="small" ref="tableSuggestion" @row-contextmenu="onCellRightClick"> |
|
|
<el-table-column width="30" align="center"> |
|
|
<el-table-column width="30" align="center"> |
|
|
@ -258,6 +258,19 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div style="width:200px;"> |
|
|
|
|
|
<el-table id="tableSuggestionEasy" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" |
|
|
|
|
|
:height="sumHeight" border size="small" ref="tableSuggestionEasy" @row-contextmenu="onCellRightClick"> |
|
|
|
|
|
<el-table-column width="30" align="center"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-tag class="moveTag" style="cursor: move;background-color: #EEEEEE;"> |
|
|
|
|
|
<div style="width: 16px;">{{ scope.$index + 1 }}</div> |
|
|
|
|
|
</el-tag> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="suggestionTitle" label="诊断目录索引" show-overflow-tooltip/> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<!--弹窗--> |
|
|
<!--弹窗--> |
|
|
<div> |
|
|
<div> |
|
|
@ -432,6 +445,7 @@ export default { |
|
|
|
|
|
|
|
|
// this.rowDrop(); (综述取消拖拽) |
|
|
// this.rowDrop(); (综述取消拖拽) |
|
|
this.rowDropSuggestion(); |
|
|
this.rowDropSuggestion(); |
|
|
|
|
|
this.rowDropSuggestionEasy(); |
|
|
|
|
|
|
|
|
await this.dictInit() |
|
|
await this.dictInit() |
|
|
// document.addEventListener('DOMContentLoaded', function () { |
|
|
// document.addEventListener('DOMContentLoaded', function () { |
|
|
@ -458,6 +472,12 @@ export default { |
|
|
frameHeight() { |
|
|
frameHeight() { |
|
|
return this.window.pageHeight - 42 - 10 |
|
|
return this.window.pageHeight - 42 - 10 |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 诊断宽度 |
|
|
|
|
|
sugWidth() { |
|
|
|
|
|
return Math.floor((this.window.pageWidth - 120) / 2) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// AIdiagnosisHeight |
|
|
// AIdiagnosisHeight |
|
|
AIDH() { |
|
|
AIDH() { |
|
|
return Math.floor((this.AI.height - 24 - 42 - 4) / 21.5) |
|
|
return Math.floor((this.AI.height - 24 - 42 - 4) / 21.5) |
|
|
@ -1304,7 +1324,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//拖拽 |
|
|
|
|
|
|
|
|
//拖拽--建议 |
|
|
rowDropSuggestion() { |
|
|
rowDropSuggestion() { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
const el = document.querySelector("#tableSuggestion tbody"); |
|
|
const el = document.querySelector("#tableSuggestion tbody"); |
|
|
@ -1323,6 +1343,25 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//拖拽--建议简版 |
|
|
|
|
|
rowDropSuggestionEasy() { |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
const el = document.querySelector("#tableSuggestionEasy tbody"); |
|
|
|
|
|
console.log('tbody', el) |
|
|
|
|
|
const that = this; |
|
|
|
|
|
Sortable.create(el, { |
|
|
|
|
|
handle: ".moveTag", |
|
|
|
|
|
animation: 150, // ms, number 单位:ms,定义排序动画的时间 |
|
|
|
|
|
//拖拽结束 |
|
|
|
|
|
onEnd({ newIndex, oldIndex }) { |
|
|
|
|
|
that.isshow = false; |
|
|
|
|
|
const currRow = that.sumDoctorCheck.suggestionList.splice(oldIndex, 1)[0]; |
|
|
|
|
|
that.sumDoctorCheck.suggestionList.splice(newIndex, 0, currRow); |
|
|
|
|
|
}, |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 剪切诊断行数 |
|
|
// 剪切诊断行数 |
|
|
cutSugRows(cutNum) { |
|
|
cutSugRows(cutNum) { |
|
|
// cutNum == 0 表示剪切所有 |
|
|
// cutNum == 0 表示剪切所有 |
|
|
@ -1334,7 +1373,7 @@ export default { |
|
|
this.dataTransOpts.sumCutRows = this.sumDoctorCheck.suggestionList.slice(this.rckParam.curRow, Number(this.rckParam.curRow) + Number(cutNum)) |
|
|
this.dataTransOpts.sumCutRows = this.sumDoctorCheck.suggestionList.slice(this.rckParam.curRow, Number(this.rckParam.curRow) + Number(cutNum)) |
|
|
this.sumDoctorCheck.suggestionList = arrayReduce(this.sumDoctorCheck.suggestionList, this.dataTransOpts.sumCutRows, "id=id") |
|
|
this.sumDoctorCheck.suggestionList = arrayReduce(this.sumDoctorCheck.suggestionList, this.dataTransOpts.sumCutRows, "id=id") |
|
|
} |
|
|
} |
|
|
console.log('cutSugRows',cutNum,this.dataTransOpts.sumCutRows,this.sumDoctorCheck.suggestionList) |
|
|
|
|
|
|
|
|
console.log('cutSugRows', cutNum, this.dataTransOpts.sumCutRows, this.sumDoctorCheck.suggestionList) |
|
|
//this.sumDoctorCheck.suggestionList.splice(this.rckParam.curRow, cutNum) |
|
|
//this.sumDoctorCheck.suggestionList.splice(this.rckParam.curRow, cutNum) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -1584,7 +1623,7 @@ export default { |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
// 复制插入诊断 |
|
|
// 复制插入诊断 |
|
|
console.log('this.dataTransOpts.sumCutRows.length',this.dataTransOpts.sumCutRows.length) |
|
|
|
|
|
|
|
|
console.log('this.dataTransOpts.sumCutRows.length', this.dataTransOpts.sumCutRows.length) |
|
|
if (this.dataTransOpts.sumCutRows.length > 0) { |
|
|
if (this.dataTransOpts.sumCutRows.length > 0) { |
|
|
menus.push({ type: 'separator' }) |
|
|
menus.push({ type: 'separator' }) |
|
|
menus.push({ label: '粘贴诊断到当前行前面', itemId: '粘贴诊断到当前行前面', enabled: true }) |
|
|
menus.push({ label: '粘贴诊断到当前行前面', itemId: '粘贴诊断到当前行前面', enabled: true }) |
|
|
@ -1627,15 +1666,15 @@ export default { |
|
|
// 自定义右击事件 |
|
|
// 自定义右击事件 |
|
|
onContextMenuDIY(data) { |
|
|
onContextMenuDIY(data) { |
|
|
//this.$message({showClose:true,message:data}) |
|
|
//this.$message({showClose:true,message:data}) |
|
|
console.log('onContextMenuDIY',data) |
|
|
|
|
|
|
|
|
console.log('onContextMenuDIY', data) |
|
|
switch (data) { |
|
|
switch (data) { |
|
|
case '粘贴诊断到当前行前面': |
|
|
case '粘贴诊断到当前行前面': |
|
|
this.insRows(0) |
|
|
this.insRows(0) |
|
|
break; |
|
|
break; |
|
|
case '粘贴诊断到当前行后面': |
|
|
case '粘贴诊断到当前行后面': |
|
|
if(length == 0){ |
|
|
|
|
|
|
|
|
if (length == 0) { |
|
|
this.insRows(0) |
|
|
this.insRows(0) |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.insRows(1) |
|
|
this.insRows(1) |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
|