From 26bd31cbcf40d5390c0dd1db1301242f4cfbb679 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com>
Date: Fri, 14 Jan 2022 21:11:26 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E7=94=9F?=
=?UTF-8?q?=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ZR.Vue/src/views/tool/gen/index.vue | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/ZR.Vue/src/views/tool/gen/index.vue b/ZR.Vue/src/views/tool/gen/index.vue
index d6466f4..f88d6d2 100644
--- a/ZR.Vue/src/views/tool/gen/index.vue
+++ b/ZR.Vue/src/views/tool/gen/index.vue
@@ -2,11 +2,12 @@
-
+
查询
+ 重置
@@ -133,6 +134,9 @@ export default {
* 编辑表格
*/
handleEditTable(row) {
+ this.queryParams.tableName = row.tableName;
+ this.handleSearch();
+
this.$router.push({
path: "/gen/editTable",
query: { tableId: row.tableId },
@@ -158,7 +162,6 @@ export default {
* 点击生成服务端代码
*/
handleGenTable(row) {
- console.log(JSON.stringify(this.currentSelected));
this.currentSelected = row;
if (!this.currentSelected) {
this.msgError("请先选择要生成代码的数据表");
@@ -179,7 +182,6 @@ export default {
tableName: this.currentSelected.name,
// queryColumn: this.checkedQueryColumn,
};
- console.log(JSON.stringify(seachdata));
codeGenerator(seachdata)
.then((res) => {
@@ -205,6 +207,11 @@ export default {
this.showGenerate = false;
this.currentSelected = {};
},
+ /** 重置按钮操作 */
+ resetQuery() {
+ this.resetForm("queryParams");
+ this.handleSearch();
+ },
/** 打开导入表弹窗 */
openImportTable() {
this.$refs.import.show();