| | |
| | | import router from "@/router";
|
| | | import importTable from "./importTable";
|
| | |
|
| | | const route = useRoute();
|
| | | const { proxy } = getCurrentInstance();
|
| | |
|
| | | const tableList = ref([]);
|
| | |
| | | const total = ref(0);
|
| | | const tableNames = ref([]);
|
| | | const dateRange = ref([]);
|
| | | const uniqueId = ref("");
|
| | |
|
| | | const data = reactive({
|
| | | queryParams: {
|
| | |
| | | });
|
| | |
|
| | | const { queryParams, preview } = toRefs(data);
|
| | |
|
| | | onActivated(() => {
|
| | | const time = route.query.t;
|
| | | if (time != null && time != uniqueId.value) {
|
| | | uniqueId.value = time;
|
| | | queryParams.value.pageNum = Number(route.query.pageNum);
|
| | | dateRange.value = [];
|
| | | proxy.resetForm("queryForm");
|
| | | getList();
|
| | | }
|
| | | })
|
| | |
|
| | | /** 查询表集合 */
|
| | | function getList() {
|
| | |
| | | /** 修改按钮操作 */
|
| | | function handleEditTable(row) {
|
| | | const tableId = row.tableId || ids.value[0];
|
| | | router.push({ path: "/tool/gen-edit/index", query: { tableId: tableId, pageNum: queryParams.value.pageNum } });
|
| | | router.push({ path: "/tool/gen-edit/index/" + tableId, query: { pageNum: queryParams.value.pageNum } });
|
| | | }
|
| | | /** 删除按钮操作 */
|
| | | function handleDelete(row) {
|