From 343235bc404d87b67b983cf37eb6f69e3e384f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Mon, 7 Aug 2023 18:18:43 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E7=BC=96=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/gen/editTable.vue | 9 ++-- src/views/tool/gen/genInfoForm.vue | 75 +++++++++++++++++------------- 2 files changed, 48 insertions(+), 36 deletions(-) diff --git a/src/views/tool/gen/editTable.vue b/src/views/tool/gen/editTable.vue index bc6ed06..4154ef8 100644 --- a/src/views/tool/gen/editTable.vue +++ b/src/views/tool/gen/editTable.vue @@ -296,15 +296,13 @@ const tableSort = () => { const tbody = document.querySelector('.el-table__body > tbody') Sortable.create(tbody, { + dragClass: 'sortable-ghost', onEnd: (evt) => { const targetRow = columns.value.splice(evt.oldIndex, 1)[0] columns.value.splice(evt.newIndex, 0, targetRow) for (const index in columns.value) { columns.value[index].sort = parseInt(index) + 1 } - nextTick(() => { - console.log(columns.value) - }) } }) } @@ -315,3 +313,8 @@ onMounted(() => { handleQuery() + diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue index afa6b95..671e434 100644 --- a/src/views/tool/gen/genInfoForm.vue +++ b/src/views/tool/gen/genInfoForm.vue @@ -242,10 +242,13 @@ - -

其他信息

+ + + +

树表信息

+
- + - + + {{ column.csharpField }} + {{ column.columnComment }} + + - + + + + + {{ column.csharpField }} + {{ column.columnComment }} + + + + + +