mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 20:19:16 +08:00
fix(测试跟踪): 功能用例页面迁移部分BUG修复 (#18393)
--bug=1017613,1017617,1017618,1017638 --user=宋昌昌 【测试跟踪】功能用例列表页-复制用例,复制的用例再次复制,会丢失责任人信息 https://www.tapd.cn/55049933/s/1257568 Co-authored-by: song-cc-rock <changchang.song@fit2cloud.com>
This commit is contained in:
parent
ba576198ea
commit
931f31552b
@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="ms_btn">
|
||||
<el-button v-if="enableCancel" @click="cancel" :size="btnSize">{{ $t('commons.cancel') }}</el-button>
|
||||
<el-button type="primary" @click="confirm" @keydown.enter.native.prevent :size="btnSize">
|
||||
<el-button type="primary" @click="confirm" @keydown.enter.native.prevent v-prevent-re-click :size="btnSize">
|
||||
{{ $t('commons.confirm') }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
@ -394,11 +394,13 @@
|
||||
</select>
|
||||
|
||||
<select id="get" resultType="io.metersphere.dto.TestReviewCaseDTO">
|
||||
select test_case.remark, test_case_review_test_case.*, test_case.*, test_case_node.name as model, project.name as projectName
|
||||
select test_case_review_test_case.id id, test_case_review_test_case.case_id caseId,
|
||||
test_case.remark, test_case.review_status reviewStatus, test_case.status status, test_case.*,
|
||||
test_case_review_test_case.*, test_case_node.name as model, project.name as projectName
|
||||
from test_case_review_test_case
|
||||
inner join test_case on test_case_review_test_case.case_id = test_case.id
|
||||
left join test_case_node on test_case_node.id=test_case.node_id
|
||||
inner join project on project.id = test_case.project_id
|
||||
inner join test_case on test_case_review_test_case.case_id = test_case.id
|
||||
left join test_case_node on test_case_node.id=test_case.node_id
|
||||
inner join project on project.id = test_case.project_id
|
||||
where test_case_review_test_case.id = #{id}
|
||||
</select>
|
||||
|
||||
|
@ -152,13 +152,9 @@ export function getReviewCasesForMinder(request, callback) {
|
||||
}
|
||||
|
||||
export function getRelateTest(caseId) {
|
||||
if (caseId) {
|
||||
return get('/test/case/relate/test/list/' + caseId);
|
||||
}
|
||||
return {};
|
||||
return get('/test/case/relate/test/list/' + caseId);
|
||||
}
|
||||
|
||||
|
||||
export function deleteRelateTest(caseId, testId) {
|
||||
return get('/test/case/relate/delete/' + caseId + '/' + testId);
|
||||
}
|
||||
|
@ -622,6 +622,9 @@ export default {
|
||||
this.operationType = 'add';
|
||||
this.copyCaseId = testCase.copyId;
|
||||
this.setFormData(testCase);
|
||||
this.testCaseTemplate.customFields.forEach(item => {
|
||||
item.isEdit = false;
|
||||
});
|
||||
this.setTestCaseExtInfo(testCase);
|
||||
this.getSelectOptions();
|
||||
this.reload();
|
||||
|
@ -477,6 +477,10 @@ export default {
|
||||
if (ids) {
|
||||
this.condition.ids = ids;
|
||||
}
|
||||
let dataSelectRange = this.$route.params.dataSelectRange;
|
||||
if (!dataSelectRange) {
|
||||
delete this.condition.filters.review_status
|
||||
}
|
||||
this.initTableData();
|
||||
this.condition.ids = null;
|
||||
this.getVersionOptions();
|
||||
@ -670,9 +674,6 @@ export default {
|
||||
this.condition.selectThisWeedRelevanceData = false;
|
||||
this.condition.caseCoverage = null;
|
||||
this.condition.filters.reviewStatus = ["Prepare", "Pass", "UnPass"];
|
||||
if (!this.selectDataRange) {
|
||||
delete this.condition.filters.review_status
|
||||
}
|
||||
switch (this.selectDataRange) {
|
||||
case 'thisWeekCount':
|
||||
this.condition.selectThisWeedData = true;
|
||||
|
@ -132,11 +132,13 @@ export default {
|
||||
});
|
||||
},
|
||||
initTable() {
|
||||
getRelateTest(this.caseId)
|
||||
.then((response) => {
|
||||
this.data = response.data;
|
||||
this.notInIds = this.data.map(i => i.testId);
|
||||
});
|
||||
if (this.caseId) {
|
||||
getRelateTest(this.caseId)
|
||||
.then((response) => {
|
||||
this.data = response.data;
|
||||
this.notInIds = this.data.map(i => i.testId);
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -385,7 +385,7 @@ export default {
|
||||
parseCustomField(item, this.testCaseTemplate, null, buildTestCaseOldFields(item));
|
||||
this.isCustomFiledActive = true;
|
||||
this.testCase = item;
|
||||
this.oldReviewStatus = this.testCase.status;
|
||||
this.oldReviewStatus = this.testCase.reviewStatus;
|
||||
if (!this.testCase.actualResult) {
|
||||
// 如果没值,使用模板的默认值
|
||||
this.testCase.actualResult = this.testCaseTemplate.actualResult;
|
||||
@ -404,7 +404,7 @@ export default {
|
||||
openTestCaseEdit(testCase, tableData) {
|
||||
this.showDialog = true;
|
||||
// 一开始加载时候需要保存用例评审旧的状态
|
||||
this.oldReviewStatus = testCase.status;
|
||||
this.oldReviewStatus = testCase.reviewStatus;
|
||||
this.activeTab = 'detail';
|
||||
this.hasTapdId = false;
|
||||
this.hasZentaoId = false;
|
||||
|
Loading…
Reference in New Issue
Block a user