From 74d871ee758a01a65351a7ec4eb8e1af9b85fcfe 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, 25 Apr 2022 21:08:35 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E8=A1=A8?=
=?UTF-8?q?=E6=A0=BC=E7=BC=96=E8=BE=91=E6=96=B0=E5=A2=9E=E5=9B=9E=E8=BD=A6?=
=?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=88=B0=E4=B8=8B=E4=B8=80=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/tool/gen/basicInfoForm.vue | 39 +++++++--------------
src/views/tool/gen/editTable.vue | 51 ++++++++++++++++++++++------
src/views/tool/gen/genInfoForm.vue | 12 ++-----
src/views/tool/gen/importTable.vue | 15 --------
src/views/tool/gen/index.vue | 49 ++++++--------------------
5 files changed, 65 insertions(+), 101 deletions(-)
diff --git a/src/views/tool/gen/basicInfoForm.vue b/src/views/tool/gen/basicInfoForm.vue
index 91f5397..695e995 100644
--- a/src/views/tool/gen/basicInfoForm.vue
+++ b/src/views/tool/gen/basicInfoForm.vue
@@ -30,32 +30,17 @@
-
diff --git a/src/views/tool/gen/editTable.vue b/src/views/tool/gen/editTable.vue
index 086d852..25f3b90 100644
--- a/src/views/tool/gen/editTable.vue
+++ b/src/views/tool/gen/editTable.vue
@@ -8,13 +8,12 @@
-
+
-
+
-
-
+
@@ -43,7 +42,7 @@
-
+
@@ -53,8 +52,7 @@
-
-
+
@@ -95,8 +93,13 @@
-
+
{{ dict.dictName }}
{{ dict.dictType }}
@@ -108,7 +111,7 @@
-
+
提交
刷新
返回
@@ -137,7 +140,7 @@ const dictOptions = ref([])
// 表详细信息
const info = ref({})
const loading = ref(true)
-
+const dragTableRef = ref()
const route = useRoute()
const { proxy } = getCurrentInstance()
@@ -211,5 +214,31 @@ function close() {
}
proxy.$tab.closeOpenPage(obj)
}
+
+/*************** table column 回车代码 start*************/
+// 动态ref设置值
+const columnRefs = ref([])
+const setColumnsRef = (el) => {
+ if (el) {
+ columnRefs.value.push(el)
+ }
+}
+
+/**
+ * 回车到下一行
+ */
+function nextFocus(row, index, e) {
+ var length = columnRefs.value.length
+ var keyCode = e.keyCode || e.which || e.charCode
+ if (keyCode === 13) {
+ if (length - 1 == index) {
+ console.log('到最后一个了')
+ } else {
+ columnRefs.value[index + 1].focus()
+ }
+ }
+}
+/*************** table column 回车代码 end *************/
+
handleQuery()
diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue
index 6053373..6279f2e 100644
--- a/src/views/tool/gen/genInfoForm.vue
+++ b/src/views/tool/gen/genInfoForm.vue
@@ -6,8 +6,8 @@
生成模板
-
-
+
@@ -349,7 +349,6 @@ function getMenuTreeselect() {
}
function checkedBtnSelect(value) {
console.log(value)
- // checkedBtn.value = value
}
watch(
() => props.info.subTableName,
@@ -358,12 +357,5 @@ watch(
}
)
-// watch(
-// () => props.info.checkedBtn,
-// (val) => {
-// checkedBtn.value = val
-// }
-// )
-
getMenuTreeselect()
diff --git a/src/views/tool/gen/importTable.vue b/src/views/tool/gen/importTable.vue
index 0537d1b..6c2ee10 100644
--- a/src/views/tool/gen/importTable.vue
+++ b/src/views/tool/gen/importTable.vue
@@ -34,7 +34,6 @@