+
+
+
+
+
{{ scope.row.columnName }}
-
-
-
+
+
-
-
-
+
+
{{ scope.row.columnType }}
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
@@ -325,7 +301,9 @@
-
+
+
+
一键复制
@@ -346,13 +324,19 @@
-
+
+
+
{{ prevBtnText }}
{{ nextBtnText }}
-
-
+
+
+
+
+
+
@@ -363,7 +347,8 @@
defineOptions({
name: "Generator",
});
-
+//导入sortablejs
+import Sortable from "sortablejs";
import "codemirror/mode/javascript/javascript.js";
import Codemirror from "codemirror-editor-vue3";
import type { CmComponentRef } from "codemirror-editor-vue3";
@@ -384,14 +369,18 @@ import MenuAPI from "@/api/menu";
const queryFormRef = ref(ElForm);
const loading = ref(false);
+const fieldLoading = ref(false);
const loadingText = ref("loading...");
const total = ref(0);
const queryParams = reactive({
+ keywords: undefined,
pageNum: 1,
pageSize: 10,
});
const pageData = ref([]);
-const formData = ref({});
+const formData = ref({
+ fieldConfigs: [],
+});
const formTypeOptions: Record = FormTypeEnum;
const queryTypeOptions: Record = QueryTypeEnum;
const dictOptions = ref();
@@ -412,6 +401,8 @@ const cmOptions: EditorConfiguration = {
const prevBtnText = ref("");
const nextBtnText = ref("下一步,字段配置");
const active = ref(0);
+const currentTableName = ref("");
+const sortFlag = ref