fix(测试跟踪): tapd缺陷模板,编辑处理人问题
--bug=1009065 --user=郭雨琦 【ID1009065】【测试跟踪】tapd缺陷模板,编辑处理人问题
This commit is contained in:
parent
0e4cc6bb42
commit
8dc8e5293c
|
@ -114,6 +114,9 @@
|
|||
<if test="request.platform != null and request.platform != ''">
|
||||
and issues.platform = #{request.platform}
|
||||
</if>
|
||||
<if test="request.id != null and request.id != ''">
|
||||
and issues.id = #{request.id}
|
||||
</if>
|
||||
|
||||
<!-- <if test="request.ids != null and request.ids.size() > 0">-->
|
||||
<!-- and issues.id in-->
|
||||
|
|
|
@ -41,6 +41,9 @@ import {addIssueHotBox, getSelectedNodeData, handleIssueAdd, handleIssueBatch} f
|
|||
import IssueRelateList from "@/business/components/track/case/components/IssueRelateList";
|
||||
import TestPlanIssueEdit from "@/business/components/track/case/components/TestPlanIssueEdit";
|
||||
import {getIssuesById} from "@/network/Issue";
|
||||
|
||||
const {getIssuesListById} = require("@/network/Issue");
|
||||
const {getCurrentWorkspaceId} = require("@/common/js/utils");
|
||||
export default {
|
||||
name: "TestCaseMinder",
|
||||
components: {TestPlanIssueEdit, IssueRelateList, MsModuleMinder},
|
||||
|
@ -84,7 +87,11 @@ name: "TestCaseMinder",
|
|||
moveEnable() {
|
||||
// 如果不是默认的排序条件不能调换位置
|
||||
return !this.condition.orders || this.condition.orders.length < 1;
|
||||
},
|
||||
workspaceId(){
|
||||
return getCurrentWorkspaceId();
|
||||
}
|
||||
|
||||
},
|
||||
watch: {
|
||||
selectNode() {
|
||||
|
@ -119,7 +126,7 @@ name: "TestCaseMinder",
|
|||
isNotDisableNode = true;
|
||||
}
|
||||
if (node.data.type === 'issue') {
|
||||
getIssuesById(node.data.id, (data) => {
|
||||
getIssuesListById(node.data.id, this.projectId,this.workspaceId,(data) => {
|
||||
data.customFields = JSON.parse(data.customFields);
|
||||
this.$refs.issueEdit.open(data);
|
||||
});
|
||||
|
|
|
@ -165,7 +165,8 @@ export default {
|
|||
title: '',
|
||||
description: '',
|
||||
creator: null,
|
||||
remark: null
|
||||
remark: null,
|
||||
tapdUsers:[]
|
||||
},
|
||||
tapdUsers: [],
|
||||
zentaoUsers: [],
|
||||
|
|
|
@ -37,6 +37,19 @@ export function getIssuesById(id, callback) {
|
|||
return id ? baseGet('/issues/get/' + id, callback) : {};
|
||||
}
|
||||
|
||||
export function getIssuesListById(id,projectId,workspaceId,callback) {
|
||||
let condition ={
|
||||
id:id,
|
||||
projectId : projectId,
|
||||
workspaceId: workspaceId
|
||||
};
|
||||
return post('issues/list/' + 1 + '/' + 10, condition, (response) => {
|
||||
if (callback) {
|
||||
callback(response.data.listObject[0]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function getIssuesByPlanId(planId, callback) {
|
||||
return planId ? baseGet('/issues/plan/get/' + planId, callback) : {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue