diff --git a/src/views/category/fileNoFormat/module/sortDialog.vue b/src/views/category/fileNoFormat/module/sortDialog.vue index 33e8011..c756902 100644 --- a/src/views/category/fileNoFormat/module/sortDialog.vue +++ b/src/views/category/fileNoFormat/module/sortDialog.vue @@ -5,7 +5,7 @@
提示:请通过拖动鼠标来调整当前顺序 - + @@ -27,6 +27,11 @@ export default { sortTableData: [] } }, + mounted() { + this.$nextTick(() => { + this.tableHeight = window.innerHeight * 0.6 + }) + }, methods: { // 行拖拽 rowDrop(className, targetName) { diff --git a/src/views/category/listBrowsing/module/sortDialog.vue b/src/views/category/listBrowsing/module/sortDialog.vue index 8a6d70c..263a5b8 100644 --- a/src/views/category/listBrowsing/module/sortDialog.vue +++ b/src/views/category/listBrowsing/module/sortDialog.vue @@ -5,7 +5,7 @@
提示:请通过拖动鼠标来调整当前顺序 - + @@ -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) { diff --git a/src/views/category/orderingRule/module/sortDialog.vue b/src/views/category/orderingRule/module/sortDialog.vue index 1f6c150..360c4cd 100644 --- a/src/views/category/orderingRule/module/sortDialog.vue +++ b/src/views/category/orderingRule/module/sortDialog.vue @@ -5,7 +5,7 @@
提示:请通过拖动鼠标来调整当前顺序 - + @@ -27,6 +27,11 @@ export default { sortTableData: [] } }, + mounted() { + this.$nextTick(() => { + this.tableHeight = window.innerHeight * 0.6 + }) + }, methods: { // 行拖拽 rowDrop(className, targetName) { diff --git a/src/views/category/sortDialog.vue b/src/views/category/sortDialog.vue index d546b09..857a1bd 100644 --- a/src/views/category/sortDialog.vue +++ b/src/views/category/sortDialog.vue @@ -5,7 +5,7 @@
提示:请通过拖动鼠标来调整当前顺序 - + @@ -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) {