| | |
| | | } |
| | | 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; |
| | | } |
| | |
| | | .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"); |
| | | } |
| | | |