From 5a3e513a6bb2f99c6e61e97d4d4ac528eecb5b3e 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: Mon, 8 May 2023 18:28:49 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=98=BE=E7=A4=BA=E6=8C=89=E9=92=AE=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/CodeGenTemplate/v3/Vue.txt | 17 ++++++++++------- ZR.CodeGenerator/CodeGeneratorTool.cs | 1 + ZR.CodeGenerator/Model/ReplaceDto.cs | 1 + 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt index 8bd3903..a0569d6 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt @@ -73,14 +73,12 @@ $if(replaceDto.ShowBtnAdd) $end -$if(replaceDto.ShowBtnEdit) +$if(replaceDto.ShowBtnMultiDel) {{ ${t}t('btn.edit') }} -$end -$if(replaceDto.ShowBtnDelete) {{ ${t}t('btn.delete') }} @@ -111,9 +109,14 @@ $end ref="table" border highlight-current-row - @sort-change="sortChange" - @selection-change="handleSelectionChange"> + @sort-change="sortChange" +$if(replaceDto.ShowBtnMultiDel) + @selection-change="handleSelectionChange" +$end + > +$if(replaceDto.ShowBtnMultiDel) +$end $if(null != genTable.SubTableName && "" != genTable.SubTableName && genTable.TplCategory == "subNav")