From 7ac3a7b647b092f9b34fc562d1ecf9a181ad1756 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: Thu, 13 Jul 2023 13:23:24 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=96=B0=E5=A2=9E=E4=B8=BB?= =?UTF-8?q?=E5=AD=90=E8=A1=A8=E6=96=B0=E5=A2=9E=E3=80=81=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/CodeGenTemplate/v3/Vue.txt | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt index d5fed76..a126b9c 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt @@ -126,9 +126,6 @@ $end header-cell-class-name="el-table-header-cell" highlight-current-row @sort-change="sortChange" -$if(sub) - @row-click="rowClick" -$end $if(replaceDto.ShowBtnMultiDel) @selection-change="handleSelectionChange" $end @@ -136,7 +133,13 @@ $end $if(replaceDto.ShowBtnMultiDel) $end - +$if(sub) + + + +$end $foreach(column in genTable.Columns) $set(labelName = column.ColumnComment) $set(showToolTipHtml = "") @@ -207,23 +210,25 @@ $end $* 一对一/一对多列表显示详情 *$ $if(sub) - - + + + $foreach(column in genSubTable.Columns) $set(columnName = column.CsharpFieldFl) $if(column.IsList == true) $if(column.HtmlType == "checkbox" || column.HtmlType.Contains("select") || column.HtmlType == "radio") - - - + + + $else - + $end $end $end - + + $end @@ -350,7 +355,7 @@ $if(sub) 删除 - 全屏 + {{ fullScreen ? '退出全屏' : '全屏' }} @@ -761,6 +766,7 @@ $if(sub) const ${tool.FirstLowerCase(genTable.SubTable.ClassName)}List = ref([]) const checked${genTable.SubTable.ClassName} = ref([]) const fullScreen = ref(false) +const drawer = ref(false) /** ${genTable.SubTable.FunctionName}序号 */ function row${genTable.SubTable.ClassName}Index({ row, rowIndex }) { @@ -803,6 +809,7 @@ function rowClick(row) { get${genTable.BusinessName}(id).then((res) => { const { code, data } = res if (code == 200) { + drawer.value = true ${tool.FirstLowerCase(genTable.SubTable.ClassName)}List.value = data.${tool.FirstLowerCase(genTable.SubTable.ClassName)}Nav } })