| | |
| | | </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();
|
| | | 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({
|
| | | pageNum: 1,
|