fix(测试跟踪): 用例评审脑图保存用例错误提示后一直转圈

--bug=1018748 --user=陈建星 【系统设置】测试跟踪只有查看权限,但进入用例评审详情后切换脑图修改内容可以保存 https://www.tapd.cn/55049933/s/1274832
This commit is contained in:
chenjianxing 2022-10-24 17:43:53 +08:00 committed by 刘瑞斌
parent 1bd1a9ecf9
commit c837d48fe9
1 changed files with 14 additions and 4 deletions

View File

@ -16,18 +16,25 @@
</template>
<script>
import {handleExpandToLevel, listenBeforeExecCommand, listenNodeSelected, loadSelectNodes, tagBatch} from "@/business/common/minder/minderUtils";
import {
handleExpandToLevel,
listenBeforeExecCommand,
listenNodeSelected,
loadSelectNodes,
tagBatch
} from "@/business/common/minder/minderUtils";
import {getReviewCasesForMinder} from "@/api/testCase";
import {setPriorityView} from "vue-minder-editor-plus/src/script/tool/utils";
import MsModuleMinder from "@/business/common/minder/MsModuleMinder";
import {useStore} from "@/store";
import {mapState} from "pinia";
import {testReviewCaseMinderEdit} from "@/api/remote/plan/test-review-case";
export default {
name: "TestReviewMinder",
name: "TestReviewMinder",
components: {MsModuleMinder},
data() {
return{
return {
dataMap: new Map(),
tags: [this.$t('test_track.plan_view.pass'), this.$t('test_track.plan_view.not_pass')],
result: {loading: false}
@ -75,7 +82,7 @@ name: "TestReviewMinder",
methods: {
handleAfterMount() {
listenNodeSelected(() => {
loadSelectNodes(this.getParam(), getReviewCasesForMinder, this.setParamCallback);
loadSelectNodes(this.getParam(), getReviewCasesForMinder, this.setParamCallback);
});
listenBeforeExecCommand((even) => {
if (even.commandName === 'expandtolevel') {
@ -124,6 +131,9 @@ name: "TestReviewMinder",
this.result.loading = false;
this.$success(this.$t('commons.save_success'));
this.setIsChange(false);
})
.catch(() => {
this.result.loading = false;
});
},
buildSaveCase(root, saveCases) {