zhangwencui
昨天 8dfd0949932015627838054c708c2d053117b705
src/views/tool/gen/importTable.vue
@@ -68,21 +68,24 @@
</template>
<script setup>
  import { listDbTable, importTable } from "@/api/tool/gen";
  const total = ref(0);
  const visible = ref(false);
  const tables = ref([]);
  const dbTableList = ref([]);
  const { proxy } = getCurrentInstance();
  // 格式化日期为 YYYY-MM-DD
  const formatDate = (row, column, cellValue) => {
    if (cellValue) {
      const date = new Date(cellValue);
      return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;
    }
    return "";
  import { listDbTable, importTable } from "@/api/tool/gen";
  const total = ref(0);
  const visible = ref(false);
  const tables = ref([]);
  const dbTableList = ref([]);
  const { proxy } = getCurrentInstance();
  // 格式化日期为 YYYY-MM-DD
  const formatDate = (row, column, cellValue) => {
    if (cellValue) {
      const date = new Date(cellValue);
      return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(
        2,
        "0"
      )}-${String(date.getDate()).padStart(2, "0")}`;
    }
    return "";
  };
  const queryParams = reactive({