Skip to content

Commit

Permalink
无法识别项目 提示优化
Browse files Browse the repository at this point in the history
(cherry picked from commit 30ad8da)
  • Loading branch information
wjm0729 committed Jan 21, 2021
1 parent 859dddb commit a8a7864
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,9 @@ public RestResult<Map<String, Object>> importAndPublishConfig(HttpServletRequest
for (ZipUtils.ZipItem item : itemList) {
String[] groupAdnDataId = item.getItemName().split(Constants.CONFIG_EXPORT_ITEM_FILE_SEPARATOR);
if (groupAdnDataId.length != 2) {
Map<String, String> skipitem = new HashMap<>(2);
skipitem.put("dataId", item.getItemName());
skipitem.put("group", "");
unrecognizedList.add(skipitem);
Map<String, String> unrecognizedItem = new HashMap<>(1);
unrecognizedItem.put("name", item.getItemName());
unrecognizedList.add(unrecognizedItem);
continue;
}
String group = groupAdnDataId[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,7 @@ class ConfigurationManagement extends React.Component {
{ret.data.unrecognizedData ? ret.data.unrecognizedData.length : 0}
</h5>
<Table dataSource={ret.data.unrecognizedData}>
<Table.Column title="Data Id" dataIndex="dataId" />
<Table.Column title="Group" dataIndex="group" />
<Table.Column title="Unrecognized Item" dataIndex="name" />
</Table>
</div>
</div>
Expand Down Expand Up @@ -1066,8 +1065,7 @@ class ConfigurationManagement extends React.Component {
{ret.data.unrecognizedData ? ret.data.unrecognizedData.length : 0}
</h5>
<Table dataSource={ret.data.unrecognizedData}>
<Table.Column title="Data Id" dataIndex="dataId" />
<Table.Column title="Group" dataIndex="group" />
<Table.Column title="Unrecognized Item" dataIndex="name" />
</Table>
</div>
</div>
Expand Down

0 comments on commit a8a7864

Please sign in to comment.