Merge branch 'master' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
07c108f85a
|
@ -110,12 +110,6 @@ public class TestReviewTestCaseService {
|
|||
MSException.throwException("非此用例的评审人员!");
|
||||
}
|
||||
|
||||
TestCaseReview testCaseReview = testCaseReviewMapper.selectByPrimaryKey(reviewId);
|
||||
Long endTime = testCaseReview.getEndTime();
|
||||
if (System.currentTimeMillis() > endTime) {
|
||||
MSException.throwException("此用例评审已到截止时间!");
|
||||
}
|
||||
|
||||
// 记录测试用例评审状态变更
|
||||
testCaseReviewTestCase.setStatus(testCaseReviewTestCase.getStatus());
|
||||
testCaseReviewTestCase.setReviewer(SessionUtils.getUser().getId());
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {Scenario, TCPRequest} from "@/business/components/api/test/model/ScenarioModel";
|
||||
import {Scenario, TCPConfig, TCPRequest} from "@/business/components/api/test/model/ScenarioModel";
|
||||
import MsApiAssertions from "@/business/components/api/test/components/assertion/ApiAssertions";
|
||||
import MsApiExtract from "@/business/components/api/test/components/extract/ApiExtract";
|
||||
import MsJsr233Processor from "@/business/components/api/test/components/processor/Jsr233Processor";
|
||||
|
@ -143,7 +143,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
activeName: "assertions",
|
||||
classes: TCPRequest.CLASSES,
|
||||
classes: TCPConfig.CLASSES,
|
||||
rules: {
|
||||
server: [
|
||||
{
|
||||
|
|
|
@ -38,10 +38,12 @@
|
|||
@click="handleNext()"/>
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
|
||||
<el-button type="success" size="mini" :disabled="isReadOnly" plain @click="saveCase('Pass')">
|
||||
<el-button type="success" size="mini"
|
||||
:disabled="isReadOnly" :plain="testCase.reviewStatus !== 'Pass'" @click="saveCase('Pass')">
|
||||
{{ $t('test_track.review.pass') }}
|
||||
</el-button>
|
||||
<el-button type="danger" size="mini" :disabled="isReadOnly" plain @click="saveCase('UnPass')">
|
||||
<el-button type="danger" size="mini"
|
||||
:disabled="isReadOnly" :plain="testCase.reviewStatus !== 'UnPass'" @click="saveCase('UnPass')">
|
||||
{{ $t('test_track.review.un_pass') }}
|
||||
</el-button>
|
||||
</el-col>
|
||||
|
@ -290,6 +292,10 @@ export default {
|
|||
this.$success(this.$t('commons.save_success'));
|
||||
this.updateTestCases(param);
|
||||
this.setReviewStatus(this.testCase.reviewId);
|
||||
// 修改当前用例的评审状态
|
||||
this.testCase.reviewStatus = status;
|
||||
// 修改当前用例在整个用例列表的状态
|
||||
this.testCases[this.index].reviewStatus = status;
|
||||
});
|
||||
},
|
||||
updateTestCases(param) {
|
||||
|
|
Loading…
Reference in New Issue