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();