|
|
@ -5,7 +5,7 @@ |
|
|
|
<span class="dialog-left-bottom" /> |
|
|
|
<div class="setting-dialog"> |
|
|
|
<i class="drag-tip">提示:请通过拖动鼠标来调整当前顺序</i> |
|
|
|
<el-table :data="sortTableData" :tree-props="{children: 'childrens'}" class="category-sort" style="width: 100%;max-height: 70vh;" row-key="id"> |
|
|
|
<el-table :data="sortTableData" :tree-props="{children: 'childrens'}" class="category-sort" style="width: 100%;" :max-height="tableHeight" row-key="id"> |
|
|
|
<el-table-column type="index" label="序号" width="100" align="center" /> |
|
|
|
<el-table-column prop="cnName" label="门类名称" /> |
|
|
|
</el-table> |
|
|
@ -24,9 +24,15 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
sortVisible: false, |
|
|
|
sortTableData: [] |
|
|
|
sortTableData: [], |
|
|
|
tableHeight: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.tableHeight = window.innerHeight * 0.6 |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 行拖拽 |
|
|
|
rowDrop(className, targetName) { |
|
|
|