fix(测试跟踪): 用例评审页面列表报错
This commit is contained in:
parent
4357374353
commit
c372c58e71
|
@ -30,10 +30,11 @@ import io.metersphere.utils.ListUtil;
|
|||
import io.metersphere.xpack.version.service.ProjectVersionService;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import jakarta.annotation.Resource;
|
||||
import java.util.*;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -54,6 +55,7 @@ public class TestReviewTestCaseService {
|
|||
@Resource
|
||||
TestCaseReviewMapper testCaseReviewMapper;
|
||||
@Resource
|
||||
@Lazy
|
||||
TestCaseReviewService testCaseReviewService;
|
||||
@Resource
|
||||
TestCaseMapper testCaseMapper;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<ms-select-tree
|
||||
:disabled="readOnly"
|
||||
:data="treeNodes"
|
||||
:defaultKey="form.module"
|
||||
:defaultKey="defaultModuleKey"
|
||||
:obj="moduleObj"
|
||||
@getValue="(id, data) => setModule(id, data)"
|
||||
clearable
|
||||
|
@ -460,18 +460,19 @@ export default {
|
|||
isCustomNum() {
|
||||
return useStore().currentProjectIsCustomNum;
|
||||
},
|
||||
// this.customFieldForm["用例等级"] = this.form.priority;
|
||||
// this.customFieldForm["责任人"] = this.form.maintainer;
|
||||
// this.customFieldForm["用例状态"] = this.form.status;
|
||||
// priority() {
|
||||
// return this.customFieldForm["用例等级"] || this.form.priority;
|
||||
// },
|
||||
// maintainer() {
|
||||
// return this.customFieldForm["责任人"] || this.form.maintainer;
|
||||
// },
|
||||
// status() {
|
||||
// return this.customFieldForm["用例状态"] || this.form.status;
|
||||
// },
|
||||
defaultModuleKey() {
|
||||
if (this.editable) {
|
||||
let defaultNodeKey = '';
|
||||
this.treeNodes.forEach(node => {
|
||||
if (node.label === '未规划用例') {
|
||||
defaultNodeKey = node.id;
|
||||
}
|
||||
})
|
||||
return defaultNodeKey;
|
||||
} else {
|
||||
return this.form.module
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getDemandOptions();
|
||||
|
|
|
@ -95,15 +95,6 @@
|
|||
prop="description"
|
||||
/>
|
||||
</div>
|
||||
<div class="remark-wrap">
|
||||
<form-rich-text-item
|
||||
v-if="!enableThirdPartTemplate"
|
||||
:title="$t('commons.remark')"
|
||||
:data="form"
|
||||
:default-open="richTextDefaultOpen"
|
||||
prop="remark"
|
||||
/>
|
||||
</div>
|
||||
<el-form-item :label="$t('test_track.case.attachment')"></el-form-item>
|
||||
</el-form>
|
||||
|
||||
|
|
|
@ -261,11 +261,6 @@
|
|||
{{ $t("case.empty_file") }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="upload-file" style="margin-top: 16px">
|
||||
<el-button type="primary" size="small" icon="el-icon-upload2">{{
|
||||
$t("case.upload_file")
|
||||
}}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-drawer>
|
||||
|
|
Loading…
Reference in New Issue