|
|
|
@ -4,7 +4,13 @@ |
|
|
|
<div :style="`width:${sumWidth}px;`"> |
|
|
|
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" :height="sumHeight" |
|
|
|
width="100%" border> |
|
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
|
<el-table-column width="30" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-tag class="moveSummary" style="height:25px;padding:0 2px;cursor: move;background-color: #EEEEEE;"> |
|
|
|
<div style="width: 16px;">{{ scope.$index + 1 }}</div> |
|
|
|
</el-tag> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="summary" label="小结"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="display: flex;justify-content:space-between;"> |
|
|
|
@ -56,7 +62,13 @@ |
|
|
|
<div :style="`margin-left:2px;width:${sumWidth}px;`"> |
|
|
|
<el-table id="tableSuggestion" row-key="id" :data="doctorCheck.checkSuggestionList" size="samll" |
|
|
|
:height="sumHeight" width="100%" border> |
|
|
|
<el-table-column type="index" width="25" align="center" /> |
|
|
|
<el-table-column width="30" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-tag class="moveSuggestion" style="height:25px;padding:0 2px;cursor: move;background-color: #EEEEEE;"> |
|
|
|
<div style="width: 16px;">{{ scope.$index + 1 }}</div> |
|
|
|
</el-tag> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestion" label="建议"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="display: flex;justify-content:space-between;"> |
|
|
|
@ -172,7 +184,15 @@ export default { |
|
|
|
console.log('el0', el) |
|
|
|
const that = this; |
|
|
|
Sortable.create(el, { |
|
|
|
handle: ".moveSummary", |
|
|
|
animation: 150, // ms, number 单位:ms,定义排序动画的时间 |
|
|
|
// 开始拖拽的时候 |
|
|
|
onStart: (evt) => { |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag != '0') { |
|
|
|
this.$alert("项目已检或弃检,不可执行此操作!", { showClose: false }) |
|
|
|
return false |
|
|
|
} |
|
|
|
}, |
|
|
|
//拖拽结束 |
|
|
|
onEnd({ newIndex, oldIndex }) { |
|
|
|
that.isshow = false; |
|
|
|
@ -191,7 +211,15 @@ export default { |
|
|
|
//console.log('tbody',tbody) |
|
|
|
const that = this; |
|
|
|
Sortable.create(el, { |
|
|
|
handle: ".moveSuggestion", |
|
|
|
animation: 150, // ms, number 单位:ms,定义排序动画的时间 |
|
|
|
// 开始拖拽的时候 |
|
|
|
onStart: (evt) => { |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag != '0') { |
|
|
|
this.$alert("项目已检或弃检,不可执行此操作!", { showClose: false }) |
|
|
|
return false |
|
|
|
} |
|
|
|
}, |
|
|
|
//拖拽结束 |
|
|
|
onEnd({ newIndex, oldIndex }) { |
|
|
|
that.isshow = false; |
|
|
|
|