|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | sb.append("',\n") | 
|---|
|  |  |  | .append("            valueType: 'text',\n") | 
|---|
|  |  |  | .append("            hidden: false,\n"); | 
|---|
|  |  |  | .append("            hidden: false,\n") | 
|---|
|  |  |  | .append("            width: 140,\n"); | 
|---|
|  |  |  | if (column.isMajor()) { | 
|---|
|  |  |  | sb.append("            copyable: true,\n"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | if (column.isPrimaryKey() | 
|---|
|  |  |  | || column.getHumpName().equals("deleted") | 
|---|
|  |  |  | || column.getHumpName().equals("hostId") | 
|---|
|  |  |  | || column.getHumpName().equals("memo") | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | if (!Cools.isEmpty(precision) && Cools.isEmpty(column.getEnums())) { | 
|---|
|  |  |  | sb.append("                            fieldProps={{ precision: ").append(precision).append(" }}\n"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if ("Date".equals(column.getType()) || !Cools.isEmpty(column.getEnums()) || !Cools.isEmpty(column.getForeignKeyMajor())){ | 
|---|
|  |  |  | // 时间、枚举  格式化  主键修饰 | 
|---|
|  |  |  | sb.append("                            placeholder=\"请选择\"\n"); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | sb.append("                            placeholder=\"请输入\"\n"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 非空 | 
|---|
|  |  |  | if (column.isNotNull()) { | 
|---|
|  |  |  | sb.append("                            rules={[{ required: true, message: \"").append(column.getComment()).append("不能为空!\" }]}\n"); | 
|---|
|  |  |  | sb.append("                            rules={[{ required: true }]}\n"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 枚举 | 
|---|
|  |  |  | 
|---|
|  |  |  | .append("                            debounceTime={300}\n") | 
|---|
|  |  |  | .append("                            request={async ({ keyWords }) => {\n") | 
|---|
|  |  |  | .append("                                const resp = await Http.doPostForm('api/").append(GeneratorUtils.firstCharConvert(column.getForeignKey())).append("/query', { condition: keyWords });\n") | 
|---|
|  |  |  | .append("                                return resp.data;\n") | 
|---|
|  |  |  | .append("                            }}\n"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|