fix(测试计划): 处理人回显

--bug=1009066 --user=郭雨琦 测试计划关联缺陷的处理人回显问题
This commit is contained in:
guoyuqi 2022-01-11 13:47:08 +08:00 committed by 刘瑞斌
parent ed921bdef0
commit f0c38b30a3
1 changed files with 6 additions and 1 deletions

View File

@ -20,6 +20,8 @@
</template>
<script>
const {getCurrentWorkspaceId} = require("@/common/js/utils");
const {getIssuesListById} = require("@/network/Issue");
import MsModuleMinder from "@/business/components/common/components/MsModuleMinder";
import {
handleExpandToLevel, listenBeforeExecCommand, listenNodeSelected, loadSelectNodes,
@ -59,6 +61,9 @@ name: "TestPlanMinder",
computed: {
selectNode() {
return this.$store.state.testPlanViewSelectNode;
},
workspaceId(){
return getCurrentWorkspaceId();
}
},
mounted() {
@ -98,7 +103,7 @@ name: "TestPlanMinder",
listenDblclick(() => {
let data = getSelectedNodeData();
if (data.type === 'issue') {
getIssuesById(data.id, (data) => {
getIssuesListById(data.id, this.projectId,this.workspaceId,(data) => {
data.customFields = JSON.parse(data.customFields);
this.$refs.issueEdit.open(data);
});