refactor: 接口用例关注人多选
This commit is contained in:
parent
4e5807687a
commit
0b8bd15baa
|
@ -204,4 +204,9 @@ public class ApiTestCaseController {
|
||||||
return apiTestCaseService.getExecResult(id);
|
return apiTestCaseService.getExecResult(id);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("follow/{testId}")
|
||||||
|
public List<String> getFollows(@PathVariable String testId) {
|
||||||
|
return apiTestCaseService.getFollows(testId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,8 @@ public class SaveApiTestCaseRequest extends ApiTestCase {
|
||||||
|
|
||||||
private List<String> bodyUploadIds;
|
private List<String> bodyUploadIds;
|
||||||
|
|
||||||
|
private List<String> follows;
|
||||||
|
|
||||||
//ESB参数。 可为null
|
//ESB参数。 可为null
|
||||||
private String esbDataStruct;
|
private String esbDataStruct;
|
||||||
private String backEsbDataStruct;
|
private String backEsbDataStruct;
|
||||||
|
|
|
@ -99,6 +99,8 @@ public class ApiTestCaseService {
|
||||||
private ExtTestPlanApiCaseMapper extTestPlanApiCaseMapper;
|
private ExtTestPlanApiCaseMapper extTestPlanApiCaseMapper;
|
||||||
@Resource
|
@Resource
|
||||||
private ApiTestEnvironmentMapper apiTestEnvironmentMapper;
|
private ApiTestEnvironmentMapper apiTestEnvironmentMapper;
|
||||||
|
@Resource
|
||||||
|
private ApiTestCaseFollowMapper apiTestCaseFollowMapper;
|
||||||
|
|
||||||
private static final String BODY_FILE_DIR = FileUtils.BODY_FILE_DIR;
|
private static final String BODY_FILE_DIR = FileUtils.BODY_FILE_DIR;
|
||||||
|
|
||||||
|
@ -349,17 +351,32 @@ public class ApiTestCaseService {
|
||||||
test.setUpdateTime(System.currentTimeMillis());
|
test.setUpdateTime(System.currentTimeMillis());
|
||||||
test.setDescription(request.getDescription());
|
test.setDescription(request.getDescription());
|
||||||
test.setVersion(request.getVersion() == null ? 0 : request.getVersion() + 1);
|
test.setVersion(request.getVersion() == null ? 0 : request.getVersion() + 1);
|
||||||
test.setFollowPeople(request.getFollowPeople());
|
|
||||||
if (StringUtils.equals("[]", request.getTags())) {
|
if (StringUtils.equals("[]", request.getTags())) {
|
||||||
test.setTags("");
|
test.setTags("");
|
||||||
} else {
|
} else {
|
||||||
test.setTags(request.getTags());
|
test.setTags(request.getTags());
|
||||||
}
|
}
|
||||||
apiTestCaseMapper.updateByPrimaryKeySelective(test);
|
apiTestCaseMapper.updateByPrimaryKeySelective(test);
|
||||||
|
saveFollows(test.getId(), request.getFollows());
|
||||||
}
|
}
|
||||||
return test;
|
return test;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void saveFollows(String testId, List<String> follows) {
|
||||||
|
ApiTestCaseFollowExample example = new ApiTestCaseFollowExample();
|
||||||
|
example.createCriteria().andCaseIdEqualTo(testId);
|
||||||
|
apiTestCaseFollowMapper.deleteByExample(example);
|
||||||
|
if (!org.springframework.util.CollectionUtils.isEmpty(follows)) {
|
||||||
|
for (String follow : follows) {
|
||||||
|
ApiTestCaseFollow caseFollow = new ApiTestCaseFollow();
|
||||||
|
caseFollow.setCaseId(testId);
|
||||||
|
caseFollow.setFollowId(follow);
|
||||||
|
apiTestCaseFollowMapper.insert(caseFollow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private ApiTestCase createTest(SaveApiTestCaseRequest request, List<MultipartFile> bodyFiles) {
|
private ApiTestCase createTest(SaveApiTestCaseRequest request, List<MultipartFile> bodyFiles) {
|
||||||
checkNameExist(request);
|
checkNameExist(request);
|
||||||
FileUtils.createBodyFiles(request.getId(), bodyFiles);
|
FileUtils.createBodyFiles(request.getId(), bodyFiles);
|
||||||
|
@ -387,7 +404,6 @@ public class ApiTestCaseService {
|
||||||
test.setUpdateTime(System.currentTimeMillis());
|
test.setUpdateTime(System.currentTimeMillis());
|
||||||
test.setDescription(request.getDescription());
|
test.setDescription(request.getDescription());
|
||||||
test.setNum(getNextNum(request.getApiDefinitionId()));
|
test.setNum(getNextNum(request.getApiDefinitionId()));
|
||||||
test.setFollowPeople(request.getFollowPeople());
|
|
||||||
test.setOrder(ServiceUtils.getNextOrder(request.getProjectId(), extApiTestCaseMapper::getLastOrder));
|
test.setOrder(ServiceUtils.getNextOrder(request.getProjectId(), extApiTestCaseMapper::getLastOrder));
|
||||||
if (StringUtils.equals("[]", request.getTags())) {
|
if (StringUtils.equals("[]", request.getTags())) {
|
||||||
test.setTags("");
|
test.setTags("");
|
||||||
|
@ -397,6 +413,7 @@ public class ApiTestCaseService {
|
||||||
ApiTestCaseWithBLOBs apiTestCaseWithBLOBs = apiTestCaseMapper.selectByPrimaryKey(test.getId());
|
ApiTestCaseWithBLOBs apiTestCaseWithBLOBs = apiTestCaseMapper.selectByPrimaryKey(test.getId());
|
||||||
if (apiTestCaseWithBLOBs == null) {
|
if (apiTestCaseWithBLOBs == null) {
|
||||||
apiTestCaseMapper.insert(test);
|
apiTestCaseMapper.insert(test);
|
||||||
|
saveFollows(test.getId(), request.getFollows());
|
||||||
}
|
}
|
||||||
return test;
|
return test;
|
||||||
}
|
}
|
||||||
|
@ -1134,4 +1151,15 @@ public class ApiTestCaseService {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<String> getFollows(String testId) {
|
||||||
|
List<String> result = new ArrayList<>();
|
||||||
|
if (StringUtils.isBlank(testId)) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
ApiTestCaseFollowExample example = new ApiTestCaseFollowExample();
|
||||||
|
example.createCriteria().andCaseIdEqualTo(testId);
|
||||||
|
List<ApiTestCaseFollow> follows = apiTestCaseFollowMapper.selectByExample(example);
|
||||||
|
return follows.stream().map(ApiTestCaseFollow::getFollowId).distinct().collect(Collectors.toList());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
package io.metersphere.base.domain;
|
package io.metersphere.base.domain;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class ApiTestCase implements Serializable {
|
public class ApiTestCase implements Serializable {
|
||||||
|
@ -40,8 +39,6 @@ public class ApiTestCase implements Serializable {
|
||||||
|
|
||||||
private Integer version;
|
private Integer version;
|
||||||
|
|
||||||
private String followPeople;
|
|
||||||
|
|
||||||
private Long order;
|
private Long order;
|
||||||
|
|
||||||
private String caseStatus;
|
private String caseStatus;
|
||||||
|
|
|
@ -1244,76 +1244,6 @@ public class ApiTestCaseExample {
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andFollowPeopleIsNull() {
|
|
||||||
addCriterion("follow_people is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleIsNotNull() {
|
|
||||||
addCriterion("follow_people is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleEqualTo(String value) {
|
|
||||||
addCriterion("follow_people =", value, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleNotEqualTo(String value) {
|
|
||||||
addCriterion("follow_people <>", value, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleGreaterThan(String value) {
|
|
||||||
addCriterion("follow_people >", value, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleGreaterThanOrEqualTo(String value) {
|
|
||||||
addCriterion("follow_people >=", value, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleLessThan(String value) {
|
|
||||||
addCriterion("follow_people <", value, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleLessThanOrEqualTo(String value) {
|
|
||||||
addCriterion("follow_people <=", value, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleLike(String value) {
|
|
||||||
addCriterion("follow_people like", value, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleNotLike(String value) {
|
|
||||||
addCriterion("follow_people not like", value, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleIn(List<String> values) {
|
|
||||||
addCriterion("follow_people in", values, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleNotIn(List<String> values) {
|
|
||||||
addCriterion("follow_people not in", values, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleBetween(String value1, String value2) {
|
|
||||||
addCriterion("follow_people between", value1, value2, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFollowPeopleNotBetween(String value1, String value2) {
|
|
||||||
addCriterion("follow_people not between", value1, value2, "followPeople");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOrderIsNull() {
|
public Criteria andOrderIsNull() {
|
||||||
addCriterion("`order` is null");
|
addCriterion("`order` is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
<result column="delete_time" jdbcType="BIGINT" property="deleteTime" />
|
<result column="delete_time" jdbcType="BIGINT" property="deleteTime" />
|
||||||
<result column="delete_user_id" jdbcType="VARCHAR" property="deleteUserId" />
|
<result column="delete_user_id" jdbcType="VARCHAR" property="deleteUserId" />
|
||||||
<result column="version" jdbcType="INTEGER" property="version" />
|
<result column="version" jdbcType="INTEGER" property="version" />
|
||||||
<result column="follow_people" jdbcType="VARCHAR" property="followPeople" />
|
|
||||||
<result column="order" jdbcType="BIGINT" property="order" />
|
<result column="order" jdbcType="BIGINT" property="order" />
|
||||||
<result column="case_status" jdbcType="VARCHAR" property="caseStatus" />
|
<result column="case_status" jdbcType="VARCHAR" property="caseStatus" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
@ -88,7 +87,7 @@
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, project_id, `name`, priority, api_definition_id, create_user_id, update_user_id,
|
id, project_id, `name`, priority, api_definition_id, create_user_id, update_user_id,
|
||||||
create_time, update_time, num, tags, last_result_id, `status`, original_status, delete_time,
|
create_time, update_time, num, tags, last_result_id, `status`, original_status, delete_time,
|
||||||
delete_user_id, version, follow_people, `order`, case_status
|
delete_user_id, version, `order`, case_status
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Blob_Column_List">
|
<sql id="Blob_Column_List">
|
||||||
description, request
|
description, request
|
||||||
|
@ -147,17 +146,17 @@
|
||||||
update_user_id, create_time, update_time,
|
update_user_id, create_time, update_time,
|
||||||
num, tags, last_result_id,
|
num, tags, last_result_id,
|
||||||
`status`, original_status, delete_time,
|
`status`, original_status, delete_time,
|
||||||
delete_user_id, version, follow_people,
|
delete_user_id, version, `order`,
|
||||||
`order`, case_status, description,
|
case_status, description, request
|
||||||
request)
|
)
|
||||||
values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
||||||
#{priority,jdbcType=VARCHAR}, #{apiDefinitionId,jdbcType=VARCHAR}, #{createUserId,jdbcType=VARCHAR},
|
#{priority,jdbcType=VARCHAR}, #{apiDefinitionId,jdbcType=VARCHAR}, #{createUserId,jdbcType=VARCHAR},
|
||||||
#{updateUserId,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT},
|
#{updateUserId,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT},
|
||||||
#{num,jdbcType=INTEGER}, #{tags,jdbcType=VARCHAR}, #{lastResultId,jdbcType=VARCHAR},
|
#{num,jdbcType=INTEGER}, #{tags,jdbcType=VARCHAR}, #{lastResultId,jdbcType=VARCHAR},
|
||||||
#{status,jdbcType=VARCHAR}, #{originalStatus,jdbcType=VARCHAR}, #{deleteTime,jdbcType=BIGINT},
|
#{status,jdbcType=VARCHAR}, #{originalStatus,jdbcType=VARCHAR}, #{deleteTime,jdbcType=BIGINT},
|
||||||
#{deleteUserId,jdbcType=VARCHAR}, #{version,jdbcType=INTEGER}, #{followPeople,jdbcType=VARCHAR},
|
#{deleteUserId,jdbcType=VARCHAR}, #{version,jdbcType=INTEGER}, #{order,jdbcType=BIGINT},
|
||||||
#{order,jdbcType=BIGINT}, #{caseStatus,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR},
|
#{caseStatus,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR}, #{request,jdbcType=LONGVARCHAR}
|
||||||
#{request,jdbcType=LONGVARCHAR})
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="io.metersphere.base.domain.ApiTestCaseWithBLOBs">
|
<insert id="insertSelective" parameterType="io.metersphere.base.domain.ApiTestCaseWithBLOBs">
|
||||||
insert into api_test_case
|
insert into api_test_case
|
||||||
|
@ -213,9 +212,6 @@
|
||||||
<if test="version != null">
|
<if test="version != null">
|
||||||
version,
|
version,
|
||||||
</if>
|
</if>
|
||||||
<if test="followPeople != null">
|
|
||||||
follow_people,
|
|
||||||
</if>
|
|
||||||
<if test="order != null">
|
<if test="order != null">
|
||||||
`order`,
|
`order`,
|
||||||
</if>
|
</if>
|
||||||
|
@ -281,9 +277,6 @@
|
||||||
<if test="version != null">
|
<if test="version != null">
|
||||||
#{version,jdbcType=INTEGER},
|
#{version,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="followPeople != null">
|
|
||||||
#{followPeople,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="order != null">
|
<if test="order != null">
|
||||||
#{order,jdbcType=BIGINT},
|
#{order,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
|
@ -358,9 +351,6 @@
|
||||||
<if test="record.version != null">
|
<if test="record.version != null">
|
||||||
version = #{record.version,jdbcType=INTEGER},
|
version = #{record.version,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="record.followPeople != null">
|
|
||||||
follow_people = #{record.followPeople,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.order != null">
|
<if test="record.order != null">
|
||||||
`order` = #{record.order,jdbcType=BIGINT},
|
`order` = #{record.order,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
|
@ -397,7 +387,6 @@
|
||||||
delete_time = #{record.deleteTime,jdbcType=BIGINT},
|
delete_time = #{record.deleteTime,jdbcType=BIGINT},
|
||||||
delete_user_id = #{record.deleteUserId,jdbcType=VARCHAR},
|
delete_user_id = #{record.deleteUserId,jdbcType=VARCHAR},
|
||||||
version = #{record.version,jdbcType=INTEGER},
|
version = #{record.version,jdbcType=INTEGER},
|
||||||
follow_people = #{record.followPeople,jdbcType=VARCHAR},
|
|
||||||
`order` = #{record.order,jdbcType=BIGINT},
|
`order` = #{record.order,jdbcType=BIGINT},
|
||||||
case_status = #{record.caseStatus,jdbcType=VARCHAR},
|
case_status = #{record.caseStatus,jdbcType=VARCHAR},
|
||||||
description = #{record.description,jdbcType=LONGVARCHAR},
|
description = #{record.description,jdbcType=LONGVARCHAR},
|
||||||
|
@ -425,7 +414,6 @@
|
||||||
delete_time = #{record.deleteTime,jdbcType=BIGINT},
|
delete_time = #{record.deleteTime,jdbcType=BIGINT},
|
||||||
delete_user_id = #{record.deleteUserId,jdbcType=VARCHAR},
|
delete_user_id = #{record.deleteUserId,jdbcType=VARCHAR},
|
||||||
version = #{record.version,jdbcType=INTEGER},
|
version = #{record.version,jdbcType=INTEGER},
|
||||||
follow_people = #{record.followPeople,jdbcType=VARCHAR},
|
|
||||||
`order` = #{record.order,jdbcType=BIGINT},
|
`order` = #{record.order,jdbcType=BIGINT},
|
||||||
case_status = #{record.caseStatus,jdbcType=VARCHAR}
|
case_status = #{record.caseStatus,jdbcType=VARCHAR}
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
|
@ -483,9 +471,6 @@
|
||||||
<if test="version != null">
|
<if test="version != null">
|
||||||
version = #{version,jdbcType=INTEGER},
|
version = #{version,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="followPeople != null">
|
|
||||||
follow_people = #{followPeople,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="order != null">
|
<if test="order != null">
|
||||||
`order` = #{order,jdbcType=BIGINT},
|
`order` = #{order,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
|
@ -519,7 +504,6 @@
|
||||||
delete_time = #{deleteTime,jdbcType=BIGINT},
|
delete_time = #{deleteTime,jdbcType=BIGINT},
|
||||||
delete_user_id = #{deleteUserId,jdbcType=VARCHAR},
|
delete_user_id = #{deleteUserId,jdbcType=VARCHAR},
|
||||||
version = #{version,jdbcType=INTEGER},
|
version = #{version,jdbcType=INTEGER},
|
||||||
follow_people = #{followPeople,jdbcType=VARCHAR},
|
|
||||||
`order` = #{order,jdbcType=BIGINT},
|
`order` = #{order,jdbcType=BIGINT},
|
||||||
case_status = #{caseStatus,jdbcType=VARCHAR},
|
case_status = #{caseStatus,jdbcType=VARCHAR},
|
||||||
description = #{description,jdbcType=LONGVARCHAR},
|
description = #{description,jdbcType=LONGVARCHAR},
|
||||||
|
@ -544,7 +528,6 @@
|
||||||
delete_time = #{deleteTime,jdbcType=BIGINT},
|
delete_time = #{deleteTime,jdbcType=BIGINT},
|
||||||
delete_user_id = #{deleteUserId,jdbcType=VARCHAR},
|
delete_user_id = #{deleteUserId,jdbcType=VARCHAR},
|
||||||
version = #{version,jdbcType=INTEGER},
|
version = #{version,jdbcType=INTEGER},
|
||||||
follow_people = #{followPeople,jdbcType=VARCHAR},
|
|
||||||
`order` = #{order,jdbcType=BIGINT},
|
`order` = #{order,jdbcType=BIGINT},
|
||||||
case_status = #{caseStatus,jdbcType=VARCHAR}
|
case_status = #{caseStatus,jdbcType=VARCHAR}
|
||||||
where id = #{id,jdbcType=VARCHAR}
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
|
|
@ -382,3 +382,18 @@ SELECT id, follow_people
|
||||||
FROM api_definition
|
FROM api_definition
|
||||||
WHERE follow_people IS NOT NULL;
|
WHERE follow_people IS NOT NULL;
|
||||||
ALTER TABLE api_definition DROP COLUMN follow_people;
|
ALTER TABLE api_definition DROP COLUMN follow_people;
|
||||||
|
|
||||||
|
-- 接口定义关注人
|
||||||
|
CREATE TABLE IF NOT EXISTS `api_test_case_follow`
|
||||||
|
(
|
||||||
|
`case_id` VARCHAR(50) DEFAULT NULL,
|
||||||
|
`follow_id` VARCHAR(50) DEFAULT NULL,
|
||||||
|
UNIQUE KEY `api_case_follow_scenario_id_follow_id_pk` (`case_id`, `follow_id`),
|
||||||
|
KEY `api_case_follow_id_index` (`follow_id`)
|
||||||
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
|
||||||
|
-- 接口定义数据迁移
|
||||||
|
INSERT INTO api_test_case_follow
|
||||||
|
SELECT id, follow_people
|
||||||
|
FROM api_test_case
|
||||||
|
WHERE follow_people IS NOT NULL;
|
||||||
|
ALTER TABLE api_test_case DROP COLUMN follow_people;
|
|
@ -63,7 +63,8 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<div class="tag-item" @click.stop>
|
<div class="tag-item" @click.stop>
|
||||||
<el-select v-model="apiCase.followPeople" clearable :placeholder="$t('api_test.automation.follow_people')" filterable size="small"
|
<el-select v-model="apiCase.follows" multiple clearable
|
||||||
|
:placeholder="$t('api_test.automation.follow_people')" filterable size="small"
|
||||||
@change="saveTestCase(apiCase,true)" style="width: 100%">
|
@change="saveTestCase(apiCase,true)" style="width: 100%">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in maintainerOptions"
|
v-for="item in maintainerOptions"
|
||||||
|
@ -279,6 +280,9 @@ export default {
|
||||||
if (requireComponent != null && JSON.stringify(esbDefinition) != '{}' && JSON.stringify(esbDefinitionResponse) != '{}') {
|
if (requireComponent != null && JSON.stringify(esbDefinition) != '{}' && JSON.stringify(esbDefinitionResponse) != '{}') {
|
||||||
this.showXpackCompnent = true;
|
this.showXpackCompnent = true;
|
||||||
}
|
}
|
||||||
|
this.$get('/api/testcase/follow/' + this.apiCase.id, response => {
|
||||||
|
this.apiCase.follows = response.data;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'apiCase.selected'() {
|
'apiCase.selected'() {
|
||||||
|
|
Loading…
Reference in New Issue