From 3abf83ff634cf292e228bd5670b4424caf87e575 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sun, 27 Apr 2025 14:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=9A=84=E4=B8=80=E4=BA=9B=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8Ctextarea=20v-model=20=E9=87=8D=E5=A4=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9Bmaxlength=20=E4=B8=BA=200=20=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B=E5=88=97=E8=A1=A8=20query=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=8D=E5=AF=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/modules/gen/app/appForm.xml | 8 ++++---- .../main/resources/templates/modules/gen/app/appList.xml | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/core/src/main/resources/templates/modules/gen/app/appForm.xml b/modules/core/src/main/resources/templates/modules/gen/app/appForm.xml index 09c58fc6..2cf8bc5d 100644 --- a/modules/core/src/main/resources/templates/modules/gen/app/appForm.xml +++ b/modules/core/src/main/resources/templates/modules/gen/app/appForm.xml @@ -41,11 +41,11 @@ %> <% if(c.showType == 'input'){ %> - + <% }else if(c.showType == 'textarea'){ %> - + <% }else if(c.showType == 'select' || c.showType == 'select_multiple'){ var isMultiple = (c.showType == 'select_multiple'); %> @@ -63,7 +63,7 @@ <% }else if(c.showType == 'date' || c.showType == 'datetime'){ var isTime = (c.showType == 'datetime'); %> - + <% }else if(c.showType == 'userselect'){ %> @@ -87,7 +87,7 @@ <% }else{ %> - + <% } %> <% diff --git a/modules/core/src/main/resources/templates/modules/gen/app/appList.xml b/modules/core/src/main/resources/templates/modules/gen/app/appList.xml index f1f03672..29fe006b 100644 --- a/modules/core/src/main/resources/templates/modules/gen/app/appList.xml +++ b/modules/core/src/main/resources/templates/modules/gen/app/appList.xml @@ -15,7 +15,7 @@ <% - var idParam = '', idParam2 = ''; + var idParam = '', idParam2 = '', queryField = ''; for(pk in table.pkList){ idParam = idParam + (pk.attrName + '=\'+item.' + pk.attrName); idParam2 = idParam2 + ('item.' + pk.attrName); @@ -39,6 +39,7 @@ 创建者:{{item.createBy}}  |  时间:{{item.createDate}} <% + queryField = c.attrName; break; } } @@ -130,7 +131,7 @@ export default { search(value) { this.list = []; this.query.pageNo = 0; - this.query.testInput = value; + this.query.${queryField} = value; this.loadList(); }, navTo(url) {