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 @@