update TplVue.txt CodeGenerateTemplate

This commit is contained in:
不做码农 2021-12-19 16:07:09 +08:00
parent ab6e99d721
commit 6b67b0c7bd
2 changed files with 5 additions and 2 deletions

View File

@ -36,7 +36,7 @@ $end
<el-table :data="dataList" v-loading="loading" ref="table" border highlight-current-row @selection-change="handleSelectionChange">
<el-table-column type="selection" width="50" align="center"/>
${VueViewListContent}
<el-table-column label="操作" align="center" width="200">
<el-table-column label="操作" align="center" width="120">
<template slot-scope="scope">
<el-button v-hasPermi="['${replaceDto.PermissionPrefix}:update']" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">编辑</el-button>
<el-button v-hasPermi="['${replaceDto.PermissionPrefix}:delete']" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>

View File

@ -30,8 +30,11 @@ namespace ZR.CodeGenerator
{
return sb.ToString();
}
if (!dbFieldInfo.IsInsert && !dbFieldInfo.IsEdit && !dbFieldInfo.IsPk && !dbFieldInfo.IsIncrement)
if (!dbFieldInfo.IsInsert && !dbFieldInfo.IsEdit)
{
sb.AppendLine(" <el-col v-if=\"title == '修改数据'\" :lg=\"12\">");
sb.AppendLine($" <el-form-item label=\"{labelName}\">{{{{form.{columnName}}}}}</el-form-item>");
sb.AppendLine(" </el-col>");
return sb.ToString();
}
//主键、非自增要插入,不能编辑