From d24d93ab5addab0924b4c0097716f6c14d779d21 Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Thu, 30 Jun 2022 10:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E7=B1=BB=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E5=AF=B9=E8=AF=9D=E6=A1=86=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E8=B0=83=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/category/fileNoFormat/module/sortDialog.vue | 7 ++++++- src/views/category/listBrowsing/module/sortDialog.vue | 10 ++++++++-- src/views/category/orderingRule/module/sortDialog.vue | 7 ++++++- src/views/category/sortDialog.vue | 10 ++++++++-- 4 files changed, 28 insertions(+), 6 deletions(-) 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) {