From 47b57434937281604686f4df0be37580cce6cc56 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Mon, 25 Mar 2019 09:42:34 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20spring-boot-demo-codegen=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/index.html | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/spring-boot-demo-codegen/src/main/resources/static/index.html b/spring-boot-demo-codegen/src/main/resources/static/index.html index 263777a..1a2460f 100644 --- a/spring-boot-demo-codegen/src/main/resources/static/index.html +++ b/spring-boot-demo-codegen/src/main/resources/static/index.html @@ -173,6 +173,7 @@ showConfigDialog: false, genConfig: { request: { + prepend: "", url: "", username: "", password: "", @@ -263,6 +264,7 @@ this.genConfig.tableName = tableName; this.genConfig.request.tableName = tableName; this.genConfig.request.url = this.tableRequest.url; + this.genConfig.request.prepend = this.tableRequest.prepend; this.genConfig.request.username = this.tableRequest.username; this.genConfig.request.password = this.tableRequest.password; this.showConfigDialog = true; @@ -277,16 +279,13 @@ }, search(name) { this.$refs[name].validate((valid) => { + if (this.tableRequest.prepend === "") { + this.$Message.error("请选择前缀"); + return + } if (valid) { - let param = { - currentPage: 1, - pageSize: 10 - }; - - Object.assign(param, this.tableRequest); - http.get('/generator/table', { - params: param + params: this.tableRequest }) .then(response => { const data = response.data;