diff --git a/ZR.Vue/src/views/tool/gen/editTable.vue b/ZR.Vue/src/views/tool/gen/editTable.vue
index f8c3e8f..c5ad9c0 100644
--- a/ZR.Vue/src/views/tool/gen/editTable.vue
+++ b/ZR.Vue/src/views/tool/gen/editTable.vue
@@ -4,13 +4,16 @@
+
+
+
-
+
@@ -90,8 +93,7 @@
-
+
{{ dict.dictName }}
{{ dict.dictType }}
@@ -101,9 +103,6 @@
-
-
-
@@ -210,6 +209,9 @@ export default {
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.push({ path: "/tool/gen", query: { t: Date.now() } });
},
+ /**
+ * 排序保存
+ */
sortTable(columns) {
const el = this.$refs.dragTable.$el.querySelectorAll(
".el-table__body-wrapper > table > tbody"
@@ -229,6 +231,25 @@ export default {
},
});
},
+ /**
+ * 回车到下一行
+ */
+ nextFocus(row, index, e) {
+ // const val = e.target.value;
+ var keyCode = e.keyCode || e.which || e.charCode;
+ if (keyCode === 13) {
+ this.$refs[row.columnId].blur();
+ if (Object.keys(this.$refs).length - 1 === index) {
+ index = -1;
+ }
+ var num = Object.keys(this.$refs)[index + 1];
+ if (num > 0) {
+ this.$refs[num].focus();
+ } else {
+ console.warn("最后一行了");
+ }
+ }
+ },
},
watch: {
columns: {
diff --git a/ZR.Vue/src/views/tool/gen/genInfoForm.vue b/ZR.Vue/src/views/tool/gen/genInfoForm.vue
index 42e8cb2..1c4b753 100644
--- a/ZR.Vue/src/views/tool/gen/genInfoForm.vue
+++ b/ZR.Vue/src/views/tool/gen/genInfoForm.vue
@@ -34,7 +34,7 @@
-
+
@@ -261,9 +261,6 @@ export default {
},
};
},
- created() {
- console.log(this.columns);
- },
watch: {
"info.subTableName": function (val) {
this.setSubTableColumns(val);