fix: 场景自定义ID导入保留ID
This commit is contained in:
parent
caf9afd33f
commit
0b20afc389
|
@ -1649,7 +1649,7 @@ public class ApiAutomationService {
|
|||
item.setName(item.getName().substring(0, 255));
|
||||
}
|
||||
item.setNum(num++);
|
||||
if (BooleanUtils.isTrue(project.getScenarioCustomNum())) {
|
||||
if (BooleanUtils.isTrue(project.getScenarioCustomNum()) && StringUtils.isBlank(item.getCustomNum())) {
|
||||
item.setCustomNum(String.valueOf(num));
|
||||
}
|
||||
importCreate(item, batchMapper, request);
|
||||
|
|
|
@ -32,8 +32,7 @@
|
|||
min-width="80"/>
|
||||
|
||||
<ms-table-column
|
||||
v-if="customNum"
|
||||
:field="item"
|
||||
v-if="item.id === 'num' && customNum"
|
||||
:fields-width="fieldsWidth"
|
||||
prop="customNum"
|
||||
:label="$t('commons.id')"
|
||||
|
|
Loading…
Reference in New Issue