Squashed commit of the following:
commit1daa137d98Author: 不做码农 <599854767@qq.com> Date: Sat Apr 9 14:51:29 2022 +0800 IPRatelimit添加白名单接口 commitd05690654bAuthor: 不做码农 <599854767@qq.com> Date: Fri Apr 8 20:20:11 2022 +0800 添加页签openPage支持传递参数 commit861710079aAuthor: 不做码农 <599854767@qq.com> Date: Fri Apr 8 12:44:28 2022 +0800 update FileHelper.cs commita0cf47c099Author: 不做码农 <599854767@qq.com> Date: Thu Apr 7 13:30:47 2022 +0800 优化代码生成模板 commit5b376614d0Author: 不做码农 <599854767@qq.com> Date: Thu Apr 7 13:30:13 2022 +0800 IP限制增加百名单接口 commit939ec56d1dAuthor: 不做码农 <599854767@qq.com> Date: Mon Apr 4 21:48:27 2022 +0800 fix 基础sql脚本bug commit19c738b974Author: 不做码农 <599854767@qq.com> Date: Mon Apr 4 18:53:02 2022 +0800 新增加IPRateLimit限制 commit6b0e6b11b3Author: 不做码农 <599854767@qq.com> Date: Mon Apr 4 12:09:39 2022 +0800 格式化代码 commit1024471c64Author: 不做码农 <599854767@qq.com> Date: Mon Apr 4 12:02:32 2022 +0800 自定义异常新增获取LogAttribute属性
This commit is contained in:
@@ -27,9 +27,8 @@ namespace ZR.CodeGenerator
|
||||
|
||||
if (GenConstants.inputDtoNoField.Any(f => f.Contains(dbFieldInfo.CsharpField, StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
return sb.ToString();
|
||||
}
|
||||
if (!dbFieldInfo.IsInsert && !dbFieldInfo.IsEdit)
|
||||
else if (!dbFieldInfo.IsInsert && !dbFieldInfo.IsEdit)
|
||||
{
|
||||
sb.AppendLine(" <el-col :lg=\"12\" v-if=\"opertype == 2\">");
|
||||
sb.AppendLine($" <el-form-item label=\"{labelName}\">{{{{form.{columnName}}}}}</el-form-item>");
|
||||
@@ -200,36 +199,5 @@ namespace ZR.CodeGenerator
|
||||
return $"it => it.{ propertyName} == parm.{propertyName})";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 格式化字典数据显示到table
|
||||
/// </summary>
|
||||
/// <param name="htmlType"></param>
|
||||
/// <param name="columnName"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetFormatter(string htmlType, string columnName)
|
||||
{
|
||||
if (htmlType.Equals(GenConstants.HTML_CHECKBOX) ||
|
||||
htmlType.Equals(GenConstants.HTML_SELECT) ||
|
||||
htmlType.Equals(GenConstants.HTML_RADIO))
|
||||
{
|
||||
return $" :formatter=\"{columnName}Format\"";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 超出隐藏
|
||||
/// </summary>
|
||||
/// <param name="column"></param>
|
||||
/// <returns></returns>
|
||||
public static string ShowToolTip(GenTableColumn column)
|
||||
{
|
||||
if (column.CsharpType.Equals("string") ||
|
||||
column.HtmlType.Equals(GenConstants.HTML_DATETIME))
|
||||
{
|
||||
return $" :show-overflow-tooltip=\"true\"";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user