From 6666ce5526b1ed17f5c3906c94620cad586745a5 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期五, 28 六月 2024 17:01:39 +0800
Subject: [PATCH] 优化代码

---
 src/views/tool/gen/index.vue |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue
index 77e8a80..f8cddbc 100644
--- a/src/views/tool/gen/index.vue
+++ b/src/views/tool/gen/index.vue
@@ -217,11 +217,13 @@
     loading.value = false;
   });
 }
+
 /** 鎼滅储鎸夐挳鎿嶄綔 */
 function handleQuery() {
   queryParams.value.pageNum = 1;
   getList();
 }
+
 /** 鐢熸垚浠g爜鎿嶄綔 */
 function handleGenTable(row) {
   const tbNames = row.tableName || tableNames.value;
@@ -237,6 +239,7 @@
     proxy.$download.zip("/tool/gen/batchGenCode?tables=" + tbNames, "ruoyi.zip");
   }
 }
+
 /** 鍚屾鏁版嵁搴撴搷浣� */
 function handleSynchDb(row) {
   const tableName = row.tableName;
@@ -246,20 +249,24 @@
     proxy.$modal.msgSuccess("鍚屾鎴愬姛");
   }).catch(() => {});
 }
+
 /** 鎵撳紑瀵煎叆琛ㄥ脊绐� */
 function openImportTable() {
   proxy.$refs["importRef"].show();
 }
+
 /** 鎵撳紑鍒涘缓琛ㄥ脊绐� */
 function openCreateTable() {
   proxy.$refs["createRef"].show();
 }
+
 /** 閲嶇疆鎸夐挳鎿嶄綔 */
 function resetQuery() {
   dateRange.value = [];
   proxy.resetForm("queryRef");
   handleQuery();
 }
+
 /** 棰勮鎸夐挳 */
 function handlePreview(row) {
   previewTable(row.tableId).then(response => {
@@ -268,10 +275,12 @@
     preview.value.activeName = "domain.java";
   });
 }
+
 /** 澶嶅埗浠g爜鎴愬姛 */
 function copyTextSuccess() {
   proxy.$modal.msgSuccess("澶嶅埗鎴愬姛");
 }
+
 // 澶氶�夋閫変腑鏁版嵁
 function handleSelectionChange(selection) {
   ids.value = selection.map(item => item.tableId);
@@ -279,11 +288,13 @@
   single.value = selection.length != 1;
   multiple.value = !selection.length;
 }
+
 /** 淇敼鎸夐挳鎿嶄綔 */
 function handleEditTable(row) {
   const tableId = row.tableId || ids.value[0];
   router.push({ path: "/tool/gen-edit/index/" + tableId, query: { pageNum: queryParams.value.pageNum } });
 }
+
 /** 鍒犻櫎鎸夐挳鎿嶄綔 */
 function handleDelete(row) {
   const tableIds = row.tableId || ids.value;

--
Gitblit v1.9.3