优化代码

This commit is contained in:
不做码农
2022-01-08 21:48:09 +08:00
parent 3fee68d504
commit 58bbb2b967
5 changed files with 19 additions and 22 deletions

View File

@@ -80,7 +80,7 @@ namespace ZR.CodeGenerator
//时间
sb.AppendLine(" <el-col :lg=\"12\">");
sb.AppendLine($" <el-form-item label=\"{labelName}\" prop=\"{columnName}\">");
sb.AppendLine($" <el-date-picker v-model=\"form.{columnName}\" format=\"yyyy-MM-dd HH:mm:ss\" value-format=\"yyyy-MM-dd HH:mm:ss\" type=\"datetimerange\" placeholder=\"选择日期时间\"> </el-date-picker>");
sb.AppendLine($" <el-date-picker v-model=\"form.{columnName}\" format=\"yyyy-MM-dd HH:mm:ss\" value-format=\"yyyy-MM-dd HH:mm:ss\" type=\"datetime\" placeholder=\"选择日期时间\"> </el-date-picker>");
sb.AppendLine(" </el-form-item>");
sb.AppendLine(" </el-col>");
}